/* 9x9 Pane of Glass: one hand-written stylesheet, mobile-first, light/dark. */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #f2f4f8; --border: #e2e6ee;
  --text: #121826; --muted: #5a6478; --faint: #8b93a5;
  --accent: #3b5bdb; --accent-ink: #ffffff; --accent-soft: #e9eefe;
  --side-bg: #0f172a; --side-text: #cbd5e1; --side-muted: #7c8aa3; --side-hover: #1e293b; --side-on: #2b3d6b; --side-on-text: #ffffff;
  --ok: #157f3b; --ok-soft: #e3f4e9; --warn: #9a6200; --warn-soft: #fdf1dc;
  --bad: #c0262d; --bad-soft: #fde6e7; --info-soft: #eef1f6;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .05);
  --side-w: 256px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --surface-2: #1e232b; --border: #2a313b;
    --text: #e8ebf0; --muted: #a3abb8; --faint: #747d8a;
    --accent: #6d95ff; --accent-ink: #0b1020; --accent-soft: #1c2742;
    --side-bg: #0b0f17; --side-hover: #161d2b; --side-on: #22325a;
    --side-bg: #0b0f17; --side-hover: #161d2b; --side-on: #22325a;
    --ok: #4fcf7d; --ok-soft: #14301f; --warn: #f0b44c; --warn-soft: #33270f;
    --bad: #ff6b70; --bad-soft: #3a1618; --info-soft: #1d232c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --surface-2: #1e232b; --border: #2a313b;
  --text: #e8ebf0; --muted: #a3abb8; --faint: #747d8a;
  --accent: #6d95ff; --accent-ink: #0b1020; --accent-soft: #1c2742;
    --side-bg: #0b0f17; --side-hover: #161d2b; --side-on: #22325a;
  --ok: #4fcf7d; --ok-soft: #14301f; --warn: #f0b44c; --warn-soft: #33270f;
  --bad: #ff6b70; --bad-soft: #3a1618; --info-soft: #1d232c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, pre, .mono { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ---- layout: sidebar shell ---- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  background: var(--side-bg); color: var(--side-text); padding: calc(.9rem + env(safe-area-inset-top, 0px)) .7rem 2rem;
  scrollbar-width: thin; scrollbar-color: #334155 transparent;
}
.main-col { margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; padding: .2rem .5rem 1rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand small { color: var(--side-muted); font-weight: 500; font-size: .75rem; white-space: normal; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #4c6ef5, #2b8a9e); color: #fff; font-size: .78rem; font-weight: 800; flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-title { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 700; color: var(--side-muted); padding: 1rem .6rem .35rem; }
.side-link { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; color: var(--side-text); font-weight: 500; font-size: .9rem; cursor: pointer; }
.side-link:hover { background: var(--side-hover); color: #fff; text-decoration: none; }
.side-link.on { background: var(--side-on); color: var(--side-on-text); }
.side-link.sub { padding-left: 2.35rem; font-size: .86rem; }
.side-link .ic { width: 18px; height: 18px; opacity: .85; }
.side-group > summary .chev { margin-left: auto; width: 14px; height: 14px; transition: transform .15s; opacity: .6; }
.side-group[open] > summary .chev { transform: rotate(90deg); }
.side-router { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #1f2937; display: flex; flex-direction: column; gap: 1px; }
.side-router-head { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem .6rem; color: #fff; }
.side-router-head > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-router-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-router-head .small { color: var(--side-muted); }
.side-router-head .dot { margin-left: auto; flex: none; }
.dot.online { color: #40c057; } .dot.offline, .dot.error { color: #fa5252; } .dot.pending { color: #fab005; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); padding: calc(.5rem + env(safe-area-inset-top, 0px)) 1.25rem .5rem;
}
.top-title { font-weight: 600; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.menu-btn { display: none; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; }
.avatar-btn { gap: .45rem; }
.backdrop { display: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.wrap.narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.page-head p { margin: 0; }
.page-head h1 { margin-bottom: .15rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; text-transform: capitalize; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.spacer { flex: 1; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  body.side-open .sidebar { transform: none; }
  body.side-open .backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .45); }
  .main-col { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding-left: .6rem; padding-right: .75rem; }
  .wrap { padding: 1rem .9rem 4rem; }
  .hide-sm { display: none; }
}
@media (max-width: 720px) { .wrap { padding-top: 1rem; } }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: .75rem; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.card-head h2 { margin: 0; }
.stat { padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---- buttons & forms ---- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 38px; padding: .45rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 32px; padding: .25rem .6rem; font-size: .85rem; }
.btn.lg { min-height: 46px; padding: .6rem 1.2rem; font-size: 1rem; }
.btn[disabled], .btn.htmx-request { opacity: .6; pointer-events: none; }
.icon-btn { min-width: 38px; padding: .3rem; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field { margin-bottom: .85rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; /* 16px: no zoom on iOS */
}
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 14px; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.check input { width: 18px; height: 18px; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td.num { font-variant-numeric: tabular-nums; }

/* ---- pills / status ---- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--info-soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.banner { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--info-soft); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }

/* ---- item list (hotspot users etc.): cards on phones, rows on desktop ---- */
.items { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: 0; }
.item .who { min-width: 0; }
.item .who b { font-size: 1rem; }
.item .meta { display: flex; flex-wrap: wrap; gap: .35rem .6rem; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.item .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.item.disabled .who b { color: var(--faint); text-decoration: line-through; }
.item .secret { grid-column: 1 / -1; }
.item .subform { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .item { grid-template-columns: 1fr; }
  .item .acts { justify-content: flex-start; }
  .item .acts .btn.main { flex: 1 1 100%; }
}
.secret-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem .75rem; background: var(--ok-soft); border-radius: var(--radius-sm); color: var(--ok); }
.secret-box code { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: .03em; }

/* menus */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: .3rem; }
.menu-pop .btn { width: 100%; justify-content: flex-start; border: 0; font-weight: 500; }

/* searchbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.toolbar input[type=search] { flex: 1 1 220px; }

/* tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .55rem .9rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* script block */
.script { position: relative; }
.script pre { margin: 0; max-height: 460px; overflow: auto; padding: 1rem; background: #0d1117; color: #d6deeb; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.45; white-space: pre; }
.script .btn { position: absolute; top: .5rem; right: .5rem; }

/* key/value */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.login .card { width: 100%; max-width: 400px; padding: 2rem 1.5rem; text-align: center; }
.login .brand { justify-content: center; font-size: 1.15rem; margin-bottom: 1.25rem; }
.gbtn { width: 100%; }

/* toasts */
#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: .5rem; width: min(92vw, 440px); }
.toast { padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 500; animation: tin .18s ease-out; }
.toast.error { background: var(--bad); color: #fff; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }

/* htmx indicator */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.router-card { display: block; color: inherit; }
.router-card:hover { text-decoration: none; border-color: var(--accent); }
.mod-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }

/* utilities (CSP forbids inline style attributes) */
.mt-1 { margin-top: 1rem; } .mt-05 { margin-top: .5rem; } .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; }
.center { text-align: center; } .pad-lg { padding: 2.5rem 1.5rem; } .menu-info { padding: .4rem .6rem; }
.w-auto { width: auto; } .maxw-sm { max-width: 260px; }

/* enrollment steps */
.steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.steps li { display: flex; align-items: center; gap: .55rem; color: var(--faint); }
.steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.steps li.done { color: var(--ok); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: var(--text); font-weight: 600; }
.steps li.now::before { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.hint-card { border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: var(--radius-sm); padding: .75rem; margin-bottom: .75rem; background: var(--surface); }
.script pre.wrap-pre { white-space: pre-wrap; word-break: break-all; font-size: 13.5px; padding-right: 7.5rem; }
.menu-pop.wide { width: min(92vw, 420px); padding: .75rem; }
.w-full { width: 100%; }
pre.plain { white-space: pre-wrap; font-family: var(--mono); font-size: .8rem; background: var(--surface-2); padding: .5rem; border-radius: var(--radius-sm); }

/* safe mode */
.safe-banner { background: var(--warn-soft); border-bottom: 1px solid var(--warn); }
.safe-banner:empty { display: none; }
.safe-inner { max-width: 1180px; margin: 0 auto; padding: .5rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.safe-inner .spacer { flex: 1; }
.safe-list ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.safe-list summary { cursor: pointer; }
.btn.warn-btn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }

/* ---- settings area ---- */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat h2 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.cat h2 .ic { color: var(--accent); }
.cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.cat li a { display: inline-block; padding: .15rem 0; }
.banner.info { background: var(--accent-soft); color: var(--text); }
.card-head .search { max-width: 360px; min-height: 36px; }
.card-foot { padding: .6rem 1rem; border-top: 1px solid var(--border); }
table.data th { white-space: nowrap; }
table.data td.cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
table.data td.cell:hover { white-space: normal; overflow-wrap: anywhere; }
table.data tr.is-disabled td.cell { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 50%, transparent); }
table.data tr.is-dynamic td.cell { font-style: italic; }
.w-1 { width: 1%; }
.flags { padding-right: 0; }
.flag { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; margin-right: 2px; border-radius: 4px; font-size: .68rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.flag.lock { background: transparent; }
.drawer:empty { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .4); display: flex; justify-content: flex-end; }
.drawer-panel { width: min(100vw, 520px); height: 100%; background: var(--surface); box-shadow: -10px 0 40px rgba(0,0,0,.2); display: flex; flex-direction: column; animation: din .18s ease-out; }
@keyframes din { from { transform: translateX(30px); opacity: .4; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(.9rem + env(safe-area-inset-top, 0px)) 1.25rem .9rem; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; }
.drawer-panel > .banner { margin: 1rem 1.25rem 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; }
.drawer-body .field label { font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--muted); }
.drawer-foot { position: sticky; bottom: 0; margin: auto -1.25rem -1rem; padding: .8rem 1.25rem calc(.8rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border); display: flex; gap: .5rem; }
.ro-value { padding: .45rem .65rem; background: var(--surface-2); border-radius: var(--radius-sm); overflow-wrap: anywhere; font-size: .86rem; }
.extra { margin: .25rem 0 1rem; }
.extra summary { color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.w-40 { flex: 0 0 40%; } .w-55 { flex: 1 1 55%; } .mb-05 { margin-bottom: .5rem; }
.maxw-form { max-width: 900px; }

/* ---- groups / access matrix ---- */
.matrix { width: 100%; }
.matrix th, .matrix td { padding: .35rem .6rem; }
.matrix td.c { text-align: center; width: 70px; }
.matrix tr.cat-row td { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; }
.chip.w { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }
.sticky-save { position: sticky; bottom: 0; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 35%); }
hr { border: 0; border-top: 1px solid var(--border); margin: .75rem 0; }
.menu-pop hr { margin: .5rem 0; }
