/* Panel UI — warm paper surfaces, deep-green brand, brass accent; scanned like a ledger */
:root {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --sunk: #faf8f3;
  --ink: #1b2a23;
  --muted: #5f6b65;
  --line: #e4dfd2;
  --brand: #1d3a2e;
  --brand-2: #2a5242;
  --brass: #b8955a;
  --brass-soft: #efe4cc;
  --good: #2f7a4f; --good-bg: #e5f2ea;
  --warn: #9a6512; --warn-bg: #f8eedb;
  --bad: #ad3f2c;  --bad-bg: #f7e4df;
  --info: #2d5f86; --info-bg: #e3edf5;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--ui); padding-top: env(safe-area-inset-top, 0px); }
body.no-scroll { overflow: hidden; }
a { color: var(--brand); }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--brand); color: #f3efe4; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--brand); z-index: 21; }
.topbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; font: italic 500 24px/1 var(--display); color: #f3efe4; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 27px; flex: none; display: block; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; color: rgba(243,239,228,.72); padding: 8px 13px; border-radius: 999px; font: 500 14px/1 var(--ui); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.tab.on { background: #f3efe4; color: var(--brand); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(243,239,228,.8); white-space: nowrap; }
.who button { border: 1px solid rgba(243,239,228,.35); background: transparent; color: #f3efe4; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.who .em { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- layout ---------- */
.page { max-width: 1180px; margin: 0 auto; padding-block: 26px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 500 38px/1.05 var(--display); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { margin: 6px 0 0; font: 500 26px/1.1 var(--display); }
.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr; } .page-head h1 { font-size: 32px; } .who .em { display: none; } .brand > span:last-child { display: none; } .topbar-in { gap: 10px; } }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h3 { margin: 0 0 12px; font: 500 22px/1.15 var(--display); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.stat .k { font: 500 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 500 34px/1.05 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.stat .s { font-size: 13px; color: var(--muted); }
.stat.accent { background: var(--brand); border-color: var(--brand); color: #f3efe4; }
.stat.accent .k, .stat.accent .s { color: rgba(243,239,228,.75); }

/* ---------- buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: #f3efe4; padding: 10px 16px; border-radius: 999px; font: 500 14px/1 var(--ui); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.btn:hover { background: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: rgba(29,58,46,.06); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.link { border: 0; background: none; color: var(--brand); padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 500 12px/1.2 var(--ui); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--good); background: var(--good-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.info { color: var(--info); background: var(--info-bg); }
.pill.muted { color: var(--muted); background: #eeebe3; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 11px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { display: block; color: var(--muted); font-size: 13px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--sunk); }
.note-cell { max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 500 22px/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }

/* ---------- invitation cards ---------- */
.inv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.inv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.inv-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inv h3 { margin: 0; font: italic 500 26px/1.1 var(--display); overflow-wrap: anywhere; }
.inv .meta { color: var(--muted); font-size: 14px; display: grid; gap: 2px; }
.inv .counts { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.inv .counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.inv .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- link boxes ---------- */
.linkbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--sunk); display: grid; gap: 8px; min-width: 0; }
.linkbox .lb-k { font: 500 11px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.linkbox .lb-t { font: 500 17px/1.3 var(--ui); }
.linkbox .lb-d { font-size: 13px; color: var(--muted); }
.linkbox .url { display: block; padding: 9px 11px; border: 1px dashed #cfc7b3; border-radius: 8px; background: #fff; font: 400 13px/1.35 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.linkbox .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form legend { padding: 0 6px; font: 500 20px/1 var(--display); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span { font: 500 12px/1.3 var(--ui); letter-spacing: .06em; color: var(--muted); }
.f small { color: var(--muted); font-size: 12px; }
.f input[type=text], .f input[type=email], .f input[type=password], .f input[type=date], .f input[type=time], .f input[type=number], .f input[type=url], .f input[type=search], .f select, .f textarea, .input {
  width: 100%; padding: 10px 12px; border: 1px solid #d6d0c1; border-radius: 8px; background: #fff; min-height: 42px;
}
.f textarea { resize: vertical; min-height: 92px; }
.f input:focus, .f select:focus, .f textarea:focus, .input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,149,90,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.slug-row { display: flex; align-items: center; border: 1px solid #d6d0c1; border-radius: 8px; background: #fff; overflow: hidden; }
.slug-row span { padding: 0 2px 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.slug-row input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; }
.rep { display: grid; gap: 8px; }
.rep-row { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.color { position: relative; width: 44px; height: 44px; }
.color input { width: 44px; height: 44px; border: 1px solid #d6d0c1; border-radius: 50%; padding: 0; background: none; cursor: pointer; }
.color input::-webkit-color-swatch-wrapper { padding: 3px; }
.color input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 12px; line-height: 1; cursor: pointer; padding: 0; color: var(--muted); }
.form-msg { color: var(--bad); font-size: 14px; min-height: 1.2em; margin: 0; }
.music-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.music-now audio { height: 36px; max-width: 100%; }

/* ---------- filters ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--brand); color: #f3efe4; }
.seg button b { font-variant-numeric: tabular-nums; font-weight: 500; margin-left: 4px; }
.search { min-width: 200px; flex: 1; max-width: 320px; }

/* ---------- wishes ---------- */
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wish { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.wish.hidden-wish { background: #f3f0e8; border-style: dashed; }
.wish p { margin: 0; font: italic 400 19px/1.45 var(--display); white-space: pre-line; overflow-wrap: anywhere; }
.wish .wf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wish .wf b { color: var(--ink); font-weight: 500; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(18,30,24,.45); display: grid; place-items: start center; overflow-y: auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: 100%; max-width: 520px; margin-block: 4vh; background: var(--bg); border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); display: grid; gap: 16px; }
.modal.wide { max-width: 860px; }
.modal h2, .modal h3 { margin: 0; font: 500 28px/1.1 var(--display); }
.modal h3 { font-size: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; position: sticky; bottom: -22px; background: var(--bg); padding-block: 12px; margin-bottom: -10px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .3s ease, transform .3s ease; }
.toast.good { background: var(--good); }
.toast.bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- auth page ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 0%, #1d4734 0%, #0f2a20 60%, #0a1f17 100%); padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: 100%; max-width: 420px; background: #f3efe4; border-radius: 6px; padding: 38px 28px 30px; position: relative; display: grid; gap: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.auth-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--brass); pointer-events: none; border-radius: 3px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--brand); font: 400 14px/1 var(--ui); }
.auth-logo span { letter-spacing: .42em; margin-right: -.42em; }
.auth-card .brand-mark { width: 46px; height: 48px; }
.auth-card h1 { margin: 0; text-align: center; font: italic 500 34px/1.1 var(--display); }
.auth-card p.lead { margin: -8px 0 0; text-align: center; color: var(--muted); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d6d0c1; border-radius: 999px; padding: 3px; position: relative; z-index: 1; }
.auth-switch button { border: 0; background: transparent; padding: 9px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; }
.auth-switch button.on { background: var(--brand); color: #f3efe4; }
.auth-card form { display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-card .btn { width: 100%; padding: 13px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.notice.good { background: var(--good-bg); color: var(--good); }

.loading { padding: 50px 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- theme picker ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-opt { position: relative; display: grid; gap: 8px; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-prev { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s ease, border-color .15s ease; }
.tp-card { width: 56%; height: 70%; border: 1px solid; border-radius: 2px; display: grid; place-items: center; align-content: center; gap: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.tp-card i { font-style: italic; font-size: 17px; line-height: 1; }
.tp-card b { width: 18px; height: 2px; border-radius: 2px; }
.theme-name { font-weight: 500; font-size: 14px; display: grid; }
.theme-name small { font-weight: 400; font-size: 12px; color: var(--muted); }
.theme-opt input:checked + .theme-prev { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,58,46,.18); }
.theme-opt input:focus-visible + .theme-prev { outline: 2px solid var(--brass); outline-offset: 2px; }

.auth-back { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); color: #f3efe4; text-decoration: none; font-size: 14px; opacity: .85; z-index: 2; }
.auth-back:hover { opacity: 1; }

.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-color: var(--brass); background: #fffaf0; }
.alert-row b { font-weight: 500; }
.kvs { display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14px; align-items: baseline; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- server-rendered (MVC) additions ---------- */
.seg a { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.seg a.on { background: var(--brand); color: #f3efe4; }
.seg a b { font-variant-numeric: tabular-nums; font-weight: 500; margin-left: 4px; }
.who a { border: 1px solid rgba(243,239,228,.35); color: #f3efe4; border-radius: 999px; padding: 6px 12px; font-size: 13px; text-decoration: none; }
.search-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; }
.row-actions form, .actions form { display: inline; margin: 0; }
form.panel.form { display: grid; gap: 16px; }
section.panel + section.panel, form.panel + section.panel, section.panel + form { margin-top: 16px; }
details.auth-foot summary { list-style: none; cursor: pointer; }
details.auth-foot summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- admin: sidebar ---------- */
.admin-shell { --side-w: 236px; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: var(--side-w); display: flex; flex-direction: column; gap: 22px; background: var(--brand); color: #f3efe4; padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.sidebar > .brand { padding: 0 8px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; color: rgba(243,239,228,.74); text-decoration: none; font: 500 14.5px/1.2 var(--ui); }
.side-nav a svg { flex: none; opacity: .85; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-nav a.on { background: #f3efe4; color: var(--brand); }
.side-nav a.on svg { opacity: 1; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(243,239,228,.14); font-size: 13px; color: rgba(243,239,228,.8); }
.side-foot .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot-links { display: flex; gap: 8px; }
.side-foot-links form { margin: 0; }
.side-foot-links a, .side-foot-links button { display: inline-block; border: 1px solid rgba(243,239,228,.35); background: transparent; color: #f3efe4; border-radius: 999px; padding: 6px 12px; font-size: 13px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.side-foot-links a:hover, .side-foot-links button:hover { background: rgba(255,255,255,.08); }
.admin-shell .page { margin-left: var(--side-w); margin-right: 0; max-width: none; grid-template-columns: minmax(0, 1180px); padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.side-top, .side-backdrop { display: none; }
@media (max-width: 900px) {
  .side-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--brand); color: #f3efe4; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .side-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(243,239,228,.3); border-radius: 8px; background: transparent; color: #f3efe4; cursor: pointer; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .side-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(15,25,20,.45); }
  .admin-shell .page { margin-left: 0; grid-template-columns: minmax(0, 1fr); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
.sidebar > .brand > span:last-child { display: inline; }
