/* GateKeep. Boom-barrier yellow on gatepost ink, built for sunlight at the gate and dark gatehouses at night. */

:root {
  --ink: #10262b;
  --ink-2: #3a5157;
  --ink-3: #62777c;
  --paper: #e9edec;
  --card: #ffffff;
  --card-2: #f4f7f6;
  --line: #cbd5d3;
  --line-2: #dde4e2;
  --boom: #ffc61a;
  --boom-press: #e8b100;
  --on-boom: #10262b;
  --go: #14804a;
  --go-bg: #dcf2e5;
  --go-ink: #0d5c34;
  --stop: #c8262f;
  --stop-bg: #fbe1e3;
  --stop-ink: #8f1a21;
  --warn-bg: #fff0c9;
  --warn-ink: #7a4300;
  --info-bg: #dbe9f6;
  --info-ink: #1d4d78;
  --muted-bg: #e3e9e8;
  --focus: #2f6fde;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 10px;
  --shadow: 0 8px 24px -10px rgba(16, 38, 43, 0.45);
  --sheet-bg: var(--card);
}

/* Dark palette. Follows the device unless the person picked Light or Dark (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e8f0ef;
    --ink-2: #b7c8c6;
    --ink-3: #8ea3a1;
    --paper: #0b191c;
    --card: #132a2e;
    --card-2: #183238;
    --line: #2a4448;
    --line-2: #21393d;
    --go: #1fa462;
    --go-bg: #143c28;
    --go-ink: #7fe0ac;
    --stop: #e04a53;
    --stop-bg: #431a1e;
    --stop-ink: #ff9aa0;
    --warn-bg: #3f3110;
    --warn-ink: #ffd27a;
    --info-bg: #17324a;
    --info-ink: #9cc9f0;
    --muted-bg: #1d3639;
    --focus: #7fb0ff;
    --shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme='dark'] {
  --ink: #e8f0ef;
  --ink-2: #b7c8c6;
  --ink-3: #8ea3a1;
  --paper: #0b191c;
  --card: #132a2e;
  --card-2: #183238;
  --line: #2a4448;
  --line-2: #21393d;
  --go: #1fa462;
  --go-bg: #143c28;
  --go-ink: #7fe0ac;
  --stop: #e04a53;
  --stop-bg: #431a1e;
  --stop-ink: #ff9aa0;
  --warn-bg: #3f3110;
  --warn-ink: #ffd27a;
  --info-bg: #17324a;
  --info-ink: #9cc9f0;
  --muted-bg: #1d3639;
  --focus: #7fb0ff;
  --shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
}

html[data-theme='light'] { color-scheme: light; }
html[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; }
/* The `hidden` attribute must win over any element's own `display` (flex/grid/etc.) -- without
   this, `.stack[hidden]`, `.grid2[hidden]` and similar stay visible, since an author rule like
   `.stack { display: flex }` beats the browser's own default `[hidden] { display: none }`. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent;
}
body.noscroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 28px/1.15 var(--display); letter-spacing: -0.01em; }
h2 { font: 700 20px/1.2 var(--display); }
h3.group { font: 600 14px/1 var(--body); color: var(--ink-3); margin: 26px 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; display: flex; justify-content: center; margin-top: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.icon { flex: none; }

/* ------------------------------------------------------------ app shell */

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--ink); color: #e8f0ef;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .topbar { background: #0f2226; border-bottom: 1px solid var(--line-2); } }
:root[data-theme='dark'] .topbar { background: #0f2226; border-bottom: 1px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { font: 800 19px/1 var(--display); letter-spacing: -0.01em; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text .sub { font-size: 12px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.sheet .icon-btn:hover { background: var(--card-2); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: inherit; font-size: 13px; font-weight: 600;
}
.login .lang-btn { border-color: var(--line); color: var(--ink); }
.theme-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); }
.login .theme-btn { border-color: var(--line); color: var(--ink); }
.login .theme-btn:hover { background: var(--card-2); }
.login-tools { display: flex; align-items: center; gap: 6px; }

