/* =====================================================================
   Wardeny design system
   Calm neutrals from Discord's own palette, one cobalt accent, Geist type.
   Tokens are RGB channels so Tailwind utilities (bg-deck/60 …) work too.
   Token names: night=page, deck=surface, rim=border, snow=text, haze=muted,
   brand=accent, accent=positive, amber=warning, rose=danger.
   ===================================================================== */
@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, [data-theme="dark"] {
  color-scheme: dark;
  --night: 24 25 29;  --deck: 32 34 38;  --raised: 41 43 48;  --rim: 53 56 62;
  --snow: 237 238 240; --haze: 155 159 168;
  --brand: 96 139 255; --on-brand: 255 255 255;
  --accent: 61 190 139; --amber: 236 168 66; --rose: 236 82 88;
  --shadow: 0 0 0;
}
[data-theme="light"] {
  color-scheme: light;
  --night: 246 246 248; --deck: 255 255 255; --raised: 241 242 245; --rim: 226 228 233;
  --snow: 23 24 28;   --haze: 96 100 110;
  --brand: 44 92 222; --on-brand: 255 255 255;
  --accent: 20 146 98; --amber: 178 112 12; --rose: 206 44 56;
  --shadow: 30 34 50;
}

html { font-family: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif; font-feature-settings: "ss01"; }
body { font-size: 14.5px; line-height: 1.55; }
code, pre, .mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }
::selection { background: rgb(var(--brand) / .28); }
:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 2px; border-radius: 6px; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: rgb(var(--brand)); }

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  height: 2.25rem; padding: 0 .9rem; border-radius: 8px; font-weight: 550; font-size: .875rem;
  white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s;
}
.btn-primary { background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
.btn-primary:hover { background: rgb(var(--brand) / .88); }
.btn-secondary { background: rgb(var(--deck)); color: rgb(var(--snow)); box-shadow: inset 0 0 0 1px rgb(var(--rim)); }
.btn-secondary:hover { background: rgb(var(--raised)); }
.btn-danger { background: rgb(var(--rose)); color: #fff; }
.btn-danger:hover { background: rgb(var(--rose) / .88); }
.btn-ghost { color: rgb(var(--haze)); padding: 0 .6rem; }
.btn-ghost:hover { color: rgb(var(--snow)); background: rgb(var(--raised)); }
.btn-lg { height: 2.75rem; padding: 0 1.25rem; font-size: .95rem; }
button:disabled, .btn-primary[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
.field-label { display: block; font-weight: 550; font-size: .875rem; }
.field-help { margin: .15rem 0 .5rem; font-size: .8125rem; color: rgb(var(--haze)); line-height: 1.5; max-width: 62ch; }
.field {
  width: 100%; border-radius: 8px; background: rgb(var(--night)); border: 1px solid rgb(var(--rim));
  padding: .5rem .7rem; color: rgb(var(--snow)); font-size: .875rem; line-height: 1.5;
  transition: border-color .12s, box-shadow .12s;
}
[data-theme="light"] .field { background: rgb(var(--deck)); }
.field:hover { border-color: rgb(var(--haze) / .5); }
.field:focus { border-color: rgb(var(--brand)); outline: none; box-shadow: 0 0 0 3px rgb(var(--brand) / .2); }
.field::placeholder { color: rgb(var(--haze) / .75); }
textarea.field { resize: vertical; }
select.field { padding-right: 2rem; }
.range { width: 100%; }

/* ---------- surfaces ---------- */
.panel { background: rgb(var(--deck)); border: 1px solid rgb(var(--rim)); border-radius: 10px; padding: 1.25rem; }
[data-theme="light"] .panel { box-shadow: 0 1px 2px rgb(var(--shadow) / .05); }
.panel.py-0 { padding-top: 0; padding-bottom: 0; }
.stats-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: rgb(var(--rim)); border: 1px solid rgb(var(--rim)); border-radius: 10px; overflow: hidden; }
@media (min-width: 1024px) {
  .stats-strip { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .stats-strip.stats-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .stats-strip.stats-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.stat { background: rgb(var(--deck)); padding: 1rem 1.1rem; }
.stat p.text-3xl, .stat p.text-4xl, .stat p.text-2xl { font-size: 1.6rem; letter-spacing: -.02em; font-weight: 650; }

.section { padding: 2rem 0; border-top: 1px solid rgb(var(--rim)); scroll-margin-top: 4.5rem; }
.section:first-of-type { border-top: 0; padding-top: 0; }
.section-title { font-size: 1.125rem; font-weight: 650; letter-spacing: -.01em; }
.section-help { margin-top: .25rem; color: rgb(var(--haze)); font-size: .875rem; line-height: 1.6; max-width: 68ch; }
.group-title { font-size: .95rem; font-weight: 650; }
.page-title { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.notice { border: 1px solid rgb(var(--brand) / .35); background: rgb(var(--brand) / .07); border-radius: 8px; padding: .65rem .85rem; font-size: .875rem; }
code { background: rgb(var(--raised)); border: 1px solid rgb(var(--rim)); padding: .05rem .35rem; border-radius: 5px; font-size: .82em; }
.dc-message code, .code-block code { border: 0; background: none; padding: 0; }

.side-nav { display: flex; gap: .15rem; overflow-x: auto; padding-bottom: .25rem; }
.side-nav a { flex-shrink: 0; padding: .35rem .65rem; border-radius: 6px; color: rgb(var(--haze)); font-size: .85rem; }
.side-nav a:hover { color: rgb(var(--snow)); background: rgb(var(--raised)); }
@media (min-width: 1024px) { .side-nav { position: sticky; top: 5rem; align-self: start; flex-direction: column; overflow: visible; } }

.segmented { display: inline-flex; background: rgb(var(--raised)); border-radius: 8px; padding: 3px; gap: 2px; }
.segmented a, .segmented button { padding: .25rem .65rem; border-radius: 6px; font-size: .8125rem; font-weight: 550; color: rgb(var(--haze)); }
.segmented a:hover, .segmented button:hover { color: rgb(var(--snow)); }
.segmented .active { background: rgb(var(--deck)); color: rgb(var(--snow)); box-shadow: 0 1px 2px rgb(0 0 0 / .15), inset 0 0 0 1px rgb(var(--rim)); }

.duty-pill { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .2rem .65rem .2rem .55rem; font-size: .8125rem; font-weight: 550; color: rgb(var(--snow)); background: rgb(var(--raised)); }
.duty-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: rgb(var(--accent)); }
.duty-pill.is-off::before { background: rgb(var(--amber)); }

/* ---------- app shell ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(var(--night) / .85); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(var(--rim)); }
.nav-link { font-size: .875rem; color: rgb(var(--haze)); padding: .35rem .6rem; border-radius: 6px; }
.nav-link:hover { color: rgb(var(--snow)); background: rgb(var(--raised)); }
.icon-btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; color: rgb(var(--haze)); }
.icon-btn:hover { color: rgb(var(--snow)); background: rgb(var(--raised)); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
[data-theme="dark"] .icon-sun, [data-theme="light"] .icon-moon { display: none; }

.app { display: grid; min-height: calc(100vh - 3.5rem); }
@media (min-width: 1024px) { .app { grid-template-columns: 15.5rem 1fr; } }
.sidebar { border-bottom: 1px solid rgb(var(--rim)); padding: .75rem; background: rgb(var(--deck) / .5); }
@media (min-width: 1024px) {
  .sidebar { border-bottom: 0; border-right: 1px solid rgb(var(--rim)); position: sticky; top: 3.5rem; height: calc(100vh - 3.5rem); overflow-y: auto; padding: 1rem .75rem; }
}
.server-switch { display: flex; align-items: center; gap: .65rem; padding: .5rem; border-radius: 8px; }
.server-switch:hover { background: rgb(var(--raised)); }
.side-groups { display: flex; gap: .25rem; overflow-x: auto; margin-top: .5rem; }
@media (min-width: 1024px) { .side-groups { display: block; overflow: visible; margin-top: 1rem; } }
.side-group-title { display: none; }
@media (min-width: 1024px) { .side-group-title { display: block; padding: .9rem .6rem .3rem; font-size: .75rem; font-weight: 550; color: rgb(var(--haze)); } }
.side-link { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; padding: .42rem .6rem; border-radius: 7px; color: rgb(var(--haze)); font-size: .875rem; font-weight: 500; }
.side-link:hover { color: rgb(var(--snow)); background: rgb(var(--raised)); }
.side-link.active { color: rgb(var(--snow)); background: rgb(var(--raised)); box-shadow: inset 2px 0 0 rgb(var(--brand)); }
.side-link .icon { width: 1rem; height: 1rem; }
.grade-card { display: none; }
@media (min-width: 1024px) { .grade-card { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; padding: .7rem; border-radius: 8px; border: 1px solid rgb(var(--rim)); } }
.grade-letter { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 7px; font-weight: 700; color: #fff; background: rgb(var(--rose)); }
.grade-letter[data-grade="A"], .grade-letter[data-grade="B"] { background: rgb(var(--accent)); }
.grade-letter[data-grade="C"] { background: rgb(var(--amber)); }
.app-main { min-width: 0; padding: 1.75rem 1rem 3rem; }
@media (min-width: 640px) { .app-main { padding: 2rem 2rem 4rem; } }
.app-inner { max-width: 72rem; margin: 0 auto; }
.emergency-banner { display: flex; align-items: center; gap: .6rem; border-radius: 8px; padding: .65rem .85rem; background: rgb(var(--rose) / .12); border: 1px solid rgb(var(--rose) / .45); color: rgb(var(--snow)); font-size: .875rem; }
.emergency-banner .icon { color: rgb(var(--rose)); }

/* ---------- editors ---------- */
.topic-row { position: relative; border: 1px solid rgb(var(--rim)); border-radius: 8px; padding: .9rem; background: rgb(var(--night) / .45); }
[data-theme="light"] .topic-row { background: rgb(var(--raised) / .55); }
.topic-remove { margin-top: .6rem; font-size: .8125rem; color: rgb(var(--rose)); font-weight: 550; }
.topic-remove:hover { text-decoration: underline; }
.hours-bar { display: grid; grid-template-columns: repeat(24, minmax(0,1fr)); gap: 2px; height: 2.5rem; }
.hour-cell { position: relative; background: rgb(var(--accent) / .8); border-radius: 3px; }
.hour-cell.is-off { background: rgb(var(--raised)); box-shadow: inset 0 0 0 1px rgb(var(--rim)); }
.hour-cell.is-now::after { content: ""; position: absolute; inset: -4px auto -4px 50%; width: 2px; transform: translateX(-50%); background: rgb(var(--snow)); border-radius: 2px; }
.hours-scale { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); margin-top: .35rem; font-size: .75rem; color: rgb(var(--haze)); font-variant-numeric: tabular-nums; }
.legend { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.legend-on { background: rgb(var(--accent) / .8); }
.legend-off { background: rgb(var(--raised)); box-shadow: inset 0 0 0 1px rgb(var(--rim)); }

/* ---------- data ---------- */
.chart-title { font-weight: 600; font-size: .875rem; }
.chart { margin-top: .75rem; }
.meter { height: .4rem; background: rgb(var(--raised)); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: rgb(var(--brand)); border-radius: 99px; }
.table-wrap { overflow-x: auto; border: 1px solid rgb(var(--rim)); border-radius: 10px; background: rgb(var(--deck)); }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; font-weight: 550; font-size: .8125rem; color: rgb(var(--haze)); padding: .6rem .9rem; white-space: nowrap; border-bottom: 1px solid rgb(var(--rim)); }
.data-table td { padding: .65rem .9rem; border-top: 1px solid rgb(var(--rim)); vertical-align: middle; }
.data-table tr:first-child td { border-top: 0; }
.data-table tbody tr:hover td { background: rgb(var(--raised) / .45); }
.summary-row td { background: rgb(var(--raised) / .35); border-top: 0; padding-top: 0; }
.summary { color: rgb(var(--snow) / .85); line-height: 1.6; font-size: .875rem; }

.prio { display: inline-flex; align-items: center; gap: .4rem; border-radius: 6px; padding: .1rem .5rem; font-size: .75rem; font-weight: 600; white-space: nowrap; background: rgb(var(--raised)); color: rgb(var(--snow)); }
.prio::before { content: ""; width: .45rem; height: .45rem; border-radius: 99px; background: currentColor; }
.prio-low::before { background: rgb(var(--accent)); }
.prio-normal::before { background: rgb(var(--brand)); }
.prio-high::before { background: rgb(var(--amber)); }
.prio-urgent { background: rgb(var(--rose) / .14); }
.prio-urgent::before { background: rgb(var(--rose)); }
.stars { font-size: 1.35rem; letter-spacing: .08em; color: rgb(var(--rim)); }
.stars.small { font-size: .9rem; letter-spacing: 0; }
.stars .on { color: rgb(var(--amber)); }

.member-row { display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem; border-radius: 8px; }
.member-row:hover { background: rgb(var(--raised)); }
.member-row.active { background: rgb(var(--raised)); box-shadow: inset 2px 0 0 rgb(var(--brand)); }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgb(var(--rim)); border-radius: 6px; padding: .1rem .5rem; font-size: .75rem; font-weight: 550; }
.chip .dot { width: .55rem; height: .55rem; border-radius: 99px; }
.chip-brand { color: rgb(var(--accent)); border-color: rgb(var(--accent) / .4); }
.chip-amber { color: rgb(var(--amber)); border-color: rgb(var(--amber) / .45); }
.chip-rose { color: rgb(var(--rose)); border-color: rgb(var(--rose) / .45); }
.log-row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .75rem; padding: .5rem 0; border-top: 1px solid rgb(var(--rim)); }
.log-row:first-child { border-top: 0; }
@media (max-width: 640px) { .log-row { grid-template-columns: 1fr; gap: .15rem; } }
.meta { display: inline-flex; flex-wrap: wrap; gap: .25rem .9rem; color: rgb(var(--haze)); }

.score-ring { --c: rgb(var(--rose)); width: 9.5rem; height: 9.5rem; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--score) * 1%), rgb(var(--raised)) 0); }
.score-ring > div { width: 8rem; height: 8rem; border-radius: 999px; background: rgb(var(--deck)); display: grid; place-content: center; }
.score-ring[data-grade="A"], .score-ring[data-grade="B"] { --c: rgb(var(--accent)); }
.score-ring[data-grade="C"] { --c: rgb(var(--amber)); }
.check { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .9rem; border-top: 1px solid rgb(var(--rim)); }
.check:first-child { border-top: 0; }
.check-list { border: 1px solid rgb(var(--rim)); border-radius: 10px; background: rgb(var(--deck)); }
.check-icon { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; flex-shrink: 0; margin-top: .1rem; }
.check-icon .icon { width: .85rem; height: .85rem; }
.check-pass .check-icon { background: rgb(var(--accent) / .15); color: rgb(var(--accent)); }
.check-warn .check-icon { background: rgb(var(--amber) / .18); color: rgb(var(--amber)); }
.check-fail .check-icon { background: rgb(var(--rose) / .16); color: rgb(var(--rose)); }
.vote-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-width: 3.25rem; padding: .35rem; border-radius: 8px; background: rgb(var(--raised)); font-weight: 600; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.code-block { background: rgb(var(--night)); border: 1px solid rgb(var(--rim)); border-radius: 8px; padding: .75rem .9rem; font-family: "Geist Mono", ui-monospace, monospace; font-size: .8rem; overflow-x: auto; white-space: pre; }
.secret { filter: blur(5px); transition: filter .15s; }
.secret.revealed { filter: none; }

