/*
  Sticky Wall — styles on RTR Design System tokens (Aug 2026).
  Rules that matter here: subtle material shading only; ≤2 colours per component; WCAG AA text;
  8px grid; card radius 16, medium 8, small 4; shadows tinted deep plum.
  See docs/DESIGN_SYSTEM.md before changing tokens.
*/

:root {
  /* Primary */
  --deep-plum: #2E010D;
  --plum: #660227;
  --ice: #D1DBFF;
  --sand: #FBFBF5;
  /* Secondary */
  --dawn: #FFE9F5;
  --cornflower: #5C6EF6;
  --poppy: #FF3E3E;
  /* Tertiary (note colours + accents) */
  --raspberry: #961B49;
  --peony: #FFB8DF;
  --apricot: #FFAC5E;
  --lilac: #A9B3FF;
  --asparagus: #93A96B;
  /* Neutrals */
  --n900: #707177;
  --n800: #8D8E95;
  --n600: #A9A9AE;
  --n400: #C4C4C8;
  --n200: #DDDEE2;
  --n100: #F1F1F1;
  --n50: #F8F8F8;
  --white: #FFFFFF;

  /* Roles */
  --bg: var(--sand);
  --surface: var(--white);
  --text: var(--deep-plum);
  --text-muted: var(--n900);
  --border: var(--n400);
  --hairline: var(--n200);
  --primary: var(--plum);
  --on-primary: var(--sand);
  --focus: var(--cornflower);
  --danger: var(--raspberry);

  --font-display: "Martina Plantijn", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-extended: "GT America Extended", "GT America", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "GT America", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --r-lg: 16px;
  --r-md: 8px;
  --r-sm: 4px;
  --shadow-card: 0 2px 3px rgba(46, 1, 13, 0.10), 1px 7px 10px -6px rgba(46, 1, 13, 0.24);
  --shadow-overlay: 0 10px 32px rgba(46, 1, 13, 0.2);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --lane-width: 304px;

  color-scheme: light;
}

/* ───────────────────────────── Base ───────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-2); top: -48px; z-index: 50;
  background: var(--deep-plum); color: var(--sand); padding: var(--space-1) var(--space-2);
  border-radius: var(--r-md); text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.noscript { padding: var(--space-4); }

.muted { color: var(--text-muted); }
.help { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.empty { color: var(--text-muted); padding: var(--space-3) 0; }
.mono-code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* ───────────────────────────── Type ───────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--deep-plum);
  text-wrap: balance;
}
.display--hero { font-size: clamp(48px, 8vw, 104px); max-width: 9ch; }
.display--page { font-size: clamp(36px, 5vw, 56px); }
.display--wall { font-size: clamp(34px, 4.5vw, 54px); max-width: 22ch; }

.lede { font-size: 19px; line-height: 1.5; max-width: 34ch; color: var(--deep-plum); }

.label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

/* ──────────────────────────── Controls ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 40px; padding: 0 var(--space-2);
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(46, 1, 13, 0.03);
  cursor: pointer; background: transparent;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 14px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover:not(:disabled) { background: var(--deep-plum); }
.btn--secondary { background: var(--surface); color: var(--deep-plum); border-color: var(--deep-plum); }
.btn--secondary:hover:not(:disabled) { background-color: var(--dawn); }
.btn--ghost { color: var(--deep-plum); border-color: var(--hairline); background: transparent; }
.btn--ghost:hover:not(:disabled) { border-color: var(--deep-plum); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn--danger:hover:not(:disabled) { background: var(--danger); color: var(--white); }

.link-btn {
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--deep-plum); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn--danger { color: var(--raspberry); }

.input {
  display: block; width: 100%;
  min-height: 40px; padding: var(--space-1) 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 15px; line-height: 1.4;
}
.input:focus { border-color: var(--deep-plum); outline: 2px solid var(--focus); outline-offset: 1px; }
textarea.input { resize: vertical; }
select.input { appearance: auto; }
.input--code { text-transform: uppercase; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; max-width: 12ch; }
.input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

.field { margin-bottom: var(--space-2); }

.check { display: flex; gap: 12px; align-items: flex-start; margin: var(--space-2) 0; cursor: pointer; font-size: 15px; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--plum); }
.check--inline { margin: 0; align-items: center; font-size: 13px; }
.check--inline input { margin: 0; }

.chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; background: var(--n100); color: var(--deep-plum);
}
.chip--open { background-color: var(--ice); }
.chip--draft { background-color: var(--dawn); }
.chip--locked { background: var(--n200); }
.chip--archived { background: var(--n100); color: var(--n900); }

.notice {
  margin-top: var(--space-2); padding: 12px var(--space-2); border-radius: var(--r-md);
  background: var(--n100); font-size: 14px; max-width: 72ch;
}
.notice--error { background: var(--dawn); color: var(--raspberry); }

/* ───────────────────────────── Brand / top bar ───────────────────────────── */

