/* GovRadar Admin – light design system (govradar.net palette) */
:root {
  --brand: #703ab3;
  --brand-700: #5c2f94;
  --brand-100: #f1e9fb;
  --brand-50: #f8f4fd;
  --accent: #bf8aff;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --border: #e5e7ea;
  --border-strong: #d2d6dc;
  --text: #30343b;
  --muted: #6b7280;
  --faint: #9aa1ab;
  --danger: #c93b3b;
  --danger-50: #fdf1f1;
  --success: #1f8a4c;
  --success-50: #ecf8f0;
  --warn: #b86e00;
  --warn-50: #fff6e5;
  --info: #2a62c9;
  --info-50: #ecf2fc;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(23, 23, 23, 0.04), 0 1px 3px rgba(23, 23, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(23, 23, 23, 0.12);
  --sidebar: 248px;
  --font: Inter, "Inter Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.78rem; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Layout */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 1rem 0.75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.6rem 0.9rem; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-name { font-weight: 600; line-height: 1.1; padding-left: 0.5rem; border-left: 1px solid var(--border); }
.brand-name small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
.nav-section { margin-top: 0.5rem; }
.nav-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 0.4rem 0.75rem 0.25rem; }
.nav-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--text); font-size: 0.93rem; }
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.active { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.sidebar-footer { margin-top: auto; padding: 0.6rem 0.75rem 0; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 0.6rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; flex: none; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 2rem; background: rgba(245, 247, 249, 0.9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.content { padding: 0.5rem 2rem 3rem; width: 100%; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0.75rem 0 1.25rem; flex-wrap: wrap; }
.page-header .overline { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.page-header .lead { color: var(--muted); margin-top: 0.3rem; }
.actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumbs { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.env-badge { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--warn-50); color: var(--warn); }

/* Search */
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; padding: 0.55rem 0.9rem 0.55rem 2.3rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; }
.search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search kbd { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; }
.search-results:empty { display: none; }
.search-group { padding: 0.4rem 0.9rem 0.2rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.search-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; color: var(--text); }
.search-item:hover, .search-item:focus { background: var(--bg); text-decoration: none; outline: none; }
kbd { font-family: var(--font); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0.05rem 0.35rem; background: var(--surface); }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 1.25rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.content > .card + .card, .content > form > .card + .card { margin-top: 1rem; }
.grid > .card, .grid > .stat { margin: 0; height: 100%; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.right { margin-left: auto; }
.stat { display: flex; flex-direction: column; color: var(--text); padding: 1.1rem 1.25rem 1rem; min-height: 136px; position: relative; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
a.stat:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(112, 58, 179, 0.10); }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; margin-bottom: auto; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-value { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.9rem; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 0.15rem; }
.stat-label { color: var(--muted); margin-top: 0.2rem; font-size: 0.88rem; }
.stat svg.arrow { position: absolute; top: 1rem; right: 1rem; width: 18px; height: 18px; color: var(--faint); }
.stat.accent { background: linear-gradient(135deg, var(--brand), #9a62e0); color: #fff; border: none; }
.stat.accent .stat-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.stat.accent .stat-label, .stat.accent .stat-value small { color: rgba(255, 255, 255, 0.85); }
.meter { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-top: 0.6rem; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--success); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 0.9rem; cursor: pointer; background: var(--brand); color: #fff; line-height: 1.2; white-space: nowrap; transition: background 0.12s, border-color 0.12s, box-shadow 0.12s; }
.btn:hover { background: var(--brand-700); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--bg); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-50); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #a92f2f; }
.btn.danger.secondary { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn.danger.secondary:hover { background: var(--danger-50); }
.btn.sm { padding: 0.32rem 0.65rem; font-size: 0.82rem; }
.btn.icon { padding: 0.4rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn .spinner { display: none; }
.htmx-request .btn .spinner, .btn.htmx-request .spinner { display: inline-block; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.secondary .spinner, .btn.ghost .spinner { border-color: var(--border-strong); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label, .label { font-weight: 500; font-size: 0.88rem; }
.field .req { color: var(--danger); }
.field .hint { color: var(--muted); font-size: 0.8rem; }
.field .error { color: var(--danger); font-size: 0.8rem; }
.input, input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], select, textarea { font: inherit; padding: 0.5rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--brand); }
input[readonly] { background: var(--bg); color: var(--muted); }
input.invalid, select.invalid { border-color: var(--danger); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-footer { display: flex; justify-content: flex-end; gap: 0.5rem; align-items: center; padding-top: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; font-size: 0.9rem; }
.check input { width: auto; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--brand-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--text); font-weight: 500; }
.table a.row-link:hover { color: var(--brand); }
.table .actions-cell { text-align: right; white-space: nowrap; }
.table-toolbar { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-toolbar input, .table-toolbar select { width: auto; min-width: 200px; }
.pagination { display: flex; gap: 0.3rem; align-items: center; justify-content: flex-end; padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--muted); }
.pagination a, .pagination span.page { padding: 0.25rem 0.6rem; border-radius: 6px; }
.pagination a:hover { background: var(--bg); text-decoration: none; }
.pagination .current { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

/* Tags & badges */
.tag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag.brand { background: var(--brand-100); color: var(--brand-700); border-color: transparent; }
.tag.success { background: var(--success-50); color: var(--success); border-color: transparent; }
.tag.danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.tag.warn { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.tag.info { background: var(--info-50); color: var(--info); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.4rem 0.25rem 0.7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 0.85rem; }
.chip button { background: none; border: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 0.1rem; border-radius: 50%; }
.chip button:hover { background: var(--danger-50); color: var(--danger); }
.chip button svg { width: 14px; height: 14px; }
.license-meter { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; border: 1px solid; }
.license-meter.ok { color: var(--success); background: var(--success-50); border-color: #b9e2c7; }
.license-meter.full { color: var(--warn); background: var(--warn-50); border-color: #f3d79b; }
.license-meter.over { color: var(--danger); background: var(--danger-50); border-color: #f0b7b7; }

/* Alerts */
.alert { display: flex; gap: 0.7rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.92rem; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 0.1rem; }
.alert.info { background: var(--info-50); border-color: #c5d6f5; color: #1e4a9b; }
.alert.warn { background: var(--warn-50); border-color: #f3d79b; color: #7a4a00; }
.alert.error { background: var(--danger-50); border-color: #f0b7b7; color: #8f2727; }
.alert.success { background: var(--success-50); border-color: #b9e2c7; color: #176638; }
.alert .alert-body { flex: 1; }
.alert .alert-body p:last-child { margin-bottom: 0; }

/* Tabs */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); padding: 0 1.25rem; overflow-x: auto; }
.tab { padding: 0.75rem 0.9rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 0.92rem; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand-700); border-bottom-color: var(--brand); }
.tab.danger-tab { margin-left: auto; color: var(--danger); }

/* Options (radio cards) */
.option-card { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.option-card:hover { background: var(--bg); }
.option-card.selected { border-color: var(--brand); background: var(--brand-50); }
.option-card .option-title { font-weight: 600; }
.option-card .option-desc { color: var(--muted); font-size: 0.85rem; }
.option-card .check-mark { margin-left: auto; width: 22px; height: 22px; color: var(--brand); visibility: hidden; }
.option-card.selected .check-mark { visibility: visible; }

/* Key-value */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.facts { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.fact { display: flex; flex-direction: column; gap: 0.15rem; }
.fact .fact-label { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fact .fact-value { font-weight: 500; }

/* Timeline / audit */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.timeline li:last-child { border-bottom: none; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin: 0.35rem auto 0; }
.timeline .dot.failed { background: var(--danger); }
.timeline .when { color: var(--muted); font-size: 0.8rem; }
.changes { display: grid; grid-template-columns: max-content 1fr 1fr; gap: 0.3rem 0.9rem; font-size: 0.85rem; align-items: start; }
.changes .field-name { font-weight: 600; }
.changes .from { color: var(--danger); text-decoration: line-through; opacity: 0.8; word-break: break-word; }
.changes .to { color: var(--success); word-break: break-word; }
.changes code { white-space: pre-wrap; }
pre.json { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; font-size: 0.78rem; overflow: auto; max-height: 360px; margin: 0; }
.action-tag { font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; background: var(--bg); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 5px; }

/* Modal */
dialog.modal { border: none; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-lg); width: min(560px, 92vw); color: var(--text); }
dialog.modal.wide { width: min(900px, 94vw); }
dialog.modal::backdrop { background: rgba(23, 23, 23, 0.4); backdrop-filter: blur(2px); }
.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 0.2rem; border-radius: 6px; }
.modal-close:hover { background: var(--bg); }

/* Toasts */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 100; }
.toast { background: #1f2227; color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); display: flex; gap: 0.6rem; align-items: center; font-size: 0.9rem; min-width: 260px; max-width: 420px; animation: toast-in 0.2s ease-out; }
.toast.success { border-left: 4px solid #4ade80; }
.toast.error { border-left: 4px solid #f87171; }
.toast.warn { border-left: 4px solid #fbbf24; }
.toast.info { border-left: 4px solid var(--accent); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Editor */
.editor { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.editor-toolbar { display: flex; gap: 0.15rem; padding: 0.35rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.editor-toolbar button { background: none; border: 1px solid transparent; border-radius: 5px; padding: 0.25rem 0.5rem; cursor: pointer; font: inherit; font-size: 0.82rem; color: var(--text); }
.editor-toolbar button:hover { background: var(--bg); border-color: var(--border); }
.editor-body { min-height: 160px; padding: 0.8rem 0.9rem; outline: none; line-height: 1.5; }
.editor-body:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.editor-body h2 { font-size: 1.25rem; margin: 0.5rem 0; }
.editor-body h3 { font-size: 1.05rem; margin: 0.5rem 0; }
.editor-body p { margin: 0 0 0.5rem; }
.editor-body ul, .editor-body ol { padding-left: 1.4rem; }
.editor-body img { max-width: 100%; }
.editor.document .editor-body { width: 210mm; max-width: 100%; padding: 5mm 20mm; font-family: Arial, sans-serif; }
.preview { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 1rem; background: var(--bg); }

/* Media */
.media-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.media-item { position: relative; width: 280px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.media-item img { width: 100%; height: 100%; object-fit: contain; }
.media-item .tag { position: absolute; left: 0.5rem; bottom: 0.5rem; }
.media-item .btn { position: absolute; right: 0.5rem; top: 0.5rem; }
.media-item.deleted img { filter: grayscale(1) contrast(0.5); }
.dropzone { width: 280px; aspect-ratio: 16/9; border: 2px dashed var(--border-strong); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, var(--brand-100), transparent 45%), radial-gradient(circle at 85% 90%, #ebe0ff, transparent 40%), var(--bg); padding: 1rem; }
.login-card { width: min(420px, 100%); padding: 2.25rem; text-align: center; }
.login-card .brand { justify-content: center; }

/* Misc */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline-flex; }
.divider { height: 1px; background: var(--border); margin: 1rem 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.75rem; }
.list-plain li:last-child { border-bottom: none; }
.danger-zone { border-color: #f0b7b7; }
.danger-zone .card-header { color: var(--danger); }
.countdown { min-width: 2ch; display: inline-block; text-align: center; }
.icon-16 { width: 16px; height: 16px; vertical-align: -3px; }
.icon-20 { width: 20px; height: 20px; vertical-align: -4px; }
.text-brand { color: var(--brand-700); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.pages-matrix td:first-child { font-weight: 500; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content, .topbar { padding-left: 1rem; padding-right: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
