/* AGORA brand (agora.ooo crimson #780000) · font: Inter, as in the AVAx Events app · day/night themes */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/inter-latin-ext.01ba6c2a184b.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/inter-latin.65850a373e25.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #1a1a1a; --ink-2: #4a4a4a; --muted: #7a7a7a; --line: #ebe4e4; --line-2: #f3eeee;
  --bg: #f7f6f6; --panel: #fff; --card: #fff; --row-alt: #fcfbfb;
  --brand: #780000; --brand-dark: #560000; --brand-2: #a00000; --brand-faint: #f9f0f0; --brand-tint: #fbf4f4;
  --brand-fill: #780000; --brand-fill-hover: #560000; --on-brand: #fff;
  --accent: #a00000; --accent-soft: #e8c5c5;
  --good: #2e7d4f; --good-bg: #e7f5ec; --warn: #9a5b00; --warn-bg: #fdf1dc; --bad: #b3261e; --bad-bg: #fcebe9;
  --info: #1f5fae; --info-bg: #eaf2fc; --shadow: 0 1px 2px rgba(0,0,0,.03);
  --radius: 10px; --side: 248px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
}
/* Night: "auto" follows the device; the switch can force day or night (stored per device). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #ece7e7; --ink-2: #c9c1c1; --muted: #978d8d; --line: #332c2d; --line-2: #2a2425;
  --bg: #131112; --panel: #1c1819; --card: #1c1819; --row-alt: #201b1c;
  --brand: #f19a9a; --brand-dark: #ffb4b4; --brand-2: #e07a7a; --brand-faint: #3a1d1f; --brand-tint: #2a1e1f;
  --brand-fill: #a00000; --brand-fill-hover: #bd1a1a; --on-brand: #fff;
  --accent: #e07a7a; --accent-soft: #5c2c2e;
  --good: #7fd09a; --good-bg: #17301f; --warn: #f0b55a; --warn-bg: #3a2a10; --bad: #ff8b82; --bad-bg: #3d1d1c;
  --info: #8ab8f0; --info-bg: #152a42; --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #ece7e7; --ink-2: #c9c1c1; --muted: #978d8d; --line: #332c2d; --line-2: #2a2425;
  --bg: #131112; --panel: #1c1819; --card: #1c1819; --row-alt: #201b1c;
  --brand: #f19a9a; --brand-dark: #ffb4b4; --brand-2: #e07a7a; --brand-faint: #3a1d1f; --brand-tint: #2a1e1f;
  --brand-fill: #a00000; --brand-fill-hover: #bd1a1a; --on-brand: #fff;
  --accent: #e07a7a; --accent-soft: #5c2c2e;
  --good: #7fd09a; --good-bg: #17301f; --warn: #f0b55a; --warn-bg: #3a2a10; --bad: #ff8b82; --bad-bg: #3d1d1c;
  --info: #8ab8f0; --info-bg: #152a42; --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 14px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .15s; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: 1.55rem; font-weight: 700; }
h2 { font-size: 1.08rem; font-weight: 600; }
h3 { font-size: .95rem; font-weight: 600; }
small, .muted { color: var(--muted); }
small { font-size: .86em; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* ---------- sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; z-index: 20; }
.side .brand { display: block; padding: 0 8px; text-decoration: none; }
.side .brand img { height: 30px; display: block; }
.side .brand span { display: block; color: var(--muted); font-size: .82rem; letter-spacing: .02em; margin-top: 6px; }
.side .brand-rule { height: 3px; border-radius: 3px; margin: 14px 8px 16px; background: linear-gradient(90deg, var(--brand) 0 55%, var(--brand-2) 55% 80%, var(--accent-soft) 80%); }
.side .switcher { width: 100%; margin-bottom: 14px; font-weight: 500; }
.side nav { flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.side nav a i { font-style: normal; width: 18px; text-align: center; color: var(--muted); font-size: .9rem; }
.side nav a:hover { background: var(--brand-tint); text-decoration: none; }
.side nav a.on { background: var(--brand-faint); color: var(--brand); font-weight: 600; }
.side nav a.on i { color: var(--brand); }
.side nav .label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; }
.side .me { border-top: 1px solid var(--line); margin-top: 14px; padding: 12px 8px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: .88rem; }
.side .me small { word-break: break-all; }
.badge { margin-left: auto; background: var(--brand-fill); color: var(--on-brand); border-radius: 99px; font-size: .7rem; padding: 1px 7px; font-weight: 600; }

main { padding: 28px 36px 60px; max-width: 1320px; }
body.has-side main { margin-left: var(--side); }
@media (max-width: 900px) {
  .side { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .side nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .side nav .label { width: 100%; margin: 8px 6px 2px; }
  .side .me { display: none; }
  body.has-side main { margin-left: 0; }
  main { padding: 18px 16px 40px; }
}

/* ---------- page head ---------- */
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { margin: 0 0 4px; }
.head p, .head .muted { margin: 0; color: var(--ink-2); }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.stat { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); display: block; }
a.stat:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(120,0,0,.12); }
.stat.on { outline: 2px solid var(--brand); outline-offset: -1px; }
.stat .value { font-size: 1.65rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .9rem; font-weight: 500; }
.stat .label { font-size: .88rem; color: var(--ink); margin-top: 2px; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.stat.t-good { border-top-color: var(--good); } .stat.t-warn { border-top-color: #d98a00; }
.stat.t-bad { border-top-color: var(--bad); } .stat.t-info { border-top-color: var(--info); } .stat.t-muted { border-top-color: #c9bfbf; }
.stat.t-soft { border-top-color: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn, button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 7px 14px; border-radius: 8px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.btn:hover, button:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn.primary, button.primary { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
.btn.primary:hover, button.primary:hover { background: var(--brand-fill-hover); border-color: var(--brand-fill-hover); color: var(--on-brand); }
.btn.accent, button.accent { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
.btn.danger, button.danger { color: var(--bad); }
.btn.sm, button.sm { padding: 3px 9px; font-size: .8rem; border-radius: 6px; }
button.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 400; font-size: inherit; }
form.inline { display: inline; margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.group td { background: var(--brand-faint); font-weight: 600; color: var(--ink); padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
tr.group td small { font-weight: 400; margin-left: 6px; }
td.time { color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; width: 110px; }
td .t { font-weight: 600; }
td.nowrap, th.nowrap { white-space: nowrap; }
td .sub, .sub { color: var(--muted); font-size: .86rem; }
tr.done td { color: var(--muted); }
tr.done td .t { text-decoration: line-through; font-weight: 400; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--brand-tint); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
.k-plenary { background: var(--brand); } .k-workshop { background: #2563eb; } .k-breakout { background: #0d9488; }
.k-talk { background: #7c3aed; } .k-reflection { background: #16a34a; } .k-social { background: #ea580c; }
.k-meal { background: #d97706; } .k-break, .k-logistics { background: #a3a3a3; }
tr.k-row-break td, tr.k-row-meal td, tr.k-row-logistics td { background: var(--row-alt); }
tr.k-row-break .t, tr.k-row-meal .t, tr.k-row-logistics .t { text-transform: uppercase; letter-spacing: .03em; font-size: .88rem; }

.pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.brand { background: var(--brand-faint); color: var(--brand); }
.overdue { color: var(--bad); font-weight: 600; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; border: 1px solid transparent; }
.tabs a.on { background: var(--panel); border-color: var(--line); color: var(--brand); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.tabs a .n { color: var(--muted); margin-left: 4px; font-weight: 400; }

.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 6px; background: var(--info-bg); color: var(--info); }
.messages li.success { background: var(--good-bg); color: var(--good); }
.messages li.warning { background: var(--warn-bg); color: var(--warn); }
.messages li.error { background: var(--bad-bg); color: var(--bad); }

/* ---------- forms ---------- */
.form > div, .field { margin-bottom: 14px; }
.form label, .field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=time], input[type=password],
input[type=search], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .93rem; background: var(--panel); color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
input[type=checkbox] { width: auto; margin-right: 6px; accent-color: var(--brand); }
.form .helptext, .helptext { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.form ul.errorlist, .errorlist { color: var(--bad); list-style: none; padding: 0; margin: 2px 0; font-size: .85rem; }
.form div:has(> input[type=checkbox]) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.form div:has(> input[type=checkbox]) label { margin: 0; order: 2; }
.form div:has(> input[type=checkbox]) .helptext { order: 3; width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid > .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 8px; margin-top: 8px; }
.checklist { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--panel); }
.checklist label, .checklist div { font-weight: 400 !important; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search] { width: 260px; }
.filters select { width: auto; min-width: 150px; }
.filters .count { color: var(--muted); font-size: .88rem; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
fieldset legend { font-weight: 600; font-size: 1rem; margin: 10px 0 10px; padding: 0; color: var(--brand); }

.progress { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; display: flex; }
.progress > span { display: block; height: 100%; }
.progress .spent { background: var(--brand-fill); }
.progress .committed { background: var(--brand-2); opacity: .5; }
.progress .planned { background: var(--accent-soft); }
.legend { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-2); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; white-space: pre-line; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.log li { margin-bottom: 6px; font-size: .9rem; }
.mail-body { white-space: pre-wrap; font-family: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; max-height: 600px; overflow: auto; }
.unread td { font-weight: 600; }
iframe.preview { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color-scheme: light; }
.auth { max-width: 400px; margin: 80px auto; }
.auth-logo { display: block; height: 36px; margin: 0 auto 6px; }
@media print {
  .side, .head .actions, .no-print, .messages { display: none !important; }
  body.has-side main { margin: 0; } main { padding: 0; } .card { border: 0; box-shadow: none; padding: 0; }
  tr.group td { background: #f3f3f3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- timeline ---------- */
.countdown { border-top: 4px solid var(--brand); padding: 20px 24px; }
.cd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.cd-nums { display: flex; gap: 34px; }
.cd-nums b { display: block; font-size: 2.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cd-nums span { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--ink-2); margin-top: 6px; }
.cd-until { text-align: right; }
.cd-until span { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); }
.cd-until strong { display: block; font-size: 1.1rem; }
.cd-until small { color: var(--ink-2); }
.cd-bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; font-size: .92rem; }
.cd-bar .progress { height: 8px; }
.cd-bar a.pill:hover { text-decoration: none; }
.nowrap { white-space: nowrap; }

.tl { margin-top: 8px; }
.tl-month { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .85rem; color: var(--ink-2); padding: 22px 0 8px 6px; }
.tl-item { display: grid; grid-template-columns: 96px 26px 1fr auto; gap: 0 10px; align-items: start; padding: 10px 12px 12px 6px; border-radius: 10px; position: relative; }
.tl-item:hover { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tl-item.is-today { background: var(--brand-tint); }
.tl-item.is-done { opacity: .6; }
.tl-item.is-done .tl-title { text-decoration: line-through; }
.tl-date { text-align: right; color: var(--ink-2); font-size: .9rem; padding-top: 2px; white-space: nowrap; }
.tl-mark { position: relative; align-self: stretch; display: flex; justify-content: center; }
.tl-mark::before { content: ""; position: absolute; top: -12px; bottom: -14px; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.tl-mark i { position: relative; margin-top: 4px; width: 14px; height: 14px; background: var(--panel); }
.tl-mark .ring { border-radius: 50%; border: 3px solid var(--brand); }
.tl-mark .diamond { transform: rotate(45deg); border: 3px solid var(--brand); background: var(--brand-faint); width: 13px; height: 13px; }
.tl-mark .late { border-color: var(--bad); }
.tl-mark .diamond.late { background: #f7c7c2; }
.tl-mark .ok { border-color: var(--good); background: var(--good-bg); }
.tl-title { font-weight: 600; font-size: 1rem; }
.tl-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
@media (max-width: 700px) {
  .tl-item { grid-template-columns: 70px 22px 1fr; }
  .tl-flags { grid-column: 3; justify-content: flex-start; margin-top: 4px; }
  .cd-nums b { font-size: 2.2rem; } .cd-until { text-align: left; }
}

/* ---------- task groups ---------- */
.task-group { margin-bottom: 16px; }
.tg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px; }
.tg-head h2 { margin: 0; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }
.task-group table td { padding: 9px 14px; vertical-align: middle; }
.task-group table tr:first-child td { border-top: 1px solid var(--line-2); }

/* ---------- logo per theme, theme switch, footer ---------- */
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; gap: 2px; background: var(--bg); }
.theme-switch button { border: 0; background: transparent; color: var(--muted); padding: 3px 9px; border-radius: 99px; font-size: .78rem; font-weight: 500; }
.theme-switch button:hover { color: var(--brand); }
.theme-switch button[aria-pressed="true"] { background: var(--brand-faint); color: var(--brand); font-weight: 600; }
.side .foot { border-top: 1px solid var(--line); margin-top: 14px; padding: 10px 8px 0; font-size: .78rem; color: var(--muted); }
.side .foot .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.side .foot a { color: var(--ink-2); }
.side .me { border-top: 0; margin-top: 0; padding: 0 0 10px; }
.changelog h2 { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); }
.changelog h2:first-of-type { border-top: 0; margin-top: 0; }
.changelog li { margin-bottom: 4px; }

/* ---------- right-hand drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 10, 10, .28); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(0,0,0,.14); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.drawer.wide .drawer-panel { width: min(860px, 100vw); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.drawer-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-full, .drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 1.15rem; padding: 0; text-decoration: none; }
.drawer-full:hover, .drawer-x:hover { background: var(--brand-faint); color: var(--brand); border-color: transparent; text-decoration: none; }
.drawer-x { font-size: 1.5rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }
.drawer.loading .drawer-body { opacity: .5; transition: opacity .15s .1s; }
.drawer.loading .drawer-bar { background-image: linear-gradient(90deg, var(--brand-fill) 0 30%, transparent 30%); background-size: 200% 2px; background-repeat: no-repeat; background-position: 0 100%; animation: drawer-load 1s linear infinite; }
@keyframes drawer-load { to { background-position: -200% 100%; } }
.drawer-body .head { margin-bottom: 14px; }
.drawer-body .head h1 { font-size: 1.25rem; }
.drawer-body .card { max-width: none !important; }
.drawer-body .grid.c2 { grid-template-columns: 1fr; }
.drawer.wide .drawer-body .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.drawer-lock { overflow: hidden; }
@media (max-width: 700px) { .drawer-panel, .drawer.wide .drawer-panel { width: 100vw; } }