.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-extended); font-weight: 500; font-size: 15px; letter-spacing: 0.01em;
}
.brand__mark { width: 28px; height: 28px; }
.brand__note { fill: var(--peony); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  flex-wrap: wrap; padding: var(--space-2) 0;
}
.topbar__actions { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }

.who { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 14px; color: var(--text-muted); }
.who__name { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); padding-right: var(--space-1); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--n600); }
.live--live .live__dot { background-color: var(--asparagus); }
.live--reconnecting .live__dot { background-color: var(--apricot); }

/* ───────────────────────────── Landing ───────────────────────────── */

.landing { max-width: 1200px; margin: 0 auto; padding: var(--space-3) var(--space-3) var(--space-6); }
.landing__body {
  display: grid; gap: var(--space-6); align-items: center;
  grid-template-columns: 1fr; padding-top: clamp(32px, 8vh, 96px);
}
.landing__copy { display: grid; gap: var(--space-3); justify-items: start; }
.landing__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.landing__notes { position: relative; min-height: 420px; }
.landing__notes .note--sample { position: absolute; width: min(260px, 70%); }
.landing__notes .note--sample:nth-child(1) { top: 0; left: 4%; }
.landing__notes .note--sample:nth-child(2) { top: 112px; left: 34%; }
.landing__notes .note--sample:nth-child(3) { top: 228px; left: 10%; }
.note--sample .note__text { font-size: 19px; line-height: 1.35; }

@media (min-width: 880px) {
  .landing__body { grid-template-columns: 1.15fr 1fr; }
}

.join { display: grid; gap: 6px; margin-top: var(--space-2); width: 100%; max-width: 420px; }
.join__row { display: flex; gap: var(--space-1); align-items: stretch; }
.join__row .input { flex: 1; min-width: 0; }

/* ───────────────────────────── Home ───────────────────────────── */

.home { max-width: 1200px; margin: 0 auto; padding: var(--space-2) var(--space-3) var(--space-6); }
.home > .display { margin: var(--space-4) 0 var(--space-3); }
body > #app > .topbar { max-width: 1200px; margin: 0 auto; padding-left: var(--space-3); padding-right: var(--space-3); }
.home__grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: start; }
.home__side { display: grid; gap: var(--space-3); }
@media (min-width: 960px) { .home__grid { grid-template-columns: 1fr 400px; } }

.wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.wlist__item {
  display: grid; gap: 6px; padding: var(--space-2) var(--space-3);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  text-decoration: none;
}
.wlist__item:hover { border-color: var(--plum); box-shadow: 0 3px 12px rgba(46, 1, 13, 0.06); }
.wlist__title { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.wlist__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-muted); }

.panel {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: var(--space-3);
}
.panel__title { font-family: var(--font-extended); font-weight: 500; font-size: 17px; margin-bottom: var(--space-2); }

/* ───────────────────────────── Join / blocked ───────────────────────────── */

.blocked { max-width: 560px; margin: 0 auto; padding: var(--space-3) var(--space-3) var(--space-6); display: grid; gap: var(--space-2); justify-items: start; }
.blocked > .brand { margin-bottom: var(--space-4); }
.blocked > .display { margin-bottom: var(--space-1); }
.join-guest { display: grid; gap: 6px; width: 100%; }
.or { color: var(--text-muted); font-size: 14px; }

/* ───────────────────────────── Wall ───────────────────────────── */

.wall { max-width: 1680px; margin: 0 auto; padding: 0 var(--space-3) var(--space-6); }
.wall-head__title { padding: var(--space-3) 0 var(--space-2); display: grid; gap: 12px; }
.wall-head__desc { max-width: 72ch; color: var(--deep-plum); font-size: 17px; }

.tabs {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--hairline);
  margin: 0 calc(-1 * var(--space-3)); padding: 0 var(--space-3);
}
.tabs__list { display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: thin; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-1);
  border: 0; background: none; cursor: pointer;
  padding: var(--space-2) 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: 16px; font-weight: 500; color: var(--text-muted);
}
.tab:hover { color: var(--deep-plum); }
.tab.is-active { color: var(--deep-plum); border-bottom-color: var(--plum); }
.tab.is-hidden-board > span:first-child { text-decoration: underline dotted var(--n600); text-underline-offset: 4px; }
.tab__flag { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: var(--r-sm); background: var(--n100); color: var(--n900); }
.tab--add { color: var(--plum); }

