html[data-theme="night"] {
  --bg: #121410;
  --bg-2: #181b16;
  --surface: #1c2019;
  --surface-2: #24281f;
  --line: #32382c;
  --line-2: #3e4636;
  --text: #e7eadc;
  --muted: #9aa392;
  --faint: #6d7464;
  --accent: #e08a1a;
  --accent-2: #f0b45a;
  --accent-dim: rgba(224, 138, 26, 0.14);
  --ok: #4ea572;
  --ok-dim: rgba(78, 165, 114, 0.14);
  --warn: #d9a441;
  --warn-dim: rgba(217, 164, 65, 0.14);
  --bad: #d45b5b;
  --bad-dim: rgba(212, 91, 91, 0.14);
  --info: #6ea0c7;
  --info-dim: rgba(110, 160, 199, 0.14);
  --btn-text: #1a1408;
  --overlay: rgba(0, 0, 0, 0.55);
  --row-hover: rgba(255, 255, 255, 0.02);
  --di-bg: #2a3340; --di-fg: #9ec0e0;
  --do-bg: #2f3a2a; --do-fg: #b4d39a;
  --ai-bg: #3a3228; --ai-fg: #e0c08a;
  --ao-bg: #3a2a32; --ao-fg: #e0a8c0;
  --mono: "Cascadia Mono", "Consolas", "Sarasa Mono SC", ui-monospace, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 8px;
  --header: 56px;
}

:root,
html[data-theme="paper"] {
  --bg: #f3efe6;
  --bg-2: #ebe4d6;
  --surface: #faf7f0;
  --surface-2: #efe8da;
  --line: #d8cbb4;
  --line-2: #c9b89a;
  --text: #2a2418;
  --muted: #6b614e;
  --faint: #8a7d66;
  --accent: #c45c12;
  --accent-2: #9a3f08;
  --accent-dim: rgba(196, 92, 18, 0.12);
  --ok: #2f7a4a;
  --ok-dim: rgba(47, 122, 74, 0.12);
  --warn: #a67c14;
  --warn-dim: rgba(166, 124, 20, 0.14);
  --bad: #b42318;
  --bad-dim: rgba(180, 35, 24, 0.12);
  --info: #2c6a8f;
  --info-dim: rgba(44, 106, 143, 0.12);
  --btn-text: #fff8ee;
  --overlay: rgba(42, 36, 24, 0.4);
  --row-hover: rgba(42, 36, 24, 0.04);
  --di-bg: #dce8f2; --di-fg: #1f4a6e;
  --do-bg: #dcead4; --do-fg: #2a5a28;
  --ai-bg: #f0e2c8; --ai-fg: #6a4308;
  --ao-bg: #edd6e0; --ao-fg: #6e2a48;
  --mono: "Cascadia Mono", "Consolas", "Sarasa Mono SC", ui-monospace, monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 8px;
  --header: 56px;
}

html[data-theme="ink"] {
  --bg: #eef1f4;
  --bg-2: #e4e9ee;
  --surface: #f7f9fb;
  --surface-2: #e8edf2;
  --line: #c5ced8;
  --line-2: #aeb9c5;
  --text: #1c242c;
  --muted: #5b6a78;
  --faint: #7a8794;
  --accent: #1f6feb;
  --accent-2: #0b4fbf;
  --accent-dim: rgba(31, 111, 235, 0.12);
  --ok: #1a7f4b;
  --ok-dim: rgba(26, 127, 75, 0.12);
  --warn: #9a6b00;
  --warn-dim: rgba(154, 107, 0, 0.14);
  --bad: #c0392b;
  --bad-dim: rgba(192, 57, 43, 0.12);
  --info: #2b6cb0;
  --info-dim: rgba(43, 108, 176, 0.12);
  --btn-text: #f4f8ff;
  --overlay: rgba(20, 28, 36, 0.42);
  --row-hover: rgba(28, 36, 44, 0.04);
  --di-bg: #d4e4f7; --di-fg: #1a4a7a;
  --do-bg: #d4eadc; --do-fg: #1e5a34;
  --ai-bg: #eee0c4; --ai-fg: #6a4a10;
  --ao-bg: #e8d4e8; --ao-fg: #5a2a5a;
}

