/* College Email Extractor — admin UI */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --line: #e5e7ef;
  --line-strong: #d4d7e3;
  --text: #121826;
  --muted: #667085;
  --primary: #5b4ee6;
  --primary-600: #4b3fd1;
  --primary-50: #efedfd;
  --ok: #138a4b;  --ok-50: #e7f6ee;
  --warn: #b26a00; --warn-50: #fff4e0;
  --bad: #c4302b;  --bad-50: #fdecea;
  --info: #2160d6; --info-50: #e8f0fe;
  --side: #14162b;
  --side-text: #c9cbe0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 650; margin-bottom: 10px; }
h4 { font-size: 13px; font-weight: 650; }
p { margin: 0 0 8px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
pre { font-family: var(--mono); font-size: 12px; background: #0f1222; color: #e6e8f5; padding: 12px 14px; border-radius: var(--radius-sm);
  overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
pre.evidence { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); max-height: 260px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.ico { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--text); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mt { margin-top: 18px; }
.truncate { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
td.clamp-3 { display: table-cell; max-width: 420px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inline { display: inline; }
.stack { display: grid; gap: 12px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; line-height: 1.1; padding: 4px 8px 22px; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; color: #9a9dc0; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; letter-spacing: .5px;
  background: linear-gradient(135deg, #7b6ff2, #5b4ee6); color: #fff; }
.brand-dark { color: var(--text); padding: 0 0 18px; }
.brand-dark small { color: var(--muted); }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; color: var(--side-text); padding: 9px 10px; border-radius: 8px; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(123,111,242,.22); color: #fff; }
.sidebar nav .count { margin-left: auto; font-style: normal; font-size: 11px; background: #f59e0b; color: #1a1300; border-radius: 99px; padding: 1px 7px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 8px; }
.worker-pill { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--side-text); }
.worker-pill:hover { text-decoration: none; background: rgba(255,255,255,.09); }
.worker-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.worker-pill.on i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.05); } }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.content { padding: 24px 28px 60px; max-width: 1480px; width: 100%; }
.only-mobile { display: none; }

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h3 { margin: 0; }
.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 16px 20px 0; }
.table-card > .empty, .table-card > p.empty { padding: 24px 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2.tight { gap: 10px; }
.align-start { align-items: start; }
.narrow { max-width: 460px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.empty-box { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px; color: var(--muted); margin: 8px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px;
  padding: 8px 14px; font: 600 13.5px var(--font); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, color .12s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: #c3c7d6; }
.btn-ok { background: var(--ok-50); color: var(--ok); border-color: #bfe6cf; }
.btn-ok:hover { background: #d6efe1; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-ghost { background: var(--surface); color: var(--bad); border-color: #f2c4c1; }
.btn-danger-ghost:hover { background: var(--bad-50); }
.btn-link { background: none; color: var(--primary); padding-left: 4px; padding-right: 4px; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--text); }

/* ---------- forms ---------- */
label { display: grid; gap: 5px; font-weight: 550; font-size: 13px; }
input[type=text], input[type=password], input[type=email], input[type=number], input:not([type]), select, textarea {
  font: 14px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.row-form { display: flex; gap: 8px; margin: 10px 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; }
.filters select { width: auto; min-width: 150px; }
.inline-filters { padding: 0; margin: 0; }
.search { position: relative; flex: 1; min-width: 220px; display: block; }
.search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 32px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; padding: 3px; background: var(--surface-2); width: max-content; }
.seg label { display: block; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 6px 16px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.switch { position: relative; width: 42px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #cfd3e0; border-radius: 99px; transition: .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.settings-form fieldset { border: 1px solid var(--line); }
.settings-form legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 22px; }
.field small { font-weight: 400; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; justify-items: center; cursor: pointer; position: relative; background: var(--surface-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .file-name { font-style: normal; color: var(--primary); font-weight: 600; }
.result-box { margin-top: 16px; border: 1px solid #bfe6cf; background: var(--ok-50); border-radius: var(--radius-sm); padding: 14px 16px; }
.result-box ul { margin: 8px 0 12px; padding-left: 18px; }

/* ---------- badges, chips, tabs ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-muted { background: #eef0f4; color: #5b6475; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--primary-50); color: var(--primary-600); border-radius: 6px; padding: 1px 7px; margin-top: 3px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-weight: 550; font-size: 13px; }
.chip:hover { text-decoration: none; border-color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip em, .tabs em { font-style: normal; opacity: .7; margin-left: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- alerts & toasts ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; position: relative; }
.alert-success { background: var(--ok-50); border-color: #bfe6cf; color: #0d5c33; }
.alert-warning { background: var(--warn-50); border-color: #f4d9a6; color: #7a4a00; }
.alert-error { background: var(--bad-50); border-color: #f2c4c1; color: #8c1f1b; }
.alert-info { background: var(--info-50); border-color: #c7d8fb; color: #1a4ca8; }
.alert-x { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 2px; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; max-width: 380px; }
.toast { background: #151829; color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13.5px;
  border-left: 4px solid #22c55e; animation: slide .2s ease-out; }
.toast.warning { border-left-color: #f59e0b; }
.toast.error { border-left-color: #ef4444; }
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover td { background: #fbfbfe; }
.table tr.sub td { padding-top: 0; border-top: 0; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.w-check { width: 36px; }
.bulkbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bulkbar select { width: auto; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 4px 0 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .disabled { color: #b5bac6; }
.pager .gap { border: 0; background: none; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpi span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi strong { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi a { font-size: 12.5px; }
.kpi-accent { background: linear-gradient(135deg, #fff, #f7f5ff); border-color: #ddd8fb; }
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; counter-reset: step; }
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; position: relative; }
.job-card:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 34px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.job-card header { display: flex; gap: 12px; align-items: flex-start; }
.job-card header > div { flex: 1; min-width: 0; }
.job-card h2 { font-size: 15.5px; font-weight: 700; }
.job-card h2 + p { margin: 2px 0 0; }
.step { width: 28px; height: 28px; border-radius: 8px; background: var(--primary-50); color: var(--primary-600); display: grid; place-items: center; font-weight: 750; flex: none; }
.step.sm { width: 24px; height: 24px; font-size: 12px; }
.job-desc { color: var(--muted); font-size: 13px; margin: 0; }
.job-msg { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card.is-running .job-msg { border-color: #cdeedb; background: #f3fbf6; }
.job-card.is-paused .job-msg { border-color: #f4d9a6; background: #fffaf0; }
.progress { height: 6px; background: #eceef4; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #7b6ff2, #5b4ee6); border-radius: 99px; transition: width .6s; }
.job-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.job-stats div { background: var(--surface-2); border-radius: 8px; padding: 7px 8px; }
.job-stats dt { font-size: 11px; color: var(--muted); font-weight: 600; }
.job-stats dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.job-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.job-card.is-running [data-job-action=start], .job-card.is-paused [data-job-action=pause], .job-card.is-stopped [data-job-action=stop],
.job-card.is-stopped [data-job-action=pause] { opacity: .45; pointer-events: none; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.feed li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--info); margin-top: 6px; flex: none; }
.feed li.lvl-success > i { background: var(--ok); }
.feed li.lvl-warning > i { background: #f59e0b; }
.feed li.lvl-error > i { background: var(--bad); }
.feed p { margin: 0; font-size: 13px; word-break: break-word; }
.feed.compact li { padding: 6px 0; }
.feed li.empty { justify-content: center; }
.feed li.fresh { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: var(--primary-50); } }
.keys-mini { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.meter { position: relative; height: 7px; background: #eceef4; border-radius: 99px; margin: 4px 0 2px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.meter.meter-warn i { background: #f59e0b; }
.meter.meter-full i { background: var(--bad); }
.meter b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #9aa1b4; border-radius: 2px; }

/* ---------- school / review ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stage { display: grid; gap: 6px; align-content: start; }
.stage h3 { margin: 4px 0 0; }
.candidates { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.candidates li, .cand { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); display: grid; gap: 3px; }
.candidates li.is-selected { border-color: #bfe6cf; background: #f6fcf8; }
.score { font-weight: 750; font-size: 12px; background: var(--primary-50); color: var(--primary-600); border-radius: 6px; padding: 1px 7px; }
.review-item { display: grid; gap: 8px; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cand form { margin-top: 4px; }
.evidence-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
.evidence-item summary { cursor: pointer; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.pop { display: inline-block; position: relative; }
.pop[open] > summary { background: var(--primary-50); border-color: #cfc9fa; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 14px; z-index: 20; text-align: left; white-space: normal; }
.steps-list { padding-left: 18px; margin: 0 0 10px; display: grid; gap: 6px; }
.danger-card { border-color: #f2d0ce; display: grid; gap: 10px; align-content: start; }
pre.copy { position: relative; cursor: copy; }
pre.copy::after { content: "Click to copy"; position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: #8f93b5; font-family: var(--font); }
pre.copy.copied::after { content: "Copied ✓"; color: #6ee7a8; }

/* ---------- auth ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 10% -10%, #e6e2ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #dff3ff 0, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(16,24,40,.08); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card form { margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pipeline { grid-template-columns: 1fr; }
  .job-card::after { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .stages { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10,12,25,.45); }
  .only-mobile { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .topbar-right .muted { display: none; }
  .content { padding: 16px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi strong { font-size: 22px; }
  .row-form { flex-direction: column; }
}
.stack > .btn:not(.btn-block) { justify-self: start; }