.board { padding-top: var(--space-3); }
.board--empty { display: grid; gap: var(--space-2); justify-items: start; }
.board__desc { max-width: 72ch; font-size: 17px; margin-bottom: var(--space-2); }

.banner {
  display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--dawn); border: 1px solid rgba(102, 2, 39, 0.06); border-radius: var(--r-md); padding: 12px var(--space-2);
  margin-bottom: var(--space-3); max-width: 960px;
}
.banner__items { display: grid; gap: 4px; font-size: 14px; line-height: 1.45; max-width: 80ch; }

/* Lanes scroll sideways on wide boards, stack on phones. */
.lanes {
  display: grid; gap: var(--space-2);
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 16px;
  background: radial-gradient(circle, rgba(46, 1, 13, 0.065) 0.7px, transparent 0.9px) 8px 8px / 20px 20px, #fffefa;
  border: 1px solid #c9c9c5;
  border-top: 5px solid #deded9;
  border-radius: 12px;
  box-shadow: inset 0 0 0 3px #f2f2ee, 0 4px 16px -10px rgba(46, 1, 13, 0.24);
}
@media (min-width: 720px) {
  .lanes {
    grid-auto-flow: column;
    grid-auto-columns: minmax(var(--lane-width), 1fr);
    grid-template-columns: none;
    overflow-x: auto; padding-bottom: 20px;
    scroll-snap-type: x proximity;
  }
  .lanes > .lane { scroll-snap-align: start; }
  .lanes--n1 { grid-auto-columns: minmax(var(--lane-width), 720px); }
}

.lane {
  background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(46, 1, 13, 0.09); border-radius: 8px;
  padding: var(--space-2); display: grid; gap: 12px; align-content: start;
  min-height: 360px; min-width: 0;
}
.lane.is-drop-target { border-color: var(--plum); outline: 2px dashed var(--plum); outline-offset: -6px; }
.lane__head { display: grid; gap: 6px; padding: 2px 0 14px; border-bottom: 2px solid rgba(46, 1, 13, 0.14); }
.lane__title { font-family: var(--font-extended); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; }
.lane__prompt { font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.lane__count { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lane__notes {
  display: grid; gap: 20px; padding: 6px 3px 12px; align-items: start;
  /* Wide lanes (one or two per board) lay notes out like a wall, not a list. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.lane__notes > .lane__empty, .lane__notes > .lane__hidden { grid-column: 1 / -1; }
.lane__empty, .lane__hidden { font-size: 14px; color: var(--text-muted); }
.lane__hidden { padding: 12px; border: 1px dashed var(--border); border-radius: var(--r-md); }

.lane--add {
  min-height: 160px; border: 1px dashed var(--border); background: transparent; cursor: pointer;
  display: grid; place-items: center; align-content: center; font-size: 15px; font-weight: 500; color: var(--plum);
}
.lane--add:hover { border-color: var(--plum); }
.lane__edit .field { margin-bottom: 12px; }

/* Composer */
.composer {
  display: grid; gap: var(--space-1);
  border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(46, 1, 13, 0.03);
}
.composer:focus-within { border-color: var(--plum); box-shadow: 0 0 0 2px rgba(102, 2, 39, 0.07); }
.composer__input {
  border: 0; resize: none; padding: 4px; min-height: 48px; width: 100%;
  background: transparent; font-size: 15px; line-height: 1.4;
}
.composer__input:focus { outline: none; }
.composer__row { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.composer__add { margin-left: auto; }

.swatches { display: inline-flex; gap: 4px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(46, 1, 13, 0.25);
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--deep-plum); }

/* ───────────────────────────── Notes ───────────────────────────── */

.note {
  --tilt: 0deg;
  position: relative;
  background: var(--note-bg, var(--dawn)); color: var(--deep-plum);
  border-radius: 2px 3px 7px 2px; padding: 22px 16px 10px;
  background-image: linear-gradient(180deg, rgba(46, 1, 13, 0.055) 0, rgba(46, 1, 13, 0.025) 22px, transparent 23px, rgba(255, 255, 255, 0.14) 85%, rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(46, 1, 13, 0.035);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt));
  min-height: 154px; display: grid; align-content: space-between; gap: var(--space-1);
}
.note__text { font-size: 16px; line-height: 1.5; letter-spacing: 0.005em; white-space: pre-wrap; overflow-wrap: anywhere; }
.note__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; min-height: 32px; margin-top: 8px; }
.note__foot > .note__by { flex: 1 1 70px; min-width: 0; overflow-wrap: anywhere; }
.note::after { content: ''; position: absolute; width: 22px; height: 7px; right: 3px; bottom: -3px; border-radius: 50%; box-shadow: 0 4px 5px rgba(46, 1, 13, 0.1); transform: rotate(-7deg); z-index: -1; pointer-events: none; }
.note__by { font-weight: 500; }
.note__mine {
  font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(46, 1, 13, 0.10);
}
.note__actions { margin-left: auto; display: inline-flex; gap: 2px; align-items: center; }
.note[draggable="true"] { cursor: grab; }
.note.is-dragging { opacity: 0.5; cursor: grabbing; }
.note-action {
  position: relative; display: inline-flex; justify-content: center; align-items: center;
  flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px;
  color: var(--deep-plum); background: transparent; cursor: pointer;
}
.note-action:hover, .note-action:focus-within { background: rgba(255, 255, 255, 0.55); }
.note-action--danger:hover { color: var(--raspberry); }
.icon { display: block; flex: none; pointer-events: none; }
/* Keep the native select for keyboard and touch: only its visual face is replaced. */
.move { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.note-action--move:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .note__actions { opacity: 0.62; }
  .note:hover .note__actions, .note:focus-within .note__actions { opacity: 1; }
}
@media (pointer: coarse) {
  .note-action { width: 44px; height: 44px; flex-basis: 44px; }
  .swatches { gap: 6px; }
  .swatch { width: 28px; height: 28px; }
}

.note-edit { display: grid; gap: var(--space-1); }
.note-edit__input {
  width: 100%; border: 1px solid rgba(46, 1, 13, 0.35); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.7); padding: 6px; font-size: 15px; line-height: 1.42; resize: none;
}
.note-edit__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note-edit__row .btn { margin-left: auto; }

