/* What this sketch has that the others do not.
   =========================================================================
   The shared look is in `theme.css`, which `index.html` loads first: the
   palette, the two faces, the chrome around the conversation, and the
   message family. This file is the rest -- the two views and their tabs,
   the panes, the roadmap, the profile panel, the board -- plus the two
   places those reach into the shared look: the ring on the turn the panel
   is showing, and the link that hands the person their transcript.
   =========================================================================== */


/* The Optionator mark in the header.
   -------------------------------------------------------------------------
   Not in `theme.css`: that file is canon and the other two sketches read it,
   and this is a picture this page happens to carry rather than part of the
   shared look. sketch3 declares its copy the same way and for the same
   reason.

   Canon's `h1` is baseline-aligned, which is right for a word set in the
   serif and wrong for an image: an image's baseline is its bottom edge, so
   the mark hangs below the theme button beside it. This row centres instead. */
h1 {
  align-items: center;
}

/* 42px, which is sketch3's figure and not the admin page's 38. The two pages
   are not the same object: this is the product's own header and that is a
   tool's. */
h1 .mark img {
  display: block;
  height: 42px;
  width: auto;
}

/* The pair. `on-light` is the default because an unset `color-scheme` on a
   system with no preference resolves light. Order matters: the two attribute
   rules come last, so an explicit choice beats the system, and since
   2026-09-24 there is always an explicit choice on arrival. */
h1 .mark .on-dark { display: none; }

@media (prefers-color-scheme: dark) {
  h1 .mark .on-light { display: none; }
  h1 .mark .on-dark { display: block; }
}

:root[data-theme="light"] h1 .mark .on-light { display: block; }
:root[data-theme="light"] h1 .mark .on-dark { display: none; }
:root[data-theme="dark"] h1 .mark .on-light { display: none; }
:root[data-theme="dark"] h1 .mark .on-dark { display: block; }


/* The two views. The one showing is filled in. */
.tabs button {
  border-color: transparent;
}

.tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--line);
  border-color: var(--line);
}

/* Their board, the chat and their path side by side, left to right (Dann,
   2026-11-14), the profile beside them for builders; or their path across
   the top, as each viewer chooses (public/sidebar.js). Each pane scrolls on
   its own. The chat is never squeezed under 26rem, where they type
   (2026-11-12); the path gives way first, and scrolls sideways.
   Between each pane and the next, a drag bar in a column of its own, of no
   width: dragged, it trades width between the two, and where the other one
   is the chat, the chat takes the difference (Dann, 2026-11-12). Across
   the top, the drag bar under the path sets its height. The sizes are
   `--beach-w`, `--board-w`, `--profiles-w` and `--strip`, set on this
   element by sidebar.js. */
#panes {
  flex: 1;
  min-height: 0;
  /* The ending screen is absolutely positioned over this. */
  position: relative;
  display: grid;
  grid-template-columns: max-content 0 minmax(26rem, 1fr) 0 minmax(0, max-content) 0 max-content;
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "board gd chat gb beach gp profiles";
}
/* Turned, the beach sits over the board's column, not across the chat, which
   keeps its whole height (the call of 2026-11-16). The column is the board's
   width, and the beach holds it there while the board is minimized or not
   yet come, so the strip never narrows to a bar. */
#panes.beach-top {
  grid-template-columns: max-content 0 minmax(26rem, 1fr) 0 max-content;
  grid-template-rows: auto 0 minmax(0, 1fr);
  grid-template-areas: "beach gd chat gp profiles" "gb gd chat gp profiles" "board gd chat gp profiles";
}
#beach-pane { grid-area: beach; }
#board-pane { grid-area: board; }
.drag-bar[data-for="beach-pane"] { grid-area: gb; }
.drag-bar[data-for="board-pane"] { grid-area: gd; }
.drag-bar[data-for="profiles"] { grid-area: gp; }
/* Invisible, eight pixels wide over the border, and a resize cursor. Not
   beside a pane that is hidden, not yet come or minimized, which has no size
   to give. */
.drag-bar {
  position: relative;
  z-index: 4;
  width: 8px;
  margin-left: -4px;
  cursor: col-resize;
  touch-action: none;
}
#panes.beach-top .drag-bar[data-for="beach-pane"] {
  width: auto;
  height: 8px;
  margin: -4px 0 0;
  cursor: row-resize;
}
.drag-bar:focus-visible { outline: none; background: var(--foam); opacity: 0.5; }
/* The panes in their own time (`showWhenDue` in sidebar.js): a pane not yet
   come holds its column unseen, so the chat never moves for it (2026-11-18),
   and comes in once, live, from its own side. */
#board-pane.not-yet, #beach-pane.not-yet { visibility: hidden; }
#board-pane.arriving { animation: pane-in-left 0.5s ease-out; }
#beach-pane.arriving { animation: pane-in-right 0.5s ease-out; }
#panes.beach-top #beach-pane.arriving { animation-name: pane-in-top; }
@keyframes pane-in-left { from { opacity: 0; transform: translateX(-24px); } }
@keyframes pane-in-right { from { opacity: 0; transform: translateX(24px); } }
@keyframes pane-in-top { from { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) {
  #board-pane.arriving, #beach-pane.arriving { animation: none; }
}
.drag-bar:has(+ [hidden]), .drag-bar:has(+ .min), .drag-bar:has(+ .not-yet) { display: none; }
html.resizing, html.resizing * { cursor: col-resize !important; user-select: none; }
html.resizing.tall, html.resizing.tall * { cursor: row-resize !important; }

/* The chat is the roadmap across the top, then the room, then the box. The
   zero minimums let it shrink to the pane, so the log scrolls inside it
   rather than the whole page growing to fit the log. */
#chat {
  grid-area: chat;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#profiles {
  grid-area: profiles;
  width: var(--profiles-w, min(44rem, 40vw));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  padding: 1rem 1.25rem 2rem;
}

/* On a narrow window one pane at a time, the whole height, under "‹ chat ›"
   (the call of 2026-11-16; `showPane` in sidebar.js sets `data-show`), and
   the profile under it. A wide window has no switch. */
#pane-switch { display: none; }
@media (max-width: 64rem) {
  #panes, #panes.beach-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "switch" "main" "profiles";
  }
  #panes > #chat, #panes > #board-pane, #panes > #beach-pane { grid-area: main; width: auto; max-width: none; border: 0; }
  #panes:not([data-show="board"]) #board-pane,
  #panes:not([data-show="beach"]) #beach-pane,
  #panes[data-show="board"] #chat,
  #panes[data-show="beach"] #chat { display: none; }
  #pane-switch:not([hidden]) {
    grid-area: switch;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
  }
  #pane-switch.not-yet { visibility: hidden; }
  #pane-switch button {
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: none;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
  }
  #pane-switch .sw-arrow { font-size: 20px; line-height: 1; padding: 2px 14px; color: var(--subtle); }
  #pane-switch .sw-now { min-width: 8rem; letter-spacing: 0.04em; }
  #pane-switch .sw-now::after { content: ' ▾'; color: var(--subtle); font-size: 11px; }
  #pane-switch button:hover { background: var(--overlay); }
  #pane-switch .sw-pick {
    position: absolute;
    z-index: 25;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    min-width: 10rem;
    padding: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  #pane-switch .sw-pick[hidden] { display: none; }
  #pane-switch .sw-pick .now { color: var(--pine); }
  .drag-bar { display: none; }
  #profiles {
    width: auto;
    max-height: 45vh;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* The conversation starts at the top and works its way down. `theme.css` puts
   a short one on the floor of the room -- `#log > :first-child { margin-top:
   auto }` -- which is what makes a chat read as a chat; here the opener is a
   heading over the conversation and belongs where a page begins. Overridden
   rather than edited, because that file is canon and the other two sketches
   wear it. `auto` only does anything while there is spare room, so once the
   log fills the window the two are the same. */
