@import "https://fonts.googleapis.com/css2?family=Syne:wght@400..800&family=Plus+Jakarta+Sans:wght@300..700&family=IBM+Plex+Mono:wght@400;500;700&display=swap";

/* ../mb/physea-tokens.css */
:root {
  --paper: #F6EBDF;
  --paper-2: #EEDFCE;
  --paper-3: #E6D2BD;
  --ink: #271A26;
  --ink-2: #625260;
  --primary: #B33F50;
  --on-primary: #F6EBDF;
  --accent: #A86A23;
  --status: #5587A4;
  --font-head:
    "Syne",
    "Inter Tight",
    sans-serif;
  --font-ui:
    "Plus Jakarta Sans",
    system-ui,
    sans-serif;
  --font-mono:
    "IBM Plex Mono",
    ui-monospace,
    monospace;
  --font-detail: var(--font-ui);
  --sans: var(--font-ui);
  --mono: var(--font-mono);
  --ink-3: color-mix(in srgb, var(--ink-2) 72%, var(--paper));
  --head-weight: 400;
  --head-tracking: -0.06em;
  --head-leading: 1.13;
  --head-scale: 10.5vw;
  --button-radius: 14px;
  --chip-style: raised; /* @kind other */
  --light-surface: inset;
  --dark-surface: clay;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius: var(--radius-md);
  --text-xs: 11px;
  --text-sm: 13.5px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --rule: rgba(39, 26, 38, .12);
  --rule-soft: rgba(39, 26, 38, .06);
  --rule-bold: rgba(39, 26, 38, .32);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.7), 18px 18px 40px rgba(36,23,38,.10);
  --shadow-clay: inset 6px 6px 18px rgba(36,23,38,.16), inset -6px -6px 18px rgba(255,255,255,.6);
}
:root[data-theme=dark],
.dark {
  --paper: #261224;
  --paper-2: #331C31;
  --paper-3: #40263E;
  --ink: #F0E6DB;
  --ink-2: #BDABBA;
  --primary: #E56D7A;
  --on-primary: #261224;
  --accent: #D69551;
  --status: #73A6C4;
  --rule: rgba(240, 230, 219, .14);
  --rule-soft: rgba(240, 230, 219, .07);
  --rule-bold: rgba(240, 230, 219, .34);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.05), 18px 18px 40px rgba(0,0,0,.42);
  --shadow-clay: inset 6px 6px 18px rgba(0,0,0,.5), inset -6px -6px 18px rgba(241,232,221,.05);
}
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
.headline {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: var(--head-leading);
  font-size: clamp(2.5rem, var(--head-scale), 9rem);
  color: var(--ink);
}
.headline .accent {
  position: relative;
  white-space: nowrap;
}
.headline .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.06em;
  background: var(--primary);
  border-radius: 999px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
}
.eyebrow .pip,
.eyebrow-pip {
  color: var(--primary);
  opacity: 1;
  font-family: var(--font-mono);
  margin-right: 0.4em;
}

/* ../mb/physea-skin.css */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 78%, transparent);
  border: 3px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
