/* Self-hosted. No external font requests. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5ead8;
  --surface: #ebddc5;
  --card: #f9f4ed;
  --border: #dcd3c4;
  --ink: #201e1d;
  --ink-soft: #645c50;
  --ink-faint: #82796a;

  --accent: #c67139;
  --accent-deep: #8c491a;
  --accent-tint: #fff2eb;
  --accent-edge: #ffc6a5;

  --sage: #7a8a5e;
  --sage-deep: #56633f;
  --sage-tint: #f0fae1;
  --sage-edge: #ccdbb2;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);

  --display: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  --page-max: 34rem;
  --page-pad: 1.15rem;

  --house-brass: #c4a574;
  --house-brass-deep: #8c6a3a;
  --house-wood: #3d2418;
  --house-shade: #201810;
  --house-hour: #d5c9a4;
  --house-lamp: color-mix(in srgb, #ffe08a 0%, transparent);
  --lamp-cord: clamp(4.2rem, 12vh, 6.4rem);
  --lamp-clear: calc(var(--lamp-cord) + 2.8rem);
}

html[data-scene="dawn"] {
  --house-hour: #f3c9a4;
  --house-lamp: color-mix(in srgb, #ffd7a8 28%, transparent);
}
html[data-scene="morning"] {
  --house-hour: #c5dce8;
  --house-lamp: color-mix(in srgb, #fff6d4 18%, transparent);
}
html[data-scene="afternoon"] {
  --house-hour: #d5c9a4;
  --house-lamp: color-mix(in srgb, #fff1b0 10%, transparent);
}
html[data-scene="golden"] {
  --house-hour: #e0783c;
  --house-lamp: color-mix(in srgb, #ffb25a 42%, transparent);
}
html[data-scene="dusk"] {
  --house-hour: #6a4a78;
  --house-lamp: color-mix(in srgb, #f0c070 38%, transparent);
}
html[data-scene="night"] {
  --house-hour: #14183a;
  --house-lamp: color-mix(in srgb, #c4a574 32%, transparent);
  --house-shade: #08060c;
}

@media (min-width: 40rem) {
  :root { --page-pad: 2rem; }
}
@media (min-width: 50rem) {
  :root {
    --page-max: 100rem;
    --page-pad: 1.2rem;
    --rail-width: 4rem;
    --rail-gutter: calc(var(--rail-width) + 0.4rem);
  }
}
@media (min-width: 64rem) {
  :root {
    --page-max: 120rem;
    --page-pad: 1.3rem;
    --rail-width: 4.15rem;
  }
}
@media (min-width: 90rem) {
  :root {
    --page-max: 160rem;
    --page-pad: 1.4rem;
    --rail-width: 4.25rem;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis: none;
  overflow-x: clip;
  max-width: 100%;
}

.wrap {
  max-width: var(--page-max);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 2.25rem var(--page-pad) 1rem;
  padding-top: calc(2.25rem + env(safe-area-inset-top, 0px));
  overflow-wrap: anywhere;
}
@media (min-width: 50rem) {
  .wrap {
    padding-left: var(--rail-gutter);
    padding-right: var(--rail-gutter);
  }
}

/* ---------- Type ---------- */

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.15rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.masthead { position: relative; margin-bottom: 2.25rem; }
.masthead--tight { margin-bottom: 1.75rem; }
.masthead-tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: none;
}
body.desk-page .masthead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  position: relative;
  margin-bottom: 1.1rem;
}
body.desk-page .masthead h1 { margin: 0; }

/* Landing is not a room tab — ring + gear carry navigation. */
body.desk-page.room--desk .nav--site {
  display: none;
}
body.desk-page.room--desk .masthead > .eyebrow {
  display: none;
}

.subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.55rem;
}

.masthead-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}
.masthead-line .eyebrow { margin: 0; }
.masthead-line--solo {
  justify-content: flex-end;
  margin: 0 0 0.35rem;
}
body.desk-page .desk-mail-slot {
  margin: 0 0 0.15rem;
  min-height: 44px;
}
.owner-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, currentColor 55%, transparent);
  cursor: pointer;
  text-decoration: none;
}
.owner-mail svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}
.owner-mail:hover,
.owner-mail:focus-visible {
  color: inherit;
}
.owner-note {
  margin: 0 0 1rem;
}
.owner-note-pop {
  position: fixed;
  inset: 0;
  z-index: 72;
}
.owner-note-pop.hidden {
  display: none !important;
}
.owner-note-pop .note-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, #100c0a 42%, transparent);
}
.masthead .owner-note,
.owner-note-pop .owner-note {
  position: absolute;
  top: 4.6rem;
  right: 0.8rem;
  z-index: 1;
  width: min(22rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, #9ad8ff 8%, transparent), transparent 28%),
    color-mix(in srgb, var(--card, #221810) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 70%, #9ad8ff);
  border-radius: 12px;
  box-shadow: 0 16px 36px color-mix(in srgb, #080604 42%, transparent);
  backdrop-filter: blur(16px);
}
body.desk-page .owner-note-pop .owner-note {
  top: calc(var(--lamp-clear) + env(safe-area-inset-top, 0px) + 0.2rem);
  right: 0.8rem;
  bottom: auto;
}
.owner-note textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
}
.owner-note .actor-field {
  margin: 0 0 0.75rem;
}
.owner-note .save {
  width: auto;
  min-width: 8.5rem;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0 1.1rem;
}
.owner-note-ok {
  margin: 0.5rem 0 0;
}


.eyebrow--accent, .eyebrow--know { color: var(--accent-deep); }
.eyebrow--feel { color: var(--sage-deep); }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.15rem;
}

/* ---------- Principles ---------- */

.card--principles { margin-bottom: 2.5rem; }

.principles {
  margin: 0;
  padding-left: 1.35rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
}

.principles li { margin-bottom: 1.25rem; }
.principles li:last-child { margin-bottom: 0; }

.principles li::marker {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--accent-deep);
}

.principles strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.principles--page {
  padding-left: 0;
  list-style: none;
  counter-reset: principle;
}

.principles--page .card--principle {
  counter-increment: principle;
  position: relative;
  padding-left: 3.35rem;
}

.principles--page .card--principle::before {
  content: counter(principle);
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-edge);
}

.maxim {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
  padding: 1.75rem 1rem 0;
  border-top: 1.5px solid var(--border);
}

.maxim--inline {
  font-size: 1.15rem;
  margin: 1.5rem 0 0;
  padding: 1.15rem 0 0;
  text-align: left;
  color: var(--accent-deep);
}

/* ---------- Notices ---------- */

.notice {
  font-size: 0.95rem;
  margin: 0 0 1.35rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--accent-edge);
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.notice--saved {
  border-color: var(--sage-edge);
  background: var(--sage-tint);
  color: var(--sage-deep);
}

.notice a { color: inherit; text-decoration: underline; }

