/* modules.css — demo band, stickers, board, planner, tour (Oct 5) */

/* ---------- the demo band ---------- */
.demo-band { position: fixed; left: 0; right: 0; top: 0; z-index: 900; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px calc(6px); background: #1f2a1d; color: #f2efe6; font: 600 13px/1.3 system-ui, -apple-system, sans-serif; }
.demo-band button { font: inherit; color: inherit; background: none; border: 1px solid rgba(242,239,230,.5); border-radius: 4px; padding: 3px 10px; cursor: pointer; }
.demo-band button:hover { border-color: #f2efe6; }
body.is-demo .demo-band { display: flex; }
.demo-band { height: 32px; padding-top: 0; padding-bottom: 0; }
.demo-band button { padding: 2px 10px; }
.demo-short { display: none; }
@media (max-width: 600px) { .demo-long { display: none; } .demo-short { display: inline; } }
body.is-demo { padding-top: 32px; }
@media (max-width: 900px) { body.is-demo .sidebar { top: 32px; } }
@media (min-width: 1160px) {
  body.is-demo .app-shell { top: 44px; }
  body.is-demo.chatting #bar { top: 44px; }
}

/* ---------- the day planner ---------- */
html.planner-open, html.planner-open body { overflow: hidden; }
.planner {
  --pl-gutter: 46px;
  --pl-note: var(--note, #fffdf8);
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 850;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: var(--paper); color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}
.planner.is-in { animation: pl-rise .2s ease-out both; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pl-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px;
  padding: 14px 16px 0; background: var(--pine); color: var(--pine-ink);
}
.pl-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.pl-title h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.pl-steps { display: flex; gap: 6px; align-self: center; }
.pl-step, .pl-close {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgb(var(--pine-ink-rgb) / 0.35); background: transparent; color: var(--pine-ink);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.pl-close { font-size: 24px; background: rgb(var(--pine-ink-rgb) / 0.12); }
.pl-step:hover:not(:disabled), .pl-close:hover { background: rgb(var(--pine-ink-rgb) / 0.2); }
.pl-step:disabled { opacity: 0.3; cursor: default; }
.pl-strip {
  grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 8px -16px 0; padding: 0 16px 10px; scroll-behavior: smooth;
}
.pl-strip::-webkit-scrollbar { display: none; }
.pl-chip {
  flex: 1 0 48px; display: grid; justify-items: center; gap: 1px; padding: 6px 4px 7px;
  border: 0; border-radius: 10px; background: transparent; color: var(--pine-ink); cursor: pointer; font: inherit;
}
.pl-chip span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.pl-chip strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.pl-chip.is-fixed strong { color: var(--gilt); }
.pl-chip:hover { background: rgb(var(--pine-ink-rgb) / 0.1); }
.pl-chip.is-on { background: var(--paper); color: var(--ink); }
.pl-chip.is-on.is-fixed strong { color: var(--amber); }
.pl-dots { display: flex; gap: 3px; height: 5px; }
.pl-dots b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.pl-dots b.is-me { opacity: 1; background: var(--gilt); }
.pl-chip.is-on .pl-dots b.is-me { background: var(--leaf); }

.pl-cols { display: grid; gap: 0; min-height: 0; }
.pl-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); }
.pl-col:last-child { border-right: 0; }
.pl-col:not(.is-main) { background: rgb(var(--ink-rgb) / 0.025); }
.pl-col-head {
  display: block; width: 100%; text-align: left; padding: 12px 14px 8px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 600 13px/1.2 var(--sans); cursor: pointer;
}
.pl-col-head span { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.pl-col-head:hover span { text-decoration: underline; text-underline-offset: 3px; }

.pl-allday { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pl-lane-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pl-fixed {
  padding: 9px 12px; border-radius: 3px; background: var(--pine); color: var(--pine-ink);
  font-size: 14px; font-weight: 600; line-height: 1.35;
}
.pl-fixed em { font-style: normal; font-weight: 400; opacity: 0.75; }

.pl-hours { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pl-grid { position: relative; margin: 0 10px 0 0; }
.pl-hour { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.pl-hour span {
  position: absolute; left: 0; top: -1px; width: var(--pl-gutter); padding: 4px 8px 0 10px;
  font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right;
}

.pl-card {
  display: grid; align-content: start; gap: 3px; text-align: left; font: inherit; color: var(--ink);
  padding: 9px 11px 10px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--pl-note);
  box-shadow: 0 6px 16px rgb(var(--pine-rgb) / 0.12), 0 1px 1px rgb(var(--pine-rgb) / 0.16);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.pl-grid .pl-card { position: absolute; overflow: hidden; }
.pl-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgb(var(--pine-rgb) / 0.16), 0 1px 1px rgb(var(--pine-rgb) / 0.16); }
.pl-card:active { transform: translateY(0) scale(0.99); }
.pl-card strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.12; }
.pl-card-time { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--leaf); }
.pl-card-time b { font-weight: 700; }
.pl-card-who { font-size: 12px; color: var(--muted); }
.pl-card.is-mine { background: var(--leaf); color: #fff; }
.pl-card.is-mine .pl-card-time, .pl-card.is-mine .pl-card-who { color: rgb(255 255 255 / 0.85); }
.pl-card.is-open { outline: 2px solid var(--amber); outline-offset: 2px; }
.pl-col:not(.is-main) .pl-card strong { font-size: 16px; }
.pl-card:focus-visible, .pl-chip:focus-visible, .pl-step:focus-visible, .pl-close:focus-visible, .pl-add:focus-visible, .pl-join:focus-visible, .pl-col-head:focus-visible, .pl-sheet-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.pl-empty { padding: 18px 16px 6px; }
.pl-empty p { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.pl-add {
  border: 1px solid var(--leaf); background: var(--card); color: var(--leaf); border-radius: 999px;
  padding: 9px 16px; font: 700 13px/1 var(--sans); cursor: pointer;
}
.pl-add:hover { background: var(--leaf-soft); }
.pl-add--quiet { align-self: flex-start; margin: 8px 12px 12px; }

.pl-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 78%; overflow-y: auto;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--card); border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgb(var(--pine-rgb) / 0.25);
}
.pl-sheet.is-up { animation: pl-sheet .2s ease-out both; }
@keyframes pl-sheet { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pl-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.pl-sheet-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.pl-sheet-when { margin: 4px 48px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf); }
.pl-sheet h3 { margin: 6px 48px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.08; text-wrap: balance; }
.pl-sheet-where { margin: 8px 0 0; font-weight: 600; font-size: 15px; }
.pl-sheet-where a { color: var(--leaf); }
.pl-sheet-note { margin: 8px 0 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.pl-sheet-people { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.pl-sheet-people div { display: contents; }
.pl-sheet-people dt { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pl-sheet-people dd { margin: 0; font-size: 15px; }
.pl-sheet-people b { color: var(--leaf); }
.pl-sheet-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pl-join {
  min-width: 120px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--leaf);
  background: var(--leaf); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer;
  transition: transform .12s ease-out;
}
.pl-join:active { transform: scale(0.97); }
.pl-join.is-on { background: var(--card); color: var(--leaf); }
.pl-join:disabled { opacity: 0.6; }
.pl-sheet-state { font-size: 14px; color: var(--muted); }

@media (min-width: 1000px) {
  .pl-head { padding: 18px 28px 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .pl-title h2 { font-size: 36px; }
  .pl-strip { grid-column: auto; grid-row: 1; grid-column-start: 2; margin: 0; padding: 0 8px 0; justify-content: center; }
  .pl-head { padding-bottom: 14px; }
  .pl-chip { flex: 0 0 54px; }
  .pl-steps { grid-column: 3; grid-row: 1; }
  .pl-sheet {
    left: auto; right: 24px; bottom: 24px; top: auto; width: 420px; max-height: calc(100% - 48px);
    border-radius: 6px; box-shadow: 0 18px 50px rgb(var(--pine-rgb) / 0.3);
  }
  .pl-grip { display: none; }
  .pl-col.is-main .pl-card strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .planner.is-in, .pl-sheet.is-up { animation: none; }
  .pl-card, .pl-join { transition: none; }
}

/* ---------- stickers ---------- */
/* the art is drawn in stickers.js; this is the die-cut, the ink and the tray */
.view { position: relative; }
.view.is-active { overflow-x: clip; }
.stk-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.stk { position: absolute; width: 64px; height: 64px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); -webkit-tap-highlight-color: transparent; }
.stk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stk--sticker svg { filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 2px 2px rgb(35 32 26 / 0.28)); }
.stk--stamp { width: 96px; height: 66px; opacity: 0.86; mix-blend-mode: multiply; }
.stk--card { width: 46px; height: 46px; }
.stk--card.stk--stamp { width: 74px; height: 50px; }
.stk:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; border-radius: 8px; }
.stk-who, .stk-off { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px) rotate(calc(var(--r, 0deg) * -1)); white-space: nowrap; font: 600 11px/1 var(--sans); padding: 4px 7px; border-radius: 4px; display: none; }
.stk-who { background: var(--ink); color: var(--paper); }
.stk-off { background: var(--card); color: var(--ink); border: 1px solid var(--ink); top: calc(100% + 22px); cursor: pointer; }
.stk:hover .stk-who, .stk.is-open .stk-who { display: block; }
.stk.is-open .stk-off { display: block; }
@media (min-width: 900px) { .stk:not(.stk--card) { width: 78px; height: 78px; } .stk--stamp:not(.stk--card) { width: 120px; height: 82px; } }

.stk-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform 140ms ease-out, background-color 140ms ease-out; }
.stk-btn svg { width: 17px; height: 17px; transform: rotate(-8deg); }
.stk-btn:hover { background: var(--amber-soft); }
.stk-btn:active { transform: scale(0.92); }
.stk-btn.is-on { background: var(--pine); color: var(--pine-ink); border-color: var(--pine); }

.stk-tray { position: fixed; z-index: 960; right: 16px; top: 72px; width: 344px; padding: 16px 16px 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgb(var(--pine-rgb) / 0.22), 0 2px 4px rgb(var(--pine-rgb) / 0.12); }
.stk-tray[hidden] { display: none; }
.stk-tray-head h2 { margin: 0; font: 400 26px/1 var(--serif); }
.stk-tray-head p { margin: 6px 0 12px; font: 14px/1.35 var(--sans); color: var(--muted); }
.stk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stk-grid--stamps { grid-template-columns: repeat(3, 1fr); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.stk-pick { aspect-ratio: 1; padding: 9px; border: 0; border-radius: 10px; background: var(--paper); cursor: pointer; transition: transform 140ms ease-out, background-color 140ms ease-out; }
.stk-pick svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.stk-pick--stamp { aspect-ratio: 3 / 2; padding: 6px; }
.stk-pick--stamp svg { filter: none; opacity: 0.88; }
.stk-pick:hover { background: var(--amber-soft); transform: rotate(-4deg) scale(1.06); }
.stk-pick:active { transform: scale(0.94); }
.stk-pick:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

.stk-hint { position: fixed; z-index: 960; left: 50%; top: 84px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 8px; background: var(--ink); color: var(--paper); border-radius: 10px; font: 600 14px/1 var(--sans); box-shadow: 0 10px 24px rgb(var(--ink-rgb) / 0.3); }
.stk-hint[hidden] { display: none; }
.stk-hint-art { width: 30px; height: 30px; display: block; }
.stk-hint-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stk-hint button { font: inherit; color: inherit; background: none; border: 1px solid rgb(var(--pine-ink-rgb) / 0.45); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
body.stk-placing .view.is-active { cursor: crosshair; }
body.stk-placing .view.is-active a, body.stk-placing .view.is-active button { cursor: crosshair; }
.stk-ghost { position: fixed; left: 0; top: 0; z-index: 970; width: 60px; height: 60px; pointer-events: none; opacity: 0.75; }
.stk-ghost[hidden] { display: none; }
.stk-ghost svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stk-ghost.stk--stamp { mix-blend-mode: multiply; }

.stk-toast { position: fixed; z-index: 980; left: 50%; bottom: 110px; transform: translateX(-50%); padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; font: 600 14px/1.3 var(--sans); max-width: calc(100vw - 32px); }
.stk-toast[hidden] { display: none; }
.stk-sky { position: fixed; inset: 0; z-index: 990; pointer-events: none; overflow: hidden; }
.stk-fall { position: absolute; top: 0; width: 44px; height: 44px; }
.stk-fall svg { width: 100%; height: 100%; display: block; overflow: visible; }

@media (max-width: 699px) {
  .stk-tray { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .stk-hint { top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .stk-btn, .stk-pick { transition: none; }
  .stk-pick:hover { transform: none; }
}

/* ---------- the decision board ---------- */
/* The deck (Oct 5, second pass): a new person meets the Atlas as cards,
   with everyone else's answers in miniature beside each one. Colours come
   from the theme vars, so picking a look recolours the deck as you tap.
   Uppercase micro-labels are tracked on purpose (the one letter-spacing
   exception); motion is transform/opacity only. */
.deck { position: fixed; inset: 0; z-index: 800; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--pine); color: var(--pine-ink); overflow: hidden; opacity: 0; transition: opacity 180ms ease-out, background-color 320ms ease-out; padding-bottom: env(safe-area-inset-bottom); }
.deck.is-in { opacity: 1; }
.deck[hidden] { display: none; }
body.is-demo .deck { top: 32px; }
html.board-open, html.board-open body { overflow: hidden; }
.deck .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top: progress, saved note, the way out */
.dk-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.dk-progress { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; }
.dk-seg { flex: 1 1 0; min-width: 0; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.dk-seg i { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgb(var(--pine-ink-rgb) / .18); transition: background-color 200ms ease-out, transform 200ms ease-out; }
.dk-seg.is-done i { background: var(--gilt); }
.dk-seg.is-skipped i { background: repeating-linear-gradient(90deg, rgb(var(--pine-ink-rgb) / .5) 0 4px, transparent 4px 7px); }
.dk-seg.is-current i { background: var(--pine-ink); transform: scaleY(1.6); }
.dk-demo { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.dk-saved { margin: 0; font: 500 12px/1 var(--sans); color: var(--gilt); opacity: 0; white-space: nowrap; }
.dk-saved.is-on { animation: dk-saved 2.2s ease-out forwards; }
@keyframes dk-saved { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.dk-out { flex: none; border: 0; background: none; color: rgb(var(--pine-ink-rgb) / .75); font: 600 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; cursor: pointer; }
.dk-out:hover { color: var(--pine-ink); }

/* the stage: the scene (everyone) and the deck (you) */
.dk-stage { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 0 16px; }
.dk-scene { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-height: 140px; }
.deck[data-step="finale"] .dk-scene { display: none; }
.dk-scene-cap { margin: 0; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--pine-ink-rgb) / .7); }
.dk-scene-in { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 16px; background: rgb(var(--pine-ink-rgb) / .07); border: 1px solid rgb(var(--pine-ink-rgb) / .14); overflow: hidden; }
.deck.is-recolour .dk-scene-in { animation: dk-recolour 360ms ease-out; }
@keyframes dk-recolour { 0% { transform: scale(.985); } 100% { transform: none; } }

.dk-deck { position: relative; flex: none; min-height: 0; margin-bottom: 14px; }
.dk-card { position: absolute; left: 0; right: 0; top: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 20px 20px 18px; background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: 0 1px 0 rgb(var(--ink-rgb) / .05), 0 22px 44px rgb(0 0 0 / .3); touch-action: pan-y; user-select: none; -webkit-user-select: none; transform-origin: 50% 100%; transition: transform 280ms ease-out, opacity 220ms ease-out, background-color 320ms ease-out; }
.dk-card textarea, .dk-card input { user-select: text; -webkit-user-select: text; }
.dk-card:not(.is-current) { height: var(--h, auto); overflow: hidden; pointer-events: none; }
.dk-card:not(.is-current) > * { visibility: hidden; }
.dk-card[data-off="0"] { z-index: 5; }
.dk-card[data-off="1"] { z-index: 4; transform: translateY(9px) scale(.955); background: color-mix(in srgb, var(--card) 82%, var(--pine)); }
.dk-card[data-off="2"] { z-index: 3; transform: translateY(18px) scale(.91); background: color-mix(in srgb, var(--card) 64%, var(--pine)); }
.dk-card[data-off="3"] { z-index: 1; transform: translateY(18px) scale(.91); opacity: 0; }
.dk-card[data-off="-1"] { z-index: 1; transform: translateX(-118%) rotate(-9deg); opacity: 0; }
.dk-card.is-dragging { transition: none; cursor: grabbing; }
.dk-card.is-tossing::after { content: "Not sure yet"; position: absolute; top: 18px; right: 16px; padding: 5px 9px; border: 2.5px solid var(--amber); border-radius: 6px; color: var(--amber); font: 800 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; transform: rotate(9deg); }

.dk-n { margin: 0 0 10px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dk-q { margin: 0 0 8px; font: 400 32px/1.02 var(--serif); color: var(--ink); text-wrap: balance; }
.dk-line { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.dk-skip-line { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.dk-aside { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* hello */
.dk-facts { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 10px; }
.dk-facts li { position: relative; padding-left: 24px; font: 400 19px/1.25 var(--serif); color: var(--ink); text-wrap: pretty; }
.dk-facts li::before { content: ""; position: absolute; left: 0; top: .32em; width: 11px; height: 11px; border: 2px solid var(--leaf); border-radius: 3px; box-shadow: inset 0 0 0 2.5px var(--card), inset 0 0 0 6px var(--leaf); }
.dk-go, .dk-enter { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--pine); color: var(--pine-ink); font: 600 17px/1 var(--sans); cursor: pointer; transition: transform 140ms ease-out; }
.dk-go:active, .dk-enter:active { transform: scale(.97); }
.dk-enter { min-height: 64px; font-size: 19px; margin-top: 14px; }
.dk-enter::before { content: ""; width: 18px; height: 18px; border: 2.5px solid currentColor; border-radius: 4px; box-shadow: inset 0 0 0 4px var(--pine), inset 0 0 0 10px currentColor; }

/* colours */
.dk-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dk-swatch { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 5px; border: 2px solid transparent; border-radius: 14px; background: none; color: var(--ink); cursor: pointer; transition: transform 140ms ease-out, border-color 140ms ease-out; }
.dk-swatch:active { transform: scale(.95); }
.dk-swatch[aria-pressed="true"] { border-color: var(--ink); transform: translateY(-3px); }
.dk-sw-art { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--a); overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.dk-sw-art i { position: absolute; left: 12%; right: 12%; border-radius: 3px; }
.dk-sw-art i:nth-child(1) { top: 10%; height: 26%; background: var(--b); }
.dk-sw-art i:nth-child(2) { top: 44%; height: 14%; right: 40%; background: var(--c); }
.dk-sw-art i:nth-child(3) { top: 66%; height: 22%; background: color-mix(in srgb, var(--a) 70%, var(--b)); }
.dk-sw-name { font: 600 12px/1 var(--sans); text-align: center; }

/* answers */
.dk-opt { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: 600 16px/1.2 var(--sans); cursor: pointer; transition: background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out, transform 140ms ease-out; }
.dk-opt:active, .dk-big:active { transform: scale(.97); }
.dk-opt[aria-pressed="true"], .dk-big[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
.dk-opt--small { min-height: 42px; font-size: 14px; }
.dk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-big { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; min-height: 112px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color 140ms ease-out, color 140ms ease-out, transform 140ms ease-out; }
.dk-big span { font: 400 30px/1 var(--serif); }
.dk-big small { font: 600 13px/1 var(--sans); opacity: .7; }
.dk-either { width: 100%; margin-top: 10px; }
.dk-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dk-pref { margin-top: 14px; }
.dk-sub { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.dk-prefs { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-list { display: grid; gap: 8px; }
.dk-row { text-align: left; }
.dk-when .dk-when-label { display: block; margin-bottom: 6px; font: 600 13px/1 var(--sans); color: var(--ink); }
.dk-when .field-opt { font-weight: 400; color: var(--muted); }
.dk-when .when-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.dk-when input, .dk-text textarea { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 500 16px/1.3 var(--sans); }
.dk-text textarea { padding: 12px; resize: none; display: block; }
.dk-when input:focus, .dk-text textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.dk-when .when-was { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* stickers */
.dk-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dk-tray-btn { aspect-ratio: 1; padding: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: transform 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out; }
.dk-tray-btn svg { width: 100%; height: 100%; display: block; }
.dk-tray-btn[aria-pressed="true"] { border-color: var(--ink); transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 16px rgb(0 0 0 / .14); }
.dk-placed { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.deck[data-step="sticker"] .dk-room { cursor: crosshair; }
.deck.is-armed .dk-scene-in { border-color: var(--gilt); box-shadow: 0 0 0 2px var(--gilt); }

/* finale */
.dk-recap { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.dk-recap li { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.dk-recap li:first-child { border-top: 0; }
.dk-recap span { grid-row: span 2; font: 700 11px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dk-recap b { font: 400 18px/1.15 var(--serif); color: var(--ink); }
.dk-recap small { font-size: 12px; color: var(--muted); }
.dk-recap li.is-later b { color: var(--muted); }

/* foot */
.dk-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 14px; }
.dk-foot.is-bare { visibility: hidden; }
.dk-back, .dk-skip { min-height: 48px; padding: 0 16px; border: 1px solid rgb(var(--pine-ink-rgb) / .3); border-radius: 12px; background: none; color: var(--pine-ink); font: 600 15px/1 var(--sans); cursor: pointer; }
.dk-back:disabled { opacity: .3; cursor: default; }
.dk-skip { margin-left: auto; border-style: dashed; }
.dk-next { min-height: 48px; min-width: 104px; margin-left: 8px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--pine-ink); color: var(--pine); font: 700 15px/1 var(--sans); cursor: pointer; transition: transform 140ms ease-out; }
.dk-skip[hidden] + .dk-next { margin-left: auto; }
.dk-next:active, .dk-back:active, .dk-skip:active { transform: scale(.96); }

/* ---- the people, in miniature ---- */
.dk-chip { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 10px/1 var(--sans); box-shadow: 0 0 0 2px var(--pine); }
.dk-chip.is-you { background: var(--gilt); color: #23201a; box-shadow: 0 0 0 2px var(--pine), 0 0 0 4px var(--gilt); z-index: 1; }
.dk-chip.drop, .dk-mini-card, .dk-ticket, .dk-bar, .dk-room-stk { animation-delay: var(--d, 0ms); }
.dk-chip.drop { animation: dk-drop 420ms ease-out var(--d, 0ms) both; }
.dk-chip.fly { animation: dk-fly 560ms ease-out both; }
.dk-chip.hop, .dk-mini-card.hop, .dk-ticket.hop { animation: dk-hop 620ms ease-out both; }
.is-again .dk-chip.drop, .is-again .dk-mini-card, .is-again .dk-ticket:not(.fly), .is-again .dk-bar:not(.fly), .is-again .dk-room-stk:not(.is-mine) { animation: none; }
@keyframes dk-drop { from { opacity: 0; transform: translateY(-16px) scale(.6); } 70% { opacity: 1; transform: translateY(2px) scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes dk-fly { from { opacity: 0; transform: translateY(-70px) scale(1.8); } 60% { opacity: 1; transform: translateY(4px) scale(.92); } to { transform: none; } }
@keyframes dk-hop { 0% { transform: none; } 30% { transform: translateY(-7px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } 100% { transform: none; } }

/* the room */
.dk-room { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; background: var(--paper); color: var(--ink); transition: background-color 320ms ease-out; }
.dk-room-side { display: none; }
.dk-room-main { display: flex; flex-direction: column; gap: 6px; padding: 8px; min-width: 0; }
.dk-room-hero { padding: 7px 9px; border-radius: 8px; background: var(--pine); color: var(--pine-ink); transition: background-color 320ms ease-out; }
.dk-room-hero small { display: block; font: 600 8px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.dk-room-hero strong { display: block; margin-top: 2px; font: 400 17px/1 var(--serif); }
.dk-room-add { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.dk-room-add span { flex: none; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); font: 600 8px/1 var(--sans); }
.dk-room-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; min-height: 0; flex: 1; }
.dk-room-plans { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 4px; max-height: 100%; }
.dk-mini-card { padding: 5px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); animation: dk-drop 420ms ease-out var(--d, 0ms) both; overflow: hidden; }
.dk-mini-card b { display: block; font: 400 10px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-mini-card span { display: block; margin-top: 2px; font: 600 7px/1 var(--sans); color: var(--muted); }
.dk-room-people { padding: 5px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.dk-room-people p { margin: 0 0 4px; font: 700 8px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dk-room-people div { display: flex; flex-wrap: wrap; gap: 4px; }
.dk-room-people .dk-chip { width: 18px; height: 18px; font-size: 7px; box-shadow: 0 0 0 1.5px var(--card); }
.dk-room-people .dk-chip.is-you { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--gilt); }
.dk-room-stk { position: absolute; width: 13%; max-width: 64px; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); pointer-events: none; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .25)); animation: dk-slap 380ms ease-out var(--d, 0ms) both; }
.dk-room-stk svg { width: 100%; height: 100%; display: block; }
.dk-room-stk.is-mine { animation: dk-slap 420ms ease-out both; }
@keyframes dk-slap { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.9); } 65% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.9); } to { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); } }

/* land and leave: the timeline */
.dk-tl { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10px 8px 8px; }
.dk-tl-cols, .dk-tl-days, .dk-bar-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.dk-tl-cols { flex: 1 1 auto; min-height: 0; align-items: end; }
.dk-tl-col { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; padding-bottom: 4px; height: 100%; justify-content: flex-start; border-radius: 6px; }
.dk-tl-col.is-show, .dk-tl-days span.is-show { background: rgb(var(--pine-ink-rgb) / .08); }
.dk-tl-col .dk-chip { width: 20px; height: 20px; font-size: 8px; }
.dk-tl-days { border-top: 1px solid rgb(var(--pine-ink-rgb) / .2); padding-top: 4px; }
.dk-tl-days span { text-align: center; font: 400 13px/1 var(--serif); border-radius: 4px; padding-bottom: 2px; }
.dk-tl-days span.is-show { color: var(--gilt); }
.dk-tl-days i { display: block; font: 600 8px/1.4 var(--sans); font-style: normal; opacity: .6; }
.dk-tl-key { margin: 6px 0 0; font: 500 11px/1 var(--sans); opacity: .75; }
.dk-tl-key .is-show { color: var(--gilt); font-weight: 700; }
.dk-tl-bars { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding-bottom: 6px; overflow: hidden; }
.dk-bar { grid-column: calc(var(--a) + 1) / span var(--s); display: flex; align-items: center; gap: 5px; min-width: 0; height: 24px; padding: 2px; border-radius: 13px; background: rgb(var(--pine-ink-rgb) / .16); transform-origin: left center; animation: dk-stretch 560ms ease-out var(--d, 0ms) both; overflow: hidden; }
.dk-bar .dk-chip { width: 20px; height: 20px; font-size: 8px; box-shadow: none; }
.dk-bar span { font: 600 10px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bar.is-you { background: rgb(228 205 142 / .38); }
.dk-bar.is-open { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.dk-bar.fly { animation: dk-stretch 600ms ease-out both; }
@keyframes dk-stretch { from { opacity: 0; transform: scaleX(.08); } to { opacity: 1; transform: none; } }
.dk-empty { margin: auto; font-size: 13px; opacity: .75; text-align: center; }

/* the vote */
.dk-vote { position: absolute; inset: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.dk-vote-col { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 10px; border-radius: 12px; background: rgb(var(--pine-ink-rgb) / .06); transition: background-color 200ms ease-out; }
.dk-vote-col.is-mine { background: rgb(228 205 142 / .2); }
.dk-vote-stack { flex: 1; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 4px; width: 100%; }
.dk-vote-col strong { font: 400 36px/1 var(--serif); font-variant-numeric: tabular-nums; }
.dk-vote-col span { font: 600 13px/1.2 var(--sans); }
.dk-vote-col small { font-size: 11px; opacity: .7; }
.dk-vote-either { position: absolute; left: 10px; right: 10px; bottom: 6px; margin: 0; display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--sans); }
.dk-vote-either span { opacity: .75; margin-right: 4px; }
.dk-vote-either em { font-style: normal; opacity: .5; }
.dk-vote-either .dk-chip { width: 20px; height: 20px; font-size: 8px; }

/* sauna */
.dk-sauna { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 10px 8px; align-items: end; }
.dk-tub { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.dk-steam { width: 60%; height: 34px; fill: none; stroke: rgb(var(--pine-ink-rgb) / .45); stroke-width: 3; stroke-linecap: round; }
.dk-steam path { animation: dk-steam 2.6s ease-in-out infinite; }
.dk-steam path:nth-child(2) { animation-delay: .5s; }
.dk-steam path:nth-child(3) { animation-delay: 1s; }
@keyframes dk-steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-3px); } }
.dk-tub-body { width: 100%; flex: 1 1 auto; max-height: 64%; min-height: 44px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 4px; padding: 8px; border: 2px solid rgb(var(--pine-ink-rgb) / .35); border-top: 0; border-radius: 0 0 22px 22px; }
.dk-tub--no .dk-tub-body { border-style: dashed; }
.dk-tub.is-mine .dk-tub-body { border-color: var(--gilt); background: rgb(228 205 142 / .12); }
.dk-tub > span { font: 600 12px/1 var(--sans); }

/* food: the kitchen rail */
.dk-rail { position: absolute; inset: 0; padding: 12px 10px; }
.dk-rail-bar { height: 4px; border-radius: 2px; background: rgb(var(--pine-ink-rgb) / .4); }
.dk-tickets { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.dk-ticket { min-width: 92px; padding: 7px 10px 9px; background: var(--note, #fffdf8); color: var(--ink); border-radius: 0 0 4px 4px; transform: rotate(var(--r, 0deg)); transform-origin: 50% 0; box-shadow: 0 6px 12px rgb(0 0 0 / .2); animation: dk-hang 520ms ease-out var(--d, 0ms) both; }
.dk-ticket small { display: block; font: 700 8px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dk-ticket b { display: block; margin: 4px 0 2px; font: 400 18px/1.05 var(--serif); }
.dk-ticket span { font: 600 11px/1 var(--sans); }
.dk-ticket.is-mine { box-shadow: 0 0 0 2px var(--gilt), 0 6px 12px rgb(0 0 0 / .2); }
.dk-ticket.is-blank b { color: var(--muted); }
@keyframes dk-hang { from { opacity: 0; transform: translateY(-24px) rotate(calc(var(--r, 0deg) * 4)); } 70% { opacity: 1; transform: rotate(calc(var(--r, 0deg) * -1.5)); } to { transform: rotate(var(--r, 0deg)); } }

/* sleeping: houses */
.dk-beds { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 8px 8px; align-items: end; }
.dk-house { display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.dk-house svg { width: 100%; height: 22px; display: block; fill: none; stroke: rgb(var(--pine-ink-rgb) / .45); stroke-width: 3; stroke-linejoin: round; }
.dk-house-body { flex: 1 1 auto; max-height: 62%; min-height: 40px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 3px; padding: 6px 4px; border: 2px solid rgb(var(--pine-ink-rgb) / .35); border-top: 0; }
.dk-house.is-mine svg { stroke: var(--gilt); }
.dk-house.is-mine .dk-house-body { border-color: var(--gilt); background: rgb(228 205 142 / .12); }
.dk-house > span { margin-top: 5px; font: 600 10px/1.15 var(--sans); text-align: center; }
.dk-beds .dk-chip, .dk-sauna .dk-chip, .dk-vote .dk-chip { width: 22px; height: 22px; font-size: 8px; }

/* through the frame */
.dk-exit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.dk-exit-mark { width: 56px; height: 56px; border: 3px solid var(--pine-ink); border-radius: 9px; box-shadow: inset 0 0 0 19px var(--pine), inset 0 0 0 28px var(--pine-ink); }
.deck.is-leaving .dk-stage, .deck.is-leaving .dk-top, .deck.is-leaving .dk-foot { animation: dk-fold 300ms ease-in both; }
.deck.is-leaving .dk-exit { opacity: 1; }
.deck.is-leaving .dk-exit-mark { animation: dk-swell 620ms ease-in 160ms both; }
.deck.is-leaving { background-color: transparent; transition: background-color 360ms ease-out 420ms, opacity 200ms ease-out 700ms; }
@keyframes dk-fold { to { opacity: 0; transform: scale(.82); } }
@keyframes dk-swell { from { transform: scale(.4); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { transform: scale(30); opacity: 0; } }

/* desk: the scene takes the room, the card sits beside it */
@media (min-width: 900px) {
  .dk-top { padding: 18px 48px 10px; gap: 20px; }
  .dk-progress { max-width: 560px; }
  .dk-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 40px; padding: 8px 48px 0; align-items: center; }
  .dk-scene { height: min(100%, 660px); gap: 10px; min-height: 0; }
  .deck[data-step="finale"] .dk-scene { display: flex; }
  .dk-scene-cap { font-size: 12px; }
  .dk-deck { height: calc(var(--h, 440px) + 24px); max-height: 100%; flex: none; align-self: center; margin-bottom: 0; }
  .dk-card { padding: 30px 30px 26px; border-radius: 24px; }
  .dk-q { font-size: 44px; }
  .dk-line { font-size: 16px; }
  .dk-facts li { font-size: 22px; }
  .dk-foot { width: min(460px, 40vw); margin-left: auto; margin-right: 48px; padding: 16px 0 28px; }
  .dk-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dk-chip { width: 34px; height: 34px; font-size: 12px; box-shadow: 0 0 0 2.5px var(--pine); }
  .dk-chip.is-you { box-shadow: 0 0 0 2.5px var(--pine), 0 0 0 5px var(--gilt); }
  .dk-tl { padding: 22px 22px 18px; }
  .dk-tl-col .dk-chip { width: 40px; height: 40px; font-size: 13px; }
  .dk-bar .dk-chip { width: 30px; height: 30px; font-size: 11px; }
  .dk-tl-col { gap: 5px; }
  .dk-tl-days span { font-size: 22px; }
  .dk-tl-days i { font-size: 10px; }
  .dk-tl-key { font-size: 13px; }
  .dk-bar { height: 36px; border-radius: 18px; padding: 3px; }
  .dk-bar span { font-size: 13px; }
  .dk-tl-bars { gap: 8px; }
  .dk-vote { padding: 22px; gap: 16px; inset: 0 0 52px; }
  .dk-vote-col { padding: 20px; border-radius: 18px; }
  .dk-vote-col strong { font-size: 72px; }
  .dk-vote-col span { font-size: 18px; }
  .dk-vote-either { left: 22px; bottom: 16px; font-size: 13px; }
  .dk-vote-either .dk-chip { width: 32px; height: 32px; font-size: 11px; }
  .dk-beds .dk-chip, .dk-sauna .dk-chip, .dk-vote .dk-chip { width: 44px; height: 44px; font-size: 14px; }
  .dk-vote-stack, .dk-tub-body, .dk-house-body { gap: 8px; }
  .dk-sauna, .dk-beds { padding: 26px 26px 20px; gap: 18px; }
  .dk-steam { height: 60px; stroke-width: 2.5; }
  .dk-tub > span, .dk-house > span { font-size: 15px; }
  .dk-house svg { height: 44px; }
  .dk-rail { padding: 28px 24px; }
  .dk-tickets { gap: 18px; padding: 0 10px; }
  .dk-ticket { min-width: 150px; padding: 12px 16px 16px; }
  .dk-ticket b { font-size: 28px; }
  .dk-room { grid-template-columns: 15% 1fr; border-radius: 0; }
  .dk-room-side { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; background: var(--pine); transition: background-color 320ms ease-out; }
  .dk-room-side .dk-mark { width: 22px; height: 22px; border: 2.5px solid var(--pine-ink); border-radius: 5px; box-shadow: inset 0 0 0 5px var(--pine), inset 0 0 0 11px var(--pine-ink); margin-bottom: 10px; }
  .dk-room-side i { display: block; height: 8px; border-radius: 4px; background: rgb(var(--pine-ink-rgb) / .3); }
  .dk-room-side i:first-of-type { background: rgb(var(--pine-ink-rgb) / .7); }
  .dk-room-main { padding: 22px; gap: 14px; }
  .dk-room-hero { padding: 18px 22px; border-radius: 14px; }
  .dk-room-hero small { font-size: 10px; }
  .dk-room-hero strong { font-size: 40px; margin-top: 6px; }
  .dk-room-add { gap: 8px; }
  .dk-room-add span { padding: 8px 12px; font-size: 12px; border-radius: 8px; }
  .dk-room-cols { gap: 14px; }
  .dk-room-plans { gap: 10px; }
  .dk-mini-card { padding: 12px 14px; border-radius: 10px; }
  .dk-mini-card b { font-size: 18px; }
  .dk-mini-card span { font-size: 11px; margin-top: 6px; }
  .dk-room-people { padding: 12px 14px; border-radius: 10px; }
  .dk-room-people p { font-size: 10px; margin-bottom: 8px; }
  .dk-room-people div { gap: 6px; }
  .dk-room-people .dk-chip { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 0 0 2px var(--card); }
  .dk-room-people .dk-chip.is-you { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--gilt); }
}
@media (min-width: 900px) and (max-height: 760px) {
  .dk-q { font-size: 36px; }
  .dk-facts li { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .deck, .dk-card, .dk-chip, .dk-mini-card, .dk-ticket, .dk-bar, .dk-room-stk, .dk-steam path, .dk-seg i,
  .deck.is-leaving .dk-stage, .deck.is-leaving .dk-top, .deck.is-leaving .dk-foot, .deck.is-leaving .dk-exit-mark { animation: none !important; transition: none !important; }
}

/* ---------- Oct 5 fixes ---------- */
/* The sideways scroll on Now (Oct 4 call, 03:59): on the desktop sheet the
   workspace is the scroller, and overflow-y:auto quietly made overflow-x
   auto too. Anything that slid in for a moment (a card animating, a long
   day chip) let a trackpad pan the page left and right. One axis only. */
.workspace { overflow-x: hidden; overscroll-behavior-x: none; }
html, body { overscroll-behavior-x: none; }

/* The chat (Oct 4 call, 06:19: "it just awkwardly overlays the entire
   page"). Phone: a sheet docked to the bottom edge with a handle; the
   page stays readable above it. Desk: a drawer down the right edge of
   the window; the page beside it stays bright. */
@media (max-width: 1159px) {
  body.chatting #bar {
    left: 0; right: 0; bottom: 0;
    max-height: 72dvh;
    padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    border-width: 1px 0 0;
    box-shadow: 0 -18px 50px rgba(23, 23, 23, 0.32);
  }
  body.chatting #bar::before {
    content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: rgb(var(--pine-ink-rgb) / 0.3);
  }
  body.chatting .bar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
  body.chatting #stack { max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  #scrim, body.chatting #scrim { background: rgba(23, 23, 23, 0.2); }
  body.kb #bar { border-radius: 0; }
}
@media (min-width: 1160px) {
  body.chatting #bar {
    top: 22px; bottom: 22px; right: 22px;
    width: 400px;
    border-radius: 0 22px 22px 0;
    border-width: 0 0 0 1px;
    box-shadow: -18px 0 48px rgba(23, 23, 23, 0.28);
    padding: 18px 18px 18px;
  }
  body.chatting #stack { max-height: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; justify-content: flex-end; }
  body.chatting #scrim { background: rgba(23, 23, 23, 0.1); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* the plain way in: a Chat button beside the ? (the seal's double tap
   still works; nobody had to discover it to use this) */
.chat-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink);
  font: 600 13px/1 var(--sans); cursor: pointer;
}
.chat-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) { .chat-btn:hover { border-color: var(--pine); } }

/* the door into the day planner, in Plans */
.day-view-door {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; width: 100%;
  margin: 0 0 14px; padding: 14px 18px; text-align: left; cursor: pointer;
  border: 1px solid rgb(var(--pine-rgb, 44 58 42) / 0.25); border-radius: 14px;
  background: var(--card); color: var(--ink); font: 400 14px/1.4 var(--sans);
}
.day-view-door strong { font: 400 22px/1.1 var(--serif); }
.day-view-door span { color: var(--muted); }
.day-view-door::after { content: "\2192"; margin-left: auto; font-size: 18px; color: var(--pine, #2c3a2a); }
@media (hover: hover) { .day-view-door:hover { border-color: var(--pine, #2c3a2a); } }

/* add from home */
.quick-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.quick-add-label { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.quick-add button {
  min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer;
}
.quick-add button::before { content: "+"; margin-right: 6px; color: var(--pine, #2c3a2a); font-weight: 400; }
@media (hover: hover) { .quick-add button:hover { border-color: var(--pine, #2c3a2a); } }
@media (min-width: 1160px) {
  #view-week.is-active {
    grid-template-areas:
      "greet  greet"
      "quick  quick"
      "banner banner"
      "tips   tips"
      "seen   seen"
      "strip  strip"
      "head   ask"
      "lead   ask"
      "stats  ask"
      "tail   tail"
      "notes  notes"
      "fnotes fnotes";
  }
  #view-week .quick-add { grid-area: quick; }
}

/* ---------- the tour ----------
   Oct 5 design review (Mike: "not differentiating … make the background
   darker … clunky"). What good walkthroughs do, and this now does: one
   screen, five steps; the room goes properly dark (0.78) so the lit thing
   is the only bright thing; the lit thing gets a gold ring that pulses
   once per step; the caption points at it with an arrow and sits on the
   side with room; the light glides between targets instead of jumping. */
.atour { position: fixed; inset: 0; z-index: 330; }
.atour[hidden] { display: none; }
.atour.is-open { background: rgba(10, 14, 10, 0.78); }
.atour-spot {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(10, 14, 10, 0.78), 0 0 0 2px #e4cd8e, 0 0 0 7px rgba(228, 205, 142, 0.22);
  transition: left .2s ease-out, top .2s ease-out, width .2s ease-out, height .2s ease-out;
}
.atour-spot.is-pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #e4cd8e;
  animation: atour-pulse 900ms ease-out 1 forwards;
}
@keyframes atour-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.atour-card {
  position: fixed; padding: 18px 20px 14px; border-radius: 16px;
  background: var(--card, #fffefa); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transition: left .2s ease-out, top .2s ease-out;
}
.atour-arrow { position: absolute; width: 14px; height: 14px; background: var(--card, #fffefa); transform: rotate(45deg); }
.atour-arrow[hidden] { display: none; }
.atour-card[data-side="below"] .atour-arrow { top: -7px; }
.atour-card[data-side="above"] .atour-arrow { bottom: -7px; }
.atour-step { margin: 0 0 6px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber, #94660f); font-variant-numeric: tabular-nums; }
.atour-title { margin: 0 0 6px; font: 400 30px/1.05 var(--serif); text-wrap: balance; }
.atour-body { margin: 0 0 16px; font-size: 15px; line-height: 1.5; text-wrap: pretty; color: var(--ink); }
.atour-acts { display: flex; align-items: center; gap: 8px; }
.atour-dots { display: flex; gap: 5px; margin-right: auto; margin-left: 4px; }
.atour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line, #ddd6c6); transition: background-color .15s ease-out, transform .15s ease-out; }
.atour-dots i.on { background: var(--pine, #2c3a2a); transform: scale(1.25); }
.atour-skip, .atour-back { border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--sans); padding: 12px 6px; cursor: pointer; }
.atour-skip { text-decoration: underline; text-underline-offset: 3px; }
.atour-next { min-width: 84px; border: 0; border-radius: 10px; background: var(--pine, #2c3a2a); color: var(--pine-ink, #f2efe6); font: 600 15px/1 var(--sans); padding: 13px 18px; cursor: pointer; transition: transform .12s ease-out; }
.atour-next:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .atour-spot, .atour-card, .atour-dots i { transition: none; } .atour-spot.is-pulse::after { animation: none; } }
@media (min-width: 1160px) {
  #view-plans.is-active {
    grid-template-rows: auto auto auto auto auto auto auto 1fr;
    grid-template-areas:
      "slot    slot"
      "eyebrow eyebrow"
      "title   title"
      "story   form"
      "status  form"
      "door    form"
      "strip   form"
      "list    form"
      "hint    form";
  }
  #view-plans .day-view-door { grid-area: door; }
}
.me-board-btn { display: block; margin: 0 0 14px; padding: 0; border: 0; background: none; color: var(--pine, #2c3a2a); font: 600 14px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.seal-hint { display: none !important; } /* the Chat button says it plainly now */

/* first run: the room is built behind the deck and not shown until they come through */
body.first-run .app-shell, body.first-run .tab-bar, body.first-run #barSummon { visibility: hidden; }
.atour.is-first .atour-spot, .atour.is-first .atour-card { transition: none; }

/* light or dark, for any palette (Oct 5) */
.dk-mode, .look-mode { display: inline-flex; gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dk-mode { margin-top: 14px; }
.dk-mode button { min-width: 84px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: background-color 140ms ease-out, color 140ms ease-out; }
.dk-mode button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.look-mode { padding: 2px; }
.look-mode .look-chip { border: 0; }

/* dark mode: anything that sat white-on-leaf flips to the ground colour
   (leaf is light in every dark palette) */
html[data-dark] .pl-card.is-mine, html[data-dark] .pl-card.is-mine .pl-card-time, html[data-dark] .pl-card.is-mine .pl-card-who { color: var(--paper); }
html[data-dark] .pl-join { color: var(--paper); }

/* dark mode: the bits drawn in --pine (near-black in dark) take the leaf instead */
html[data-dark] .quick-add button::before,
html[data-dark] .day-view-door::after,
html[data-dark] .me-board-btn { color: var(--leaf); }
html[data-dark] .aspiration { background: var(--card); color: var(--ink); border-color: var(--line); }
/* dark mode: the deck's big buttons go gold so they read as the way forward */
html[data-dark] .dk-go, html[data-dark] .dk-enter { background: var(--gilt); color: #1b1a14; }
html[data-dark] .dk-enter::before { box-shadow: inset 0 0 0 4px var(--gilt), inset 0 0 0 10px currentColor; }
html[data-dark] .board-next, html[data-dark] .board .is-primary { background: var(--gilt); color: #1b1a14; }
