/* Datum UI — one stylesheet, shared by every page.

   Lifted from the pipeline board's palette so the two don't diverge. Layout is
   a two-column grid: a fixed sidebar and a content column that scrolls on its
   own, which is what keeps the nav still while a 99k-row table moves. */

:root {
  --bg:#0f1115; --panel:#161922; --panel-2:#1b1f2a; --line:#2a2f3a;
  --ink:#e6e8ec; --dim:#9aa3b2; --faint:#4a5160;
  --accent:#5aa9f0; --accent-dim:#12293f;
  --good:#5fd08a; --warn:#e0b64a; --bad:#e06a78;
  --rail: 232px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin:0; background:var(--bg); color:var(--ink);
  font:13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; height: 100vh; }
.shell.collapsed { grid-template-columns: 52px 1fr; }

.rail {
  background: var(--panel); border-right: 1px solid var(--line);
  overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column;
}
.brand {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.brand b { font-size: 15px; letter-spacing: .04em; }
.brand .mark {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #7d5cf0);
}

.rail nav { padding: 6px 0; flex: 1; }
.rail .section > summary {
  padding: 8px 16px; cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--dim);
}
.rail .section > summary::-webkit-details-marker { display: none; }
.rail .section > summary:hover { color: var(--ink); background: var(--panel-2); }
.rail .glyph { width: 16px; text-align: center; color: var(--accent); font-size: 13px; }