.desk-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  min-height: 44px;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 46%, transparent);
  background: color-mix(in srgb, var(--house-brass-deep) 42%, transparent);
  color: var(--paper, #f6efe3);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--house-wood) 28%, transparent);
  backdrop-filter: blur(14px);
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
body.has-lamp-hud .desk-toast {
  bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
}
.desk-toast[data-kind="err"] {
  border-color: color-mix(in srgb, var(--accent-deep, #8c3b2a) 50%, transparent);
  background: color-mix(in srgb, var(--accent-deep, #8c3b2a) 38%, transparent);
}

.drag-handle {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--house-brass-deep) 70%, var(--ink-soft));
  cursor: grab;
  touch-action: none;
}
.drag-handle::before {
  content: "";
  width: 10px;
  height: 16px;
  background-image: radial-gradient(circle, currentColor 1.15px, transparent 1.25px);
  background-size: 5px 5.3px;
  background-repeat: repeat;
  opacity: 0.85;
}
.drag-handle:active { cursor: grabbing; }
.is-dragging {
  opacity: 0.72;
  background: color-mix(in srgb, var(--house-brass) 18%, transparent);
}

.desk-notes {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.desk-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.35rem 0.4rem;
  align-items: center;
  min-height: 44px;
  padding: 0.15rem 0;
  font-family: var(--serif);
}
.desk-note-text { min-width: 0; }
.now-pin {
  min-height: 44px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.now-pin.is-on,
.desk-note.is-now .now-pin {
  color: var(--accent-deep, #8c3b2a);
}
.desk-time {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.2rem 0.4rem;
  align-items: start;
}
.desk-time .desk-time-when { grid-column: 2; }
.desk-time p { grid-column: 2; }
.desk-time .now-pin { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.desk-time .drag-handle { grid-column: 1; grid-row: 1 / span 2; }

/* ---------- Form ---------- */

.datefield { margin-bottom: 1.15rem; }

label {
  display: block;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

input[type="date"] {
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  width: 100%;
  min-height: 56px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}

.field--know { background: var(--accent-tint); border-color: var(--accent-edge); }
.field--feel { background: var(--sage-tint); border-color: var(--sage-edge); }

textarea {
  display: block;
  width: 100%;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  padding: 0.9rem 1rem;
  min-height: 10rem;
  background: #fffdfa;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
}

textarea:focus, input[type="date"]:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
}

.divider {
  height: 0;
  margin: 1.6rem 0;
  border: 0;
  border-top: 1.5px solid var(--border);
}

.save {
  display: block;
  width: 100%;
  min-height: 60px;
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fffdfa;
  background: var(--house-brass-deep);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.save:active { background: var(--house-wood); }
.save:disabled {
  opacity: 0.55;
  cursor: wait;
}

.save--secondary {
  margin-top: 0.7rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.creed {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 1.35rem 0 0;
}

/* ---------- Reading an entry ---------- */

.entry-date { font-size: 1.85rem; margin-bottom: 0; }

.read { font-family: var(--serif); }
.read--know { background: var(--accent-tint); border-color: var(--accent-edge); }
.read--feel { background: var(--sage-tint); border-color: var(--sage-edge); }

.read-prompt {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.85rem;
}

.read p { margin: 0 0 0.9rem; font-size: 1.08rem; line-height: 1.65; }
.read p:last-of-type { margin-bottom: 0; }

.meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 1.75rem 0 0;
}

.editlink { font-size: 0.95rem; margin: 0.45rem 0 0; }
.editlink a, .empty a { color: var(--accent-deep); }

.empty { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Archive ---------- */

.archive { list-style: none; margin: 0; padding: 0; }

.card--row { padding: 0; }

.archive a {
  display: block;
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.archive-date {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.preview {
  display: block;
  font-family: var(--serif);
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 0.8rem;
  margin-top: 0.35rem;
  border-left: 3px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview--know { border-left-color: var(--accent); }
.preview--feel { border-left-color: var(--sage); }

/* ---------- Nav ---------- */

.nav {
  max-width: var(--page-max);
  width: 100%;
  margin: 2.25rem auto 0;
  padding: 1.15rem var(--page-pad) 2.5rem;
  border-top: 1.5px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
}

.nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--accent-deep); }

/* ---------- Larger screens ---------- */

@media (min-width: 40rem) {
  body { font-size: 18px; }
  .wrap { padding-top: calc(3.5rem + env(safe-area-inset-top, 0px)); }
  h1 { font-size: 2.7rem; }
  .entry-date { font-size: 2.2rem; }
  .card { padding: 1.6rem 1.5rem; }
  .maxim { font-size: 1.85rem; }
}

@media (min-width: 64rem) {
  .nav--site {
    flex-wrap: nowrap;
    gap: 0.15rem 1.6rem;
    margin-bottom: 2rem;
  }
  .nav--site a { min-height: 2.5rem; }

  .desk-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .desk-top .masthead { margin-bottom: 0; }
  .desk-toolbar { margin-bottom: 1rem; }

  .card.notion {
    padding: 2.25rem 2.75rem 2.75rem;
  }
  .notion .columns { grid-template-columns: 1fr 1fr; }
}

/* ---------- Print: hairlines only, never a filled box ---------- */

@media print {
  html, body,
  .wrap, .card, .field, .read, .notice, .archive, .archive a,
  .card--row, .card--principle, .card--principles,
  textarea, input[type="date"], .save, .preview, .maxim {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #000 !important;
  }

  body { font-size: 11.5pt; line-height: 1.5; }

  .wrap { max-width: none; padding: 0; }

  .nav, .save, .creed, .editlink, .notice, .datefield { display: none !important; }

  h1 { font-size: 17pt; }
  .entry-date { font-size: 16pt; }
  .card-title { font-size: 13pt; }

  .card, .field, .read {
    border: 0 !important;
    border-left: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 0.2rem 0 0.8rem 0.7rem;
    margin-bottom: 1rem;
  }

  .principles--page .card--principle { padding-left: 0.7rem; }
  .principles--page .card--principle::before { position: static; font-size: 11.5pt; }

  .eyebrow, label, .read-prompt, .meta, .preview, .subtitle {
    color: #000 !important;
  }

  .eyebrow { font-size: 8pt; margin-bottom: 0.3rem; }

  .principles li::marker { color: #000 !important; }

  textarea {
    border: 0 !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 0 0 0.3rem;
    min-height: 0;
  }

  .divider { border-top: 1px solid #000 !important; margin: 1rem 0; }

  .preview {
    border-left: 1px solid #000 !important;
    white-space: normal;
  }

  .archive li {
    border-top: 1px solid #000 !important;
    border-left: 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .archive li:last-child { border-bottom: 1px solid #000 !important; }
  .archive a { padding: 0.55rem 0; }

  .archive-date { font-size: 12pt; }

  .entry, .archive li, .principles li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .maxim {
    border-top: 1px solid #000 !important;
    border-left: 0 !important;
    font-size: 14pt;
    padding-left: 0;
  }

  .maxim--inline { font-size: 12pt; }

  a { color: #000 !important; text-decoration: none; }
}

.nav a.is-current { color: var(--accent-deep); }

.nav--site {
  position: relative;
  z-index: 2;
  margin: 0 auto 1.75rem;
  padding: 0 0 1.05rem;
  border-top: 0;
  border-bottom: 1.5px solid var(--border);
  max-width: none;
}

body.fitness-page,
body.writing-page,
body.journal-page,
body.finance-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.fitness-page .wrap--fitness,
body.writing-page .wrap--writing,
body.journal-page .wrap--journal,
body.finance-page .wrap--journal {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.finance-page.is-open .wrap--journal {
  padding-bottom: 0;
}
.fitness-frame,
.writing-frame {
  flex: 1;
  width: 100%;
  border: 0;
  min-height: 0;
  background: var(--bg);
}
body.fitness-page .desk-week {
  flex: 0 0 auto;
}
.fitness-day {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.fitness-day-main {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.fitness-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.fitness-day-chip {
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  background: color-mix(in srgb, var(--house-brass) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 40%, transparent);
  cursor: pointer;
}
.fitness-day-chip.is-on {
  background: color-mix(in srgb, var(--house-brass-deep) 55%, transparent);
}
.fitness-sessions {
  display: grid;
  gap: 0.55rem;
}
.fitness-session {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, var(--house-brass) 28%, transparent);
}
.fitness-session.is-main {
  border-color: color-mix(in srgb, var(--house-brass) 48%, transparent);
}
.fitness-session.is-done {
  opacity: 0.58;
}
.fitness-check {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-height: 44px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fitness-session-link {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}
.fitness-session-link h3 {
  margin: 0;
  font-size: 1.15rem;
}
.fitness-session-link p {
  margin: 0;
}
.fitness-day-note {
  margin: 0;
}
.fit-rest {
  position: sticky;
  top: 0.35rem;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 0.9rem;
  align-items: center;
  margin: 0 0 1.2rem;
  padding: 0.95rem 1.05rem;
  background: color-mix(in srgb, var(--house-brass-deep) 38%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 48%, transparent);
  backdrop-filter: blur(10px);
}
.fit-rest-clock {
  grid-row: span 2;
  min-width: 4.6rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.fit-rest-copy {
  display: grid;
  gap: 0.15rem;
}
.fit-rest-label {
  margin: 0;
}
.fit-rest-picks,
.fit-rest-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.fit-rest-picks {
  grid-column: 1 / -1;
}
.fit-rest-acts {
  grid-column: 1 / -1;
}
.fit-rest-pick,
.fit-rest-act,
.fit-pick,
.fit-reset {
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  background: color-mix(in srgb, var(--house-brass) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 42%, transparent);
  cursor: pointer;
}
.fit-rest-pick.is-on,
.fit-pick.is-on {
  background: color-mix(in srgb, var(--house-brass-deep) 55%, transparent);
}
.fit-rest-custom {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fit-rest-custom input,
.fit-other,
.fit-note-box {
  min-height: 44px;
  min-width: 4.2rem;
  padding: 0.4rem 0.55rem;
  font: inherit;
  color: inherit;
  background: color-mix(in srgb, var(--house-wood) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 36%, transparent);
}
.fit-note-box {
  width: 100%;
  min-height: 4.4rem;
  resize: vertical;
}
.fit-plan {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--house-brass) 32%, transparent);
}
.fit-plan-head h2 {
  margin: 0.15rem 0 0;
}
.fit-ex-list,
.fit-choice,
.fit-picks,
.fit-sets,
.fit-plan-foot {
  display: grid;
  gap: 0.7rem;
}
.fit-picks,
.fit-sets,
.fit-plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.fit-ex {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.7rem 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--house-brass) 26%, transparent);
}
.fit-ex.is-done {
  opacity: 0.62;
}
.fit-ex-check,
.fit-set {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  min-height: 44px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fit-ex-check input,
.fit-set input,
.fitness-check input {
  width: 1.35rem;
  height: 1.35rem;
}
.fit-ex-body {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.fit-ex-body h3 {
  margin: 0;
  font-size: 1.22rem;
}
.fit-superset,
.fit-warm,
.fit-fin,
.fit-ladder {
  margin: 0;
}
.fit-note {
  display: grid;
  gap: 0.3rem;
}
.fit-side {
  padding: 0.35rem 0;
  border-top: 1px solid color-mix(in srgb, var(--house-brass) 26%, transparent);
}
.fit-side > summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  cursor: pointer;
}
.fit-stretch {
  padding-top: 0.4rem;
}
.fit-stretch summary {
  min-height: 44px;
  cursor: pointer;
}
@media (min-width: 40rem) {
  .fit-rest {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .fit-rest-picks {
    grid-column: auto;
  }
  .fit-rest-acts {
    grid-column: 1 / -1;
  }
}
body.fitness-page .fitness-frame {
  flex: none;
  min-height: 28rem;
  height: min(70dvh, 40rem);
}
.writing-frame { background: #2c1810; }
.journal-frame {
  display: block;
  width: 100%;
  border: 0;
  min-height: 22rem;
  height: 60dvh;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.tracker-frame {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 28rem;
  height: 70dvh;
  background: var(--bg);
}

.rhythm {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.rhythm a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.rhythm a:hover { border-color: var(--accent-edge); }
.rhythm .eyebrow { margin-bottom: 0.2rem; }
.rhythm .eyebrow em {
  font-style: normal;
  margin-left: 0.25rem;
  color: var(--accent-deep);
}
.rhythm strong {
  display: block;
  font-family: var(--display, inherit);
  font-size: 1.15rem;
  font-weight: 400;
}
@media (min-width: 40rem) {
  .rhythm { grid-template-columns: 1fr 1fr 1fr; }
}

.desk-now {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.desk-now .eyebrow { margin-bottom: 0.2rem; }
.desk-now p { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; }
.desk-now.is-clear p { color: var(--ink-soft); }

.desk-layout {
  display: grid;
  gap: 1.15rem;
}
.desk-rail .card-title { margin-bottom: 0.7rem; }
.desk-notes {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-family: var(--serif);
}
.desk-times {
  list-style: none;
  margin: 0;
  padding: 0;
}
.desk-time {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.2rem 0.4rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.desk-time:first-child { border-top: 0; padding-top: 0.15rem; }
.desk-time-when {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}
.desk-time p { margin: 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; }
.desk-time.is-now {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-shadow: inset 3px 0 0 var(--accent);
}
.desk-time.is-next .desk-time-when { color: var(--ink); }
.desk-time.is-done { opacity: 0.42; }

.day-board { display: grid; gap: 0.85rem; }
.day-block { margin: 0; }
.day-block .eyebrow { margin-bottom: 0.35rem; }
.day-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.day-checks li {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.day-checks label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.15rem;
  cursor: pointer;
}
.day-checks input {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  accent-color: var(--house-brass-deep);
}
.day-checks li.is-done {
  opacity: 0.55;
}
.day-checks li.is-done span {
  text-decoration: line-through;
}
@media (min-width: 40rem) {
  .day-checks {
    grid-template-columns: 1fr 1fr;
  }
}
.day-workout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.day-workout-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--house-brass) 40%, transparent);
  background: color-mix(in srgb, var(--house-brass) 22%, transparent);
  color: inherit;
  cursor: pointer;
}
.day-workout-btn.is-on {
  background: color-mix(in srgb, var(--house-brass-deep) 42%, transparent);
  border-color: color-mix(in srgb, var(--house-brass-deep) 55%, transparent);
}
.desk-workout-line {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.desk-event--workout .desk-event-title {
  font-weight: 700;
}
.desk-day-notes {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
}

.brew-count {
  margin-left: 0.4rem;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.62;
  vertical-align: baseline;
}
.brew-count::before { content: "("; }
.brew-count::after { content: ")"; }

.day-fold > summary {
  text-transform: lowercase;
}

#running-card {
  margin: 0 0 1.15rem;
}
#running-card .save {
  width: auto;
  min-width: 8.5rem;
  min-height: 48px;
  margin-top: 0.85rem;
  padding: 0 1.1rem;
}
.run-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--house-brass) 28%, var(--border));
}
.run-item:first-child { border-top: 0; padding-top: 0.2rem; }
.run-item.is-done { opacity: 0.55; }
.run-item-top {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  align-items: center;
}
.run-check {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
.run-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--house-brass, #c4a574);
}
.run-item-top .run-del {
  grid-column: 1 / -1;
  width: auto;
  justify-self: start;
  margin: 0;
  min-height: 44px;
  padding: 0 0.2rem;
  text-align: left;
}
.run-item-top input[type="text"] {
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font-family: var(--serif);
  font-size: 1.02rem;
}
.run-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.55rem;
}
.run-item label {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.run-item label span { min-height: 0; }
.run-item select {
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 32%, var(--border));
  border-radius: var(--radius-md);
}
.run-item textarea {
  min-height: 4.5rem;
  font-size: 0.98rem;
  padding: 0.65rem 0.75rem;
}
@media (min-width: 50rem) {
  .run-item-top {
    grid-template-columns: 44px 44px minmax(0, 1fr) auto;
    align-items: center;
  }
  .run-item-top .run-del {
    grid-column: auto;
    justify-self: end;
  }
  .run-hours {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.desk-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  margin: 0 0 0.85rem;
}
.desk-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-height: 3.1rem;
  padding: 0.35rem 0.1rem;
  font-family: var(--sans);
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.desk-cal-day span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.desk-cal-day strong { font-size: 1.02rem; font-weight: 700; }
.desk-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.desk-cal-day.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4ead4;
}
.desk-cal-day.is-current span { color: #c4a574; }
.desk-cal-body p { margin: 0; font-family: var(--serif); line-height: 1.45; }
.desk-cal-head {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.1rem 0 0.2rem;
}

.desk-week {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
}
.desk-week-day,
.desk-month-day {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem 0.6rem;
  font-family: var(--sans);
  color: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.desk-week-day { min-height: 11rem; }
.desk-week-day header,
.desk-month-day header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
}
/* The weekday label is read, not skimmed past, so it takes the --ink-soft step
 * rather than --ink-faint. On The Blueprint (#1a1410 surface) --ink-faint
 * #8a7660 measured 4.20:1 against a 4.5 bar; --ink-soft #c4ae94 measures
 * 8.54:1. --ink-soft is the step nearer --ink in every room block, so this
 * only ever raises contrast. Rooms with their own override keep it.
 * Vellum 2026-09-11 — see handoff/contrast-check.md in /idlewild-design. */
.desk-week-day header span,
.desk-month-day header span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  /* Three letters must not break across three lines. The label is the flex
   * item that loses when the day title beside it is long: on production Tue
   * wrapped to three lines, Wed/Thu/Fri to two. */
  white-space: nowrap;
}
.desk-week-day header strong,
.desk-month-day header strong { font-size: 1.05rem; font-weight: 700; }
.desk-week-events,
.desk-month-events {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.desk-event {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.4rem;
  background: color-mix(in srgb, var(--ink) 6%, var(--card));
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.desk-event-when {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.desk-event-title {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.3;
}
.desk-event--note { border-left-color: var(--border); }
.desk-week-empty {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.desk-week-day.is-today,
.desk-month-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.desk-week-day.is-current,
.desk-month-day.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4ead4;
}
.desk-week-day.is-current header span,
.desk-month-day.is-current header span { color: #c4a574; }
.desk-week-day.is-current .desk-event,
.desk-month-day.is-current .desk-event {
  background: color-mix(in srgb, #f4ead4 12%, transparent);
  border-left-color: #c4a574;
}
.desk-week-day.is-current .desk-event-when,
.desk-month-day.is-current .desk-event-when { color: #c4a574; }
.desk-week-day.is-current .desk-week-empty,
.desk-month-day.is-current .desk-week-empty { color: color-mix(in srgb, #f4ead4 55%, transparent); }

.desk-cal--month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  margin: 0;
  gap: 0.4rem;
}
.desk-month-pad { min-height: 0; }
.desk-month-day {
  min-height: 8.75rem;
  padding: 0.4rem 0.4rem 0.45rem;
}
.desk-month-events {
  gap: 0.25rem;
  overflow: visible;
  max-height: none;
}
.desk-month-day .desk-event { padding: 0.25rem 0.3rem; }
.desk-month-day .desk-event-when { font-size: 0.6rem; }
.desk-month-day .desk-event-title {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desk-month-day.is-other { opacity: 0.5; }

.desk-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 1.15rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.65rem 0.6rem;
  background: color-mix(in srgb, var(--house-brass) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 32%, var(--border));
  border-radius: 6px;
}
.desk-next-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.desk-next-col li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: baseline;
  min-height: 1.35rem;
}
.desk-next-col span {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.3;
  min-width: 0;
}
.desk-next-col li.has-note {
  grid-template-rows: auto auto;
}

.desk-next-note {
  grid-column: 1 / -1;
  margin: 0.12rem 0 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.desk-next-col strong {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}

.desk-next-when--tbd {
  color: var(--ink-faint);
  font-weight: 600;
}
.desk-cadence {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem 1.15rem;
}
.desk-cadence ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.desk-cadence li {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.35;
}
.desk-cadence li span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.1rem;
}
@media (min-width: 40rem) {
  .desk-next,
  .desk-cadence {
    grid-template-columns: 1fr 1fr;
  }
}

.team-week-card {
  padding: 0.7rem 0.75rem 0.8rem;
  margin: 0 0 1rem;
}
.team-week-legend {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0 0 0.55rem;
}
.team-week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
}
.team-week li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  min-height: 1.4rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.team-week li span {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.team-week li.is-empty { color: var(--ink-faint); }
.team-week li.is-today {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--house-brass) 50%, transparent);
}
@media (min-width: 40rem) {
  .team-week {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.15rem;
  }
}
@media (min-width: 64rem) {
  .team-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .team-week li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    min-height: 3.6rem;
    padding: 0.35rem 0.3rem 0.4rem;
    background: color-mix(in srgb, var(--house-brass) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--house-brass) 28%, var(--border));
    border-radius: 4px;
  }
}

@media (min-width: 50rem) {
  #desk-cal-body { display: none !important; }
}
@media (max-width: 49.99rem) {
  .desk-cal--month {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .desk-month-pad,
  .desk-cal-head {
    display: none;
  }
  .desk-month-day:not(.has-copy):not(.is-today) {
    display: none;
  }
  .desk-month-day {
    min-height: auto;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    gap: 0.35rem;
    align-items: stretch;
  }
  .desk-month-day header {
    justify-content: flex-start;
  }
  .desk-month-day header span { display: inline; }
  .desk-month-day header strong { font-size: 1.05rem; }
  .desk-cal--month .desk-month-events {
    display: flex;
    max-height: none;
    overflow: visible;
  }
  #desk-cal-body {
    margin-top: 0.65rem;
  }
}

@media (min-width: 52rem) {
  .desk-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .desk-week-day { min-height: 14rem; padding: 0.45rem 0.35rem 0.5rem; }
  .desk-week-day .desk-event-title { font-size: 0.82rem; }
}

.desk-block .card-title { margin-bottom: 0.7rem; }
.desk-sub { margin: 0.85rem 0; }
.desk-sub h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.chat-launch--todo { background: var(--house-brass-deep); }

@media (min-width: 60rem) {
  .desk-layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
    align-items: start;
  }
  .desk-rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 5.6rem;
  }
  .desk-main {
    grid-column: 1;
    grid-row: 1;
  }
}

body.has-desk-chrome:not(.desk-page) .desk-now {
  position: sticky;
  top: 0;
  z-index: 8;
}

.food-prep-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.12rem;
}
.food-prep-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent-deep);
}

.hidden { display: none !important; }

input[type="password"],
input[type="text"] {
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  width: 100%;
  min-height: 56px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}

input[type="password"]:focus,
input[type="text"]:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
}

.linkish {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: none;
  border: 0;
  cursor: pointer;
  min-height: 48px;
}

.desk-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1rem;
}

.desk-toolbar .linkish {
  width: auto;
  margin: 0;
  min-height: 0;
  padding: 0;
}

.desk-toolbar .meta { margin: 0; }

.notion,
.desk-rest,
.desk-ask,
.desk-event-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.notion a,
.desk-rest a,
.card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.notion a[href*="://"],
.card a[href*="://"] {
  word-break: break-all;
}
.notion p { margin: 0 0 0.85rem; }
.notion p:last-child { margin-bottom: 0; }
.notion ul, .notion ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.notion li { margin-bottom: 0.35rem; }

.notion .fold {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin: 0 0 0.75rem;
}

.notion .fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.95rem 1.15rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.notion .fold > summary::-webkit-details-marker { display: none; }

.notion .fold > summary::after {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.notion .fold[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.35rem;
}

.notion .fold-body {
  padding: 0 1.15rem 1.1rem;
}

.notion .fold .fold {
  background: var(--card);
  margin: 0 0 0.65rem;
}

.notion .fold .fold > summary {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.notion-h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.75rem;
}

.notion-h2, .notion-h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.notion blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
}

.notion .callout {
  background: var(--accent-tint);
  border: 1.5px solid var(--accent-edge);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin: 0 0 1rem;
}

.notion .todo {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.55rem 0.15rem;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.notion .todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1rem;
}

.notion .todo input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  margin: 0.15rem 0 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
}

.notion .todo input:checked {
  background: var(--accent);
  border-color: var(--accent-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fffdfa' stroke-width='2.4' d='M3 8.2 6.4 11.5 13 4.5'/></svg>");
  background-size: 1.05rem;
  background-position: center;
  background-repeat: no-repeat;
}

.notion .todo p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.notion .todo.is-done p { color: var(--ink-faint); text-decoration: line-through; }
.notion .toggle { margin: 0 0 0.75rem; }
.notion .toggle summary { cursor: pointer; font-weight: 700; }

.notion-code {
  overflow: auto;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.notion-image { margin: 0 0 1rem; }
.notion-image img { max-width: 100%; border-radius: var(--radius-md); }
.notion-image figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.4rem; }

.notion .columns { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .notion .columns { grid-template-columns: 1fr 1fr; }
}

.notion-table {
  margin: 0 0 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.notion-table .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  border-top: 1.5px solid var(--border);
}
.notion-table .row:first-child { border-top: 0; }
.notion-table .cell { padding: 0.55rem 0.7rem; font-size: 0.92rem; }

.card--portal .save { margin-top: 1.15rem; }

/* ---------- Food ---------- */


.food-corners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
}
.food-corner,
.food-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--house-brass) 18%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 42%, transparent);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.food-corner.is-current,
.food-day.is-current {
  color: #ead9c4;
  background: color-mix(in srgb, var(--house-brass-deep) 72%, transparent);
  border-color: var(--house-brass);
}
.food-status {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #9ad8ff;
}

.food-pick {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.food-pick button {
  flex: 1;
  min-height: 3.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.food-pick button.is-current {
  color: #fffdfa;
  background: var(--house-brass-deep);
  border-color: var(--house-brass-deep);
}

.food-block { margin: 0 0 2.5rem; }
.food-block .card-title { margin-bottom: 0.55rem; }
.food-block > p { margin: 0 0 1rem; color: var(--ink-soft); }

.food-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.food-recipe h4,
.food-panel h3,
.food-panel h4,
.food-block > h3,
.food-fold h4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.15rem 0 0.55rem;
}

.food-panel > h3:first-child { margin-top: 0; }

.food-recipe .card-title { font-size: 1.28rem; margin-bottom: 0.35rem; }
.food-tag {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
}
.food-meta { margin: 0 0 0.85rem; }

.food-ing,
.food-steps {
  margin: 0 0 0.35rem;
  padding-left: 1.25rem;
}
.food-ing li,
.food-steps li { margin: 0 0 0.45rem; }

.food-note {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.food-prep-bit {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

.food-game.is-soon {
  padding: 1.15rem 1.1rem 0.15rem;
  background: var(--accent-tint);
  border: 1.5px solid var(--accent-edge);
  border-radius: var(--radius-lg);
}

.food-today {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: color-mix(in srgb, var(--house-brass) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 48%, transparent);
}
.food-today .eyebrow {
  margin: 0 0 0.35rem;
}
.food-today h2 {
  margin: 0;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 600;
}
.food-today h2 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.food-today.is-game {
  background: color-mix(in srgb, var(--house-brass-deep) 28%, transparent);
}

.food-library {
  margin: 0 0 2rem;
}
.food-library-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.food-library-list li {
  border-top: 1px solid color-mix(in srgb, var(--house-brass) 28%, transparent);
}
.food-library-list li:first-child { border-top: 0; }
.food-library-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0;
  color: inherit;
  text-decoration: none;
}
.food-library-list a:hover,
.food-library-list a:focus-visible {
  color: var(--house-brass-deep);
}
.food-library-tag {
  margin-left: 0.65rem;
  font-family: "Figtree", var(--sans, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--house-brass-deep) 70%, transparent);
}

.food-table {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0 1rem;
}
.food-table-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  border-top: 1.5px solid var(--border);
}
.food-table-row:first-child { border-top: 0; }
.food-table-row--head {
  background: var(--ink);
  color: #fffdfa;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.food-table-row:nth-child(even):not(.food-table-row--head) { background: var(--surface); }
.food-table-cell { padding: 0.55rem 0.7rem; font-size: 0.92rem; }
.food-table-row--3 {
  grid-template-columns: 7.5rem 8.5rem 1fr;
}

@media (max-width: 49.99rem) {
  .food-table-row--3 { grid-template-columns: 1fr; }
}

.food-fold { padding: 0; }
.food-fold summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  list-style: none;
}
.food-fold summary::-webkit-details-marker { display: none; }
.food-fold[open] summary { border-bottom: 1.5px solid var(--border); }
.food-fold .food-tag,
.food-fold h4,
.food-fold .food-steps,
.food-fold .food-table,
.food-fold .food-note { margin-left: 1.25rem; margin-right: 1.25rem; }
.food-fold .food-note { margin-bottom: 1.15rem; }

@media (min-width: 50rem) {
  .food-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
  .food-table-row { grid-template-columns: 7.5rem 1fr; }
  .food-tools,
  .food-folds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    align-items: start;
    margin-bottom: 1.15rem;
  }
  .food-tools .food-panel,
  .food-folds .food-fold { margin-bottom: 0; }
}

@media (min-width: 64rem) {
  .food-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
  }
  .food-top .masthead {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
  }
  .food-pick {
    flex: none;
    width: 22rem;
    margin: 0;
  }
}

/* ---------- Office ---------- */

.actor-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.actor-field select {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
}

.office-shared { padding: 0; }
.office-shared summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  list-style: none;
}
.office-shared summary::-webkit-details-marker { display: none; }
.office-shared .office-read {
  padding: 0 1.25rem 1.25rem;
}
.office-read {
  margin: 0 0 1.35rem;
  padding: 0;
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.55;
}

.agent-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.agent-grid a {
  display: block;
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.agent-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
}
.agent-grid .invite {
  display: grid;
  gap: 0.45rem;
  padding: 0 1.25rem 1.1rem;
}
.agent-grid .invite input {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
}
body.office-solo .master-only { display: none !important; }
body.office-solo .nav--site { display: none; }

.upload {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}
.file-pick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0.7rem 1rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fffdfa;
  background: var(--house-brass-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.file-pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.create-agent {
  display: grid;
  gap: 0.85rem;
}
.create-agent label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.create-agent input {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
}
.create-agent .save { margin-top: 0.4rem; }

.composer {
  display: grid;
  gap: 0.85rem;
}
.composer label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.composer select,
.composer textarea,
.composer input[type="file"] {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
}
.composer select { min-height: 48px; }
.composer textarea { min-height: 8rem; font-weight: 400; line-height: 1.5; }
.composer .save { margin-top: 0.4rem; }
.check-inline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.check-inline input { width: auto; margin: 0; }
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li {
  padding: 0.9rem 0;
  border-top: 1.5px solid var(--border);
}
.message-list .eyebrow { margin-bottom: 0.35rem; }
.message-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
}
.message-list a { color: var(--accent-deep); font-weight: 600; }
.inbox-reply {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.inbox-reply textarea {
  min-height: 4.5rem;
  width: 100%;
}
.mail-thread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}
.mail-thread-actions .save,
.mail-thread-actions .linkish {
  margin-top: 0;
  min-height: 44px;
}
.report-list {
  overflow-y: auto;
  flex: 1;
  min-height: 8rem;
  max-height: 36dvh;
  margin-top: 0.5rem;
}
.report-list li:first-child { border-top: 0; }
.report-list .linkish {
  width: auto;
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0;
}
#created-invite {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}
#created-invite input {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
}
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1.5px solid var(--border);
}
.file-list a { color: var(--accent-deep); font-weight: 600; }
.file-list .meta { margin: 0; }

@media (min-width: 50rem) {
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .actor-field { margin-bottom: 0; min-width: 10rem; }
}

/* ---------- Desk chat pop-out ---------- */

.desk-chrome {
  display: block;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.chat-docks {
  display: none;
}
.chat-launch--inbox {
  background: var(--ink);
}
.mail-compose {
  margin: 0 0 0.35rem;
}
.inbox-drive {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.inbox-steps {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.2rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.inbox-steps li { margin: 0 0 0.45rem; }
.chat-launch:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.side-shell {
  position: fixed;
  z-index: 35;
  top: 3.55rem;
  left: 0;
  bottom: 0.35rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  pointer-events: none;
}
.side-shell--right {
  left: auto;
  right: 0;
  flex-direction: row-reverse;
}
.side-docks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: auto;
}
#side-docks {
  height: 100%;
  justify-content: stretch;
}
#tools-docks {
  height: 100%;
  justify-content: stretch;
}
#todo-launch,
#sched-launch,
#tom-launch {
  flex: 1 1 0;
  min-height: 11rem;
}
#mail-launch,
#inbox-launch,
#cal-launch,
#journal-launch {
  display: none !important;
}
.side-launch {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 7.6rem;
  min-width: 2.9rem;
  padding: 1.05rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fffdfa;
  background: var(--house-brass-deep);
  border: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
@media (min-width: 50rem) {
  .side-launch {
    min-width: var(--rail-width, 4rem);
    padding: 1.2rem 0.8rem;
    font-size: 1.02rem;
  }
}
#now-launch { background: var(--accent-deep); }
#now-launch {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#now-launch.is-clear { opacity: 0.88; }
#sched-launch { background: var(--house-wood); }
#tom-launch { background: color-mix(in srgb, var(--house-wood) 82%, var(--house-brass-deep)); }
#todo-launch { background: var(--house-brass-deep); }
.side-shell--right .side-launch {
  transform: none;
  border-radius: 8px 0 0 8px;
}
.side-shell--right .side-drawer {
  border-left: 1.5px solid var(--border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
.now-drawer-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.now-drawer-body p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}
.now-drawer-body.is-clear p { color: var(--ink-soft); }
.side-launch[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.side-launch:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}
.side-drawer {
  pointer-events: auto;
  width: min(22.5rem, calc(100vw - 3.2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-md);
}
#todo-panel.side-drawer {
  width: min(30rem, calc(100vw - 2.4rem));
}
.side-drawer.hidden { display: none !important; }
.side-drawer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid var(--border);
}
.side-drawer__top .card-title { margin-bottom: 0; }
.side-drawer .mail-scroll {
  flex: 1;
  overflow: auto;
  padding: 0.9rem 1rem 1.1rem;
}
.side-drawer .chat-form {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
}
.side-drawer .chat-form textarea { min-height: 7rem; }

@media (max-width: 49.99rem) {
  :root {
    --rail-gutter: 2.75rem;
    --dock-pad: 6.25rem;
  }
  .nav--site {
    gap: 0.1rem 0.65rem;
    padding: 0.1rem 0.15rem 0.75rem;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
  }
  .nav--site a {
    min-height: 44px;
    font-size: 0.86rem;
    padding: 0 0.1rem;
  }
  body.desk-page .wrap,
  body.has-mail .wrap,
  body.has-desk-chrome .wrap,
  body.room .wrap,
  body.writing-page .wrap,
  body.fitness-page .wrap,
  body.journal-page .wrap,
  body.finance-page .wrap {
    padding-bottom: calc(var(--dock-pad) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(var(--page-pad) + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--page-pad) + env(safe-area-inset-right, 0px));
  }
  .desk-chrome {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    height: calc(3.25rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    pointer-events: none;
    overflow: visible;
  }
  .side-shell,
  .side-shell--right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: 3.25rem;
    padding-bottom: 0;
    z-index: auto;
    pointer-events: auto;
    gap: 0;
    overflow: visible;
    align-items: flex-end;
  }
  .side-shell {
    flex: 1 1 47%;
    min-width: 0;
    width: auto;
  }
  .side-shell--right {
    flex: 0 0 53%;
    width: 53%;
    max-width: 53%;
    min-width: 0;
    height: 3.25rem;
    overflow: visible;
    pointer-events: auto;
  }
  .side-docks,
  #side-docks,
  #tools-docks,
  #mail-docks {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    height: 3.25rem;
    width: 100%;
    gap: 0;
  }
  .side-launch,
  .side-shell--right .side-launch {
    writing-mode: horizontal-tb;
    transform: none;
    min-height: 3.25rem;
    height: 3.25rem;
    max-height: 3.25rem;
    padding: 0.35rem 0.2rem;
    border-radius: 0;
    font-size: 0.6rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #now-launch {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 1 1 auto;
    align-self: flex-end;
    width: 100%;
    height: auto;
    min-height: 3.25rem;
    max-height: 5.8rem;
    min-width: 0;
    max-width: none;
    padding: 0.45rem 0.7rem 0.4rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    overflow: hidden;
  }
  #tools-docks #todo-launch,
  #tools-docks #sched-launch,
  #tools-docks #tom-launch {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    height: 3.25rem;
    min-height: 3.25rem;
    max-height: 3.25rem;
    padding: 0.35rem 0.25rem;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fffdfa;
    box-shadow: none;
    border-radius: 0;
  }
  #tools-docks #todo-launch {
    background: color-mix(in srgb, var(--house-brass-deep) 78%, transparent);
  }
  #tools-docks #sched-launch {
    background: color-mix(in srgb, var(--house-wood) 72%, transparent);
  }
  #tools-docks #tom-launch {
    background: color-mix(in srgb, var(--house-wood) 58%, var(--house-brass-deep) 20%, transparent);
  }
  .side-drawer,
  .side-shell--right .side-drawer {
    position: fixed;
    z-index: 48;
    left: 0;
    right: 0;
    top: env(safe-area-inset-top, 0px);
    bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: none;
    height: auto;
    border: 0;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
  }
  #todo-panel.side-drawer {
    width: 100%;
    max-width: none;
  }
}
.mail-thread-line {
  margin: 0 0 0.55rem;
}
.mail-thread-line .eyebrow {
  margin-bottom: 0.15rem;
}