#log > :first-child {
  margin-top: 0;
}

/* The roadmap: three chapters in a row across the top of the chat, quiet.
   It is not a control — no cursor, no hover, no selection — just something
   to glance at. Each is a circle and a name: the ones passed a check on
   foam, the one we are in a number on gold with the marks it has earned
   under it, the ones ahead a bare number. */
#roadmap {
  flex: none;
  padding: 16px var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  user-select: none;
}

#roadmap ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 48px;
}

#roadmap li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
}

#roadmap .n {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--line);
}

#roadmap .now .n {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

#roadmap .done .n {
  font-family: inherit;
  font-size: 11px;
  color: var(--ink);
  background: var(--foam);
  border-color: var(--foam);
}

#roadmap .name {
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

#roadmap .done .name {
  color: var(--muted);
}

#roadmap .marks {
  grid-column: 2;
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#roadmap .marks li {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--subtle);
}

#roadmap .marks li::before {
  content: "✓\00a0\00a0";
}

/* A mark that has just landed eases in; the ones already there stay put. */
#roadmap .marks li.new {
  animation: land 0.7s ease-out both;
}

@keyframes land {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}

.profile + .profile {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.profile h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  cursor: pointer;
}

.profile.selected h2 {
  color: var(--iris);
}

.profile pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* The block the expander would be told, drawn from the same facts — theirs,
   ours, nobody's — so it can be judged before it is fed back. */
.profile pre.known {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--iris);
}

.profile pre.known:empty { display: none; }

/* The score, above the block: what the conversation has done for them so
   far, by the server's count. */
.profile pre.score {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--foam);
}

.profile pre.score:empty { display: none; }

/* Everything else for the turn, in folds: the profile and the journey open,
   the patches as they came back and the JSON closed. */
.profile details { margin-top: 0.6rem; }

.profile summary {
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle);
}

.profile details > pre { margin-top: 0.35rem; }

/* What the journey call saw: same turn, other reader. */
.profile pre.journey { color: var(--subtle); }

.profile.bad pre.facts,
.profile pre.journey.bad {
  color: var(--love);
}

.profile.pending pre.facts::after,
.profile pre.journey.waiting::after {
  content: "···";
  color: var(--subtle);
  animation: pulse 1.4s ease-in-out infinite;
}



/* A reply that looked something up (2026-11-16): its links in the text, and
   the pages it cites under it, quiet. */
.msg.assistant a { color: inherit; text-decoration-color: var(--foam); text-underline-offset: 2px; }
.msg.assistant .sources { margin: 0.6rem 0 0; font-size: 12px; line-height: 1.5; color: var(--subtle); }
.msg.assistant .sources a { color: var(--subtle); }
.msg.assistant .sources a:hover { color: var(--text); }

/* The turn the panel is showing. The message family itself is in
   `theme.css`; these two are the panel reaching into the log to say which
   reply the facts beside it were read from, so they stay with the panel. */
.msg.assistant.selected {
  border-left-color: var(--iris);
}

.msg.user.selected {
  box-shadow: 0 0 0 2px var(--iris);
}


/* Theirs to keep. The sign it hangs under is shared, in `theme.css`; the link
   is not, because no other sketch has a transcript to hand over. Quiet under
   the sign -- the survey is the ask here, this is just the door out. */
.end .download {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--subtle);
  text-decoration: none;
}

.end .download:hover {
  border-color: var(--pine);
  color: var(--pine);
}


/* Around the postcard (its own look is public/postcard/postcard.css): the
   offer under a reply, and the press that brings back one taken. */
.pc-offer { align-self: center; text-align: center; margin: 1.5rem 0 0.5rem; }
.pc-offer .lead { margin: 0 0 8px; color: var(--subtle); }
.pc-offer button, .pc-presses button, .pc-presses a {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: 1px solid var(--foam);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  text-decoration: none;
}
.pc-presses { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pc-presses .pc-take { background: var(--foam); color: #191724; }
.pc-take:disabled { opacity: 0.5; cursor: default; }
/* ⚠️ **The reveal** (`reveal` in public/app.js; Dann, 2026-11-14): the
   postcard over the whole page when a journey ends. Taken just now
   (`.fresh`), the screen dims and the card arrives with the flourish
   below; pressed, it turns over (`.over`). A night sky
   in both themes, so whatever sits under it reads in its dark colours. */
#reveal {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 7vh 16px 48px;
  color-scheme: dark;
  color: #e0def4;
  background: rgba(12, 11, 24, 0.95);
}
#reveal.fresh { animation: reveal-dim 700ms ease both; }
.reveal-stage { position: relative; width: min(46rem, 100%); display: grid; place-items: center; }
.reveal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  perspective: 2200px;
  container-type: inline-size;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}
.reveal-card:focus-visible { box-shadow: 0 0 0 3px #9ccfd8; }
.reveal-flip { display: grid; transform-style: preserve-3d; transition: transform 900ms cubic-bezier(0.45, 0.05, 0.2, 1); }
#reveal.over .reveal-flip { transform: rotateY(180deg); }
.reveal-flip > .pcard { grid-area: 1 / 1; max-width: none; backface-visibility: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.reveal-flip > .pcard-back { transform: rotateY(180deg); }
@keyframes reveal-dim { from { background: rgba(12, 11, 24, 0); } }
@keyframes reveal-in { from { opacity: 0; transform: translateY(8px); } }
/* **The flourish** (public/postcard/reveal.js; worked out on the design
   canvas "mybff Postcard Popup", Dann, 2026-11-17): the reveal of a
   postcard just taken, as a game shows off an item you have just received.
   Its settings (in brackets) are `SETTINGS` in reveal.js.
   0.5s  out of the darkness the card pops up SMALL, with a flash; two
         trains of ripples go out from it while it hovers, four, then
         after 0.7s three (secondDelay, secondCount); sparkles burst round
         it all through the intro (sparkles)
   2.4s  it grows to full size, slowly (about 1.6s), with a second, softer
         flash and wide, slow ripples, wobbling as water does
   4.4s  a shine runs across the card, which now stays still, a soft glow
         behind it
   to 5.1s ripples keep going out, small from its edge and big, until 1s
         after it is full size (afterBig); then none, and all is quiet but
   5.1s+ sparkles twinkling round its edges now and then, from when the
         ripples stop
   Each ripple is three wide bands, light crest, teal, deep teal, that
   overlap, and widen as the ripple spreads; with the sunset on (sunset),
   each takes the postcard's setting sun where it passes straight below the
   card, in a band as wide as the card is at the time.
   ⚠️ The times here and in reveal.js go together (`FULL`, `cardScale`). */
.rv-flash, .rv-halo, .rv-sparkles { position: absolute; pointer-events: none; }
.rv-ripples { pointer-events: none; }
.rv-flash {
  will-change: transform, opacity;
  left: 50%; top: 50%; width: 140%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 238, 0.95) 0%, rgba(246, 193, 119, 0.55) 22%, rgba(156, 207, 216, 0.18) 42%, transparent 64%);
  opacity: 0;
}
#reveal.fresh .rv-flash { animation: rv-flash-small 700ms cubic-bezier(0.2, 0.7, 0.3, 1) 0.48s both; }
#reveal.fresh .rv-flash.grow { animation: rv-flash 1300ms cubic-bezier(0.2, 0.7, 0.3, 1) 2.5s both; }
.rv-halo {
  inset: -4%; border-radius: 22px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(156, 207, 216, 0.35), rgba(246, 193, 119, 0.12) 55%, transparent 72%);
  filter: blur(18px); opacity: 0;
}
#reveal.fresh .rv-halo { animation: rv-in 1200ms ease 3.6s both; }
/* The ripples are drawn on one canvas over the whole window, behind the
   card (`ripples()`): every ring, every frame, in one go, so none can come
   apart or fall out of step, and nothing is left running once they are
   gone. */
