:root {
  color-scheme: dark;
  --ink: #071015;
  --panel: rgba(12, 22, 28, 0.86);
  --line: rgba(232, 196, 154, 0.18);
  --text: #e7f1ef;
  --muted: #8ea4a6;
  --copper: #e4b07a;
  --copper-deep: #8c5a32;
  --signal: #7ddec8;
  --danger: #ff8b7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; }
body {
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(228, 176, 122, 0.18), transparent 60%),
    radial-gradient(800px 480px at 110% 0%, rgba(125, 222, 200, 0.12), transparent 55%),
    var(--ink);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  perspective: 1200px;
}
.card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 34, 40, 0.95), rgba(8, 14, 18, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(6deg) translateZ(0);
  animation: lift 0.6s ease forwards;
}
@keyframes lift { to { transform: rotateX(0); } }
.mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--copper), var(--copper-deep));
  color: #1a1008; font-weight: 700;
  box-shadow: 0 10px 24px rgba(228, 176, 122, 0.28);
}
h1 { margin: 14px 0 6px; font-size: 32px; letter-spacing: -0.04em; }
.lede, .note { color: var(--muted); line-height: 1.45; }
label { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--muted); }
input, textarea {
  width: 100%; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  background: rgba(0,0,0,0.28); padding: 12px 14px; outline: none;
}
input:focus, textarea:focus { border-color: rgba(125, 222, 200, 0.7); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.primary, .ghost, .danger {
  border: 0; border-radius: 999px; padding: 11px 16px;
}
.primary { background: linear-gradient(180deg, #f0c89a, var(--copper)); color: #24160c; font-weight: 700; }
.ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.danger { background: rgba(255, 139, 122, 0.16); color: var(--danger); }
.tabs { display: flex; gap: 8px; margin: 18px 0; }
.tabs button[aria-selected="true"] { background: rgba(125, 222, 200, 0.16); color: var(--signal); }

.shell {
  height: 100%;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--rail-w, 300px) 10px minmax(0, 1fr);
  min-height: 0;
}
body.rail-slim .shell { grid-template-columns: 76px minmax(0, 1fr); }
.floor {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
  margin: 8px; padding: 8px 4px 6px;
  border-radius: 22px; border: 1px solid var(--line);
  background: rgba(4, 10, 12, 0.94);
}
.floor-btn {
  position: relative; border: 0; background: transparent; color: var(--muted);
  border-radius: 14px; padding: 8px 0 4px;
  display: grid; justify-items: center; gap: 3px; font-size: 10px; letter-spacing: 0.02em;
}
.floor-btn svg { width: 20px; height: 20px; }
.floor-btn[aria-selected="true"] { color: var(--text); }
.floor-btn[aria-selected="true"]::before {
  content: ""; position: absolute; top: 2px; width: 16px; height: 2px; border-radius: 2px;
  background: var(--copper);
}
.floor .count {
  position: absolute; top: 6px; right: 6px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px;
  background: var(--copper); color: #24160c; font-size: 9px; font-weight: 700; line-height: 15px;
}
.desk { display: grid; gap: 10px; padding: 8px; }
.desk-grid { display: grid; gap: 8px; }
.desk-row {
  display: grid; gap: 4px; padding: 12px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.desk-row span { color: var(--muted); font-size: 13px; }
.rail, .stage {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(8, 16, 20, 0.78);
  overflow: hidden;
}
.stage { background: rgba(5, 12, 16, 0.45); }
.splitter { cursor: col-resize; touch-action: none; position: relative; }
.splitter::before {
  content: "";
  position: absolute;
  top: 12px; bottom: 12px; left: 4px; width: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
}
.splitter:hover::before, .splitter:focus-visible::before { background: var(--copper); }
.rail { display: flex; flex-direction: column; }
.rail > .brand, .thread-head, .rail-tools { padding: 12px; }
.composer { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
.rail > .brand, .thread-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rail > .brand { justify-content: flex-start; }
.rail > .brand .profile { margin-left: auto; }
.brand strong, .thread-head strong { display: block; }
.grow { flex: 1; min-width: 0; }
.rail > .brand .grow strong, .thread-head .grow strong {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-tools { display: flex; gap: 8px; align-items: center; }
.rail-tools input { flex: 1; min-width: 0; }
.new-chat { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 10px 12px; }
.new-chat svg, .icon-btn svg, .send-btn svg { width: 18px; height: 18px; display: block; }
#list, .thread { overflow: auto; }
#list { flex: 1; min-height: 0; padding: 6px; }
.chat {
  width: 100%; text-align: left; border: 0; border-radius: 0; border-left: 2px solid transparent;
  background: transparent; padding: 11px 12px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px;
}
.chat[aria-current="true"] { background: rgba(228, 176, 122, 0.08); border-left-color: var(--copper); }
.chat:hover { background: rgba(255,255,255,0.04); }
.avatar {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(125,222,200,0.3), rgba(228,176,122,0.25));
  position: relative;
}
.pip { width: 10px; height: 10px; border-radius: 50%; background: #5b6b6d; position: absolute; right: -2px; bottom: -2px; border: 2px solid #102026; }
.pip.on { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.badge { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--copper); color: #24160c; font-size: 12px; font-weight: 700; }

.stage { display: flex; flex-direction: column; position: relative; }
#thread-search { margin: 10px 12px 0; width: auto; }
.thread { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.empty { margin: auto; text-align: center; max-width: 420px; color: var(--muted); display: grid; gap: 8px; justify-items: center; padding: 24px 16px; }
.empty strong { color: var(--text); font-size: 22px; letter-spacing: -0.03em; }
.empty p { margin: 0; }
.bubble {
  max-width: min(72%, 560px);
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  animation: rise 0.22s ease;
}
.bubble.mine { margin-left: auto; background: linear-gradient(180deg, rgba(228,176,122,0.22), rgba(140,90,50,0.28)); }
.system { align-self: center; color: var(--muted); font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.meta { display: flex; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.quote { border-left: 2px solid var(--signal); padding-left: 8px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.media { max-width: 100%; border-radius: 12px; display: block; margin-top: 6px; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; opacity: 0; }
.bubble:hover .actions, .bubble:focus-within .actions { opacity: 1; }
.actions button, .icon {
  border: 0; background: rgba(0,0,0,0.2); border-radius: 999px; padding: 4px 8px; font-size: 12px;
}
.composer { border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 8px; }
.compose-row {
  display: flex; gap: 4px; align-items: flex-end;
  padding: 4px; border-radius: 22px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
}
.compose-row textarea { border: 0; background: transparent; border-radius: 16px; min-height: 40px; padding: 10px 8px; }
textarea { resize: none; min-height: 46px; max-height: 140px; }
.icon-btn, .send-btn {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center; flex: none;
  border-radius: 14px; border: 0; background: transparent; color: var(--text);
}
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: rgba(255,255,255,0.08); }
#voice.recording, #clip.recording { color: var(--danger); background: rgba(255, 139, 122, 0.16); }
.send-btn.primary { width: 40px; height: 40px; padding: 0; border-radius: 14px; }
.reply-bar, .warn, .assist, .bridges {
  display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 14px; background: rgba(125,222,200,0.08);
}
.warn { background: rgba(228, 176, 122, 0.14); color: #f3ddc6; font-size: 13px; }
.assist, .bridges { align-items: stretch; flex-direction: column; }
.assist-note, .assist-out { margin: 0; color: var(--muted); font-size: 13px; }
.assist-out:empty { display: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.back { display: none; }
.quiet { color: var(--muted); }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 6;
  min-width: 196px; padding: 6px;
  background: #102026; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.menu-item {
  width: 100%; text-align: left; background: transparent; border: 0;
  border-radius: 10px; padding: 10px 12px;
}
.menu-item:hover { background: rgba(255,255,255,0.06); }
.menu-label { margin: 6px 12px 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.link-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center;
  margin-top: 8px; padding: 6px; border-radius: 12px;
  background: rgba(0,0,0,0.22); color: inherit; text-decoration: none;
}
.link-card img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.link-card:not(:has(img)) { grid-template-columns: 1fr; }
.link-copy { display: grid; min-width: 0; }
.link-card .site { color: var(--copper); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.link-card strong, .link-card .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rail-slim .rail-tools,
body.rail-slim .rail > .brand .grow,
body.rail-slim .profile,
body.rail-slim .chat strong,
body.rail-slim .chat .sub,
body.rail-slim .splitter { display: none; }
body.rail-slim .chat { grid-template-columns: 1fr; justify-items: center; padding: 8px 4px; position: relative; }
body.rail-slim .badge { position: absolute; top: 6px; right: 10px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; color: transparent; }

.call {
  position: fixed; inset: 16px; z-index: 20; border-radius: 28px; overflow: hidden;
  background: #05080b; box-shadow: var(--shadow); display: grid;
}
#remote, #local { width: 100%; height: 100%; object-fit: cover; background: #05080b; }
#local {
  position: absolute; width: 180px; height: 120px; right: 18px; bottom: 84px;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.call-bar {
  position: absolute; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px; border-radius: 18px; background: rgba(7,16,21,0.8);
}
.bubble a { color: var(--signal); }
dialog {
  width: min(480px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 24px;
  background: #0d181e; color: var(--text); padding: 18px; box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,0.55); }
.person { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #10242a; border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px;
  box-shadow: var(--shadow); z-index: 30;
}

@media (max-width: 860px) {
  .shell, body.rail-slim .shell { grid-template-columns: 1fr; }
  .splitter { display: none; }
  .rail, .stage { min-height: 100%; }
  body:not(.chat-open) .stage { display: none; }
  body.chat-open .rail { display: none; }
  .back { display: grid; }
  .icon-btn, .send-btn { width: 36px; height: 36px; }
  .bubble { max-width: 88%; }
  .bubble .actions { opacity: 1; }
  #local { width: 112px; height: 78px; }
}
@media (hover: none) {
  .bubble .actions { opacity: 1; }
}
body:not(.chat-open) .composer,
body:not(.chat-open) #thread-search { display: none; }
body.home {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(228, 176, 122, 0.28), transparent 60%),
    radial-gradient(600px 280px at 100% 0%, rgba(125, 222, 200, 0.18), transparent 55%),
    var(--ink);
  color: var(--text);
}
.home { max-width: 880px; margin: 0 auto; padding: 28px 20px 64px; }
.home-bar, .brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { justify-content: flex-start; font-size: 18px; }
.hero { margin: 28px 0 18px; }
.home h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.95; letter-spacing: -0.045em; margin: 8px 0; }
.home h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.home .lede, .home .fine, body.home .note { color: var(--muted); }
.eyebrow { margin: 0; color: #8c5a32; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.panel {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  color: var(--text);
}
.panel.split { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: center; }
.install-card { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: center; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 10px 0; }
.step p { margin: 0; }
.num {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(28, 22, 18, 0.16); font-size: 13px;
}
.qr { min-height: 180px; display: grid; place-items: center; background: #fff; border-radius: 18px; padding: 8px; }
.qr svg { width: 180px; height: 180px; }
.art svg { width: 100%; height: auto; }
.textish { background: none; border: 0; padding: 8px 0; color: #8c5a32; text-decoration: underline; text-underline-offset: 3px; }
.fine { text-align: center; margin-top: 18px; }
.home.narrow { max-width: 520px; }
.devices p { margin: 2px 0; }
body.home .ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
body.home input, body.home textarea { background: color-mix(in srgb, var(--ink) 86%, white); color: var(--text); border-color: var(--line); }
@media (max-width: 720px) {
  .panel.split, .install-card { grid-template-columns: 1fr; }
}
.look { margin: 8px 0 18px; }
.swatches, .sso .row, .person .row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 16px; border: 2px solid transparent; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,0.35);
}
.swatch[aria-pressed="true"] { border-color: var(--copper); }
.swatch.night { background: #071015; }
.swatch.day { background: #f4efe6; }
.swatch.dusk { background: #4a2c22; }
.swatch.sea { background: #0e4c52; }
.list-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.list-title {
  margin: 0; flex: 1; min-width: 0; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.chips { display: flex; gap: 16px; overflow: auto; padding: 2px 14px 0; }
.chips button {
  border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted);
  border-radius: 0; padding: 8px 0; white-space: nowrap; font-size: 13px;
}
.chips button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--copper); background: transparent; }
.chat-row { display: flex; align-items: center; }
.chat-row .chat { flex: 1; min-width: 0; }
.chat-row > .icon-btn.on { color: var(--copper); }
.archive-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--muted); padding: 12px; text-align: left;
}
.archive-row svg { width: 18px; height: 18px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool {
  text-align: left; border-radius: 18px; padding: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: grid; gap: 4px;
}
.tool span { color: var(--muted); font-size: 12px; line-height: 1.35; }
body:not([data-tab="chats"]) .list-head .icon-btn,
body:not([data-tab="chats"]) .list-head .plus { display: none; }
.set-page { display: grid; gap: 10px; padding: 4px 4px 18px; }
.you-card { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.set-card {
  border: 1px solid var(--line); border-radius: 22px; padding: 0 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.set-card summary {
  list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 0; cursor: pointer; font-weight: 650;
}
.set-card summary::-webkit-details-marker { display: none; }
.set-card summary::after { content: "›"; margin-left: auto; color: var(--muted); font-weight: 400; }
.set-card[open] summary::after { content: "⌄"; }
.set-card .count {
  position: static; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--signal); color: #04221e; font-size: 11px; font-weight: 700; line-height: 18px;
}
.set-body { display: grid; gap: 8px; padding: 0 0 14px; }
.switch { display: flex; align-items: center; gap: 8px; color: var(--text); }
.set-index { display: grid; gap: 4px; }
.set-index button {
  text-align: left; border: 0; background: transparent; color: var(--text);
  border-radius: 14px; padding: 12px;
}
.set-index button:hover { background: rgba(255, 255, 255, 0.04); }
body.settings-open .composer,
body.settings-open #thread-search { display: none; }
body.settings-open #thread { padding: 12px 18px 28px; }
body.settings-open #thread .set-page { max-width: 680px; }
.plus { position: relative; }
.plus summary { list-style: none; }
.plus summary::-webkit-details-marker { display: none; }
.plus .menu { top: calc(100% + 6px); right: 0; }
select { width: 100%; border-radius: 14px; padding: 12px 14px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.08); }
.note-pad, .update, .update-form { display: grid; gap: 8px; }
.update, .update-form { padding: 8px; }
body.note-open .composer, body.note-open #thread-search,
body.reel-open .composer, body.reel-open #thread-search { display: none; }
body.rail-slim .list-head,
body.rail-slim .chips,
body.rail-slim .floor-btn span,
body.rail-slim .chat-row > .icon-btn { display: none; }
body.rail-slim .floor { grid-template-columns: 1fr 1fr; margin: 4px; padding: 4px; }
.ghost[aria-pressed="true"] { border-color: var(--copper); color: var(--copper); }
html[data-texture="grain"] body {
  background-image:
    radial-gradient(rgba(255,255,255,0.2) 0.6px, transparent 0.7px),
    radial-gradient(900px 420px at 8% -10%, rgba(228, 176, 122, 0.18), transparent 60%),
    var(--ink);
  background-size: 4px 4px, auto, auto;
}
html[data-texture="linen"] body {
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(127,127,127,0.16) 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(127,127,127,0.16) 4px),
    var(--ink);
}
html[data-texture="grain"] .rail,
html[data-texture="grain"] .stage,
html[data-texture="linen"] .rail,
html[data-texture="linen"] .stage { background: color-mix(in srgb, var(--panel) 84%, transparent); }
html[data-theme="day"] {
  color-scheme: light;
  --ink: #f4efe6;
  --panel: rgba(255, 253, 248, 0.94);
  --line: rgba(28, 22, 18, 0.12);
  --text: #1c1612;
  --muted: #6b5f55;
  --copper: #8c5a32;
  --signal: #1d7a66;
  --danger: #9f2d22;
  --shadow: 0 18px 40px rgba(70, 46, 22, 0.08);
}
html[data-theme="day"] .rail { background: rgba(255, 252, 247, 0.92); }
html[data-theme="day"] .stage { background: #f7f1e8; }
html[data-theme="day"] input,
html[data-theme="day"] textarea,
html[data-theme="day"] .compose-row,
html[data-theme="day"] .menu,
html[data-theme="day"] dialog { background: #fffdf8; color: var(--text); border-color: var(--line); }
html[data-theme="day"] .bubble { background: #fff; color: var(--text); }
html[data-theme="day"] .bubble.mine { background: linear-gradient(180deg, #f6e6d4, #ecd4b4); }
html[data-theme="day"] .ghost, html[data-theme="day"] .icon-btn { color: var(--text); }
html[data-theme="day"] .chat[aria-current="true"],
html[data-theme="day"] .chat:hover,
html[data-theme="day"] .icon-btn:hover { background: rgba(28, 22, 18, 0.06); }
html[data-theme="day"] .pip { border-color: #f4efe6; }
html[data-theme="dusk"] {
  --ink: #140e0c;
  --panel: rgba(42, 24, 18, 0.92);
  --text: #f6efe6;
  --muted: #c4aa96;
  --copper: #e7b089;
  --line: rgba(231, 176, 137, 0.24);
  --signal: #e7c7a4;
}
html[data-theme="dusk"] .rail { background: rgba(36, 20, 16, 0.94); }
html[data-theme="dusk"] .stage { background: rgba(18, 10, 8, 0.88); }
html[data-theme="sea"] {
  --ink: #061416;
  --panel: rgba(8, 36, 40, 0.92);
  --text: #e5f6f4;
  --muted: #8eb0ae;
  --copper: #8fd0c4;
  --copper-deep: #1d6b60;
  --line: rgba(143, 208, 196, 0.24);
  --signal: #9be7d4;
}
html[data-theme="sea"] .rail { background: rgba(7, 32, 36, 0.94); }
html[data-theme="sea"] .stage { background: rgba(4, 18, 20, 0.9); }
html[data-theme="sea"] .primary { color: #04221e; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
