:root {
  /* layout: a list of sections beside one column of live specimens. Grays throughout; blue marks what is the operator's; each agent has one soft color, used only on its mark. */
  --page: #f6f5f1;
  --card: #fdfdfb;
  --wash: #f0efea;
  --line: #e4e3dd;
  --edge: #cdccc4;
  --ink: #23221c;
  --soft: #55544d;
  --muted: #706f67;
  --court: #3a6bd0;
  --on-court: #ffffff;
  --mine: #e3ebfa;
  --ask: #f1f5fd;
  --work: #8f8e86;
  --a-design: #6f52c4;
  --a-eng: #1d7f6e;
  --a-sec: #b0532a;
  --a-test: #b0447c;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #141310;
    --card: #1b1a16;
    --wash: #24231e;
    --line: #2d2c26;
    --edge: #47463e;
    --ink: #eceae4;
    --soft: #b9b7ae;
    --muted: #8f8e85;
    --court: #7ba4ee;
    --on-court: #10131a;
    --mine: #22334e;
    --ask: #1b2332;
    --work: #7b7a72;
    --a-design: #b3a1ee;
    --a-eng: #6cc9b7;
    --a-sec: #e69c7a;
    --a-test: #e896bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #141310;
  --card: #1b1a16;
  --wash: #24231e;
  --line: #2d2c26;
  --edge: #47463e;
  --ink: #eceae4;
  --soft: #b9b7ae;
  --muted: #8f8e85;
  --court: #7ba4ee;
  --on-court: #10131a;
  --mine: #22334e;
  --ask: #1b2332;
  --work: #7b7a72;
  --a-design: #b3a1ee;
  --a-eng: #6cc9b7;
  --a-sec: #e69c7a;
  --a-test: #e896bf;
  color-scheme: dark;
}

* { box-sizing: border-box; }
i { font-style: normal; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 32px 16px 72px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.lede { color: var(--soft); margin-top: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--court);
  outline-offset: 2px;
}

.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

.level { display: flex; flex-direction: column; gap: 10px; }
.level-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.level-head h2 { font-size: 13px; font-weight: 500; }
.level-head p { font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 4px; }
.stack--loose { gap: 8px; }

/* the card: a flat surface with a hairline edge */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card--line, .card--default { transition: border-color .12s ease; }
.card--line:hover, .card--default:hover { border-color: var(--edge); }