.rail .item {
  display: block; padding: 6px 16px 6px 42px; white-space: nowrap;
  color: var(--ink); font-size: 13px; text-decoration: none;
}
.rail .item:hover { background: var(--panel-2); text-decoration: none; }
.rail .item.active { background: var(--accent-dim); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
/* Specified on the wireframe, not built yet. Visible, unclickable, labelled. */
.rail .item.todo { color: var(--faint); cursor: default; }
.rail .item.todo:hover { background: none; }

.rail .foot { border-top: 1px solid var(--line); padding: 10px 16px; white-space: nowrap; }
.rail .foot .who { color: var(--dim); font-size: 12px; }
.railtoggle {
  background: none; border: 0; color: var(--dim); cursor: pointer;
  padding: 8px 16px; text-align: left; font: inherit; white-space: nowrap;
}
.railtoggle:hover { color: var(--ink); }
.shell.collapsed .rail .label, .shell.collapsed .brand b,
.shell.collapsed .rail .item, .shell.collapsed .rail .foot .who { display: none; }
.shell.collapsed .rail .section > summary { justify-content: center; padding: 10px 0; }

/* --- content -------------------------------------------------------------- */
.main { overflow-y: auto; }
.page-head {
  padding: 15px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px;
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.page-head h1 { margin: 0; font-size: 17px; letter-spacing: .02em; font-weight: 600; }
.page-head .sub { color: var(--dim); }
.wrap { padding: 20px 24px; }
/* Detail pages cap their width: label/value pairs stretched across an ultrawide
   monitor put the label and its value a foot apart. Tables still scroll inside
   their own container, so nothing is cut off. */
.wrap.narrow { max-width: 1600px; }

/* --- tables --------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
th:first-child, td:first-child { padding-left: 24px; }
tbody tr:hover { background: var(--panel); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.name { font-weight: 600; }
.dim { color: var(--dim); }
.todo { color: var(--faint); font-style: italic; }

details.group { border-bottom: 1px solid var(--line); }
details.group > summary {
  padding: 9px 24px; cursor: pointer; user-select: none;
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--dim); background: var(--panel);
}
details.group > summary b { color: var(--ink); }

/* --- bits ----------------------------------------------------------------- */
.badge { display:inline-block; padding:1px 7px; border-radius:999px; font-size:11px; font-weight:600; }
.b-accepted { background:#12351f; color:var(--good); }
.b-outstanding { background:var(--accent-dim); color:var(--accent); }
.b-expired { background:#3a2f10; color:var(--warn); }
.b-draft { background:#25272e; color:var(--dim); }
.b-partially_accepted { background:#12352f; color:#4fd0b0; }
.b-none { background:#341418; color:var(--bad); }
.tag { display:inline-block; padding:1px 8px; border-radius:6px; background:#20242e;
       border:1px solid var(--line); color:#c9d2e0; font-size:12px; white-space:nowrap; }
.design { color:#7fb0ff; }

.flash { margin: 0 0 14px; padding: 9px 12px; border-radius: 6px;
         background:#341418; border:1px solid #5a2028; color:#f0b8c0; }

/* --- icon view ------------------------------------------------------------ */
.cycle { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cycle > h2 {
  margin: 0; padding: 8px 14px; background: var(--accent-dim); color: var(--accent);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.cycle .tiles { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; }
.tile {
  flex: 0 0 150px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); text-align: center; color: var(--ink); text-decoration: none;
}
a.tile:hover { border-color: var(--accent); background: var(--panel-2); text-decoration: none; }
.tile .g { display: block; font-size: 21px; margin-bottom: 7px; color: var(--accent); }
.tile.todo { color: var(--faint); background: none; }
.tile.todo .g { color: var(--faint); }
.tile .note { display:block; margin-top:6px; font-size:11px; color:var(--warn); line-height:1.3; }

/* --- list page: toolbar, chips, pager ------------------------------------- */
.note-bar {
  margin: 0 0 14px; padding: 8px 12px; border-radius: 6px;
  background: var(--panel); border-left: 3px solid var(--warn); color: var(--dim);
}
.tabs {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 12px;
}
.tabs > a {
  padding: 7px 13px; color: var(--dim); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tabs > a:hover { color: var(--ink); text-decoration: none; }
.tabs > a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .scope {
  font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); border: 1px solid var(--line); border-radius: 3px;
  padding: 0 3px; margin-left: 4px; vertical-align: middle;
}
.tabs .cnt { color: var(--faint); font-size: 11px; margin-left: 2px; }
.tabs > a.active .cnt { color: var(--accent); }
.tabsep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }
.tabs .tab-save { margin-left: auto; }
.tabs .tab-save > summary { border: 0; background: none; color: var(--dim); padding: 7px 11px; }
.tabs .tab-save .pop { left: auto; right: 0; }
.tabs .pop .radio { display: inline-flex; align-items: center; gap: 5px; margin: 10px 12px 0 0; font-size: 12px; }
.tab-del button {
  background: none; border: 0; color: var(--faint); cursor: pointer;
  font-size: 15px; padding: 4px 7px;
}
.tab-del button:hover { color: var(--bad); }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tool { position: relative; }
.tool > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--ink);
}
.tool > summary::-webkit-details-marker { display: none; }
.tool > summary:hover, .tool[open] > summary { border-color: var(--accent); color: var(--accent); }
.tool .pop {
  position: absolute; z-index: 5; top: calc(100% + 5px); left: 0;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); min-width: 330px;
}
.tool .pop.wide { min-width: 520px; }
.tool .pop select, .tool .pop input[type=text], .tool .pop input:not([type]) {
  padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; margin-right: 5px;
}
.tool .pop button, .tool-btn {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.tool .pop button:hover, .tool-btn:hover {
  border-color: var(--accent); color: var(--accent); text-decoration: none;
}
.tool .hint { margin: 10px 0 0; color: var(--dim); font-size: 11.5px; }
.cols-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px;
  max-height: 340px; overflow-y: auto; margin-bottom: 11px;
}
.cols-grid label { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 5px 3px 10px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid #21456b; font-size: 12px;
}
.chip .cf { color: var(--dim); }
.chip a { color: var(--dim); padding: 0 5px; font-size: 14px; line-height: 1; }
.chip a:hover { color: var(--bad); text-decoration: none; }
.chips .clear { color: var(--dim); font-size: 12px; margin-left: 4px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tablewrap table { min-width: 100%; }
.tablewrap th { background: var(--panel); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tablewrap td { white-space: nowrap; max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
a.sortlink { color: inherit; }
a.sortlink:hover { color: var(--accent); text-decoration: none; }
a.sortlink.asc, a.sortlink.desc { color: var(--accent); }
.arrow { font-size: 8px; margin-left: 3px; vertical-align: middle; }
.q { color: var(--warn); cursor: help; font-size: 10px; vertical-align: super; }

.pager { display: flex; gap: 12px; align-items: center; padding: 12px 2px; }

/* --- toned cells ----------------------------------------------------------
   A cell gets a class from its own value (tables.tone_class), so a status can
   look like what it means without any per-page template code.

   🔴 THE POINT OF THE TIERS: 199 of 209 open orders carry a schedule risk. If
   they all render as alarm, people stop reading alarms. `unmeasured` and
   `capacity_short` are EPISTEMIC — they say Datum cannot tell, which is not the
   same as something being wrong — so they are muted, not red. Only operational
   problems get the warm colours. */
td[class*="t-"] { font-weight: 500; }

/* act — a real problem with the job */
td.t-past_due, td.t-not_ordered   { color: var(--bad); }
td.t-material_late, td.t-stock_short { color: var(--warn); }
td.t-act                          { color: var(--warn); }

/* inform — Datum does not know. Deliberately quiet. */
td.t-unmeasured, td.t-capacity_short, td.t-inform { color: var(--dim); font-weight: 400; }

/* priority, mapped from the sheet's emoji column */
td.t-critical { color: var(--bad); }
td.t-high     { color: var(--warn); }
td.t-normal   { color: var(--dim); font-weight: 400; }
td.t-low      { color: var(--faint); font-weight: 400; }

/* statuses shared across the other lists */
td.t-open   { color: var(--accent); }
td.t-closed { color: var(--dim); font-weight: 400; }
td.t-paid   { color: var(--good); }
td.t-unpaid { color: var(--warn); }

/* is_manually_set: a human's decision should be visible at a glance, because
   the override rate is how we will know the derivation is trusted. */
td.t-true  { color: var(--accent); }
td.t-false { color: var(--faint); font-weight: 400; }

/* --- detail pages --------------------------------------------------------- */
/* Density is the whole point here. JobBoss fits far more on a screen than a
   modern card layout does, and for someone reading twenty estimates a day that
   IS the usability. So: tight label/value pairs, small type, thin rules, and
   the explanatory prose collapsed out of the way rather than filling the page. */
.desc { color: var(--dim); margin: 0 0 12px; white-space: pre-line; max-width: 90ch; font-size: 12.5px; }
h2.sec {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); font-weight: 600; margin: 18px 0 7px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
h2.sec:first-of-type { margin-top: 2px; }
.anchors { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }
.anchors a {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--dim); font-size: 11.5px;
}
.anchors a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.anchors .cnt { color: var(--faint); }

/* Four columns of label:value on a wide screen, two on a laptop. Dotted leaders
   tie a label to its value across the gap, which is what lets the columns be
   this tight without the eye losing the row. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
         column-gap: 26px; row-gap: 0; }
.fact { display: flex; align-items: baseline; gap: 6px; padding: 2px 0;
        border-bottom: 1px dotted var(--line); font-size: 12px; }
.fact .k { color: var(--dim); white-space: nowrap; }
.fact .v { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.costbar { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
           border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.costbar > div { background: var(--panel); padding: 7px 14px; flex: 1 1 130px; }
.costbar span { display: block; color: var(--dim); font-size: 10px; text-transform: uppercase;
                letter-spacing: .05em; margin-bottom: 1px; }
.costbar b { font-size: 15px; font-variant-numeric: tabular-nums; }
.costbar .hi b { color: var(--accent); }

table.dense th, table.dense td { padding: 4px 10px; }
td.good { color: var(--good); }
td.warn { color: var(--warn); }

/* Explanations live behind a toggle. They matter — several of them are the only
   thing standing between a reader and a wrong conclusion — but they should not
   be the largest thing on the screen. */
.fineprint { color: var(--faint); font-size: 11px; margin: 6px 0 0; max-width: 100ch; line-height: 1.45; }
.fineprint code { color: var(--dim); }
.branch { color: var(--faint); margin-right: 5px; }
.tool-btn.on { border-color: var(--accent); color: var(--accent); }

/* --- production calendar --------------------------------------------------- */
.calbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.calbar b { font-size: 14px; }
table.cal { table-layout: fixed; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.cal th { text-align: center; background: var(--panel); padding: 6px; }
table.cal td { height: 78px; vertical-align: top; padding: 5px 7px; border: 1px solid var(--line); }
table.cal td:first-child { padding-left: 7px; }
table.cal td.empty { background: var(--bg); border-color: transparent; }
table.cal td.day { cursor: pointer; }
table.cal td.day:hover { background: var(--panel-2); }
table.cal .d { font-weight: 600; }
table.cal .h { color: var(--good); font-size: 11.5px; font-variant-numeric: tabular-nums; }
table.cal .lbl { font-size: 10.5px; color: var(--dim); line-height: 1.25; margin-top: 2px; }
table.cal .was { font-size: 10px; color: var(--faint); margin-top: 2px; }
/* Closed. Not alarming — a holiday is normal, it just isn't a working day. */
table.cal td.off { background: #14161c; }
table.cal td.off .d { color: var(--faint); }
table.cal td.off .h { color: var(--faint); }
/* A human decided this one. */
table.cal td.exc { box-shadow: inset 3px 0 0 var(--accent); }
/* Nobody has decided, and it counts as WORKING until they do. */
table.cal td.pending { box-shadow: inset 3px 0 0 var(--warn); }

.decide {
  border: 1px solid var(--warn); border-radius: 8px; padding: 12px 16px;
  margin-bottom: 16px; background: #1c1a12;
}
.decide h2 { margin: 0 0 4px; font-size: 13px; color: var(--warn); }
.decide > p { margin: 0 0 10px; color: var(--dim); font-size: 12px; }
.decide-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.decide-actions { display: flex; gap: 6px; }

dialog#editor {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  color: var(--ink); padding: 18px 22px; min-width: 380px;
}
dialog#editor::backdrop { background: rgba(0,0,0,.6); }
dialog#editor form { display: flex; flex-direction: column; gap: 9px; }
dialog#editor label { display: flex; flex-direction: column; gap: 4px;
                      color: var(--dim); font-size: 12px; }
dialog#editor input, dialog#editor select {
  padding: 7px 9px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit;
}
.dialog-actions { display: flex; gap: 8px; margin-top: 6px; }
.dialog-actions button {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel-2); color: var(--ink); font: inherit; cursor: pointer;
}
.dialog-actions button:hover { border-color: var(--accent); color: var(--accent); }
.dialog-actions button.danger:hover { border-color: var(--bad); color: var(--bad); }

/* --- job tree ------------------------------------------------------------- */
tr.lvl-top td { border-top: 1px solid var(--line); }
tr.lvl-top td:first-child { font-weight: 600; }
.warn-txt { color: var(--warn); font-size: 11.5px; }

/* --- 3D viewer ------------------------------------------------------------ */
.viewer-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
#viewer { width: 100%; height: 460px; background: var(--panel-2); }
#viewer canvas { display: block; }
.viewer-error { color: var(--dim); padding: 2rem; text-align: center; line-height: 1.6; }
.viewer-bar {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 7px 10px; background: var(--panel); border-top: 1px solid var(--line);
}
.viewer-bar .dim { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }
.viewer-bar .dim:first-child { margin-left: 0; }
.viewer-bar button {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer;
}
.viewer-bar button:hover { border-color: var(--accent); color: var(--accent); }

/* --- laser queue: grouped by MATERIAL -------------------------------------- */
.mat { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.mat > header {
  padding: 8px 14px; background: var(--panel);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line);
}
.mat .mat-id { display: flex; align-items: center; gap: 8px; }
.mat .mat-id b { font-size: 14px; }
.mat .mat-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 12px; }
.mat table { border-top: 0; }
.mat tbody tr:last-child td { border-bottom: 0; }

.pill {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line);
  color: var(--dim); white-space: nowrap;
}
.pill.new { border-color: var(--accent); color: var(--accent); }
.pill.bad { border-color: #5a2028; color: var(--bad); }

/* Material status. The only three answers worth giving, and "none on order" is
   the one that matters — 157 items pair no stock with a years-stale PO line. */
td.mat-good { color: var(--good); }
td.mat-warn { color: var(--warn); }
td.mat-bad  { color: var(--bad); }
td.mat-dim  { color: var(--faint); }
.mat-good { color: var(--good); } .mat-warn { color: var(--warn); }
.mat-bad  { color: var(--bad); }  .mat-dim  { color: var(--faint); }
/* A derived cut date reads quieter than one a person committed to. */
td.cut-derived { color: var(--dim); }
td.cut-manual  { color: var(--accent); font-weight: 600; }

.costbar .cov { display: block; margin-top: 3px; color: var(--faint);
                font-size: 10px; text-transform: none; letter-spacing: 0; }

/* --- admin: logins -------------------------------------------------------- */
.addform { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.addform label { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-size: 12px; }
.addform input, .addform select {
  padding: 6px 9px; border-radius: 5px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; min-width: 190px;
}
.addform button, .inline button {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
}
.addform button:hover:not(:disabled), .inline button:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent);
}
.addform button:disabled, .inline button:disabled { opacity: .4; cursor: not-allowed; }
.addform .hint { flex-basis: 100%; margin: 4px 0 0; color: var(--faint); font-size: 11.5px; }
form.inline { display: inline; }
form.inline select {
  padding: 3px 6px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: inherit; font-size: 12px;
}
.inline button.danger:hover { border-color: var(--bad); color: var(--bad); }

/* Shown once and never again — deliberately loud, because reloading loses it. */
.oneshot {
  border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-dim);
  padding: 12px 16px; margin-bottom: 16px;
}
.oneshot .k { color: var(--dim); font-size: 12px; display: block; margin-bottom: 5px; }
.oneshot code {
  font-size: 19px; letter-spacing: .06em; color: var(--ink);
  background: var(--bg); padding: 4px 10px; border-radius: 5px;
  user-select: all;   /* one click selects the whole thing */
}
.oneshot p { margin: 9px 0 0; color: var(--dim); font-size: 12px; }

/* --- login ---------------------------------------------------------------- */
.login-page { display: grid; place-items: center; height: 100vh; }
.login-box { width: 320px; }
.login-box .brand { border: 0; padding: 0 0 18px; }
.login-box label { display: block; color: var(--dim); font-size: 12px; margin: 10px 0 4px; }
.login-box input {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-box button {
  width: 100%; margin-top: 16px; padding: 9px; border: 0; border-radius: 6px;
  background: var(--accent); color: #071018; font: inherit; font-weight: 600; cursor: pointer;
}
.login-box button:hover { background: #7dbcf5; }