.chat-panel {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 46rem);
  overflow: hidden;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1rem var(--page-pad) 1.15rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
}
.chat-panel.hidden { display: none !important; }
.chat-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.chat-panel__top .card-title { margin-bottom: 0.35rem; }
.chat-close {
  width: auto;
  margin: 0;
  min-height: 44px;
  padding: 0 0.4rem;
}
.chat-panel .actor-field { margin: 0.85rem 0 0.7rem; }
.mail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mail-scroll .eyebrow { margin-top: 0.85rem; }
.mail-scroll .eyebrow:first-child { margin-top: 0; }
.mail-attach {
  display: block;
  margin: 0.45rem 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.mail-attach input { display: block; margin-top: 0.25rem; }
.chat-log {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  -webkit-overflow-scrolling: touch;
}
.chat-msg {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
}
.chat-msg--user {
  margin-left: 1.5rem;
  background: var(--accent-tint);
  border-color: var(--accent-edge);
}
.chat-msg--agent {
  margin-right: 1.5rem;
}
.chat-msg .eyebrow { margin-bottom: 0.3rem; }
.chat-msg .message-body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.message-body--wait { min-height: 1.2em; }
.chat-activity,
.chat-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.chat-step {
  flex: none;
  margin-top: 0.5rem;
  min-height: 1.35rem;
}
.chat-step.hidden { display: none; }
.chat-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: chat-pulse 1.1s ease-in-out infinite;
}
.chat-caret {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.12em;
  background: var(--ink);
  vertical-align: text-bottom;
  animation: chat-caret 1s steps(1) infinite;
}
@keyframes chat-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes chat-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.chat-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.chat-form textarea {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  min-height: 5.5rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fffdfa;
  color: var(--ink);
}
.chat-form .save { margin: 0; min-height: 48px; }
.chat-file {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chat-file input[type="file"] {
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.chat-msg a { color: var(--accent-deep); font-weight: 600; }

.conf {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}
.conf-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.conf-row--head {
  justify-content: stretch;
  justify-items: stretch;
}
.conf-top {
  display: none;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 6%, color-mix(in srgb, var(--house-brass) 35%, transparent) 6% 6.35%, transparent 6.35%),
    linear-gradient(90deg, transparent 93.65%, color-mix(in srgb, var(--house-brass) 35%, transparent) 93.65% 94%, transparent 94%),
    linear-gradient(180deg, #7a5634, #3d2418 58%, #2a1810);
  box-shadow:
    inset 0 0 0 2px var(--house-brass),
    inset 0 0 0 7px #24160e,
    0 16px 28px color-mix(in srgb, var(--house-shade) 16%, transparent);
}
@media (min-width: 40rem) {
  .conf-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .conf-top {
    display: block;
    min-height: 3.2rem;
  }
}
@media (min-width: 50rem) {
  .conf-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .conf-top {
    min-height: 4rem;
  }
}
@media (min-width: 64rem) {
  .conf-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .conf-row--head {
    justify-content: center;
    grid-template-columns: minmax(12.5rem, 18rem);
  }
  .conf-top {
    min-height: 4.6rem;
  }
}
.place {
  margin: 0;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--house-brass) 42%, var(--border));
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 28%, transparent),
    0 8px 18px color-mix(in srgb, var(--house-shade) 12%, transparent);
}
.place-name,
.place-brief {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.place-name {
  min-height: 44px;
  padding: 0.65rem 0.85rem 0.2rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.place-brief {
  min-height: 44px;
  padding: 0.15rem 0.85rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--house-brass-deep);
}
.place:hover { border-color: var(--house-brass); }
.place-name.is-copied,
.place-brief.is-copied { color: var(--house-brass-deep); }
.place-brief:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.place--cos .place-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.place-orb {
  position: relative;
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.place-orb-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.place-orb-wake {
  position: absolute;
  right: 0.28rem;
  bottom: 0.28rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ad8ff;
  box-shadow: 0 0 8px color-mix(in srgb, #9ad8ff 70%, transparent);
}
.place-cos {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.place-cos-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.place-cos-title {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--house-brass-deep);
}
body.room .place-cos-title {
  color: var(--text-dim, var(--house-brass-deep));
}
@media (min-width: 64rem) {
  .place-name {
    padding: 0.55rem 0.7rem 0.15rem;
    font-size: 0.9rem;
    line-height: 1.25;
  }
  .place-brief {
    min-height: 40px;
    padding: 0.1rem 0.7rem 0.5rem;
  }
}
.conf-row .meta { margin: 0; padding: 0.7rem; }

#desk-asks {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
#desk-asks:empty {
  display: none;
  margin: 0;
}
.desk-ask {
  max-width: 36rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.desk-ask .desk-ask-q {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.desk-ask .save {
  width: auto;
  min-width: 8.5rem;
  min-height: 48px;
  margin-top: 0.85rem;
  padding: 0 1.1rem;
}
.desk-ask-err { margin: 0.4rem 0 0; }
.desk-ask .save:disabled { opacity: 0.55; }
.desk-ask.is-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.desk-ask-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.desk-ask--idle .desk-ask-note { margin-top: 0.75rem; }
.desk-ask-note textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
}
.copyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.55rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.copyrow:hover,
.copyrow.is-copied { background: var(--accent-tint); }
.copyrow .nm {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.copyrow .act {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.copyrow:hover .act,
.copyrow.is-copied .act { color: var(--accent-deep); }
.team-brief {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.team-brief textarea {
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  white-space: pre-wrap;
}
.team-copy {
  justify-self: start;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.team-copy.is-copied { background: var(--accent-tint); }
.team-paste {
  display: grid;
  gap: 0.55rem;
  position: relative;
  width: 100%;
  min-height: 44px;
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem 1.45rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--house-brass) 42%, var(--border));
  border-radius: 2px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 28%, transparent),
    0 8px 18px color-mix(in srgb, var(--house-shade) 12%, transparent);
}
.team-paste .eyebrow {
  margin: 0;
  padding-right: 4.5rem;
  color: var(--accent-deep);
}
.team-paste-body {
  display: block;
  white-space: normal;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.5;
}
.team-paste-body p,
.team-paste-body ul,
.team-paste-body h4,
.team-paste-body h5,
.team-paste-body h6 {
  margin: 0 0 0.45rem;
}
.team-paste-body ul {
  padding-left: 1.15rem;
}
.team-paste-body li {
  margin: 0 0 0.25rem;
}
.team-paste-body :last-child {
  margin-bottom: 0;
}
.team-paste-flash {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.team-paste.is-copied {
  border-color: var(--house-brass);
}
.team-paste-empty {
  margin: 0 0 1.5rem;
}

@media (min-width: 50rem) {
  .chat-panel {
    left: auto;
    right: var(--rail-gutter, 3.2rem);
    bottom: 1.25rem;
    top: auto;
    width: min(28rem, calc(100vw - 2 * var(--rail-gutter, 3.2rem)));
    max-height: min(82dvh, 44rem);
    border-bottom: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
  }
}

/* ---------- Desk rooms ---------- */
/* Writing study keeps the window. Other rooms keep brass + hour, with their own set. */

.nav--site {
  border-bottom-color: color-mix(in srgb, var(--house-brass) 55%, var(--border));
}

.room-atm {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.room .wrap,
body.writing-page .wrap {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--lamp-clear) + env(safe-area-inset-top, 0px));
}

body.room .eyebrow,
body.writing-page .eyebrow {
  color: color-mix(in srgb, var(--house-brass-deep) 72%, var(--accent-deep));
}

body.room .card,
body.room .coming-card,
body.room .save,
body.room .food-pick button,
body.room .rhythm a,
body.room .notice,
body.room .chat-panel,
body.room .place {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 26%, transparent),
    0 10px 24px color-mix(in srgb, var(--house-shade) 14%, transparent);
}
body.room .chat-launch,
body.room .side-launch {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 40%, transparent),
    0 6px 16px color-mix(in srgb, var(--house-shade) 28%, transparent);
}

.house-lamp {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background: radial-gradient(60% 42% at 50% 0%, var(--house-lamp), transparent 72%);
  transition: opacity 1.6s ease;
}
html[data-scene="golden"] .house-lamp,
html[data-scene="dusk"] .house-lamp,
html[data-scene="night"] .house-lamp { opacity: 1; }
.house-motes {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, #fff 55%, transparent) 0 1px, transparent 1.6px);
  background-size: 120px 160px;
  opacity: 0.22;
  animation: wx-drift 36s ease-in-out infinite alternate;
}

.room-set { position: absolute; inset: 0; }
.room-set svg { fill: currentColor; }

@keyframes wx-drift {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}
@keyframes wx-sway {
  0%, 100% { transform: rotate(-0.4deg); }
  50% { transform: rotate(0.5deg); }
}
@keyframes lamp-swing {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.6deg); }
}
@keyframes steam-up {
  0% { opacity: 0; transform: translateY(8px) scaleX(0.8); }
  40% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(-46px) scaleX(1.2); }
}
@keyframes bulb-glow {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .house-motes, .set-lamp, .set-steam i, .set-bulbs i, .set-canopy, .set-dapple, .set-lamp-scan { animation: none; }
}