.rv-ripples { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.reveal-stage, .reveal-hint, .reveal-presses, .reveal-after { position: relative; z-index: 1; }
#reveal { overflow-x: hidden; }
.rv-sparkles { inset: -8%; z-index: 3; }
.rv-spark { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: 0; }
.rv-spark svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(255, 240, 210, 0.9)); }
#reveal.fresh .rv-spark { animation: rv-twinkle 3.4s ease-out infinite; }
/* the intro's sparkles: each once, flying a little out from the card */
#reveal.fresh .rv-spark.burst { animation: rv-burst 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 1 both; }
.rv-float { position: relative; }
.rv-shine { position: absolute; inset: 0; z-index: 2; border-radius: 6px; overflow: hidden; pointer-events: none; }
.rv-shine::before {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -50%; width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.15) 70%, transparent);
  transform: skewX(-18deg); opacity: 0;
}
#reveal.fresh .rv-shine::before { animation: rv-shine 1200ms cubic-bezier(0.45, 0, 0.25, 1) 4.4s both; }
#reveal.fresh .reveal-card { animation: rv-pop 3800ms linear 0.5s both; }
#reveal.fresh .reveal-hint, #reveal.fresh .reveal-presses, #reveal.fresh .reveal-after { animation: reveal-in 700ms ease 4.6s both; }
@keyframes rv-flash-small { 0% { opacity: 0; transform: scale(0.05); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(0.55); } }
@keyframes rv-flash { 0% { opacity: 0; transform: scale(0.15); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes rv-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0) rotate(0); }
  20% { opacity: 1; transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1.1) rotate(60deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(180deg); }
}
@keyframes rv-twinkle {
  0% { opacity: 0; transform: scale(0) rotate(0); }
  10% { opacity: 1; transform: scale(1) rotate(45deg); }
  30% { opacity: 0; transform: translateY(-14px) scale(0.3) rotate(120deg); }
  100% { opacity: 0; }
}
/* One timeline of 3.8s from 0.5s: pops up small (to 0.95s), hovers (to
   2.4s), grows to full size, slowly, with a little overshoot (to 4.3s), and
   then stays still. */
