/* ==========================================================================
   BANDI admin – one small design system for every admin page
   ========================================================================== */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e8ef;
  --line-strong: #cfd6e0;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #7b8798;
  --brand: #1d3557;
  --brand-hover: #16294a;
  --accent: #2563eb;
  --ring: rgba(37, 99, 235, .22);
  --good: #15803d;   --good-bg: #e8f6ee;
  --bad: #b42318;    --bad-bg: #fdecec;
  --warn: #a15c07;   --warn-bg: #fff4e0;
  --info: #1e40af;   --info-bg: #e8effd;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink);
  background: var(--bg); display: flex; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1.wrap { word-break: break-word; font-size: 20px; margin-top: 6px; }
.muted { color: var(--muted); font-size: 13px; }
.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.bad { color: var(--bad); }
.good { color: var(--good); }
.nowrap { white-space: nowrap; }
.error { color: var(--bad); font-size: 13px; }

/* ---------- layout ---------- */
.sidebar {
  width: 232px; flex-shrink: 0; background: var(--brand); color: #fff;
  padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar h2 { font-size: 19px; letter-spacing: .06em; padding: 0 10px 20px; }
.sidebar h2 small { display: block; font-size: 11px; letter-spacing: .08em; opacity: .6; font-weight: 500; margin-top: 2px; }
.sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82);
  padding: 9px 10px; border-radius: var(--radius-sm); font-weight: 500;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar a.active { background: rgba(255,255,255,.16); color: #fff; }
.sidebar svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.sidebar .gap { height: 14px; }
.main { flex: 1; min-width: 0; padding: 28px 32px 60px; max-width: 1400px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; font-size: 13px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 4px; }
.section-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 12px; }
h2.section { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }

/* ---------- flash ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--good-bg); color: #14532d; border-color: #bfe5cd; }
.flash.bad { background: var(--bad-bg); color: var(--bad); border-color: #f5c6c2; }
.flash b { font-size: 16px; line-height: 1.2; }

/* ---------- surfaces ---------- */
.panel, .card, .action, .empty, .table-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 18px 20px; }
.panel h3, .action h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.panel .panel-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.empty { margin-top: 16px; padding: 28px; text-align: center; color: var(--ink-2); }
.empty.good { color: var(--good); }