body.room {
  --bg: #120e0b;
  --surface: #1a1410;
  --card: #221a14;
  --border: #4a3a28;
  --ink: #ead9c4;
  --ink-soft: #b9a48c;
  --ink-faint: #8a7664;
  --accent: var(--house-brass);
  --accent-deep: var(--house-brass-deep);
  --accent-tint: color-mix(in srgb, var(--house-brass) 16%, #1a1410);
  --accent-edge: color-mix(in srgb, var(--house-brass) 42%, #120e0b);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  color: var(--ink);
  background: #120e0b;
}
body.room .nav a { color: var(--ink-soft); }
body.room .nav a.is-current,
body.room .nav a:hover { color: var(--house-brass); }
body.room .nav--site {
  border-bottom: 1px solid color-mix(in srgb, var(--house-brass) 48%, var(--border));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--house-brass) 18%, transparent);
}
body.room .nav a {
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px color-mix(in srgb, var(--house-brass) 0%, transparent);
}
body.room .nav a.is-current {
  text-shadow: 0 0 18px color-mix(in srgb, var(--house-brass) 35%, transparent);
}

body.room .card,
body.room .coming-card,
body.room .desk-now,
body.room .rhythm a,
body.room .place,
body.room .notice,
body.room .team-paste,
body.room .ref-box,
body.room .chat-panel,
body.room .side-drawer {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 12%, transparent), transparent 32%),
    color-mix(in srgb, var(--card) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 46%, var(--border));
  color: var(--ink);
  backdrop-filter: blur(12px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 42%, transparent),
    0 0 0 1px color-mix(in srgb, var(--house-brass) 10%, transparent),
    0 22px 48px color-mix(in srgb, #080604 52%, transparent),
    0 0 28px color-mix(in srgb, var(--house-brass) 14%, transparent);
}
body.room .card::before,
body.room .coming-card::before,
body.room .desk-now::before,
body.room .rhythm a::before,
body.room .place::before,
body.room .notice::before,
body.room .team-paste::before,
body.room .ref-box::before,
body.room .chat-panel::before,
body.room .side-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--house-brass), var(--house-brass)) 0 0 / 12px 2px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 0 0 / 2px 12px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 100% 0 / 12px 2px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 100% 0 / 2px 12px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 0 100% / 12px 2px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 0 100% / 2px 12px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 100% 100% / 12px 2px no-repeat,
    linear-gradient(var(--house-brass), var(--house-brass)) 100% 100% / 2px 12px no-repeat;
  opacity: 0.88;
}
@media (max-width: 49.99rem) {
  body.room .side-drawer,
  body.room .side-shell--right .side-drawer {
    position: fixed;
    z-index: 48;
    left: 0;
    right: 0;
    top: env(safe-area-inset-top, 0px);
    bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1.5px solid var(--border);
  }
  body.room #todo-panel.side-drawer {
    width: 100%;
    max-width: none;
  }
}
body.room .save {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--house-brass) 55%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 28%, transparent), transparent 40%),
    var(--house-brass-deep);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 45%, transparent),
    0 10px 24px color-mix(in srgb, #080604 40%, transparent),
    0 0 18px color-mix(in srgb, var(--house-brass) 18%, transparent);
}
body.room .save::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#f3ead4, #f3ead4) 0 0 / 8px 1.5px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 0 0 / 1.5px 8px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 100% 0 / 8px 1.5px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 100% 0 / 1.5px 8px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 0 100% / 8px 1.5px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 0 100% / 1.5px 8px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 100% 100% / 8px 1.5px no-repeat,
    linear-gradient(#f3ead4, #f3ead4) 100% 100% / 1.5px 8px no-repeat;
  opacity: 0.55;
}
body.room input,
body.room textarea,
body.room select {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: color-mix(in srgb, var(--house-brass) 32%, var(--border));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--house-brass) 16%, transparent);
}

body.room .side-launch {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 28%, transparent), transparent 38%),
    color-mix(in srgb, var(--house-brass-deep) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 40%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 40%, transparent),
    0 8px 18px color-mix(in srgb, #080604 35%, transparent);
}
body.room #now-launch {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 22%, transparent), transparent 40%),
    color-mix(in srgb, var(--accent-deep) 78%, transparent);
}
body.room #sched-launch {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 18%, transparent), transparent 40%),
    color-mix(in srgb, var(--house-wood) 74%, transparent);
}
body.room #tom-launch {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 16%, transparent), transparent 40%),
    color-mix(in srgb, var(--house-wood) 62%, var(--house-brass-deep));
}

