:root {
  /* Culture Wireless brand: navy #151f42, gradient #4568dc → #b06ab3 */
  --navy: #151f42; --brand-blue: #4568dc; --brand-magenta: #b06ab3;
  --brand-grad: linear-gradient(90deg, #4568dc 0%, #b06ab3 100%);
  --bg: #f4f5fa; --panel: #ffffff; --panel-2: #f6f7fc; --border: #e1e4ef; --text: #151f42; --muted: #5d6582;
  --accent: #4568dc; --accent-2: #3553c4; --accent-soft: #e8ecfb;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2; --idle: #64748b; --idle-soft: #e2e8f0;
  --bar: #6f78b8; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Kelson", "Kelson Sans", "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-display: "Good Times", "Good Times Rg", "Orbitron", "Michroma", "Segoe UI", system-ui, sans-serif;
  --side-bg: #151f42; --side-text: #c3c9e6; --side-muted: #8a93bd;
  --radius: 10px; --shadow: 0 1px 2px rgba(21,31,66,.06), 0 1px 3px rgba(21,31,66,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1430; --panel: #151f42; --panel-2: #1b2650; --border: #2a376b; --text: #e8ebf7; --muted: #9aa3c4;
    --accent: #7d93f0; --accent-2: #a2b2f6; --accent-soft: #232f63;
    --ok: #4ade80; --ok-soft: #10301d; --warn: #fbbf24; --warn-soft: #33270b; --bad: #f87171; --bad-soft: #3a1416; --idle: #94a3b8; --idle-soft: #232d4f;
    --bar: #8a93d0; --side-bg: #0a1029; --shadow: none;
  }
}
/* Brand @font-face rules are served by the server at /fonts.css (only for font files that exist). */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font-ui); background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; }
h3 { font-size: 13px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* shell */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 8px 18px; }
.brand img { width: 28px; height: 28px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent-2); }
.nav .count { margin-left: auto; font-size: 11.5px; background: var(--bad-soft); color: var(--bad); padding: 0 7px; border-radius: 99px; }
.side .foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 8px 0; font-size: 12.5px; color: var(--muted); }
.side .foot b { color: var(--text); display: block; }
.main { min-width: 0; padding: 22px 28px 60px; }
.pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead .sub { color: var(--muted); font-size: 13px; }
.pagehead .spacer { flex: 1; }
.badge-mock { background: var(--warn-soft); color: var(--warn); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }

/* panels & grid */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .hint { color: var(--muted); font-size: 12px; }
.kpi.ok .value { color: var(--ok); } .kpi.bad .value { color: var(--bad); } .kpi.warn .value { color: var(--warn); }
.mt { margin-top: 16px; }

/* bars */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row a.name { color: var(--text); }
.bar-track { height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { height: 100%; background: var(--bar); border-radius: 99px; width: 0; transition: width .4s; }
.bar-fill.bad { background: var(--bad); } .bar-fill.warn { background: var(--warn); } .bar-fill.ok { background: var(--ok); }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--panel-2); margin: 10px 0 8px; }
.stack > div { height: 100%; }
.stack .s-ok { background: var(--ok); } .stack .s-bad { background: var(--bad); } .stack .s-idle { background: var(--idle); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.legend .s-ok { background: var(--ok); } .legend .s-bad { background: var(--bad); } .legend .s-idle { background: var(--idle); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--panel-2); }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel-2); }
td.nowrap, th.nowrap { white-space: nowrap; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }

/* pills, tags, status */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.online { background: var(--ok-soft); color: var(--ok); }
.pill.offline { background: var(--bad-soft); color: var(--bad); }
.pill.never { background: var(--idle-soft); color: var(--idle); }
.pill.queued { background: var(--warn-soft); color: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-2); padding: 1px 8px; border-radius: 6px; font-size: 12px; margin: 1px 4px 1px 0; }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }

/* forms & buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 7px 12px; border-radius: 8px; font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #062a26; } }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); }
.btn.danger { color: var(--bad); }
.btn.danger:hover:not(:disabled) { border-color: var(--bad); background: var(--bad-soft); }
.btn.sm { padding: 3px 8px; font-size: 12.5px; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { font-family: var(--mono); font-size: 12.5px; width: 100%; min-height: 80px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
label.field input, label.field select { color: var(--text); font-weight: 400; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { min-width: 260px; flex: 1; max-width: 420px; }
.bulkbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--accent-soft); border-radius: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; color: var(--muted); font-size: 13px; }
.pager .btns { display: flex; gap: 6px; }

/* device page */
.dev-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.dev-head .title { flex: 1; min-width: 280px; }
.dev-head .title .id { color: var(--muted); font-family: var(--mono); font-size: 12px; word-break: break-all; }
.dev-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 18px 0 16px; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
.edit-inline { margin-left: 6px; }

