/* Equipment cloud console. Desktop first.
   Language: paper-white ground, ink text, hairline cards, large numerals,
   one warm accent, line drawings. No shadows except on floating layers. */
:root {
  --paper: #f7f6f2;
  --card: #ffffff;
  --ink: #131210;
  --ink-2: #57534c;
  --ink-3: #9a958c;
  --line: #e9e6df;
  --line-2: #f1efe9;
  --accent: #e2a03f;          /* warm amber: running, highlights */
  --accent-soft: #fbf1dd;
  --ok: #2f7d5b;
  --ok-soft: #e6f2ec;
  --bad: #d4483a;
  --bad-soft: #fbe9e6;
  --mute-soft: #efede7;
  --radius: 18px;
  --radius-s: 12px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: -0.04em; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.brand-sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.08em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); font-size: 14.5px; text-align: left; transition: background .15s, color .15s; }
.nav button svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav button:hover { background: var(--mute-soft); color: var(--ink); }
.nav button.on { background: var(--ink); color: #fff; }
.nav .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.nav button.on .badge { background: #fff; color: var(--ink); }
.side-foot { margin-top: auto; padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.side-foot .who { font-weight: 600; }
.side-foot .role { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.link { color: var(--ink-2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }

.main { padding: 30px 40px 60px; min-width: 0; max-width: 1480px; }
.top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.top h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.top .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.top .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12.5px; color: var(--ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,125,91,.5); animation: pulse 2s infinite; }
.live.off i { background: var(--ink-3); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,125,91,.45); } 70% { box-shadow: 0 0 0 7px rgba(47,125,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,125,91,0); } }

/* ---------------------------------------------------------------- pieces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 15px; font-weight: 650; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.card-head .more { margin-left: auto; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: transform .12s, opacity .15s; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.soft { background: var(--mute-soft); color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--mute-soft); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.chip.running { background: var(--accent-soft); color: #8a5a10; }
.chip.ok, .chip.idle { background: var(--ok-soft); color: var(--ok); }
.chip.fault { background: var(--bad-soft); color: var(--bad); }
.chip.attention { background: var(--ink); color: #fff; }
.chip.offline { background: var(--mute-soft); color: var(--ink-3); }
.chip.line { background: transparent; border: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mute-soft); gap: 2px; }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* -------------------------------------------------------------- overview */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hero-lead { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; }
.hero-lead .eyebrow { color: rgba(255,255,255,.55); }
.hero-lead .big { font-size: 46px; font-weight: 700; line-height: 1; margin-top: 12px; }
.hero-lead .big small { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.6); margin-left: 8px; }
.hero-lead .note { color: rgba(255,255,255,.7); font-size: 13px; }
.hero-lead svg { position: absolute; right: 10px; top: 14px; width: 112px; height: 112px; opacity: .95; }
.hero-lead .note { position: relative; }
.kpi { display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; }
.kpi .value { font-size: 40px; font-weight: 700; line-height: 1; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.kpi .foot { font-size: 12.5px; color: var(--ink-3); }
.kpi.alert .value { color: var(--bad); }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-dev { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

.dev { position: relative; text-align: left; width: 100%; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, transform .15s; display: block; }
.dev:hover { border-color: var(--ink); transform: translateY(-1px); }
.dev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dev-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; flex: none; }
.dev-ico svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dev.running .dev-ico, .dev.attention .dev-ico { background: var(--accent-soft); }
.dev.fault .dev-ico { background: var(--bad-soft); }
.dev.offline { opacity: .62; }
.dev-name { font-weight: 600; line-height: 1.25; }
.dev-store { font-size: 12px; color: var(--ink-3); }
.dev-top .chip { margin-left: auto; }
.dev-mid { display: flex; align-items: baseline; gap: 10px; }
.dev-phase { font-size: 19px; font-weight: 650; }
.dev-meta { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.dev-recipe { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 12px; min-height: 19px; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.steps i { height: 4px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--ink); }
.steps i.now { background: var(--accent); animation: breathe 1.6s ease-in-out infinite; }
.dev.fault .steps i.now { background: var(--bad); animation: none; }
@keyframes breathe { 50% { opacity: .35; } }
.steps-labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.steps-labels b { color: var(--ink); font-weight: 600; }

.feed { display: grid; gap: 2px; }
.feed-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .mark { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--ink-3); }
.feed-item.high .mark { background: var(--bad); }
.feed-item.mid .mark { background: var(--accent); }
.feed-item.low .mark { background: var(--ink); }
.feed-item .t { font-weight: 600; }
.feed-item .d { font-size: 12.5px; color: var(--ink-3); }
.feed-item .when { font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 8px; }
.bars.dense { gap: 4px; }
.bars.dense .bar b { display: none; }
.bars.dense .bar i { max-width: 14px; border-radius: 4px 4px 2px 2px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: var(--line); min-height: 3px; transition: height .5s; }
.bar.today i { background: var(--ink); }
.bar span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.bar b { font-size: 12px; font-weight: 600; }
.rank { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; }
.rank > :not(.rank-row) { grid-column: 1 / -1; }
.rank-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; font-size: 13.5px; }
.rank-row .track { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.rank-row .track i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.rank-row b { text-align: right; min-width: 36px; }
.empty { padding: 34px 10px; text-align: center; color: var(--ink-3); }
.empty svg { width: 84px; height: 84px; display: block; margin: 0 auto 10px; opacity: .8; }

/* ---------------------------------------------------------------- stores */
.store { margin-bottom: 16px; }
.store-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.store-head h3 { font-size: 16.5px; }
.store-head .where { color: var(--ink-3); font-size: 12.5px; }
.store-head .stat { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.region-title { margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; }
.region-title:first-child { margin-top: 0; }
.region-title span { font-size: 12px; letter-spacing: .16em; color: var(--ink-3); }
.region-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.search { height: 40px; width: 260px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); outline: none; }
.search:focus { border-color: var(--ink); }

/* --------------------------------------------------------------- recipes */
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recipe { text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, transform .15s; position: relative; }
.recipe:hover { border-color: var(--ink); transform: translateY(-1px); }
.recipe .slot { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.recipe .name { font-size: 19px; font-weight: 650; margin: 4px 0 14px; }
.recipe .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fact .k { font-size: 11.5px; color: var(--ink-3); }
.fact .v { font-size: 15px; font-weight: 600; }
.recipe .tags { display: flex; gap: 6px; margin-top: 14px; min-height: 24px; }
.recipe .changed { position: absolute; top: 16px; right: 16px; }
.publish { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: var(--radius); margin-bottom: 16px; background: var(--accent-soft); border: 1px solid #f0dcae; }
.publish.clean { background: var(--card); border-color: var(--line); }
.publish .txt { flex: 1; }
.publish .txt b { display: block; font-size: 15px; }
.publish .txt span { font-size: 12.5px; color: var(--ink-2); }
.scope-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.scope { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.scope b { display: block; font-size: 13.5px; }
.scope span { font-size: 12px; color: var(--ink-3); }
.scope .mini { margin-top: 10px; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.rel { display: grid; grid-template-columns: 62px minmax(0, 1fr) 190px auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rel:last-child { border-bottom: 0; }
.rel .ver { font-size: 20px; font-weight: 700; }
.rel .note { font-weight: 600; }
.rel .by { font-size: 12.5px; color: var(--ink-3); }
.progress { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .5s; }
.progress-txt { font-size: 12px; color: var(--ink-3); margin-top: 5px; display: flex; justify-content: space-between; }
.rel .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; max-width: 260px; }
.rel .note .chip { margin-left: 6px; }
.rel .draft { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rel.alert { margin: 0 -12px 12px; padding: 14px 12px; border: 1px solid #f0dcae; border-radius: 14px; background: var(--accent-soft); }
.rel.dim { padding: 10px 0; grid-template-columns: 62px minmax(0, 1fr) 0 auto; }
.rel.dim .ver { font-size: 15px; color: var(--ink-3); }
.rel.dim .note { font-weight: 500; color: var(--ink-2); }
.sum { display: grid; gap: 3px; margin: 6px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.sum.boxed { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; max-height: 168px; overflow: auto; }
.rel-now { padding: 18px 20px; margin-bottom: 6px; border: 1px solid var(--ink); border-radius: 16px; }
.rel-now .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-now .tag { height: 22px; padding: 0 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; line-height: 22px; }
.rel-now .ver { font-size: 22px; font-weight: 700; }
.rel-now .name { font-size: 16px; }
.rel-now .since { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.rel-now .body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: end; margin: 12px 0 14px; }
.rel-now .k { font-size: 12px; color: var(--ink-3); }
.rel-now .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rel-title { margin: 20px 0 2px; font-size: 12.5px; color: var(--ink-3); }
.fold { display: block; width: 100%; margin-top: 12px; padding: 12px 0 2px; border: 0; border-top: 1px solid var(--line-2); background: none; color: var(--ink-3); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.fold:hover { color: var(--ink); }
.modal .label { margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------ drawer and modal */
.scrim { position: fixed; inset: 0; background: rgba(19,18,16,.32); opacity: 0; transition: opacity .2s; z-index: 40; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); background: var(--paper); z-index: 41; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(0,0,0,.12); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 26px 28px 18px; }
.drawer-head h2 { font-size: 22px; line-height: 1.25; }
.drawer-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.drawer-head .x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 17px; flex: none; }
.drawer-head .x:hover { border-color: var(--ink); }
.drawer-body { padding: 0 28px 28px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.drawer-foot { padding: 16px 28px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--paper); }
.now { background: var(--ink); color: #fff; border-color: var(--ink); }
.now .eyebrow { color: rgba(255,255,255,.55); }
.now .phase { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.now .line2 { color: rgba(255,255,255,.7); font-size: 13.5px; }
.now .steps { margin-top: 20px; }
.now .steps i { background: rgba(255,255,255,.18); height: 5px; }
.now .steps i.done { background: #fff; }
.now .steps-labels { color: rgba(255,255,255,.45); }
.now .steps-labels b { color: #fff; }
.now.fault { background: var(--bad); border-color: var(--bad); }
.now.offline { background: var(--mute-soft); color: var(--ink-2); border-color: var(--line); }
.now.offline .eyebrow, .now.offline .line2 { color: var(--ink-3); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio .card { padding: 16px; }
.trio .v { font-size: 26px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.trio .v small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.spark { width: 100%; height: 120px; display: block; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--ink-3); }
.row .v { font-weight: 600; text-align: right; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.field:last-child { border-bottom: 0; }
.field .lab b { display: block; font-weight: 600; }
.field .lab span { font-size: 12px; color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); height: 40px; }
.stepper button { width: 38px; height: 38px; font-size: 18px; color: var(--ink-2); border-radius: 50%; }
.stepper button:hover { background: var(--mute-soft); color: var(--ink); }
.stepper input { width: 78px; border: 0; outline: 0; text-align: center; background: transparent; font-weight: 650; font-size: 15px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper em { font-style: normal; font-size: 12px; color: var(--ink-3); padding-right: 14px; margin-left: -6px; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(20px); }
.text-input { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); outline: none; font-size: 15px; }
.text-input:focus { border-color: var(--ink); }
textarea.text-input { height: 78px; padding: 12px 16px; resize: none; }
.modal { position: fixed; left: 50%; top: 50%; width: min(520px, 92vw); transform: translate(-50%, -46%); opacity: 0; transition: opacity .2s, transform .2s; background: var(--card); border-radius: 22px; padding: 28px; z-index: 51; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.modal.show { opacity: 1; transform: translate(-50%, -50%); }
.modal h2 { font-size: 21px; margin-bottom: 6px; }
.modal .lead { color: var(--ink-2); margin-bottom: 18px; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.pick { display: grid; gap: 8px; max-height: 240px; overflow: auto; margin-top: 12px; }
.pick label { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pick label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.pick input { accent-color: var(--ink); width: 16px; height: 16px; }
.pick small { margin-left: auto; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; z-index: 60; font-size: 14px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* --------------------------------------------------------- tables, login */
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; letter-spacing: .06em; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); }
.login-art { background: var(--ink); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art h1 { font-size: 46px; line-height: 1.16; font-weight: 700; letter-spacing: -0.01em; margin-top: auto; }
.login-art p { color: rgba(255,255,255,.62); font-size: 15.5px; margin-top: 18px; max-width: 30em; }
.login-art .facts { display: flex; gap: 40px; margin-top: 44px; }
.login-art .facts b { display: block; font-size: 26px; }
.login-art .facts span { font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .08em; }
.login-art svg.art { position: absolute; right: -40px; top: 40px; width: 420px; height: 420px; opacity: .9; }
.login-form { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.login-form h2 { font-size: 26px; margin-bottom: 6px; }
.login-form .lead { color: var(--ink-3); margin-bottom: 30px; }
.login-form label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 16px 0 7px; }
.login-form .btn { width: 100%; height: 48px; margin-top: 26px; font-size: 15px; }
.demo { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.demo .eyebrow { margin-bottom: 12px; }
.demo-list { display: grid; gap: 8px; }
.demo-list button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s; }
.demo-list button:hover { border-color: var(--ink); }
.demo-list .av { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; font-weight: 700; }
.demo-list b { display: block; }
.demo-list span { font-size: 12px; color: var(--ink-3); }
.err { color: var(--bad); font-size: 13px; min-height: 20px; margin-top: 10px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-lead { grid-column: 1 / -1; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand { padding: 0; } .brand-sub, .side-foot .role { display: none; }
  .nav { flex-direction: row; } .side-foot { margin: 0 0 0 auto; padding: 8px 12px; }
  .main { padding: 20px 16px 50px; }
  .login { grid-template-columns: minmax(0, 1fr); } .login-art { display: none; } .login-form { padding: 40px 24px; }
}

/* machines that wait, management pages, set-up, passwords */
.chip.hold { background: #ece7fb; color: #5a3fb0; }
.dev.hold .dev-ico { background: #ece7fb; }
.dev.hold .steps i.now { background: #7a5fd0; animation: none; }
.now.hold { background: #4b3a8f; border-color: #4b3a8f; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.acts-cell { text-align: right; white-space: nowrap; }
.path { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 500; word-break: break-all; }
.secret { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.secret div { display: flex; align-items: baseline; gap: 14px; }
.secret span { width: 5em; color: var(--ink-3); font-size: 12.5px; }
.secret b { font-size: 18px; letter-spacing: .04em; user-select: all; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.demo-note { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: #8a5a10; }
.modal { max-height: 92vh; overflow: auto; }
select.text-input { appearance: auto; }
.login-form .hint { margin-top: 6px; }
.row.wide { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.row.wide .v { text-align: left; }
.gate { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 16px 22px; }
.gate b { font-size: 14.5px; }
.gate .muted { font-size: 12.5px; margin-top: 2px; }
.gate .spacer { flex: 1; }
.gate.open { background: var(--ok-soft); border-color: transparent; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.scroll-x { overflow-x: auto; }
table.t th.c, table.t td.c { text-align: center; padding-left: 6px; padding-right: 6px; }
.rank-row b small { font-weight: 400; font-size: 12px; }
table.t.wide th, table.t.wide td { white-space: nowrap; }
.rank-row b { white-space: nowrap; }