.room-lamp {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.set-lamp {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4.6rem;
  height: var(--lamp-cord);
  margin-left: -2.3rem;
  background: linear-gradient(#1a100c, var(--house-brass-deep)) 50% 0 / 3px 100% no-repeat;
  transform-origin: top center;
  animation: lamp-swing 5.6s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.set-lamp:visited {
  color: inherit;
}
.set-lamp:focus-visible {
  outline: 2px solid var(--house-brass);
  outline-offset: 4px;
}
.set-lamp i {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4.6rem;
  height: 2.2rem;
  margin-left: -2.3rem;
  background: radial-gradient(circle at 50% 18%, #f3e2b0, var(--house-brass) 58%, var(--house-brass-deep));
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  box-shadow:
    0 0 28px 10px color-mix(in srgb, var(--house-brass) 52%, transparent),
    0 26px 60px color-mix(in srgb, var(--house-brass) 44%, transparent);
}
.set-lamp-pool {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(100%, 46rem);
  height: 58%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 62% 78% at 50% 6%,
    color-mix(in srgb, var(--house-brass) 46%, transparent),
    transparent 72%
  );
  opacity: 0.9;
}
@media (max-width: 40rem) {
  .set-lamp i {
    width: 3.8rem;
    height: 1.85rem;
    margin-left: -1.9rem;
  }
}

/* Writing chrome sits in the study, window stays in the iframe */
body.writing-page,
body.room--library {
  --bg: #120c08;
  --ink: #f3ead4;
  --ink-soft: color-mix(in srgb, #f3ead4 72%, var(--house-brass));
  --accent-deep: var(--house-brass);
  background: #120c08;
}
body.writing-page .nav a,
body.room--library .nav a { color: color-mix(in srgb, #f3ead4 78%, var(--house-brass)); }
body.writing-page .nav a.is-current,
body.writing-page .nav a:hover,
body.room--library .nav a.is-current,
body.room--library .nav a:hover { color: var(--house-brass); }
body.writing-page .nav--site,
body.room--library .nav--site {
  border-bottom-color: color-mix(in srgb, var(--house-brass) 45%, #3d2418);
}
body.room--library .set-shelves {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28vw, 11rem);
  height: 72%;
  background:
    repeating-linear-gradient(
      90deg,
      #5a2e1c 0 10px,
      #8a5a32 10px 18px,
      #3d2418 18px 24px,
      #c4a574 24px 28px
    );
  opacity: 0.34;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
body.room--library .set-lamp i {
  width: 4.9rem;
  height: 2.7rem;
  margin-left: -2.45rem;
  clip-path: polygon(22% 0, 78% 0, 100% 58%, 88% 100%, 12% 100%, 0 58%);
  background: radial-gradient(circle at 50% 12%, #e8d8a8, #6d7d52 52%, var(--house-brass-deep));
  box-shadow:
    0 0 32px 12px color-mix(in srgb, #c4a574 48%, transparent),
    0 28px 64px color-mix(in srgb, #6d7d52 36%, transparent);
}
body.room--library .set-lamp-pool {
  background: radial-gradient(
    ellipse 62% 78% at 50% 6%,
    color-mix(in srgb, #d4c49a 40%, transparent),
    transparent 72%
  );
}

/* Landing living-room. Lamp and blotter only. */
body.room--desk {
  --bg: #120e0a;
  --surface: #1a1410;
  --card: #221810;
  --border: #4a3424;
  --ink: #f0e4d0;
  --ink-soft: #c4ae94;
  --ink-faint: #8a7660;
  --accent: var(--house-brass);
  --accent-deep: #e4c89a;
  background:
    radial-gradient(80% 50% at 50% 100%, #1a120c, transparent 64%),
    #120e0a;
}
body.room--desk .set-blotter {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, transparent, #24180e 40%, #160f0c);
  box-shadow: inset 0 10px 0 color-mix(in srgb, var(--house-brass) 22%, transparent);
  opacity: 0.68;
}
body.desk-page .set-lamp {
  width: 2.85rem;
  margin-left: -1.425rem;
}
body.desk-page .set-lamp i {
  width: 2.85rem;
  height: 1.5rem;
  margin-left: -1.425rem;
  background: radial-gradient(circle at 50% 8%, #f6e2b0, #c4a574 62%, #3d2418);
  box-shadow:
    0 0 28px 12px color-mix(in srgb, var(--house-lamp) 42%, transparent),
    0 22px 48px color-mix(in srgb, var(--house-brass) 26%, transparent);
}
@media (min-width: 50rem) {
  body.desk-page .set-lamp {
    width: 5.4rem;
    margin-left: -2.7rem;
  }
  body.desk-page .set-lamp i {
    width: 5.4rem;
    height: 2.4rem;
    margin-left: -2.7rem;
  }
}

/* Writing study. Build keeps the pegboard shop. */
body.room--study {
  --bg: #100c0a;
  --surface: #1a1410;
  --card: #221810;
  --border: #4a3424;
  --ink: #f0e4d0;
  --ink-soft: #c4ae94;
  --ink-faint: #8a7660;
  --accent: var(--house-brass);
  --accent-deep: #e4c89a;
  background:
    radial-gradient(80% 50% at 50% 100%, #1c120c, transparent 62%),
    #100c0a;
}
body.room--study .set-shelves {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #4a2418 0 9px,
      #7a4a28 9px 16px,
      #2a1810 16px 22px,
      #c4a574 22px 25px
    );
  opacity: 0.22;
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 28% 72%, #000 82%);
}
body.room--study .set-blotter {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 16%;
  background:
    linear-gradient(180deg, color-mix(in srgb, #5a2418 0%, transparent), #3a1810 28%, #241008);
  box-shadow: inset 0 10px 0 color-mix(in srgb, var(--house-brass) 22%, transparent);
  opacity: 0.7;
}
body.room--study .set-lamp i {
  width: 5.4rem;
  height: 2.4rem;
  margin-left: -2.7rem;
  background: radial-gradient(circle at 50% 8%, #d4e8c4, #3d5c45 68%, #1a2418);
  box-shadow:
    0 0 30px 12px color-mix(in srgb, #6d7d52 40%, transparent),
    0 26px 54px color-mix(in srgb, #c4a574 28%, transparent);
}
body.room--study .set-lamp-pool {
  background: radial-gradient(
    ellipse 58% 72% at 50% 8%,
    color-mix(in srgb, #c4a574 34%, transparent),
    transparent 72%
  );
}
body.desk-page .wrap {
  padding-top: calc(var(--lamp-clear) + env(safe-area-inset-top, 0px));
}
body.desk-page .desk-top {
  margin-bottom: 0.55rem;
}
body.desk-page .masthead--tight {
  margin-bottom: 0.35rem;
}
body.desk-page .desk-toolbar {
  margin-bottom: 0.45rem;
}
body.desk-page .desk-main {
  display: grid;
  gap: 0.85rem;
}
body.desk-page .desk-cal-card .card-title,
body.desk-page #running-card .card-title {
  font-size: 1.35rem;
}
body.desk-page .desk-week-day header strong,
body.desk-page .desk-month-day header strong {
  font-size: 1.12rem;
}
body.room--study .rhythm a,
body.room--study .desk-now,
body.room--study .card {
  background: color-mix(in srgb, var(--card) 94%, #000);
  border-color: color-mix(in srgb, var(--house-brass) 34%, #3a2418);
}

body.room .file-pick {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 28%, transparent), transparent 40%),
    var(--house-brass-deep);
  border: 1px solid color-mix(in srgb, var(--house-brass) 55%, transparent);
}

/* Daily View — workshop */
body.room--workshop {
  --bg: #1a120c;
  --surface: #221810;
  --card: #2a1c12;
  --border: #5a3e28;
  --ink: #ead9c4;
  --ink-soft: #b9a48c;
  --ink-faint: #8a7664;
  --accent: var(--house-brass);
  --accent-deep: #e4c89a;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  background:
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, #3d2418 72%, #120e0b) 0 2px,
      #1a120c 2px 28px
    ),
    #18100b;
}
body.room--workshop .set-bench {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11%;
  background:
    repeating-linear-gradient(90deg, #2a1810 0 3px, #4a3020 3px 28px);
  box-shadow: inset 0 8px 0 color-mix(in srgb, var(--house-brass) 28%, transparent);
}
body.room--workshop .set-peg {
  position: absolute;
  inset: 0 38% 0 0;
  background-image: radial-gradient(var(--house-brass) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.22;
}
body.room--workshop .set-lamp i {
  background: radial-gradient(circle at 50% 18%, #f3e2b0, var(--house-brass) 62%, #6a4a24);
}
body.build-page {
  --bg: #120e0b;
  --surface: #221a14;
  --card: color-mix(in srgb, #221a14 82%, transparent);
  --border: color-mix(in srgb, var(--house-brass) 42%, #221a14);
  --ink: #ead9c4;
  --ink-soft: color-mix(in srgb, #ead9c4 72%, #221a14);
  --ink-faint: color-mix(in srgb, #ead9c4 48%, #221a14);
  --status: #9ad8ff;
  --lamp-amber: #f3d08a;
}
body.build-page .card {
  background: color-mix(in srgb, #221a14 70%, transparent);
  border-color: color-mix(in srgb, var(--house-brass) 38%, transparent);
}
.build-stack {
  display: grid;
  gap: 0.85rem;
}
.build-corners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.build-corner {
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid color-mix(in srgb, var(--house-brass) 42%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--house-brass) 18%, transparent);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.build-corner.is-current {
  background: color-mix(in srgb, var(--house-brass-deep) 55%, transparent);
  border-color: var(--house-brass);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--status) 35%, transparent);
}
.build-job {
  margin: 0.15rem 0 0.15rem;
  color: var(--status);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.build-doc {
  padding: 0;
}
.build-doc > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.85rem 1.1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.build-doc > summary::-webkit-details-marker {
  display: none;
}
.build-doc[open] > summary {
  border-bottom: 1px solid color-mix(in srgb, var(--house-brass) 42%, transparent);
}
.build-doc-body {
  padding: 0 0 0.85rem;
}
.build-doc-tools {
  display: flex;
  margin: 0.75rem 1.1rem 0.35rem;
}
.build-doc-tools .save {
  margin-top: 0;
  min-height: 44px;
}
.build-doc-frame {
  display: block;
  width: 100%;
  min-height: 28rem;
  height: 70dvh;
  border: 0;
  background: #f9f4ed;
}
.build-list {
  margin: 0.35rem 0 0.7rem;
  padding: 0 0 0 1.1rem;
}
.build-list li {
  margin: 0 0 0.35rem;
}
.build-tip p:last-child {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.build-now-title {
  margin: 0.15rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
}
.build-links {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
  list-style: none;
}
.build-links a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}
.build-links a .meta {
  font-weight: 500;
}
.build-step-tip {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.build-step-tip p:last-child {
  font-family: var(--serif);
  font-size: 1.02rem;
}
.build-nav {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.build-nav .save {
  margin-top: 0;
}
@media (min-width: 40rem) {
  .build-nav {
    grid-template-columns: 1fr 1fr;
  }
  .build-nav .save:only-child,
  .build-nav .meta {
    grid-column: 1 / -1;
  }
  .build-done {
    grid-column: 1 / -1;
  }
}
.build-done {
  margin: 0;
}
.build-done .save {
  margin-top: 0;
  min-height: 44px;
  width: 100%;
}
.build-done-err {
  margin: 0.4rem 0 0.55rem;
}
.build-basics summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.build-basics .build-list {
  margin-top: 0.75rem;
}

.build-projects {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
@media (min-width: 40rem) {
  .build-projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
.build-project {
  display: grid;
  gap: 0.15rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 42%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--house-wood) 18%, transparent);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}
.build-project.is-current {
  border-color: color-mix(in srgb, var(--house-brass-deep) 70%, var(--border));
  background: color-mix(in srgb, var(--house-brass) 24%, transparent);
}
.build-project strong {
  font-size: 0.95rem;
}
.build-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.build-view {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 35%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
}
.build-view.is-current {
  background: color-mix(in srgb, var(--house-brass-deep) 55%, transparent);
  border-color: color-mix(in srgb, var(--house-brass-deep) 65%, var(--border));
}
.build-substeps {
  margin: 0.65rem 0 0.85rem;
  padding: 0 0 0 1.1rem;
}
.build-substeps li {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
}
.build-sub-id {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--house-brass-deep) 80%, var(--ink));
}
.build-reset {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.build-reset summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.build-reset .save {
  margin-top: 0.55rem;
}
.build-ref-sub {
  margin: 1.1rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.12rem;
}
.build-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0;
}
.build-chip {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 45%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}
.build-chip[aria-pressed="true"],
.build-piece.is-highlight,
.build-board-seg.is-highlight,
.build-key-row.is-highlight {
  background: color-mix(in srgb, var(--house-brass) 38%, transparent);
  border-color: color-mix(in srgb, var(--house-brass-deep) 70%, var(--border));
}
.build-fig {
  margin: 0.5rem 0 0.85rem;
  padding: 0.65rem;
  border: 1.5px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 92%, #000);
  cursor: zoom-in;
}
.build-fig-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}
.build-badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  fill: currentColor;
}
.build-piece {
  cursor: pointer;
}
.build-ref:has(.build-chip[aria-pressed="true"]) .build-piece:not(.is-highlight),
.build-ref:has(.build-key-row.is-highlight) .build-piece:not(.is-highlight) {
  opacity: 0.55;
}
.build-readout {
  min-height: 1.2rem;
  margin: 0.25rem 0 0.5rem;
}
.build-piece-key {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
}
.build-key-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}
.build-key-row dd {
  margin: 0;
}
.build-cut-list {
  display: grid;
  gap: 0.55rem;
}
.build-board {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.build-board.is-done {
  opacity: 0.72;
  text-decoration: line-through;
}
.build-board-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
}
.build-board-bar {
  display: flex;
  width: 100%;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 4px;
  overflow: hidden;
}
.build-board-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 2px;
  font-size: 0.68rem;
  font-weight: 600;
  border-right: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--house-wood) 25%, transparent);
}
.build-board-seg.is-waste {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    color-mix(in srgb, var(--border) 55%, transparent) 3px,
    color-mix(in srgb, var(--border) 55%, transparent) 6px
  );
}
.build-joints {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 50rem) {
  .build-joints {
    grid-template-columns: repeat(3, 1fr);
  }
}
.build-shop-print {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 50rem) {
  .build-shop-print {
    grid-template-columns: 1fr 1fr;
  }
}
.build-shop-aisle ul,
.build-shop-warn ul {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.1rem;
}
.build-shop-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.25rem 0;
  cursor: pointer;
}
.build-shop-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
}
.build-shop-warn--alert {
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid color-mix(in srgb, #b45309 45%, var(--border));
  background: color-mix(in srgb, #b45309 12%, transparent);
}
.build-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: color-mix(in srgb, #000 55%, transparent);
}
.build-zoom-inner {
  position: relative;
  width: min(100%, 56rem);
  max-height: 92dvh;
  overflow: auto;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--card);
}
.build-zoom-close {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 0.65rem auto;
  display: block;
}
.build-zoom-stage svg {
  width: 100%;
  height: auto;
}
@media print {
  .build-views,
  .build-projects,
  .build-nav,
  .build-reset,
  .build-zoom-close,
  .nav,
  .build-chips {
    display: none !important;
  }
  .build-shop-print {
    grid-template-columns: 1fr 1fr;
  }
}

body.room--workshop .card,
body.room--workshop .rhythm a,
body.room--workshop .desk-now {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 28%, transparent),
    0 10px 24px color-mix(in srgb, #000 28%, transparent);
  border-color: color-mix(in srgb, var(--house-brass) 38%, #4a3020);
}
body.room--workshop .rhythm a,
body.room--workshop .desk-now {
  background: color-mix(in srgb, var(--card) 92%, #000);
  border-radius: 6px;
}
body.room--workshop .desk-cal-day.is-current,
body.room--workshop .desk-week-day.is-current,
body.room--workshop .desk-month-day.is-current {
  background: color-mix(in srgb, var(--house-brass) 28%, #1a120c);
  border-color: var(--house-brass);
  color: var(--ink);
}

/* Room stage overlay — house shell (Cal Ice Circuit comps = reference impl).
   Same structure every room; skin via --stage-accent on body.room--*. */
.desk-stage {
  --stage-accent: var(--house-brass);
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--card, #f7f5ef) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 34%, var(--border, #3a4048));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--stage-accent) 12%, transparent),
    0 16px 28px color-mix(in srgb, #000 36%, transparent);
}
.desk-stage-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 8%, transparent), transparent 38%),
    color-mix(in srgb, var(--card, #f7f5ef) 86%, transparent);
}
.desk-stage-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--stage-accent) 72%, var(--house-brass));
}
.desk-stage h2,
.desk-stage .desk-stage-title {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.desk-stage-count {
  margin: 0;
}
.desk-stage-board {
  display: grid;
  gap: 0.85rem;
}
.desk-stage-hero {
  margin-top: 0.15rem;
  min-width: 0;
}
.desk-stage-hero .ex-form-body.is-open,
.desk-stage-hero .desk-stage-panel-body.is-open {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.desk-stage-work {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.7rem 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--card, #f7f5ef) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 22%, var(--border, #3a4048));
}
.desk-stage-work h3 {
  margin: 0;
}
.desk-stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.desk-stage-nav .save,
.desk-stage-nav .fit-rest-act,
.desk-stage-nav .desk-stage-act,
.desk-stage .fit-flow-done,
.desk-stage .save[data-fit-finish] {
  flex: 1 1 7.5rem;
  min-height: 52px;
  font-size: 1.05rem;
}
.desk-stage-panel {
  margin: 0;
  padding: 0.45rem 0.5rem 0.55rem;
  color: color-mix(in srgb, var(--stage-accent) 55%, var(--ink, #1c1c18));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--card, #f7f5ef) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 28%, var(--border, #3a4048));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--stage-accent) 22%, transparent),
    0 0 24px color-mix(in srgb, var(--stage-accent) 10%, transparent);
}
.desk-stage-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
@media (min-width: 50rem) {
  .desk-stage-board {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.85fr);
    align-items: start;
  }
  .desk-stage--stack .desk-stage-board {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 64rem) {
  .desk-stage-board {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.75fr);
    gap: 1rem;
  }
}

/* The Gym — bright, hard, uncluttered */
/* Fitness chrome — gym */
body.room--gym .fit-plan,
body.room--gym .fit-stage {
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 34%, #3a4048);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--gibson-wake, #9ad8ff) 12%, transparent),
    0 16px 28px color-mix(in srgb, #000 36%, transparent);
}
body.room--gym .fit-flow-step {
  border-top-color: color-mix(in srgb, var(--gibson-wake, #9ad8ff) 18%, transparent);
}
body.room--gym .ex-form-drop > summary {
  color: var(--house-brass);
}
body.room--gym .ex-form-body {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 22%, #3a4048);
  backdrop-filter: blur(12px);
  padding: 0.55rem 0.7rem 0.7rem;
}
body.room--gym .fit-form-still {
  margin: 0;
  padding: 0.45rem 0.5rem 0.55rem;
  color: color-mix(in srgb, var(--gibson-wake, #9ad8ff) 55%, #e6e8ec);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gibson-wake, #9ad8ff) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--card) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 28%, #3a4048);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--gibson-wake, #9ad8ff) 22%, transparent),
    0 0 24px color-mix(in srgb, var(--gibson-wake, #9ad8ff) 10%, transparent);
}
body.room--gym .fit-form-still figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.4rem;
}
body.room--gym .fit-form-cue {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--gibson-wake, #9ad8ff) 42%, #e6e8ec);
}
body.room--gym .fit-form-still svg,
body.room--gym .fit-form-still img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 11rem;
}
.fit-form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.fit-form-graphic {
  display: grid;
  gap: 0.45rem;
}
.fit-form-motion {
  margin: 0;
  padding: 0.45rem 0.5rem 0.55rem;
  color: color-mix(in srgb, var(--gibson-wake, #9ad8ff) 62%, #e6e8ec);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 22%, #3a4048);
}
.fit-form-motion svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
}
.fit-form-motion object {
  display: block;
  width: 100%;
  min-height: 12rem;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.fit-form-motion--large svg,
.fit-form-motion--large object,
.fit-stage .fit-form-motion svg,
.fit-stage .fit-form-motion object {
  max-height: 18rem;
}
.fit-stage--flow .fit-form-motion svg,
.fit-stage--flow .fit-form-motion--large svg {
  max-height: 24rem;
}
.fit-form-ice-start,
.fit-form-ice-move {
  stroke-dasharray: 5 9;
}
@keyframes fit-form-rep-start {
  0%, 14% { opacity: 1; }
  40%, 60% { opacity: 0.1; }
  86%, 100% { opacity: 1; }
}
@keyframes fit-form-rep-move {
  0%, 14% { opacity: 0.1; }
  40%, 60% { opacity: 1; }
  86%, 100% { opacity: 0.1; }
}
@keyframes fit-form-circuit {
  to { stroke-dashoffset: -28; }
}
.fit-stage-board,
.desk-stage-board.fit-stage-board {
  display: grid;
  gap: 0.85rem;
}
.fit-stage-log,
.desk-stage-work.fit-stage-log {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.7rem 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--stage-accent, var(--gibson-wake, #9ad8ff)) 22%, #3a4048);
}
.fit-stage-log h3 {
  margin: 0;
}
.fit-ex--stage {
  display: block;
  grid-template-columns: none;
  padding: 0.35rem 0 0.85rem;
  border-top: 0;
}
.fit-ex--stage + .fit-ex--stage {
  border-top: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 16%, transparent);
}
.fit-stage,
.desk-stage.fit-stage {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}
.fit-circuit-shell,
.desk-stage-shell.fit-circuit-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-accent, var(--gibson-wake, #9ad8ff)) 8%, transparent), transparent 38%),
    color-mix(in srgb, var(--card) 86%, transparent);
}
.fit-circuit-kicker,
.desk-stage-kicker.fit-circuit-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--stage-accent, var(--gibson-wake, #9ad8ff)) 72%, var(--house-brass));
}
.fit-stage-count {
  margin: 0;
}
.fit-stage-hero,
.desk-stage-hero.fit-stage-hero {
  margin-top: 0.35rem;
}
.fit-stage-hero .ex-form-body.is-open {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.fit-stage-nav,
.desk-stage-nav.fit-stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.fit-stage-nav .save,
.fit-stage-nav .fit-rest-act,
.desk-stage-nav.fit-stage-nav .save,
.desk-stage-nav.fit-stage-nav .fit-rest-act,
.fit-stage .fit-flow-done,
.fit-stage .save[data-fit-finish] {
  flex: 1 1 7.5rem;
  min-height: 52px;
  font-size: 1.05rem;
}
.fit-stage .fit-pick,
.fit-stage .fit-set,
.fit-stage .fit-ex-check {
  min-height: 52px;
  min-width: 52px;
}
.fit-stage .fit-form-still svg,
.fit-stage .fit-form-still img,
.fit-form-pair--large .fit-form-still svg,
.fit-form-pair--large .fit-form-still img {
  max-height: 16rem;
}
.fit-stage--flow .fit-form-still svg,
.fit-stage--flow .fit-form-still img,
.fit-stage--flow .fit-form-pair--large .fit-form-still svg,
.fit-stage--flow .fit-form-pair--large .fit-form-still img {
  max-height: 22rem;
}
.fit-overlay-seat {
  position: fixed;
  left: max(env(safe-area-inset-left, 0px), 0.75rem);
  bottom: max(env(safe-area-inset-bottom, 0px), 5.75rem);
  width: 7rem;
  height: 7rem;
  pointer-events: none;
  z-index: 8;
}
body.overlay-seat-athletics #fit-overlay-seat:not([hidden]) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gibson-wake, #9ad8ff) 22%, transparent);
}
body.fitness-page.has-lamp-hud .gibson-safe {
  transition: top 0.45s ease, left 0.45s ease, bottom 0.45s ease, opacity 0.28s ease;
}
body.fitness-page.overlay-is-repopulating.has-lamp-hud .gibson-safe {
  opacity: 0.2;
}
body.fitness-page.overlay-seat-athletics.has-lamp-hud .gibson-safe {
  top: auto;
  left: max(env(safe-area-inset-left, 0px), 0.75rem);
  bottom: max(env(safe-area-inset-bottom, 0px), 5.75rem);
}
@media (max-width: 26.6rem) {
  body.fitness-page.overlay-seat-athletics.has-lamp-hud .gibson-safe {
    top: auto;
    left: max(env(safe-area-inset-left, 0px), 0.75rem);
    bottom: max(env(safe-area-inset-bottom, 0px), 5.75rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.fitness-page.has-lamp-hud .gibson-safe {
    transition: none;
  }
  .fit-form-motion {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  body.room--gym .fit-form-still svg,
  body.room--gym .fit-form-still img {
    opacity: 0.92;
  }
  .fit-form-graphic[data-form-kind="jarvis"] .fit-form-motion {
    display: none;
  }
  .fit-form-ice-start {
    animation: fit-form-rep-start 2.4s ease-in-out infinite, fit-form-circuit 1.8s linear infinite;
  }
  .fit-form-ice-move {
    animation: fit-form-rep-move 2.4s ease-in-out infinite, fit-form-circuit 1.8s linear infinite;
  }
}
@media (min-width: 40rem) {
  .fit-stage--flow .fit-form-still svg,
  .fit-stage--flow .fit-form-still img,
  .fit-stage--flow .fit-form-pair--large .fit-form-still svg,
  .fit-stage--flow .fit-form-pair--large .fit-form-still img,
  .fit-stage--flow .fit-form-motion svg,
  .fit-stage--flow .fit-form-motion object {
    max-height: 26rem;
  }
  .fit-rest {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .fit-rest-picks {
    grid-column: auto;
  }
  .fit-rest-acts {
    grid-column: 1 / -1;
  }
}
@media (min-width: 50rem) {
  .fit-ex--stage .fit-stage-board {
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.85fr);
    align-items: start;
  }
  .fit-stage--flow .fit-stage-copy {
    display: grid;
    gap: 0.65rem;
  }
  .fit-stage--flow .fit-stage-hero .fit-form-pair--large {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}
@media (min-width: 64rem) {
  .fit-stage--flow .fit-form-pair--large .fit-form-still img {
    max-height: 28rem;
  }
  .fit-ex--stage .fit-stage-board {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.75fr);
    gap: 1rem;
  }
}
body.fitness-page .fitness-frame {
  flex: none;
  min-height: 28rem;
  height: min(70dvh, 40rem);
}
body.room--gym {
  --bg: #eceae4;
  --surface: #e4e2da;
  --card: #f7f5ef;
  --border: #c8c4b8;
  --ink: #1c1c18;
  --ink-soft: #5c584e;
  --ink-faint: #8a8680;
  --accent: var(--house-brass);
  --accent-deep: var(--house-brass-deep);
  --radius-lg: 4px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #f3d08a 14%, #f4f2ea) 0%, #eceae4 32%);
}
body.room--gym .fitness-frame { background: #eceae4; }
body.room--gym .nav--site {
  border-bottom-color: color-mix(in srgb, var(--house-brass) 42%, #c8c4b8);
}
body.room--gym .set-fluorescent {
  position: absolute;
  top: 4%;
  left: 12%;
  right: 12%;
  display: flex;
  justify-content: space-between;
  opacity: 0.55;
}
body.room--gym .set-fluorescent i {
  width: 22%;
  height: 8px;
  border-radius: 2px;
  background: #f4f0e0;
  box-shadow: 0 10px 28px color-mix(in srgb, #f3d08a 36%, #d8d4c4);
}
body.room--gym .set-beam {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  height: 28vh;
  background: linear-gradient(180deg, color-mix(in srgb, #f3d08a 22%, transparent), transparent);
  opacity: 0.7;
}
body.room--gym .set-rack {
  position: absolute;
  left: 3%;
  top: 22%;
  width: 8px;
  bottom: 8%;
  background: #8a8680;
  box-shadow: 16px 0 0 #8a8680, calc(100vw - 3% - 24px) 0 0 #8a8680, calc(100vw - 3% - 8px) 0 0 #8a8680;
  opacity: 0.12;
}
body.room--gym .set-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: repeating-linear-gradient(90deg, var(--house-brass) 0 2px, transparent 2px 48px);
  opacity: 0.2;
}
body.room--gym .set-glass {
  position: absolute;
  inset: 0;
}
body.room--gym .set-glass-pane {
  position: absolute;
  top: 5%;
  width: 16%;
  bottom: 12%;
  border: 1px solid color-mix(in srgb, var(--gibson-wake, #9ad8ff) 16%, #8a9098);
  background:
    linear-gradient(180deg, color-mix(in srgb, #c8e6f8 22%, transparent), color-mix(in srgb, #6a8aaa 12%, transparent) 46%, color-mix(in srgb, #2a3038 36%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, #fff 10%, transparent), transparent 42%);
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--gibson-wake, #9ad8ff) 10%, transparent);
  opacity: 0.36;
}
body.room--gym .set-glass-pane--left {
  left: 0;
  border-left: 0;
}
body.room--gym .set-glass-pane--right {
  right: 0;
  border-right: 0;
}
body.room--gym .set-gear {
  position: absolute;
  left: 6%;
  bottom: 11%;
  width: 2.4rem;
  height: 2rem;
  color: #8a9098;
  opacity: 0.32;
}
@media (max-width: 39.99rem) {
  body.room--gym .set-glass-pane {
    width: 10%;
    opacity: 0.28;
  }
}
body.room--gym .chat-launch,
body.room--gym .save {
  border-radius: 4px;
  background: color-mix(in srgb, var(--house-brass-deep) 78%, transparent);
}
body.room--gym .set-lamp i {
  width: 2.35rem;
  height: 3.05rem;
  margin-left: -1.175rem;
  clip-path: none;
  border-radius: 0.15rem 0.15rem 1.05rem 1.05rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, #c8c4b8 3px 4px),
    radial-gradient(circle at 50% 82%, #f3d08a, #9a9688 70%);
  box-shadow: 0 0 30px 12px color-mix(in srgb, #f3d08a 38%, transparent);
}
body.room--gym .set-lamp-pool {
  background: radial-gradient(
    ellipse 62% 78% at 50% 6%,
    color-mix(in srgb, #f3d08a 28%, transparent),
    transparent 72%
  );
}

/* Food — manor kitchen · Brand Kit glass */
body.room--kitchen {
  --bg: #120e0b;
  --surface: #221a14;
  --card: color-mix(in srgb, #221a14 88%, #ead9c4);
  --border: color-mix(in srgb, #c4a574 38%, #221a14);
  --ink: #ead9c4;
  --ink-soft: color-mix(in srgb, #ead9c4 70%, #c4a574);
  --ink-faint: color-mix(in srgb, #ead9c4 46%, #221a14);
  --accent: #c4a574;
  --accent-deep: #e8a070;
  --accent-tint: color-mix(in srgb, #c4a574 16%, transparent);
  --accent-edge: color-mix(in srgb, #c4a574 42%, transparent);
  --sage: #7a8a5e;
  background: linear-gradient(180deg, #221a14 0 42%, #1a1410 42% 46%, #120e0b 46%);
}
body.room--kitchen .set-tile {
  position: absolute;
  top: 0;
  right: 0;
  width: min(42vw, 18rem);
  height: 42%;
  background:
    repeating-linear-gradient(#2a1c14 0 28px, #5a3e28 28px 29px),
    repeating-linear-gradient(90deg, #2a1c14 0 42px, #5a3e28 42px 43px);
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
body.room--kitchen .set-steam {
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 6rem;
  height: 7rem;
}
body.room--kitchen .set-steam i {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 55%, transparent);
  animation: steam-up 4.8s ease-in-out infinite;
}
body.room--kitchen .set-steam i:nth-child(2) { left: 22px; animation-delay: 0.8s; }
body.room--kitchen .set-steam i:nth-child(3) { left: 44px; animation-delay: 1.6s; }
body.room--kitchen .set-pots {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: 10rem;
  height: 4.4rem;
  color: #c4845a;
  opacity: 0.55;
}
body.room--kitchen .food-pick button {
  background: color-mix(in srgb, var(--card) 88%, #000);
  border-color: color-mix(in srgb, var(--house-brass) 40%, #5a3e28);
  border-radius: 999px;
  color: var(--ink);
}
body.room--kitchen .food-pick button.is-current {
  background: color-mix(in srgb, var(--house-brass-deep) 82%, #3a2418);
  border-color: var(--house-brass);
  color: #f3ead4;
}
body.room--kitchen .set-lamp i {
  width: 5.2rem;
  height: 2.55rem;
  margin-left: -2.6rem;
  clip-path: none;
  border-radius: 50% 50% 12% 12%;
  background: radial-gradient(circle at 50% 18%, #e8a070, #b8734d 62%, #6a3418);
  box-shadow: 0 0 30px 12px color-mix(in srgb, #c4845a 50%, transparent);
}
body.room--kitchen .set-lamp-pool {
  background: radial-gradient(
    ellipse 62% 78% at 50% 6%,
    color-mix(in srgb, #c4845a 36%, transparent),
    transparent 72%
  );
}

/* Chess — academic study */
body.room--academy {
  --bg: #14120e;
  --surface: #1c1a14;
  --card: #221e16;
  --border: #4a4234;
  --ink: #e8e2d4;
  --ink-soft: #b0a890;
  --ink-faint: #7a7464;
  --accent: #6d7d52;
  --accent-deep: var(--house-brass);
  background: #14120e;
}
body.room--academy .set-shelves {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28vw, 11rem);
  height: 72%;
  background:
    repeating-linear-gradient(
      90deg,
      #5a3d28 0 10px,
      #8a5a32 10px 18px,
      #24382a 18px 24px,
      #cfc6b4 24px 28px
    );
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
body.room--academy .set-lamp {
  width: 5.2rem;
  margin-left: -2.6rem;
}
body.room--academy .set-lamp i {
  width: 6.4rem;
  height: 2.7rem;
  margin-left: -3.2rem;
  clip-path: polygon(22% 0, 78% 0, 100% 48%, 78% 100%, 22% 100%, 0 48%);
  background:
    radial-gradient(circle at 50% 8%, #f7f1e4, #c4a574 42%, #3d2418 78%, #140e0a 100%);
  box-shadow:
    0 0 18px 4px color-mix(in srgb, #c4a574 38%, transparent),
    0 0 42px 14px color-mix(in srgb, #3d2418 35%, transparent),
    0 28px 56px color-mix(in srgb, #163526 40%, transparent);
}
body.room--academy .set-lamp-scan {
  display: none;
}
body.room--academy .set-lamp-pool {
  background: radial-gradient(
    ellipse 62% 78% at 50% 6%,
    color-mix(in srgb, #c4a574 22%, transparent),
    transparent 72%
  );
}
body.room--academy .set-board {
  position: absolute;
  left: 6%;
  bottom: 6%;
  width: 9rem;
  height: 9rem;
  opacity: 0.22;
  background:
    repeating-conic-gradient(#1c1e18 0% 25%, #e8e2d4 0% 50%) 0 0 / 2.25rem 2.25rem;
}
body.room--academy .set-king {
  position: absolute;
  right: 40%;
  bottom: 10%;
  width: 2.2rem;
  height: 4rem;
  color: var(--house-brass);
  opacity: 0.32;
}
body.room--academy .coming-card {
  background: color-mix(in srgb, var(--card) 92%, #0c0a08);
  border: 1px solid color-mix(in srgb, var(--house-brass) 28%, transparent);
}
body.room--academy .chess-card .card-title {
  margin-bottom: 0.85rem;
}
body.room--academy .chess-week,
body.room--academy .chess-games {
  margin-top: 0.35rem;
}
body.room--academy .chess-day,
body.room--academy .chess-game {
  display: grid;
  gap: 0.35rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
body.room--academy .chess-day {
  grid-template-columns: 7.2rem 1fr;
  align-items: start;
}
body.room--academy .chess-game {
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
}
body.room--academy .chess-day:first-child,
body.room--academy .chess-game:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}
body.room--academy .chess-day.is-today {
  background: color-mix(in srgb, #24382a 8%, var(--card));
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-shadow: inset 3px 0 0 var(--accent);
}
body.room--academy .chess-day-name,
body.room--academy .chess-round {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-deep);
  padding-top: 0.2rem;
}
body.room--academy .chess-day p,
body.room--academy .chess-game p,
body.room--academy .chess-focus p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
}
body.room--academy .chess-focus {
  margin: 0 0 1.05rem;
}
body.room--academy .chess-focus:last-child { margin-bottom: 0; }
body.room--academy .chess-focus strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.3rem;
}
body.room--academy .chess-step-name {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
body.room--academy .chess-task {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
}
body.room--academy .chess-done {
  margin-top: 1rem;
}
body.room--academy .chess-done .save { width: auto; }
body.room--academy .chess-log {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.room--academy .chess-log li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  font-family: var(--serif);
}
body.room--academy .chess-log li:first-child { border-top: 0; padding-top: 0.15rem; }
body.room--academy .chess-log span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 0.2rem;
}
body.room--academy .chess-result {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
}
body.room--academy .chess-result.is-win { color: var(--accent-deep); }
body.room--academy .chess-result.is-loss { color: #6a3a32; }
body.room--academy .chess-result a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
body.room--academy .chess-note,
body.room--academy #chess-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.85rem 0 1.1rem;
}
body.room--academy .chess-check,
body.room--academy .chess-miles {
  margin: 0;
  padding-left: 1.25rem;
  font-family: var(--serif);
  line-height: 1.5;
}
body.room--academy .chess-check li,
body.room--academy .chess-miles li {
  margin: 0.45rem 0;
}
body.room--academy .chess-miles li.is-done {
  color: var(--ink-soft);
}
body.room--academy .chess-when {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
body.room--academy .chess-when li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.45rem 0.8rem;
  padding: 0.45rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  font-family: var(--serif);
  font-size: 0.98rem;
}
body.room--academy .chess-when li:first-child { border-top: 0; padding-top: 0.1rem; }
body.room--academy .chess-when span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-top: 0.18rem;
}
body.room--academy .chess-when li.is-today {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 40rem) {
  body.room--academy .chess-day,
  body.room--academy .chess-game {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Music — dive-bar open mic, Brand Kit glass */
/* The Mic — the dive bar's set pieces only. The room's surface ramp comes from
   body.room (same field and ink it declared here), and everything inside the
   glass lives in music.css since the STAGE rebuild of 2026-09-13. */
body.room--mic .set-brick {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(#2a1814 0 18px, #5a3828 18px 20px),
    repeating-linear-gradient(90deg, #2a1814 0 42px, #5a3828 42px 44px);
  opacity: 0.58;
  mix-blend-mode: multiply;
}
body.room--mic .house-lamp { opacity: 1; }
body.room--mic .set-spot {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 38% at 50% 8%, color-mix(in srgb, #f3d08a 48%, transparent), transparent 72%),
    radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, #120e0b 78%, transparent), transparent 60%);
}
body.room--mic .set-bulbs {
  position: absolute;
  top: 4%;
  left: 22%;
  right: 22%;
  display: flex;
  justify-content: space-between;
}
body.room--mic .set-bulbs i {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 40% 40%;
  background: #f3d08a;
  box-shadow: 0 0 18px 6px color-mix(in srgb, #f3d08a 42%, transparent);
  animation: bulb-glow 3.4s ease-in-out infinite;
}
body.room--mic .set-bulbs i:nth-child(2) { animation-delay: 0.6s; }
body.room--mic .set-bulbs i:nth-child(3) { animation-delay: 1.2s; }
body.room--mic .set-stand {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 4.5rem;
  height: 12rem;
  margin-left: -2.25rem;
  color: #c4a890;
  opacity: 0.35;
}
body.room--mic .set-lamp i {
  width: 2.15rem;
  height: 2.85rem;
  margin-left: -1.075rem;
  clip-path: none;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 40% 30%, #fff4d0, #f3d08a 70%);
  box-shadow: 0 0 34px 14px color-mix(in srgb, #f3d08a 42%, transparent);
}
body.room--mic .set-lamp-pool {
  background: radial-gradient(
    ellipse 58% 74% at 50% 8%,
    color-mix(in srgb, #f3d08a 28%, transparent),
    transparent 72%
  );
}
/* Journal — woods hike */

/* Journal — woods hike */
body.room--woods {
  --bg: #0c1410;
  --surface: #121a14;
  --card: #182016;
  --border: #3a4a32;
  --ink: #dce6d4;
  --ink-soft: #a4b898;
  --ink-faint: #6a7c60;
  --accent: var(--house-brass);
  --accent-deep: #c4d4a8;
  --sage: #6d7d52;
  --lamp-cord: clamp(5rem, 14vh, 7.2rem);
  --lamp-clear: calc(var(--lamp-cord) + 3.5rem);
  background: #0c1410;
}
body.room--woods .set-dapple {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, var(--house-brass) 16%, transparent) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 32%, color-mix(in srgb, #8aa078 14%, transparent) 0 6%, transparent 7%);
  animation: wx-drift 22s ease-in-out infinite alternate;
}
body.room--woods .set-canopy {
  position: absolute;
  inset: 0 0 40% 0;
  background:
    radial-gradient(40% 60% at 12% 0%, #1a2a18 0 42%, transparent 43%),
    radial-gradient(50% 70% at 88% 0%, #121c10 0 48%, transparent 49%),
    radial-gradient(36% 50% at 48% -10%, #24351f 0 50%, transparent 51%);
  opacity: 0.72;
  animation: wx-sway 11s ease-in-out infinite;
}
body.room--woods .set-trail {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #3a2410 70%, #1a2014));
  clip-path: polygon(42% 0, 58% 0, 88% 100%, 12% 100%);
}
body.room--woods .set-gate {
  position: absolute;
  left: 8%;
  bottom: 10%;
  width: 10px;
  height: 28%;
  background: #3a2410;
  box-shadow: calc(84vw - 16px) 0 0 #3a2410;
  opacity: 0.45;
}
body.room--woods .card {
  background: color-mix(in srgb, var(--card) 92%, #000);
  border-color: color-mix(in srgb, var(--house-brass) 28%, #3a4a32);
}
body.room--woods .set-lamp {
  height: var(--lamp-cord);
}
body.room--woods .set-lamp i {
  width: 2.55rem;
  height: 3.15rem;
  margin-left: -1.275rem;
  clip-path: none;
  border-radius: 3px 3px 6px 6px;
  background:
    linear-gradient(#3a2410 0 10%, transparent 10%),
    radial-gradient(circle at 50% 45%, #f0d080, #c4843a 60%, #3a2410);
  box-shadow:
    inset 0 0 0 2px #3a2410,
    0 0 28px 10px color-mix(in srgb, #c4a574 42%, transparent);
}
body.room--woods .set-lamp-pool {
  background: radial-gradient(
    ellipse 58% 74% at 50% 8%,
    color-mix(in srgb, #c4a574 30%, transparent),
    transparent 72%
  );
}

body.room--woods .journal-intro {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}
body.room--woods .journal-intro p { margin: 0 0 0.7rem; }
body.room--woods .journal-intro p:last-child { margin-bottom: 0; }
body.room--woods .journal-prompt {
  margin: 0 0 1rem;
}
body.room--woods .journal-lead {
  margin: 0 0 0.85rem;
}
body.room--woods .journal-lead p,
body.room--woods .journal-lead li {
  color: var(--ink-soft);
}
body.room--woods .journal-ask {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.room--woods .journal-draft {
  min-height: 12rem;
  background: #eef4e4;
  color: #1a2418;
  border-color: color-mix(in srgb, var(--house-brass) 32%, #3a4a32);
}
body.room--woods .journal-filed {
  white-space: pre-wrap;
  padding: 0.9rem 1rem;
  min-height: 4rem;
  border-radius: var(--radius-md);
  background: #eef4e4;
  color: #1a2418;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}
body.room--woods .journal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
body.room--woods .journal-actions .save {
  width: auto;
  min-width: 7.5rem;
  min-height: 44px;
  margin-top: 0;
  flex: 0 0 auto;
}
body.room--woods .journal-actions .save--secondary {
  color: var(--ink);
  background: color-mix(in srgb, var(--house-brass) 38%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 55%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--house-brass) 28%, transparent);
}
body.room--woods .journal-status {
  margin: 0 0 0.65rem;
  color: #f0c9a0;
  font-size: 0.95rem;
}
body.room--woods .journal-old {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card) 92%, #000);
  margin: 0 0 0.75rem;
}
body.room--woods .journal-old > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.95rem 1.15rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}
body.room--woods .journal-old > summary::-webkit-details-marker { display: none; }
body.room--woods .journal-old > summary::after {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
body.room--woods .journal-old[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 0.35rem;
}
body.room--woods .journal-old-body {
  padding: 0 1.15rem 1.1rem;
}
body.room--woods #journal-legacy .journal-frame {
  margin: 0 1.15rem 1.1rem;
  width: calc(100% - 2.3rem);
  border: 1.5px solid var(--border);
}
@media (max-width: 40rem) {
  body.room--woods .journal-actions .save {
    width: 100%;
  }
}

/* Meet the Team, Quick Ref, Finance — dark boardroom */
body.room--corp {
  --bg: #0e0c0a;
  --surface: #16120e;
  --card: #1c1814;
  --border: #3a3228;
  --ink: #e8e2d4;
  --ink-soft: #b0a898;
  --ink-faint: #7a7468;
  --accent: var(--house-brass);
  --accent-deep: var(--house-brass-deep);
  --accent-tint: color-mix(in srgb, var(--house-brass) 14%, #16120e);
  --radius-lg: 12px;
  background: #0e0c0a;
}
body.room--corp .set-wainscot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--house-brass) 40%, #3a3024) 0 3px, #1a1612 3px);
  opacity: 0.7;
}
body.room--corp .set-lamp {
  height: clamp(3.4rem, 11vh, 5.4rem);
  width: 5.8rem;
  margin-left: -2.9rem;
}
body.room--corp .set-lamp::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5.8rem;
  height: 3px;
  margin-left: -2.9rem;
  background: var(--house-brass);
}
body.room--corp .set-lamp i {
  width: 12px;
  height: 16px;
  margin-left: 0;
  clip-path: none;
  border-radius: 50% 50% 40% 40%;
  background: #f0e2b8;
  bottom: -16px;
  left: 50%;
  box-shadow: 0 0 16px 4px color-mix(in srgb, var(--house-brass) 45%, transparent);
  animation: bulb-glow 3.8s ease-in-out infinite;
}
body.room--corp .set-lamp i:nth-child(1) { transform: translateX(-34px); }
body.room--corp .set-lamp i:nth-child(2) { transform: translateX(-12px); animation-delay: 0.4s; }
body.room--corp .set-lamp i:nth-child(3) { transform: translateX(10px); animation-delay: 0.8s; }
body.room--corp .set-lamp i:nth-child(4) { transform: translateX(32px); animation-delay: 1.2s; }
body.room--corp .set-lamp-pool {
  background: radial-gradient(
    ellipse 70% 70% at 50% 4%,
    color-mix(in srgb, var(--house-brass) 34%, transparent),
    transparent 72%
  );
}
body.room--corp .set-terrazzo {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, #4a4034 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 64% 48%, var(--house-brass) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 12%, #e8e2d4 0 0.8px, transparent 1.2px);
  background-size: 90px 70px;
  opacity: 0.22;
}
body.room--corp .masthead { margin-bottom: 1.1rem; }
body.room--corp .masthead h1 {
  letter-spacing: -0.04em;
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}
body.room--corp .subtitle { font-size: 0.9rem; max-width: 46ch; }
body.room--corp .copyrow { border-color: #4a4034; }
body.room--corp .chat-launch {
  border-radius: 2px;
  background: color-mix(in srgb, var(--house-brass-deep) 78%, transparent);
}
body.room--corp .chat-panel { border-radius: 12px; }
body.room--corp .save { border-radius: 2px; }
body.room--corp .place,
body.room--corp .card,
body.room--corp .team-paste,
body.room--corp .ref-box {
  background: color-mix(in srgb, var(--card) 96%, #000);
  border-color: color-mix(in srgb, var(--house-brass) 32%, var(--border));
  color: var(--ink);
}
body.room--corp .team-brief textarea,
body.room--corp input,
body.room--corp textarea {
  background: #16120e;
  color: var(--ink);
  border-color: var(--border);
}
body.room--corp .copyrow:hover,
body.room--corp .copyrow.is-copied,
body.room--corp .team-copy.is-copied,
body.room--corp .team-paste.is-copied {
  background: color-mix(in srgb, var(--house-brass) 16%, var(--card));
}
body.room--corp .notion .callout {
  background: color-mix(in srgb, var(--house-brass) 12%, #16120e);
}

.coming-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
}
.coming-card p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

body.chess-page,
body.music-page,
body.team-page {
  min-height: 100dvh;
}

.team-corp-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.team-corp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.team-corp-logo img {
  display: block;
  width: min(11rem, 70vw);
  height: auto;
}
.team-corp-logo:focus-visible {
  outline: 2px solid var(--house-brass);
  outline-offset: 4px;
}
.team-corp-copy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.team-corp-logo--mark img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}
.team-corp-titles h1 {
  margin: 0;
}
.team-corp-hint {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--house-brass);
}
.team-corp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0.5rem;
}
.team-corp-seat {
  margin: 0;
  text-align: center;
}
.team-corp-name {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
}
.team-corp-card {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--house-brass) 36%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--house-brass-deep) 16%, transparent);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
a.team-corp-card-dl:hover,
a.team-corp-card-dl:focus-visible {
  outline: 2px solid var(--house-brass);
  outline-offset: 3px;
}
.team-corp-instructions-btn {
  min-height: 44px;
  padding: 0.15rem 0.35rem;
  margin: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.team-corp-instructions-btn:hover,
.team-corp-instructions-btn:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--house-brass);
  outline-offset: 2px;
}
.team-corp-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
.team-corp-download {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
}
.team-corp-download a {
  color: var(--house-brass);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.team-card-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.team-card-downloads a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--house-brass) 28%, var(--border));
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: color-mix(in srgb, var(--card) 94%, transparent);
}
.team-card-downloads a:hover,
.team-card-downloads a:focus-visible {
  border-color: color-mix(in srgb, var(--house-brass) 50%, var(--border));
  background: color-mix(in srgb, var(--house-brass) 12%, var(--card));
}
@media (min-width: 40rem) {
  .team-corp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .team-corp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.listen-page {
  overflow: hidden;
}

body.listen-page .wrap--listen {
  max-width: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.listen-plate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.65rem 0 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.listen-plate a {
  color: var(--house-brass);
  text-decoration: none;
}

.listen-frame {
  flex: 1;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0.55rem 0 0;
  border: 1px solid color-mix(in srgb, var(--house-brass) 28%, var(--border));
  background: #140e0a;
}

@media (max-width: 49.99rem) {
  body.listen-page .wrap--listen {
    padding-bottom: calc(var(--dock-pad) + env(safe-area-inset-bottom, 0px));
  }
}

body.has-lamp-hud.room .side-drawer {
  background:
    linear-gradient(180deg, color-mix(in srgb, #c4a574 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--house-wood, #3d2418) 10%, transparent) !important;
  border-color: color-mix(in srgb, #c4a574 38%, transparent) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent) !important;
}

/* Inbox — mail sorting desk. Cooler paper, pigeonholes, brass slots. */
body.room--mail {
  --bg: #1a1712;
  --surface: #221e18;
  --card: color-mix(in srgb, #e8e0d0 88%, #2a2418);
  --border: #8a7a62;
  --ink: #221c14;
  --ink-soft: #5a5246;
  --ink-faint: #7a7060;
  /* The Inbox's paper. Mail cards and the reply field are the same material,
   * so the value lives once here rather than being restated at each use. */
  --mail-paper: color-mix(in srgb, #f3ead8 92%, #2a2418);
  --accent: var(--house-brass);
  --accent-deep: var(--house-brass-deep);
  background:
    radial-gradient(70% 46% at 50% 100%, #2a2218, transparent 64%),
    #1a1712;
  color: #efe6d4;
}
body.room--mail .masthead h1,
body.room--mail .eyebrow {
  color: #efe6d4;
}
body.room--mail .nav a { color: color-mix(in srgb, #efe6d4 76%, var(--house-brass)); }
body.room--mail .nav a.is-current,
body.room--mail .nav a:hover { color: var(--house-brass); }
body.room--mail .nav--site {
  border-bottom-color: color-mix(in srgb, var(--house-brass) 42%, #3d2418);
}
body.room--mail .set-pigeon {
  position: absolute;
  right: 0;
  top: 8%;
  width: min(34vw, 13rem);
  height: 58%;
  background:
    repeating-linear-gradient(
      180deg,
      #3a3024 0 18px,
      #2a2218 18px 20px,
      #4a3c2c 20px 38px,
      #2a2218 38px 40px
    );
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  opacity: 0.42;
}
body.room--mail .set-slots {
  position: absolute;
  right: 1.2rem;
  top: 14%;
  display: grid;
  grid-template-columns: repeat(3, 1.6rem);
  gap: 0.45rem;
  opacity: 0.7;
}
body.room--mail .set-slots i {
  display: block;
  height: 2.1rem;
  border: 1.5px solid color-mix(in srgb, var(--house-brass) 55%, transparent);
  background: color-mix(in srgb, var(--house-wood) 40%, transparent);
}
body.room--mail .set-stack {
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 4.6rem;
  height: 1.4rem;
  background:
    linear-gradient(#efe6d4, #d4c8b0);
  box-shadow:
    0 -6px 0 #c4b8a0,
    0 -12px 0 #efe6d4;
  opacity: 0.35;
}
body.room--mail .set-lamp i {
  width: 4.4rem;
  height: 2.4rem;
  margin-left: -2.2rem;
  clip-path: polygon(18% 0, 82% 0, 100% 62%, 86% 100%, 14% 100%, 0 62%);
  background: radial-gradient(circle at 50% 10%, #efe6d4, var(--house-brass) 58%, var(--house-brass-deep));
  box-shadow: 0 0 28px 10px color-mix(in srgb, var(--house-brass) 40%, transparent);
}
body.room--mail .set-lamp-pool {
  background: radial-gradient(
    ellipse 58% 70% at 50% 8%,
    color-mix(in srgb, var(--house-brass) 28%, transparent),
    transparent 72%
  );
}
body.room--mail .card,
body.room--mail .mail-row {
  background: var(--mail-paper);
  color: #221c14;
  border-color: color-mix(in srgb, var(--house-brass) 34%, #8a7a62);
}
body.room--mail .meta { color: color-mix(in srgb, #efe6d4 70%, var(--house-brass)); }
/* The Inbox is the house's only paper room: --ink #221c14 is dark because the
 * mail cards are paper. The house-wide `body.room textarea` rule pairs
 * `color: var(--ink)` with `background: var(--surface)`, which only reads when
 * ink and surface sit on opposite ends of a lane — and here both are dark, so
 * a reply typed into the box came out at 1.01:1. Invisible, not merely dim.
 *
 * In a paper room a field is paper. Swept all sixteen rooms on 2026-09-11:
 * every other one lands between 12.35:1 and 15.54:1 and is untouched by this.
 * Values are the room's own --card and --border; no new value enters. */
body.room--mail textarea,
body.room--mail input[type="text"],
body.room--mail input[type="search"],
body.room--mail input:not([type]) {
  background: var(--mail-paper);
  border-color: color-mix(in srgb, var(--house-brass) 34%, var(--border));
  color: var(--ink);
}
body.room--mail textarea::placeholder,
body.room--mail input::placeholder {
  color: var(--ink-soft);
}
/* The gear panel floats above the room as dark chrome and carries its own ramp
 * (see .desk-settings-menu in hud.css) — it must not take the paper field. */
body.room--mail .desk-settings-menu textarea,
body.room--mail .desk-settings-menu input {
  background: color-mix(in srgb, #1a120c 55%, transparent);
  border-color: color-mix(in srgb, #c4a574 42%, transparent);
  color: #f3ead4;
}
body.room--mail .mail-read .eyebrow,
body.room--mail .mail-read .card-title,
body.room--mail .mail-read .message-body { color: #221c14; }
body.room--mail .save {
  background: color-mix(in srgb, var(--house-brass-deep) 72%, transparent);
  color: #f3ead8;
}
.mail-room {
  display: grid;
  gap: 0.85rem;
}
.mail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mail-row {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
}
.mail-row:hover,
.mail-row.is-current {
  border-color: var(--house-brass);
}
.mail-from {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.mail-subject {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.mail-read .card-title { margin: 0 0 0.7rem; }
.mail-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 0.4rem;
  padding: 0;
}
.mail-room.is-open .mail-list { display: none; }
.mail-room:not(.is-open) .mail-back { display: none; }
@media (min-width: 64rem) {
  .mail-room {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
  .mail-room.is-open .mail-list { display: grid; }
  .mail-back { display: none; }
}

/* The Lab — chalkboard bench, amber lamp, ice for live status only */
body.room--lab {
  --bg: #120e0b;
  --surface: #221a14;
  --card: #221a14;
  --border: #4a3828;
  --ink: #ead9c4;
  --ink-soft: color-mix(in srgb, #ead9c4 72%, #c4a574);
  --ink-faint: #8a7460;
  --accent: var(--house-brass);
  --accent-deep: var(--house-brass-deep);
  --lab-ice: #9ad8ff;
  --lab-board: #1a2218;
  --lab-chalk: #ead9c4;
  --lab-lamp: #ffe08a;
  color: var(--ink);
  background: #120e0b;
}
body.lab-page .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.room--lab .masthead h1 {
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}
body.room--lab .set-slate {
  position: absolute;
  top: 8%;
  left: 6%;
  right: 28%;
  height: 38%;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, color-mix(in srgb, #2a3224 70%, transparent), transparent 72%),
    repeating-linear-gradient(180deg, color-mix(in srgb, #ead9c4 4%, transparent) 0 1px, transparent 1px 14px);
  opacity: 0.42;
  pointer-events: none;
}
body.room--lab .set-glass {
  position: absolute;
  right: 8%;
  bottom: 10%;
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  opacity: 0.45;
}
body.room--lab .set-glass i {
  display: block;
  width: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--lab-ice) 55%, var(--house-brass));
  border-radius: 40% 40% 20% 20%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lab-ice) 22%, transparent), transparent 70%);
}
body.room--lab .set-glass i:nth-child(1) { height: 2.4rem; }
body.room--lab .set-glass i:nth-child(2) { height: 3.2rem; width: 1.05rem; }
body.room--lab .set-glass i:nth-child(3) { height: 1.8rem; }
body.room--lab .set-coil {
  position: absolute;
  left: 10%;
  bottom: 12%;
  width: 3.2rem;
  height: 1.1rem;
  border-radius: 40%;
  border: 1px solid color-mix(in srgb, var(--house-brass) 45%, transparent);
  box-shadow:
    0 0.35rem 0 color-mix(in srgb, var(--house-brass) 22%, transparent),
    0 0.7rem 0 color-mix(in srgb, var(--house-brass) 16%, transparent);
  opacity: 0.35;
}
body.room--lab .set-lamp i {
  background: radial-gradient(circle at 50% 18%, #fff6d0, var(--lab-lamp) 58%, var(--house-brass-deep));
  box-shadow:
    0 0 28px 10px color-mix(in srgb, var(--lab-lamp) 48%, transparent),
    0 26px 60px color-mix(in srgb, var(--house-brass) 36%, transparent);
}
body.room--lab .set-lamp-pool {
  background: radial-gradient(
    ellipse 58% 74% at 50% 8%,
    color-mix(in srgb, var(--lab-lamp) 28%, transparent),
    transparent 72%
  );
}
body.room--lab .nav--site {
  border-bottom-color: color-mix(in srgb, var(--house-brass) 48%, #3d2418);
}
body.room--lab .nav a { color: var(--ink-soft); }
body.room--lab .nav a.is-current,
body.room--lab .nav a:hover { color: var(--house-brass); }
body.room--lab .eyebrow { color: var(--house-brass); }
.lab-room {
  display: grid;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  padding-bottom: 1.5rem;
}
.lab-corners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}
.lab-corner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 52%, transparent);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lab-corner.is-current {
  color: var(--lab-chalk);
  background: color-mix(in srgb, var(--house-brass-deep) 78%, transparent);
  border-color: var(--house-brass);
}
.lab-empty {
  margin: 0;
  color: var(--ink-soft);
}
.lab-learn {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.lab-rail-wrap {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.lab-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lab-progress-track {
  flex: 1;
  height: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--house-wood) 70%, #120e0b);
  overflow: hidden;
}
.lab-progress-track i {
  display: block;
  height: 100%;
  background: var(--house-brass);
}
.lab-progress-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--house-brass);
}
.lab-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.1rem 0.1rem 0.35rem;
}
.lab-station {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, #221a14 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--house-brass) 28%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.lab-station.is-current {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--lab-ice) 55%, var(--house-brass));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lab-ice) 40%, transparent);
}
.lab-station.is-done { color: var(--ink-soft); }
.lab-station.is-locked {
  opacity: 0.45;
  cursor: default;
}
.lab-station-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--house-brass) 50%, transparent);
}
.lab-station.is-current .lab-station-mark {
  background: var(--lab-ice);
  box-shadow: 0 0 8px color-mix(in srgb, var(--lab-ice) 70%, transparent);
}
.lab-station.is-done .lab-station-mark { background: var(--house-brass); }
.lab-stage {
  padding: 1.25rem 1.15rem 1.4rem;
  background:
    repeating-linear-gradient(
      180deg,
      color-mix(in srgb, var(--lab-chalk) 6%, transparent) 0 1px,
      transparent 1px 1.65rem
    ),
    radial-gradient(ellipse 90% 70% at 50% 20%, color-mix(in srgb, #2a3224 55%, transparent), transparent 70%),
    var(--lab-board);
  border: 1px solid color-mix(in srgb, var(--house-brass) 36%, #2a3224);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 0 0 7px color-mix(in srgb, #2a1c12 62%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 22%, transparent),
    0 18px 40px color-mix(in srgb, #080604 40%, transparent);
  min-height: 22rem;
}
.lab-stage--bench {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 18rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--jarvis-lamp) 9%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, #221a14 70%, transparent), transparent 40%),
    #1a1410;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--house-brass) 26%, transparent),
    0 16px 36px color-mix(in srgb, #080604 34%, transparent);
}
.lab-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--house-brass);
}
.lab-board-title {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--lab-chalk);
}
.lab-focus {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--lab-chalk) 88%, var(--lab-ice));
}
.lab-chalk {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.45;
}
.lab-note-kicker {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lab-example,
.lab-bench {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}
.lab-stage--bench .lab-example { margin-bottom: 0; }
.lab-actions { margin-top: 1.1rem; }
.lab-status {
  margin: 0;
  color: var(--lab-ice);
}
body.room--lab .save {
  width: auto;
  min-height: 44px;
  background: color-mix(in srgb, var(--house-brass-deep) 72%, transparent);
  color: #ead9c4;
  border: 1px solid color-mix(in srgb, var(--house-brass) 55%, transparent);
}
@media (min-width: 50rem) {
  .lab-learn {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
  }
  .lab-rail {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0;
  }
  .lab-station {
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .lab-stage { padding: 1.6rem 1.7rem 1.8rem; }
  .lab-stage--bench { min-height: 24rem; }
  .lab-chalk { font-size: 1.22rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-station.is-current .lab-station-mark { box-shadow: none; }
}

.room-pack {
  margin: 0.65rem 0 0;
  padding: 0.2rem 0;
}

.room-pack > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--sans, "Figtree", sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-gi {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.team-gi-item {
  padding: 0.7rem 0.8rem;
  background: color-mix(in srgb, var(--house-brass, #c4a574) 10%, var(--card, #f9f4ed));
  border: 1px solid color-mix(in srgb, var(--house-brass, #c4a574) 32%, var(--border, #dcd3c4));
  border-radius: 6px;
}

.team-gi-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.team-gi-item p,
.team-gi-item ul {
  margin: 0;
}
.team-gi-item ul {
  padding-left: 1.15rem;
}
.team-gi-item li {
  margin: 0 0 0.25rem;
}

.team-gi-item details {
  margin-top: 0.45rem;
}

.team-gi-item summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Room stage — per-room accent tokens (Cal Ice Circuit shell) */
body.room--desk .desk-stage { --stage-accent: var(--house-brass, #c4a574); }
body.room--mail .desk-stage { --stage-accent: #b89068; }
body.room--war .desk-stage { --stage-accent: #9a8a70; }
body.room--corp .desk-stage { --stage-accent: #7a8a9a; }
body.room--gym .desk-stage { --stage-accent: var(--gibson-wake, #9ad8ff); }
body.room--lab .desk-stage { --stage-accent: #7eb8ff; }
body.room--library .desk-stage { --stage-accent: #a89070; }
body.room--kitchen .desk-stage { --stage-accent: #c87848; }
body.room--workshop .desk-stage { --stage-accent: var(--house-brass-deep, #a88450); }
body.room--mic .desk-stage { --stage-accent: #e8a040; }
body.room--woods .desk-stage { --stage-accent: #6b9a6b; }
body.room--academy .desk-stage { --stage-accent: #8a9ab0; }
body.room--ledger .desk-stage { --stage-accent: #7a9e7a; }