@keyframes rv-pop {
  0% { opacity: 0; transform: scale(0.04) rotate(-14deg); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  12% { opacity: 1; transform: scale(0.34) rotate(3deg); animation-timing-function: ease-out; }
  18% { transform: scale(0.3) rotate(0); animation-timing-function: ease-in-out; }
  34% { transform: translateY(-8px) scale(0.31) rotate(-1deg); animation-timing-function: ease-in-out; }
  50% { transform: translateY(0) scale(0.3) rotate(0); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1.08); }
  92% { transform: scale(1.02) rotate(0.3deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rv-shine { 0% { opacity: 1; left: -50%; } 100% { opacity: 1; left: 130%; } }
.reveal-hint { margin: 0; font-size: 13px; color: rgba(224, 222, 244, 0.7); }
.reveal-presses { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reveal-presses > * {
  font: inherit;
  font-size: 15px;
  color: #e0def4;
  text-decoration: none;
  background: none;
  border: 1px solid #9ccfd8;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
}
.reveal-presses > :first-child { color: #191724; background: #9ccfd8; }
.reveal-presses > *:hover { filter: brightness(1.12); }
.reveal-after {
  width: min(40rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(224, 222, 244, 0.85);
}
.reveal-after > a, .reveal-after > button {
  font: inherit;
  font-size: 13px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  #reveal.fresh, #reveal.fresh * { animation: none !important; }
  .reveal-flip { transition: none; }
}
/* Printed, the postcard alone, whatever prints it: a copy at the top of the
   page, there only once the journey is finished (`ending` in public/app.js),
   and nothing else; each face a 6×4 page of its own (postcard.css). */
#print-sheet { display: none; }
@media print {
  html:has(> body > #print-sheet), body:has(> #print-sheet) { background: #fff; }
  body:has(> #print-sheet) > :not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; }
}

/* The client's survey: the first set in the log under the reply that sent
   them off to try something, stepped in like a reply; the second under The
   End, where it replaces the old line that only promised one. */
.survey {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 0 20px;
  max-width: 36rem;
  font-size: 14px;
  color: var(--subtle);
}

.end .survey {
  margin: 1rem auto 0;
  text-align: left;
}

.survey .lead { margin: 0; }

/* What stands where the questions were, once they are sent and the first
   sitting is over. Quieter than the questions it replaces: the work of that
   part is done, and the next move is theirs and is not in here. */
.survey.paused .body {
  margin: 0;
  color: var(--subtle);
}

/* How to get past the card, said once, just above the button it is about. */
.survey .carry-on {
  margin: 0;
  color: var(--subtle);
}

.survey label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}

.survey textarea {
  resize: vertical;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.survey textarea:focus {
  outline: 2px solid var(--iris);
  outline-offset: -1px;
}

.survey button {
  align-self: flex-start;
  font: inherit;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  background: var(--pine);
  color: var(--bg);
  cursor: pointer;
}

.survey button:hover { background: var(--foam); }
.survey button:disabled { opacity: 0.5; cursor: default; }

.end .thanks {
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* The board: cork, with cards pinned to it. */
#board {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background-color: light-dark(#c69c6d, #63452c);
  background-image:
    radial-gradient(circle at 25% 35%, light-dark(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) 1px, transparent 2px),
    radial-gradient(circle at 75% 65%, light-dark(rgba(60, 30, 0, 0.16), rgba(0, 0, 0, 0.22)) 1px, transparent 2px),
    radial-gradient(circle at 50% 10%, light-dark(rgba(60, 30, 0, 0.1), rgba(0, 0, 0, 0.16)) 1px, transparent 2px);
  background-size: 23px 29px, 31px 37px, 41px 43px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.18);
}

/* Paper is paper in either theme. Width and minimum height are also in
   board.js, which needs them in pixels to keep cards apart. */
.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 13rem;
  min-height: 8rem;
  padding: 1rem 0.9rem 1.4rem;
  color: #222;
  background-color: #fffdf6;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s;
}

.card.us {
  background-color: #fff3b0;
}

.card.aside {
  opacity: 0.7;
}

/* Placed before it is shown, so it fades in where it belongs rather than
   sliding in from the corner. */
.card.new {
  transition: none;
  opacity: 0;
}

.card .pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ebbcba, #b4637a 70%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.card .gist {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #444;
}

.card .reaction {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #666;
}

.card .status {
  position: absolute;
  right: 0.6rem;
  bottom: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8478;
}

#board .legend,
#board .offline,
#board .empty {
  position: absolute;
  margin: 0;
  font-size: 0.75rem;
  color: light-dark(rgba(40, 20, 0, 0.7), rgba(255, 240, 220, 0.7));
}

#board .legend { left: 1rem; bottom: 0.75rem; }
#board .offline { right: 1rem; bottom: 0.75rem; }

#board .empty {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.95rem;
  white-space: nowrap;
}

.swatch {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.3em;
  vertical-align: -0.1em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.swatch.them { background: #fffdf6; }
.swatch.us { background: #fff3b0; }


/* =========================================================================
   The farewell, ported from sketch3 on 2026-09-24
   =========================================================================
   Taken whole, comments and all, from `mybff-sketch3/public/base.css`, which
   is where the client's brand choices of 2026-09-21 were built. Not in
   `theme.css`: canon is shared with the two sketches and this is one page's
   card rather than part of the shared look.

   ⚠️ One thing differs from sketch3 and is not a port error. There, the card
   opens with the client's 2026-09-22 message in `.note`. Here that message is
   already on screen as `SURVEY.thanks`, which is the same text character for
   character, so this card does not carry it and `.farewell .note` goes
   unused rather than being deleted: it is what the rule is for if the End
   ever stops showing the thanks itself.
   ========================================================================= */

/* ---- the farewell, and the teaser under it --------------------------------
   The third voice on the page. The system speaks in the conversation, the
   builders speak on the experience card, and this is the company: it is the
   only thing here that is selling, so it is dressed as its own brand rather
   than as either of the others, and it sits after the close where nothing it
   says can shape an answer still to be given.

   It carries the Optionator's ground rather than the page's, because the
   brand it is introducing is not the one the conversation was wearing. */
.farewell {
  align-self: stretch;
  margin-top: 0.4rem;
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: 4px;
  background: #0b1117;
  color: #f5ead6;
}

/* The colour is set rather than inherited: canon's `.note` is the error-ish
   `--love`, which is right for a door note and wrong for a thank-you. */
.farewell .note {
  margin: 0 0 1.4rem;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 46rem;
  color: #f5ead6;
}

/* Anton, the face the Optionator wordmark is built from, declared here rather
   than in `theme.css`: canon is shared with sketch1 and sketch2 and neither
   of them has anything to set in it. `landing.css` declares it separately for
   the same reason, and both point at the same file. */
@font-face {
  font-family: Anton;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/anton.woff2) format('woff2');
}

/* The one thing on this page a person is invited to press that is not part of
   the conversation. Their accent and their face, not the app's: this card is
   the company speaking, and the button belongs to the brand it is
   introducing rather than to the room it is sitting in.

   Centred, because it answers the last sentence of the message above it
   rather than continuing the paragraph, and a left-aligned button reads as
   the next line of the text. */
.farewell .door {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem;
}

/* ⚠️ **The approved render uses two different widths, and picking the wrong
   one is why this looked off.** Measured against Anton, ink bounds, at
   matched cap height:

     the wordmark, "OPTIONATOR"        69% of Anton
     the taglines, "YOUR BEST LIFE."   91% of Anton

   So the logo is a heavily compressed lockup and the display copy around it
   is close to Anton's own width. Anton at 100%, which is what was here
   first, matches neither.

   **This button follows the wordmark, 0.687** (Robert, 2026-09-22). It was
   briefly set to the taglines' 0.91 on the argument that a control squeezed
   as hard as a logo stops reading as a control; that was put and not taken.
   The landing page's live copy stays on 0.91, because there it sits beside
   the render's own taglines and is the same kind of text they are. */
.farewell .door { --squeeze: 0.687; }

.farewell .door .enter {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  /* Anton is a condensed display face and sets tight. Tracking it out stops
     "COME WITH US" reading as one long word at button size. */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #150b06;
  background: #ee5528;
  border: 0;
  cursor: pointer;

  /* The squeeze is on the whole button, so the orange box narrows with the
     letters rather than leaving them floating in it. Padding and radius are
     pre-divided so that what survives the scale is the value written here.
     The layout box stays unsqueezed, which is invisible: it is centred and
     alone on its line. */
  transform: scaleX(var(--squeeze));
  padding: 0.58rem calc(1.9rem / var(--squeeze));
  border-radius: calc(2px / var(--squeeze)) / 2px;
}

.farewell .door .enter:hover { background: #ff6a3a; }
.farewell .door .enter:focus-visible { outline: 2px solid #f5ead6; outline-offset: 3px; }

/* What it says once submitted. Quiet, because it is an admission and not a
   result, and centred so it sits where the button was. */
.farewell .door .said {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 234, 214, 0.6);
}

/* ---- behind the door: the client's email collection ---------------------
   The card this sits in is the Optionator's own dark ground, not Rose Pine,
   so these colours are literals to match the button above rather than the
   shared tokens. That is the same decision `landing.css` makes and for the
   same reason: this is the other brand.

   The whole thing is left-aligned against the button's centre on purpose.
   Their copy is two paragraphs of reading, and centred prose at this length
   is a poster rather than a form. */
.farewell .door .collect {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.farewell .door .why {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(245, 234, 214, 0.78);
}

/* The label's text is for a screen reader only: their own copy already says
   what the field is for, twice, and a visible "Your email address" above a
   box saying "email here" is the same sentence three times. */
.farewell .door .field .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.farewell .door .field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.5rem 0.65rem;
  color: #f5ead6;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(245, 234, 214, 0.22);
  border-radius: 2px;
}

.farewell .door .field input::placeholder { color: rgba(245, 234, 214, 0.38); }
.farewell .door .field input:focus-visible {
  outline: 2px solid #ee5528;
  outline-offset: 1px;
  border-color: transparent;
}

.farewell .door .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.farewell .door .choice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(245, 234, 214, 0.78);
  cursor: pointer;
}

.farewell .door .choice input { accent-color: #ee5528; margin: 0; }

/* Smaller than the door it replaced, and not squeezed. The door is a piece of
   the brand; this is a form control at the end of one, and setting it in
   condensed caps too would make the page shout its last word twice. */
.farewell .door .send {
  justify-self: start;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #150b06;
  background: #ee5528;
  border: 0;
  border-radius: 2px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
}

.farewell .door .send:hover { background: #ff6a3a; }
.farewell .door .send:focus-visible { outline: 2px solid #f5ead6; outline-offset: 3px; }

/* Two brands, side by side, joined rather than compared. The prototype you
   just used is on the left because that is where you are; what it is a first
   step toward is on the right because that is the direction the sentence
   already runs in. */
.farewell .teaser {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 0 1.1rem;
  border-top: 1px solid rgba(245, 234, 214, 0.14);
}

/* The art from board option 05, cut out of the panel with none of its
   typography (`brand/bin/crop-board.py`). A scrim over each one, because the marks
   and captions sit on top and a photograph is not a background until
   something has taken the contrast out of it: the city is dark already and
   takes a dark scrim, the road is bright and takes a light one. */
.farewell .side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 1.7rem 1rem 1.4rem;
  border-radius: 3px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.farewell .side::before {
  content: "";
  position: absolute;
  inset: 0;
}

.farewell .side.now { background-image: url(brand/plate-city.png); }
.farewell .side.now::before { background: rgba(8, 13, 19, 0.52); }

.farewell .side.next { background-image: url(brand/plate-road.png); }
.farewell .side.next::before { background: rgba(250, 240, 224, 0.48); }

/* Above the scrim. */
.farewell .side > * { position: relative; z-index: 1; }

/* Matched by cap height, not by box height. The Optionator mark is a two-line
   lockup, so its OPTIONATOR caps are 49% of its box; at 56px that puts them at
   ~27px, which is where the mybff stand-in sits. Matching the boxes instead
   makes the Optionator look half the size. */
.farewell .mark { display: block; width: auto; height: 56px; }

/* ⚠️ A stand-in, not the mybff mark. See the note in close.js. */
.farewell .mybff-placeholder {
  font-family: Karla, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 42px;
  color: #241f4b;
}

.farewell .caption {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 234, 214, 0.62);
}

.farewell .side.next .caption { color: rgba(36, 31, 75, 0.66); }

.farewell .join {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(245, 234, 214, 0.3);
  font-size: 0.8rem;
  color: rgba(245, 234, 214, 0.75);
}

.farewell .line {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 234, 214, 0.5);
}

/* Narrow: the two brands stack, and the join turns on its side. */
@media (max-width: 34rem) {
  .farewell .teaser { grid-template-columns: 1fr; }
  .farewell .join { transform: rotate(90deg); justify-self: center; }
}



/* =========================================================================
   What we have: the record, on its own screen
   =========================================================================
   The idea is sketch3's and the client approved it there. The rules are
   written here in canon's own tokens rather than ported: sketch3's copy is
   written against an alias layer (--fg, --dim, --faint, --accent) that this
   sketch does not have, and bringing the aliases across to carry one screen
   would put a second set of names on the palette.

   ⚠️ Nothing here is `--muted`. Measured 2026-09-22 against `--bg`: 3.03:1
   dark and 2.73:1 light, which fails AA at every size. `--subtle` is the
   page's one quiet level.
   ========================================================================= */

/* =========================================================================
   The sidebar: their path and their board, a pane each (public/sidebar.js),
   beside the chat, or the path across the top. Minimized, a pane is its bar.
   ========================================================================= */
/* The turned strip's height, and the scale that goes with it: 640px of sand
   at 0.3 is 12rem. ⚠️ Lower by default since 2026-11-17 (Robert: the strip
   stood too tall), and 0.3 is the floor sidebar.js holds the scale at, below
   which the prints became specks; dragged taller, the scale follows. */
:root { --strip: 12rem; --turn: 0.3; }
.pane {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: var(--bg);
  padding: 0 1.1rem 2rem;
  font-size: 14px;
}

/* **The ending, a screen of its own** (the client, 2026-11-20). It used to be
   the goal card's page inside the board, beside the chat, which had two
   faults and they were the same fault: Wes went on pressing the chat's button
   after it had stopped doing anything, and Jennifer, who writes at length,
   had her own quoted words push the presses so far down the pane that she
   never saw them.

   So: over everything, and the presses are OUT of the scroll. `.end-top` and
   `.end-foot` hold their place while `.end-body` alone scrolls, which is what
   answers the second fault. Absolute rather than a grid column so the narrow
   window's one-pane rules do not reach it.

   ⚠️ `[hidden]` needs saying: the display here would otherwise beat the user
   agent's rule and the screen would sit over the chat from the first load. */
#ending {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  font-size: 14px;
}
#ending[hidden] { display: none; }
/* `goalPage` returns one wrapper holding the three parts, so the column is
   the wrapper and #ending only centres it. */
.end-wrap {
  width: min(100%, 40rem);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.end-top {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem 0.5rem;
}
.end-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1.1rem 1.2rem;
}
.end-foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.1rem 1rem;
  background: var(--bg);
}
/* The card fills the column here rather than sitting as a card on a board. */
#ending .sb-card.sb-goal { width: auto; max-width: none; }
/* At the side, the path is exactly the sand plus the border, on every tab,
   so switching tabs never resizes it and the beach fits without scrolling
   sideways. `--beach` is the sand's width, set by sidebar.js each time the
   beach is drawn; 640px is the narrowest sand there is (`_render` in
   footprints.js). Short of room, or dragged narrower (`--beach-w`), it
   gives way, and the beach scrolls; dragged wider, it stops at the sand. */
#beach-pane { width: min(var(--beach-w, 100vw), calc(var(--beach, 640px) + 1px)); max-width: 100%; }
/* The board is left of the chat, so its border is on its right. */
#board-pane { width: var(--board-w, 22rem); border-left: 0; border-right: 1px solid var(--line); }
/* Across the top: a strip, and the footstep panel hangs under it over the
   chat, so nothing here may clip it. */
#panes.beach-top #beach-pane {
  width: var(--board-w, 22rem);
  position: relative;
  z-index: 5;
  overflow: visible;
  padding-bottom: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* The beach turned a quarter to the left and scaled down to the strip, from
   outside footprints.js: the box is laid out at the scale the library
   draws at, the strip's height wide and the strip's width (`cqw`) tall,
   then turned and shrunk into place. 640px of sand at 0.3 is 12rem, which
   is the default. A strip
   shorter than 192px (640 at 0.3) keeps 0.3 (sidebar.js), so the box is
   narrower than the sand and the beach scrolls across it, up and down. */
#panes.beach-top .sb-beach { height: var(--strip); min-height: 0; }
.sb-clip { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; }
.sb-turn {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--strip) / var(--turn));
  height: calc(100cqw / var(--turn));
  transform-origin: 0 0;
  transform: translateY(var(--strip)) rotate(-90deg) scale(var(--turn));
}
/* Turned and shrunk, a signpost's words would run sideways at 5px; a print
   still says what it is on hover, and in the panel when pressed. */
#panes.beach-top .sb-signs { display: none; }
#panes.beach-top .sb-panel {
  top: 100%;
  bottom: auto;
  max-height: 45vh;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
/* A pane's bar: its name, and the presses that minimize it and, on the
   beach, open its ⋯. Minimized, the bar is the whole pane, upright at the
   side. */
.sb-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  margin-bottom: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
#panes.beach-top #beach-pane .sb-bar { margin-bottom: 0; }
.sb-name { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.sb-ctl { display: flex; gap: 6px; }
.sb-ctl button {
  font: inherit;
  font-size: 12px;
  color: var(--subtle);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  cursor: pointer;
}
.sb-ctl button:hover { color: var(--text); border-color: var(--foam); }
#beach-pane.min, #board-pane.min { width: 2.4rem; padding: 0; overflow: hidden; }
#panes.beach-top #beach-pane.min { width: auto; }
/* Under the turned beach the column keeps the board's width, the beach's
   doing (`#panes.beach-top #beach-pane`); minimized there, the board is a
   bar across it, at the top of what is left. */
#panes.beach-top #board-pane.min { width: auto; align-self: start; }
#panes.beach-top #board-pane.min button.sb-bar { writing-mode: horizontal-tb; height: auto; }
button.sb-bar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px 0;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  border: 0;
  cursor: pointer;
}
button.sb-bar:hover { color: var(--text); }
#panes:not(.beach-top) #beach-pane.min button.sb-bar, #board-pane.min button.sb-bar { writing-mode: vertical-rl; }
/* Scrollbars hidden, since a classic one would take 15px of the fit; it
   still scrolls. The sand fills the window onto it: `minHeight` in
   sidebar.js. */
.sb-beach .fp-beach { scrollbar-width: none; }
/* A print's description, shown as soon as the pointer is on it. */
.sb-hint {
  position: fixed;
  z-index: 30;
  transform: translate(-50%, calc(-100% - 6px));
  max-width: 16rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}
.sb-beach {
  position: relative;
  height: calc(100vh - 170px);
  min-height: 24rem;
  margin: 0 -1.1rem;
}
/* The footstep panel: a print pressed, up close, over the bottom of the
   beach, short enough that the print it is about stays in view above it. */
.sb-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: 40%;
  overflow-y: auto;
  padding: 2px 1.1rem 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.sb-shut {
  float: right;
  margin: 8px -6px 0 8px;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--subtle);
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
}
.sb-shut:hover { color: var(--text); }
/* A comment on the step, under its details. */
.sb-comment { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sb-comment textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
.sb-comment .sb-go { margin-top: 6px; }
/* The beach pane's ⋯: its views, where it goes, and the comment on the
   whole conversation, hanging from the bar over the beach rather than
   taking height from it. */
.sb-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: min(17rem, 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.sb-menu > button {
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--subtle);
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.sb-menu > button:hover { color: var(--text); background: var(--surface); }
.sb-menu > button.now { color: var(--text); font-weight: 600; }
.sb-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.sb-menu .sb-comment { margin-top: 4px; padding: 10px 4px 2px; }
/* Signposts: the options that came up together, named beside their prints,
   the board's left edge its post. On the sand, which is light in either
   theme, so in the beach's own colours. */
.sb-signs { position: absolute; inset: 0; pointer-events: none; }
.sb-sign {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3px 8px 4px;
  border-left: 3px solid #8A6A43;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 1px 2px rgba(42, 38, 32, 0.25);
  pointer-events: auto;
}
.sb-sign button {
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  color: #2A2620;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.sb-sign button.open { font-style: italic; color: #6B6254; }
/* Milestones: a small cairn beside the print where one happened. A new one
   settles onto the sand once, slowly; nothing bounces or sparkles. */
.sb-milestones { position: absolute; inset: 0; pointer-events: none; }
.sb-milestone {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 1px 1px rgba(42, 38, 32, 0.3));
}
.sb-milestone.new { animation: sb-settle 1.6s ease-out both; } /* SETTLE in sidebar.js */
@keyframes sb-settle {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 6px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-milestone.new { animation: none; }
}
.sb-sign button:hover { text-decoration: underline; }
.sb-back, .sb-go {
  font: inherit;
  font-size: 12px;
  color: var(--subtle);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.sb-empty, .sb-note, .sb-quiet { color: var(--subtle); }
.sb-when { color: var(--subtle); font-size: 11px; margin-left: 6px; }

/* Path: a line down the left, a dot per stretch, branches hanging off it. */
.sb-path { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); }
.sb-node { position: relative; padding: 0 0 18px 16px; }
.sb-node .sb-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--subtle);
}
.sb-node.here .sb-dot { background: var(--foam); border-color: var(--foam); }
.sb-stage { font-weight: 600; }
.sb-here { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--foam); }
.sb-branches { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sb-branch {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.sb-branch .sb-status { font-size: 11px; color: var(--subtle); white-space: nowrap; }
.sb-branch.taken { border-color: var(--foam); }
.sb-branch.open { border-style: dashed; color: var(--subtle); }
.sb-branch.aside { opacity: 0.7; }
.sb-branch:hover { color: var(--text); background: var(--overlay); }

/* One option up close. */
.sb-detail h3 { margin: 14px 0 4px; font-size: 18px; }
.sb-who { margin: 0 0 10px; color: var(--subtle); font-size: 12px; }
.sb-gist { margin: 0 0 10px; }
.pane blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 2px solid var(--foam);
  font-style: italic;
}
.sb-story { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-story .sb-when { margin: 0 6px 0 0; }
.sb-go { margin-top: 10px; color: var(--text); border-color: var(--foam); padding: 6px 16px; }
.sb-go:disabled { opacity: 0.5; cursor: default; }
.sb-presses { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }

/* Progress: what they did, in their words. */
.sb-lead { margin: 0 0 14px; font-size: 15px; }
.sb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.sb-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; color: var(--subtle); font-size: 12px; }
.sb-tile .sb-n { font-family: Anton, Impact, sans-serif; font-size: 28px; color: var(--text); line-height: 1.1; }
.sb-done { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sb-done li::before { content: '✓'; color: var(--foam); margin-right: 8px; }
.sb-progress h4 { margin: 16px 0 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.sb-progress .sb-title { margin: 0; font-weight: 600; }

/* Board: cork, the cards worth seeing, and the rest stacked. */
.sb-board {
  margin: 0 -1.1rem;
  padding: 18px 14px 20px;
  min-height: 60vh;
  background-color: light-dark(#c69c6d, #63452c);
  background-image:
    radial-gradient(circle at 25% 35%, light-dark(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) 1px, transparent 2px),
    radial-gradient(circle at 75% 65%, light-dark(rgba(60, 30, 0, 0.16), rgba(0, 0, 0, 0.22)) 1px, transparent 2px);
  background-size: 23px 29px, 31px 37px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.18);
}
.sb-board .sb-empty { color: light-dark(rgba(40, 20, 0, 0.75), rgba(255, 240, 220, 0.75)); }
.sb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.sb-card {
  position: relative;
  text-align: left;
  font: inherit;
  min-height: 7rem;
  padding: 0.9rem 0.75rem 1.4rem;
  color: #222;
  /* Every option one yellow, dry sand in the sun from the beach's own
     palette, whoever brought it (Dann, 2026-11-14: the lemon sat outside
     it, and white for theirs and yellow for ours was a distinction nobody
     needed). */
  background-color: #f4e5c2;
  border: none;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.18);
}
/* The card's face is its press: it opens the option up close, or selects it
   while editing. Its press reaches the whole card, padding and all (Dann,
   2026-11-14); the history fold sits above it. */
.sb-card .sb-face {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.sb-card .sb-face::after { content: ''; position: absolute; inset: 0; }
.sb-card .sb-face:disabled { cursor: default; }
.sb-history > summary, .sb-history ol { z-index: 1; }
.sb-history ol { position: relative; }
.sb-card:nth-child(odd) { transform: rotate(-0.8deg); }
.sb-card:nth-child(even) { transform: rotate(0.7deg); }
/* What kind of card it is, over its title: "experiment". */
.sb-card .sb-kind {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2f6b4f;
}
/* Experiments done toward an option, slid under its card: a green edge
   showing below it for each, up to three (`card` in sidebar.js). */
.sb-pile { position: relative; display: grid; }
.sb-pile > * { grid-area: 1 / 1; }
.sb-pile > .sb-card { z-index: 1; }
.sb-edge { border-radius: 2px; background: #bcdcc6; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.sb-edge.e1 { transform: translate(4px, 7px) rotate(1.2deg); }
.sb-edge.e2 { transform: translate(7px, 13px) rotate(2deg); }
.sb-edge.e3 { transform: translate(10px, 19px) rotate(2.8deg); }
/* An option up close: its card, and under it the green card of each
   experiment done toward it — the stack. */
.sb-stackview { margin: 6px 0 12px; }
.sb-card.sb-solo { min-height: 0; padding: 0.8rem 0.9rem; transform: none; }
.sb-under { display: flex; flex-direction: column; margin: 0 8px; }
.sb-under .sb-card { width: 100%; margin-top: -2px; padding: 0.7rem 0.9rem; min-height: 0; cursor: pointer; transform: rotate(0.6deg); }
.sb-under .sb-card:nth-child(even) { transform: rotate(-0.5deg); }
.sb-card .pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ebbcba, #b4637a 70%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}
.sb-card h3 { margin: 0 0 0.25rem; font-size: 0.9rem; line-height: 1.3; }
.sb-card .gist { margin: 0; font-size: 0.76rem; line-height: 1.35; color: #444; }
.sb-card .reaction { margin: 0.35rem 0 0; font-size: 0.74rem; font-style: italic; color: #666; }
.sb-card .status { position: absolute; right: 0.55rem; bottom: 0.35rem; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8478; }
.sb-card.trying { outline: 2px solid #b4637a; outline-offset: 2px; }
/* ⚠️ The goal card (`goalCard` in sidebar.js; Dann, 2026-11-14): the big
   goal, white, across the board above everything else, its lines in the
   hand the postcard is written in, ringed once the postcard is ready; and a
   string from it to the pin of each card tied to it, under the cards. */
.sb-card.sb-goal {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0.9rem 1rem 1rem;
  background-color: #fffdf8;
  transform: rotate(0.3deg);
}
.sb-goal.ready { box-shadow: 0 0 0 2px #9ccfd8, 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.18); }
.sb-goal .pin { background: radial-gradient(circle at 35% 35%, #f6c1b4, #b4637a 70%); }
.sb-goal .sb-kind { color: #8a5a6a; }
.sb-goal .sb-line { display: flex; align-items: baseline; gap: 8px; margin: 0.2rem 0 0; }
.sb-goal .sb-label { flex: none; width: 5.4rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8478; }
.sb-goal .sb-hand { font-family: Caveat, cursive; font-size: 1.25rem; line-height: 1.15; color: #2b2850; }
.sb-goal .sb-line.empty .sb-hand { color: #b8b2a4; }
/* Its page: each line a box written in the hand. */
.sb-goal.sb-solo { display: flex; flex-direction: column; transform: none; }
.sb-goal.sb-solo .sb-label { width: auto; margin-top: 10px; }
.sb-goal.sb-solo p.sb-hand { margin: 2px 0 0; }
/* Opened from the offer under a reply, it rings once, so the press is seen
   to do something (Wes, 2026-11-15). */
.sb-goal.sb-solo.called { animation: sb-called 1.6s ease-out; }
@keyframes sb-called {
  0%, 35% { box-shadow: 0 0 0 6px #9ccfd8, 0 6px 14px rgba(0, 0, 0, 0.18); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-goal.sb-solo.called { animation: none; }
}
.sb-goal textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding: 2px 6px;
  font-family: Caveat, cursive;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #2b2850;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-bottom: 1px dashed #b9ae94;
  border-radius: 4px 4px 0 0;
  resize: none;
  field-sizing: content;
}
.sb-goal textarea::placeholder { color: #b8b2a4; }
.sb-goal textarea:focus-visible { outline: 2px solid #286983; outline-offset: 1px; }
.sb-goal .sb-link { align-self: flex-start; margin-top: 10px; font-size: 12px; color: #575279; }
.sb-goal .sb-link:disabled { opacity: 0.5; cursor: default; }
/* Under its lines on its page, the postcard as it will read, in the same
   hand (`writeProse` in sidebar.js), and what is happening to it. */
.sb-goal.sb-solo .sb-prose-label { margin-top: 18px; padding-top: 12px; border-top: 1px dashed #d8cfb8; }
.sb-goal textarea.sb-prose { font-size: 1.25rem; }
.sb-goal .sb-note { margin: 6px 0 0; font-size: 12px; color: #6b6557; }
.sb-goal .sb-note:empty { display: none; }
/* DOT (`dotMarks` in sidebar.js): three small letters in the goal card's
   corner, faint until the conversation has their words for one. Above the
   face's press, so each says its words on hover. Quiet: not a score. */
.sb-dots { position: absolute; top: 0.65rem; right: 0.85rem; z-index: 1; display: flex; gap: 4px; }
.sb-dots span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1px dashed #d3ccbb;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #bdb6a5;
  cursor: default;
}
.sb-dots span.lit { color: #286983; background: #e4f0f3; border: 1px solid #9ccfd8; }
.sb-board { position: relative; }
.sb-cards > * { position: relative; z-index: 1; }
.sb-strings { position: absolute; top: 0; left: 0; z-index: 0; overflow: visible; pointer-events: none; }
.sb-strings path { fill: none; stroke: #b4637a; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.sb-strings circle { fill: #b4637a; }
/* What a card sharpens, tucked away: a small "history" opposite the
   status, unfolding the options before it, oldest first, down a thin rule. */
.sb-history > summary {
  position: absolute;
  left: 0.75rem;
  bottom: 0.35rem;
  list-style: none;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8478;
  cursor: pointer;
}
.sb-history > summary::-webkit-details-marker { display: none; }
.sb-history > summary:hover, .sb-history[open] > summary { color: #222; }
.sb-history ol { list-style: none; margin: 0.6rem 0 0 0.15rem; padding: 0 0 0 0.6rem; border-left: 1px solid #d8cfb8; }
.sb-history li { position: relative; margin: 0 0 0.45rem; }
.sb-history li::before {
  content: '';
  position: absolute;
  left: calc(-0.6rem - 3px);
  top: 0.35rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9c0aa;
}
.sb-history li.now::before { background: #b4637a; }
.sb-history button {
  display: block;
  padding: 0;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.sb-history button:hover { text-decoration: underline; }
.sb-history .how { display: block; font-size: 0.62rem; color: #8a8478; }
.sb-history .reaction { display: block; font-size: 0.68rem; font-style: italic; color: #666; }
.sb-stacks { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.sb-stack {
  background: #fffdf6;
  color: #222;
  border-radius: 2px;
  padding: 8px 10px;
  box-shadow: 3px 3px 0 #e9e2d0, 6px 6px 0 #d8cfb8, 0 6px 14px rgba(0, 0, 0, 0.2);
}
.sb-stack summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.sb-stack ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sb-stack .sb-branch { color: #333; border-color: #c9c0aa; }
.sb-stack .sb-branch .sb-tick { margin-right: 2px; }
/* The board fills its pane, so the requirements bar sits at its foot
   however little is on it, and stays there while the board scrolls. */
#board-pane:not(.min):not([hidden]) { display: flex; flex-direction: column; }
#board-pane:has(> .sb-board) { padding-bottom: 0; }
#board-pane > .sb-board { flex: 1 0 auto; display: flex; flex-direction: column; }
/* ⚠️ Their requirements (`requirementsBar` in sidebar.js; the call of
   2026-11-16): a stack of pale blue cards on a bar pinned at the foot of
   the board, a colour of their own beside the yellow options, the green
   experiments and the white goal. Opened, the stack rises and shows them,
   each theirs to reword or remove. */
.sb-board > :has(+ .sb-reqs) { margin-bottom: 22px; }
.sb-reqs {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  margin-top: auto;
  padding: 8px 10px;
  color: #1f3448;
  background: #dcebf6;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #c3d9ea, 6px 6px 0 #a9c7de, 0 6px 14px rgba(0, 0, 0, 0.25);
}
.sb-reqs summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.sb-reqs ul {
  list-style: none;
  max-height: 45vh;
  overflow-y: auto;
  margin: 8px -4px 0;
  padding: 2px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-card.sb-req {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  padding: 0.55rem 0.7rem;
  color: #1f3448;
  background-color: #eef5fb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: none;
}
.sb-req-words { flex: 1; margin: 0; font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.sb-req .sb-link { flex: none; font-size: 11px; color: #2c5a7c; }
.sb-req .sb-cardform { flex: 1; margin: 0; }
.sb-req .sb-cardform textarea { color: #1f3448; background: rgba(255, 255, 255, 0.8); border-color: #a9c6dc; }
.sb-req .sb-back, .sb-req .sb-go { color: #1f3448; border-color: #8fb3cf; }
.sb-req .sb-note { color: #8a3b3b; font-size: 12px; }
/* An experiment they agreed to try: a ruled card across the board, ahead of
   the options, pinned until they report on it or call it off (Jennifer liked
   the ruled card as it was, 2026-11-09), beach-glass green since 2026-11-14,
   so it reads as a kind of its own; the same green slides under an option's
   card once it is done. */
.sb-card.sb-step {
  grid-column: 1 / -1;
  min-height: 0;
  background-color: #d3eadb;
  background-image: repeating-linear-gradient(transparent 0 17px, rgba(40, 110, 80, 0.16) 17px 18px);
  transform: rotate(-0.4deg);
}
.sb-card.sb-step.done { background-color: #bcdcc6; }
.sb-step .pin { background: radial-gradient(circle at 35% 35%, #a8d8b9, #2f6b4f 70%); }
.sb-step .when { margin: 0.35rem 0 0; font-size: 0.72rem; color: #4d6658; }
.sb-stack .sb-done { font-size: 0.78rem; color: #333; }
.sb-stack .sb-done span { color: #666; font-style: italic; }
/* The board's edit mode: an "edit" button over the cork; pressed, its row
   becomes the edit bar, pinned at the top while the board scrolls — what
   is selected, what can be done to it, and "done", filled, the way out.
   While it is on, a press selects a card or a row, a tick in its corner,
   and opens nothing. */
.sb-board-head { display: flex; justify-content: flex-end; margin: -6px 0 12px; }
/* Pinned under the pane's own bar, which is sticky above it and 46px tall. */
.sb-board-head.editing {
  position: sticky;
  top: 46px;
  z-index: 2;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -18px -14px 14px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #444;
  background: rgba(255, 253, 246, 0.96);
  border-bottom: 1px solid #d8cfb8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sb-count { margin-right: auto; }
.sb-edit {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222;
  background: #fffdf6;
  border: none;
  border-radius: 999px;
  padding: 4px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.sb-edit:hover { background: #fff; }
.sb-edit.sb-finish { color: #fffdf6; background: #286983; box-shadow: none; }
.sb-edit.sb-finish:hover { background: #1f5568; }
.sb-card.editing h3 { padding-right: 1.3rem; }
.sb-tick {
  position: relative;
  flex: none;
  display: inline-block;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.5px solid #b4ae9f;
  border-radius: 50%;
  background: #fffdf6;
}
.sb-card .sb-tick { position: absolute; top: 0.5rem; right: 0.5rem; }
.sb-card.selected { outline: 2px solid #286983; outline-offset: 2px; }
.selected .sb-tick { background: #286983; border-color: #286983; }
.selected .sb-tick::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 3px;
  height: 6px;
  border: solid #fffdf6;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.sb-stack .sb-branch { justify-content: flex-start; align-items: center; }
.sb-stack .sb-branch:hover { color: #222; background: rgba(40, 105, 131, 0.08); }
.sb-stack .sb-branch.selected { border-style: solid; border-color: #286983; color: #222; }
.sb-archive {
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #286983;
  background: none;
  border: 1px solid #286983;
  border-radius: 999px;
  padding: 2px 10px;
  cursor: pointer;
}
.sb-archive:hover:not(:disabled) { color: #fffdf6; background: #286983; }
.sb-archive:disabled { opacity: 0.35; cursor: default; }
.sb-does { display: flex; flex-wrap: wrap; gap: 6px; }
/* A card's name and what it says, edited; or the names of the cards it
   splits into. The same fields as a comment. */
.sb-cardform { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px; }
/* The cards being merged, named above the form that makes them one. */
.sb-merging { margin: 10px 0 0; padding-left: 1.2rem; font-size: 13px; color: var(--subtle); }
.sb-cardform input, .sb-cardform textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.sb-cardform input[data-field="name"] { font-size: 16px; font-weight: 600; }
.sb-cardform textarea { resize: vertical; }
.sb-cardform .sb-go { margin-top: 0; }
.sb-cardform .sb-note:empty { display: none; }
.sb-detail > .sb-presses { justify-content: space-between; }
/* A title named in a sentence, which opens that card. */
.sb-link {
  font: inherit;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* The jump, marked in the log where it happened: a cut across the
   conversation, the words on a pill over the rule, and what was picked under
   it — the option, or the last reply on the stretch they went back to. */
#log .picked {
  align-self: stretch;
  margin: 10px 0;
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
}
#log .picked .cut {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
#log .picked .cut::before,
#log .picked .cut::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
#log .picked .cut span {
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--bg);
}
#log .picked .gist,
#log .picked .theirs,
#log .picked .then {
  max-width: 34rem;
  margin: 2px auto 0;
}
#log .picked .theirs { font-style: italic; }
#log .picked .then {
  text-align: left;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

/* The progress bar: a row of its own between the conversation and the box,
   so nothing it says ever sits over what was said (Dann, 2026-11-05: "it
   overlaps the text when the conversation is scrolled"). It takes the box's
   top rule while it is there. */
/* A bar per thing being done, their tracks lined up in one column, and the
   waiting line and a press's refusal each a line across both. */
#progress {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 10px var(--gutter-narrow) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--subtle);
}
#progress[hidden] { display: none; }
#progress:not([hidden]) + #autotext,
#progress:not([hidden]) ~ #composer { border-top: none; }
#progress:not([hidden]) + #autotext[hidden] + #composer { padding-top: 10px; }
#progress .job { display: contents; }
#progress .what { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#progress .track { height: 6px; border-radius: 6px; background: color-mix(in oklab, var(--subtle) 22%, transparent); overflow: hidden; }
#progress .waiting, #progress .said { grid-column: 1 / -1; margin: 0; }
/* Filled as far as the work has got, with a sheen running along it so it
   reads as working even while one step takes its time (Dann, 2026-11-05: "a
   little bit of motion to show something is happening"). */
#progress .fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: calc(var(--done, 0) * 100%);
  background:
    linear-gradient(90deg, transparent, color-mix(in oklab, white 60%, transparent), transparent) no-repeat,
    linear-gradient(90deg, var(--foam), var(--iris));
  background-size: 45% 100%, 100% 100%;
  animation: sheen 1.6s ease-in-out infinite;
  transition: width 0.25s linear;
}
@keyframes sheen {
  from { background-position: -100% 0, 0 0; }
  to { background-position: 200% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  #progress .fill { animation: none; }
}
#progress .said { color: var(--love); }

/* A reply that has not begun is not shown: the progress bar says it is
   coming, and the empty bubble's dots were a second sign of the same thing
   in the same place. */
#log .msg.pending { display: none; }

/* A test account's autotext button and its bounded run, a row above the box,
   which takes over the box's top rule while it is there. Test accounts only:
   the row is hidden in the markup and unhidden only where the server says
   this account is one (`/api/history`), so a tester's page is unchanged. */
#autotext {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--gutter-narrow) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--subtle);
}
#autotext:not([hidden]) + #composer { border-top: none; padding-top: 10px; }
#autotext button {
  font: inherit;
  color: var(--subtle);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
#autotext button:hover { color: var(--text); border-color: var(--foam); }
#autotext button:disabled { opacity: 0.5; cursor: wait; }
#autotext .run { display: inline-flex; align-items: center; gap: 6px; }
#autotext .sep { opacity: 0.5; }
#autotext .state:not(:empty) { color: var(--text); }
#autotext .who { color: var(--subtle); }
/* The bound, typed into. Narrow enough that the row still reads as a line of
   words with a number in it rather than as a form. */
#autotext .steps {
  font: inherit;
  width: 4em;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 2px 3px 6px;
  text-align: center;
}
#autotext .steps:focus-visible { outline: 1px solid var(--foam); }
/* Last, because the rules above set a display on parts of the row and
   `hidden` is only a default. */
#autotext [hidden] { display: none; }

/* Search (public/search.js): a pill like the buttons beside it, what it
   found under it, and while it is on, the chat keeps only the messages that
   match. Each match is marked where it stands, in the chat and on the board. */
.search { position: relative; display: flex; align-items: center; }
.search[hidden] { display: none; }
#search {
  width: 12rem;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
#search:focus { outline: none; border-color: var(--foam); }
#found {
  position: absolute;
  top: 100%;
  left: 12px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--subtle);
  white-space: nowrap;
}
#log.searching > :not(.msg), #log.searching > .msg.miss { display: none; }
#log.searching > .msg { cursor: pointer; }
::highlight(found-chat), ::highlight(found-board) {
  background-color: light-dark(#f6c177, #c4a7e7);
  color: #191724;
}
@media (max-width: 40rem) {
  #search { width: 7.5rem; }
}