/* parameter tree */
.ptree { font-family: var(--mono); font-size: 12.5px; }
.prow { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(160px, 1.1fr) 100px 170px; gap: 10px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.prow:hover { background: var(--panel-2); }
.prow .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .pval { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .ptype, .prow .pts { color: var(--muted); font-size: 11.5px; }
.prow .toggle { cursor: pointer; color: var(--text); font-weight: 600; background: none; border: 0; font: inherit; padding: 0; text-align: left; }
.prow .toggle::before { content: "▸ "; color: var(--muted); }
.prow .toggle.open::before { content: "▾ "; }
.prow .acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.w-mark { color: var(--accent); font-size: 11px; margin-left: 4px; }

/* modal & toasts */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,12,16,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal header { padding: 16px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.modal header h2 { margin: 0; }
.modal .body { padding: 16px 20px; }
.modal footer { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.modal .close { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.note { background: var(--panel-2); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.note.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: 13px; max-width: 380px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: tin .2s ease-out; }
.toast.ok { border-left: 4px solid var(--ok); } .toast.bad { border-left: 4px solid var(--bad); } .toast.warn { border-left: 4px solid var(--warn); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
pre.code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; overflow: auto; font-size: 12px; margin: 6px 0 0; max-height: 300px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: var(--accent); width: 0; }
.muted { color: var(--muted); }
.right { text-align: right; }
td.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * + * { margin-left: 6px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .panel { width: min(380px, 100%); padding: 28px; }
.login .brand { padding: 0 0 20px; }
.login .err { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.login input { width: 100%; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; }
  .brand { padding: 0 8px 0 0; } .nav { display: flex; flex-wrap: wrap; } .side .foot { display: none; }
  .main { padding: 16px; }
  .prow { grid-template-columns: 1fr 1fr; } .prow .ptype, .prow .pts { display: none; }
}
.spacer-flex { flex: 1; }

/* ---- access types (categorical, validated: fiber=blue, wired=orange, fwa=aqua) ---- */
:root { --c-fiber: #4568dc; --c-wired: #eb6834; --c-fwa: #b06ab3; --c-unknown: #9aa5b1; } /* validated: CVD ΔE ≥ 9.3 light */
@media (prefers-color-scheme: dark) { :root { --c-fiber: #5b7be6; --c-wired: #dd6a34; --c-fwa: #b874ba; --c-unknown: #6b7785; } } /* dark: ΔE 7.7 – labels always shown */
.acc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
a.acc:hover { text-decoration: none; }
.acc::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c-unknown); flex: none; }
.acc-fiber::before { background: var(--c-fiber); } .acc-wired::before { background: var(--c-wired); } .acc-fwa::before { background: var(--c-fwa); }
.acc-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.acc-flag { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.acc-rows { display: flex; flex-direction: column; gap: 12px; }
.acc-row { display: grid; grid-template-columns: 90px 1fr 150px; gap: 12px; align-items: center; font-size: 13px; }
.acc-row .n { color: var(--muted); text-align: right; }
.acc-row .n b { color: var(--text); }
.stack.sm { height: 10px; margin: 0; gap: 2px; background: transparent; }
.stack.sm > div { border-radius: 3px; }
.stack.inline { display: inline-flex; width: 80px; vertical-align: middle; }
.stack > div + div { margin-left: 2px; }

/* signal */
.sig { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.sig-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.sig-bars i { width: 3px; background: var(--border); border-radius: 1px; }
.sig-bars i:nth-child(1) { height: 25%; } .sig-bars i:nth-child(2) { height: 50%; } .sig-bars i:nth-child(3) { height: 75%; } .sig-bars i:nth-child(4) { height: 100%; }
.sig-excellent .sig-bars i, .sig-good .sig-bars i:nth-child(-n+3) { background: var(--ok); }
.sig-fair .sig-bars i:nth-child(-n+2) { background: var(--warn); }
.sig-poor .sig-bars i:nth-child(1) { background: var(--bad); }

/* columns chart */
.cols-wrap { margin-top: 12px; position: relative; }
.cols-max { font-size: 11px; position: absolute; top: -2px; left: 0; }
.cols { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 16px; border-bottom: 1px solid var(--border); }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; min-width: 3px; }
.col:hover .col-bar { filter: brightness(1.15); outline: 2px solid var(--text); outline-offset: 1px; }
.col-bar { width: 100%; height: 0; border-radius: 4px 4px 0 0; background: var(--c-fwa); transition: height .4s; }
.cols-axis { display: flex; justify-content: space-between; font-size: 11px; padding-top: 4px; }
.cols-table summary { cursor: pointer; font-size: 12px; margin-top: 6px; }
.cols-table table { margin-top: 6px; }
.chart-empty { padding: 30px 0; text-align: center; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.minis > div { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.minis b { font-size: 17px; font-variant-numeric: tabular-nums; }
.small { font-size: 12px; }
.mb { margin-bottom: 16px; }
h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 0 10px; }
.kpi .value.sm { font-size: 22px; }
.kpi .label .acc { font-size: 12.5px; }
.g-conn { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-form { grid-template-columns: 1fr 1fr; gap: 12px; }
.tag.loc { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.nav .count.soft { background: var(--warn-soft); color: var(--warn); }

/* alerts */
.alert-banner { border-left: 4px solid var(--warn); padding: 12px 16px; }
.alert-banner.crit { border-left-color: var(--bad); }
.ab-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ab-row { display: grid; grid-template-columns: 110px minmax(140px, 220px) 1fr auto; gap: 12px; align-items: center; padding: 6px 0; color: var(--text); border-top: 1px solid var(--border); font-size: 13px; }
.ab-row:hover { text-decoration: none; background: var(--panel-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px 2px; margin: 0 0 12px; }
legend { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.rule { margin-bottom: 12px; font-size: 13px; }
.rule-f { color: var(--muted); margin-top: 4px; line-height: 2.1; }
.rule-f input { width: 70px; padding: 3px 6px; }
.modal { width: min(640px, 100%); }
@media (max-width: 860px) { .ab-row { grid-template-columns: 1fr; gap: 2px; } .acc-row { grid-template-columns: 70px 1fr; } .acc-row .n { grid-column: 1 / -1; text-align: left; } }

.pill.tri::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 8px; height: 8px; }
form[data-note] input { flex: 1; }
[hidden] { display: none !important; }

/* ================= Culture Wireless brand theme ================= */
h1 { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: .01em; }
h2, .kpi .value, .minis b { font-family: var(--font-head); }
.kpi .value { font-weight: 700; color: var(--text); }
h3, h2.section { letter-spacing: .08em; }
.side { background: var(--side-bg); border-right: 0; color: var(--side-text); }
.side .brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 10px 20px; font-weight: 400; }
.brand-logo { width: 150px; height: auto; display: block; }
.brand-sub { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--side-muted); padding-left: 2px; }
.nav a { color: var(--side-text); position: relative; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #4568dc, #b06ab3); }
.nav .count { background: #ef4444; color: #fff; }
.nav .count.soft { background: rgba(251,191,36,.18); color: #fbbf24; }
.side .foot { border-top-color: rgba(255,255,255,.1); color: var(--side-muted); }
.side .foot b { color: #fff; }
.side .foot .btn { background: transparent; color: var(--side-text); border-color: rgba(255,255,255,.2); }
.side .foot .btn:hover { border-color: #b06ab3; color: #fff; }
.badge-mock { background: rgba(251,191,36,.18); color: #fbbf24; }
.btn.primary { background: var(--brand-grad); border: 0; color: #fff; padding: 8px 13px; }
.btn.primary:hover:not(:disabled) { background: var(--brand-grad); filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #fff; } }
.tabs a.active { color: var(--text); border-bottom: 2px solid transparent; border-image: var(--brand-grad) 1; }
.pagehead::after { content: none; }
.tag { background: var(--accent-soft); color: var(--accent-2); }
.bulkbar { background: var(--accent-soft); }
.panel.kpi { position: relative; overflow: hidden; }
.panel.kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad); opacity: 0; transition: opacity .2s; }
a.panel.kpi:hover { text-decoration: none; border-color: var(--accent); }
a.panel.kpi:hover::after { opacity: 1; }
a.panel.kpi { color: var(--text); }
.boot { background: var(--navy); color: #c3c9e6; }
/* login */
.login { background: radial-gradient(1200px 600px at 50% -10%, rgba(176,106,179,.28), transparent 60%), radial-gradient(900px 500px at 10% 110%, rgba(69,104,220,.30), transparent 60%), var(--navy); flex-direction: column; gap: 26px; }
.login { display: flex; align-items: center; justify-content: center; }
.login-logo { width: min(300px, 70vw); height: auto; }
.login .panel { box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 0; }
.login .panel h2 { font-family: var(--font-display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 400; }
.login .btn.primary { width: 100%; justify-content: center; padding: 10px; }
.login-foot { color: #8a93bd; font-size: 12px; }
@media (max-width: 860px) { .brand-logo { width: 96px; } .side .brand { padding: 0 8px 0 0; } .brand-sub { display: none; } .nav a.active::before { display: none; } }
.side .brand img.brand-logo { width: 150px; height: auto; } @media (max-width: 860px) { .side .brand img.brand-logo { width: 84px; } }

/* customers */
.cust-results { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; margin-bottom: 12px; }
.cust-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; }
.cust-opt:hover { border-color: var(--accent); }
.cust-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cust-opt input { margin-top: 3px; }
details[data-cnew] summary { cursor: pointer; padding: 6px 0; }
