/* Clastra's product look, the November 7, 2026 design (the website's design/screens): a port of the
   prototype's one style sheet, rules and values as they are. The fonts are Google Fonts' own
   @font-face rules for the prototype's link, with each file kept in the package and served from
   our own address (src/autopilot/third_party/fonts). The token block below them is written by
   ci/tokens_to_css.py from the product group of ci/tokens.json. */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(newsreader-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Written by ci/tokens_to_css.py from the product group of ci/tokens.json, a copy
   of the website's design/tokens.json at commit f53b92f. Change the tokens,
   not these rules. */
.cx, .si, .rkw, .gw {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --accent: #8b6fea;
  --on-accent: #ffffff;
  --bg: #262624;
  --side: #1f1e1d;
  --raise: #30302e;
  --raise-2: #3a3a37;
  --sunk: #1b1a19;
  --bubble: #141413;
  --line: rgba(222, 220, 209, .12);
  --line-2: rgba(222, 220, 209, .22);
  --ink: #f5f4ee;
  --ink-2: #c6c4ba;
  --ink-3: #9d9b92;
  --accent-ink: color-mix(in oklab, var(--accent) 62%, white);
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --good: #5fbf7a;
  --warn: #e3a43b;
  --bad: #e8664f;
  --idle: #5a5955;
  --pop: 0 12px 40px -8px rgba(0, 0, 0, .55), 0 0 0 1px rgba(222, 220, 209, .1);
  color-scheme: dark;
}
.cx.light, .si.light, .rkw.light {
  --bg: #faf9f6;
  --side: #f3f1ec;
  --raise: #ffffff;
  --raise-2: #efede7;
  --sunk: #ebe9e2;
  --bubble: #ebe8e0;
  --line: rgba(31, 30, 29, .12);
  --line-2: rgba(31, 30, 29, .22);
  --ink: #1f1e1d;
  --ink-2: #4a4843;
  --ink-3: #6f6d66;
  --accent-ink: color-mix(in oklab, var(--accent) 78%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --good: #2f8a4a;
  --warn: #a86c00;
  --bad: #c2412b;
  --idle: #b9b6ad;
  --pop: 0 12px 40px -10px rgba(31, 30, 29, .22), 0 0 0 1px rgba(31, 30, 29, .1);
  color-scheme: light;
}
.si.dark { --bg: #1d1c1b; }
:where(.cx, .si, .rkw) * { box-sizing: border-box; }
:where(.cx, .si, .rkw) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.cx, .si) :where(input, textarea) { font: inherit; color: inherit; }
:where(.cx, .si) :where(a) { color: inherit; text-decoration: none; }
.cx :focus-visible, .si :focus-visible, .rkw :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.s { width: 16px; height: 16px; }
.ic.xs { width: 14px; height: 14px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--idle); }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.lent { background: var(--accent); }
.dot.ring { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* ---------- shell ---------- */
.cx { display: flex; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; position: relative; }
.sb { width: 288px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; transition: width .2s ease; }
.sb.mini { width: 56px; }
.sbh { height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; flex: none; }
.ib { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; position: relative; }
.ib:hover { background: var(--raise); color: var(--ink); }
.ib.on { background: var(--raise-2); color: var(--ink); }
.wm { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 2px; }
.wm svg.word { height: 15px; width: auto; color: var(--ink); }
.logo .acc { fill: var(--accent); } .logo rect { fill: currentColor; }
.modes { margin-left: auto; display: flex; gap: 2px; }
.badge-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--side); }
.tip { position: relative; }
.tip::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); font: 500 12px/16px var(--sans); padding: 5px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 30; }
.tip:hover::after { opacity: 1; transition-delay: .25s; }
.nav { padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; flex: none; }
.nv { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font: 500 14px/20px var(--sans); text-align: left; width: 100%; white-space: nowrap; overflow: hidden; }
.nv:hover { background: var(--raise); color: var(--ink); }
.nv.on { background: var(--raise-2); color: var(--ink); }
.nv .new { width: 22px; height: 22px; border-radius: 50%; background: var(--raise-2); display: inline-flex; align-items: center; justify-content: center; margin-left: -2px; color: var(--ink); }
.nv .cnt { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.sb.mini .nv span:not(.new), .sb.mini .wm svg.word, .sb.mini .rec, .sb.mini .acct-t, .sb.mini .modes, .sb.mini .stop span, .sb.mini .nv .cnt, .sb.mini .credit-t { display: none; }
.sb.mini .nv { padding: 0; justify-content: center; }
.rec { flex: 1; min-height: 0; overflow: auto; padding: 14px 8px 8px; scrollbar-width: thin; }
.rec h4 { margin: 0 10px 6px; font: 500 12px/16px var(--sans); color: var(--ink-3); }
.ri { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font: 400 13.5px/20px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri:hover { background: var(--raise); color: var(--ink); }
.ri.on { background: var(--raise-2); color: var(--ink); }
.ri small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; }
.sbf { flex: none; padding: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stop { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font: 500 13px/18px var(--sans); }
.stop:hover { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--ink); }
.stop i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--bad); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stop i::after { content: ""; width: 6px; height: 6px; background: var(--bad); border-radius: 1px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-align: left; width: 100%; }
.acct:hover { background: var(--raise); }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 12px/30px var(--sans); text-align: center; flex: none; }
.acct-t b { display: block; font: 500 13.5px/18px var(--sans); }
.acct-t small { display: block; font: 400 12px/16px var(--sans); color: var(--ink-3); }
.credit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--raise); }
.credit-t b { display: block; font: 600 15px/20px var(--sans); }
.credit-t small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }

.mn { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; position: relative; min-height: 0; }
.tbar { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 18px; }
.tbar .ttl { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px; font: 500 14px/20px var(--sans); color: var(--ink); }
.tbar .ttl:hover { background: var(--raise); }
.tbar .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font: 500 13.5px/18px var(--sans); white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn:hover { background: var(--raise); }
.btn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.pri:hover { opacity: .9; background: var(--ink); }
.btn.acc { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.acc:hover { filter: brightness(1.08); background: var(--accent); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 11px; padding: 0 18px; }
.btn.ghost { border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }
.toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 500 13px/18px var(--sans); padding: 9px 14px; border-radius: 10px; box-shadow: var(--pop); z-index: 60; white-space: nowrap; }

