/* eStyle Stylist. Airy and clean, white surfaces, espresso actions, rose accents. ASCII only. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-500.woff2") format("woff2"); }

:root {
  --page: #fafafb;
  --surface: #ffffff;
  --ink: #292421;
  --muted: #746a64;
  --soft: #9a8f88;
  --line: #ece5df;
  --line-strong: #dcd3cc;
  --espresso: #352b28;
  --espresso-hover: #4a3d39;
  --rose: #c77f76;
  --rose-ink: #9d625d;
  --rose-tint: #f8eeea;
  --ok: #2f7d4a;
  --ok-tint: #e8f3ec;
  --warn: #8f5410;
  --warn-tint: #fbf1e2;
  --bad: #b3261e;
  --bad-tint: #fbeaea;
  --unknown: #55606e;
  --unknown-tint: #eef0f3;
  --focus: #c77f76;
  --radius-s: 12px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 16px 45px rgba(50, 38, 30, 0.06);
  --shadow-s: 0 3px 12px rgba(50, 38, 30, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --tap: 48px;
  --rail: 92px;
  --tabbar: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rose); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
small, .muted { color: var(--muted); }
.soft { color: var(--soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--espresso); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* App shell */
.shell { min-height: 100vh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-family: var(--display); font-size: 20px; text-decoration: none; white-space: nowrap; }
.topbar .where { display: flex; flex-direction: column; min-width: 0; margin-left: auto; text-align: right; }
.topbar .where strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .where span { font-size: 12px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rose-tint); color: var(--rose-ink);
  display: grid; place-items: center; font-weight: 600; font-size: 15px; text-decoration: none; flex: none;
}
main { padding: 18px 16px 32px; max-width: 1240px; margin: 0 auto; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; position: relative;
}
.tabbar a[aria-current="page"] { color: var(--espresso); }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--rose); }
.tabbar .scan-tab .i { width: 26px; height: 26px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.tabbar .count { position: absolute; top: 6px; right: calc(50% - 26px); }

@media (min-width: 768px) {
  .shell { padding-bottom: 0; padding-left: var(--rail); }
  .tabbar {
    top: 0; right: auto; width: var(--rail); height: 100vh; padding: 86px 0 20px;
    grid-template-columns: 1fr; grid-auto-rows: 74px; align-content: start;
    border-top: 0; border-right: 1px solid var(--line);
  }
  .tabbar a[aria-current="page"]::after { top: 18%; bottom: 18%; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .tabbar .count { top: 10px; right: 20px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  main { padding: 26px 28px 48px; }
}

/* Headings and page structure */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.page-head .grow { flex: 1 1 260px; min-width: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.end { justify-content: flex-end; }
.row.middle { justify-content: center; }
.split { display: grid; gap: 20px; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; } }
.cols-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-2 > .field + .field { margin-top: 0; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-s); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--rose-tint); border-color: transparent; }
.card + .card { margin-top: 12px; }
.card h2 + p, .card h3 + p { margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--espresso); background: var(--espresso); color: #fff;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--espresso-hover); border-color: var(--espresso-hover); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--surface); color: var(--espresso); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--espresso); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: transparent; padding-left: 12px; padding-right: 12px; }
.btn.ghost:hover { background: var(--rose-tint); }
.btn.rose { background: var(--rose); border-color: var(--rose); }
.btn.rose:hover { background: var(--rose-ink); border-color: var(--rose-ink); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #e6c3c0; }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.icon-btn { width: var(--tap); height: var(--tap); padding: 0; border-radius: 50%; }

/* Chips and status */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px;
  border-radius: 999px; background: var(--rose-tint); color: var(--rose-ink); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.warn { background: var(--warn-tint); color: var(--warn); }
.chip.bad { background: var(--bad-tint); color: var(--bad); }
.chip.unknown { background: var(--unknown-tint); color: var(--unknown); }
.chip.plain { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip.dark { background: var(--espresso); color: #fff; }

.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips label {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; cursor: pointer; user-select: none;
}
.toggle-chips input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-chips input:checked + span { color: var(--rose-ink); }
.toggle-chips label:has(input:checked) { border-color: var(--rose); background: var(--rose-tint); color: var(--rose-ink); }
.toggle-chips label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); display: inline-block; flex: none; }

/* Banners and flash */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 14px; }
.banner .i { margin-top: 1px; }
.banner.info { background: var(--unknown-tint); color: var(--unknown); }
.banner.ok { background: var(--ok-tint); color: var(--ok); }
.banner.warn { background: var(--warn-tint); color: var(--warn); }
.banner.error { background: var(--bad-tint); color: var(--bad); }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 8px; width: min(560px, calc(100% - 24px)); }
@media (min-width: 768px) { .toasts { bottom: 24px; left: calc(50% + var(--rail) / 2); } }
.toast { background: var(--espresso); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--bad); }
.toast.warn { background: var(--warn); }

/* Forms */
label { font-size: 14px; font-weight: 500; }
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--espresso); flex: none; }
.search-bar { display: flex; gap: 8px; }
.search-bar input { border-radius: 999px; padding-left: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }

details.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.panel + details.panel { margin-top: 10px; }
details.panel > summary {
  list-style: none; cursor: pointer; min-height: var(--tap); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600;
}
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
details.panel[open] > summary::after { content: "-"; }
details.panel > .panel-body { padding: 0 18px 18px; }

/* Product grid and cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.pcard:hover { box-shadow: var(--shadow); }
.photo { aspect-ratio: 3 / 4; background: #f2f0ef; overflow: hidden; display: grid; place-items: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .none { color: var(--soft); font-size: 13px; padding: 16px; text-align: center; }
.pcard .meta { padding: 12px 12px 14px; display: grid; gap: 3px; }
.pcard .designer { font-size: 12px; color: var(--muted); }
.pcard .name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.pcard .price { font-size: 14px; color: var(--muted); }
.pcard .flags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .flags .chip { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-s); }
.pcard .flags .chip.ok { color: var(--ok); }
.swatches { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list > li { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.list > li + li { border-top: 1px solid var(--line); }
.list .grow { flex: 1 1 auto; min-width: 0; }
.list .title { font-weight: 600; }
.list .sub { font-size: 14px; color: var(--muted); }
.list a.cover { text-decoration: none; color: inherit; }
.thumb { width: 54px; height: 72px; border-radius: 10px; overflow: hidden; background: #f2f0ef; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Visit items */
.items { display: grid; gap: 14px; }
@media (min-width: 720px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
@media (max-width: 480px) { .item { grid-template-columns: 84px minmax(0, 1fr); } .item .body { padding: 12px; } }
.item.finalist { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose-tint); }
.item .photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
.item .body { padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.item .facts { font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.item .facts b { color: var(--ink); font-weight: 600; }
.item .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.status-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.status-bar::-webkit-scrollbar { display: none; }
.status-bar button {
  min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--ink);
}
.status-bar button[aria-pressed="true"] { background: var(--espresso); color: #fff; border-color: var(--espresso); }

/* Rooms board */
.board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 150px; display: grid; gap: 8px; align-content: start; }
.room.busy { border-color: var(--rose); }
.room .room-name { font-family: var(--display); font-size: 22px; }
.pull { display: grid; gap: 8px; background: var(--rose-tint); border-radius: var(--radius-s); padding: 12px; }
.pull strong { font-size: 15px; }

/* Availability */
.avail { display: grid; gap: 14px; }
.avail h3 { display: flex; align-items: center; gap: 8px; }
.avail-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.avail-row:first-of-type { border-top: 0; }
.avail-row .what { min-width: 0; }
.avail-row .what strong { display: block; }
.avail-row .what small { display: block; }
.qty { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 18px; text-align: right; }
.qty small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

/* Product page */
.gallery { display: grid; gap: 10px; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; background: #f2f0ef; }
@media (min-width: 1000px) { .gallery { grid-auto-columns: 48%; } }

/* Today */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.tile .n { font-family: var(--display); font-size: 32px; line-height: 1; }
.tile .l { font-size: 13px; color: var(--muted); }
.tile.alert .n { color: var(--rose-ink); }
.signal { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.signal:hover strong { text-decoration: underline; text-decoration-color: var(--rose); }
.signal .thumb { width: 64px; height: 84px; }

/* Presentation and share */
.present { background: #fff; min-height: 100vh; padding: 28px 18px 48px; }
.present header { text-align: center; margin-bottom: 26px; }
.present header .logo { max-height: 56px; margin: 0 auto 10px; }
.present h1 { font-size: clamp(30px, 5vw, 46px); }
.compare { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1300px; margin: 0 auto; }
.compare figure { margin: 0; }
.compare figure:only-child { width: 100%; max-width: 520px; justify-self: center; }
.compare figcaption { padding: 12px 4px 0; display: grid; gap: 4px; }
.compare .photo { border-radius: var(--radius-l); }
.preview-label { font-size: 12px; color: var(--muted); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(440px, 100%); padding: 28px; }
.auth h1 { margin-bottom: 6px; }
.auth .lede { color: var(--muted); margin-bottom: 20px; }
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.person { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font: inherit; color: inherit; min-height: 120px; }
.person .avatar { width: 56px; height: 56px; font-size: 20px; }
.person[aria-pressed="true"] { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-tint); }
.pin { letter-spacing: 0.4em; text-align: center; font-size: 26px !important; }

/* Scanner */
.scanner { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #1f1a18; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; }
@media (min-width: 768px) { .scanner { aspect-ratio: 4 / 3; } }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 22% 12%; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 18px; }
.scanner .state { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; text-align: center; font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

/* Tables (admin, history) */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-weight: 600; color: var(--muted); font-size: 13px; background: #fcfcfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.admin-nav a[aria-current="page"] { background: var(--espresso); color: #fff; }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 22px 18px 60px; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }

/* States */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.loading { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }
.skeleton { background: linear-gradient(90deg, #f3f1f0 25%, #faf9f8 50%, #f3f1f0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.timeline li { padding-left: 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.timeline li > a:first-child, .section-head a { display: inline-flex; align-items: center; min-height: 44px; }
.timeline li > a:first-child { margin: -13px 0; }

.sheet-actions { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.inline-form { display: inline; }
.spacer { flex: 1 1 auto; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt0 { margin-top: 0 !important; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.hide { display: none !important; }