/* ---------- Discord look-alike previews (always Discord's dark style) ---------- */
.dc-message { display: flex; gap: .75rem; background: #313338; border-radius: 10px; padding: 1rem; color: #DBDEE1; font-family: "gg sans", "Geist", system-ui, sans-serif; }
.dc-app { margin-left: .25rem; border-radius: .25rem; background: #5865F2; padding: 0 .25rem; font-size: 10px; font-weight: 700; color: #fff; vertical-align: middle; }
.dc-embed, .dc-container { background: #2B2D31; border-left: 4px solid #608BFF; border-radius: .3rem; padding: .75rem 1rem; font-size: .875rem; }
.dc-container { border-radius: .5rem; padding: .9rem 1rem; }
.dc-author { font-size: .75rem; font-weight: 600; color: #F2F3F5; }
.dc-title { margin-top: .35rem; font-weight: 700; color: #F2F3F5; }
.dc-h2 { font-size: 1.2rem; font-weight: 700; color: #F2F3F5; line-height: 1.3; }
.dc-h3 { font-size: 1rem; font-weight: 700; color: #F2F3F5; }
.dc-desc { margin-top: .35rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.dc-desc.dc-list { white-space: normal; }
.dc-fields { margin-top: .6rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem .9rem; }
.dc-fname { font-size: .75rem; font-weight: 700; color: #F2F3F5; }
.dc-fval { margin-top: .1rem; line-height: 1.4; word-break: break-word; }
.dc-footer, .dc-sub { margin-top: .6rem; font-size: .72rem; color: #949BA4; }
.dc-thumb { width: 4.25rem; height: 4.25rem; border-radius: .5rem; object-fit: cover; flex-shrink: 0; }
.dc-sep { border: 0; border-top: 1px solid #3F4147; margin: .9rem 0; }
.dc-sep-thin { margin: .6rem 0; }
.dc-banner { margin-top: .75rem; width: 100%; border-radius: .5rem; max-height: 11rem; object-fit: cover; }
.dc-bar { font-family: "Geist Mono", monospace; background: #1E1F22; border-radius: .25rem; padding: 0 .3rem; font-size: .8rem; }
.dc-select { margin-top: .5rem; display: flex; justify-content: space-between; align-items: center; background: #1E1F22; border-radius: .3rem; padding: .55rem .75rem; font-size: .875rem; color: #949BA4; }
.dc-button { margin-top: .5rem; display: inline-flex; gap: .35rem; align-items: center; background: #248046; color: #fff; border-radius: .3rem; padding: .4rem .9rem; font-size: .875rem; font-weight: 600; }

/* ---------- landing ---------- */
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; }
.lede { font-size: 1.125rem; line-height: 1.6; color: rgb(var(--haze)); max-width: 34rem; }
.watchlog { border: 1px solid rgb(var(--rim)); border-radius: 12px; background: rgb(var(--deck)); overflow: hidden; }
[data-theme="light"] .watchlog { box-shadow: 0 12px 40px -18px rgb(var(--shadow) / .25); }
.watchlog-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid rgb(var(--rim)); font-size: .8125rem; color: rgb(var(--haze)); }
.watchlog-live { display: inline-flex; align-items: center; gap: .4rem; color: rgb(var(--snow)); font-weight: 550; }
.watchlog-live::before { content: ""; width: .45rem; height: .45rem; border-radius: 99px; background: rgb(var(--accent)); }
.watchlog ol { height: 21.5rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log-line { display: grid; grid-template-columns: 3.4rem 1.1rem 1fr; gap: .6rem; align-items: start; padding: .6rem 1rem; border-top: 1px solid rgb(var(--rim) / .6); font-size: .84rem; }
.log-line time { font-family: "Geist Mono", monospace; font-size: .75rem; color: rgb(var(--haze)); padding-top: .1rem; }
.log-line .icon { width: 1rem; height: 1rem; margin-top: .15rem; }
.log-line.kind-danger .icon { color: rgb(var(--rose)); }
.log-line.kind-warn .icon { color: rgb(var(--amber)); }
.log-line.kind-ok .icon { color: rgb(var(--accent)); }
.log-line.kind-info .icon { color: rgb(var(--brand)); }
.log-line.is-new { animation: log-in .5s ease-out; }
@keyframes log-in { from { opacity: 0; transform: translateY(6px); background: rgb(var(--brand) / .08); } }
.feature-row { display: grid; gap: 2rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid rgb(var(--rim)); }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1.15fr; gap: 4rem; } .feature-row.flip > :first-child { order: 2; } }
.feature-row h3 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.feature-list { display: grid; gap: 0; border-top: 1px solid rgb(var(--rim)); }
@media (min-width: 768px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }
.feature-list > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid rgb(var(--rim)); }
.feature-list .icon { width: 1.25rem; height: 1.25rem; color: rgb(var(--brand)); }

/* ---------- legal pages ---------- */
.prose-legal { max-width: 46rem; }
.prose-legal h1 { font-size: 2rem; font-weight: 650; letter-spacing: -.02em; }
.prose-legal h2 { font-size: 1.15rem; font-weight: 650; margin-top: 2.25rem; }
.prose-legal h3 { font-size: 1rem; font-weight: 600; margin-top: 1.25rem; }
.prose-legal p, .prose-legal li { color: rgb(var(--snow) / .88); line-height: 1.7; margin-top: .6rem; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; }
.prose-legal a { color: rgb(var(--brand)); text-decoration: underline; text-underline-offset: 2px; }
.prose-legal .placeholder { background: rgb(var(--amber) / .18); color: rgb(var(--amber)); border-radius: 4px; padding: 0 .3rem; font-weight: 600; }

/* ---------- feedback ---------- */
.toast { position: fixed; top: 4.5rem; right: 1.25rem; z-index: 50; display: flex; align-items: center; gap: .5rem; border-radius: 8px; background: rgb(var(--deck)); border: 1px solid rgb(var(--rim)); color: rgb(var(--snow)); padding: .6rem .9rem; font-weight: 550; font-size: .875rem; box-shadow: 0 10px 30px rgb(var(--shadow) / .3); }
.toast .icon { color: rgb(var(--accent)); }
.save-bar { position: sticky; bottom: 1rem; margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; z-index: 10; background: rgb(var(--deck) / .95); backdrop-filter: blur(8px); border: 1px solid rgb(var(--rim)); border-radius: 10px; padding: .6rem .75rem .6rem 1rem; box-shadow: 0 10px 30px rgb(var(--shadow) / .25); }
.save-bar .save-hint { visibility: hidden; }
.save-bar[data-dirty="true"] { border-color: rgb(var(--amber) / .7); }
.save-bar[data-dirty="true"] .save-hint { visibility: visible; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