/* ---------- stat tiles ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.card { padding: 16px 18px; display: block; color: inherit; }
.card h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.card h2 { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card h2.bad { color: var(--bad); }
.card .muted { margin-top: 6px; }
.cards.small .card h2 { font-size: 22px; }
.card-link { transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(15,23,42,.09); text-decoration: none; }
.card-link h3::after { content: " →"; color: var(--muted); font-weight: 400; }

/* summary strip above a list */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.summary > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.summary > div:last-child { border-right: 0; }
.summary .k { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.summary .v { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.summary .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=number], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  height: 40px; padding: 0 12px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa5b4; }
input:hover, select:hover, textarea:hover { border-color: #aeb8c6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.input-group input { border: 0; box-shadow: none !important; border-radius: 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.input-group .addon:first-child { border-right: 1px solid var(--line); }
.input-group .addon:last-child { border-left: 1px solid var(--line); }

.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.toolbar input[type=date] { width: auto; }

/* ---------- buttons ---------- */
.btn, button {
  font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover, button:hover { background: var(--brand-hover); text-decoration: none; }
.btn:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.light:hover { background: var(--surface-2); border-color: #aeb8c6; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #912018; }
.btn.green { background: var(--good); border-color: var(--good); }
.btn.green:hover { background: #116932; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 0 8px; }
.btn.ghost:hover { background: var(--info-bg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], button[disabled] { opacity: .45; cursor: not-allowed; }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: #cbd3de; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--ring); }

/* segmented choice (radio buttons that look like one control) */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; flex-wrap: wrap; }
.segmented label { cursor: pointer; position: relative; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; padding: 6px 14px; border-radius: 6px; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.15); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }

/* ---------- filter tabs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.filters .sep { width: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.chip:hover { border-color: #aeb8c6; color: var(--ink); text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip .count { background: rgba(15,23,42,.07); border-radius: 999px; padding: 0 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.chip.on .count { background: rgba(255,255,255,.2); }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }

/* ---------- tables ---------- */
.table-wrap { margin-top: 14px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table th.num { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table td.msg { max-width: 480px; word-break: break-word; }
.table .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table a.row-link { font-weight: 600; color: var(--ink); }
.table a.row-link:hover { color: var(--accent); }
.route { color: var(--ink-2); }
.table td.route { min-width: 200px; }

.pager { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.pager .btns { display: flex; gap: 8px; }

/* ---------- key/value lists ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { word-break: break-word; font-weight: 500; }

/* ---------- action cards ---------- */
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.action { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.action .desc { color: var(--ink-2); font-size: 13px; margin-top: -8px; }
.action .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.action.danger-zone { border-color: #f3c9c5; }

/* ---------- ride timeline ---------- */
.timeline { list-style: none; position: relative; margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li .t { color: var(--ink-2); font-size: 13px; }
.timeline li.off { color: var(--muted); }
.timeline li.off::before { background: #cfd6e0; }
.timeline li.cancel::before { background: var(--bad); }

/* ---------- bar chart ---------- */
.chart { position: relative; margin-top: 8px; padding: 22px 0 0 30px; }
.chart .grid { position: absolute; left: 30px; right: 0; top: 22px; height: 180px; pointer-events: none; }
.chart .grid div { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.chart .grid span { position: absolute; left: -30px; width: 24px; text-align: right; top: -8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart .plot { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 180px; align-items: end; }
.chart .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none; border-radius: 6px 6px 0 0; }
.chart .col:hover { background: rgba(37,99,235,.06); text-decoration: none; }
.chart .bar { position: relative; width: 60%; max-width: 44px; background: #5b83bd; border-radius: 4px 4px 0 0; }
.chart .col.today .bar { background: var(--brand); }
.chart .col .val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart .col .val.zero { color: var(--muted); font-weight: 500; }
.chart .col .tip { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
.chart .col:hover .tip { opacity: 1; }
.chart .axis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; border-top: 1px solid var(--line-strong); padding-top: 8px; }
.chart .axis div { text-align: center; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.chart .axis b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- settings ---------- */
.setting-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.setting-row.first { padding-top: 2px; }
.setting-row .name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting-row .desc { color: var(--ink-2); font-size: 13px; margin-top: 3px; max-width: 560px; }
.setting-row .ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.rates { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.rates table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.rates th, .rates td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rates thead th { font-size: 13px; color: var(--ink); border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.rates thead th .muted { font-weight: 500; font-size: 12px; }
.rates tr.grp-row td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-top: 18px; border-bottom: 0; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates td.veh, .rates th.veh { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; }
.rates td.veh b { font-weight: 600; }
.rates td.veh .muted { font-size: 12px; }
.rates .input-group { width: 118px; }
.rates .input-group input { height: 34px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.rates .input-group .addon { padding: 0 8px; font-size: 12px; }
.rates .input-group.changed { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.15); }
.rates .input-group.changed input { background: #fff7ed; }
.stickybar { position: sticky; bottom: 0; z-index: 2; margin: 8px -20px -18px; padding: 12px 20px; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stickybar .state { color: var(--ink-2); font-weight: 600; }
.stickybar .state.has { color: var(--warn); }

.rule-sentence { background: var(--info-bg); color: var(--info); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.rule-sentence.off { background: var(--surface-2); color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.diff-up { color: var(--bad); font-weight: 600; }
.diff-down { color: var(--good); font-weight: 600; }
pre.small { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); max-width: 520px; }

/* ---------- confirm dialog ---------- */
dialog.confirm { margin: auto; border: 0; border-radius: 14px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15,23,42,.3); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(15,23,42,.45); }
dialog.confirm .body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog.confirm h3 { font-size: 17px; }
dialog.confirm p { color: var(--ink-2); }
dialog.confirm .foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- crashes (existing pages) ---------- */
.report { margin-top: 12px; }
.report-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-meta { color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.report pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--surface-2); padding: 12px; border-radius: 8px; margin-top: 10px; max-height: 420px; overflow: auto; }
.report summary { cursor: pointer; margin-top: 10px; color: var(--accent); font-weight: 600; }

/* ---------- login ---------- */
.login-body { justify-content: center; align-items: center; padding: 16px; }
.login-box { background: var(--surface); padding: 32px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(15,23,42,.1); width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.login-box h2 { color: var(--brand); margin-bottom: 8px; font-size: 22px; }
.login-box label { font-weight: 600; font-size: 13px; }
.login-box button { margin-top: 8px; width: 100%; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 20; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
  .sidebar h2 { padding: 0 4px; font-size: 16px; }
  .sidebar h2 small { display: none; }
  .sidebar ul { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .sidebar ul::-webkit-scrollbar { display: none; }
  .sidebar a { padding: 7px 10px; white-space: nowrap; font-size: 13px; }
  .sidebar svg, .sidebar .gap { display: none; }
  .main { padding: 18px 16px 48px; }
  h1 { font-size: 21px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 12px 14px; }
  .card h2 { font-size: 22px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .summary > div { border-bottom: 1px solid var(--line); }
  .search { max-width: none; }
  .kv { grid-template-columns: 110px 1fr; }
  .setting-row { grid-template-columns: 1fr; }
  .setting-row .ctl { justify-content: flex-start; }
  .actions { grid-template-columns: 1fr; }
  .chart .plot, .chart .axis { gap: 4px; }
}
.foot-right { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ---------- notifications ---------- */
.tpl-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr) auto auto auto; gap: 8px; align-items: center; margin-top: 10px; }
.tpl-row.add { grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr) auto; padding-top: 10px; border-top: 1px dashed var(--line); }
@media (max-width: 760px) { .tpl-row, .tpl-row.add { grid-template-columns: 1fr; } }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 12px; }

/* dashboard groups (10 Oct 2026) */
.dash-sec { margin-top: 22px; }
.dash-sec:first-of-type { margin-top: 8px; }
.dash-h { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .01em; margin: 0 0 -4px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line, #e5e7eb); }