/* ---------- Clast home ---------- */
.home { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 8vh 24px 40px; }
.plan { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); color: var(--ink-2); font: 500 12.5px/16px var(--sans); margin-bottom: 26px; }
.plan:hover { color: var(--ink); border-color: var(--line-2); }
.plan b { color: var(--ink); font-weight: 600; }
.plan .sep { width: 1px; height: 12px; background: var(--line-2); }
.greet { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font: 300 42px/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.greet .logo { width: 30px; height: 30px; color: var(--ink); }
.cwrap { width: 100%; max-width: 680px; }
.cmp { background: var(--raise); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 8px 28px -14px rgba(0, 0, 0, .5); padding: 14px 14px 10px 18px; transition: border-color .15s; }
.light .cmp { box-shadow: 0 1px 2px rgba(31, 30, 29, .06), 0 8px 24px -14px rgba(31, 30, 29, .2); }
.cmp:focus-within { border-color: var(--line-2); }
.cmp.drop { border-color: var(--accent); border-style: dashed; }
.cmp textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; font: 400 16px/24px var(--sans); color: var(--ink); min-height: 48px; max-height: 200px; display: block; }
.cmp textarea::placeholder { color: var(--ink-3); }
.cmpb { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cmpb .sp { flex: 1; }
.cbtn { height: 32px; min-width: 32px; border-radius: 9px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); gap: 6px; padding: 0 8px; font: 500 13px/18px var(--sans); }
.cbtn:hover { background: var(--raise-2); color: var(--ink); }
.cbtn.nb { border-color: transparent; }
.send { width: 34px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.send:hover { filter: brightness(1.08); }
.send.off { background: color-mix(in oklab, var(--accent) 38%, var(--raise-2)); color: color-mix(in oklab, white 60%, transparent); cursor: default; filter: none; }
.pickrow { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 8px; position: relative; }
.pickrow .hintl { margin-right: auto; color: var(--ink-3); font: 400 12px/16px var(--sans); padding-left: 6px; }
.pk { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 8px; color: var(--ink-2); font: 500 13px/18px var(--sans); }
.pk:hover, .pk.open { background: var(--raise); color: var(--ink); }
.pk .chev { width: 12px; height: 12px; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 13.5px/18px var(--sans); }
.chip:hover { background: var(--raise); color: var(--ink); border-color: var(--line-2); }
.chip .ic { color: var(--ink-3); }

/* menus */
.menu { position: absolute; z-index: 40; width: 336px; background: var(--raise); border-radius: 14px; box-shadow: var(--pop); padding: 6px; }
.light .menu { background: #fff; }
.menu.up { bottom: calc(100% + 8px); right: 0; }
.menu.down { top: calc(100% + 6px); right: 0; }
.menu .mh { padding: 8px 10px 6px; font: 500 12px/16px var(--sans); color: var(--ink-3); }
.mi { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; }
.mi:hover { background: var(--raise-2); }
.light .mi:hover { background: var(--raise-2); }
.mi .mt { flex: 1; min-width: 0; }
.mi .mt b { display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--sans); color: var(--ink); }
.mi .mt small { display: block; font: 400 12.5px/17px var(--sans); color: var(--ink-3); margin-top: 1px; }
.mi .ck { width: 16px; height: 20px; color: var(--accent-ink); flex: none; display: inline-flex; align-items: center; }
.mi .dot { margin-top: 6px; }
.mi.dis { opacity: .55; }
.mi .tag { font: 500 11px/16px var(--sans); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.mi .tag.acc { color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.mi .meter { display: flex; gap: 2px; margin-top: 6px; }
.mi .meter i { width: 10px; height: 4px; border-radius: 1px; background: var(--idle); opacity: .7; }
.mi .meter i.b { background: var(--good); opacity: 1; } .mi .meter i.s { background: var(--warn); opacity: 1; } .mi .meter i.l { background: var(--accent); opacity: 1; }

/* ---------- Clast thread ---------- */
.thr { flex: 1; min-height: 0; overflow: auto; padding: 18px 24px 24px; scrollbar-width: thin; }
.col { max-width: 728px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.steps { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: flex-start; min-width: 340px; max-width: 100%; }
.stepsh { display: flex; align-items: center; gap: 8px; padding: 9px 12px; width: 100%; text-align: left; color: var(--ink-2); font: 500 13.5px/18px var(--sans); }
.stepsh:hover { color: var(--ink); background: var(--raise); }
.stepsh .chev { margin-left: auto; transition: transform .15s; }
.stepsh.open .chev { transform: rotate(180deg); }
.stepl { border-top: 1px solid var(--line); padding: 6px 12px 10px; display: flex; flex-direction: column; }
.st { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; font: 400 13.5px/19px var(--sans); color: var(--ink-2); }
.st .k { color: var(--ink); }
.st .t { color: var(--ink-3); font-size: 12px; }
.st .gl { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); transform: translateY(3px); }
.acts { display: flex; gap: 2px; margin-left: -6px; color: var(--ink-3); }
.acts .ib { width: 28px; height: 28px; color: var(--ink-3); }
.chain { border: 1px solid var(--line); border-radius: 14px; background: var(--raise); overflow: hidden; max-width: 560px; }
.light .chain { background: #fff; }
.chainh { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chainh .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--raise-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.chainh b { display: block; font: 600 14px/18px var(--sans); }
.chainh small { display: block; font: 400 12.5px/17px var(--sans); color: var(--ink-3); }
.chainh .btn { margin-left: auto; }
.trow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; font: 400 13.5px/18px var(--sans); }
.trow + .trow { border-top: 1px solid var(--line); }
.trow .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 11.5px/1 var(--sans); background: var(--raise-2); color: var(--ink-2); }
.trow .n.done { background: color-mix(in oklab, var(--good) 22%, transparent); color: var(--good); }
.trow .n.wait { background: var(--accent-soft); color: var(--accent-ink); }
.trow .tn b { font-weight: 600; color: var(--ink); } .trow .tn span { color: var(--ink-3); margin-left: 6px; }
.trow .ts { color: var(--ink-3); font-size: 12.5px; text-align: right; }
.trow .ts.need { color: var(--accent-ink); font-weight: 500; }
.ask { border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent); border-radius: 14px; background: color-mix(in oklab, var(--accent) 7%, var(--bg)); padding: 14px 16px; max-width: 560px; }
.ask.done { border-color: var(--line); background: transparent; }
.askh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.askh b { font: 600 14.5px/20px var(--sans); }
.need { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 11.5px/16px var(--sans); }
.kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 12px; margin: 0 0 14px; font: 400 13.5px/19px var(--sans); }
.kv dt { color: var(--ink-3); margin: 0; } .kv dd { margin: 0; color: var(--ink); }
.kv dd s { color: var(--ink-3); }
.askb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.askb .exp { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.resolved { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/18px var(--sans); color: var(--ink-2); }
.resolved i { width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #10200f; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.resolved.no i { background: var(--raise-2); color: var(--ink); }
.foot { flex: none; padding: 0 24px 14px; }
.foot .cwrap { margin: 0 auto; max-width: 728px; }
.disc { text-align: center; color: var(--ink-3); font: 400 12px/16px var(--sans); margin-top: 8px; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: tp 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- servers ---------- */
.page { flex: 1; min-height: 0; overflow: auto; padding: 8px 32px 40px; scrollbar-width: thin; }
.ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto 6px; }
.ph h1 { margin: 0; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; }
.ph .sp { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; width: 260px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--ink-3); }
.light .search { background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14px/20px var(--sans); color: var(--ink); }
.sum { max-width: 1180px; margin: 4px auto 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font: 400 13.5px/20px var(--sans); }
.sum span { display: inline-flex; align-items: center; gap: 7px; }
.sum b { color: var(--ink); font-weight: 600; }
.tabs { max-width: 1180px; margin: 0 auto 20px; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); font: 500 14px/20px var(--sans); }
.tab:hover { color: var(--ink); } .tab.on { color: var(--ink); border-color: var(--ink); }
.tab .c { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.sgrid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 32px; align-items: start; }
.rackcol { position: sticky; top: 0; }
.rackcap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--ink-3); font: 400 12.5px/16px var(--sans); }
.rackcap span { display: inline-flex; align-items: center; gap: 6px; }
.det { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.deth { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.deth h2 { margin: 0; font: 400 28px/1.1 var(--serif); }
.deth .meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); margin-top: 6px; font: 400 13.5px/18px var(--sans); flex-wrap: wrap; }
.deth .meta .stt { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.deth .btns { margin-left: auto; display: flex; gap: 8px; }
.box { border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.light .box { background: #fff; }
.boxh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font: 600 14px/20px var(--sans); }
.boxh small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.boxh .sp { flex: 1; }
.gpus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; }
.gpu { border-radius: 10px; padding: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.light .gpu { background: var(--side); }
.gpu .gh { display: flex; align-items: center; gap: 6px; font: 600 12px/16px var(--sans); color: var(--ink-2); }
.gpu .gh .temp { margin-left: auto; font-weight: 400; color: var(--ink-3); }
.gpu .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gpu .bar i { display: block; height: 100%; border-radius: 2px; background: var(--good); }
.gpu.s .bar i { background: var(--warn); } .gpu.l .bar i { background: var(--accent); }
.gpu .gj { font: 400 12.5px/16px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpu .gj.idle { color: var(--ink-3); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px 14px; gap: 0 20px; }
.spec { padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.spec small { display: block; color: var(--ink-3); font: 400 12px/16px var(--sans); }
.spec b { display: block; font: 500 13.5px/19px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobs { padding: 0 6px 8px; }
.job { display: grid; grid-template-columns: 54px minmax(0, 1fr) 110px 120px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 9px; font: 400 13.5px/18px var(--sans); }
.job:hover { background: var(--raise-2); }
.job .jid { color: var(--ink-3); font: 400 12.5px/18px var(--mono); }
.job .jn b { font-weight: 500; } .job .jn small { color: var(--ink-3); margin-left: 6px; }
.job .pb { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .job .pb i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.job .pb.s i { background: var(--warn); } .job .pb.l i { background: var(--accent); }
.job .js { text-align: right; color: var(--ink-3); font-size: 12.5px; }
.job .js.s { color: var(--warn); } .job .js.l { color: var(--accent-ink); }
.lend { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.lend .lt { flex: 1; min-width: 0; }
.lend .lt b { display: block; font: 600 14px/20px var(--sans); }
.lend .lt small { display: block; color: var(--ink-3); font: 400 13px/18px var(--sans); }
.sw { width: 40px; height: 24px; border-radius: 12px; background: var(--raise-2); position: relative; flex: none; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: left .15s, background .15s; }
.sw.on { background: var(--accent); box-shadow: none; } .sw.on::after { left: 19px; background: #fff; }
.shared { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.scard { border: 1px solid var(--line); border-radius: 14px; background: var(--raise); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.light .scard { background: #fff; }
.scard h3 { margin: 0; font: 600 15px/20px var(--sans); display: flex; align-items: center; gap: 8px; }
.scard p { margin: 0; color: var(--ink-2); font: 400 13.5px/20px var(--sans); }
.leds { display: flex; gap: 4px; }
.leds i { width: 12px; height: 12px; border-radius: 3px; background: var(--idle); opacity: .55; }
.leds i.b { background: var(--good); opacity: 1; } .leds i.s { background: var(--warn); opacity: 1; } .leds i.l { background: var(--accent); opacity: 1; } .leds i.q { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); opacity: 1; }

/* ---------- rack (front elevation and 3D) ---------- */
.rkw { --u: 34px; font-family: var(--sans); color: #e9e7df; }
.bay { width: 15px; border-radius: 2px; background: linear-gradient(180deg, #0f0f11, #17171a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 4px; }
.bay::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; bottom: 16px; background: repeating-linear-gradient(180deg, #2a2a2e 0 1px, transparent 1px 3px); opacity: .9; }
.bay .led { width: 7px; height: 4px; border-radius: 1px; background: #303033; }
.bay.b .led { background: #46e283; box-shadow: 0 0 6px 1px rgba(70, 226, 131, .8); }
.bay.s .led { background: #ffb238; box-shadow: 0 0 6px 1px rgba(255, 178, 56, .85); }
.bay.l .led { background: color-mix(in oklab, var(--accent) 80%, white); box-shadow: 0 0 7px 1px color-mix(in oklab, var(--accent) 85%, transparent); }
.bay.x .led { background: #ff5a3c; box-shadow: 0 0 6px 1px rgba(255, 90, 60, .8); }
/* 3D stack */
.rk3 { position: relative; width: 100%; max-width: 460px; height: 560px; perspective: 1700px; perspective-origin: 50% 20%; }
.rk3 .stack { position: absolute; left: 50%; top: 30px; width: 330px; margin-left: -150px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-28deg) scale(.8); transform-origin: 50% 0; }
.b3 { position: relative; display: block; width: 330px; transform-style: preserve-3d; margin-bottom: 8px; transition: transform .45s cubic-bezier(.2, .8, .2, 1); cursor: pointer; text-align: left; }
.b3.sel { transform: translateZ(80px); }
.b3:hover .fc { filter: brightness(1.15); }
.b3 .fc { position: absolute; left: 0; top: 0; width: 330px; height: 100%; transform: translateZ(140px); border-radius: 2px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)), repeating-linear-gradient(90deg, #26262a 0 2px, #2a2a2e 2px 3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: flex; align-items: stretch; gap: 6px; padding: 4px 10px; }
.b3.sel .fc { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 2px var(--accent), 0 0 30px -4px color-mix(in oklab, var(--accent) 70%, transparent); }
.b3 .tp { position: absolute; left: 0; width: 330px; height: 280px; background: linear-gradient(180deg, #34343a, #1f1f22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.b3 .tp::after { content: ""; position: absolute; inset: 24px 34px; background: repeating-linear-gradient(90deg, #17171a 0 3px, transparent 3px 10px); opacity: .7; }
.b3 .sd { position: absolute; top: 0; left: 25px; width: 280px; height: 100%; background: linear-gradient(90deg, #1d1d20, #111113); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.b3 .fc .plate { flex: none; width: 84px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.b3 .fc .plate b { font: 600 11px/13px var(--sans); color: #f1efe8; }
.b3 .fc .plate small { font: 400 10px/12px var(--sans); color: #9a988f; }
.b3 .fc .vent { flex: 1; border-radius: 2px; background: radial-gradient(circle, #050506 1.2px, transparent 1.5px) 0 0/5px 5px, #1b1b1e; }
.b3 .fc .bays { display: flex; gap: 3px; }
.b3 .fc .bay { width: 12px; }
.floor { position: absolute; left: 50%; bottom: 20px; width: 380px; height: 120px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 65%); filter: blur(6px); }
.rkw.light .floor { background: radial-gradient(ellipse at center, rgba(31,30,29,.3), transparent 65%); }

/* ---------- Clastra X ---------- */
.xw { flex: 1; min-height: 0; position: relative; background: #000; overflow: hidden; color: #f5f4ee; }
.xw .glb { position: absolute; inset: 0; }
.xtop { position: absolute; top: 18px; left: 0; right: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; padding: 0 20px; }
.xtop > * { pointer-events: auto; }
.aisw { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(20, 20, 19, .82); border: 1px solid rgba(255,255,255,.1); font: 500 13px/18px var(--sans); color: #e8e6de; }
.aisw .sw { width: 34px; height: 20px; } .aisw .sw::after { width: 14px; height: 14px; }
.aisw .sw.on::after { left: 17px; }
.xpill { display: flex; align-items: center; background: #f7f6f2; color: #1f1e1d; border-radius: 999px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.2); height: 64px; padding: 0 8px 0 0; width: min(760px, 100%); position: relative; }
.xseg { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 22px; border-radius: 999px; text-align: left; position: relative; color: #1f1e1d; }
.xpanel + .xseg::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: rgba(31,30,29,.14); }
.xseg:hover { background: #ebe9e2; } .xseg:hover::before, .xseg:hover + .xpanel + .xseg::before, .xseg.on::before, .xseg.on + .xpanel + .xseg::before { opacity: 0; }
.xseg.on { background: #fff; box-shadow: 0 6px 24px -6px rgba(0,0,0,.35); }
.xseg b { font: 600 12px/16px var(--sans); }
.xseg span { font: 400 14px/20px var(--sans); color: #5d5b55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xseg.set span { color: #1f1e1d; }
.xgo { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: 4px; }
.xgo:hover { filter: brightness(1.08); }
.xgo.wide { width: auto; padding: 0 18px 0 14px; gap: 8px; border-radius: 999px; font: 600 14px/18px var(--sans); }
.xask { flex: 1; height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 24px; }
.xask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px/22px var(--sans); color: #1f1e1d; }
.xask input::placeholder { color: #737169; }
.xpanel { position: absolute; top: calc(100% + 10px); background: #f7f6f2; color: #1f1e1d; border-radius: 22px; box-shadow: 0 20px 60px -12px rgba(0,0,0,.8); padding: 14px; z-index: 8; }
.xpanel h5 { margin: 4px 8px 8px; font: 600 12px/16px var(--sans); color: #6f6d66; }
.xopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; color: #1f1e1d; }
.xopt:hover, .xopt.on { background: #ebe9e2; }
.xopt .xi { width: 44px; height: 44px; border-radius: 10px; background: #e6e3db; display: inline-flex; align-items: center; justify-content: center; color: #4a4843; flex: none; }
.xopt b { display: block; font: 500 14px/19px var(--sans); }
.xopt small { display: block; font: 400 12.5px/17px var(--sans); color: #6f6d66; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 6px; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(31,30,29,.18); font: 500 13.5px/18px var(--sans); color: #1f1e1d; display: inline-flex; align-items: center; }
.pill:hover { border-color: #1f1e1d; } .pill.on { background: #1f1e1d; color: #f7f6f2; border-color: #1f1e1d; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px; border-top: 1px solid rgba(31,30,29,.1); margin-top: 6px; }
.stepper b { display: block; font: 500 14px/19px var(--sans); } .stepper small { display: block; color: #6f6d66; font-size: 12.5px; }
.stp { display: flex; align-items: center; gap: 12px; font: 500 15px/20px var(--sans); }
.stp button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(31,30,29,.25); display: inline-flex; align-items: center; justify-content: center; color: #1f1e1d; }
.stp button:hover { border-color: #1f1e1d; }
.xcomm { position: absolute; left: 24px; bottom: 24px; z-index: 4; width: min(470px, calc(100% - 48px)); background: rgba(14, 14, 13, .84); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px 20px; }
.xcomm h3 { margin: 0 0 4px; font: 400 22px/1.2 var(--serif); color: #f5f4ee; display: flex; align-items: center; gap: 10px; }
.xcomm p { margin: 0 0 14px; color: #b9b7ae; font: 400 13.5px/19px var(--sans); }
.demo { font: 500 11px/16px var(--sans); color: #b9b7ae; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; padding: 0 6px; margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat b { display: block; font: 500 22px/26px var(--sans); color: #f5f4ee; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat small { display: block; font: 400 12px/16px var(--sans); color: #a9a79e; }
.xsite { position: absolute; right: 24px; top: 132px; z-index: 4; width: 340px; background: #f7f6f2; color: #1f1e1d; border-radius: 20px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.85); overflow: hidden; }
.xsite .hd { padding: 18px 18px 12px; }
.xsite .hd small { display: block; font: 500 12px/16px var(--sans); color: #6f6d66; }
.xsite .hd h3 { margin: 2px 0 4px; font: 400 24px/1.15 var(--serif); }
.xsite .hd p { margin: 0; font: 400 13.5px/19px var(--sans); color: #4a4843; }
.xsite .cl { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #4a4843; }
.xsite .cl:hover { background: #ebe9e2; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid rgba(31,30,29,.09); text-align: left; width: 100%; color: #1f1e1d; }
.lrow:hover { background: #efede7; }
.lrow .lg { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--sans); color: #fff; }
.lrow .lt { flex: 1; min-width: 0; } .lrow .lt b { display: block; font: 500 14px/19px var(--sans); } .lrow .lt small { display: block; color: #6f6d66; font-size: 12.5px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .pr { text-align: right; font: 400 12px/16px var(--sans); color: #6f6d66; } .lrow .pr b { display: block; font: 600 14px/18px var(--sans); color: #1f1e1d; }
.xsite .ft { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.xsite .ft .btn { width: 100%; border-color: rgba(31,30,29,.2); color: #1f1e1d; }
.xsite .ft .btn.acc { color: #fff; border-color: transparent; }
.xhint { position: absolute; bottom: 30px; right: 28px; z-index: 3; font: 400 12.5px/16px var(--sans); color: rgba(245,244,238,.6); display: flex; align-items: center; gap: 8px; }
.xright { position: absolute; top: 18px; right: 20px; z-index: 6; display: flex; gap: 8px; }
.xbtn { height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(20,20,19,.82); border: 1px solid rgba(255,255,255,.12); color: #f5f4ee; display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/18px var(--sans); }
.xbtn:hover { background: rgba(40,40,38,.9); }
.xbtn b { font-weight: 600; }

/* results */
.xr { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.xrh { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
.xrh .row1 { display: flex; align-items: center; gap: 12px; }
.mini { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raise); box-shadow: 0 2px 10px -4px rgba(0,0,0,.4); padding: 0 6px 0 0; }
.light .mini { background: #fff; }
.mini button.ms { height: 46px; padding: 0 16px; font: 500 14px/18px var(--sans); color: var(--ink); position: relative; }
.mini button.ms + button.ms::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.mini .mg { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; scroll-padding-inline: 4px; }
.fchip { height: 34px; flex: none; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 13px/18px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.fchip:hover { color: var(--ink); border-color: var(--ink-3); } .fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xrb { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.xlist { min-height: 0; overflow: auto; padding: 18px 24px 30px; scrollbar-width: thin; }
.xlist .lh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.xlist .lh h2 { margin: 0; font: 400 22px/1.2 var(--serif); }
.xlist .lh small { color: var(--ink-3); font-size: 12.5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; }
.card { display: flex; flex-direction: column; gap: 9px; text-align: left; min-width: 0; color: var(--ink); }
.card .vis { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.card .bdg { position: absolute; left: 10px; top: 10px; z-index: 2; background: #f7f6f2; color: #1f1e1d; font: 600 11.5px/16px var(--sans); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.card .hrt { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.card .hrt svg { width: 22px; height: 22px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 1.8; }
.card .hrt.on svg { fill: var(--accent); stroke: #fff; }
.card .l1 { display: flex; align-items: baseline; gap: 8px; } .card .l1 b { font: 600 14.5px/19px var(--sans); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .l1 span { font: 400 13px/18px var(--sans); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.card .l2 { font: 400 13.5px/18px var(--sans); color: var(--ink-3); margin-top: -6px; }
.card .l3 { font: 400 13.5px/18px var(--sans); color: var(--ink); } .card .l3 b { font-weight: 600; } .card .l3 small { color: var(--ink-3); font-size: 13px; }
.card.hl .vis { box-shadow: 0 0 0 2px var(--accent); }
.xmap { position: relative; min-height: 0; border-left: 1px solid var(--line); background: #000; }
.xmap .glb { position: absolute; inset: 0; }
.xmap .legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; font: 400 12px/16px var(--sans); color: rgba(245,244,238,.75); background: rgba(14,14,13,.8); border-radius: 10px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.08); }

/* server art for listing cards */
.art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #2a2a2e 0%, #121214 55%, #08080a 100%); display: flex; align-items: center; justify-content: center; }
.art .chassis { width: 82%; border-radius: 6px; padding: 7px 10px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(0,0,0,.3)), repeating-linear-gradient(90deg, #26262a 0 2px, #2b2b2f 2px 3px); box-shadow: 0 18px 30px -10px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); display: flex; gap: 6px; align-items: stretch; height: 34%; transform: perspective(600px) rotateX(10deg); }
.art .chassis .vent { flex: 1; border-radius: 3px; background: radial-gradient(circle, #050506 1.4px, transparent 1.7px) 0 0/6px 6px, #1c1c1f; }
.art .chassis .bays { display: flex; gap: 3px; }
.art .chassis .bay { width: 12px; }
.art .lab { position: absolute; left: 12px; bottom: 10px; font: 500 11px/14px var(--sans); color: rgba(245,244,238,.7); }
.art.t2 { background: radial-gradient(120% 90% at 30% 0%, #2d2a35 0%, #121115 55%, #08080a 100%); }
.art.t3 { background: radial-gradient(120% 90% at 70% 0%, #26302d 0%, #101413 55%, #08080a 100%); }
.art.t4 { background: radial-gradient(120% 90% at 50% 0%, #332c24 0%, #15120f 55%, #08080a 100%); }
.art .chassis.tall { height: 52%; }

/* listing */
.xl { flex: 1; min-height: 0; overflow: auto; background: var(--bg); scrollbar-width: thin; }
.xli { max-width: 1120px; margin: 0 auto; padding: 18px 32px 60px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 500 13.5px/18px var(--sans); height: 32px; padding: 0 8px 0 4px; border-radius: 8px; margin-left: -4px; }
.back:hover { background: var(--raise); color: var(--ink); }
.xlh { display: flex; align-items: flex-end; gap: 16px; margin: 10px 0 18px; flex-wrap: wrap; }
.xlh h1 { margin: 0; font: 400 32px/1.12 var(--serif); letter-spacing: -.01em; }
.xlh p { margin: 6px 0 0; color: var(--ink-2); font: 400 14px/20px var(--sans); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xlh .sp { flex: 1; }
.gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 190px 190px; gap: 8px; border-radius: 18px; overflow: hidden; margin-bottom: 30px; }
.gal > div { position: relative; overflow: hidden; background: #000; }
.gal .big { grid-row: span 2; }
.gal .cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; font: 500 12px/16px var(--sans); color: rgba(245,244,238,.8); background: rgba(10,10,10,.6); padding: 3px 8px; border-radius: 6px; }
.topo { position: absolute; inset: 0; background: radial-gradient(100% 100% at 50% 0%, #22222a, #0c0c0f); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 18px 22px; padding: 30px 34px 40px; }
.topo i { border-radius: 6px; background: linear-gradient(180deg, #34343a, #222226); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 0 18px -4px color-mix(in oklab, var(--accent) 60%, transparent); position: relative; }
.topo i::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 8px; height: 3px; margin-left: -4px; background: #46e283; box-shadow: 0 0 5px #46e283; border-radius: 1px; }
.xlg { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 56px; align-items: start; }
.hostr { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hostr .lg { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--sans); color: #fff; flex: none; }
.hostr b { display: block; font: 600 15px/20px var(--sans); } .hostr small { display: block; color: var(--ink-3); font: 400 13px/18px var(--sans); }
.hl3 { display: flex; flex-direction: column; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hl3 div { display: flex; gap: 16px; } .hl3 .ic { width: 24px; height: 24px; color: var(--ink-2); margin-top: 2px; }
.hl3 b { display: block; font: 600 14.5px/20px var(--sans); } .hl3 small { display: block; color: var(--ink-3); font: 400 13.5px/19px var(--sans); }
.sec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.sec h3 { margin: 0 0 14px; font: 400 22px/1.2 var(--serif); }
.sec p { margin: 0 0 10px; color: var(--ink-2); font: 400 14.5px/22px var(--sans); max-width: 62ch; }
.spect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.spect div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font: 400 14px/20px var(--sans); }
.spect span { color: var(--ink-3); } .spect b { font-weight: 500; text-align: right; }
.revs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.rev b { display: block; font: 600 14px/20px var(--sans); } .rev small { display: block; color: var(--ink-3); font: 400 12.5px/17px var(--sans); margin-bottom: 6px; }
.rev p { margin: 0; font: 400 14px/21px var(--sans); color: var(--ink-2); }
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.score b { font: 400 40px/1 var(--serif); }
.score small { color: var(--ink-3); font: 400 13px/18px var(--sans); }
.book { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); padding: 22px; }
.light .book { background: #fff; box-shadow: 0 10px 30px -16px rgba(31,30,29,.3); }
.book .pr { font: 400 14px/20px var(--sans); color: var(--ink-3); margin-bottom: 16px; } .book .pr b { font: 600 22px/28px var(--sans); color: var(--ink); }
.bfields { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.bfields .r { display: grid; grid-template-columns: 1fr 1fr; }
.bf { padding: 9px 12px; text-align: left; min-width: 0; }
.bf + .bf { border-left: 1px solid var(--line-2); }
.bfields .r + .r, .bfields .r + .bf2 { border-top: 1px solid var(--line-2); }
.bf small { display: block; font: 600 11px/15px var(--sans); color: var(--ink-2); }
.bf span { display: block; font: 400 14px/20px var(--sans); color: var(--ink); }
.bf2 { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; }
.bf2 .stp button { border-color: var(--line-2); color: var(--ink); width: 30px; height: 30px; }
.bf2 .stp button:hover { border-color: var(--ink); }
.book .btn.acc { width: 100%; margin-top: 14px; }
.book .note { text-align: center; color: var(--ink-3); font: 400 12.5px/17px var(--sans); margin: 10px 0 14px; }
.brk { display: flex; flex-direction: column; gap: 8px; font: 400 14px/20px var(--sans); color: var(--ink-2); }
.brk div { display: flex; justify-content: space-between; gap: 12px; }
.brk .tot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; color: var(--ink); font-weight: 600; }
.alt { display: block; text-align: center; margin-top: 12px; color: var(--accent-ink); font: 500 13.5px/18px var(--sans); }
.alt:hover { text-decoration: underline; }

/* ---------- sign in ---------- */
.si { min-height: 100vh; width: 100%; background: var(--bg); color: var(--ink); font: 400 15px/22px var(--sans); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; padding: 0; -webkit-font-smoothing: antialiased; }
.sil { display: flex; flex-direction: column; padding: 26px 40px 30px; min-height: 100vh; }
.sil .top { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.sil .top svg.word { height: 17px; width: auto; }
.sic { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 0; }
.sic h1 { margin: 0; font: 300 54px/1.12 var(--serif); letter-spacing: -.015em; max-width: 12ch; }
.sic .sub { margin: 14px 0 34px; font: 400 18px/26px var(--serif); color: var(--ink-2); }
.sib { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.sibtn { height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--ink) 5%, transparent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/20px var(--sans); width: 100%; }
.sibtn:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.sibtn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sibtn.solid:hover { opacity: .92; background: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font: 500 12px/16px var(--sans); margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.siin { height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--ink) 4%, transparent); padding: 0 14px; font: 400 15px/20px var(--sans); color: var(--ink); outline: 0; width: 100%; }
.siin:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.siin::placeholder { color: var(--ink-3); }
.legal { margin-top: 14px; color: var(--ink-3); font: 400 12.5px/18px var(--sans); }
.legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sso { margin-top: 18px; color: var(--ink-2); font: 500 13.5px/18px var(--sans); display: inline-flex; align-items: center; gap: 6px; }
.sso:hover { color: var(--ink); }
.code { display: flex; gap: 8px; justify-content: center; }
.code input { width: 50px; height: 58px; border-radius: 11px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--ink) 4%, transparent); text-align: center; font: 500 24px/1 var(--sans); color: var(--ink); outline: 0; }
.code input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sir { position: relative; margin: 18px 18px 18px 0; border-radius: 22px; overflow: hidden; background: #000; min-height: 560px; }
.sir .glb { position: absolute; inset: 0; }
.sir .cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #f5f4ee; pointer-events: none; }
.sir .cap b { display: block; font: 400 24px/1.2 var(--serif); }
.sir .cap small { display: block; font: 400 13px/18px var(--sans); color: rgba(245,244,238,.7); margin-top: 4px; }
.sir .cred { font: 400 11px/14px var(--sans); color: rgba(245,244,238,.64); white-space: nowrap; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .sb { display: none; }
  /* The Menu button's drawer: the whole sidebar over the page, with a shade behind it. */
  .cx.drawer .sb, .cx.drawer .sb.mini { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); height: auto; z-index: 60; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .cx.drawer::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .mtop { display: flex !important; }
  .sgrid, .xlg, .xrb { grid-template-columns: minmax(0, 1fr); }
  .xmap { min-height: 360px; border-left: 0; border-top: 1px solid var(--line); }
  .xsite { left: 16px; right: 16px; width: auto; top: auto; bottom: 200px; }
  .xcomm { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xpill { height: 56px; } .xseg { padding: 0 12px; } .xseg span { font-size: 13px; }
  .si { grid-template-columns: 1fr; } .sir { display: none; }
  .sic h1 { font-size: 40px; }
  .gal { grid-template-columns: 1fr; grid-template-rows: 220px; } .gal > div:not(.big) { display: none; } .gal .big { grid-row: auto; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: 44px minmax(0, 1fr) 90px; } .job .pb { display: none; }
  .page { padding: 8px 16px 32px; }
  .greet { font-size: 32px; }
}
@media (max-width: 860px) {
  .rk3 { height: 400px; max-width: 100%; overflow: visible; }
  .rk3 .stack { margin-left: -100px; top: 24px; transform: rotateX(-14deg) rotateY(-28deg) scale(.6); }
  .rackcol { position: static; }
  .xright, .xhint { display: none; }
  .xtop { top: 12px; gap: 8px; }
  .xcomm { top: 150px; bottom: auto; padding: 12px 14px; border-radius: 14px; }
  .xcomm p { display: none; }
  .xcomm h3 { font-size: 17px; margin-bottom: 8px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stat b { font-size: 16px; line-height: 20px; } .stat small { font-size: 11px; line-height: 14px; }
  .xsite { top: auto; bottom: 16px; max-height: 46vh; overflow: auto; }
  .xrh { padding: 12px 16px 10px; }
  .xrh .row1 { flex-wrap: wrap; }
  .xrh .row1 > span { display: none; }
  .mini { height: 42px; } .mini button.ms { height: 42px; padding: 0 10px; font-size: 13px; }
  .xlist { padding: 14px 16px 24px; }
}
.mtop { display: none; height: 52px; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); flex: none; }
@media (prefers-reduced-motion: reduce) { .cx *, .si *, .rkw * { transition: none !important; animation: none !important; } }


/* ---------- the one app's shell (relay/templates/app.html and relay/static/appshell.js) ---------- */
/* Added for the relay's /app page, after the ported rules: the prototype's inline styles as
   rules, a guard so the hidden attribute beats the rules that set display, and the parts the
   shell adds to the design (the server frames, the fallback when a frame cannot open, the
   account menu and the admin stop). */
body:has(> .cx) { margin: 0; background: #262624; } /* the dark --bg token */
body:has(> .cx.light) { background: #faf9f6; } /* the light --bg token */
.cx [hidden] { display: none !important; }
.nv .new .ic { stroke-width: 2; }
.credit .ic { color: var(--accent-ink); }
.mtop .logo { color: var(--ink); }
.mtop .sp { flex: 1; }
/* .mini is also the Clastra X search pill's class, so the collapsed sidebar undoes the pill. */
.sb.mini { height: auto; align-items: stretch; padding: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--side); box-shadow: none; }
.mn > iframe { flex: 1; width: 100%; min-height: 0; border: 0; display: block; }
.fallback { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.fallback h1 { margin: 0; font: 400 30px/1.2 var(--serif); color: var(--ink); }
.fallback p { margin: 0 0 12px; color: var(--ink-2); }
.sbf { position: relative; }
.sbf .menu { left: 8px; right: 8px; width: auto; }
.sb.mini .sbf { margin-top: auto; } /* .rec, which pushed it down, is hidden */
.sb.mini .sbf .menu { right: auto; width: 240px; }
.menu form { margin: 0; }
.mi[aria-pressed="false"] .ck { visibility: hidden; }
.admin-stop { flex: none; padding: 10px 18px; background: color-mix(in oklab, var(--bad) 14%, var(--bg)); border-bottom: 1px solid var(--line); color: var(--ink); font: 400 13.5px/20px var(--sans); }
.admin-stop p { margin: 2px 0; }

/* ---------- sign-in A (relay/templates/signin.html and relay/static/signin.js) ---------- */
/* Added for the relay's sign-in page, after the ported rules: the inline styles of the
   prototype's Main.dc.html and Globe.dc.html as rules, and the parts the page adds to the
   design (the relay's error line, the link to the lab login, the forms the fields sit in and
   the Demo data label on the Earth's caption). */
body:has(> .si) { margin: 0; background: #1d1c1b; } /* the dark signin-ground token */
body:has(> .si.light) { background: #faf9f6; } /* the light --bg token */
.sic h1.sm { font-size: 44px; }
.sib form { display: contents; }
.code + .sibtn { margin-top: 8px; }
.code input[name="code"] { width: 100%; letter-spacing: .6em; text-indent: .6em; }
.sierr { margin: -18px 0 18px; max-width: 380px; color: var(--bad); font: 500 13.5px/18px var(--sans); }
.silab { margin: 12px 0 -30px; color: var(--ink-3); font: 400 12.5px/18px var(--sans); } /* takes no height, so the form sits where the still has it */
.silab a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.silab a:hover { color: var(--ink-2); }
.sir .gw { position: absolute; inset: 0; overflow: hidden; background: #000; border-radius: 0; }
.sir .gw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sir .gw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.sir .cap .demo { margin-left: 8px; vertical-align: 1px; }

/* ---------- servers-shell: Your servers on the main origin (relay/templates/app_servers.html and relay/static/shell-servers.js) ---------- */
/* Added after the ported rules: the screen's place in main.mn, the side face's transform, which the
   prototype set inline and which never changes, the unit's keyboard focus on its face, a grey light
   for a GPU with no fresh reading, the light theme's floor while the stack keeps the rkw class, and
   the parts the product adds to the design (the Jobs box's way to the server, the empty states). */
.srv, .shell-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.b3 .sd { transform: rotateY(90deg) translateZ(165px); }
.cx .b3:focus-visible { outline: 0; }
.b3:focus-visible .fc { outline: 2px solid var(--accent); outline-offset: 2px; }
.bay.q .led { background: #6b6a66; }
.cx.light .rkw .floor { background: radial-gradient(ellipse at center, rgba(31,30,29,.3), transparent 65%); }
.det .keep { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0 16px 14px; color: var(--ink-3); font: 400 13.5px/20px var(--sans); }
.det .keep > span { flex: 1; min-width: 0; }
.scard .scard-go { display: flex; gap: 8px; margin-top: 4px; }
.srv .none, .shell-panel .none { margin: 0 0 14px; color: var(--ink-2); font: 400 13.5px/20px var(--sans); }
.srv .none a, .shell-panel .none a { color: var(--accent-ink); }
.shell-list { max-width: 1180px; margin: 0 auto; }
.shell-list p { color: var(--ink-2); }
.shell-list .search { margin-bottom: 12px; max-width: 100%; }
.shell-list .search:focus-within { outline: 2px solid var(--accent); }
.shell-list .mi { max-width: 540px; overflow-wrap: anywhere; }
.shell-list .mi:disabled { color: var(--ink-3); cursor: default; }
.shell-list .mi > small { margin-left: auto; color: var(--ink-2); }

/* Add a server, the new-pairing notices and an owned server's Invite and Remove, which the relay
   renders on this screen as its only server list: boxes, buttons and the search field's box for
   the pairing code, with the spacing, the code line and the error line they need. */
.srv-note, .srv-add { max-width: 1180px; width: 100%; margin: 0 auto 14px; }
.srv-note { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.srv-note p { flex: 1; min-width: 0; margin: 0; color: var(--ink-2); font: 400 13px/18px var(--sans); }
.srv-add-body, .srv-own { padding: 0 16px 14px; color: var(--ink-2); font: 400 13.5px/20px var(--sans); }
.srv-add-body p, .srv-own p { margin: 0 0 8px; }
.srv-add-body pre { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); font: 400 12.5px/18px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.srv-add-body p code, .srv-own code, .srv-cards dd code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.srv-add-body form, .srv-own form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.srv-add-body .search { flex: 1; min-width: 160px; }
.srv-add-body details { margin-top: 4px; }
.srv-add-body summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.srv-add-body details[open] summary { margin-bottom: 8px; }
#add-status { margin: 10px 0 0; }
#add-status:empty { display: none; }
.srv-token { margin-top: 12px; }
.srv-cards { list-style: none; margin: 12px 0 0; padding: 0; }
.srv-cards li { padding: 12px 14px; margin: 0 0 10px; border: 1px solid var(--line-2); border-radius: 10px; }
.srv-cards .kv { grid-template-columns: max-content minmax(0, 1fr); margin-bottom: 10px; }
.srv-own-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.srv-sure { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.srv-own .srv-invite { margin: 10px 0 0; }
.srv-err { margin: 10px 0 0; color: var(--bad); font-weight: 500; }
.scard .srv-own { padding: 10px 0 0; border-top: 1px solid var(--line); }

/* On a phone, where the sidebar and its account row are hidden at 860px or less, the account's
   theme and Sign out end this page. */
.svl-acct { display: none; }
@media (max-width: 860px) {
  .srv .svl-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1180px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .srv .svl-acct p { flex-basis: 100%; margin: 0 0 4px; color: var(--ink-3); overflow-wrap: anywhere; }
}

/* ---------- clast-shell: Clast's parts on the main origin (relay/templates/app_clast.html and relay/static/shell-clast.js) ---------- */
/* The server picker is the prototype's Composer menu, drawn by the shell over the frame at the
   rectangle the frame names, so it is fixed to the window and shell-clast.js sets its top, left
   and, on a short window, its max-height. The prototype's inline styles on its icons are rules here. */
.clast-pick { position: fixed; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.clast-pick .mi > .ic { margin-top: 2px; color: var(--ink-2); }
.clast-pick .ck .ic { stroke-width: 2.2; }
.clast-pick .mi[aria-checked="false"] .ck { visibility: hidden; }
.clast-pick .meter { flex-wrap: wrap; }
/* Stop all agents' question and who stopped, above the button like the account menu. */
.clast-stop-t { padding: 8px 10px 6px; }
.clast-stop-t b { display: block; font: 500 14px/20px var(--sans); color: var(--ink); }
.clast-stop-t p { margin: 4px 0 0; font: 400 12.5px/17px var(--sans); color: var(--ink-3); }
.clast-stop-list { max-height: 40vh; overflow: auto; scrollbar-width: thin; }
.clast-stop-btns { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 4px 4px; }

/* ---------- clast-frame: Clast's home page and conversation in a server's frame ---------- */
/* web/templates/clast.html and web/static/clast.js (launch brief step 5). The prototype's
   inline styles as rules, the messages app.js draws while a reply streams (article.msg-*)
   styled as the design's .mu and .mc, and the parts the agent adds to the design: the stopped
   banners, the cloud model badge, the attach panel, the notes and, at top level only, the
   page links and the Stop button. */
body:has(> main > .cx.clast) { margin: 0; background: #262624; } /* the dark --bg token */
body:has(> main > .cx.clast.light) { background: #faf9f6; } /* the light --bg token */
.clast .mn { height: 100%; }
.clast p, .clast dl, .clast ul, .clast h3 { margin: 0; }
.send .ic { stroke-width: 2; }
.send:disabled { background: color-mix(in oklab, var(--accent) 38%, var(--raise-2)); color: color-mix(in oklab, white 60%, transparent); cursor: default; filter: none; }
.cmpb form { display: contents; }
.mi .ck .ic { stroke-width: 2.2; }
.mi[aria-checked="false"] .ck { visibility: hidden; }
.mi.dis { cursor: default; }
.mi.dis:hover { background: none; }
.menu.auto-menu { width: 300px; }
.menu .mh.last { padding-bottom: 8px; }
.ttlw { position: relative; min-width: 0; }
.tbar .ttl { max-width: 100%; }
.ttlt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu.ttl-menu { left: 8px; right: auto; width: 280px; }
.plan .dot { width: 8px; height: 8px; }
.greet span { white-space: nowrap; }
.st .gl.plan { color: var(--good); }
.resolved i .ic { stroke-width: 2.4; }
.stepsh.open .chev { transform: rotate(180deg); }
.clast .stepl:not([hidden]), .clast .menu:not([hidden]) { animation: clast-open .15s ease-out; }
@keyframes clast-open { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.askb form { display: contents; }
.askb .off { color: var(--ink-3); font: 400 12.5px/17px var(--sans); }
.kv dd code { font-family: var(--mono); font-size: 12.5px; background: var(--raise); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.kv pre { font: 400 12px/17px var(--mono); background: var(--sunk); border-radius: 8px; padding: 8px 10px; overflow: auto; max-height: 240px; margin: 6px 0 0; }
.kv summary { cursor: pointer; color: var(--ink-2); }
.ask .kv dd { min-width: 0; overflow-wrap: anywhere; }
.kv .flag { display: block; color: var(--warn); }

/* The messages: the server draws them with these classes, and app.js draws them while a reply
   streams, so both look like the design's .mu (the person, a dark bubble on the right with the
   line that says where it went) and .mc (Clast, in the serif and without a bubble). */
.cx .msg-user { align-self: flex-end; max-width: 80%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cx .msg-user > .text { background: var(--bubble); border-radius: 18px; padding: 10px 16px; font: 400 15px/23px var(--sans); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cx .msg-user > .via { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--sans); color: var(--ink-3); }
.cx .msg-assistant, .cx .msg-partial, .cx .msg-update { display: flex; flex-direction: column; gap: 12px; }
.cx .msg-assistant > .text, .cx .msg-partial > .text { font: 400 17px/1.62 var(--serif); color: var(--ink); max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere; }
.cx .msg-partial > .text { color: var(--ink-2); }
.cx .msg-assistant > .text code { font-family: var(--mono); font-size: 13.5px; background: var(--raise); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.cx .msg-assistant.empty { display: none; }
/* A reply's markdown (app.js's clastraMarkdown): bold, lists and code blocks. */
.cx .msg-assistant > .text strong { font-weight: 600; }
.cx .msg-assistant > .text ul, .cx .msg-assistant > .text ol { margin: 6px 0; padding-left: 24px; white-space: normal; }
.cx .msg-assistant > .text pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.5; background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; overflow-x: auto; white-space: pre; }
.cx .msg-assistant > .text pre code { background: none; border: 0; padding: 0; }
.cx .msg-assistant > .text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0; white-space: normal; font-size: 14px; }
.cx .msg-assistant > .text th, .cx .msg-assistant > .text td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; }
.cx .msg-assistant > .text th { font-weight: 600; background: var(--raise); }
.cx .msg-update > .text { font: 400 13px/18px var(--sans); color: var(--ink-3); }
#chat-messages .looked { display: none; }
#chat-messages .looked:has(a) { display: block; font: 400 13px/18px var(--sans); color: var(--accent-ink); }
#chat-messages > .hint { font: 400 13px/18px var(--sans); color: var(--ink-3); }
.typing-row { display: none; margin-top: 22px; }
.cx:has(#chat-form .send:disabled) .typing-row { display: flex; }
.cx:has(#chat-messages [data-stream] .text:not(:empty)) .typing-row { display: none; }
.cnote { color: var(--ink-3); font: 400 13px/18px var(--sans); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.home > .cnote { max-width: 680px; margin-top: 22px; text-align: center; align-items: center; }
.thr > .col + .col { margin-top: 22px; }
.cwrap > .cnote { margin: 8px 6px 0; }
.ask .cnote { margin-top: 10px; }

/* While you were away, a step list on home and in the live conversation. */
.steps.away { margin-top: 26px; width: 100%; max-width: 680px; }
.thr .steps.away { margin-top: 0; }
.steps.away h3 { font: 600 12.5px/18px var(--sans); color: var(--ink); margin-top: 8px; }
.steps.away ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font: 400 13px/19px var(--sans); }

/* The + button's panel: a job script for Clast to check or submit. */
.attach { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.attach form { display: flex; flex-direction: column; gap: 6px; }
.attach label { font: 500 12px/16px var(--sans); color: var(--ink-3); }
.attach input, .attach textarea { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 6px 8px; font: 400 13px/18px var(--mono); color: var(--ink); }
.attach .btn { align-self: flex-end; margin-top: 4px; }

/* The cloud model badge (hard rule 9) and the stopped banners, at the top of the frame. */
.cbadge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--ink); font: 500 12px/16px var(--sans); white-space: nowrap; }
.clast .stopped, .pf .stopped { flex: none; padding: 10px 18px; background: color-mix(in oklab, var(--bad) 14%, var(--bg)); border-bottom: 1px solid var(--line); color: var(--ink); font: 400 13.5px/20px var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.clast .stopped p, .pf .stopped p { margin: 0; }
.clast .stopped a, .pf .stopped a { color: var(--accent-ink); }
.clast .stopped form, .pf .stopped form { margin: 0; }
.clast .stopped button, .pf .stopped button { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 13px/18px var(--sans); }

/* At top level, with no shell around it, the page links and Stop; in a frame the shell's
   sidebar has them. */
.solo { display: none; }
html[data-shell="shown"]:not([data-framed]) .solo { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 18px; border-bottom: 1px solid var(--line); font: 400 13px/18px var(--sans); color: var(--ink-2); }
.solo ul { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
.solo li, .solo details { display: inline; }
.solo summary { cursor: pointer; display: inline; }
.solo a { color: var(--ink-2); }
.solo a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.solo .stop, .pf-pages .stop { height: auto; padding: 0; margin-left: auto; gap: 8px; }
.solo .stop button, .pf-pages .stop button { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--bad) 55%, transparent); color: var(--ink); }
.solo .stop-line, .solo .hint, .pf-pages .stop-line, .pf-pages .hint { color: var(--ink-3); }

@media (max-width: 860px) {
  /* The shell's 52px top bar sits above the frame on a phone, and the design's 8vh is of the
     whole screen. */
  .clast .home { padding-top: calc((100vh + 52px) * .08); }
  .clast .thr { padding: 18px 24px 24px; }
}

/* ---------- pool-frame: the pool's pages in a server's frame (web/pool_frame.py) ---------- */
/* Added by the pool-frame builder: the guest jobs, borrowed jobs, credits and borrow pages, drawn
   as the shell's main area. The prototype has no still of them, so they use its own parts (the
   servers screen's heading, summary, tabs, boxes and job rows, the offer page's booking box and
   the thread's approval card) and add only what those lack. */
.pf-wrap { max-width: 1180px; margin: 0 auto; }
.pf-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 18px 0; font: 500 13px/18px var(--sans); color: var(--ink-3); }
.pf-pages nav { display: contents; }
.pf-pages p { margin: 0; }
.pf-pages a:hover, .pf-pages a[aria-current], .pf-pages .all-servers { color: var(--ink); }
html[data-framed] .pf-pages { display: none; }
.pf .tabs { overflow-x: auto; scrollbar-width: none; }
.pf .tab { flex: none; white-space: nowrap; }
.pf-box + .pf-box { margin-top: 18px; }
.pf-box .boxh { flex-wrap: wrap; row-gap: 2px; }
.pf-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px 150px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 9px; font: 400 13.5px/18px var(--sans); }
.pf-row:hover { background: var(--raise-2); }
.pf-row .jid { color: var(--ink-3); font: 400 12px/18px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row .jn { min-width: 0; }
.pf-row .jn b { font-weight: 500; }
.pf-row .jn small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row .pb { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pf-row .pb i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.pf-row .js { text-align: right; color: var(--ink-3); font-size: 12.5px; }
.pf-row .js.l { color: var(--accent-ink); } .pf-row .js.up { color: var(--good); }
.pf-empty { margin: 0; padding: 6px 10px 12px; color: var(--ink-3); font: 400 13.5px/20px var(--sans); }
.pf-note { margin: 10px 0 0; color: var(--ink-3); font: 400 12.5px/18px var(--sans); }
.box > .pf-note { margin: 0; padding: 0 16px 14px; }
.pf-sec:first-child { padding-top: 4px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.pf-field small { font: 600 11px/15px var(--sans); color: var(--ink-2); }
.pf-field select, .pf-field input, .pf-field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sunk); color: var(--ink); padding: 9px 12px; font: 400 14px/20px var(--sans); outline: 0; }
.pf-field textarea { font: 400 13px/19px var(--mono); resize: vertical; min-height: 140px; }
.light .pf-field select, .light .pf-field input, .light .pf-field textarea { background: #fff; }
.pf-field :focus { border-color: var(--accent); }
.pf-check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font: 400 14px/20px var(--sans); }
.pf-check input, .pf-where input { accent-color: var(--accent); margin-top: 3px; }
.bf input { display: block; width: 100%; border: 0; outline: 0; background: transparent; padding: 0; font: 400 14px/20px var(--sans); color: var(--ink); }
.bf.pf-wide { display: block; border-top: 1px solid var(--line-2); }
.pf-where { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font: 400 14px/20px var(--sans); }
.pf-where legend { padding: 0 0 4px; font: 600 11px/15px var(--sans); color: var(--ink-2); }
.pf-where label { display: flex; gap: 8px; }
.pf-card { margin-top: 4px; }
.pf-card .askb form { margin: 0; }
.pf-script { margin: 0 0 14px; }
.pf-size { margin: 12px 0 0; }
.pf-size .bfields { margin: 8px 0 10px; }
.pf-script summary, .pf-size summary { cursor: pointer; color: var(--ink-2); font: 500 13px/18px var(--sans); }
.pf-script pre { margin: 8px 0 0; max-height: 260px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); font: 400 12.5px/18px var(--mono); white-space: pre-wrap; }
.pf-more { margin: 16px 0 0; }
@media (max-width: 860px) {
  .pf-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .pf-row .jid, .pf-row .pb, .pf-row .pf-gap { display: none; }
  .pf-pages { padding: 10px 16px 0; }
}

/* ---------- Clastra X on the main origin (x-shell: relay/templates/app_x.html, relay/static/shell-x.js) ---------- */
/* The prototype's inline styles in scrXHome, scrXResults, scrXListing and Globe.dc.html as
   rules, and what the product adds to them: the Demo data label wherever a part shows the
   prototype's sample (the prototype labels only the community panel), the chooser of the server
   that borrows under Book, the imagery credit and a line for an empty list. */
.cx .gw { position: absolute; inset: 0; overflow: hidden; background: #000; }
.cx .gw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx .gw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.xgo .ic, .mini .mg .ic { stroke-width: 2.2; }
.xask .logo { color: #1f1e1d; flex: none; }
.xask input:focus-visible { outline: 0; } /* the pill around it is the field */
.xpanel.xp-where { left: 0; width: 380px; }
.xpanel.xp-when { left: 22%; width: 420px; }
.xpanel.xp-gpus { right: 0; width: 420px; }
.card .vis > .open { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.card .l1 .ic, .xlh p .ic { fill: currentColor; stroke: none; }
.xrh .row1 .sp { flex: 1; }
.gal .big .chassis { height: 30%; }
.bf2 .bf { padding: 0; }
.book .alt { width: 100%; }
.xbk { position: relative; }
.xbk .menu { left: 0; right: 0; width: auto; }
.xcred { position: absolute; right: 28px; bottom: 10px; z-index: 3; font: 400 11px/14px var(--sans); color: rgba(245,244,238,.64); }
.xmap .xcred { right: 14px; bottom: 6px; }
.xlist .lh .demo, .xlh .demo { margin-left: 0; }
.xnone { margin: 0; padding: 10px 18px 4px; color: #6f6d66; font: 400 13.5px/19px var(--sans); }
.xlist .xnone, .revs .xnone { padding: 0; color: var(--ink-3); }
/* A control not built yet keeps its place, with a dashed edge and a line that says so. */
.xsoon { margin: 2px 8px 8px; color: #6f6d66; font: 400 12.5px/17px var(--sans); }
.xpanel .pill:disabled { border-style: dashed; color: #6f6d66; cursor: default; }
.xpanel .pill:disabled:hover { border-color: rgba(31,30,29,.18); }
.xlh .btn:disabled { border-style: dashed; color: var(--ink-2); cursor: default; }
.xlh .btn:disabled:hover { background: transparent; }
.xlh .btn .xsoon { margin: 0; color: var(--ink-2); font-size: 11.5px; }
/* The sweep (brief step 10), each change only where a text measured under 4.5 to 1 or a focus
   ring was hidden. White on the violet accent is 3.78 to 1, so Clastra X's three accent buttons
   with words take the frame's Borrow button's step (the accent at 92% with black, and 84% on
   hover instead of lightening). The third ink on the light panels' chosen and hovered rows
   (#ebe9e2, #efede7) and the borrower menu's hovered row (--raise-2, the main origin's step)
   moves just far enough to reach 4.5. */
.xsite .ft .btn.acc, .book .btn.acc, .xgo.wide { background: color-mix(in oklab, var(--accent) 92%, black); }
.xsite .ft .btn.acc:hover, .book .btn.acc:hover, .xgo.wide:hover { filter: none; background: color-mix(in oklab, var(--accent) 84%, black); }
.xopt:hover small, .xopt.on small { color: #6b6962; }
.lrow:hover .lt small, .lrow:hover .pr { color: #6d6b65; }
.xbk .mi:hover .mt small { color: color-mix(in oklab, var(--ink-3) 89%, var(--ink)); }
.cx.light .xbk .mi:hover .mt small { color: color-mix(in oklab, var(--ink-3) 97%, var(--ink)); }
/* Rings drawn inside a box that clips them: the lender rows, the offer cards' pictures and the
   booking box's fields. The Describe box's ring is its pill's, and the Earth's is drawn over the
   globe, whether the canvas or its still shows. */
.lrow:focus-visible, .bfields .bf:focus-visible { outline-offset: -2px; }
.card .vis > .open:focus-visible { outline-offset: -3px; border-radius: 14px; }
.xpill:has(.xask input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx .gw canvas:focus-visible { outline: 0; }
.cx .gw:has(> canvas:focus-visible)::after { content: ""; position: absolute; inset: 4px; z-index: 1; border-radius: 8px; outline: 2px solid var(--accent); pointer-events: none; }
@media (max-width: 860px) {
  .xpanel.xp-where, .xpanel.xp-when, .xpanel.xp-gpus { left: 0; right: 0; width: auto; }
  .xw > .xcred { right: 16px; bottom: 1px; } /* in the strip under the docked place card */
}

/* ---------- sweep-frame: the frame's pages checked for phones, light, motion, keyboard and contrast ---------- */
/* Added by the sweep of Clast's home and conversation and the pool's pages in a server's frame
   (launch brief step 10). Each colour below measured under 4.5 to 1 against its actual
   background and is lifted only there, and only as far as it needs, so the design looks the
   same (docs/decisions.md, The sweep of the frame's pages). */
/* The third ink on a hovered row, --raise-2: 4.1 to 1 dark and 4.4 light, now 4.5 and 5.0. */
.clast .mi:hover small, .clast .mi:hover .tag,
.pf-row:hover .jid, .pf-row:hover .jn small, .pf-row:hover .js:not(.l, .up) { color: color-mix(in oklab, var(--ink-3) 90%, var(--ink)); }
/* A finished task's number in the task chain card, green on its own 22% green: 3.9 dark and 3.3 light. */
.clast .trow .n.done { color: color-mix(in oklab, var(--good) 76%, var(--ink)); }
/* A credit earned, green on white in the light theme: 4.3, and 3.7 on a hovered row. */
.light .pf-row .js.up { color: color-mix(in oklab, var(--good) 84%, var(--ink)); }
/* White on the violet Borrow these GPUs button: 3.8. Hover darkens it instead of lightening. */
.pf .btn.acc { background: color-mix(in oklab, var(--accent) 92%, black); }
.pf .btn.acc:hover { filter: none; background: color-mix(in oklab, var(--accent) 84%, black); }
/* The borrow page's size fields had the browser's own grey placeholder, 2.9 on the dark box. */
.pf .bf input::placeholder { color: var(--ink-3); }
/* From the keyboard, the Private chat button's tip shows on focus as it does on hover. */
.clast .tip:focus-visible::after { opacity: 1; }
/* A control with nothing behind it yet keeps the design's place and says so (docs/decisions.md,
   Unfinished Clast controls): the sidebar's Task chains and Scheduled with "Not available yet",
   and Clast's voice and Private chat buttons, their icons dimmed as .mi.dis and their tips saying
   it. The Private chat tip opens leftward from the top bar's right end, so .cx does not clip it. */
:is(.nv, .cbtn, .ib)[aria-disabled="true"] { cursor: default; }
:is(.nv, .cbtn, .ib)[aria-disabled="true"]:hover { background: none; color: var(--ink-2); }
:is(.cbtn, .ib)[aria-disabled="true"] > .ic { opacity: .55; }
/* The collapsed sidebar hides the rows' note, so there their icons dim the same way. */
.sb.mini .nv[aria-disabled="true"] > .ic { opacity: .55; }
.tbar > .tip:last-child::after { left: auto; right: 0; transform: none; }

/* ---------- sweep of the main origin (sign-in A, the shell and Your servers, launch brief step 10) ---------- */
/* What the sweep found on these screens, fixed with the design's look kept. The third ink on a
   menu row under the pointer and on the sidebar's marked row sits on --raise-2, where it read 4.1
   to 1 in dark and 4.4 in light, so there it takes the smallest step toward the first ink that
   reads 4.5 (tests/test_new_look.py). The servers search and the 6-digit code showed the
   browser's grey hint, under 4.5 in dark (the code's in light too), so they take the third ink
   like the other fields. With motion off, the tips and the switch's knob no longer fade or slide.
   An icon button's tip shows on keyboard focus as on hover. A long email ends with an ellipsis.
   The toast stays in the page while it is empty, with no size, so its live region is there
   before it speaks. On a phone the GPU tiles of Your servers' detail go two to a row, where four
   broke "GPU 0" and its memory over two lines. */
.sbf .mi:hover small, .clast-pick .mi:hover small, .clast-pick .mi:hover .tag:not(.acc), .nv.on .cnt { color: color-mix(in oklab, var(--ink-3) 89%, var(--ink)); }
.cx.light :is(.sbf .mi:hover small, .clast-pick .mi:hover small, .clast-pick .mi:hover .tag:not(.acc), .nv.on .cnt) { color: color-mix(in oklab, var(--ink-3) 97%, var(--ink)); }
.cx:not(.light) .srv .search input::placeholder, .si .code input::placeholder { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .cx .tip::after, .cx .sw::after { transition: none; } }
.tip:focus-visible::after { opacity: 1; }
.acct-t { min-width: 0; }
.acct-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast:empty { padding: 0; box-shadow: none; }
@media (max-width: 860px) { .srv .gpus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- agent pages: the server's own pages in the product look (web/templates/base.html) ---------- */
/* My jobs, Live, Approvals, History, Graph, Machine, Servers, Settings and the Lab, drawn as the
   shell's main area like the pool's pages: the servers screen's heading and tabs, its boxes for
   each block, Clast's approval card for a card, and the pool's fields for a form. The prototype
   has no still of these pages, so the rules below give the plain HTML they hold (sections, lists,
   tables, fields and buttons) the sheet's tokens and type, behind :where(.ap) so any class from
   the sheet wins. Inside the app's frame the header and footer are hidden, since the shell has
   the navigation, the server and Stop all agents; at top level the header has them. */
.cx.ap { display: block; height: auto; min-height: 100vh; overflow: visible; }
.ap .skip { position: absolute; left: -9999px; }
.ap .skip:focus { left: 16px; top: 12px; z-index: 50; padding: 6px 12px; border-radius: 8px; background: var(--raise); color: var(--ink); }
html[data-framed] .ap-top, html[data-framed] .ap-foot { display: none; }

/* The header at top level: brand, state, whose jobs and Stop on one row, the page links under it. */
.ap-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 18px 0; border-bottom: 1px solid var(--line); }
.ap-top .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-right: auto; min-width: 0; }
.ap .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 15px/20px var(--sans); }
.ap .mark { width: 18px; height: 18px; }
.ap .mark rect { fill: currentColor; } .ap .mark .mark-accent { fill: var(--accent); }
.ap-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); color: var(--ink-2); font: 500 12px/16px var(--sans); white-space: nowrap; }
.ap-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.ap-pill[data-pill="waiting"]::before { background: var(--warn); }
.ap-pill[data-pill="stopped"]::before { background: var(--bad); }
.ap .who { color: var(--ink-3); font: 400 13px/18px var(--sans); }
.ap .all-servers { color: var(--ink-2); font: 500 13px/18px var(--sans); }
.ap .all-servers:hover { color: var(--ink); }
.ap-top .stop { height: auto; padding: 0; gap: 10px; flex-direction: row-reverse; margin: 0; }
.ap-top .stop:hover { background: none; }
.ap-top .stop button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid color-mix(in oklab, var(--bad) 55%, transparent); color: var(--ink); font: 500 13px/18px var(--sans); }
.ap-top .stop button:hover { background: color-mix(in oklab, var(--bad) 14%, transparent); }
.ap-top .stop-line, .ap-top > .hint { color: var(--ink-3); font: 400 12px/16px var(--sans); }
.ap-top > .hint { max-width: 380px; }
.ap .logout { margin: 0; }
.ap .logout button { height: 30px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font: 500 13px/18px var(--sans); }
.ap .logout button:hover { background: var(--raise); color: var(--ink); }
.ap-top nav { flex-basis: 100%; }
.ap-top nav > ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ap-top nav li { flex: none; }
.ap-top nav a, .ap-top .more summary { display: block; padding: 8px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); font: 500 14px/20px var(--sans); white-space: nowrap; cursor: pointer; }
.ap-top nav a:hover, .ap-top .more summary:hover { color: var(--ink); }
.ap-top nav a[aria-current="page"], .ap-top .more.current summary { color: var(--ink); border-color: var(--ink); }
.ap-top .more summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.ap-top .more summary::-webkit-details-marker { display: none; }
.ap-top .more summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.ap-top .more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.ap-top .more > ul { position: absolute; z-index: 40; margin: 0; padding: 6px; list-style: none; min-width: 220px; background: var(--raise); border-radius: 14px; box-shadow: var(--pop); }
.ap.light .ap-top .more > ul { background: #fff; }
.ap-top .more > ul a { padding: 8px 10px; margin: 0; border: 0; border-radius: 9px; color: var(--ink-2); }
.ap-top .more > ul a:hover { background: var(--raise-2); color: var(--ink); }
.ap-top .more > ul a[aria-current="page"] { background: var(--raise-2); color: var(--ink); }
.ap-top nav > ul:has(.more[open]) { overflow: visible; }

/* The stopped banners and the cloud model badge, in the frame too. */
.ap .stopped { padding: 10px 18px; background: color-mix(in oklab, var(--bad) 14%, var(--bg)); border-bottom: 1px solid var(--line); color: var(--ink); font: 400 13.5px/20px var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ap .stopped p, .ap .stopped form { margin: 0; }
.ap .stopped a { color: var(--accent-ink); }
.ap .stopped button { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 13px/18px var(--sans); }
.ap .stopped button:hover { background: var(--raise); }
/* Add a phone's QR code (web.lab): dark on white in both themes, so any camera reads it. */
.ap .qr { display: block; width: min(260px, 72vw); height: auto; background: #fff; border-radius: 8px; }
.ap .qr path { fill: #000; }
.srv-phone .qr { display: block; width: min(260px, 72vw); height: auto; margin: 4px 16px 12px; background: #fff; border-radius: 8px; }
.srv-phone .qr path { fill: #000; }
.srv-phone-say { margin: 8px 16px; }
.srv-phone-list { list-style: none; margin: 0 16px 16px; padding: 0; display: grid; gap: 4px; }
.ap-badge { max-width: 1180px; margin: 0 auto; padding: 12px 32px 0; }

/* The page: the servers screen's heading and tabs, then the page's blocks. */
.ap > main { max-width: 1180px; margin: 0 auto; padding: 28px 32px 40px; }
.ap-head h1 { margin: 0 0 6px; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.ap-head .tabs { margin: 14px 0 20px; overflow-x: auto; scrollbar-width: none; }
.ap-head .tab { flex: none; white-space: nowrap; }
.ap-head + * { margin-top: 14px; }
.ap-foot p { max-width: 1180px; margin: 0 auto; padding: 0 32px 24px; color: var(--ink-3); font: 400 12px/16px var(--sans); }
:where(.ap) :where(h2) { margin: 22px 0 10px; font: 600 15px/20px var(--sans); color: var(--ink); }
:where(.ap) :where(h3) { margin: 14px 0 6px; font: 600 13px/18px var(--sans); color: var(--ink); }
:where(.ap) :where(main p, main li, main dd, main dt, main summary, main label, main legend) { font: 400 13.5px/20px var(--sans); color: var(--ink-2); overflow-wrap: anywhere; }
:where(.ap) :where(main p) { margin: 0 0 10px; max-width: 80ch; }
:where(.ap) :where(main ul, main ol) { margin: 0 0 10px; padding-left: 18px; }
:where(.ap) :where(strong, b) { color: var(--ink); font-weight: 600; }
:where(.ap) :where(main a) { color: var(--accent-ink); text-decoration: none; }
:where(.ap) :where(main a:hover) { text-decoration: underline; text-underline-offset: 2px; }
:where(.ap) .hint { color: var(--ink-3); font-size: 12.5px; line-height: 18px; }
:where(.ap) :where(code) { font: 400 12.5px/18px var(--mono); background: var(--sunk); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
:where(.ap) :where(pre) { margin: 8px 0 10px; max-height: 360px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); font: 400 12.5px/18px var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
:where(.ap) :where(pre code) { padding: 0; border: 0; background: none; }
:where(.ap) :where(details > summary) { cursor: pointer; }

/* A block of the page is the servers screen's box: a section, a row of a list and a card. */
:where(.ap) :where(main section, main .rows > li, main .graph-section, main .graph-drawer) { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); min-width: 0; }
:where(.ap.light) :where(main section, main .rows > li, main .graph-section, main .graph-drawer) { background: #fff; }
:where(.ap) :where(main section > h2:first-child, main section > .label + h2, main .rows > li > :first-child) { margin-top: 0; }
:where(.ap) :where(main section > :last-child, main .rows > li > :last-child) { margin-bottom: 0; }
:where(.ap) :where(main section section) { padding: 12px 14px; background: var(--bg); }
:where(.ap) .rows { margin: 0 0 14px; padding: 0; list-style: none; }
:where(.ap) .rows > li { overflow-wrap: anywhere; }
:where(.ap) :where(main section .rows > li) { padding: 10px 12px; margin-bottom: 8px; background: var(--bg); border-radius: 10px; }

/* Tables: the job rows' type, a rule between rows, and a box that scrolls sideways on a phone. */
:where(.ap) :where(table) { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font: 400 13px/18px var(--sans); }
:where(.ap) :where(th) { padding: 6px 10px; text-align: left; vertical-align: bottom; color: var(--ink-3); font: 500 12px/16px var(--sans); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
:where(.ap) :where(td) { padding: 7px 10px; text-align: left; vertical-align: top; color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
:where(.ap) :where(tbody tr:last-child td) { border-bottom: 0; }
:where(.ap) :where(tbody tr:hover) { background: var(--raise-2); }
:where(.ap) .scroll { overflow-x: auto; }

/* Fields and buttons: the pool's fields and the sheet's buttons. */
:where(.ap) :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"]), select, textarea) { max-width: 100%; min-height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sunk); color: var(--ink); padding: 8px 12px; font: 400 14px/20px var(--sans); outline: 0; }
:where(.ap.light) :where(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) { background: #fff; }
:where(.ap) :where(textarea) { width: 100%; font: 400 13px/19px var(--mono); resize: vertical; }
:where(.ap) :where(input, select, textarea):focus { border-color: var(--accent); }
:where(.ap) :where(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--accent); }
:where(.ap) :where(input::placeholder, textarea::placeholder) { color: var(--ink-3); }
:where(.ap) :where(fieldset) { min-inline-size: 0; margin: 0 0 12px; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 12px; }
:where(.ap) :where(fieldset[disabled]) { opacity: .7; }
:where(.ap) :where(legend) { padding: 0 6px; font-weight: 600; color: var(--ink); }
:where(.ap) :where(main form) { margin: 0; }
:where(.ap) :where(main button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 13.5px/18px var(--sans); white-space: nowrap; }
:where(.ap) :where(main button:hover) { background: var(--raise-2); }
:where(.ap) :where(main button[type="submit"]:only-of-type) { margin-top: 4px; }

/* My jobs and Live: one box per job, its state in the first line. */
.ap .jobcard h2, .ap .run h2 { margin: 0 0 6px; font: 600 15px/20px var(--sans); }
.ap .jobcard h2 .jid, .ap .run .jid { color: var(--ink-3); font: 400 12.5px/20px var(--mono); margin-right: 6px; }
.ap .jobcard > p:first-of-type strong, .ap .run-body > p:first-of-type strong { color: var(--ink); }
.ap .flags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap .badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--ink); font: 600 11.5px/16px var(--sans); }
/* A traced run's time split: one strip, its parts in the order of the key under it. */
.ap .run .split { display: block; width: 100%; height: 8px; margin: 10px 0 6px; border-radius: 4px; overflow: hidden; background: var(--line); }
.ap .run .split .split-compute { fill: var(--good); } .ap .run .split .split-comm { fill: var(--accent); } .ap .run .split .split-wait { fill: var(--warn); }
.ap .run .split-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; color: var(--ink-2); font: 400 12.5px/18px var(--sans); }
.ap .run .split-key span[class^="split-"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.ap .run .split-key .split-compute::before { background: var(--good); } .ap .run .split-key .split-comm::before { background: var(--accent); } .ap .run .split-key .split-wait::before { background: var(--warn); }
.ap .run .pace { margin: 0 0 6px; }
.ap .run-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ap .run-controls .hint { flex-basis: 100%; margin: 0; }
.ap form[data-action="run-stop"] button { border-color: color-mix(in oklab, var(--bad) 55%, transparent); }
.ap form[data-action="run-stop"] button:hover { background: color-mix(in oklab, var(--bad) 14%, transparent); }
/* My jobs: the job list on the left and the picked job's panel on the right (web/templates/
   jobs.html). The panel shown is the page's :target, or the first when none is, so picking a
   job needs no script; app.js marks the picked link with aria-current. Under 860px the list
   sits above the panel. The ring is a circle per part of the time, drawn with dash attributes. */
.ap .jobs { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ap .jobs-list { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; max-height: max(320px, calc(100vh - 140px)); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.ap .jobs-list .jl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; }
.ap .jobs-list .jl:hover { background: var(--raise-2); color: var(--ink); text-decoration: none; }
.ap .jobs-list .jl[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }
.ap .jl-t { display: flex; flex-direction: column; min-width: 0; }
.ap .jl-t b { font: 500 13.5px/18px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap .jl-t small { font: 400 12px/16px var(--sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap .jl-t .mono { font-size: 11.5px; margin-right: 4px; }
.ap .jobs-detail .jd { display: none; margin: 0; padding: 18px 20px; }
.ap .jobs-detail .jd:target, .ap .jobs-detail:not(:has(.jd:target)) .jd:first-child { display: block; }
.ap .jobs.js .jobs-detail .jd:not(.on) { display: none; }
.ap .jobs.js .jobs-detail .jd.on { display: block; }
.ap .jd-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.ap .jd-head h2 { margin: 0; font: 600 17px/22px var(--sans); }
.ap .jd-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.ap .jd-state { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ap .jd-play { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); font: 500 12.5px/16px var(--sans); }
.ap .jd-play:hover { background: var(--raise-2); color: var(--ink); text-decoration: none; }
.ap .jd-play svg { width: 12px; height: 12px; fill: var(--accent); }
.ap .jd-why { margin: 0 0 6px; }
.ap .jd-why > summary { color: var(--ink-2); }
.ap .jd-why[open] > summary { margin-bottom: 6px; color: var(--ink); }
.ap .jd-why > p { margin: 0 0 6px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.ap .jd-card { margin: 4px 0 0; }
.ap .jd h3 { margin: 18px 0 8px; color: var(--ink-3); font: 500 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.ap .jd-time { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.ap .ring { width: 148px; height: 148px; flex: none; }
.ap .ring circle { fill: none; stroke-width: 5.2; }
.ap .ring .ring-bg { stroke: var(--line); }
.ap .ring .ring-queued { stroke: var(--warn); } .ap .ring .ring-ran { stroke: var(--good); } .ap .ring .ring-lost { stroke: var(--bad); }
.ap .ring-total { fill: var(--ink); font: 600 4.4px/1 var(--sans); text-anchor: middle; dominant-baseline: central; }
.ap .ring-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap .ring-key li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ap .ring-key li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ap .ring-key b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.ap .ring-key .ring-queued::before { background: var(--warn); } .ap .ring-key .ring-ran::before { background: var(--good); } .ap .ring-key .ring-lost::before { background: var(--bad); }
.ap .jd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.ap .jd-tiles > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.ap .jd-tiles dt { color: var(--ink-3); font: 400 12px/16px var(--sans); }
.ap .jd-tiles dd { margin: 2px 0 0; color: var(--ink); font: 500 16px/22px var(--sans); font-variant-numeric: tabular-nums; }
.ap .jd-tiles small { display: block; margin-top: 2px; color: var(--ink-3); font: 400 12px/16px var(--sans); }
.ap .jd-tiles .jd-lost.some dd { color: var(--bad); }
.ap .jd-notes { list-style: none; margin: 12px 0 0; padding: 0; }
.ap .jd-notes li { color: var(--ink-3); font-size: 12.5px; }
.ap .jd-incidents { margin: 0; padding: 0; list-style: none; counter-reset: incident; }
.ap .jd-incidents li { counter-increment: incident; padding: 7px 0; border-top: 1px solid var(--line); }
.ap .jd-incidents li:first-child { border-top: 0; }
.ap .jd-incidents li::before { content: counter(incident) "."; display: inline-block; min-width: 20px; color: var(--ink-3); }
.ap .jd-attempts { margin-top: 14px; }
.ap .jd-attempts > summary { color: var(--ink-2); }
.ap .jd-attempts ul { margin: 8px 0 0; }
.ap .jd-live { max-width: none; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 860px) {
  .ap .jobs { grid-template-columns: minmax(0, 1fr); }
  .ap .jobs-list { position: static; max-height: 260px; }
}
.ap .feed { list-style: none; padding: 0; margin: 0; }
.ap .feed li { padding: 8px 0; border-top: 1px solid var(--line); }
.ap .feed li:first-child { border-top: 0; }
.ap .feed strong { color: var(--ink-3); font: 400 12px/18px var(--mono); margin-right: 6px; }

/* An approval card: Clast's card, with its accent edge while it needs someone. */
.ap .card { display: block; color: var(--ink-2); }
.ap .card[data-card-status="pending"] { border-color: color-mix(in oklab, var(--accent) 55%, transparent); background: color-mix(in oklab, var(--accent) 7%, var(--bg)); }
.ap .card .label { margin: 0 0 8px; }
.ap .card .needs { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 11.5px/16px var(--sans); }
.ap .card h2 { margin: 0 0 8px; font: 600 14.5px/20px var(--sans); }
.ap .card > ul:not(.hint) { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.ap .card > ul:not(.hint) li { padding-left: 14px; position: relative; }
.ap .card > ul:not(.hint) li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.ap .card [data-card-command], .ap .card [data-card-options] { overflow-wrap: anywhere; }
.ap .card [data-card-flagged] li { color: var(--warn); }
.ap .card form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 8px 0 0; vertical-align: top; }
.ap .card form[data-action="decline"], .ap .card form[data-action="always"] { display: flex; margin-right: 0; }
.ap .card form[data-action="decline"] label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.ap .card form[data-action="always"] .hint { flex-basis: 100%; margin: 0; }
.ap .card form[data-action="approve"] button, .ap .card form[data-action="retry"] button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ap .card form[data-action="approve"] button:hover, .ap .card form[data-action="retry"] button:hover { opacity: .9; background: var(--ink); }

/* Primary actions: the one Save of a form, Approve on the Lab page, Ask in chat. */
.ap :is(form[data-action="settings"], form[data-action="dial"], form[data-action="preset"], form[data-action="share"], form[data-action="model"], form[data-action="lab-approve"], form[data-action="chat-send"], form[data-action="server-add"], form[data-action="server-add-confirm"], form[data-action="login"], form[data-action="login-answer"]) > button[type="submit"],
.ap form[data-action="model"] > p > button[type="submit"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ap :is(form[data-action="settings"], form[data-action="dial"], form[data-action="preset"], form[data-action="share"], form[data-action="lab-approve"], form[data-action="chat-send"], form[data-action="server-add"], form[data-action="server-add-confirm"], form[data-action="login"], form[data-action="login-answer"]) > button[type="submit"]:hover,
.ap form[data-action="model"] > p > button[type="submit"]:hover { opacity: .9; background: var(--ink); }

/* Machine: the readings beside the host cards and the question for Clast. */
.ap .machine { display: grid; gap: 14px; }
.ap .machine > * { min-width: 0; }
.ap .machine p, .ap .machine li, .ap .machine summary, .ap .machine pre { overflow-wrap: anywhere; }
.ap .machine pre { white-space: pre-wrap; }
.ap .machine aside > h2:first-child { margin-top: 0; }
.ap .chat-form { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.ap.light .chat-form { background: #fff; }
.ap .chat-form textarea { font: 400 14px/20px var(--sans); }
.ap .chat-form button { align-self: flex-end; }
@media (min-width: 960px) { .ap .machine { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }

/* History: what the model said, what ran and what Slurm returned, side by side. */
.ap .side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-top: 8px; }
.ap .side h3 { margin: 0; color: var(--ink-3); font: 500 12px/16px var(--sans); }
.ap .side p { margin: 2px 0 0; }

/* Settings: each choice a row, its words beside its control. */
.ap [data-preset], .ap [data-dial], .ap [data-live] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ap [data-preset] .hint { flex-basis: 100%; margin: 0 0 0 24px; }
.ap [data-dial] label { flex: 1 1 240px; color: var(--ink); }
.ap [data-dial] select { flex: 0 1 220px; }
.ap [data-dial] > p, .ap [data-dial] > .hint { flex-basis: 100%; margin: 0; }
.ap [data-allow-rule] form { display: inline-flex; margin-left: 8px; }
.ap fieldset > p > label { margin-right: 6px; }
.ap fieldset > p input[type="number"], .ap fieldset > p input[type="time"] { width: 160px; }
.ap fieldset > p input:not([type="checkbox"], [type="radio"]), .ap fieldset > p select { display: block; margin-top: 6px; }
.ap fieldset > p > input[type="checkbox"] + label, .ap [data-live] label { color: var(--ink); }
.ap #model form > p > label, .ap #server-add > p > label { display: block; }
.ap #model form > p input, .ap #model form > p select, .ap #server-add > p > input:not([type="checkbox"]), .ap #server-add > p > select { display: block; width: 100%; max-width: 480px; margin-top: 6px; }

/* Servers and the Lab. */
.ap .server > p:first-of-type strong { color: var(--ink); }
.ap #login-terminal pre, .ap #cert-terminal pre { min-height: 80px; }
.ap #login-terminal form label, .ap #lab-requests form label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ap #lab-requests form, .ap #lab-devices form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 8px; }

/* Graph: the drawings keep their size and scroll inside their box, the tables stack on a phone. A
   fact the time slider hides has off, and a box in a folded column has folded. */
.ap .off, .ap .folded { display: none; }
.ap .graph-intro { max-width: 80ch; }
.ap .graph-section { padding: 6px 16px 14px; }
.ap .graph-section > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; list-style: none; }
.ap .graph-section > summary::-webkit-details-marker { display: none; }
.ap .graph-section > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-2px) rotate(-45deg); transition: transform .15s; }
.ap .graph-section[open] > summary::before { transform: translateY(-3px) rotate(45deg); }
.ap .graph-section > summary h2 { margin: 0; }
.ap .sum-note { color: var(--ink-3); font: 400 13px/18px var(--sans); }
.ap .graph-section[open] > summary .sum-note { display: none; }
.ap .graph-asof { position: sticky; top: 0; z-index: 2; padding: 10px 16px; box-shadow: var(--pop); }
.ap .graph-asof h2 { margin: 0; font-size: 14px; }
.ap .asof-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ap .asof-row output { color: var(--ink); font: 600 13.5px/20px var(--sans); }
.ap .graph-asof input[type="range"] { width: 100%; margin: 6px 0; }
.ap .graph-asof .hint { margin: 0; }
.ap .graph-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.ap .graph-facts dt { color: var(--ink-3); }
.ap .graph-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ap .graph-jobs li { margin: 0 0 4px; }
.ap .graph-jobs a[aria-current="page"] { font-weight: 600; color: var(--ink); }
.ap .graph-scroll { position: relative; overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ap .graph-scroll svg { display: block; max-width: none; font: 400 13px/1 var(--sans); }
.ap .graph-pair { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hood" "drawer" "why"; gap: 0 18px; }
.ap .graph-hood { grid-area: hood; } .ap .graph-drawer { grid-area: drawer; } .ap .graph-explanation { grid-area: why; }
@media (min-width: 1100px) {
  .ap .graph-pair { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); grid-template-areas: "hood drawer" "hood why"; grid-template-rows: auto 1fr; align-items: start; }
  .ap .graph-drawer { max-height: 32rem; overflow-y: auto; }
}
.ap .graph-hood:not([open]) ~ .graph-drawer { display: none; }
.ap .graph-drawer { border-left: 3px solid var(--accent); overflow-wrap: anywhere; }
.ap .graph-drawer h3 { margin: 0 0 8px; color: var(--accent-ink); }
.ap .graph-drawer h4 { margin: 12px 0 4px; font: 600 13px/18px var(--sans); color: var(--ink); }
.ap .graph-drawer dl, .ap .tl-tip dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0; }
.ap .graph-drawer dt, .ap .tl-tip dt { color: var(--ink-3); }
.ap .graph-drawer dd, .ap .tl-tip dd { margin: 0; color: var(--ink); }
.ap .drawer-edges { margin: 0; padding: 0; list-style: none; }
.ap .drawer-edges button { width: 100%; height: auto; min-height: 32px; margin: 0 0 4px; padding: 6px 10px; justify-content: flex-start; text-align: left; white-space: normal; font-size: 13px; line-height: 18px; }
.ap .drawer-edges button.sel { border-color: var(--accent); background: var(--accent-soft); }
/* The timeline. The run colours keep the old page's meaning, a hue per way a run ended. */
.ap .tl-labels { fill: var(--sunk); }
.ap .tl-tick, .ap .tl-rule { stroke: var(--line); stroke-width: 1; }
.ap .tl-tick-label { fill: var(--ink-3); font-size: 11px; text-anchor: middle; }
.ap .tl-lane-label, .ap .nb-head text { fill: var(--ink); font-weight: 600; }
.ap .tl-note { fill: var(--ink-3); font-style: italic; }
.ap .tl-wait, .ap .tl-run { fill: var(--idle); }
.ap :is(.tl-run, .tl-node, .tl-incident, .tl-event, .nb-node, .nb-edge, .nb-head, .nb-chip) { cursor: pointer; }
.ap .st-completed { fill: var(--good); } .ap .st-running { fill: var(--accent); } .ap .st-preempted { fill: var(--warn); }
.ap .st-timeout { fill: #a78bfa; } .ap .st-out_of_memory { fill: #f472b6; } .ap .st-node_fail { fill: var(--bad); }
.ap .st-failed { fill: #e5484d; } .ap .st-cancelled { fill: var(--ink-3); } .ap .st-requeued { fill: #fb923c; }
.ap .tl-lost { fill: var(--bg); fill-opacity: .55; pointer-events: none; }
.ap .tl-hatch { stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.ap .tl-checkpoint { stroke: var(--ink); stroke-width: 3; }
.ap .ns-idle { fill: var(--line-2); } .ap .ns-mixed { fill: #84adff; } .ap .ns-allocated { fill: var(--accent); }
.ap .ns-down { fill: var(--bad); } .ap .ns-drained { fill: var(--warn); } .ap .ns-other { fill: var(--line); }
.ap .tl-incident { fill: color-mix(in oklab, var(--bad) 14%, transparent); stroke: var(--bad); }
.ap .tl-event { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.ap .ev-decision, .ap .ev-action { fill: var(--accent); } .ap .ev-alert { fill: #fb923c; }
.ap .ev-node_down, .ap .ev-node_drained { fill: var(--bad); }
.ap .tl-link { stroke: var(--accent); stroke-width: 1; visibility: hidden; pointer-events: none; }
.ap .tl-link.near, .ap .tl-link.sel, .ap .tl-link.hl { visibility: visible; }
.ap .tl-cursor { stroke: var(--accent); stroke-width: 2; }
.ap .tl-tip { position: absolute; z-index: 3; min-width: 14rem; max-width: 22rem; padding: 8px 12px; border-radius: 10px; background: var(--raise); box-shadow: var(--pop); font: 400 13px/18px var(--sans); color: var(--ink); pointer-events: none; }
/* The neighborhood and its legend. Its swatches carry the sheet's switch class, so they undo it. */
.ap .nb-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; padding: 0; list-style: none; }
.ap .nb-legend li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ap .nb-legend .sw { width: 20px; height: 14px; border-radius: 3px; box-shadow: none; border: 1px solid var(--line-2); transition: none; }
.ap .nb-legend .sw::after { content: none; }
.ap .sw-line line { stroke-width: 2; }
.ap .lg-reliable { stroke: var(--ink-3); } .ap .lg-inferred { stroke: #a78bfa; stroke-dasharray: 5 4; }
.ap .lg-picked { stroke: var(--warn); stroke-width: 4; } .ap .lg-selected { stroke: var(--accent); stroke-width: 3; }
.ap .nb-back { fill: var(--bg); }
.ap .nb-node rect { stroke: var(--line-2); stroke-width: 1; }
.ap .nb-node text { fill: var(--ink); font-size: 13px; }
.ap .k-user rect, .ap .sw-user { fill: var(--raise-2); background: var(--raise-2); }
.ap .k-account rect, .ap .sw-account { fill: rgba(255, 197, 138, .16); background: rgba(255, 197, 138, .16); }
.ap .k-qos rect, .ap .sw-qos { fill: rgba(244, 114, 182, .16); background: rgba(244, 114, 182, .16); }
.ap .k-job rect, .ap .sw-job { fill: rgba(132, 173, 255, .18); background: rgba(132, 173, 255, .18); }
.ap .k-attempt rect, .ap .sw-attempt { fill: color-mix(in oklab, var(--good) 16%, transparent); background: color-mix(in oklab, var(--good) 16%, transparent); }
.ap .k-checkpoint rect, .ap .sw-checkpoint { fill: var(--accent-soft); background: var(--accent-soft); }
.ap .k-event rect, .ap .sw-event { fill: color-mix(in oklab, var(--warn) 18%, transparent); background: color-mix(in oklab, var(--warn) 18%, transparent); }
.ap .k-node rect, .ap .sw-node { fill: rgba(103, 232, 249, .14); background: rgba(103, 232, 249, .14); }
.ap .k-partition rect, .ap .sw-partition { fill: color-mix(in oklab, var(--ink-2) 12%, transparent); background: color-mix(in oklab, var(--ink-2) 12%, transparent); }
.ap .k-incident rect, .ap .sw-incident { fill: color-mix(in oklab, var(--bad) 14%, transparent); background: color-mix(in oklab, var(--bad) 14%, transparent); }
.ap .nb-head text { font-size: 13px; }
.ap :is(.nb-head, .nb-node, .nb-edge, .nb-chip):focus-visible { outline: 2px solid var(--accent); }
.ap .nb-chip rect { fill: var(--raise-2); stroke: var(--accent); stroke-dasharray: 3 2; }
.ap .nb-chip text { fill: var(--accent-ink); font-weight: 600; }
.ap .nb-line { fill: none; stroke: var(--ink-3); stroke-width: 1.25; }
.ap .nb-hit { fill: none; stroke: transparent; stroke-width: 10; }
.ap .nb-edge.inferred .nb-line { stroke: #a78bfa; stroke-dasharray: 5 4; }
.ap .nb-label rect { fill: var(--bg); fill-opacity: .9; }
.ap .nb-label text { fill: var(--ink-3); font-size: 11px; text-anchor: middle; }
.ap .nb-label.inferred text { fill: #a78bfa; }
.ap .nb-pick rect { fill: var(--accent); }
.ap .nb-pick text { fill: var(--on-accent); font-size: 11px; text-anchor: middle; }
.ap .nb.focus :is(.nb-node, .nb-edge, .nb-label, .nb-chip) { opacity: .25; }
.ap .nb.focus .lit { opacity: 1; }
.ap .nb-node.sel rect, .ap .tl-mark.sel { stroke: var(--accent); stroke-width: 3; }
.ap .nb-node.hl rect, .ap .tl-mark.hl { stroke: var(--warn); stroke-width: 3; }
.ap :is(.nb-edge.sel, .nb-edge.near, .nb-edge.lit) .nb-line { stroke: var(--accent); stroke-width: 2.5; }
.ap .nb-edge.hl .nb-line { stroke: var(--warn); stroke-width: 3.5; }
.ap .graph-table tr.sel, .ap .graph-table tr.hl { background: color-mix(in oklab, var(--warn) 16%, transparent); }
/* Why the job lost GPU hours: a factor per box, its share as a bar. */
.ap .graph-factors { margin: 0; padding: 0; list-style: none; }
.ap .graph-factor { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ap .graph-factor p { margin: 8px 0; }
.ap .factor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ap .factor-share { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ap .share-track { fill: var(--line); } .ap .share-fill { fill: var(--warn); }
.ap .graph-factor .chip { height: 22px; padding: 0 8px; border: 0; border-radius: 6px; font: 600 11.5px/22px var(--sans); }
.ap .chip-change { background: color-mix(in oklab, var(--good) 18%, transparent); color: var(--ink); }
.ap .chip-inferred { background: var(--accent-soft); color: var(--accent-ink); }
.ap .factor-more summary, .ap .fold summary { color: var(--accent-ink); }
.ap .factor-pick { height: auto; min-height: 32px; padding: 5px 12px; border-color: color-mix(in oklab, var(--accent) 55%, transparent); color: var(--accent-ink); font-weight: 600; text-align: left; white-space: normal; }
.ap .factor-pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* The fact tables, their filters and their folded long values. */
.ap .table-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.ap .table-filter[hidden] { display: none; }
.ap .table-filter input { flex: 1 1 14rem; max-width: 24rem; }
.ap .fold summary { list-style: none; }
.ap .fold summary::-webkit-details-marker { display: none; }
.ap .fold-show, .ap .fold-hide { font-weight: 600; }
.ap .fold-hide, .ap .fold[open] .fold-show, .ap .fold[open] .fold-start { display: none; }
.ap .fold[open] .fold-hide { display: inline; }
.ap .fold-all { display: block; }
.ap .graph-table { margin-bottom: 18px; }
.ap .graph-table .sort { height: auto; min-height: 28px; padding: 0; border: 0; background: none; color: var(--ink-3); font: 500 12px/16px var(--sans); }
.ap .graph-table .sort:hover { color: var(--ink); background: none; }

/* A phone: one column, the page's gutters the sheet's 16px. */
@media (max-width: 860px) {
  .ap-top { padding: 10px 16px 0; }
  .ap > main { padding: 18px 16px 32px; }
  .ap-badge { padding: 12px 16px 0; }
  .ap-foot p { padding: 0 16px 20px; }
  .ap-head h1 { font-size: 26px; }
  .ap .side { grid-template-columns: minmax(0, 1fr); }
  .ap .graph-facts { grid-template-columns: minmax(0, 1fr); }
  .ap .graph-asof { position: static; }
  .ap .graph-table thead { position: absolute; left: -9999px; }
  .ap .graph-table tr, .ap .graph-table td { display: block; }
  .ap .graph-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .ap .graph-table td { border: 0; padding: 2px 0; }
  .ap .graph-table td::before { content: attr(data-label) ": "; color: var(--ink-3); }
  .ap .card form[data-action="decline"] label input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ap .graph-section > summary::before { transition: none; } }
/* The server's own login page (server/login.py), sign-in's narrow column. */
.ap > main.ap-login { max-width: 420px; padding-top: 12vh; }
.ap-login h1 { margin: 0 0 22px; font: 400 34px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.ap-login label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font: 500 12.5px/16px var(--sans); }
.ap-login input { width: 100%; }
.ap-login button[type="submit"] { width: 100%; height: 42px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ap-login button[type="submit"]:hover { opacity: .9; background: var(--ink); }
.ap-login [role="alert"] { color: var(--bad); }
/* A list inside a fieldset is rows of choices with a rule between them, not boxes in a box. */
:where(.ap) :where(main fieldset .rows) { margin: 0 0 8px; }
:where(.ap) :where(main fieldset .rows > li) { margin: 0; padding: 9px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
:where(.ap) :where(main fieldset .rows > li:first-child) { border-top: 0; }
.ap [data-preset] .hint, .ap [data-dial] > p, .ap [data-dial] > .hint { max-width: none; }
/* A list straight under the page (History's events) is one box of rows, like the feed. */
:where(.ap) :where(main > .rows) { padding: 2px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
:where(.ap.light) :where(main > .rows) { background: #fff; }
:where(.ap) :where(main > .rows > li) { margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
:where(.ap) :where(main > .rows > li:first-child) { border-top: 0; }
/* A list inside a box is a sunk panel of rows, not a stack of boxes. */
:where(.ap) :where(main section .rows) { padding: 2px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
:where(.ap) :where(main section .rows > li) { margin: 0; padding: 9px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
:where(.ap) :where(main section .rows > li:first-child) { border-top: 0; }
:where(.ap) :where(main fieldset .rows) { padding: 0; border: 0; background: none; }
.ap .graph-section:not([open]) { padding-bottom: 6px; }
.ap main > .rows { padding: 2px 16px; }
.ap main section .rows { padding: 2px 12px; }
.ap main fieldset .rows { padding: 0; }

/* ---------- relay pages: the relay's plain pages and its two ways in (relay/templates/base.html) ---------- */
/* Privacy, admin stop, Continue on Clastra and a server's boot page (pair.html) take the agent
   pages' root (.cx.ap) with .rl, a reading column and the brand alone in the header. The lab
   login (lab.html) and the account with a password (ways-in.html) take sign-in A's two columns
   (.si.way): the form where sign-in's buttons are, and a panel of words where the Earth is. */
.rl .ap-top { padding-bottom: 10px; }
.rl > main { max-width: 760px; }
.rl main > h1 { margin: 0 0 14px; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.rl main .button { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 14px/20px var(--sans); }
.rl main .button:hover { opacity: .92; text-decoration: none; }
.rl .error, .rl [data-state="stopped"] { color: var(--bad); }
.rl .cluster label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.rl #status:empty { display: none; }
.rl .admin-stop .stopped { font-weight: 600; }
.si.way .sil .top { justify-content: space-between; }
.si .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 600 15px/20px var(--sans); }
.si .mark { width: 22px; height: 22px; }
.si .mark rect { fill: currentColor; } .si .mark .mark-accent { fill: var(--accent); }
.way-top { margin: 0; color: var(--ink-3); font: 400 13.5px/18px var(--sans); }
.way-top a { color: var(--ink); font-weight: 500; }
.way-top .back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink-2); font-weight: 400; }
.si.way .admin-stop { margin: 14px 0 0; border-radius: 11px; border: 1px solid color-mix(in oklab, var(--bad) 40%, transparent); }
.si.way .sic h2 { margin: 40px 0 0; padding-top: 28px; width: 100%; max-width: 380px; border-top: 1px solid var(--line); font: 400 26px/1.2 var(--serif); }
.si.way .sic h1 { font-size: 44px; }
.si.way .sic .sub { margin-bottom: 24px; }
.si.way .sib + .sib { margin-top: 10px; }
.si.way label { margin: 6px 0 -2px; text-align: left; color: var(--ink-2); font: 500 13px/18px var(--sans); }
.si.way label:first-child { margin-top: 0; }
.si.way .sibtn.solid, .si.way form.sib > .sibtn:last-child { margin-top: 6px; }
.si.way .sibtn:disabled { opacity: .5; cursor: default; }
.si.way .siin[aria-invalid="true"] { border-color: var(--bad); }
.si.way code { font: 400 .9em/1 var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); }
.si.way .sic a:not(.sibtn, .chip) { text-decoration: underline; text-underline-offset: 2px; }
.with-icon { position: relative; }
.with-icon svg { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 1.6; pointer-events: none; }
.with-icon .siin { padding-left: 42px; }
.si.way .sibtn > svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.field-hint { margin: 2px 0 0; text-align: left; color: var(--ink-3); font: 400 12.5px/18px var(--sans); }
.field-hint.centered { text-align: center; }
.field-error { margin: 2px 0 0; text-align: left; color: var(--bad); font: 500 13px/18px var(--sans); }
.way-foot { margin: 0; text-align: center; }
.way-foot a { color: var(--ink-3); text-decoration: none; }
/* The lab login's server chip, offline note, command box (a phone's), code boxes and caution. */
.si.way .chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; margin-bottom: 22px; padding: 3px 12px 3px 4px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 400 13.5px/18px var(--sans); }
.si.way .chip:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.si.way .tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); }
.si.way .tile svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.chip-address { min-width: 0; overflow: hidden; color: var(--ink-3); font: 400 12.5px/18px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.si.way .note { max-width: 380px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--raise); color: var(--ink-2); text-align: left; font: 400 13.5px/20px var(--sans); }
.si.way .note strong { color: var(--ink); }
.command { display: none; width: 100%; max-width: 380px; text-align: left; }
.command p { margin: 0 0 8px; color: var(--ink-2); font: 400 14px/20px var(--sans); }
.command .command-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin: 0 0 18px; padding: 0 5px 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--sunk); }
.si.way .command-box code { padding: 0; border: 0; background: none; font-size: 14px; }
.command-box button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); }
.command-box button[hidden] { display: none; }
/* The code: one real field over eight boxes that shell.js fills, so paste, autofill and a
   screen reader all see a single input. */
.cells { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cells input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: text; }
.cells span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 52px; border: 1px solid var(--line-2); border-radius: 11px; background: color-mix(in oklab, var(--ink) 4%, transparent); font: 500 22px/1 var(--mono); color: var(--ink); }
.cells i { width: 10px; height: 2px; background: var(--line-2); }
.cells:focus-within span.at { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#lab-form:has(#status[data-tone="bad"]) .cells span { border-color: var(--bad); }
.si.way #status { margin: 4px 0 0; color: var(--ink-2); font: 400 13.5px/18px var(--sans); }
.si.way #status:empty { display: none; }
.si.way #status[data-tone="bad"] { color: var(--bad); }
.si.way #status[data-tone="wait"] { color: var(--warn); }
.si.way #status[data-tone="ok"] { color: var(--good); }
.caution { display: flex; gap: 10px; margin: 6px 0 0; padding: 10px 12px; border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); border-radius: 11px; background: color-mix(in oklab, var(--warn) 10%, transparent); color: var(--ink-2); text-align: left; font: 400 13px/19px var(--sans); }
.caution svg { margin-top: 1px; color: var(--warn); }
.way-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.way-more details { color: var(--ink-2); font: 400 13px/19px var(--sans); }
.way-more summary { color: var(--accent-ink); font-weight: 500; cursor: pointer; }
.way-more details p { margin: 6px 0 0; }
/* The panel where sign-in has the Earth: what Clastra is, or how to get a code. */
.si .sir.way-aside { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 48px; background: var(--side); border: 1px solid var(--line); color: var(--ink); }
.way-copy h2 { margin: 0 0 10px; font: 300 38px/1.15 var(--serif); letter-spacing: -.01em; }
.way-copy p { margin: 0; color: var(--ink-2); font: 400 16px/24px var(--serif); }
.way-copy .label { margin-bottom: 8px; color: var(--accent-ink); font: 500 13px/18px var(--sans); }
.way-box { max-width: 440px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.way-box figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 400 12.5px/18px var(--sans); }
.way-box figcaption:has(svg) { justify-content: flex-start; }
.way-box figcaption strong { color: var(--ink); font-weight: 600; }
.way-box ul { margin: 0; padding: 0; list-style: none; }
.way-box li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.way-box li + li { border-top: 1px solid var(--line); }
.way-box pre { margin: 0; padding: 12px 16px; color: var(--ink-2); font: 400 13px/1.7 var(--mono); }
.way-box .what { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--ink-3); font: 400 12.5px/18px var(--sans); }
.way-box .what strong { color: var(--ink); font: 500 14px/20px var(--mono); }
.way-aside .tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.way-aside .tile svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.way-aside .status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font: 500 12.5px/18px var(--sans); }
.way-aside .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.way-aside .status.online { color: var(--good); }
.way-aside .status.online::before { background: var(--good); }
.way-aside .dim { color: var(--ink-3); }
.way-aside .sample { color: var(--good); font-weight: 600; }
.way-aside code { font: 400 .9em/1 var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--sunk); border: 1px solid var(--line); }
.way-note { display: flex; gap: 10px; max-width: 440px; margin: 0; color: var(--ink-3); font: 400 14px/20px var(--sans); }
.way-note svg { margin-top: 2px; color: var(--good); }
.numbered { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0; padding: 0; list-style: none; counter-reset: step; color: var(--ink-2); font: 400 15px/22px var(--sans); }
.numbered li { display: flex; align-items: flex-start; gap: 12px; counter-increment: step; }
.numbered li::before { content: counter(step); display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-ink); font: 600 12px/1 var(--sans); }
@media (max-width: 860px) {
  .sil { padding: 18px 16px 24px; }
  .si.way .sic h1 { font-size: 32px; }
  .command { display: block; }
  .chip-address { display: none; }
  .cells { gap: 4px; }
  .cells span { width: 34px; height: 46px; font-size: 19px; }
}

/* ---------- machine page (web/templates/machine.html), folded in from machine.css as it was ---------- */
/* Machine page additions: compact charts, Update button, task boxes and the job pipeline.
   Lines and tracks take the page's own text colour, so they sit on the product look's cards;
   colour is kept for meaning. */
.machine-head { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.machine-head .update-form { margin: 0; }

/* --- shared bits ---------------------------------------------------------------------- */
.charts-grid-3, .gpu-visual-row, .disk-visual-item, .task-card {
  --m-soft: color-mix(in srgb, currentColor 14%, transparent);
  --m-faint: color-mix(in srgb, currentColor 5%, transparent);
  --m-dim: color-mix(in srgb, currentColor 62%, transparent);
}
.donut-track { fill: none; stroke: color-mix(in srgb, currentColor 14%, transparent); }
.donut-fill { fill: none; stroke-linecap: round; }
.donut-wrap, .donut-wrap-sm { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.donut-wrap { width: 64px; height: 64px; }
.donut-wrap-sm { width: 40px; height: 40px; }
.donut-svg, .donut-svg-sm { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.donut-pct { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-pct-sm { display: block; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-sub { display: block; max-width: 52px; font-size: 9px; color: color-mix(in srgb, currentColor 62%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-label { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, currentColor 62%, transparent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.hw-pill { padding: 1px 7px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 999px; font-size: 11px; color: color-mix(in srgb, currentColor 62%, transparent); white-space: nowrap; }
.hw-pill strong { color: currentColor; font-weight: 600; }

/* --- This machine: three small cards, donut beside its numbers --------------------------- */
.charts-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.chart-box {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px;
  align-items: center; padding: 8px 10px; border: 1px solid var(--m-soft); border-radius: 10px; background: var(--m-faint);
}
.chart-box .donut-wrap { grid-column: 1; grid-row: 1 / 4; }
.chart-box .chart-label, .chart-box .chart-meta, .chart-box .chart-meta-sub { grid-column: 2; min-width: 0; }
.chart-meta { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-meta-sub { font-size: 11px; color: var(--m-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- GPUs: one compact row per GPU ----------------------------------------------------- */
.gpu-visual-row {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: center;
  margin: 8px 0; padding: 8px 10px; border: 1px solid var(--m-soft); border-radius: 10px; background: var(--m-faint);
}
.gpu-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gpu-title { margin-bottom: 4px; font-size: 13px; font-weight: 600; }

/* --- Disks: mini donut, name and a thin bar --------------------------------------------- */
.disk-visual-item {
  display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 10px;
  border: 1px solid var(--m-soft); border-radius: 10px; background: var(--m-faint);
}
.disk-body { flex: 1; min-width: 0; }
.disk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-bottom: 4px; }
.disk-top code { font-size: 11.5px; overflow-wrap: anywhere; }
.disk-bar-svg { display: block; width: 100%; height: 4px; border-radius: 2px; overflow: hidden; }
.disk-bar-svg rect:first-child, .metric-svg rect:first-child { fill: color-mix(in srgb, currentColor 14%, transparent); }

/* --- Top processes: legend, order bar and small colour-coded task boxes ------------------- */
.comp-legend, .sort-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0; font-size: 11px; }
.comp-tag { display: inline-flex; align-items: center; gap: 5px; color: color-mix(in srgb, currentColor 62%, transparent); }
.dot-gpu, .dot-cpu, .dot-life, .dot-mem, .dot-imp { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-gpu { background: #a855f7; }
.dot-cpu { background: #3b82f6; }
.dot-life { background: #06b6d4; }
.dot-mem { background: #22c55e; }
.dot-imp { background: #f59e0b; }
.sort-label { margin-right: 2px; color: color-mix(in srgb, currentColor 62%, transparent); }
.sort-pill {
  padding: 2px 9px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 999px;
  color: inherit; text-decoration: none; white-space: nowrap;
}
.sort-pill:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.sort-pill-active { border-color: #3b82f6; background: color-mix(in srgb, #3b82f6 18%, transparent); }
.task-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.task-card { padding: 6px 10px; border: 1px solid var(--m-soft); border-radius: 10px; background: var(--m-faint); }
.task-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-bottom: 5px; }
.task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.task-title code { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.task-top > .hw-pill { display: inline-flex; align-items: center; gap: 5px; }
.task-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.metric-cell { min-width: 0; padding: 4px 6px; border-radius: 6px; background: var(--m-faint); }
.metric-head { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 3px; font-size: 10.5px; color: var(--m-dim); white-space: nowrap; }
.metric-head span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.metric-head span:last-child { color: currentColor; overflow: hidden; text-overflow: ellipsis; }
.metric-svg { display: block; width: 100%; height: 4px; border-radius: 2px; overflow: hidden; }

/* --- raw readings drawer ------------------------------------------------------------------ */
.raw-drawer { margin-top: 6px; }
.raw-drawer > summary { cursor: pointer; font-size: 12px; color: color-mix(in srgb, currentColor 62%, transparent); }

@media (max-width: 760px) {
  .charts-grid-3 { grid-template-columns: 1fr; }
  .task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gpu-visual-row { grid-template-columns: auto auto; }
  .gpu-visual-row > :last-child { grid-column: 1 / -1; }
}

/* >>> clastra pipeline (begin) */
/* Machine page job pipeline (templates/pipeline.html). Line art takes the page's own text
   colour, so it follows Clastra's light or dark theme; colour is kept for the selected
   package, a running machine and an error. apply_pipeline.py replaces this whole block. */
.pl {
  --pl-line: color-mix(in srgb, currentColor 45%, transparent);
  --pl-soft: color-mix(in srgb, currentColor 16%, transparent);
  --pl-faint: color-mix(in srgb, currentColor 6%, transparent);
  --pl-accent: #3b82f6;
  --pl-run: #22c55e;
  --pl-err: #ef4444;
  margin: 12px 0 24px;
}
.pl [hidden] { display: none !important; }
#pipeline.pl {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: stretch;
  width: 100%; max-width: none; box-sizing: border-box;
}
@media (max-width: 860px) { #pipeline.pl { grid-template-columns: 1fr; } }
#pipeline .pl-main { display: block; min-width: 0; }
#pipeline .pl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 30px; }
#pipeline .pl-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
#pipeline .pl-side { display: flex; flex-direction: column; min-width: 0; padding: 8px; border: 1px solid var(--pl-soft); border-radius: 10px; }
#pipeline .pl-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; border-bottom: 1px solid var(--pl-soft); margin-bottom: 6px; }
#pipeline .pl-side-title { font-size: 13px; font-weight: 600; }
.pl-seg { display: inline-flex; border: 1px solid var(--pl-soft); border-radius: 999px; padding: 2px; }
.pl .pl-seg button {
  appearance: none; border: 0; margin: 0; background: none; color: inherit; font: inherit; font-size: 12px;
  line-height: 1.4; padding: 3px 12px; border-radius: 999px; cursor: pointer; opacity: .65;
}
.pl .pl-seg button:hover { opacity: 1; background: none; }
.pl .pl-seg button[aria-pressed="true"] { background: var(--pl-soft); opacity: 1; font-weight: 600; }
.pl .pl-icon {
  appearance: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0;
  border: 1px solid var(--pl-soft); border-radius: 999px; background: none; color: inherit; cursor: pointer;
}
.pl .pl-icon:hover:not(:disabled) { background: var(--pl-faint); }
.pl .pl-icon:disabled { opacity: .35; cursor: default; }
.pl .pl-icon svg { width: 14px; height: 14px; fill: currentColor; }
.pl .pl-icon svg.pl-st { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pl-stage { position: relative; border: 1px solid var(--pl-soft); border-radius: 10px; overflow: hidden; }
.pl-tag { position: absolute; top: 8px; left: 10px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-line); }

/* Drawing */
#pipeline .pl-svg { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 900 / 260; user-select: none; }
.pl-svg .pl-art, .pl-svg .pl-steps { pointer-events: none; }
.pl-svg .pl-ln { fill: none; stroke: var(--pl-line); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pl-svg .pl-hit { fill: transparent; cursor: pointer; }
.pl-svg .pl-hit:hover { fill: var(--pl-faint); }
.pl-svg .pl-tread { fill: none; stroke: var(--pl-line); stroke-width: 2; stroke-dasharray: 6 8; }
.pl-svg .pl-loop { fill: none; stroke: var(--pl-err); stroke-width: 1.5; stroke-dasharray: 5 5; }
.pl-svg .pl-box { fill: var(--pl-faint); stroke: var(--pl-line); stroke-width: 1.2; }
.pl-svg .pl-pile-back { fill: none; stroke: var(--pl-line); stroke-width: 1.2; }
.pl-svg .pl-box-t { fill: currentColor; font: 9.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-anchor: middle; dominant-baseline: central; }
.pl-svg .pl-q { cursor: pointer; }
.pl-svg .pl-q-anon { cursor: default; }
.pl-svg .pl-q:hover .pl-box, .pl-svg .pl-q:hover .pl-pile-back { stroke: currentColor; }
.pl-svg .pl-pile.sel .pl-box, .pl-svg .pl-pile.sel .pl-pile-back { stroke: var(--pl-accent); stroke-width: 2; }
.pl-svg .pl-ghost { fill: none; stroke: var(--pl-line); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pl-svg .pl-jbox { fill: var(--pl-accent); }
.pl-svg .pl-j.err .pl-jbox { fill: var(--pl-err); }
.pl-svg .pl-jt { fill: #fff; font: 600 9.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-anchor: middle; dominant-baseline: central; }
.pl-svg .pl-jpos { fill: var(--pl-accent); font: 600 10px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; }
.pl-svg .pl-done { fill: var(--pl-soft); stroke: var(--pl-line); stroke-width: 1.2; }
.pl-svg .pl-track { fill: var(--pl-soft); }
.pl-svg .pl-prog { fill: var(--pl-accent); }
.pl-svg .pl-light { fill: var(--pl-soft); }
.pl-svg .pl-light.run { fill: var(--pl-run); animation: pl-pulse 1.6s ease-in-out infinite; }
.pl-svg .pl-light.err { fill: var(--pl-err); }
.pl-svg .pl-led { fill: var(--pl-soft); }
.pl-svg .pl-led.on { fill: var(--pl-run); }
.pl-svg .pl-count { fill: var(--pl-line); font: 600 9px ui-sans-serif, system-ui, sans-serif; dominant-baseline: central; text-anchor: middle; }
.pl-svg #pl-count { text-anchor: start; }
.pl-svg .pl-steps circle { fill: none; stroke: var(--pl-line); stroke-width: 1.2; }
.pl-svg .pl-steps text { fill: var(--pl-line); font: 600 10px ui-sans-serif, system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; }
.pl.pl-replay .pl-svg .pl-hit { cursor: default; }
.pl.pl-replay .pl-svg .pl-hit:hover { fill: transparent; }
.pl.pl-replay .pl-svg .pl-q { pointer-events: none; }
@keyframes pl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pl-svg .pl-light.run { animation: none; } }

/* Player: Back, Pause/Play, Next */
.pl-player { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pl-dots { display: inline-flex; gap: 5px; margin: 0 6px; }
.pl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-soft); }
.pl-dots i.past { background: var(--pl-line); }
.pl-dots i.on { background: var(--pl-accent); }
.pl-now { margin-right: auto; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--pl-line); }

/* Details, shown only when zoomed in */
.pl-info { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--pl-soft); border-radius: 10px; }
.pl-info-head { margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.pl-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; margin: 0; }
.pl-kv div { min-width: 0; }
.pl-kv dt { margin: 0; font-size: 10.5px; color: var(--pl-line); }
.pl-kv dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }

/* Job list */
#pipeline .pl-list { flex: 1; max-height: 460px; overflow: auto; font-size: 12px; }
.pl-group + .pl-group { margin-top: 8px; }
.pl-gh { display: flex; justify-content: space-between; padding: 2px 6px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pl-line); }
.pl .pl-row {
  appearance: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; margin: 0; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.pl .pl-row:hover { background: var(--pl-faint); }
.pl .pl-row.sel { background: color-mix(in srgb, var(--pl-accent) 18%, transparent); }
.pl-row .id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pl-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pl-line); }
.pl-row .mt { color: var(--pl-line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-row.pl-fx .mt::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--pl-err); vertical-align: middle; }
.pl-empty { margin: 0; padding: 6px; color: var(--pl-line); }
/* The machine's front, filled with the page's background (--pl-bg, set by app.js) and its
   window left open, so a package inside shows only through the window. */
#pipeline .pl-svg .pl-mach { fill: var(--pl-bg, none); fill-rule: evenodd; }
/* Countdown to the observer's next check while a job waits on the truck */
#pipeline .pl-next { margin: 8px 4px 2px; font-size: 12px; color: var(--pl-line); }
/* <<< clastra pipeline (end) */

/* ---------- scheduling a job (web/templates/schedule.html), folded in from schedule.css as it was ---------- */
/* Scheduling a job (templates/schedule.html). Lines take the page's own text colour, so it
   sits on the product look; colour is kept for errors, warnings and a submitted job. */
.sch, .sch-findings, .sch-note, .sch-result {
  --sch-line: color-mix(in srgb, currentColor 16%, transparent);
  --sch-dim: color-mix(in srgb, currentColor 60%, transparent);
  --sch-faint: color-mix(in srgb, currentColor 5%, transparent);
}
.sch { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 16px; }
.sch-editor {
  display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--sch-line);
  border-radius: 10px; overflow: hidden; background: var(--sch-faint);
}
.sch-lines, .sch-editor textarea {
  margin: 0; padding: 10px 12px; font: 13px/1.55 "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  tab-size: 2;
}
.sch-lines {
  min-width: 2.5em; text-align: right; color: var(--sch-dim); border-right: 1px solid var(--sch-line);
  overflow: hidden; user-select: none; white-space: pre;
}
.sch-editor textarea {
  width: 100%; min-height: 360px; box-sizing: border-box; resize: vertical; border: 0; outline: 0;
  background: transparent; color: inherit; white-space: pre; overflow: auto;
}
.sch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sch-sp { flex: 1; }
.sch-begin { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sch-dim); }
.sch-begin input { font: inherit; color: inherit; background: transparent; border: 1px solid var(--sch-line); border-radius: 8px; padding: 4px 8px; color-scheme: dark light; }
.sch button[disabled] { opacity: .4; cursor: not-allowed; }
.sch-confirm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid #3b82f6; border-radius: 10px; background: color-mix(in srgb, #3b82f6 10%, transparent);
}
.sch-confirm p { flex: 1 1 260px; margin: 0; }
.sch-note, .sch-result { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--sch-line); border-radius: 10px; }
.sch-note { color: var(--sch-dim); }
.sch-result p { margin: 0; }
.sch-result p + p { margin-top: 4px; }
.sch-ok { border-color: #22c55e; background: color-mix(in srgb, #22c55e 10%, transparent); }
.sch-bad { border-color: #ef4444; background: color-mix(in srgb, #ef4444 10%, transparent); }
.sch-findings h2 { font-size: 15px; margin: 0 0 6px; }
.sch-f { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--sch-line); background: var(--sch-faint); border-radius: 0 8px 8px 0; }
.sch-f p { margin: 0; font-size: 13px; }
.sch-f .sch-fix { color: var(--sch-dim); }
.sch-sev { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sch-ln { font-size: 12px; color: var(--sch-dim); }
.sch-error { border-left-color: #ef4444; }
.sch-error .sch-sev { color: #ef4444; }
.sch-warning { border-left-color: #f59e0b; }
.sch-warning .sch-sev { color: #f59e0b; }
