:root {
  color-scheme:light dark;
  --surface:#fff;
  --canvas:#f7f5f7;
  --ink:#201c22;
  --muted:#625a64;
  --rule:#ddd7dd;
  --accent:#7a1f57;
  --active:#f2e7ee;
  --on:#fff
}
@media(prefers-color-scheme:dark) {
  :root {
    --surface:#222025;
    --canvas:#19171b;
    --ink:#f4eef4;
    --muted:#c4b9c4;
    --rule:#433c45;
    --accent:#e38fc0;
    --active:#402b39;
    --on:#241822
  }
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font:16px/1.55 Inter,system-ui,sans-serif
}
a {
  color:var(--accent);
  text-underline-offset:.2em
}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:3px
}
.top {
  min-height:64px;
  background:var(--surface);
  border-bottom:1px solid var(--rule);
  display:flex;
  align-items:center;
  gap:18px;
  padding:10px clamp(16px,4vw,64px)
}
.brand {
  font-size:1.55rem;
  font-weight:750;
  letter-spacing:-.06em;
  text-decoration:none
}
.switch {
  margin-inline-start:auto
}
.workspace {
  max-width:1440px;
  margin:auto;
  display:flex
}
nav {
  padding:32px 16px;
  width:220px;
  flex:none
}
nav a,.text {
  display:block;
  padding:8px 12px;
  border-radius:6px;
  text-decoration:none;
  color:var(--ink)
}
nav [aria-current],.segment [aria-current] {
  background:var(--active);
  color:var(--accent);
  font-weight:650
}
hr {
  border:0;
  border-top:1px solid var(--rule);
  margin:20px 0
}
main {
  min-width:0;
  flex:1;
  padding:clamp(20px,4vw,56px);
  max-width:1100px
}
h1 {
  font-size:clamp(1.8rem,4vw,2.65rem);
  letter-spacing:-.045em;
  line-height:1.12;
  margin:0 0 16px
}
h2 {
  font-size:1.25rem;
  margin:0 0 14px
}
.panel {
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:12px;
  padding:clamp(16px,3vw,30px);
  margin:18px 0
}
.grid,.actions,.heading-row,.controls,.item {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px
}
.grid>div {
  flex:1
}
.metric {
  display:block;
  font-size:2.5rem
}
.actions {
  margin-top:18px
}
.heading-row,.item {
  justify-content:space-between
}
.item+.item {
  border-top:1px solid var(--rule)
}
.muted,.controls {
  color:var(--muted)
}
.controls {
  justify-content:flex-end;
  margin-bottom:20px
}
.segment {
  border:1px solid var(--rule);
  display:flex;
  border-radius:6px;
  overflow:hidden
}
.segment a {
  padding:4px 12px;
  text-decoration:none
}
.notice,.error {
  padding:12px;
  background:var(--active);
  border-left:3px solid var(--accent)
}
.check {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:15px
}
fieldset {
  border:1px solid var(--rule);
  margin:12px 0;
  padding:12px
}
label {
  display:block;
  margin:8px 0
}
input:not([type=checkbox]),select,textarea {
  display:block;
  max-width:100%;
  width:32rem;
  background:var(--surface);
  border:1px solid var(--muted);
  border-radius:6px;
  padding:9px;
  font:inherit;
  color:inherit
}
button,.button {
  font:inherit;
  cursor:pointer;
  display:inline-block;
  border-radius:6px;
  background:var(--accent);
  border:1px solid var(--accent);
  color:var(--on);
  padding:7px 14px;
  text-decoration:none
}
.secondary {
  color:var(--accent);
  background:var(--surface)
}
button.text {
  border:0;
  background:transparent;
  color:var(--ink)
}
.table-wrap {
  overflow-x:auto
}
table {
  width:100%;
  border-collapse:collapse
}
th,td {
  text-align:left;
  vertical-align:top;
  padding:10px;
  border-bottom:1px solid var(--rule)
}
code {
  overflow-wrap:anywhere
}
dt {
  font-weight:650
}
dd {
  margin:0 0 12px
}
details form {
  margin:6px 0
}
.item {
  padding:12px 0;
  overflow-wrap:anywhere
}
@media(max-width:760px) {
  .workspace {
    display:block
  }
  nav {
    display:flex;
    width:auto;
    flex-wrap:wrap;
    gap:4px;
    padding:10px;
    background:var(--surface)
  }
  nav a,nav button.text {
    padding:4px 8px
  }
  nav hr {
    display:none
  }
  .top {
    gap:8px
  }
  .controls {
    justify-content:flex-start
  }
}