html[data-theme="dusk"] {
  --bg: #12161c;
  --bg-2: #171c24;
  --surface: #1c222c;
  --surface-2: #252c38;
  --line: #323a48;
  --line-2: #3e4858;
  --text: #e6eaf0;
  --muted: #9aa6b5;
  --faint: #6d7888;
  --accent: #3d8bfd;
  --accent-2: #7eb6ff;
  --accent-dim: rgba(61, 139, 253, 0.16);
  --ok: #3db87a;
  --ok-dim: rgba(61, 184, 122, 0.14);
  --warn: #d9a441;
  --warn-dim: rgba(217, 164, 65, 0.14);
  --bad: #e05b5b;
  --bad-dim: rgba(224, 91, 91, 0.14);
  --info: #6ea0c7;
  --info-dim: rgba(110, 160, 199, 0.14);
  --btn-text: #081018;
  --overlay: rgba(0, 0, 0, 0.55);
  --row-hover: rgba(255, 255, 255, 0.03);
  --di-bg: #243044; --di-fg: #9ec0e0;
  --do-bg: #24382c; --do-fg: #b4d39a;
  --ai-bg: #3a3228; --ai-fg: #e0c08a;
  --ao-bg: #3a2a32; --ao-fg: #e0a8c0;
}

html[data-theme="forest"] {
  --bg: #101612;
  --bg-2: #151c17;
  --surface: #1a221c;
  --surface-2: #222c24;
  --line: #2e3a30;
  --line-2: #3a483c;
  --text: #e4ece4;
  --muted: #8fa394;
  --faint: #6a7a6c;
  --accent: #3fa36a;
  --accent-2: #7fd0a0;
  --accent-dim: rgba(63, 163, 106, 0.16);
  --ok: #4ea572;
  --ok-dim: rgba(78, 165, 114, 0.14);
  --warn: #d9a441;
  --warn-dim: rgba(217, 164, 65, 0.14);
  --bad: #d45b5b;
  --bad-dim: rgba(212, 91, 91, 0.14);
  --info: #6ea0c7;
  --info-dim: rgba(110, 160, 199, 0.14);
  --btn-text: #08140c;
  --overlay: rgba(0, 0, 0, 0.55);
  --row-hover: rgba(255, 255, 255, 0.03);
  --di-bg: #243044; --di-fg: #9ec0e0;
  --do-bg: #24382c; --do-fg: #b4d39a;
  --ai-bg: #3a3228; --ai-fg: #e0c08a;
  --ao-bg: #3a2a32; --ao-fg: #e0a8c0;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: var(--accent-2); text-decoration: none; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--btn-text); }

.app { min-height: 100%; display: grid; grid-template-rows: var(--header) 1fr; }

.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 210px;
}
.brand b { font-size: 15px; letter-spacing: 0.04em; font-weight: 650; }
.brand span { color: var(--faint); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .nav button.link {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.nav a.active, .nav a:hover { color: var(--text); background: var(--surface-2); }
.who { display: flex; align-items: center; gap: 8px; }
.who select, .theme-sel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}
.theme-sel { min-width: 92px; }
.who .role { font-size: 11px; color: var(--accent-2); letter-spacing: 0.08em; }

.page { padding: 22px 24px 48px; max-width: 1440px; margin: 0 auto; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 22px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.kpi .n { font-family: var(--mono); font-size: 26px; line-height: 1.1; font-weight: 600; }
.kpi .l { margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.kpi.warn .n { color: var(--warn); }
.kpi.bad .n { color: var(--bad); }
.kpi.ok .n { color: var(--ok); }
.kpi.accent .n { color: var(--accent-2); }

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.card .body { padding: 8px 0; }
.row-link {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: inherit;
}
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--surface-2); }
.row-link .sn { font-family: var(--mono); font-size: 12px; color: var(--accent-2); }
.row-link .sub { color: var(--muted); font-size: 12px; }
.row-ns {
  display: grid;
  grid-template-columns: 160px 80px 100px 120px 1fr;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: inherit;
  font-size: 13px;
}
.row-ns:last-child { border-bottom: 0; }
.row-ns:hover { background: var(--surface-2); }
.row-ns.head {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.row-ns.head:hover { background: transparent; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin: 0 4px 4px 0;
  border-radius: 99px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 12px;
  border: 1px solid transparent;
}
.tag button {
  background: none;
  border: 0;
  color: inherit;
  margin-left: 4px;
  padding: 0;
  font-size: 12px;
}
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.diff-from { color: var(--faint); text-decoration: line-through; margin-right: 6px; font-size: 11px; }
.note {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.note .t { font-size: 13px; }
.note .b { color: var(--muted); font-size: 12px; margin-top: 3px; }
.note time { color: var(--faint); font-size: 11px; font-family: var(--mono); }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.draft { background: var(--surface-2); color: var(--muted); border-color: var(--line-2); }
.badge.signing { background: var(--warn-dim); color: var(--warn); }
.badge.published { background: var(--ok-dim); color: var(--ok); }
.badge.eco { background: var(--bad-dim); color: var(--bad); }
.badge.obsolete { background: var(--surface-2); color: var(--faint); }
.badge.add { background: var(--ok-dim); color: var(--ok); }
.badge.remove { background: var(--bad-dim); color: var(--bad); }
.badge.rename { background: var(--info-dim); color: var(--info); }
.badge.keep { background: transparent; color: var(--faint); border-color: var(--line); }
.badge.DI { background: var(--di-bg); color: var(--di-fg); }
.badge.DO { background: var(--do-bg); color: var(--do-fg); }
.badge.AI { background: var(--ai-bg); color: var(--ai-fg); }
.badge.AO { background: var(--ao-bg); color: var(--ao-fg); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.btn {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--btn-text); border-color: var(--accent); font-weight: 650; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: #5a3030; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  text-align: left;
  color: var(--faint);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
}
td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: var(--row-hover); }
tr.add td, td.add { background: var(--ok-dim); }
tr.remove td, td.remove { background: var(--bad-dim); text-decoration: line-through; color: var(--muted); }
tr.rename td, td.rename { background: var(--info-dim); }
.addr { font-family: var(--mono); font-size: 12px; color: var(--accent-2); }
.var { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.table-wrap { overflow: auto; max-height: calc(100dvh - 260px); border-top: 1px solid var(--line); }

.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input { min-width: 240px; }

.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vendor-block { margin-bottom: 28px; }
.vendor-block > h2 { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.vendor-block .hint { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.ton-row { margin: 14px 0 8px; color: var(--accent-2); font-size: 12px; letter-spacing: 0.08em; font-family: var(--mono); }
.io-sheet { padding: 12px 14px 18px; }
.io-title { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.io-cfg { color: var(--muted); font-size: 12px; margin: 4px 0 12px; }
.io-sheet-body { display: flex; flex-direction: column; gap: 18px; }
.io-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.io-boards { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.io-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px 10px;
  background: var(--surface-2);
  flex: 0 0 auto;
}
.io-board h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}
.io-board-cols { display: flex; gap: 8px; align-items: flex-start; }
.io-board .io-col { min-width: 180px; }
.io-board .io-col h4 { margin-bottom: 4px; padding-bottom: 2px; }
.io-sec td {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 6px 4px;
  border-bottom: 1px dashed var(--line);
}
.slot-pad td { border: 0; background: transparent; padding: 4px 6px; }
.slot-pad:hover td { background: transparent; }
.io-col h4 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.io-col table { font-size: 12px; }
.io-col td { padding: 4px 6px; }
.idx { font-family: var(--mono); color: var(--accent-2); width: 42px; }
.blank { color: var(--faint); }
.model-card h2 { font-size: 14px; line-height: 1.35; word-break: break-all; }
.model-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  display: block;
}
.model-card:hover { border-color: var(--accent); }
.model-card .code { font-family: var(--mono); color: var(--accent-2); font-size: 12px; }
.model-card h2 { margin: 6px 0 8px; font-size: 18px; font-weight: 600; }
.model-card .meta { color: var(--muted); font-size: 12px; display: flex; gap: 12px; }
.types { display: flex; gap: 6px; margin-top: 14px; }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.side { position: sticky; top: 72px; display: grid; gap: 10px; }
.meta-list { display: grid; gap: 8px; padding: 12px 14px; }
.meta-list div { display: grid; gap: 2px; }
.meta-list .k { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.meta-list .v { font-size: 13px; }
.meta-list .v.mono { font-family: var(--mono); }

.steps { display: flex; gap: 0; padding: 12px 10px 14px; }
.step { flex: 1; text-align: center; font-size: 11px; color: var(--faint); position: relative; }
.step::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  margin: 0 auto 6px;
}
.step.on { color: var(--accent-2); }
.step.on::before { background: var(--accent); }
.step.done { color: var(--ok); }
.step.done::before { background: var(--ok); }

.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }

.alert {
  margin: 12px 14px 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  border: 1px solid;
}
.alert.bad { background: var(--bad-dim); border-color: #5a3030; color: #f0c0c0; }
.alert.warn { background: var(--warn-dim); border-color: #5a4a20; color: #ecd9a8; }
.alert.ok { background: var(--ok-dim); border-color: #2a4a35; color: #b6e0c4; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
}
.form-grid.full { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 4px; }
.field.span2 { grid-column: span 2; }
.field.span4 { grid-column: span 4; }
.field label { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }

.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.sign {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--bg);
}
.sign.done { border-color: #2a4a35; background: var(--ok-dim); }
.sign h4 { margin: 0 0 6px; font-size: 13px; }
.sign p { margin: 0; color: var(--muted); font-size: 12px; }

.empty { padding: 28px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.err { color: var(--bad); font-size: 13px; padding: 8px 0; }

.modal-bg {
  position: fixed; inset: 0; background: var(--overlay);
  display: grid; place-items: center; z-index: 40;
}
.modal {
  width: min(520px, 92vw);
  max-width: 94vw;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 18px;
}
.modal .form-grid,
.modal .ch-grid {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.modal h2 { margin: 0 0 12px; font-size: 16px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: 10px 14px; border-radius: 6px; font-size: 13px;
}

.print-only { display: none; }

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.login-box {
  width: min(420px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px;
}
.login-box .mark { font-size: 12px; letter-spacing: 0.18em; color: var(--accent-2); }
.login-box h1 { margin: 8px 0 6px; font-size: 22px; font-weight: 600; }
.login-box p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.login-box .field { margin-bottom: 10px; }
.suggest {
  position: absolute;
  z-index: 30;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  max-height: 220px;
  overflow: auto;
  min-width: 180px;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 7px 10px;
  color: var(--text);
  font-size: 12px;
}
.suggest button:hover, .suggest button.on { background: var(--surface-2); }
.slot { cursor: pointer; }
.slot:hover { outline: 1px solid var(--accent); }
.slot-search { width: 100%; padding: 4px 6px; font-size: 12px; }
.slot-row { position: relative; }
.hint-bar { padding: 8px 14px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.ch-grid .field {
  margin: 0;
  min-width: 0;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line-2);
}
.ch-grid .field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  border-bottom: 2px dashed var(--line-2);
}
.ch-grid .field:nth-last-child(-n+2),
.ch-grid .field:nth-last-child(-n+2)::after {
  border-bottom: 0;
  padding-bottom: 0;
}
.ch-grid .field:nth-child(-n+2) {
  padding-top: 14px;
  border-top: 2px dashed var(--line-2);
}
.ch-grid .field:nth-child(-n+2)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  border-top: 2px dashed var(--line-2);
}
.start-wrap {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.start-k { font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }
.start-seg { display: flex; gap: 14px; }
.start-opt {
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  min-width: 64px;
  flex: 0 0 auto;
}
.start-opt.one { color: var(--info); }
.start-opt.zero { color: var(--accent); }
.start-opt.one.on {
  background: var(--info-dim);
  border-color: var(--info);
  color: var(--info);
}
.start-opt.zero.on {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-2);
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .models, .grid-2, .split, .sign-grid, .form-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}

@media print {
  .top, .toolbar, .tabs, .btn, .who, .nav, .form-grid, .alert { display: none !important; }
  .print-only { display: block; }
  body, .app, .page, .card { background: #fff; color: #111; }
  td, th { border-color: #ccc; color: #111; }
  .addr { color: #000; }
}