/* Note colours — every one passes AA with deep plum text. */
.note--dawn, .swatch--dawn { --note-bg: var(--dawn); background-color: var(--dawn); }
.note--ice, .swatch--ice { --note-bg: var(--ice); background-color: var(--ice); }
.note--peony, .swatch--peony { --note-bg: var(--peony); background-color: var(--peony); }
.note--apricot, .swatch--apricot { --note-bg: var(--apricot); background-color: var(--apricot); }
.note--lilac, .swatch--lilac { --note-bg: var(--lilac); background-color: var(--lilac); }
.note--asparagus, .swatch--asparagus { --note-bg: var(--asparagus); background-color: var(--asparagus); }

@media (prefers-reduced-motion: reduce) {
  .note { transform: none; }
}

/* ───────────────────────────── Facilitator editor ───────────────────────────── */

.editor {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); max-width: 1120px;
}
.editor__grid { display: grid; gap: 0 var(--space-3); grid-template-columns: 1fr; }
.editor__row { display: grid; gap: 0 var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 840px) {
  .editor__grid { grid-template-columns: 1fr 2fr; }
  .editor__row { grid-template-columns: repeat(3, 1fr); }
}
.editor__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.editor__spacer { flex: 1; }

/* ───────────────────────────── Drawer ───────────────────────────── */

.scrim { position: fixed; inset: 0; background: rgba(46, 1, 13, 0.32); z-index: 30; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(440px, 100vw); background: var(--surface); box-shadow: var(--shadow-overlay);
  display: grid; grid-template-rows: auto 1fr;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--hairline);
}
.drawer__title { font-family: var(--font-extended); font-weight: 500; font-size: 18px; }
.drawer__body { overflow-y: auto; padding: 0 var(--space-3) var(--space-4); }
.drawer__section { padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
.drawer__section:last-child { border-bottom: 0; }
.drawer__heading { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.drawer__section--danger .drawer__heading { color: var(--raspberry); }
.share-code {
  font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 1;
  letter-spacing: 0.12em; margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.fac-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; }
.fac-list li { display: flex; justify-content: space-between; gap: var(--space-1); align-items: center; }
.export-links { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ───────────────────────────── Toast ───────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--deep-plum); color: var(--sand);
  padding: 10px var(--space-2); border-radius: var(--r-md); font-size: 14px; max-width: min(560px, calc(100vw - 32px));
  box-shadow: var(--shadow-overlay);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: var(--raspberry); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ───────────────────────────── Small screens ───────────────────────────── */

@media (max-width: 719px) {
  .wall { padding: 0 var(--space-2) var(--space-6); }
  .tabs { margin: 0 calc(-1 * var(--space-2)); padding: 0 var(--space-2); }
  .landing, .home { padding-left: var(--space-2); padding-right: var(--space-2); }
  .landing__notes { min-height: 400px; }
  .lane { min-height: 0; }
  .lanes { padding: 10px; gap: 12px; }
}
