@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f1f1f;
  --ink-2: #3c4043;
  --panel: #ffffff;
  --panel-2: #f0f4f9;
  --line: rgba(60, 64, 67, 0.14);
  --brass: #0b57d0;
  --brass-deep: #0842a0;
  --cream: #1f1f1f;
  --muted: #5f6368;
  --faint: #80868b;
  --moss: #137333;
  --danger: #c5221f;
  --ok: #137333;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 12px 32px rgba(60, 64, 67, 0.12);
  --serif: "Outfit", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sidebar: 280px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(211, 227, 253, 0.85), transparent 62%),
    #f7f9fc;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brass); }
::selection { background: rgba(11, 87, 208, 0.18); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #c4c7c5 transparent; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brass);
  color: #fff;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }
.noscript { padding: 24px; }

.splash, .gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
}
.mark, .gate h1, .auth-copy h1, .empty h2, .modal-panel h2, .panel-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mark { font-size: 42px; margin: 0; }

.auth {
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
}
.auth-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(211, 227, 253, 0.45), transparent 42%);
}
.brand-lockup { display: flex; gap: 14px; align-items: center; }
.logo { width: 46px; height: 46px; color: var(--brass); }
.brand-lockup strong { display: block; font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.brand-lockup span, .eyebrow, .muted, .hint, .msg-who { color: var(--muted); }
.auth-copy h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; margin: 32px 0 12px; max-width: 12ch; font-weight: 500; }
.auth-copy p { max-width: 36ch; line-height: 1.5; }
.auth-card { display: grid; place-items: center; padding: 32px 20px; }
.auth-mark { display: none; margin: 0 0 18px; }
.card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.model-create { width: min(640px, 100%); margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs a, .nav-btn, .chip {
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
}
.tabs a[aria-current="page"], .chip[aria-pressed="true"], .nav-btn[aria-current="page"] {
  color: var(--ink);
  background: #d3e3fd;
}
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.tier-field { margin: 0; min-width: min(100%, 180px); }
.field input, .field textarea, .field select, .composer textarea, .search input {
  width: 100%;
  font-size: 16px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 12px 14px;
}
.form-error { color: var(--danger); min-height: 1.2em; margin: 0 0 8px; }
.btn, .icon-btn, .text-btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
}
.btn { padding: 0 16px; }
.btn-brass { background: var(--brass); color: #fff; font-weight: 600; }
.btn-ghost { background: #f0f4f9; color: var(--ink); border: 0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { width: 100%; }
.icon-btn, .text-btn { background: transparent; color: var(--muted); min-width: 42px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.glyph { width: 18px; height: 18px; display: block; }
.text-btn { min-height: 32px; padding: 0 8px; }
.listen-btn { min-height: 44px; padding: 0 12px; }
.row-actions, .split { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gate-card { width: min(560px, 100%); }
.pulse {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  box-shadow: 0 0 0 10px rgba(11, 87, 208, 0.08);
  animation: fragarvis-pulse 1.8s ease-out infinite;
}
@keyframes fragarvis-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 87, 208, 0.28); }
  100% { box-shadow: 0 0 0 18px rgba(11, 87, 208, 0); }
}

.shell { height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-columns: var(--sidebar) 1fr; background: #fff; }
.sidebar, .admin-nav {
  background: #f0f4f9;
  border-right: 0;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.sidebar { height: 100%; overflow-x: hidden; overflow-y: auto; }
.side-label { margin: 12px 4px 0; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.list { display: grid; gap: 4px; }
.item, .person, .model-row, .key-card, .tier-card, .stat, .audit-item {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 16px;
  text-align: left;
}
.item {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  color: inherit;
}
.item strong, .person strong { font-weight: 600; }
.item small, .person small, .meta { color: var(--faint); font-size: 12px; }
.test-ok { color: var(--ok); }
.test-fail { color: var(--danger); }
.item:hover, .person:hover, .tier-card:hover { background: #e8eef6; }
.item[data-accent] { box-shadow: inset 3px 0 0 var(--accent); }
.item.active,
.item.active[data-accent] { background: #d3e3fd; box-shadow: inset 3px 0 0 var(--accent, transparent); }
.item-open {
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 0;
  min-height: 42px;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}
.item-open strong, .item-open small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .actions { display: flex; grid-column: 2; grid-row: 1; align-self: center; }
#projects { max-height: 24vh; overflow: auto; }
#conversations { flex: 1; min-height: 9rem; overflow: auto; }
.me { margin-top: auto; flex-shrink: 0; min-width: 0; display: flex; justify-content: space-between; gap: 8px; align-items: center; padding-top: 12px; }
.me > div { min-width: 0; flex: 1; }
.me strong, #me-tier { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content) minmax(0, max-content); background: linear-gradient(180deg, rgba(232, 240, 254, 0.65), #fff 280px); }
.topbar, .panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar { box-sizing: border-box; max-height: 34dvh; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding: calc(18px + env(safe-area-inset-top)) 22px 18px; }
.panel-head { flex-wrap: wrap; align-items: flex-end; padding: 18px 22px; }
.topbar > div { min-width: 0; flex: 1; }
.topbar h1, .panel-head h2 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 28px; }
.topbar h1 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.eyebrow { margin: 0 0 2px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding: 12px 22px 24px; }
.thread-inner { width: min(760px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.thread-inner .older-btn { width: 100%; text-align: left; padding-left: 16px; padding-right: 16px; }
.empty { padding: 8vh 0 2vh; text-align: center; }
.empty h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin: 0 0 8px; font-weight: 500; }
.msg { width: 100%; max-width: 100%; min-width: 0; }
.msg-user { width: fit-content; max-width: min(100%, 40rem); justify-self: end; }
.msg-who { margin: 0 0 6px; font-size: 13px; }
.msg-body {
  line-height: 1.65;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.msg-user .msg-body { background: #f0f4f9; border-radius: 20px 20px 6px 20px; padding: 12px 16px; white-space: pre-wrap; }
.msg-body p, .msg-body ul, .msg-body ol { margin: 0 0 10px; }
.msg-body h3, .msg-body h4, .msg-body h5 { font-size: 1rem; margin: 0 0 8px; font-weight: 600; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-body pre, .msg-body code { font-family: var(--mono); font-size: 13px; }
.msg-body code { background: #f1f3f4; padding: 1px 5px; border-radius: 6px; }
.msg-body pre { padding: 12px; overflow: auto; max-width: 100%; border-radius: 12px; background: #f1f3f4; }
.msg-body pre code { background: transparent; padding: 0; }
.msg-body a { text-underline-offset: 3px; }
.tool-status { margin: 6px 0 0; color: var(--moss); font-size: 13px; }
.composer {
  width: auto;
  margin: 0;
  box-sizing: border-box;
  min-height: 0;
  max-height: 46dvh;
  padding: 0 22px calc(18px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.composer .field, .composer-box, .composer .hint { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.composer-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 28px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 8px 24px rgba(60, 64, 67, 0.08);
}
.composer textarea { resize: none; min-height: 48px; max-height: 180px; line-height: 24px; border: 0; background: transparent; }
.composer-box #send { align-self: end; height: 48px; min-width: 9.25rem; }
.item-action { min-width: 0; min-height: 42px; padding: 0 8px; font-size: 13px; }
.composer textarea:focus { outline: none; }
.composer-box:focus-within { border-color: transparent; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16), 0 0 0 3px rgba(11, 87, 208, 0.16); }
.top-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hint { margin: 8px 12px 0; font-size: 12px; }
.composer .hint { margin-left: 0; margin-right: 0; }
.hint .mono, .mono { font-family: var(--mono); font-size: 12px; }
.meter { min-width: 180px; }
.meter p { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-align: right; }
.bar { height: 4px; background: #e8eaed; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--brass); }
.bar[data-level="1"] span { width: 5%; } .bar[data-level="2"] span { width: 10%; }
.bar[data-level="3"] span { width: 15%; } .bar[data-level="4"] span { width: 20%; }
.bar[data-level="5"] span { width: 25%; } .bar[data-level="6"] span { width: 30%; }
.bar[data-level="7"] span { width: 35%; } .bar[data-level="8"] span { width: 40%; }
.bar[data-level="9"] span { width: 45%; } .bar[data-level="10"] span { width: 50%; }
.bar[data-level="11"] span { width: 55%; } .bar[data-level="12"] span { width: 60%; }
.bar[data-level="13"] span { width: 65%; } .bar[data-level="14"] span { width: 70%; }
.bar[data-level="15"] span { width: 75%; } .bar[data-level="16"] span { width: 80%; }
.bar[data-level="17"] span { width: 85%; } .bar[data-level="18"] span { width: 90%; }
.bar[data-level="19"] span { width: 95%; } .bar[data-level="20"] span { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.admin { min-height: 100dvh; display: grid; grid-template-columns: 248px 1fr; align-items: start; }
.admin-nav { align-items: stretch; overflow: auto; position: sticky; top: 0; max-height: 100dvh; }
.admin-nav #nav { display: grid; gap: 4px; min-width: 0; }
.admin-nav .nav-btn { display: block; text-align: left; white-space: nowrap; }
.admin-actions { display: grid; gap: 8px; margin-top: auto; }
.btn:disabled, select:disabled, .btn[disabled], .text-btn:disabled, .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.key-card { align-content: start; }
.canvas { padding: 8px max(22px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat, .tier-card, .key-card, .person, .audit-item, .model-row {
  background: #fff;
  border-color: var(--line);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}
.stat b { display: block; font-family: var(--sans); font-size: 32px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 10px; align-content: start; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.pill-pending { color: #062e6f; background: #d3e3fd; }
.pill-approved { color: #0d471a; background: #ceead6; }
.pill-rejected, .pill-disabled { color: #8c1d18; background: #f9dedc; }
.person, .audit-item { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 22rem); gap: 12px; align-items: center; }
.person strong, .person .meta { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-id, .person-status, .person .row-actions { min-width: 0; }
.model-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto auto; gap: 12px; align-items: center; }
.item > strong, .item > small { grid-column: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; align-items: flex-end; }
.person-search { margin: 0; min-width: min(100%, 240px); flex: 1 1 220px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check, .limit-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: radial-gradient(circle, var(--accent) 0 9px, transparent 10px);
}
.dot[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1f1f1f;
  background: radial-gradient(circle, var(--accent) 0 9px, transparent 10px);
}
[data-accent="#e0b15a"] { --accent: #e0b15a; }
[data-accent="#d4654f"] { --accent: #d4654f; }
[data-accent="#8ea176"] { --accent: #8ea176; }
[data-accent="#7eb0c8"] { --accent: #7eb0c8; }
[data-accent="#c58bb3"] { --accent: #c58bb3; }
[data-accent="#d8d2c6"] { --accent: #8a8478; }
.toggle { width: 46px; height: 28px; border-radius: 999px; border: 0; background: #e0e3e7; position: relative; }
.toggle i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 5px; left: 5px; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3); }
.toggle[aria-pressed="true"] { background: var(--brass); }
.toggle[aria-pressed="true"] i { transform: translateX(18px); }
.scrim, .close-drawer { display: none; }
.menu { display: none; }
.modal { position: fixed; inset: 0; background: rgba(32, 33, 36, 0.4); display: grid; place-items: center; z-index: 4; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.modal-panel { width: min(720px, 100%); max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px), 900px); overflow: auto; background: #fff; border: 0; border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
#toasts { position: fixed; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); right: auto; display: grid; gap: 8px; z-index: 6; max-width: min(320px, calc(100% - 32px)); }
.toast { background: #fff; color: var(--ink); border: 0; border-radius: 16px; padding: 12px 14px; max-width: 320px; box-shadow: var(--shadow); cursor: pointer; }
.toast-ok { border-color: rgba(183, 208, 176, 0.6); }
.notice { border: 1px dashed var(--line); border-radius: 18px; padding: 14px; color: var(--muted); }
.notice-danger { color: var(--danger); border-color: var(--danger); border-style: solid; background: rgba(231, 161, 148, 0.08); }
.thread-alert {
  display: grid;
  justify-items: start;
  gap: 8px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 22px 8px;
  max-height: 28dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.thread-alert[hidden] { display: none; }
.thread-alert .notice { width: min(760px, 100%); margin: 0; }
.thread-alert .btn {
  width: auto;
  min-width: 9.25rem;
  margin: 0;
  text-align: center;
  border-radius: 999px;
  border: 0;
  background: #d3e3fd;
  color: #062e6f;
}
.sidebar .logo, .admin-nav .logo { width: 36px; height: 36px; }
#new-chat { background: #dde3ea; color: var(--ink); }
#new-chat:hover { background: #d3d9e1; }
.sidebar .btn-ghost { background: #fff; }
.tabs a:hover, .nav-btn:hover, .chip:hover { background: #e8eef6; }
.tabs a[aria-current="page"]:hover, .chip[aria-pressed="true"]:hover, .nav-btn[aria-current="page"]:hover { background: #d3e3fd; }
.composer .field { display: flex; align-items: center; gap: 8px; margin: 0 auto 6px; color: var(--muted); }
.composer .field select { width: auto; max-width: 100%; border: 0; background: transparent; padding: 4px 0; color: var(--muted); }
.stage.home .thread { display: flex; flex-direction: column; justify-content: flex-end; }
.stage.home .empty { padding: 0 8px 12px; }
.stage.home .composer { padding-bottom: calc(clamp(20px, 14vh, 120px) + env(safe-area-inset-bottom)); }
.stage.home .composer .hint { text-align: center; }

@media (max-width: 980px) {
  body:has(.shell) #toasts { bottom: calc(260px + env(safe-area-inset-bottom)); }
  body:has(.sidebar.open) #toasts { top: calc(72px + env(safe-area-inset-top)); bottom: auto; }
}
@media (min-width: 981px) {
  body:has(.shell) #toasts { left: calc(var(--sidebar) + 22px); top: calc(120px + env(safe-area-inset-top)); bottom: auto; }
  body:has(.admin) #toasts { left: 270px; top: calc(24px + env(safe-area-inset-top)); bottom: auto; }
}
@media (max-width: 980px) {
  .auth, .shell, .admin, .stats, .grid-2, .person, .model-row { grid-template-columns: 1fr; }
  .auth-copy { display: none; }
  .auth-mark { display: flex; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(100%, 420px); height: 100dvh; overflow-x: hidden; overflow-y: auto; visibility: hidden; transform: translateX(-105%); z-index: 3; transition: transform .2s ease; background: #f0f4f9; box-shadow: var(--shadow); }
  .close-drawer { display: inline-flex; margin-left: auto; }
  .sidebar.open { transform: none; visibility: visible; }
  .sidebar.open + .scrim { display: block; position: fixed; inset: 0; z-index: 2; border: 0; padding: 0; background: rgba(32, 33, 36, 0.32); }
  .menu { display: inline-flex; }
  .admin-nav { min-height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); background: #f7f9fc; }
  .admin-nav #nav { display: flex; flex-wrap: wrap; }
  .admin-nav .nav-btn { width: auto; white-space: normal; }
  .admin-actions { display: flex; flex-wrap: wrap; margin-top: 0; }
  .audit-item { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; }
  .meter { min-width: 0; }
  .meter p { text-align: left; }
  .topbar { align-items: flex-start; }
  .stage.home .composer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .stage.home .empty h2 { font-size: 28px; }
}

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