::selection {
  background: var(--primary);
  color: var(--paper);
}
:root {
  caret-color: var(--primary);
}
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.skin-cursor {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='7' fill='none' stroke='%23A8331F' stroke-width='2'/><circle cx='12' cy='12' r='2.5' fill='%23A8331F'/></svg>") 12 12, auto;
}
.skin-cursor a,
.skin-cursor button,
.skin-cursor [role=button],
.skin-cursor .clickable {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='8' fill='%23A8331F' fill-opacity='0.22' stroke='%23A8331F' stroke-width='2'/><circle cx='12' cy='12' r='2.5' fill='%23A8331F'/></svg>") 12 12, pointer;
}
.skin-glass {
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 18px 40px rgba(0, 0, 0, .16);
}
.skin-card {
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper-2) 40%, white 8%),
      var(--paper-2) 60%,
      color-mix(in srgb, var(--paper-2) 70%, black 6%));
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 2px 4px rgba(0, 0, 0, .06),
    0 18px 38px rgba(0, 0, 0, .14);
}
.skin-rule {
  height: 1px;
  background: var(--rule);
  border: 0;
}
.skin-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 60%, transparent);
  animation: skin-pulse 2.4s infinite;
}
@keyframes skin-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 60%, transparent);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skin-pip {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ../mb/physea-components.css */
.b {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 20px;
  border-radius: var(--button-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  border: 1px solid var(--rule);
  color: var(--ink);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper-2) 38%, white 10%),
      var(--paper-2) 60%,
      color-mix(in srgb, var(--paper-2) 72%, black 6%));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 2px 4px rgba(0, 0, 0, .06),
    0 10px 22px rgba(0, 0, 0, .12);
  transition:
    transform .08s ease,
    box-shadow .15s ease,
    filter .15s ease;
}
.b:hover {
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 3px 6px rgba(0, 0, 0, .08),
    0 14px 30px rgba(0, 0, 0, .16);
}
.b:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 1px 2px rgba(0, 0, 0, .1);
}
.b:focus-visible {
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 2px 4px rgba(0, 0, 0, .06),
    0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.b--primary {
  color: var(--paper);
  border-color: transparent;
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 14%) 0%,
      var(--primary) 60%,
      color-mix(in srgb, var(--primary) 72%, black 16%) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 2px 4px rgba(0, 0, 0, .1),
    0 14px 30px color-mix(in srgb, var(--primary) 38%, transparent);
}
.b--accent {
  color: var(--paper);
  border-color: transparent;
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--accent) 88%, white 12%) 0%,
      var(--accent) 60%,
      color-mix(in srgb, var(--accent) 72%, black 14%) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 2px 4px rgba(0, 0, 0, .1),
    0 14px 30px color-mix(in srgb, var(--accent) 38%, transparent);
}
.b--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-bold);
  box-shadow: none;
}
.b--ghost:hover {
  background: var(--rule-soft);
  box-shadow: none;
}
.b:disabled,
.b[disabled] {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.3);
  box-shadow: none;
}
.b:disabled:active {
  transform: none;
}
.b--sm {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: calc(var(--button-radius) - 4px);
}
.b--lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: calc(var(--button-radius) + 2px);
}
.b--icon {
  padding: 11px;
  width: 42px;
  height: 42px;
  justify-content: center;
}
.b .ico {
  font-size: 1.05em;
  line-height: 1;
}
.b .lead-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status) 28%, transparent);
}
.b--primary .lead-pip {
  background: var(--paper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 30%, transparent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.inp {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--paper-3) 30%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .10), inset -1px -1px 0 rgba(255, 255, 255, .4);
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder {
  color: var(--ink-2);
  opacity: .55;
}
.inp:focus {
  border-color: var(--primary);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .10), 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
textarea.inp {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}
select.inp {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: none;
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "\25be";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 12px;
}
.search-wrap {
  position: relative;
}
.search-wrap .ico {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-2);
  opacity: .7;
  pointer-events: none;
}
.search-wrap .inp {
  padding-left: 38px;
}
.helper {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-2);
  opacity: .8;
}
.field.is-error .inp {
  border-color: var(--primary);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .08), 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field.is-error .helper {
  color: var(--primary);
  opacity: 1;
  font-weight: 500;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-ui);
  font-size: 14px;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .track {
  width: 46px;
  height: 27px;
  border-radius: var(--radius-pill);
  position: relative;
  flex: none;
  background: color-mix(in srgb, var(--paper-3) 40%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .14), inset -1px -1px 0 rgba(255, 255, 255, .4);
  transition: background .2s;
}
.switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper) 60%, white 30%),
      var(--paper-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 5px rgba(0, 0, 0, .28);
  transition: transform .2s cubic-bezier(.4, 1.3, .5, 1);
}
.switch input:checked + .track {
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 12%),
      var(--primary));
  border-color: transparent;
}
.switch input:checked + .track .knob {
  transform: translateX(19px);
}
.switch input:focus-visible + .track {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, .14),
    inset -1px -1px 0 rgba(255, 255, 255, .4),
    0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.check,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-ui);
  font-size: 14px;
}
.check input,
.radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check .box {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  flex: none;
  position: relative;
  background: color-mix(in srgb, var(--paper-3) 30%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .12), inset -1px -1px 0 rgba(255, 255, 255, .4);
  transition: background .15s, border-color .15s;
}
.check .box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--paper);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s cubic-bezier(.4, 1.4, .5, 1);
}
.check input:checked + .box {
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 12%),
      var(--primary));
  border-color: transparent;
}
.check input:checked + .box::after {
  transform: rotate(45deg) scale(1);
}
.radio .box {
  border-radius: 50%;
  width: 22px;
  height: 22px;
}
.radio .box::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  transition: transform .15s cubic-bezier(.4, 1.4, .5, 1);
}
.radio input:checked + .box {
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 12%),
      var(--primary));
  border-color: transparent;
}
.radio input:checked + .box::after {
  transform: scale(1);
}
.check input:focus-visible + .box,
.radio input:focus-visible + .box {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, .12),
    inset -1px -1px 0 rgba(255, 255, 255, .4),
    0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-lg);
  gap: 2px;
  background: color-mix(in srgb, var(--paper-3) 30%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .12), inset -1px -1px 0 rgba(255, 255, 255, .4);
}
.segmented button {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 18px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s;
}
.segmented button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.segmented button.on {
  color: var(--paper);
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 12%),
      var(--primary));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 12px color-mix(in srgb, var(--primary) 36%, transparent);
}
.tabpanel {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 16px;
  line-height: 1.5;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 60%, var(--paper));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset;
}
.chip--primary {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.chip--live {
  color: var(--ink);
}
.chip--live .skin-pip {
  width: 8px;
  height: 8px;
}
.tooltip {
  position: relative;
  display: inline-flex;
}
.tooltip .tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  z-index: 5;
}
.tooltip .tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.tooltip:hover .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.alert {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.45;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 8px 20px rgba(0, 0, 0, .08);
}
.alert .bar {
  width: 3px;
  align-self: stretch;
  border-radius: var(--radius-pill);
  flex: none;
}
.alert .a-title {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.alert .a-body {
  color: var(--ink-2);
}
.alert--info {
  border-color: color-mix(in srgb, var(--status) 40%, transparent);
}
.alert--info .bar {
  background: var(--status);
}
.alert--ok {
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
}
.alert--ok .bar {
  background: var(--primary);
}
.alert--warn {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.alert--warn .bar {
  background: var(--accent);
}
.alert .a-ico {
  font-size: 1.1em;
  line-height: 1.3;
}
.alert--info .a-ico {
  color: var(--status);
}
.alert--ok .a-ico {
  color: var(--primary);
}
.alert--warn .a-ico {
  color: var(--accent);
}
.progress {
  height: 12px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: 100%;
  background: color-mix(in srgb, var(--paper-3) 40%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .14);
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      color-mix(in srgb, var(--primary) 86%, white 14%),
      var(--primary));
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 50%, transparent);
  transition: width .4s ease;
}
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--rule);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    opacity: .6;
    border-top-color: var(--primary);
  }
}
.card-demo {
  padding: 22px;
  border-radius: var(--radius-xl);
}
.card-demo .ch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.card-demo .cb {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
.skin-glass.card-demo {
  padding: 22px;
}
.stat {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
}
.stat .s-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .75;
}
.stat .s-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -.04em;
  margin: 6px 0 2px;
}
.stat .s-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.listrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
  border: 1px solid var(--rule-soft);
  transition: background .15s, transform .1s;
}
.listrow + .listrow {
  margin-top: 8px;
}
.listrow:hover {
  background: color-mix(in srgb, var(--paper-2) 75%, var(--paper));
  transform: translateX(2px);
}
.listrow .avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--paper);
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      var(--accent),
      var(--primary));
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}
.listrow .lr-main {
  flex: 1;
  min-width: 0;
}
.listrow .lr-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
}
.listrow .lr-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  opacity: .8;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 13.5px;
}
table.data thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .8;
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
table.data tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}
table.data tbody tr {
  transition: background .12s;
}
table.data tbody tr:hover {
  background: color-mix(in srgb, var(--paper-2) 60%, var(--paper));
}
table.data tbody tr:last-child td {
  border-bottom: 0;
}
table.data .num {
  font-family: var(--font-mono);
  text-align: right;
}
.appbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper-2) 40%, white 8%),
      var(--paper-2) 60%,
      color-mix(in srgb, var(--paper-2) 70%, black 6%));
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px rgba(0, 0, 0, .12);
}
.appbar .ab-brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.appbar .ab-brand span {
  color: var(--primary);
}
.appbar .ab-links {
  display: flex;
  gap: 4px;
  margin-left: 10px;
}
.appbar .ab-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.appbar .ab-links a:hover,
.appbar .ab-links a.on {
  color: var(--ink);
  background: var(--rule-soft);
}
.appbar .ab-spacer {
  flex: 1;
}
.tabbar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--rule);
}
.tabbar button {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 11px 16px;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.tabbar button:focus-visible {
  outline: none;
  color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
  border-radius: var(--radius-xs);
}
.tabbar button.on {
  color: var(--ink);
}
.tabbar button.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2.5px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  opacity: .8;
  transition: opacity .15s;
}
.breadcrumb a:hover {
  opacity: 1;
  color: var(--primary);
}
.breadcrumb .sep {
  color: var(--ink-2);
  opacity: .4;
}
.breadcrumb .here {
  color: var(--ink);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 230px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.sidebar-nav a .si {
  width: 17px;
  text-align: center;
  opacity: .8;
}
.sidebar-nav a:hover {
  color: var(--ink);
  background: var(--rule-soft);
}
.sidebar-nav a.on {
  color: var(--ink);
  background: color-mix(in srgb, var(--primary) 11%, transparent);
  box-shadow: inset 2px 0 0 var(--primary);
}
.m-panel,
.m-flyout,
.ctxmenu {
  background:
    radial-gradient(
      120% 90% at 18% 0%,
      color-mix(in srgb, var(--paper-2) 55%, var(--paper)) 0%,
      var(--paper) 62%),
    var(--paper);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 2px 4px rgba(0, 0, 0, .05),
    0 22px 50px rgba(0, 0, 0, .18);
}
.navhead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper-2) 40%, white 8%),
      var(--paper-2) 60%,
      color-mix(in srgb, var(--paper-2) 70%, black 6%));
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 5;
}
.navhead .nh-brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.navhead .nh-brand span {
  color: var(--primary);
}
.navhead .nh-spacer {
  flex: 1;
}
.menubar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menubar > li {
  position: relative;
  list-style: none;
}
.m-trigger {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.m-trigger .caret {
  font-size: 8px;
  opacity: .6;
  transition: transform .2s;
}
.menubar > li:hover > .m-trigger,
.menubar > li:focus-within > .m-trigger,
.m-trigger:hover,
.m-trigger.on {
  color: var(--ink);
  background: var(--rule-soft);
}
.menubar > li:hover > .m-trigger .caret,
.menubar > li:focus-within > .m-trigger .caret,
.has-panel.open > .m-trigger .caret {
  transform: rotate(180deg);
}
.m-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 236px;
  padding: 8px;
  border-radius: var(--menu-radius, 14px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 20;
}
.m-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.has-panel:hover > .m-panel,
.has-panel:focus-within > .m-panel,
.has-panel.open > .m-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.m-list {
  display: flex;
  flex-direction: column;
  gap: var(--menu-gap, 6px);
}
.m-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 11px;
  border-radius: calc(var(--menu-radius, 14px) - 6px);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13.5px;
  transition: background .13s;
}
.m-item:hover,
.m-item:focus-visible,
.m-item.on {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.m-item .mi-ico {
  width: 18px;
  text-align: center;
  color: var(--primary);
  flex: none;
  margin-top: 1px;
}
.m-item .mi-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.m-item .mi-title {
  font-weight: 600;
}
.m-item .mi-desc {
  font-size: 11.5px;
  color: var(--ink-2);
  opacity: .85;
  line-height: 1.35;
}
.m-panel.mega {
  min-width: 520px;
  padding: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
}
.has-panel:hover > .m-panel.mega,
.has-panel:focus-within > .m-panel.mega,
.has-panel.open > .m-panel.mega {
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: var(--menu-gap, 6px);
}
.mega-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: .7;
  padding: 6px 11px 3px;
}
.mega-label .pip {
  color: var(--primary);
  opacity: 1;
  margin-right: .45em;
}
.m-sub {
  position: relative;
}
.m-sub > .m-item .mi-arrow {
  margin-left: auto;
  padding-left: 12px;
  opacity: .55;
  font-size: 11px;
  align-self: center;
}
.m-sub:hover > .m-item,
.m-sub:focus-within > .m-item,
.m-sub.open > .m-item {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.m-flyout {
  position: absolute;
  top: -8px;
  left: calc(100% + 7px);
  min-width: 208px;
  padding: 8px;
  border-radius: var(--menu-radius, 14px);
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 30;
}
.m-flyout::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
}
.m-sub:hover > .m-flyout,
.m-sub:focus-within > .m-flyout,
.m-sub.open > .m-flyout {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.acc-menu {
  max-width: 340px;
  border: 1px solid var(--rule);
  border-radius: var(--menu-radius, 14px);
  overflow: hidden;
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 10px 26px rgba(0, 0, 0, .10);
}
.acc-menu details {
  border-bottom: 1px solid var(--rule-soft);
}
.acc-menu details:last-child {
  border-bottom: 0;
}
.acc-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.acc-menu summary::-webkit-details-marker {
  display: none;
}
.acc-menu summary .acc-ico {
  color: var(--primary);
  width: 17px;
  text-align: center;
}
.acc-menu summary .acc-caret {
  margin-left: auto;
  font-size: 10px;
  color: var(--primary);
  opacity: .8;
  transition: transform .2s;
}
.acc-menu details[open] summary .acc-caret {
  transform: rotate(90deg);
}
.acc-body {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-body a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 13.5px;
  transition: background .13s, color .13s;
}
.acc-body a:hover,
.acc-body a:focus-visible {
  color: var(--ink);
  background: var(--rule-soft);
}
.ctx-surface {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  background: color-mix(in srgb, var(--paper-3) 20%, var(--paper));
  border: 1px dashed var(--rule-bold);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 13px;
  user-select: none;
}
.ctxmenu {
  width: 220px;
  padding: 6px;
  border-radius: var(--menu-radius, 14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 22px 50px rgba(0, 0, 0, .22);
}
.ctxmenu.floating {
  position: fixed;
  z-index: 9998;
}
.ctxmenu .cx-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.ctxmenu .cx-item:hover,
.ctxmenu .cx-item:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.ctxmenu .cx-item .cx-ico {
  width: 16px;
  text-align: center;
  color: var(--ink-2);
  flex: none;
}
.ctxmenu .cx-item .kbd {
  margin-left: auto;
}
.ctxmenu .cx-item.danger {
  color: var(--primary);
}
.ctxmenu .cx-item.danger .cx-ico {
  color: var(--primary);
}
.ctxmenu .cx-item.danger:hover,
.ctxmenu .cx-item.danger:focus-visible {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}
.ctxmenu .cx-sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--rule-soft);
}
.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--paper-3) 30%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}
.scrollbox {
  height: 230px;
  overflow-y: auto;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-3) 22%, var(--paper));
  border: 1px solid var(--rule);
  box-shadow: inset 2px 2px 8px rgba(0, 0, 0, .10);
}
.scrollbox p {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 12px;
}
.scrollbox p b {
  color: var(--ink);
}
.toast-stack {
  position: fixed;
  z-index: 9990;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(92vw, 380px);
  pointer-events: none;
}
.toast-stack > .toast {
  pointer-events: auto;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-lg);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  background:
    linear-gradient(
      168deg,
      color-mix(in srgb, var(--paper-2) 42%, white 9%),
      var(--paper-2) 62%,
      color-mix(in srgb, var(--paper-2) 74%, black 6%));
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 30px rgba(0, 0, 0, .20);
}
.toast .t-ico {
  font-size: 1.1em;
  line-height: 1.2;
  color: var(--primary);
  flex: none;
  margin-top: 1px;
}
.toast .t-main {
  flex: 1;
  min-width: 0;
}
.toast .t-title {
  font-weight: 700;
  display: block;
  margin-bottom: 1px;
}
.toast .t-body {
  color: var(--ink-2);
}
.toast .t-close {
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: var(--radius-xs);
  transition: color .13s, background .13s;
}
.toast .t-close:hover {
  color: var(--ink);
  background: var(--rule-soft);
}
.toast .t-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.toast--ok {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.toast--ok .t-ico {
  color: var(--primary);
}
.toast--warn {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.toast--warn .t-ico {
  color: var(--accent);
}
.toast--info {
  border-color: color-mix(in srgb, var(--status) 42%, transparent);
}
.toast--info .t-ico {
  color: var(--status);
}
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 9980;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  backdrop-filter: blur(2px);
}
.modal {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(
      120% 90% at 18% 0%,
      color-mix(in srgb, var(--paper-2) 50%, var(--paper)) 0%,
      var(--paper) 60%),
    var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 70px rgba(0, 0, 0, .4);
}
.modal .m-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 6px;
}
.modal .m-head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  margin: 0;
}
.modal .m-x {
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  transition: color .13s, background .13s;
}
.modal .m-x:hover {
  color: var(--ink);
  background: var(--rule-soft);
}
.modal .m-x:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.modal .m-body {
  padding: 6px 22px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.modal .m-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 20px;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 9970;
  background: color-mix(in srgb, var(--ink) 38%, transparent);
  backdrop-filter: blur(1px);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9971;
  height: 100%;
  width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      120% 60% at 100% 0%,
      color-mix(in srgb, var(--paper-2) 55%, var(--paper)) 0%,
      var(--paper) 60%),
    var(--paper);
  border-left: 1px solid var(--rule);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .30);
}
.drawer.left {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--rule);
  box-shadow: 24px 0 60px rgba(0, 0, 0, .30);
}
.drawer .d-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer .d-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.drawer .d-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  transition: color .13s, background .13s;
}
.drawer .d-x:hover {
  color: var(--ink);
  background: var(--rule-soft);
}
.drawer .d-x:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.drawer .d-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--rule-bold);
  background: color-mix(in srgb, var(--paper-3) 16%, var(--paper));
}
.empty .e-ico {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  font-size: 1.5rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
}
.empty .e-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.empty .e-body {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0;
}
.empty .e-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.codeblock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper-3) 26%, var(--paper));
}
.codeblock .cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
}
.codeblock .cb-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.codeblock .cb-copy {
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  transition:
    color .13s,
    background .13s,
    border-color .13s;
}
.codeblock .cb-copy:hover {
  color: var(--ink);
  border-color: var(--rule-bold);
}
.codeblock .cb-copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 45%, transparent);
}
.codeblock pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  tab-size: 2;
}
.codeblock pre .tok-key {
  color: var(--primary);
}
.codeblock pre .tok-mut {
  color: var(--ink-2);
}
.skel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--paper-3) 42%, var(--paper));
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--ink) 7%, transparent),
      transparent);
  transform: translateX(-100%);
  animation: skel-sweep 1.5s ease-in-out infinite;
}
@keyframes skel-sweep {
  to {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after {
    animation: none;
    opacity: .6;
  }
}
.skel-line {
  height: .8rem;
  border-radius: var(--radius-xs);
}
.skel-line.short {
  width: 55%;
}
.skel-block {
  height: 5rem;
  border-radius: var(--radius-md);
}
.skel-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* ../mb/dispatch.css */
:root {
  --dsp-sidebar-w: 15.5rem;
  --dsp-topbar-h: 3.8rem;
  --dsp-ease: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
}
#app {
  height: 100vh;
}
.dsp-app {
  display: grid;
  grid-template-columns: var(--dsp-sidebar-w) 1fr;
  height: 100vh;
}
.dsp-side {
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dsp-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.1rem 1.2rem 0.9rem;
}
.dsp-side-brand .dsp-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.dsp-side-brand .dsp-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.dsp-side-brand .dsp-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 400;
  margin-top: 1px;
}
.dsp-side .sidebar-nav {
  max-width: none;
  padding: 0.4rem 0.6rem;
  flex: 1;
}
.dsp-side .sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--dsp-ease), color 0.15s var(--dsp-ease);
}
.dsp-side .sidebar-nav button .si {
  width: 17px;
  text-align: center;
  opacity: 0.85;
}
.dsp-side .sidebar-nav button:hover {
  color: var(--ink);
  background: var(--rule-soft);
}
.dsp-side .sidebar-nav button.on {
  color: var(--ink);
  background: var(--rule-soft);
  box-shadow: inset 2px 0 0 var(--primary);
}
.dsp-side-foot {
  border-top: 1px solid var(--rule);
  padding: 0.8rem 0.9rem;
}
.dsp-cockpit-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 6px 8px;
}
.dsp-cockpit-link:hover {
  color: var(--ink);
}
.dsp-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background 0.15s;
}
.dsp-user:hover {
  background: var(--rule-soft);
}
.dsp-ava {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--on-primary);
  background:
    radial-gradient(
      120% 160% at 30% 0%,
      var(--accent),
      var(--primary));
}
.dsp-user .who {
  font-size: 0.84rem;
  line-height: 1.2;
  min-width: 0;
}
.dsp-user .who small {
  display: block;
  color: var(--ink-2);
  font-size: 0.72rem;
}
.dsp-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.dsp-top {
  height: var(--dsp-topbar-h);
  flex: none;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
}
.dsp-top h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.dsp-top .dsp-top-spacer {
  flex: 1;
}
.dsp-content {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.4rem, 3.5vw, 2.75rem);
  width: 100%;
}
.dsp-content.narrow {
  max-width: 100rem;
  margin: 0 auto;
}
.dsp-enginechip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}
.dsp-enginechip.up {
  color: var(--status);
  border-color: color-mix(in srgb, var(--status) 40%, transparent);
}
.dsp-command {
  margin-bottom: 2.25rem;
}
.dsp-command .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}
.dsp-command h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 10.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: var(--head-tracking);
  margin: 0 0 0.5rem;
  line-height: var(--head-leading);
}
.dsp-command p {
  max-width: 52ch;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.dsp-cmdbox {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.dsp-cmdbox .inp {
  font-size: 1rem;
  padding: 0.85rem 1rem;
}
.dsp-cmdbox .b {
  flex: none;
}
.dsp-hints {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.dsp-hints .chip {
  cursor: pointer;
}
.dsp-hints .chip:hover {
  border-color: var(--rule-bold);
  color: var(--ink);
}
.dsp-result {
  margin-top: 2rem;
  animation: dsp-fade 0.4s var(--dsp-ease);
}
@keyframes dsp-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dsp-demo-grid {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.dsp-demo-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dsp-demo-stage {
  min-height: 20rem;
}
.dsp-tree-goal {
  border: 1px solid var(--rule-bold);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.dsp-tree-goal h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
}
.dsp-routetree.replaying .dsp-step {
  opacity: 0;
  animation: dsp-fade 0.5s var(--dsp-ease) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .dsp-routetree.replaying .dsp-step {
    opacity: 1 !important;
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .dsp-demo-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dsp-result,
  .dsp-result * {
    animation: none !important;
  }
}
.dsp-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.dsp-result-head h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.dsp-result-head .meta {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-2);
}
.dsp-answer {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.75rem;
  white-space: pre-wrap;
}
.dsp-answer.headline-answer {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dsp-route {
  display: flex;
  flex-direction: column;
}
.dsp-step {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
}
.dsp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dsp-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--paper);
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.dsp-line {
  width: 2px;
  flex: 1;
  background: var(--rule);
  margin: 4px 0;
  min-height: 12px;
}
.dsp-step:last-child .dsp-line {
  display: none;
}
.dsp-card {
  background: color-mix(in srgb, var(--paper-2) 45%, var(--paper));
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
}
.dsp-card .rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dsp-card h3 {
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}
.dsp-card .tool {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.dsp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.65rem;
  color: var(--ink-2);
}
.dsp-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-2);
}
.dsp-status.ready {
  color: var(--status);
}
.dsp-status.ready::before {
  background: var(--status);
}
.dsp-status.wait {
  color: var(--accent);
}
.dsp-status.wait::before {
  background: var(--accent);
}
.dsp-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0;
}
.dsp-audit {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--status);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--status) 5%, var(--paper));
}
.dsp-audit-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.dsp-audit-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status);
  font-weight: 600;
}
.dsp-audit-sub {
  font-size: 0.82rem;
  color: var(--ink-2);
}
.dsp-audit-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.dsp-audit-key {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed color-mix(in srgb, var(--status) 55%, var(--rule));
  border-radius: var(--radius-pill);
  padding: 0.34em 0.8em;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.15s;
}
.dsp-audit-key:hover {
  border-color: var(--status);
}
.dsp-audit-key .k {
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.64rem;
}
.dsp-audit-key .v {
  color: var(--status);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}