.content { width: 100%; max-width: 720px; margin: 0 auto; padding: 18px 16px calc(100px + env(safe-area-inset-bottom)); flex: 1; }
.content.wide { max-width: 1180px; padding-bottom: 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; background: transparent; border: 0; color: var(--ink-3); cursor: pointer; font-size: 12.5px; font-weight: 600; position: relative; }
.tab.on { color: var(--ink); }
.tab.on::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--boom); }
.tab-icon { position: relative; display: grid; place-items: center; }
.badge {
  position: absolute; top: -6px; right: -12px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--stop); color: #fff; font: 700 12px/19px var(--body); text-align: center;
}
@media (min-width: 760px) {
  .tabbar { position: sticky; bottom: auto; top: 58px; max-width: 720px; margin: 0 auto; width: 100%; border: 1px solid var(--line); border-radius: 12px; order: 1; margin-top: 12px; }
  .app > .content { order: 2; padding-bottom: 40px; }
  .tab.on::before { top: auto; bottom: 0; border-radius: 4px 4px 0 0; }
}

/* ------------------------------------------------------------ buttons & fields */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r);
  border: 2px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--card); color: var(--ink); white-space: nowrap;
  transition: transform 0.06s ease, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.loading .icon { visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.primary { background: var(--boom); color: var(--on-boom); }
.btn.primary:hover { background: var(--boom-press); }
.btn.go { background: var(--go); color: #fff; }
.btn.go.loading::after, .btn.stop.loading::after { border-color: #fff; border-right-color: transparent; }
.btn.stop { background: var(--stop); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--card-2); }
.btn.ghost.light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn.ghost.light:hover { background: rgba(255, 255, 255, 0.14); }
.btn.danger { background: var(--stop); color: #fff; }
.btn.danger-ghost { background: transparent; border-color: var(--stop); color: var(--stop-ink); }
.btn.text { background: transparent; min-height: 40px; padding: 0 10px; color: var(--ink-2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.xl { min-height: 58px; font-size: 18px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.chip-btn { border: 1px solid var(--line); background: var(--card); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; }
.chip-btn:hover { background: var(--card-2); }

/* "More options" disclosure toggle (e.g. the new-invite form): a plain, large tap target so it
   reads clearly even for people who don't use apps much, with a chevron that flips when open. */
.more-toggle { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.more-toggle .icon { transition: transform 0.15s ease; }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2.tight { gap: 10px; align-items: end; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.two { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.actions.wrap { flex-wrap: wrap; justify-content: flex-start; }
.actions.between { justify-content: space-between; align-items: center; }
.actions.inline { margin: 0; }
.actions .btn.grow { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--ink-3); }
input[type='text'], input[type='tel'], input[type='number'], input[type='search'], input[type='date'], input[type='time'], input[type='datetime-local'], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink);
}
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--boom) 70%, transparent); outline-offset: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--go); flex: none; }
.check.setting { padding: 10px 0; }
.check.setting span { display: flex; flex-direction: column; }
.check.setting em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.checklist { max-height: 200px; overflow: auto; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; background: var(--card); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 11px 8px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }
.daypick { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.daypick button { width: 46px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.daypick button.on { background: var(--boom); border-color: var(--ink); color: var(--on-boom); }

/* ------------------------------------------------------------ chips, pills, lists */

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.chip.go { background: var(--go-bg); color: var(--go-ink); }
.chip.stop { background: var(--stop-bg); color: var(--stop-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.info { background: var(--info-bg); color: var(--info-ink); }
.chip.muted { background: var(--muted-bg); color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; width: fit-content; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.go { background: var(--go-bg); color: var(--go-ink); }
.pill.stop { background: var(--stop-bg); color: var(--stop-ink); }
.pill.muted { background: var(--muted-bg); color: var(--ink-3); }
.pill.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--boom) 45%, transparent); } }

.list { display: flex; flex-direction: column; gap: 10px; }
.list.dim { opacity: 0.8; }
.row-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; color: inherit;
}
button.row-card:hover { border-color: var(--ink-3); }
.row-card.static { cursor: default; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main strong { font-size: 17px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.code-sm { font: 800 18px/1 var(--display); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

.empty { padding: 36px 20px; text-align: center; background: var(--card); border: 2px dashed var(--line); border-radius: 14px; color: var(--ink-2); }
.empty strong { display: block; font: 700 18px/1.3 var(--display); color: var(--ink); }
.empty p { margin-top: 6px; }
.skeleton { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--card) 0, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.small { height: 64px; margin-top: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--muted-bg); display: grid; place-items: center; overflow: hidden; color: var(--ink-3); flex: none; }
.thumb.big { width: 64px; height: 64px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ approval cards */

.ask { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.ask.compact { gap: 10px; }
.ask-top { display: flex; gap: 14px; align-items: center; }
.ask-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ask-info strong { font: 700 19px/1.2 var(--display); }
.ask .actions { margin: 0; }

/* ------------------------------------------------------------ sheets, toasts */

.layer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 20, 23, 0.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-height: 94dvh; overflow: auto; background: var(--card); color: var(--ink); border-radius: 20px 20px 0 0; animation: rise 0.18s ease-out; overscroll-behavior: contain; }
.sheet.wide { max-width: 760px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 6px 20px; position: sticky; top: 0; background: var(--card); z-index: 1; }
.sheet-head .icon-btn { color: var(--ink); }
.sheet-body { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) {
  .layer { align-items: center; }
  .sheet { max-width: 520px; border-radius: 20px; }
  .sheet.wide { max-width: 760px; }
}
.state-line { margin: 12px 0; }

.toast {
  position: fixed; left: 50%; top: calc(68px + env(safe-area-inset-top)); transform: translate(-50%, -16px); z-index: 80; max-width: min(92vw, 460px);
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--stop); color: #fff; }

/* ------------------------------------------------------------ the gate pass */

.pass { position: relative; background: var(--boom); color: #10262b; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.pass-tape { height: 14px; background: repeating-linear-gradient(-45deg, #10262b 0 10px, transparent 10px 20px); }
.pass-top { padding: 16px 20px 16px; }
.pass-who strong { display: block; font: 700 21px/1.2 var(--display); }
.pass-who span { font-size: 14px; opacity: 0.8; }
.pass-code { margin-top: 12px; font: 800 clamp(44px, 15vw, 64px)/1 var(--display); letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.pass-tear { position: relative; height: 0; margin: 0 16px; border-top: 2px dashed rgba(16, 38, 43, 0.5); }
.pass-tear::before, .pass-tear::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sheet-bg); }
.pass-tear::before { left: -28px; }
.pass-tear::after { right: -28px; }
.pass-bottom { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 16px 20px 20px; }
.pass-info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; min-width: 0; }
.pass-line.note { font-weight: 500; opacity: 0.85; }
.pass-qr { background: #fff; padding: 7px; border-radius: 10px; line-height: 0; flex: none; }
.pass-qr img, .pass-qr canvas { width: 100px !important; height: 100px !important; display: block; }

/* exit code ticket + inside-now list */
.pass.exit { background: #c9f0d8; }
.pass.exit .pass-tape { background: repeating-linear-gradient(-45deg, #0b5a2b 0 10px, transparent 10px 20px); }
.pass-kicker { margin-top: 14px; font: 700 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.pass.exit .pass-code { margin-top: 6px; }
.exit-slot { display: flex; flex-direction: column; gap: 16px; }
.exit-intro strong { font: 700 20px/1.2 var(--display); }
.inside-now .list { margin-bottom: 4px; }

/* ------------------------------------------------------------ guard */

.gate { display: flex; flex-direction: column; gap: 14px; }
.gate-top { display: flex; justify-content: flex-end; }
.gate-pick { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.gate-select { width: auto; min-height: 38px; padding: 4px 10px; }
.code-label { font: 700 15px/1.2 var(--body); color: var(--ink-2); }
.code-input {
  width: 100%; padding: 14px 10px; text-align: center; font: 800 clamp(38px, 12vw, 54px)/1.05 var(--display) !important; letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums; border: 3px solid var(--ink) !important; border-radius: 16px !important; background: var(--card); color: var(--ink);
}
.code-input.small { font-size: 34px !important; padding: 10px; }
.code-input::placeholder { color: var(--line); }
.gate-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gate-actions:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
.gate-foot { display: flex; justify-content: center; margin-top: 12px; }
.statusbar { position: sticky; top: 58px; z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px; background: var(--card); border-bottom: 1px solid var(--line-2); }
.estate-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.net i { width: 9px; height: 9px; border-radius: 50%; background: #5ee29b; }
.net.off i { background: var(--boom); }
.net b { font-weight: 700; }
.offline-banner { background: var(--boom); color: #10262b; padding: 10px 16px; font-size: 14px; font-weight: 600; text-align: center; position: sticky; top: 103px; z-index: 18; }
.offline-note { margin-top: 8px; font-size: 13px; color: var(--ink-3); text-align: center; }

.result { border-radius: 18px; padding: 18px; margin-top: 4px; display: flex; flex-direction: column; gap: 12px; scroll-margin-bottom: 110px; }
.result h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.result .who { display: flex; flex-direction: column; }
.result .who strong { font: 800 30px/1.1 var(--display); letter-spacing: -0.01em; }
.result .who span { opacity: 0.9; font-size: 16px; }
.result.go { background: var(--go); color: #fff; }
.result.stop { background: var(--stop); color: #fff; }
.result.warn { background: var(--warn-bg); color: var(--warn-ink); border: 2px solid var(--boom); }
.result.info { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .result.info { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); } }
:root[data-theme='dark'] .result.info { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.result.flash { text-align: center; }
.result.flash h2 { justify-content: center; }
.result .facts { margin: 0; }
.result.go .facts dt { color: rgba(255, 255, 255, 0.75); }
.result.go .field-label, .result.go .hint { color: rgba(255, 255, 255, 0.9); }
.result .btn.primary { color: var(--on-boom); }
.result .btn.primary.loading::after { border-color: #10262b; border-right-color: transparent; }
.result.go input[type='text'] { border-color: transparent; color: #10262b; background: #fff; }
.result.go .photo-btn { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.result.go .photo-btn:hover { background: rgba(255, 255, 255, 0.14); }
.result .thumb { background: rgba(255, 255, 255, 0.25); color: #fff; }
.stop-tape { height: 14px; margin: -18px -18px 4px; border-radius: 18px 18px 0 0; background: repeating-linear-gradient(-45deg, #fff 0 10px, transparent 10px 20px); }
.reason { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.warn-box { padding: 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); display: flex; flex-direction: column; gap: 8px; }
.warn-box .check input { accent-color: var(--warn-ink); }
.photo-btn { justify-content: flex-start; min-height: 68px; padding: 2px 10px 2px 2px; width: 100%; }
.scan-video { width: 100%; border-radius: 14px; background: #000; aspect-ratio: 1; object-fit: cover; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); margin-bottom: 12px; }
.search input { border: 0 !important; outline: 0 !important; min-height: 44px; background: transparent !important; padding: 0 !important; }

dl.facts { display: grid; gap: 8px; margin: 12px 0 0; }
dl.facts > div { display: flex; justify-content: space-between; gap: 16px; }
dl.facts dt { color: var(--ink-3); font-size: 14px; flex: none; }
dl.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------ login */

.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.login-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1100px; width: 100%; margin: 0 auto; }
.login-top .brand { color: var(--ink); }
.login-grid { display: grid; gap: 28px; padding: 8px 20px 40px; max-width: 1100px; width: 100%; margin: 0 auto; align-items: center; flex: 1; }
@media (min-width: 900px) { .login-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.login-hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; max-width: 14ch; }
.login-hero p { margin: 14px 0 26px; max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.sample { --sheet-bg: var(--paper); max-width: 380px; transform: rotate(-2deg); }
.sample .pass-qr { display: none; }
.login-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); max-width: 440px; width: 100%; justify-self: center; }
.demo { padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.devcode { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; flex-wrap: wrap; }
.devcode b { font: 800 20px/1 var(--display); letter-spacing: 0.1em; }

/* ------------------------------------------------------------ admin */

.admin-body { display: grid; grid-template-columns: 1fr; flex: 1; }
.sidenav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 58px; z-index: 15; scrollbar-width: none; }
.side { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.side.on { background: var(--boom); color: var(--on-boom); }
.side:not(.on):hover { background: var(--card-2); }
@media (min-width: 900px) {
  .admin-body { grid-template-columns: 230px 1fr; }
  .sidenav { flex-direction: column; overflow: visible; padding: 16px 12px; border-bottom: 0; border-right: 1px solid var(--line); top: 58px; align-self: start; height: calc(100dvh - 58px); }
  .side { padding: 11px 14px; }
  .app.admin > .admin-body > .content { padding-top: 28px; }
}
.app.admin .content { padding-bottom: 60px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 0 -1px -1px 0; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .stat:last-child:nth-child(odd) { grid-column: auto; } }
.stat b { font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.stat.warn { background: var(--warn-bg); } .stat.warn b, .stat.warn span { color: var(--warn-ink); }
.stat.stop { background: var(--stop-bg); } .stat.stop b, .stat.stop span { color: var(--stop-ink); }
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; margin-bottom: 18px; }
.panel > h2 { margin-bottom: 14px; }
.panel.stack > h2 { margin-bottom: 0; }
.panel .tablewrap { margin: 0 -6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; max-height: 160px; overflow: auto; }
ul.plain { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.plain li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.filters .search { margin: 0; }
@media (min-width: 900px) { .filters { grid-template-columns: 1.5fr 1fr 0.7fr 0.7fr auto; align-items: center; } }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border: 0; }
.feed time { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; width: 44px; }
.feed li.go span { color: var(--go-ink); } .feed li.stop span { color: var(--stop-ink); font-weight: 700; } .feed li.warn span { color: var(--warn-ink); }
.photo-frame { display: grid; place-items: center; min-height: 140px; max-height: 300px; overflow: hidden; border-radius: 14px; background: var(--muted-bg); }
.photo-frame img { width: 100%; max-height: 300px; object-fit: contain; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line-2); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--card-2); }
@media (max-width: 760px) {
  .tablewrap { overflow: visible; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 10px; padding: 6px 12px; background: var(--card); }
  .panel tr { background: var(--card-2); }
  td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 6px 0; text-align: right; }
  td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; font-weight: 700; text-align: left; flex: none; }
  td:empty { display: none; }
  td[data-label='']::before { content: none; }
  td[data-label=''] { justify-content: flex-end; }
}

/* The receipt keeps a real table on phones (the card layout above is for the admin lists). */
@media (max-width: 760px) {
  .rc-items { display: table; }
  .rc-items thead { display: table-header-group; }
  .rc-items tbody { display: table-row-group; }
  .rc-items tfoot { display: table-footer-group; }
  .rc-items tr { display: table-row; border: 0; border-radius: 0; margin: 0; padding: 0; background: none; }
  .rc-items th, .rc-items td { display: table-cell; padding: 10px; border: 0; border-bottom: 1px solid #dde4e2; text-align: left; }
  .rc-items .num { text-align: right; }
  .rc-items td::before { content: none; }
  .rc-items tfoot td { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ WhatsApp */

.wa-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line-2); border-left: 6px solid var(--go); border-radius: 14px; }
.wa-card strong { font: 700 18px/1.2 var(--display); }
.wa-card p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.wa-card p.small { margin-top: 6px; font-size: 13px; }
.wa-card.on { background: var(--go-bg); border-color: var(--go); }
.wa-card.on p { color: var(--go-ink); }
.wa-slot { margin-top: 22px; }
@media (max-width: 520px) { .wa-card { flex-direction: column; align-items: stretch; } .wa-card .btn { width: 100%; } }
.chip-row { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.block-hint { display: block; font-style: normal; }

/* ------------------------------------------------------------ self-registration */

.register-cta { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.code-plain { font: 800 22px/1 var(--display) !important; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.estate-ok { display: flex; align-items: center; gap: 4px; color: var(--go-ink); font-weight: 700; }
.estate-bad { color: var(--stop-ink); font-weight: 700; }
.center-stack { align-items: center; text-align: center; }
.center-stack .btn { align-self: stretch; }
.big-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--go); color: #fff; }
.big-check.wait { background: var(--boom); color: var(--on-boom); }
.big-check.no { background: var(--stop); }
.reason-box { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.join { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.join-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }
.join-main > h2 { margin: 0; }
.join-code { width: fit-content; padding: 8px 18px; border-radius: 12px; background: var(--boom); color: var(--on-boom); font: 800 34px/1.1 var(--display); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.join-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs-row { max-width: 340px; margin-bottom: 14px; }
.reg-note { margin-top: 4px; font-size: 13px; color: var(--ink-3); font-style: italic; }
.badge.inline { position: static; margin-left: auto; }
@media (max-width: 899px) { .login.compact .login-hero { display: none; } .login.compact .login-grid { align-content: start; } }

/* ------------------------------------------------------------ emergency alerts */

/* The resident's Alert button: always in reach, above the tab bar on phones. */
.alert-fab {
  position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border: 3px solid #fff; border-radius: 999px;
  background: var(--stop); color: #fff; font: 800 18px/1 var(--display); letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(200, 38, 47, 0.75), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.alert-fab:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .alert-fab { border-color: var(--card); } }
:root[data-theme='dark'] .alert-fab { border-color: var(--card); }
@media (min-width: 760px) { .alert-fab { bottom: 28px; right: 28px; } }

.alert-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.alert-kinds button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 8px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; text-align: center;
}
.alert-kinds button.on { border-color: var(--stop); background: var(--stop-bg); color: var(--stop-ink); }

/* Status card the resident sees while an alert is open. */
.alert-mine-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.alert-mine { border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--stop); background: var(--stop-bg); color: var(--stop-ink); }
.alert-mine.ack { border-color: var(--go); background: var(--go-bg); color: var(--go-ink); }
.alert-mine .am-top { display: flex; align-items: center; gap: 10px; }
.alert-mine .am-top div { display: flex; flex-direction: column; }
.alert-mine .am-top span { font-size: 13px; opacity: 0.85; }
.alert-mine p { font-weight: 600; }
.alert-mine .btn { align-self: flex-start; }

/* Dues-reset countdown shown on the resident home screen (passes tab). */
.dues-countdown { border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 2px solid var(--info-ink); background: var(--info-bg); color: var(--info-ink); margin-bottom: 16px; }
.dues-countdown > svg { flex-shrink: 0; }
.dues-countdown > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dues-countdown p { font-weight: 600; margin: 0; }
.dues-countdown .btn { align-self: center; flex-shrink: 0; }
.dues-countdown.warn { border-color: var(--warn-ink); background: var(--warn-bg); color: var(--warn-ink); }
.dues-countdown.stop { border-color: var(--stop); background: var(--stop-bg); color: var(--stop-ink); }
.dues-countdown.go { border-color: var(--go); background: var(--go-bg); color: var(--go-ink); }

/* The banner guards and admins cannot miss. */
.alert-bar { position: sticky; top: 103px; z-index: 18; display: flex; flex-direction: column; max-height: 62dvh; overflow: auto; }
.app.admin > .alert-bar { top: 58px; }
.alert-bar[hidden] { display: none; }
.alert-live { padding: 14px 16px; color: #fff; display: flex; flex-direction: column; gap: 10px; border-bottom: 2px solid rgba(255, 255, 255, 0.35); }
.alert-live.open { background: var(--stop); }
.alert-live.ack { background: #8a4b00; }
.alert-live .al-top { display: flex; align-items: center; gap: 12px; }
.alert-live .al-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex: none; }
.alert-live .al-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.alert-live .al-title strong { font: 800 19px/1.2 var(--display); }
.alert-live .al-title span { font-size: 14px; opacity: 0.92; }
.alert-live .al-note { font-weight: 600; }
.alert-live .actions { margin: 0; justify-content: flex-start; }
.alert-live .pill.new { background: #fff; color: var(--stop-ink); }
.alert-live .pill.responding { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn.light:hover { background: rgba(255, 255, 255, 0.16); }
.btn.light.solid { background: #fff; color: var(--stop-ink); border-color: #fff; }
.btn.light.solid:hover { background: #f2f2f2; }
.btn.light.solid.loading::after { border-color: var(--stop-ink); border-right-color: transparent; }

/* ------------------------------------------------------------ estate dues and receipts */

.amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.unit-pick { margin-bottom: 14px; max-width: 340px; }
.dues-pick { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); margin-top: 6px; }
.pay-total { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 4px; color: var(--ink-2); }
.proof-box { margin-top: 6px; }
.proof-box img { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); object-fit: contain; }

/* The receipt is always dark-on-white, so it prints and screenshots the same in any theme. */
.receipt { background: #fff; color: #10262b; border: 1px solid #cbd5d3; border-radius: 14px; overflow: hidden; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; background: #10262b; color: #fff; border-bottom: 5px solid #ffc61a; }
.rc-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-head strong { font: 800 20px/1.15 var(--display); }
.rc-head span { font-size: 13px; color: #b7c8c6; }
.rc-no { text-align: right; align-items: flex-end; }
.rc-no span { color: #ffc61a; font-weight: 700; letter-spacing: 0.04em; }
.rc-no strong { font-size: 16px; }
.rc-body { position: relative; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.rc-stamp { position: absolute; top: 14px; right: 18px; border: 3px solid #14804a; color: #14804a; font: 800 20px/1 var(--display); padding: 7px 14px; border-radius: 6px; transform: rotate(-6deg); letter-spacing: 0.06em; }
.receipt dl { margin: 0; display: grid; gap: 12px; }
.receipt dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #62777c; }
.receipt dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.rc-who dd { font-size: 17px; font-weight: 800; }
.rc-meta { grid-template-columns: 1fr 1fr; padding-top: 12px; border-top: 1px solid #dde4e2; }
.rc-items { width: 100%; border-collapse: collapse; }
.rc-items th { background: #e9edec; color: #62777c; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; padding: 8px 10px; }
.rc-items td { padding: 10px; border-bottom: 1px solid #dde4e2; }
.rc-items .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-items tfoot td { font: 800 18px/1.2 var(--display); border-bottom: 0; padding-top: 12px; }
.rc-foot { font-size: 12px; color: #62777c; padding-top: 10px; border-top: 1px solid #dde4e2; }
.receipt-actions { margin-top: 14px; }

@media print {
  body.printing-receipt > *:not(.layer) { display: none !important; }
  body.printing-receipt .layer { position: static; background: none; display: block; }
  body.printing-receipt .layer ~ .layer { display: none; }
  body.printing-receipt .sheet { max-width: none; max-height: none; box-shadow: none; border-radius: 0; overflow: visible; background: #fff; animation: none; }
  body.printing-receipt .sheet-head, body.printing-receipt .receipt-actions { display: none; }
  body.printing-receipt .sheet-body { padding: 0; }
  body.printing-receipt .receipt { border-color: #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------------ vehicle stickers */

.stat.go { background: var(--go-bg); } .stat.go b, .stat.go span { color: var(--go-ink); }
.tabs-row.wide { max-width: 640px; }
.search-row { margin-bottom: 14px; max-width: 340px; }
.search-in { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); }
.plate { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; }
.big-plate { font-size: 30px; letter-spacing: 0.08em; margin: 4px 0 12px; }
.plate-input { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.info-box { padding: 10px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info-ink); font-weight: 600; margin: 8px 0; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); }
.doc-row.missing { border-style: dashed; border-color: var(--line); }
.doc-row.other { background: var(--card); padding: 6px 6px 6px 12px; justify-content: space-between; }
.doc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.doc-row.other .doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-other { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); }
.doc-other > .doc-main { flex: none; }
.doc-other > span { align-self: flex-start; }
.req { color: var(--stop); }
.doc-preview { flex: 1 1 100%; }
.doc-preview img { display: block; max-width: 100%; max-height: 340px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); object-fit: contain; }

/* The sticker: always dark-on-white so it prints identically in either theme. */
.sticker { width: 100%; max-width: 340px; margin: 0 auto; background: #fff; color: #10262b; border: 3px solid #10262b; border-radius: 16px; overflow: hidden; text-align: center; }
.stk-head { background: #10262b; color: #fff; padding: 12px 14px 10px; border-bottom: 5px solid #ffc61a; display: flex; flex-direction: column; gap: 2px; }
.stk-head span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #b7c8c6; }
.stk-head strong { font: 800 17px/1.2 var(--display); }
.stk-plate { font: 900 34px/1 var(--display); letter-spacing: 0.1em; padding: 18px 8px 8px; }
.stk-facts { margin: 0; padding: 4px 16px 8px; display: grid; gap: 6px; }
.stk-facts div { display: flex; justify-content: space-between; gap: 12px; text-align: left; font-size: 14px; border-bottom: 1px dashed #cbd5d3; padding-bottom: 5px; }
.stk-facts dt { color: #62777c; } .stk-facts dd { margin: 0; font-weight: 700; text-align: right; }
.stk-qr { display: flex; justify-content: center; padding: 10px 0 6px; }
.stk-qr img, .stk-qr canvas { max-width: 150px; height: auto; }
.stk-foot { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 14px; font-size: 12px; color: #62777c; }
.stk-foot strong { color: #10262b; font-size: 15px; letter-spacing: 0.06em; }
.stk-hint { margin-top: 12px; text-align: center; }
.sticker-actions { justify-content: center; margin-top: 12px; }

@media print {
  body.printing-sticker > *:not(.layer) { display: none !important; }
  body.printing-sticker .layer { position: static; background: none; display: block; }
  body.printing-sticker .layer ~ .layer { display: none; }
  body.printing-sticker .sheet { max-width: none; max-height: none; box-shadow: none; border-radius: 0; overflow: visible; background: #fff; animation: none; }
  body.printing-sticker .sheet-head, body.printing-sticker .sticker-actions, body.printing-sticker .stk-hint { display: none; }
  body.printing-sticker .sheet-body { padding: 0; }
  body.printing-sticker .sticker { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* notices */
.notice { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); display: flex; flex-direction: column; gap: 6px; }
.notice.unread { border-color: var(--boom); background: var(--card); box-shadow: inset 3px 0 0 var(--boom); }
.notice p { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bell-slot { display: inline-flex; }
.bell-btn { position: relative; }
.bell-btn .badge { position: absolute; top: 2px; right: 0; }