/* the one line every level starts with */
.line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.name { color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
a.name:hover { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.desc { color: var(--soft); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* status: blue is in your court, a filled gray dot that pulses is agents working */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--court { background: var(--court); }
.dot--work { background: var(--work); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* collapsed */
.card--line { padding: 9px 14px; }

/* default */
.card--default { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.more { color: var(--soft); padding-left: 18px; }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; padding-left: 18px; margin-top: 4px; }

/* tiny previews */
.thumbs { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.thumb {
  width: 40px; height: 25px; flex: none;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--wash);
  display: block; overflow: hidden; padding: 0;
  transition: border-color .12s ease;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.thumb:hover, button.thumb:hover { border-color: var(--edge); }
button.thumb { cursor: pointer; }

/* agents: four small line marks */
.agents { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.agents .av { width: 20px; height: 20px; }
.agents .av .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.ico {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.btn {
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--wash); border-color: var(--edge); }
.btn:disabled { color: var(--muted); background: transparent; border-color: var(--line); cursor: default; }
.btn--yours {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--court); border-color: var(--court); color: var(--on-court);
  padding: 7px 14px;
  transition: filter .12s ease;
}
.btn--yours:hover { background: var(--court); border-color: var(--court); filter: brightness(1.08); }
.btn--yours .ico { width: 13px; height: 13px; stroke-width: 2; }
.foot .btn--yours { flex: 1; max-width: 240px; margin-left: 0; }

/* two screens stacked like paper; they part on hover */
.pile { display: inline-flex; gap: 4px; margin-left: auto; flex: none; text-decoration: none; }
.pile .thumb { width: 44px; height: 28px; position: relative; transition: transform .18s ease; }
.pile .thumb:first-child { transform: translateX(30px) rotate(-5deg); z-index: 1; }
.pile .thumb:last-child { transform: rotate(4deg); }
.pile:hover .thumb, .pile:focus-visible .thumb { transform: none; }
.linkbtn {
  font: inherit; font-size: 13px;
  color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--ink); }

/* expanded */
.card--open { padding: 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 22px; }
.open-head { display: flex; flex-direction: column; gap: 6px; }
.open-top { display: flex; align-items: center; gap: 10px; }
.open-top h3 { font-size: 17px; font-weight: 500; flex: 1; min-width: 0; }
.x {
  width: 28px; height: 28px; margin: -4px -6px -4px 0;
  display: grid; place-items: center;
  color: var(--muted); text-decoration: none;
  font-size: 20px; line-height: 1;
  border-radius: 7px;
  transition: background .12s ease, color .12s ease;
}
.x:hover { background: var(--wash); color: var(--ink); }
.open-more { color: var(--soft); }

.block { display: flex; flex-direction: column; gap: 16px; }
.msg p.ask { color: var(--ink); font-weight: 500; }
.msg--ask {
  background: var(--ask);
  border-radius: 10px;
  margin: 0 -10px;
  padding: 12px 10px;
  transition: background .2s ease;
}
.msg--ask.is-done { background: transparent; }
.msg--ask:not(.is-done) .av--u, .msg--ask:not(.is-done) .btn { background: var(--card); }
.msg--ask:not(.is-done) .btn:hover { background: var(--wash); }
.msg--ask:not(.is-done) .linkbtn { color: var(--soft); }
.msg > .opts { display: flex; gap: 8px; margin-top: 8px; }
.opt { display: flex; flex-direction: column; gap: 6px; width: 120px; transition: opacity .2s ease; }
.opt.is-dim { opacity: .45; }
.opt .thumb { width: 120px; height: 75px; border-radius: 6px; }
.opt .thumb[aria-expanded="true"], .opt.is-chosen .thumb { border-color: var(--ink); }
.opt .btn { width: 100%; padding: 6px 8px; }
.opt.is-chosen .btn:disabled { background: var(--ink); border-color: var(--ink); color: var(--card); }
.msg > .viewer { max-width: 248px; margin-top: 10px; cursor: zoom-out; animation: fade .18s ease-out; }
.msg > .again { margin-top: 10px; justify-self: start; }

/* mock:start  a screen of the operator's own app, drawn in its own palette and scaled by its width */
.shot { container-type: inline-size; }
.mock {
  --m-ink: #111827; --m-muted: #9ca3af; --m-line: #eceef1; --m-acc: #f59e0b; --m-soft: #fef3c7;
  background: #ffffff; color: var(--m-ink);
  border: 1px solid var(--line); border-radius: .7em;
  font-size: 6.25cqw; line-height: 1.25; text-align: left;
  aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; flex-direction: column;
}
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: .55em .8em; border-bottom: 1px solid var(--m-line); font-weight: 500; }
.mock-bar span { color: var(--m-muted); font-weight: 400; }
.mock-list { list-style: none; margin: 0; padding: .2em .8em; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.mock-list li { display: grid; grid-template-columns: 3.1em 1fr auto; gap: .6em; align-items: center; }
.mock-list time { color: var(--m-muted); font-variant-numeric: tabular-nums; }
.mock-list span:last-child { color: var(--m-muted); }
.mock-list .now { background: var(--m-soft); box-shadow: -.35em 0 0 var(--m-soft), .35em 0 0 var(--m-soft); border-radius: .2em; }
.mock-list .now time { color: #92400e; font-weight: 500; }
.mock-cal { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(3, 1fr); gap: .35em; padding: .45em .8em .7em; }
.mock-cal .d { color: var(--m-muted); text-align: center; font-size: .9em; }
.mock-cal i { background: var(--m-soft); border-left: .25em solid var(--m-acc); border-radius: .3em; }
.mock-cal i.hot { background: var(--m-acc); }
.mock-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7em; padding: .5em .8em; align-content: start; }
.mock-cols b { display: block; margin-bottom: .35em; font-weight: 500; }
.mock-cols p { margin: 0 0 .3em; padding: .35em .5em; background: var(--m-soft); border-radius: .4em; color: var(--m-ink); display: flex; justify-content: space-between; gap: .4em; }
.mock-next { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .2em; padding: .5em .9em; }
.mock-next small { color: var(--m-muted); font-size: .9em; }
.mock-next strong { font-size: 1.7em; line-height: 1.1; font-weight: 500; }
.mock-next span { color: var(--m-muted); }
.mock-next em { font-style: normal; color: var(--m-muted); border-top: 1px solid var(--m-line); padding-top: .45em; margin-top: .4em; }
/* mock:end */

/* the conversation: each agent's mark sits in a soft circle of its own color beside its name, the operator speaks in a light blue bubble, and Ultrasolo asks the decision as the latest message */
.talk { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.msg { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; }
.msg > * { grid-column: 2; min-width: 0; }
.msg > .av { grid-column: 1; grid-row: 1; }
.av {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--a, var(--muted));
  background: var(--wash);
  background: color-mix(in srgb, var(--a, var(--muted)) 15%, var(--card));
}
.av--d { --a: var(--a-design); }
.av--e { --a: var(--a-eng); }
.av--s { --a: var(--a-sec); }
.av--t { --a: var(--a-test); }
.av--u { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; font-weight: 500; }
.av .ico { width: 13px; height: 13px; stroke-width: 2; }
.msg-head { display: flex; align-items: center; min-height: 24px; font-size: 13px; font-weight: 500; color: var(--ink); }
.msg p { color: var(--soft); }
.earlier summary {
  list-style: none; cursor: pointer; width: fit-content;
  font-size: 13px; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px;
}
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary:hover { color: var(--ink); }
.earlier .less-l, .earlier[open] .more-l { display: none; }
.earlier[open] .less-l { display: inline; }
.earlier-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.msg--you { display: flex; flex-direction: column; align-items: flex-end; }
.msg--you .linkbtn { margin-top: 4px; }
.msg--you p { background: var(--mine); color: var(--ink); padding: 7px 12px; border-radius: 12px 12px 3px 12px; max-width: 82%; overflow-wrap: anywhere; }
.event { align-self: flex-end; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.msg.in, .event.in { animation: fade .18s ease-out; }
@keyframes fade {
  from { opacity: .3; }
  to { opacity: 1; }
}
.typing { display: flex; align-items: baseline; color: var(--muted); font-size: 13px; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .shine {
    background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 38%, var(--ink) 50%, var(--muted) 62%, var(--muted) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2.2s linear infinite;
  }
}
@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
.ell { color: var(--soft); letter-spacing: .08em; }
.ell i { opacity: .25; animation: wave 1.4s ease-in-out infinite; }
.ell i:nth-child(2) { animation-delay: .18s; }
.ell i:nth-child(3) { animation-delay: .36s; }
@keyframes wave {
  0%, 60%, 100% { opacity: .25; }
  30% { opacity: 1; }
}

.say {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
  transition: border-color .12s ease;
}
.say:focus-within { border-color: var(--ink); }
.say input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; outline: none;
  padding: 5px 0;
}
.say input::placeholder { color: var(--muted); }
.send {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--card);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.send .ico { width: 15px; height: 15px; stroke-width: 2; }

/* direction */
.rules { list-style: none; padding: 0; display: flex; flex-direction: column; }
.rules li { color: var(--soft); padding: 9px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .dot--work, .viewer, .msg.in, .event.in, .shine { animation: none; }
  .ell i { animation: none; opacity: 1; }
  .card--line, .card--default, .thumb, .btn, .opt, .x, .say, .msg--ask, .pile .thumb { transition: none; }
}

/* ---------- style guide: page scaffolding ---------- */
body { padding: 32px 16px 96px; }
.page { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
main { max-width: 640px; margin: 0; gap: 52px; min-width: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 900px) {
  .page { grid-template-columns: 150px minmax(0, 1fr); gap: 64px; }
  .toc { position: sticky; top: 28px; align-self: start; flex-direction: column; flex-wrap: nowrap; gap: 8px; padding-top: 6px; }
}
.level { gap: 14px; scroll-margin-top: 20px; }
.level-head { flex-direction: column; gap: 2px; }
.level-head h2 { font-size: 15px; }
.item { display: flex; flex-direction: column; gap: 8px; }
.item h3 { font-size: 13px; font-weight: 500; }
.item > p, .note { font-size: 13px; color: var(--soft); }
.spec { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spec--page { background: var(--page); }
.spec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cap { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.named { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.named--mid { align-items: center; }
code { font-family: var(--mono); font-size: 12px; color: var(--soft); }

/* ---------- color ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }
.sw { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sw > i { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.sw > div { display: flex; flex-direction: column; min-width: 0; }
.sw b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink); }
.sw span { font-size: 13px; color: var(--soft); }
.sw small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.group-label { font-size: 12px; color: var(--muted); }
details.tokens summary { list-style: none; cursor: pointer; width: fit-content; font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
details.tokens summary::-webkit-details-marker { display: none; }
details.tokens summary:hover { color: var(--ink); }
pre.code { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--soft); font-family: var(--mono); font-size: 12px; line-height: 1.6; overflow-x: auto; }

/* ---------- type ---------- */
.type-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.type-row:last-child { border-bottom: 1px solid var(--line); }
.t20 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.t17 { font-size: 17px; font-weight: 500; }
.t15 b { font-weight: 500; }
.t15 span { color: var(--soft); }
.t13 { font-size: 13px; color: var(--muted); }
.t12 { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- space and shape ---------- */
.scale { display: grid; grid-template-columns: 34px auto minmax(0, 1fr); gap: 8px 12px; align-items: center; font-size: 13px; color: var(--soft); }
.scale b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink); }
.scale i { height: 8px; border-radius: 2px; background: var(--edge); }
.radii { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.radii .named i { width: 52px; height: 36px; border: 1px solid var(--edge); background: var(--wash); }

/* ---------- fields and small controls ---------- */
.field { font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 100%; min-width: 0; transition: border-color .12s ease; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip[aria-pressed="true"] { background: var(--wash); color: var(--ink); font-weight: 500; }
.chip--court[aria-pressed="true"] { background: var(--mine); border-color: transparent; }
.toggle { width: 34px; height: 20px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); position: relative; flex: none; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--work); transition: transform .12s ease; }
.toggle[aria-checked="true"]::after { transform: translateX(14px); background: var(--ink); }
.flag { font-size: 12px; color: var(--ink); background: var(--mine); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.spec .opt { width: auto; }
.spec .opt .btn { width: auto; }

/* ---------- menus ---------- */
.menu { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-size: 13px; overflow-x: auto; }
.menu .brand { font-weight: 500; color: var(--ink); padding: 10px 0; margin-right: 4px; white-space: nowrap; }
.menu a { color: var(--muted); text-decoration: none; padding: 10px 0; border-bottom: 1.5px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.menu .gap { flex: 1; min-width: 8px; }
.count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; color: var(--ink); }

/* ---------- lists and numbers ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card); min-width: 0; }
.tile small { font-size: 12px; color: var(--muted); }
.tile b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile.is-on { background: var(--wash); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td:first-child { color: var(--ink); }
.table tr.is-on td { background: var(--wash); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:first-child { border-top: 1px solid var(--line); }
.row .k { color: var(--muted); font-size: 13px; }
.row .v { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.vers { display: flex; flex-direction: column; gap: 6px; }
.ver { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; background: var(--card); }
.ver b { font-weight: 500; }
.ver small { font-size: 12px; color: var(--muted); }
.ver.is-on { background: var(--wash); }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.col h4 { margin: 0 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 400; color: var(--muted); }
.empty { font-size: 13px; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- info box ---------- */
.boxes { display: flex; flex-direction: column; gap: 14px; }
.box { border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.box-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.box-head h4 { margin: 0; flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.box-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.box-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; }
.box-row + .box-row { border-top: 1px solid var(--line); }
.box-row .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.box-row .what span { font-size: 13px; color: var(--muted); }
.box-row .k { flex: none; width: 104px; font-size: 13px; color: var(--muted); }
.box-row .v { flex: 1; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.box-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.box-foot .gap, .notice .gap { flex: 1; }
.meter { display: flex; flex-direction: column; gap: 7px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.meter-top b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink); }

/* ---------- fuller fields ---------- */
.lab { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.lab small { font-size: 12px; color: var(--muted); }
.lab.is-wrong .field { border-color: var(--court); }
.lab.is-wrong small { color: var(--ink); }
textarea.field { display: block; resize: vertical; min-height: 76px; line-height: 1.45; }
.select { position: relative; display: block; }
.select select.field { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 4px; background: var(--card); cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border-right: 1.5px solid var(--card); border-bottom: 1.5px solid var(--card); transform: rotate(45deg); }
.check input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--card); }
.check input:focus-visible, .seg button:focus-visible, .pop button:focus-visible, .stepper button:focus-visible { outline: 2px solid var(--court); outline-offset: 2px; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.seg button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--wash); color: var(--ink); font-weight: 500; }

/* ---------- notices ---------- */
.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--soft); }
.notice p { flex: 1; min-width: 160px; }
.notice--yours { background: var(--ask); border-color: transparent; color: var(--ink); }
.notice--yours .btn { background: var(--card); }
.blank { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.blank b { font-weight: 500; }
.blank span { font-size: 13px; color: var(--muted); max-width: 300px; }
.blank .btn { margin-top: 10px; }

/* ---------- menu parts ---------- */
.trail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.trail a { color: var(--muted); text-decoration: none; }
.trail a:hover, .trail [aria-current] { color: var(--ink); }
.trail i { font-style: normal; color: var(--edge); }
.pop { display: inline-flex; flex-direction: column; min-width: 176px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pop button { font: inherit; font-size: 13px; color: var(--soft); text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.pop button:hover { background: var(--wash); color: var(--ink); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px -4px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.stepper button { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font: inherit; font-size: 15px; line-height: 1; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.stepper button:hover { background: var(--wash); border-color: var(--edge); }
.stepper button:disabled { color: var(--edge); background: transparent; border-color: var(--line); cursor: default; }
.stepper b { font-weight: 500; color: var(--ink); padding-left: 6px; font-variant-numeric: tabular-nums; }
.stepper span { padding-right: 6px; }

/* ---------- projects, chart, log ---------- */
.projs { display: flex; flex-direction: column; gap: 8px; }
.proj { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; text-decoration: none; transition: border-color .12s ease; }
.proj:hover { border-color: var(--edge); }
.proj-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); font-weight: 500; color: var(--soft); }
.proj .what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.proj .what b { font-weight: 500; }
.proj .what span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
svg.chart { display: block; width: 100%; height: 96px; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.log { display: flex; flex-direction: column; }
.log-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.log-row:first-child { border-top: 1px solid var(--line); }
.log-row b { font-weight: 500; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .toggle::after, .field, .proj { transition: none; }
}