.dsp-audit-key .c {
  color: var(--ink-2);
  font-size: 0.64rem;
}
.dsp-audit-key.is-copied .c {
  color: var(--primary);
}
.dsp-audit-stats {
  display: flex;
  gap: 0.4rem 0.9rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
}
.dsp-audit-stats .ok {
  color: var(--status);
}
.dsp-audit-stats .warn {
  color: var(--accent);
}
.dsp-audit-stats .stop {
  color: var(--primary);
}
.dsp-audit-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-2);
}
.dsp-audit-toggle:hover {
  color: var(--ink);
}
.dsp-audit-tree {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  counter-reset: audit;
}
.dsp-audit-tree li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule-soft);
}
.dsp-audit-tree li::before {
  counter-increment: audit;
  content: counter(audit);
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--status);
  min-width: 1.2em;
}
.dsp-audit-leaf {
  flex: 1;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.45;
}
.dsp-audit-pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--status);
  border: 1px solid color-mix(in srgb, var(--status) 40%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.1em 0.55em;
}
.dsp-audit-trace {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.dsp-next {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  background: color-mix(in srgb, var(--primary) 7%, var(--paper));
}
.dsp-next h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.dsp-next-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.dsp-cat-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dsp-cat-bar .search-wrap {
  flex: 1;
  min-width: 12rem;
  max-width: 24rem;
}
.dsp-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.9rem;
}
.dsp-cat-card {
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  background: color-mix(in srgb, var(--paper-2) 40%, var(--paper));
  cursor: pointer;
  transition:
    border-color 0.18s var(--dsp-ease),
    transform 0.12s var(--dsp-ease),
    box-shadow 0.18s var(--dsp-ease);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: var(--font-ui);
}
.dsp-cat-card:hover {
  border-color: var(--rule-bold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.dsp-cat-card h3 {
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}
.dsp-cat-card .cc-sub {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dsp-cat-card .cc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.35rem;
}
.dsp-cat-card .cc-run {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
}
.dsp-workspace {
  display: grid;
  grid-template-columns: 20rem 1fr;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.dsp-listcol {
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dsp-listhead {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dsp-listhead .label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
}
.dsp-listitems {
  overflow-y: auto;
  flex: 1;
}
.dsp-listitem {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  background: transparent;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s var(--dsp-ease);
  font-family: var(--font-ui);
}
.dsp-listitem:hover {
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
}
.dsp-listitem.on {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}
.dsp-listitem h3 {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--ink);
}
.dsp-listitem .li-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
}
.dsp-detailcol {
  overflow-y: auto;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.dsp-detailhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.dsp-detailhead h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0.4rem 0 0;
  letter-spacing: -0.02em;
}
.dsp-detailhead .sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  margin-top: 0.4rem;
}
.dsp-detailhead .label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
}
.dsp-metagrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.dsp-metagrid .stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper-2) 40%, var(--paper));
}
.dsp-metagrid .stat .s-num {
  font-size: 1.5rem;
  margin: 4px 0 0;
}
.dsp-steplist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.dsp-steplist li {
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dsp-steplist li.on {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--primary);
}
.dsp-steplist .n {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
}
.dsp-section-sub {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-2);
  margin: 1.75rem 0 0.4rem;
}
.dsp-connectrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dsp-connectrow:last-child {
  border-bottom: 0;
}
.dsp-connectid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dsp-connecticon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex: none;
}
.dsp-connectid .name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
}
.dsp-connectid .st {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.dsp-connectid .st.ok {
  color: var(--status);
}
.dsp-connectid .st.off {
  color: var(--ink-2);
}
.dsp-skel-route {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.dsp-skel-row {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 1rem;
  align-items: start;
}
#dsp-theme {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.dsp-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dsp-kbd:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--primary);
}
.dsp-usagechip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  overflow: hidden;
  white-space: nowrap;
}
.dsp-usagechip .uc-tier {
  padding: 4px 9px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  font-weight: 600;
}
.dsp-usagechip .uc-sep {
  padding: 4px 9px;
  border-left: 1px solid var(--rule);
}
.dsp-result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1.1rem;
}
.dsp-trust .dsp-trust-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.dsp-trust .dsp-trust-list li {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0.2rem 0;
}
.dsp-segbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.dsp-seg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s var(--dsp-ease);
}
.dsp-seg:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.dsp-seg.on {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}
.dsp-seg .seg-n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.8;
}
.dsp-connect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
}
.dsp-connectid .st.on {
  color: var(--status);
}
.dsp-mcp-snip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0;
  overflow-x: auto;
  color: var(--ink);
  white-space: pre;
}
.dsp-andorwrap {
  margin-top: 0.75rem;
}
.dsp-crumbbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
}
.dsp-crumbbar .helper {
  color: var(--ink-2);
  font-size: 0.72rem;
}
.dsp-andchain {
  display: flex;
  flex-direction: column;
}
.dsp-andstep {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  cursor: pointer;
}
.dsp-andstep:hover .dsp-andcard {
  border-color: var(--rule-bold);
  background: color-mix(in srgb, var(--paper-2) 55%, var(--paper));
}
.dsp-andstep.on .dsp-andcard {
  box-shadow: 0 0 0 2px var(--primary);
}
.dsp-andrail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dsp-andcard {
  background: color-mix(in srgb, var(--paper-2) 40%, var(--paper));
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.dsp-orwrap {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.dsp-oralt {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  opacity: 0.7;
  cursor: pointer;
}
.dsp-oralt:hover {
  opacity: 1;
  border-color: var(--rule-bold);
}
.dsp-oralt.is-chosen {
  opacity: 1;
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--paper));
}
.dsp-oralt .score {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
}
.dsp-cattable {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--paper-2) 35%, var(--paper));
}
.dsp-pal-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.dsp-pal {
  width: 100%;
  max-width: 34rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--ink) 55%, transparent);
  overflow: hidden;
  animation: dsp-pal-in 0.14s var(--dsp-ease) both;
}
@keyframes dsp-pal-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dsp-pal-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 1rem 1.1rem;
  outline: none;
}
.dsp-pal-list {
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.35rem;
}
.dsp-pal-empty {
  padding: 1rem 1.1rem;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.dsp-pal-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dsp-pal-row.on {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.dsp-pal-row .pal-ic {
  width: 1.2rem;
  text-align: center;
  color: var(--primary);
  flex: none;
}
.dsp-pal-row .pal-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dsp-pal-row .pal-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  flex: none;
}
@media (max-width: 900px) {
  .dsp-app {
    grid-template-columns: 1fr;
  }
  .dsp-side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .dsp-side .sidebar-nav {
    flex-direction: row;
  }
  .dsp-side-brand small,
  .dsp-side-foot {
    display: none;
  }
  .dsp-workspace {
    grid-template-columns: 1fr;
  }
  .dsp-listcol {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    max-height: 38vh;
  }
  .dsp-metagrid {
    grid-template-columns: 1fr;
  }
  .dsp-usagechip .uc-tier {
    display: none;
  }
}
.dsp-cfgcard {
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}
.dsp-cfgcard .chip {
  cursor: pointer;
}
.dsp-metagrid .stat .helper {
  margin-top: 0.3rem;
  font-size: 0.72rem;
}
.dsp-outcome {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid;
  white-space: nowrap;
}
.dsp-outcome.is-solved {
  color: var(--ink-2);
  border-color: var(--ink-2);
  border-style: dashed;
  background: transparent;
}
.dsp-outcome.is-exec {
  color: var(--status, #1c7c54);
  border-color: var(--status, #1c7c54);
  border-style: solid;
  background: color-mix(in srgb, var(--status, #1c7c54) 10%, transparent);
}
.dsp-flow {
  margin: 0.9rem 0 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper-2) 40%, var(--paper));
  overflow-x: auto;
}
.dsp-flow svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.dsp-trust-strip {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.dsp-trust-strip strong {
  color: var(--ink-1);
  font-weight: 600;
}
@media (min-width: 60rem) {
  .dsp-trust-strip {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
}
.dsp-status.stop {
  color: var(--primary);
}
.dsp-status.stop::before {
  background: var(--primary);
}
.dsp-trycase {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.dsp-trycase h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.dsp-trycase-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.dsp-trycase-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.dsp-trycase-input:focus {
  outline: none;
  border-color: var(--accent);
}
.dsp-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 24px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.dsp-workspace-head h2 {
  margin: 6px 0 0;
}
.dsp-workspace-pick {
  display: flex;
  gap: 8px;
}
.dsp-workspace-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 16px;
  margin-top: 16px;
}
.dsp-action-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dsp-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.dsp-action:hover {
  background: var(--surface-2);
}
.dsp-action span {
  color: var(--ink-2);
  font-size: .76rem;
}
.dsp-action:disabled {
  opacity: .55;
  cursor: wait;
}
.dsp-workspace-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.dsp-workspace-flow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dsp-workspace-flow li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dsp-workspace-flow .n {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: .72rem;
}
.dsp-workspace-result {
  margin-top: 16px;
}
.dsp-ready {
  min-height: 120px;
}
.dsp-key-fallback {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .78rem;
}
.dsp-key-fallback summary {
  cursor: pointer;
  margin-bottom: 8px;
}
.dsp-key-fallback .b {
  margin-top: 8px;
}
@media (max-width: 840px) {
  .dsp-workspace-head,
  .dsp-workspace-grid {
    grid-template-columns: 1fr;
  }
}
.dsp-map {
  margin-bottom: 16px;
}
.dsp-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dsp-map-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dsp-map-canvas {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-top: 10px;
  max-height: 460px;
}
.dsp-map-svg {
  display: block;
  touch-action: none;
  user-select: none;
}
.dsp-map-edge {
  stroke: var(--line);
  stroke-width: 1.5;
}
.dsp-map-edge.is-causal {
  stroke: var(--primary);
  stroke-width: 2;
}
.dsp-map-edge.is-associative {
  stroke: var(--ink-2);
  stroke-dasharray: 4 4;
}
.dsp-map-node {
  cursor: grab;
}
.dsp-map-node:active {
  cursor: grabbing;
}
.dsp-map-node rect {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
}
.dsp-map-node.is-algorithm rect {
  fill: var(--paper);
  stroke: var(--primary);
}
.dsp-map-node.is-run rect {
  stroke-dasharray: 3 3;
}
.dsp-map-node.on rect {
  stroke: var(--primary);
  stroke-width: 2.5;
}
.dsp-map-node text {
  fill: var(--ink);
  font-size: .76rem;
  pointer-events: none;
}
.dsp-map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ../mb/human-schema.css */
.physea-map {
  --map-bg: var(--surface, #f4f1ea);
  --map-ink: var(--ink, #171a1f);
  --map-muted: var(--ink-2, #60656f);
  --map-line: var(--line, rgba(23, 26, 31, .2));
  --map-accent: var(--primary, #b7442a);
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  color: var(--map-ink);
  font: 14px/1.45 var(--font-sans, Inter, system-ui, sans-serif);
}
.physea-map__toggle,
.physea-map__close {
  border: 1px solid var(--map-line);
  background: var(--map-bg);
  color: var(--map-ink);
  min-height: 40px;
  padding: 0 16px;
  font: 700 12px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.physea-map__toggle {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.physea-map__toggle:focus-visible,
.physea-map__close:focus-visible,
.physea-map summary:focus-visible {
  outline: 2px solid var(--map-accent);
  outline-offset: 3px;
}
.physea-map__panel {
  width: min(392px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--map-line);
  background: var(--map-bg);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.physea-map__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--map-line);
}
.physea-map__label,
.physea-map__foot {
  margin: 0 0 8px;
  color: var(--map-muted);
  font: 700 11px/1.2 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.physea-map__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.physea-map__purpose {
  margin: 8px 0 0;
  max-width: 34ch;
  color: var(--map-muted);
}
.physea-map__close {
  min-height: 32px;
  padding: 0 10px;
}
.physea-map__subjects {
  padding: 8px 24px;
}
.physea-map__subject {
  border-bottom: 1px solid var(--map-line);
}
.physea-map__subject > summary,
.physea-map__contexts > summary,
.physea-map__more > summary {
  cursor: pointer;
  list-style: none;
}
.physea-map__subject > summary::-webkit-details-marker,
.physea-map__contexts > summary::-webkit-details-marker,
.physea-map__more > summary::-webkit-details-marker {
  display: none;
}
.physea-map__subject > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 52px;
  gap: 16px;
}
.physea-map__subject > summary::before {
  content: "\203a";
  grid-column: 2;
  grid-row: 1;
  color: var(--map-muted);
}
.physea-map__subject[open] > summary::before {
  transform: rotate(90deg);
}
.physea-map__subject-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 700;
}
.physea-map__state {
  grid-column: 1;
  grid-row: 2;
  color: var(--map-muted);
  font: 700 10px/1 var(--font-mono, ui-monospace, monospace);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.physea-map__state.is-ready {
  color: var(--map-accent);
}
.physea-map__body {
  padding: 0 0 16px;
}
.physea-map__summary {
  margin: 0;
  max-width: 38ch;
  color: var(--map-muted);
}
.physea-map__more {
  margin-top: 12px;
}
.physea-map__more > summary,
.physea-map__contexts > summary {
  color: var(--map-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.physea-map__connections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}
.physea-map__connection {
  border: 1px solid var(--map-line);
  padding: 4px 8px;
  font-size: 12px;
}
.physea-map__contexts {
  margin: 8px 24px 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--map-line);
}
.physea-map__context {
  display: grid;
  gap: 3px;
  padding-top: 12px;
}
.physea-map__context span {
  color: var(--map-muted);
}
.physea-map__foot {
  margin: 0;
  padding: 16px 24px;
}
@media (max-width: 520px) {
  .physea-map {
    right: 8px;
    bottom: 8px;
  }
  .physea-map__panel {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .physea-map__panel {
    animation: physea-map-in 160ms ease-out;
  }
  @keyframes physea-map-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* src/styles.css */
:root {
  --surface: var(--paper);
  --surface-2: var(--paper-2);
  --ink-1: var(--ink);
  --line: var(--rule);
}
