/*
 * PinUpp — a networked community bulletin board. "pin it. post it. share it."
 * Hand-written CSS (Propshaft serves this file directly).
 *
 * Look: "Pinupp Design System v1" (claude.ai/design, mirrored in
 * docs/design-system.md) — the Nightboard: a matte, near-black warm room with
 * the kraft cork board and paper flyers lit up inside it. Chrome is technical
 * (Hanken Grotesk + Space Mono labels); the content is analog and warm
 * (Space Grotesk headlines, real paper). One brand accent, pin coral: it
 * GLOWS on the dark room and deepens on paper (see the paper-context switch
 * below :root). Category hues color the flyer accents.
 */

/* ---- self-hosted type (Propshaft resolves these by logical name) ---- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/SpaceGrotesk-var-dfda626c.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/HankenGrotesk-var-62d0893d.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/SpaceMono-400-6d6f4004.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/SpaceMono-700-47df4379.woff2") format("woff2"); }

:root {
  /* type */
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.72rem;
  --fs-sm: 0.84rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.95rem;
  --fs-2xl: 2.7rem;

  /* the dark room (Nightboard chrome) */
  --room: #0e0b09;
  --room-2: #17130f;
  --topbar: #0b0a09;
  --line: rgba(245, 239, 233, 0.1);
  --on-dark: #f5efe9;
  --on-dark-dim: #b6ada4;
  --on-dark-faint: #8a7d70;

  /* warm materials (the lit objects) */
  --cork: #c9a978;
  --cork-dark: #b08951;
  --cork-edge: #5c3a26;
  --paper: #fbf6ec;
  --paper-2: #f1e7d3;
  --ink: #2c2118;
  --muted: #6b563c;
  --frame: #6b4526;

  /* one brand accent: pin coral. On the dark room it glows (#EF5A44); paper
     surfaces flip these three vars to the deeper light-surface pin (#D8452C)
     in the paper-context switch below. Compose alpha via rgba(var(--accent-rgb), x). */
  --accent: #ef5a44;
  --accent-rgb: 239, 90, 68;
  --accent-dark: #c2311f;
  --accent-contrast: #160c09; /* text on a coral button: near-black on dark… */
  --accent-soft: rgba(239, 90, 68, 0.14);
  --glow-pin: 0 0 24px rgba(239, 90, 68, 0.45);
  --pin: #d8452c;
  --ok: #2fa968;
  --ok-soft: rgba(47, 169, 104, 0.16);

  /* six category pin hues (dark-room values; posters use the paper tints in
     the accent-- classes further down) */
  --cat-photos: #ef5a44;
  --cat-flyers: #f5a524;
  --cat-notes: #ffd24c;
  --cat-events: #46d08a;
  --cat-polls: #a98bff;
  --cat-links: #5aa9ff;

  /* elevation (on dark) + warm shadow (paper on cork) */
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-warm: rgba(38, 22, 6, 0.42);
  --e1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --e2: 0 6px 18px rgba(0, 0, 0, 0.42);
  --e3: 0 16px 40px rgba(0, 0, 0, 0.5);
  --card: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 34px rgba(0, 0, 0, 0.45);

  /* shape + space (12 inputs/buttons · 16 cards · 22 panels) */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;

  color-scheme: dark;
  font-synthesis: none;
}

/* ---- paper-context switch ----------------------------------------------
   Cream/paper surfaces get the deeper pin so coral keeps its contrast.
   New paper-backed containers should join this list (docs/design-system.md). */
.usermenu__pop, .lightbox__content, .studio-page, .form-page, .compose,
.compose-panel, .modal__box, .queue__item, .feed__item, .members,
.board-card, .flyer, .plan-row {
  --accent: #d8452c;
  --accent-rgb: 216, 69, 44;
  --accent-contrast: #fbf6ec; /* …and cream on paper */
  --accent-soft: rgba(216, 69, 44, 0.12);
  --glow-pin: 0 6px 14px -4px rgba(216, 69, 44, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--on-dark);
  background: var(--room);
  background-image: radial-gradient(1100px 620px at 50% -8%, #1c1611, var(--room) 70%);
  background-attachment: fixed;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

/* small technical labels, MKBHD-style */
.kicker, .breadcrumbs, .board-head__meta, .board-toolbar__level, .board-toolbar__hint,
.floor__label, .flyer__hint, .floor__flyer-hint, .compose-panel__sub, .compose__or {
  font-family: var(--font-mono);
}

/* line-icons */
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }

/* In the shell the NATIVE title bar owns brand, title, and account — the web
   bar sheds those and keeps only the page's own tools (chips, join, the
   curator belt). Pages with no tools render no bar at all (see the layout). */
.native-app .appbar__home,
.native-app .appbar__account,
.native-app .appbar__crumbs,
.native-app .appbar__name { display: none; }
.native-app .appbar { padding: 0.45rem 0.8rem; }

/* ---- the app bar: ONE row — brand/home · board context+management · account ---- */
.appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 1.1rem;
  background: var(--topbar); color: var(--on-dark);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
  -webkit-backdrop-filter: saturate(1.1); backdrop-filter: saturate(1.1);
}
.appbar__lead { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.appbar__home { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--accent); text-decoration: none; flex: none; }
.appbar__home:hover { filter: brightness(1.12); }
.appbar__home .ico { width: 1.55rem; height: 1.55rem; }
.appbar__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--on-dark); letter-spacing: -0.02em; text-transform: lowercase; }
/* a hairline between the mark and the board context */
.appbar__context { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.appbar__context:not(:empty)::before { content: ""; width: 1px; height: 1.4rem; background: var(--line); margin-right: 0.25rem; flex: none; }
.appbar__crumbs { font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-dim); white-space: nowrap; flex: none; }
.appbar__crumbs a { color: var(--on-dark-dim); text-decoration: none; }
.appbar__crumbs a:hover { color: var(--on-dark); }
.appbar__name { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.2; color: var(--on-dark); margin: 0; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.appbar__trail { display: flex; align-items: center; gap: 0.45rem; flex: none; }
.appbar__actions { display: flex; align-items: center; gap: 0.3rem; }
.appbar__actions:not(:empty) { padding-right: 0.6rem; border-right: 1px solid var(--line); margin-right: 0.15rem; }
.appbar__account { display: flex; align-items: center; gap: 0.3rem; }

/* one quiet line under everything, so a page never just stops */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem;
  padding: 1.6rem 1rem 2rem; margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-dark-dim);
}
.site-footer a { color: var(--on-dark-dim); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__sep { opacity: 0.5; }

/* account avatar + dropdown (no JS — a <details>) */
.usermenu { position: relative; display: inline-flex; }
.usermenu__btn { list-style: none; cursor: pointer; display: inline-flex; }
.usermenu__btn::-webkit-details-marker { display: none; }
.usermenu__btn::marker { content: ""; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(180deg, #2c2218, #19130c); border: 1px solid var(--line); color: var(--on-dark); font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem; }
.usermenu__btn:hover .avatar { border-color: #46402f; }
.usermenu[open] .avatar { border-color: var(--accent); }
.usermenu__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200; min-width: 188px; background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); padding: 0.35rem; }
.usermenu__name { display: block; padding: 0.45rem 0.55rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid #ead9bb; margin-bottom: 0.25rem; }
.usermenu__name:hover { color: var(--accent-dark); }
.usermenu__item { display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left; padding: 0.45rem 0.55rem; border-radius: 7px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: none; cursor: pointer; }
.usermenu__item:hover { background: var(--accent-soft); color: var(--accent-dark); }
.usermenu__item .ico { width: 1em; height: 1em; opacity: 0.8; }
.usermenu form.button_to { display: block; width: 100%; }
/* wayfinding lives on the bar itself until a phone folds it in here */
.usermenu__wayfind { display: none; }
@media (max-width: 640px) {
  .appbar__account:has(.usermenu) > .btn--grows { display: none; }
  .usermenu__wayfind { display: block; border-bottom: 1px solid #ead9bb; margin-bottom: 0.25rem; padding-bottom: 0.25rem; }
}

/* ---- native app chrome: inside the Hotwire Native iOS shell, native tabs
   do the wayfinding, so the web copies of it go quiet. The appbar stays
   (board context + curator tools have no native equivalent) and so does the
   usermenu (wallet/profile/sign-out have no tab of their own) — just its
   wayfind fold-in comes down with the rest. ---- */
.native-app .site-footer,
.native-app .appbar__home,
.native-app .appbar__account > .btn--grows,
.native-app .usermenu__wayfind { display: none; }

/* ---- flashes: a slip of paper pinned under the bar, not an app strip ---- */
.flashes { padding: 0.7rem 1.1rem 0; display: grid; gap: 0.5rem; justify-items: center; }
.flash {
  position: relative; max-width: min(92%, 46rem);
  padding: 0.55rem 1.15rem; font-weight: 600; font-size: 0.92rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 18px var(--shadow-warm);
  transform: rotate(-0.4deg);
}
.flash::before {
  content: ""; position: absolute; top: -5px; left: 50%; margin-left: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), var(--brd-pin, var(--pin)) 55%, rgba(0, 0, 0, 0.55));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.flash--notice { border-top: 3px solid var(--ok); }
.flash--alert { border-top: 3px solid var(--accent); }

/* One slim keep-your-board line for guest curators — app chrome, never on the cork. */
.guest-nudge {
  margin: 0 0 0.6rem; padding: 0.45rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--on-dark-dim);
  background: var(--room-2); border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.guest-nudge .ico { width: 1em; height: 1em; color: var(--pin); flex: none; }
.guest-nudge a { color: var(--on-dark); }

.main { padding: 1.2rem; max-width: 1180px; margin: 0 auto; }

/* ---- buttons: kraft-paper chips that read on dark OR on paper ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ede1c6, #e3d4b2);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--e1);
  transition: transform 0.08s ease, filter 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { filter: brightness(1.04); box-shadow: var(--e2); }
.btn:active { transform: translateY(1px); box-shadow: var(--e1); }
/* the signature move: the pin on a primary button stabs in when you commit */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn--primary .ico { transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .btn--primary:hover .ico { transform: translateY(1px) rotate(-12deg) scale(1.1); }
  .btn--primary:active .ico { transform: translateY(3px) rotate(-20deg) scale(0.92); }
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn .ico { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--accent); color: var(--accent-contrast, #fbf6ec); border-color: transparent; box-shadow: var(--glow-pin), var(--e1); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); filter: none; border-color: #3c352b; }
/* the join CTA — subtle on the dark chrome, warms toward the accent on hover */
/* join is a ghost button with an eager hover — same family, not a 4th finish */
.btn--join { background: transparent; color: var(--on-dark); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.btn--join:hover { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.45); color: #fff; filter: none; box-shadow: none; }
.btn--danger { background: linear-gradient(180deg, #c2392a, var(--accent-dark)); color: #fff; border-color: transparent; }
.btn--tiny { padding: 0.28rem 0.55rem; font-size: 0.78rem; border-radius: 7px; }
.btn--big { padding: 0.7rem 1.4rem; font-size: 1.05rem; }
form.button_to { display: inline; }

/* Quiet secondary actions on the dark room/topbar — no fill, just text/icon, so
   they recede and let the board be the hero. Used for board admin + topbar nav. */
.btn--quiet {
  background: none; border: 1px solid transparent; box-shadow: none;
  color: var(--on-dark-dim); font-weight: 600;
}
.btn--quiet:hover { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); filter: none; box-shadow: none; }
.btn--quiet:active { transform: translateY(1px); box-shadow: none; }
.btn--quiet .ico { opacity: 0.85; }

/* Icon-only quiet button (gear, share, wallet, bell, sign-out). */
.btn--icon {
  position: relative;
  background: none; border: 1px solid transparent; box-shadow: none;
  color: var(--on-dark-dim);
  padding: 0; width: 2.25rem; height: 2.25rem;
}
.btn--icon:hover { background: rgba(255, 255, 255, 0.07); color: var(--on-dark); filter: none; box-shadow: none; }
.btn--icon:active { transform: translateY(1px); box-shadow: none; }
.btn--icon .ico { width: 1.15rem; height: 1.15rem; }

/* appbar buttons that grow their word on a wide screen (icon-only on phones) */
.btn--grows .btn-label { display: none; font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.btn--grows-accent .ico { color: var(--accent); }
@media (min-width: 760px) {
  .btn--icon.btn--grows { width: auto; padding: 0 0.75rem 0 0.6rem; }
  .btn--grows .btn-label { display: inline; }
}
/* A board page straps a whole toolbelt to the bar — until the bar is truly
   wide, those tools keep their words to themselves (title tooltips remain).
   1500: the narrowest bar where every word AND a legible board name coexist. */
@media (max-width: 1499px) {
  .appbar:has(.appbar__actions:not(:empty)) .btn--grows .btn-label { display: none; }
  .appbar:has(.appbar__actions:not(:empty)) .btn--icon.btn--grows { width: 2.25rem; padding: 0; }
}
/* Between phone and full desk, the room goes to the board's name: the
   wordmark yields first (the pin still marks home), then the crumbs, then
   the mood chips — each stepping aside before it can crowd the tools. */
@media (max-width: 1023px) {
  .appbar__lead:has(.appbar__context:not(:empty)) .appbar__brand { display: none; }
  .appbar__crumbs { display: none; }
}
@media (max-width: 899px) {
  .appbar__context .chip-pop { display: none; }
}

/* thin divider between the labelled actions and the icon cluster */
.board-head__actions { align-items: center; gap: 0.3rem; }
.board-head__sep { width: 1px; align-self: stretch; min-height: 1.5rem; margin: 0 0.3rem; background: var(--line); }

/* count badge — muted inline (Queue) or a floating dot (bell) */
.count { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; line-height: 1; padding: 0.12rem 0.34rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.count--on { background: var(--accent); color: #fff; }
.count--float { position: absolute; top: 0.2rem; right: 0.1rem; padding: 0.05rem 0.26rem; box-shadow: 0 0 0 2px var(--topbar); }

/* zoom: one segmented capsule instead of four loose pills */
.zoomcap { display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem; }
.zoomcap__btn { border: none; background: none; color: var(--on-dark-dim); font: inherit; font-weight: 700; cursor: pointer; min-width: 2rem; height: 1.85rem; padding: 0 0.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: background 0.12s ease, color 0.12s ease; }
.zoomcap__btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.zoomcap__btn--text { font-weight: 600; font-size: 0.85rem; }
.zoomcap__level { font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-dark-dim); min-width: 3.1rem; text-align: center; }
.zoomcap__sep { width: 1px; height: 1.1rem; background: var(--line); margin: 0 0.15rem; }

/* ---- floating canvas controls: docked onto the board, like a real tool ---- */
.board-stage { position: relative; }
.board-stage .board-viewport { position: relative; z-index: 0; }

/* zoom capsule floats in the board's bottom-left corner */
.zoomcap--float {
  position: absolute; left: 14px; bottom: 14px; z-index: 30;
  background: rgba(18, 14, 9, 0.62); border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* fullscreen (native app only): the shell has gone landscape and dropped its
   own bars — hide the web chrome too so the cork runs edge to edge. The
   bridge--fullscreen controller flags <html> with .is-fullscreen. */
.zoomcap__btn--fullscreen .ico--exit { display: none; }
.is-fullscreen .zoomcap__btn--fullscreen .ico--enter { display: none; }
.is-fullscreen .zoomcap__btn--fullscreen .ico--exit { display: inline-block; }
.is-fullscreen .appbar,
.is-fullscreen .flashes,
.is-fullscreen .guest-nudge,
.is-fullscreen .hand-hint,
.is-fullscreen .report-line,
.is-fullscreen .floor { display: none; }
/* …and center the board in the freed-up glass: the main column takes the
   whole viewport, the scaler's auto margins split whatever slack remains
   (they collapse to 0 when the board overflows, so panning still works). */
.is-fullscreen .main { padding: 0; max-width: none; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.is-fullscreen .board-viewport { display: flex; }
.is-fullscreen .board-scaler { margin: auto; }
/* keep the controls out of the notch/home-indicator's corner in landscape */
.is-fullscreen .zoomcap--float { left: calc(14px + env(safe-area-inset-left)); bottom: calc(14px + env(safe-area-inset-bottom)); }

/* the primary action — a pin "pen" docked to the board's top-right corner */
.compose-dock { position: absolute; top: 14px; right: 14px; z-index: 31; }

/* joining stands in the compose pill's corner when you're not a member yet
   (shell only) — same clothes, same posture, different verb */
.join-dock { position: absolute; top: 14px; right: 14px; z-index: 31; }
.join-dock__pill {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  padding: 0.55rem 0.95rem; border-radius: 999px; border: none; font: inherit;
  background: var(--accent); color: var(--accent-contrast, #fbf6ec); font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.5), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.1s ease, filter 0.12s ease;
}
.join-dock__pill:hover { filter: brightness(1.05); color: var(--accent-contrast, #fbf6ec); }
.join-dock__pill:active { transform: translateY(1px); }
.join-dock__pill .ico { width: 1.05rem; height: 1.05rem; }
.compose-dock__pill {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-contrast, #fbf6ec); font-weight: 600;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.5), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.1s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.compose-dock__pill::-webkit-details-marker { display: none; }
.compose-dock__pill::marker { content: ""; }
.compose-dock__pill:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.55); }
.compose-dock__pill:active { transform: translateY(1px); }
.compose-dock__pill .ico { width: 1.05rem; height: 1.05rem; }
.compose-dock[open] .compose-dock__pill { box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.45); }

.compose-dock__panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 360px; max-width: 86vw; max-height: 68vh; overflow: auto;
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.58);
}
.compose-dock__panel .compose__form { padding: 1rem; }

@media (max-width: 640px) {
  .compose-dock { top: 10px; right: 10px; left: 10px; }
  .compose-dock__pill { width: max-content; margin-left: auto; }
  .compose-dock__panel { width: auto; left: 0; right: 0; max-width: none; }
  .zoomcap--float { left: 10px; bottom: 10px; }
}

/* ---- board page ---- */
.board-page { max-width: 100%; }
.board-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.board-head h1 { margin: 0.2rem 0; font-size: var(--fs-xl); color: var(--on-dark); }
.board-head__meta { margin: 0.2rem 0 0; color: var(--on-dark-dim); font-size: 0.8rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.board-head__meta .ico { width: 0.95em; height: 0.95em; opacity: 0.85; }
.board-head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumbs { font-size: 0.74rem; color: var(--on-dark-dim); letter-spacing: 0.01em; }
.breadcrumbs a { color: var(--on-dark-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--on-dark); }
.breadcrumbs__sep { margin: 0 0.35rem; opacity: 0.5; }
/* board title row: the name as a clean (non-serif) title + status/scope chips */
.board-head__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.board-head__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.board-head .board-head__name { font-family: var(--font-mono); font-weight: 700; font-size: 1.18rem; letter-spacing: 0; line-height: 1.2; color: var(--on-dark); margin: 0; }

/* a small, learnable property chip (board status / scope); hover for the why */
.chip {
  display: inline-flex; align-items: center; gap: 0.34rem; white-space: nowrap;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.2rem 0.58rem 0.2rem 0.46rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); color: var(--on-dark-dim);
  cursor: pointer;
}
.chip:hover { color: var(--on-dark); border-color: #3c352b; }
.chip .ico { width: 0.92em; height: 0.92em; opacity: 0.9; }

/* click-to-open explanation popover on a chip (no JS — a <details>) */
.chip-pop { position: relative; display: inline-flex; }
.chip-pop > summary { list-style: none; }
.chip-pop > summary::-webkit-details-marker { display: none; }
.chip-pop > summary::marker { content: ""; }
.chip-pop[open] > summary.chip { color: var(--on-dark); border-color: #46402f; background: rgba(255, 255, 255, 0.09); }
.chip-pop__body {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 120;
  width: max-content; max-width: 264px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 400; letter-spacing: 0; line-height: 1.45;
  padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* the board-mode note at the top of the compose dock (paper context) */
.compose__mode { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--muted); background: var(--paper-2); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; margin: 0 0 0.2rem; }
.compose__mode .ico { width: 1em; height: 1em; flex: none; }

/* ---- the room: zoom toolbar, the scrollable board viewport, then the floor ---- */
.room { position: relative; width: 100%; }
.board-toolbar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.board-toolbar__level { min-width: 3.4rem; text-align: center; font-weight: 700; color: var(--on-dark-dim); font-size: 0.8rem; }
.board-toolbar__hint { color: var(--on-dark-dim); font-size: 0.72rem; margin-left: 0.4rem; opacity: 0.8; }
/* the window onto the board; scrolls/pans, and its scrollbars match the scaled
   board exactly because .board-scaler is sized to the scaled footprint. */
/* touch-action keeps one-finger scrolling native but stops WebKit claiming
   two-finger pinch (and double-tap) inside the board — those reach the
   controller, which zooms the BOARD, not the page. */
.board-viewport { overflow: auto; max-width: 100%; -webkit-overflow-scrolling: touch; cursor: grab; border-radius: var(--radius); touch-action: pan-x pan-y; }
.board-viewport.is-panning { cursor: grabbing; }
/* clip to the scaled footprint — the board's transform shrinks it visually but
   not in layout, so without this the viewport keeps scrollbars for 1400×900. */
.board-scaler { position: relative; overflow: hidden; }

/* ---- the board: a fixed-size world, scaled by board_controller, glowing in
   the dark room. TEMPLATED (docs/design/board-templates/): frame, wall, floor,
   pin, and accent each read a --brd-* custom property set inline on .board-page
   by boards_helper#board_theme_style. The fallbacks here ARE Classic Cork —
   a cork board carries no inline vars and renders exactly as before. */
.board {
  position: relative;
  transform-origin: top left; /* board_controller sets transform: scale(...) */
  overflow: visible;
  z-index: 1; /* a flyer dragged down over the floor paints above it, not behind */
  border-radius: var(--radius);
  padding: var(--brd-frame-pad, 12px);
  background: var(--brd-frame-bg, var(--frame));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.board__wall {
  position: relative; width: 100%; height: 100%;
  border-radius: 6px;
  background-color: var(--brd-surface-color, var(--cork));
  background-image: var(--brd-surface-image,
    /* Classic Cork: soft vignette so the centre glows and the edges recede */
    radial-gradient(120% 120% at 50% 35%, rgba(255, 240, 210, 0.10), transparent 55%),
    /* fine cork fibre via fractal noise */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    /* scattered cork granules */
    radial-gradient(circle at 18% 28%, rgba(255, 250, 235, 0.16) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 68% 62%, rgba(86, 56, 20, 0.22) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 82%, rgba(255, 248, 230, 0.12) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 86% 22%, rgba(86, 56, 20, 0.20) 0 1.5px, transparent 2.5px));
  background-size: var(--brd-surface-size, auto, 180px 180px, 46px 46px, 58px 58px, 38px 38px, 52px 52px);
  background-blend-mode: var(--brd-surface-blend, overlay, multiply, normal, normal, normal, normal);
  box-shadow: var(--brd-surface-shadow,
    inset 0 0 90px rgba(60, 36, 8, 0.45),
    inset 0 2px 0 rgba(255, 235, 200, 0.18));
}

/* An empty wall explains itself: one paper note pinned to the cork. It sits
   under pointer events so panning and the compose dock still work. */
.board__empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.board__empty-note {
  position: relative; width: min(340px, 72%);
  background: var(--paper); color: var(--ink);
  padding: 1.3rem 1.4rem 1.1rem; border-top: 4px solid var(--accent);
  box-shadow: 0 12px 26px var(--shadow-warm); transform: rotate(1.2deg);
}
.board__empty-note::before {
  content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), var(--brd-pin, var(--pin)) 55%, rgba(0, 0, 0, 0.55));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.board__empty-note h3 {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--accent-dark); margin: 0 0 0.5rem;
}
.board__empty-note p { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.55; margin: 0; }

/* dragging a poster file over the board to plaster it up */
.board.board--drop { outline: 4px dashed var(--brd-accent, var(--accent)); outline-offset: -10px; }

/* ---- a flyer: real paper, lit from above ---- */
/* --tilt is the flyer's resting angle (set inline); the breeze animates the
   separate `rotate` channel so the two compose without ever fighting. */
.flyer {
  position: absolute;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(241, 231, 211, 0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  padding: 0.75rem 0.75rem 0.55rem;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 22px var(--shadow-warm), 0 2px 4px rgba(38, 22, 6, 0.3);
  cursor: grab;
  transition: box-shadow 0.14s ease, transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(var(--tilt, 0deg));
  /* pivot from the top-centre, as if a pin holds it there — the bottom waves */
  transform-origin: 50% 6px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.flyer:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 30px var(--shadow-warm), 0 3px 6px rgba(38, 22, 6, 0.34); }
.flyer.is-dragging { cursor: grabbing; box-shadow: 0 26px 48px rgba(20, 12, 2, 0.55); transition: none; }
.flyer.is-resizing { box-shadow: 0 26px 48px rgba(20, 12, 2, 0.55); transition: none; }
/* corner handle to resize the flyer (owner/admin only) */
.flyer__resize {
  position: absolute; right: -7px; bottom: -7px; width: 18px; height: 18px;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%;
  cursor: nwse-resize; z-index: 4; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  touch-action: none; opacity: 0; transition: opacity 0.12s ease;
  /* hold a graspable screen size however far the board zooms out
     (--board-scale is set by board_controller's apply()) */
  transform: scale(clamp(1, calc(1 / var(--board-scale, 1)), 2.5));
  transform-origin: bottom right;
}
.flyer:hover .flyer__resize, .flyer.is-resizing .flyer__resize { opacity: 1; }
/* a finger is not a cursor: no hover to reveal the handle, and an 18px dot
   is a dart-throw — so on touch it's always shown on flyers you can resize,
   grown, and given an invisible halo of extra grab area */
@media (pointer: coarse) {
  .flyer__resize { opacity: 0.85; width: 26px; height: 26px; right: -9px; bottom: -9px; }
  .flyer__resize::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
}

/* featured listing — the paid "pin to the top" badge / buy button */
.flyer__featured, .flyer__feature {
  position: absolute; top: -10px; left: -6px; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.16rem 0.42rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.flyer__featured { background: linear-gradient(180deg, #f2c14e, #d99a23); color: #3a2a06; }
.flyer__feature { border: none; cursor: pointer; background: var(--accent); color: var(--accent-contrast, #fbf6ec); opacity: 0; transition: opacity 0.12s ease; }
.flyer:hover .flyer__feature { opacity: 1; }
.flyer__feature:hover { filter: brightness(1.06); }
.flyer__featured .ico, .flyer__feature .ico { width: 0.85em; height: 0.85em; }
.flyer form.button_to { display: inline; }
/* a PDF flyer: page one is the poster face; the whole packet hangs behind it */
.flyer__doclink {
  display: inline-block; margin-top: 0.3rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--accent-dark); text-decoration: underline; text-underline-offset: 0.2em;
}

/* ---- the breeze (wild boards only): ONE wind, not many. A gust sweeps the
   wall left-to-right; every sheet answers in turn — its phase follows its x
   (--wind-delay, set inline), so neighbours move together and a wave front
   travels across the cork. Amplitude is physical too: paper hanging off a
   single pin swings (flyer-breeze), paper held by two or more only trembles
   (.flyer--steady gets the same track at 0.35×), and each sheet pivots on
   its actual pins (inline transform-origin).
   Perf note: the keyframes animate the `rotate` channel with LITERAL angles —
   no var()/calc() — so the whole breeze runs on the compositor thread. A
   custom-property animation here forces a main-thread style recalc per flyer
   per frame and turns a crowded board to jelly. ---- */
@media (prefers-reduced-motion: no-preference) {
  .board--breezy .flyer {
    animation: flyer-breeze 14s ease-in-out infinite;
    animation-delay: calc(var(--wind-delay, 0s) + var(--wind-jitter, 0s));
  }
  .board--breezy .flyer--steady { animation-name: flyer-tremble; }
  /* a whisker of slack per sheet — loose paper, never out of step */
  .board--breezy .flyer:nth-child(2n) { --wind-jitter: 0.09s; }
  .board--breezy .flyer:nth-child(3n) { --wind-jitter: 0.17s; }
  .board--breezy .flyer:nth-child(5n) { --wind-jitter: 0.26s; }
  .board--breezy .flyer.is-dragging,
  .board--breezy .flyer.is-resizing     { animation: none; }
}
/* calm, a few idle flutters — then the gust shoves every free edge the same
   way (negative = downwind), a buffet, spring-back overshoot, damped settle. */
@keyframes flyer-breeze {
  0%   { rotate: 0deg; }
  5%   { rotate: -0.4deg; }
  10%  { rotate: 0.25deg; }
  15%  { rotate: -0.15deg; }
  22%  { rotate: 0deg; }
  38%  { rotate: -0.5deg; }
  44%  { rotate: -3deg; }
  49%  { rotate: -1.6deg; }
  53%  { rotate: -2.5deg; }
  60%  { rotate: 1.1deg; }
  67%  { rotate: -0.45deg; }
  74%  { rotate: 0.2deg; }
  82%  { rotate: 0deg; }
  100% { rotate: 0deg; }
}
/* the same gust felt through a firmly-pinned sheet (0.35× the swing) */
@keyframes flyer-tremble {
  0%   { rotate: 0deg; }
  5%   { rotate: -0.14deg; }
  10%  { rotate: 0.09deg; }
  15%  { rotate: -0.05deg; }
  22%  { rotate: 0deg; }
  38%  { rotate: -0.18deg; }
  44%  { rotate: -1.05deg; }
  49%  { rotate: -0.56deg; }
  53%  { rotate: -0.88deg; }
  60%  { rotate: 0.39deg; }
  67%  { rotate: -0.16deg; }
  74%  { rotate: 0.07deg; }
  82%  { rotate: 0deg; }
  100% { rotate: 0deg; }
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
  cursor: pointer;
  z-index: 3;
  transition: transform 0.1s ease;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.flyer--held { outline: 2px dashed var(--accent); outline-offset: 2px; }
.flyer__hint { position: absolute; top: 4px; right: 6px; font-size: 0.7rem; color: #fff; background: var(--accent); padding: 0.05rem 0.3rem; border-radius: 4px; pointer-events: none; letter-spacing: 0.02em; }
.flyer.off-board { box-shadow: 0 28px 50px rgba(180, 40, 20, 0.5); opacity: 0.78; }

/* ---- a ghost flyer: the upload made visible. The local image goes up the
   instant it's picked — wet paste, print still developing — and fades away
   once the real print appended beneath it has actually loaded. (Deliberately
   after the breeze rules: wet paper hangs heavy, it doesn't flutter.) ---- */
.flyer.flyer--ghost { pointer-events: none; opacity: 0.94; animation: ghost-slap 0.35s ease-out; }
.flyer--ghost .flyer__image { filter: blur(5px) saturate(0.72) brightness(1.04); }
.flyer--ghost::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.34) 50%, transparent 58%);
  background-size: 240% 100%; background-position: 130% 0;
}
.flyer.flyer--ghost.ghost-settled { transition: opacity 0.45s ease; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flyer--ghost .flyer__image { animation: ghost-develop 1.4s ease-in-out infinite alternate; }
  .flyer--ghost::after { animation: ghost-sheen 1.6s linear infinite; }
}
/* slapped on with a touch of loft, then smoothed flat */
@keyframes ghost-slap { from { opacity: 0; transform: rotate(var(--tilt, 0deg)) scale(1.08); } }
@keyframes ghost-develop {
  from { filter: blur(6px) saturate(0.65) brightness(1.06); }
  to   { filter: blur(2.5px) saturate(0.85) brightness(1.01); }
}
@keyframes ghost-sheen { to { background-position: -40% 0; } }
.hand-hint { background: linear-gradient(180deg, #fff6da, #ffedbe); border: 1px solid #e9d49a; color: #6b4f16; border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem; box-shadow: var(--e1); }
/* ---- the pixel preview: every print carries a ~16px scan of itself, inlined
   into the page as its wrapper's background and stretched into deliberate
   retro blocks until the real image decodes over it. The img's width/height
   attributes (+ height:auto) reserve the sheet's exact shape, so nothing on
   the wall jumps as prints land. print_controller.js clears the blocks once
   the print is in — they'd peek through a transparent PNG forever otherwise. */
.flyer__print, .flyer__photo { background-size: 100% 100%; image-rendering: pixelated; }
.flyer__print { width: fit-content; max-width: 100%; border-radius: 2px; }
.flyer__print img, .flyer__photo img { image-rendering: auto; } /* blocks are for the preview, never the print */
.print--delivered { background-image: none !important; }
.flyer__image { display: block; max-width: 100%; height: auto; border-radius: 2px; pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.flyer__title { margin: 0.45rem 0 0.2rem; font-size: 1.12rem; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.flyer__body { font-size: 0.86rem; color: #3a352c; max-height: 160px; overflow: hidden; line-height: 1.5; }

/* ---- portal flyers (doorways into sub-boards) ---- */
.flyer--portal { background: linear-gradient(160deg, #fff7e8, #ffe7c2); cursor: pointer; }
.portal { text-align: center; padding: 0.45rem 0; display: grid; gap: 0.15rem; justify-items: center; }
.portal__icon { color: var(--accent-dark); }
.portal__icon .ico { width: 1.6rem; height: 1.6rem; }
.portal strong { font-family: var(--font-display); }
.portal__go { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; color: var(--accent-dark); font-weight: 700; font-family: var(--font-mono); }

/* ---- lightbox (double-tap to read) ---- */
.lightbox { position: fixed; inset: 0; background: rgba(8, 5, 2, 0.86); display: flex; align-items: center; justify-content: center; z-index: 5000; padding: 1rem; overflow: auto; backdrop-filter: blur(3px); }
.lightbox__content { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 1.6rem; max-width: 90vw; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox__content img { max-width: 100%; height: auto; }
/* "Take a copy" — save the print to your phone/computer. Floats on the glass
   like the zoom pill; cloned in from the flyer's hidden .flyer__take-copy. */
.lightbox .lightbox__save {
  position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.55rem 1.05rem;
  color: #f3ede2; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.lightbox .lightbox__save:hover { background: rgba(255, 255, 255, 0.16); }

/* ---- event flyers ---- */
.flyer__event { margin: 0.2rem 0; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); font-family: var(--font-mono); }
.flyer--event { outline: 2px solid rgba(var(--accent-rgb), 0.25); }

/* ====================================================================== *
 * Poster Studio — designed "paper" printed in one accent, + the studio UI *
 * ====================================================================== */

/* the accent each designed poster prints in (one CSS var drives everything) */
.accent--tomato { --tmpl-accent: #d8452c; }
.accent--ink    { --tmpl-accent: #2c2118; }
.accent--forest { --tmpl-accent: #2fa968; }
.accent--cobalt { --tmpl-accent: #2f7fe0; }
.accent--plum   { --tmpl-accent: #7c5ce0; }

/* shared designed-poster elements (empties collapse so blanks leave no gap) */
.flyer__photo { margin: -0.75rem -0.75rem 0.55rem; overflow: hidden; border-radius: 3px 3px 0 0; }
.flyer__photo-img { display: block; width: 100%; height: auto; }
.flyer__headline { margin: 0.1rem 0 0.15rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.12; color: var(--tmpl-accent, var(--ink)); text-wrap: balance; }
.flyer__subtitle { margin: 0 0 0.3rem; font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.flyer__message { font-size: 0.85rem; color: #3a352c; line-height: 1.5; max-height: 220px; overflow: hidden; }
.flyer__meta { display: flex; flex-direction: column; gap: 0.05rem; }
.flyer__headline:empty, .flyer__subtitle:empty, .flyer__message:empty,
.flyer__when:empty, .flyer__where:empty { display: none; }
.flyer__meta:not(:has(.flyer__when:not(:empty), .flyer__where:not(:empty))) { display: none; }

/* Event / gig poster: a bold accent meta-band over a big headline. */
.flyer--tmpl-event .flyer__meta { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--tmpl-accent); border-radius: 4px; padding: 0.35rem 0.5rem; margin-bottom: 0.45rem; }
.flyer--tmpl-event .flyer__headline { font-size: 1.4rem; }

/* Notice / note: a clean card with an accent rule across the top. */
.flyer--tmpl-note { border-top: 4px solid var(--tmpl-accent); }
.flyer--tmpl-note .flyer__photo, .flyer--tmpl-note .flyer__meta { display: none; }
.flyer--tmpl-note .flyer__message { font-family: var(--font-display); font-size: 0.9rem; }

/* Photo card: a polaroid — white frame, photo, handwritten-feel caption. */
.flyer--tmpl-photo { background-color: #fff; padding-bottom: 1.1rem; }
.flyer--tmpl-photo .flyer__meta { display: none; }
.flyer--tmpl-photo .flyer__photo { margin: 0 0 0.6rem; border-radius: 2px; }
.flyer--tmpl-photo .flyer__headline { font-style: italic; font-size: 1.1rem; text-align: center; color: var(--ink); }
.flyer--tmpl-photo .flyer__subtitle, .flyer--tmpl-photo .flyer__message { text-align: center; }

/* Video card: the same polaroid, but the print is a still of a video. A printed
   play "sticker" sits on it; the actual player only ever exists in the lightbox. */
.flyer--tmpl-video { background-color: #fff; padding-bottom: 1.1rem; }
.flyer--tmpl-video .flyer__meta { display: none; }
.flyer--tmpl-video .flyer__photo { margin: 0 0 0.6rem; border-radius: 2px; }
.flyer--tmpl-video .flyer__headline { font-style: italic; font-size: 1.1rem; text-align: center; color: var(--ink); }
.flyer--tmpl-video .flyer__subtitle, .flyer--tmpl-video .flyer__message { text-align: center; }
.flyer__photo--video { position: relative; }
.flyer__photo--video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 50px; height: 50px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: rgba(20, 14, 8, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fbf7ee'%3E%3Cpolygon points='9.5 6.5 18 12 9.5 17.5'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
  border: 2px solid rgba(251, 247, 238, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* the print is still at the shop (the thumbnail job hasn't delivered it yet) */
.flyer__photo--developing { aspect-ratio: 16 / 9; background: repeating-linear-gradient(-45deg, var(--paper-2), var(--paper-2) 10px, #e6d9bf 10px, #e6d9bf 20px); }

/* behind the glass: the actual player */
.lightbox__content--video { padding: 0.5rem; background: #0d0a07; }
.lightbox__player { display: block; width: min(88vw, 960px); aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }

/* the Management's word on plan-gated studio features */
.studio__notice { border: 1px dashed rgba(0, 0, 0, 0.25); border-radius: var(--radius-sm); background: var(--paper-2); padding: 0.6rem 0.8rem; font-size: 0.85rem; }
/* Plan-gated Video: the chip wears a dog-eared corner with a little lock, and
   picking it swaps the whole form for the Management's pitch — no half-form. */
.studio__tmpl--gated .studio__tmpl-chip { position: relative; }
/* The fold: top-right half matches the page behind (the "cut" corner), the
   bottom-left half is the turned-down flap shading the chip beneath it. */
.studio__tmpl-dogear { position: absolute; top: -1px; right: -1px; width: 26px; height: 26px; background: linear-gradient(225deg, var(--paper) 0 48.5%, rgba(0, 0, 0, 0.3) 48.5% 51.5%, rgba(0, 0, 0, 0.12) 51.5% 100%); }
.studio__tmpl-chip .studio__tmpl-dogear .ico { position: absolute; bottom: 2px; left: 2px; width: 11px; height: 11px; }
.studio--gated .studio__fields > :not(.studio__video) { display: none; }
.studio--gated .studio__submit { display: none; }
.studio__pitch { display: none; }
.studio--gated .studio__pitch { display: block; padding: 0.9rem 1rem; }
.studio__pitch-headline { font-family: var(--font-display); font-size: 1.2rem; margin: 0.15rem 0 0.35rem; }
.studio__pitch p { margin: 0 0 0.5rem; }
.studio__pitch-ctas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.65rem 0 0.55rem; }
.studio__notice strong { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.studio__notice p { margin: 0; }

/* ---- the studio: a roomy two-pane page (controls | live preview) ---- */
.studio-page { max-width: 940px; margin: 1.2rem auto; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--card); padding: 1.5rem; }
.studio-page__head { margin-bottom: 1.1rem; }
.studio-page__head h1 { margin: 0.6rem 0 0.2rem; color: var(--ink); }
.studio-page__head .form-hint { margin: 0; }

.studio { display: grid; gap: 1.3rem; align-items: start; }
.studio__controls { display: grid; gap: 0.7rem; min-width: 0; }
.studio__form { display: grid; gap: 0.7rem; }
.studio__preview-pane { min-width: 0; }
/* desktop: controls on the left, a sticky preview on the right */
@media (min-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1fr) 320px; }
  .studio__preview-pane { position: sticky; top: 1rem; }
}
/* mobile: single column with the preview floated up top so you always see it */
@media (max-width: 759px) {
  .studio-page { padding: 1rem; margin: 0.6rem auto; }
  .studio__preview-pane { order: -1; }
  .studio__preview { padding: 1.1rem 0.5rem 0.7rem; }
}

.studio__templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.studio__tmpl { display: block; cursor: pointer; }
.studio__tmpl-chip { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.55rem 0.3rem; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: var(--radius-sm); background: var(--paper-2); font-size: 0.72rem; font-weight: 700; color: var(--muted); transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease; }
.studio__tmpl-chip .ico { width: 1.15rem; height: 1.15rem; }
.studio__tmpl input:checked + .studio__tmpl-chip { background: #fff; color: var(--accent-dark); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.studio__tmpl input:focus-visible + .studio__tmpl-chip { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio__fields { display: grid; gap: 0.5rem; }
.studio input[type="text"], .studio input[type="url"], .studio input[type="datetime-local"], .studio textarea { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.studio textarea { resize: vertical; }
.studio__headline-input { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
/* :not([hidden]) — an author display rule would otherwise defeat the hidden attribute. */
.studio__event:not([hidden]) { display: grid; gap: 0.4rem; padding: 0.55rem; border: 1px dashed rgba(0, 0, 0, 0.18); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.02); }
.studio__video:not([hidden]) { display: grid; gap: 0.4rem; padding: 0.55rem; border: 1px dashed rgba(0, 0, 0, 0.18); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.02); }
.studio__field-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; }
.studio__field-label .ico { width: 0.9em; height: 0.9em; }
.studio__accents { display: flex; gap: 0.45rem; align-items: center; }
.studio__swatch { cursor: pointer; line-height: 0; }
.studio__swatch-dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--tmpl-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.studio__swatch input:checked + .studio__swatch-dot { box-shadow: 0 0 0 2px var(--ink); }
.studio__swatch input:focus-visible + .studio__swatch-dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.studio__submit { width: 100%; justify-content: center; }

/* the live preview, pinned on a little corkboard so the paper pops */
.studio__preview { position: relative; padding: 1.5rem 0.6rem 0.9rem; border-radius: var(--radius-sm); display: flex; justify-content: center; background: linear-gradient(160deg, var(--cork), var(--cork-dark)); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.28); }
.studio__preview-cap { position: absolute; top: 0.35rem; left: 0.55rem; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.75); }
.flyer--preview { position: static; width: 228px; cursor: default; transform: rotate(-1.2deg); animation: none !important; transition: none; }
.flyer--preview .flyer__message { white-space: pre-line; }
.flyer__placeholder { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 1.4rem 0.5rem; }

/* escape hatch: upload your own image */
.studio__fallback { border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 0.6rem; }
.studio__fallback summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.studio__fallback summary:hover { color: var(--ink); }
.studio__fallback .compose__form { padding: 0.6rem 0 0; }

/* the dock's "design a poster" link, sitting under the quick image dropzone */
.studio-link { display: flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(0, 0, 0, 0.08); background: var(--paper-2); color: var(--ink); text-decoration: none; font-size: 0.86rem; border-radius: 0 0 var(--radius) var(--radius); }
.studio-link:hover { background: #fff; color: var(--ink); }
.studio-link .ico { color: var(--accent); flex: none; }
.studio-link strong { color: var(--accent-dark); }

/* ---- Start a board: two-pane like the studio — form left, live wall
   preview right (sticky on desktop, floated up top on phones) ---- */
.form-page.form-page--board-new { max-width: 960px; } /* doubled class: must outrank the base .form-page width below */
.board-new { display: grid; gap: 1.5rem; align-items: start; }
.board-new__controls { min-width: 0; }
.board-new__preview-pane { position: relative; min-width: 0; }
.board-new__preview-cap { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.4rem; }
@media (min-width: 860px) {
  .board-new { grid-template-columns: minmax(0, 1fr) 330px; }
  .board-new__preview-pane { position: sticky; top: 4.5rem; }
}
@media (max-width: 859px) {
  .board-new__preview-pane { order: -1; } /* phones see the wall first, like the studio */
}

/* the miniature themed board (create page + settings) — real .board/.floor
   classes, so the preview IS the wall */
.wall-preview .board { height: 200px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.35); }
.wall-preview .board__wall { height: 100%; }
.wall-preview .floor { margin-top: 9px; padding: 0.45rem 0.8rem 0.7rem; min-height: 40px; }
.wall-preview .floor__label { margin-bottom: 0; font-size: 0.68rem; }
.wall-preview .board__empty-note { width: min(230px, 80%); padding: 0.75rem 0.85rem 0.65rem; }
.wall-preview .board__empty-note h3 { font-size: 0.62rem; margin-bottom: 0.3rem; }
.wall-preview .board__empty-note p { font-size: 0.8rem; line-height: 1.45; }
.settings-section .wall-preview { margin-top: 0.7rem; }

/* ---- the board-template picker: six walls, one swatch each (settings) ---- */
.theme-picker { display: grid; gap: 0.45rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.theme-picker__row { cursor: pointer; }
.theme-picker__card { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: var(--radius-sm); background: #fff; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.theme-picker__row input:checked + .theme-picker__card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.theme-picker__row input:focus-visible + .theme-picker__card { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-picker__swatch { width: 46px; height: 32px; border-radius: 6px; flex: none; border: 1px solid rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.25); }
.theme-picker__name { display: block; font-weight: 600; }
.theme-picker__tag { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---- the floor beneath the board: where ripped-down flyers land. Themed via
   --brd-floor-* (fallback: the cork wall's warm wooden planks). ---- */
.floor {
  margin-top: 16px;
  padding: 0.65rem 0.95rem 1rem;
  border-radius: 5px 5px var(--radius) var(--radius);
  border-top: 3px solid rgba(0, 0, 0, 0.4);
  background-color: var(--brd-floor-color, #7f5a2c);
  background-image: var(--brd-floor-image,
    /* grain noise */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)' opacity='0.5'/%3E%3C/svg%3E"),
    /* plank seams, every ~108px */
    repeating-linear-gradient(90deg, transparent 0 106px, rgba(0, 0, 0, 0.3) 106px 108px),
    /* light/shade across the boards */
    linear-gradient(180deg, #9a7038, #6a4a22));
  background-blend-mode: overlay, normal, normal;
  box-shadow: inset 0 12px 22px rgba(35, 18, 4, 0.6), 0 8px 18px var(--shadow);
}
.floor__label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brd-accent, rgba(255, 248, 236, 0.66)); margin-bottom: 0.55rem; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.floor__label .ico { width: 0.95em; height: 0.95em; }
.floor__pile { display: flex; flex-wrap: wrap; gap: 0.6rem 0.5rem; min-height: 36px; align-items: flex-start; padding: 0 0.2rem; }
.floor.floor--active { box-shadow: inset 0 0 0 3px var(--brd-accent, var(--accent)), inset 0 12px 22px rgba(35, 18, 4, 0.6); }
/* fallen flyers — crumpled paper tossed on the floor */
.floor__flyer {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(155deg, #fffdf6, #ede2c8); color: var(--ink);
  padding: 0.45rem 0.7rem; border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 13px rgba(20, 11, 2, 0.55);
  font-size: 0.8rem; transform: rotate(-4deg);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.floor__flyer:nth-child(2n) { transform: rotate(3deg) translateY(-1px); }
.floor__flyer:nth-child(3n) { transform: rotate(-1.5deg) translateY(2px); }
.floor__flyer:nth-child(5n) { transform: rotate(5deg); }
.floor__flyer.is-pickable { cursor: grab; }
.floor__flyer.is-pickable:hover { outline: 2px solid var(--accent); transform: rotate(0deg) scale(1.05); transition: transform 0.12s ease; }
.floor__flyer-ico { color: var(--muted); display: inline-flex; }
.floor__flyer-ico .ico { width: 1em; height: 1em; }
.floor__flyer-title { font-weight: 600; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floor__flyer-hint { font-size: 0.6rem; color: var(--accent-dark); opacity: 0.8; }

/* ---- forms: warm paper cards floating in the dark room ---- */
.form-page, .auth-card, .invite-landing {
  max-width: 540px; margin: 2rem auto; background: var(--paper); color: var(--ink);
  padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--card);
}
.form-page h1, .auth-card h1, .invite-landing h1 { margin-top: 0; }

/* "back to the board" link at the top of admin sub-pages (paper context) */
.page-back { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted); text-decoration: none; margin-bottom: 1rem; transition: color 0.12s ease, gap 0.12s ease; }
.page-back:hover { color: var(--accent-dark); gap: 0.55rem; }
.page-back .ico { width: 1em; height: 1em; }
.form-page a, .auth-card a, .invite-landing a, .compose a, .lightbox a, .flyer a { color: var(--accent-dark); }
.stack-form { display: grid; gap: 0.9rem; }
.stack-form label { display: grid; gap: 0.3rem; font-weight: 600; }
.stack-form input[type=text], .stack-form input[type=email], .stack-form input[type=number],
.stack-form select, .auth-form input:not([type="submit"]), .stack-form trix-editor {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); font: inherit; background: #fffef9; color: var(--ink);
}
.stack-form input:focus, .auth-form input:not([type="submit"]):focus, .stack-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row { display: flex; gap: 0.6rem; }
.form-row label { flex: 1; }
.checkbox, .radio { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.kind-picker { border: 1px solid #e2d6bd; border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; display: grid; gap: 0.4rem; }
.form-errors { background: var(--accent-soft); color: var(--accent-dark); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.form-hint, .auth-hint { color: var(--muted); font-size: 0.9rem; }

/* ---- board settings: the caretaker's ledger ---- */
.form-page--settings { max-width: 620px; padding: 1.8rem 2rem; }
.settings-board-name { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 0.15rem; }
.form-page--settings h1 { margin-bottom: 0.3rem; }

.settings-form { gap: 0; }
.settings-form .form-errors, .settings-form > .form-hint { margin-bottom: 0.9rem; }
.settings-section { display: grid; gap: 0.85rem; border: 0; padding: 1.15rem 0 1.4rem; margin: 0; }
.settings-kicker { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8a7f6c; margin: 0; }
.settings-kicker::after { content: ""; flex: 1; border-top: 1px solid #e8dcc2; }
.settings-section .form-hint { margin: -0.35rem 0 0; line-height: 1.45; }

/* toggle switches — brass slides on the ledger */
.stack-form .switch, .switch { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-weight: 500; }
.switch__input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { flex: none; width: 42px; height: 24px; margin-top: 1px; border-radius: 999px; background: #e7dbc0; border: 1px solid #d2c19c; box-shadow: inset 0 1px 3px rgba(60, 44, 16, 0.18); position: relative; transition: background 0.18s ease, border-color 0.18s ease; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #fffdf6, #f0e6cf); box-shadow: 0 1px 3px rgba(46, 31, 8, 0.35); transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1); }
.switch__input:checked ~ .switch__track { background: var(--accent); border-color: var(--accent-dark); }
.switch__input:checked ~ .switch__track::after { transform: translateX(18px); }
.switch__input:focus-visible ~ .switch__track { box-shadow: inset 0 1px 3px rgba(60, 44, 16, 0.18), 0 0 0 3px var(--accent-soft); }
.switch__copy { display: grid; gap: 0.1rem; }
.switch__title { font-weight: 700; }
.switch__desc { color: var(--muted); font-size: 0.84rem; font-weight: 400; line-height: 1.45; }

/* the wall, read back from the plan (never an input): a print-shop size
   chart — the walls to scale, side by side, each with its price */
.wall-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.6rem; padding: 0.2rem 0 0.1rem; }
.wall-size { display: grid; gap: 0.5rem; justify-items: start; align-content: end; text-decoration: none; color: inherit; }
.wall-size__rect { display: block; border-radius: 3px; }
.wall-size__rect--yours { background: linear-gradient(160deg, #d9b47c, var(--cork)); border: 1px solid var(--cork-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.wall-size__rect--dashed { border: 1.5px dashed #bfa87c; background: rgba(200, 160, 106, 0.09); transition: border-color 0.15s ease, background 0.15s ease; }
a.wall-size:hover .wall-size__rect--dashed { border-color: var(--accent); background: var(--accent-soft); }
.wall-size__cap { display: block; margin: 0; max-width: 24ch; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.6; color: var(--muted); text-align: left; }
.wall-size__cap strong { color: var(--ink); font-size: 0.7rem; }
.wall-size__price { color: var(--accent-dark); }
a.wall-size:hover .wall-size__price, button.wall-size:hover .wall-size__price { text-decoration: underline; text-underline-offset: 2px; }
/* the $2 rung is a one-click buy — a button dressed as a chart entry */
.wall-sizes form.button_to { display: contents; }
button.wall-size { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
button.wall-size:hover .wall-size__rect--dashed, a.wall-size:hover .wall-size__rect--dashed { border-color: var(--accent); background: var(--accent-soft); }

.wall-facts { display: grid; gap: 0.35rem; align-content: start; }
.wall-facts__plan { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7f6c; }
.wall-facts__tier { color: var(--accent-dark); }
.wall-facts__dims { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0.01em; }
.wall-facts .form-hint { margin: 0; }

/* money field: $ lives inside the input's frame */
.money-input { display: flex; align-items: center; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); background: #fffef9; max-width: 180px; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.money-input__sign { padding-left: 0.7rem; color: var(--muted); font-family: var(--font-mono); font-weight: 400; }
.stack-form .money-input input[type=number] { border: 0; background: transparent; }
.stack-form .money-input input[type=number]:focus { outline: none; box-shadow: none; border: 0; }

.settings-actions { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.15rem; border-top: 1px solid #e8dcc2; }

/* what's nailed on: the board's add-ons, each with its way off */
.addon-list { display: grid; gap: 0.45rem; border-top: 1px dashed #e0d2b4; padding-top: 0.75rem; }
.addon-list__row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.addon-list__row form.button_to { display: contents; }
.addon-list__name { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

/* the settings page is a STACK of distinct cards (settings · wall · danger) —
   nothing below "Save settings" reads as part of the form */
.settings-stack { display: grid; gap: 1.1rem; max-width: 620px; margin: 2rem auto; padding: 0 0.5rem; }
.settings-stack .form-page { margin: 0; max-width: none; }
.settings-stack .settings-section:first-child { padding-top: 0; }
.settings-stack .settings-section:last-child { padding-bottom: 0; }

/* condemned property — the only red-bordered card on the ledger */
.form-page--danger { border: 1px solid rgba(var(--accent-rgb), 0.4); }
.form-page--danger .settings-kicker { color: var(--accent-dark); }
.form-page--danger .settings-kicker::after { border-color: rgba(var(--accent-rgb), 0.25); }

.auth-form { display: grid; gap: 0.7rem; }
.auth-alts { display: grid; gap: 0.5rem; margin-top: 1rem; }
/* on-paper ghost: the quiet alternative under a red primary */
.btn--ghost-paper { background: transparent; color: var(--ink); border: 1px solid #d6c6a6; box-shadow: none; font-weight: 600; }
.btn--ghost-paper:hover { background: rgba(0, 0, 0, 0.04); filter: none; box-shadow: none; }
.auth-password, .auth-code { margin-top: 1rem; }
.auth-password summary, .auth-code summary { cursor: pointer; color: var(--muted); }
.auth-code .auth-form { margin-top: 0.7rem; }

/* ---- compose a flyer ---- */
.compose { max-width: 640px; margin: 2rem auto; background: var(--paper); color: var(--ink); padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--card); }
.compose__form { display: grid; gap: 1rem; }
.compose__tabs-field { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.compose__tabs-field input { width: 120px; padding: 0.4rem 0.5rem; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); font: inherit; }

/* ---- inline "new flyer" panel — a tidy collapsible card on the board page ---- */
.compose-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--card); margin-bottom: 1.2rem; max-width: 560px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.06); }
.compose-panel > summary { cursor: pointer; font-weight: 700; padding: 0.75rem 1rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; color: var(--ink); background: linear-gradient(180deg, #fffdf6, #f4ead4); }
.compose-panel > summary::-webkit-details-marker { display: none; }
.compose-panel > summary .ico { color: var(--accent); }
.compose-panel > summary::after { content: ""; margin-left: auto; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--chevron) center/16px no-repeat; mask: var(--chevron) center/16px no-repeat; color: var(--accent); transition: transform 0.18s ease; }
.compose-panel[open] > summary::after { transform: rotate(90deg); }
.compose-panel[open] > summary { border-bottom: 1px solid #ead9bb; }
.compose-panel__sub { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.compose-panel .compose__form { padding: 1rem; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }

/* a full-screen overlay; the dimmed area is the backdrop, the box holds the form */
.modal { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 1rem; overflow: auto; background: rgba(8, 5, 2, 0.6); backdrop-filter: blur(2px); }
.modal[hidden] { display: none; }
.modal__box { width: 92vw; max-width: 680px; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); padding: 1.6rem; position: relative; }
.modal__title { margin: 0 0 1rem; }
.modal__close { position: absolute; top: 0.7rem; right: 0.9rem; border: none; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__close:hover { color: var(--ink); }
.compose__title { font-size: 1.3rem; font-weight: 700; padding: 0.6rem 0.4rem; border: none; border-bottom: 2px solid #e7dcc4; background: transparent; width: 100%; }
.compose__title:focus { outline: none; border-bottom-color: var(--accent); }

.dropzone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; border: 2px dashed var(--cork-dark); border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, #fffdf6 0 14px, #fbf3e2 14px 28px); cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; text-align: center; padding: 1rem; }
.dropzone:hover, .dropzone--over { border-color: var(--accent); background: #fff5ea; box-shadow: inset 0 0 0 3px var(--accent-soft); }
.dropzone--busy { opacity: 0.6; pointer-events: none; }
.compose__or { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 0.8rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.1em; }
.upload__pick { display: block; padding: 0.85rem 1rem; border: 2px dashed #d6c6a6; border-radius: var(--radius-sm); background: #fffdf6; cursor: pointer; }
.upload__pick:hover { border-color: var(--accent); }
.upload__input { display: block; margin-top: 0.5rem; }
.upload__preview { display: block; max-width: 100%; max-height: 240px; margin-top: 0.6rem; border-radius: 6px; box-shadow: var(--e2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compose__title, .compose__body { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); font: inherit; background: #fffef9; }
.compose__title { margin-bottom: 0.5rem; }
.compose__body { min-height: 90px; resize: vertical; }
/* Hidden, but the wrapping <label> still opens it on click. It is NOT an overlay
   so the label (a non-file-input element) is the drop target — Safari refuses to
   accept files dropped onto a file input, so JS handles the drop instead. */
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__placeholder { display: grid; gap: 0.4rem; color: var(--muted); pointer-events: none; justify-items: center; }
.dropzone__placeholder strong { color: var(--ink); font-size: 1.05rem; font-family: var(--font-display); }
.dropzone__icon { color: var(--cork-dark); }
.dropzone__icon .ico { width: 2.2rem; height: 2.2rem; }
.dropzone__preview { max-width: 100%; max-height: 320px; border-radius: 8px; }
/* mid-upload with no board on the page (studio fallback): the preview itself
   sits under wet paste until the request lands */
.dropzone--busy .dropzone__preview { filter: blur(4px) saturate(0.75); }
@media (prefers-reduced-motion: no-preference) {
  .dropzone--busy .dropzone__preview { animation: ghost-develop 1.4s ease-in-out infinite alternate; }
}

.tabbar { display: flex; gap: 0.3rem; border-bottom: 2px solid #e7dcc4; margin-bottom: 0.9rem; }
.tab-btn { border: none; background: transparent; padding: 0.5rem 0.9rem; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 0.35rem; }
.tab-btn--active { color: var(--ink); border-bottom-color: var(--accent); }
/* Only the visible panel shows — must not override the [hidden] attribute. */
.tab-panel:not([hidden]) { display: grid; gap: 0.8rem; }

.compose__editor trix-editor { min-height: 150px; border: 1px solid #d8c7a4; border-radius: var(--radius-sm); background: #fffdf6; padding: 0.6rem 0.7rem; }

.compose__more summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.compose__more-grid { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.compose__more-grid label { display: grid; gap: 0.2rem; font-size: 0.9rem; font-weight: 600; }
.compose__more-grid input { padding: 0.5rem 0.6rem; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); font: inherit; }

.compose__actions { display: flex; gap: 0.6rem; align-items: center; }

/* ---- moderation queue ---- */
.queue { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.queue__item { display: flex; justify-content: space-between; gap: 1rem; background: var(--paper); color: var(--ink); padding: 0.9rem; border-radius: var(--radius-sm); box-shadow: var(--card); }
.queue__thumb { max-width: 120px; border-radius: 4px; display: block; margin-top: 0.4rem; }
.queue__actions { display: flex; flex-direction: column; gap: 0.4rem; }

.home { max-width: 600px; margin: 4rem auto; text-align: center; }
.home h1 { font-size: var(--fs-2xl); }
.meta-actions { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
.report-line { margin-top: 1rem; opacity: 0.7; }
.profile-link { color: var(--accent-dark); text-decoration: none; }

/* ---- notifications feed ---- */
.digest-form { margin: 0.5rem 0 1rem; color: var(--on-dark-dim); font-size: 0.9rem; }
.feed { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.feed__item { background: var(--paper); color: var(--ink); padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); box-shadow: var(--e2); }
.feed__item small { color: var(--muted); margin-left: 0.4rem; }
.feed__item--unread { border-left: 4px solid var(--accent); }

/* ---- wallet + plans ---- */
.balance { font-size: var(--fs-2xl); font-weight: 600; font-family: var(--font-display); margin: 0.3rem 0; color: var(--on-dark); }
.topups { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
/* plans as a calm stack: cheap monthly up front, the annual deal beside it */
.plans-stack { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.plan-row { border: 1px solid #e2d3b4; border-radius: var(--radius-sm); padding: 1.05rem 1.15rem; display: grid; gap: 0.45rem; background: #fffdf6; }
.plan-row--free { background: transparent; }
.plan-row--current { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.plan-row__head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.plan-row__head h2 { margin: 0; font-size: var(--fs-md); }
.plan-row__for { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plan-row__badge { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 0.05rem 0.5rem; }
.plan-row__price { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; line-height: 1; }
.plan-row__price span { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 0.15rem; }
.plan-row__annual { margin: 0; font-size: 0.92rem; }
.plan-row__save { color: var(--ok); font-weight: 700; }
.plan-row__facts { margin: 0.15rem 0 0; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); line-height: 1.65; }
.plan-row__blurb { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.plan-row__ctas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
/* the $2 rung between Free and the tiers — dashed, small, no ceremony */
.plan-row--micro { border-style: dashed; background: transparent; }
.plan-row--micro .plan-row__price { font-size: var(--fs-lg); }

/* the board rack line on My boards (dark chrome context) */
.rack-note { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: -0.4rem 0 1rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-dark-dim); }
.rack-note a { color: var(--on-dark-dim); }
.rack-note a:hover { color: var(--on-dark); }
.rack-note__sep { opacity: 0.5; }
.rack-note form.button_to { display: contents; }
.rack-note__buy { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.rack-note__buy:hover { color: var(--accent-dark); }

/* ---- curator dashboard ---- */
.stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.stat { background: var(--paper); color: var(--muted); border-radius: var(--radius-sm); padding: 0.7rem 0.95rem; box-shadow: var(--e2); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.stat__n { display: block; font-size: 1.5rem; font-weight: 600; font-family: var(--font-display); color: var(--ink); letter-spacing: 0; }
.members { width: 100%; border-collapse: collapse; margin-top: 0.5rem; background: var(--paper); color: var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.members th, .members td { text-align: left; padding: 0.6rem; border-bottom: 1px solid #e6dcc6; }
.members th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0.05rem 0.45rem; font-size: 0.72rem; font-family: var(--font-mono); margin-left: 0.3rem; }

/* ---- discovery directory ---- */
.directory { display: grid; gap: 0.8rem; max-width: 1100px; }
/* a quiet mono caption above a shelf of board cards ("Boards you run") */
.shelf-cap { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--on-dark-dim); margin: 1.7rem 0 0.6rem; }
@media (min-width: 900px) { .directory { grid-template-columns: 1fr 1fr; } }
.board-card { display: flex; justify-content: space-between; gap: 1rem; background: var(--paper); padding: 1rem 1.1rem; border-radius: var(--radius); box-shadow: var(--card); text-decoration: none; color: var(--ink); transition: transform 0.1s ease, box-shadow 0.12s ease; }
.board-card:hover { transform: translateY(-2px); box-shadow: var(--e3); }
.board-card strong { font-family: var(--font-display); font-size: 1.1rem; }
.board-card__meta { color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); }
.board-card__meta .ico { width: 0.95em; height: 0.95em; }
/* the standing invitation at the end of a thin directory: an empty paper slot */
.board-card--invite { background: transparent; border: 2px dashed var(--line); box-shadow: none; color: var(--on-dark); }
.board-card--invite strong { color: var(--on-dark); }
.board-card--invite .board-card__meta { color: var(--on-dark-dim); }
.board-card--invite:hover { border-color: rgba(var(--accent-rgb), 0.55); box-shadow: none; }

/* ---- site admin (plans) ---- */
.admin-page { max-width: 880px; }
.admin-plans { display: grid; gap: 1rem; margin-top: 1.2rem; }
.admin-plan { border: 1px solid #e6dcc6; border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: #fffefa; }
.admin-plan--new { border-style: dashed; background: #fbf5e8; }
.admin-plan__head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.admin-plan__head strong { font-family: var(--font-display); font-size: 1.15rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.admin-plan__head .chip { color: var(--muted); background: #f1e7d3; border-color: #e2d6bd; cursor: default; }
.admin-plan__slug { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: #efe6d2; padding: 0.1rem 0.4rem; border-radius: 5px; }
.admin-plan__count { font-size: 0.78rem; color: var(--muted); margin-left: auto; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 0.9rem; }
.admin-field { display: grid; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.admin-field--wide { grid-column: 1 / -1; }
.admin-field input { padding: 0.5rem 0.6rem; border: 1px solid #d6c6a6; border-radius: var(--radius-sm); font: inherit; font-weight: 400; color: var(--ink); background: #fffef9; }
.admin-field input:disabled { background: #f1e7d3; color: var(--muted); }
.admin-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-flags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin: 0.9rem 0 0.2rem; font-size: 0.85rem; }
.admin-plan__actions { display: flex; justify-content: flex-end; margin-top: 0.6rem; }
@media (max-width: 640px) { .admin-grid { grid-template-columns: 1fr; } }

/* ---- Trix editor — pulled out of the stock blue defaults into the warm theme ---- */
trix-toolbar .trix-button-group { border-color: #d8c7a4; background: #fffdf6; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--e1); }
trix-toolbar .trix-button { color: var(--muted); border-bottom: none; }
trix-toolbar .trix-button:not(:first-child) { border-left: 1px solid #ead9bb; }
trix-toolbar .trix-button.trix-active { background: var(--accent-soft); color: var(--accent-dark); }
trix-toolbar .trix-button--icon::before { opacity: 0.5; }
trix-toolbar .trix-button--icon.trix-active::before { opacity: 1; }
.compose__editor trix-editor:focus, .stack-form trix-editor:focus, .compose trix-editor:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.trix-content { line-height: 1.55; }
.trix-content h1 { font-family: var(--font-display); font-weight: 600; }
.trix-content a { color: var(--accent-dark); }
.trix-content pre { background: var(--paper-2); border-radius: 6px; }
.trix-content blockquote { border-left-color: var(--cork-dark); color: var(--muted); }

/* ====================================================================== *
 * Landing — the front door (/ for strangers, /welcome for anyone)         *
 * ====================================================================== */
.landing { display: grid; gap: 4.2rem; padding: 2.4rem 0 3rem; }

/* hero: the pitch, then a slip of paper to write your board's name on */
.landing-hero { text-align: center; max-width: 780px; margin: 0 auto; }
.landing-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 0.9rem; color: var(--on-dark); }
.landing-hero__sub { color: var(--on-dark-dim); font-size: var(--fs-md); line-height: 1.6; max-width: 58ch; margin: 0 auto 1rem; text-wrap: balance; }
/* the six words that ARE the pitch, set in the brand's printing voice */
.landing-hero__nope { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); color: var(--on-dark); letter-spacing: 0.01em; margin: 0 0 1.8rem; }
.landing-create { display: flex; gap: 0.6rem; max-width: 780px; margin: 0 auto; }
.landing-create input[type="text"] {
  flex: 1; min-width: 0; font: inherit; padding: 0.75rem 1rem;
  border: 1px solid #d6c6a6; border-radius: var(--radius-sm);
  background: #fffef9; color: var(--ink); box-shadow: var(--e2);
}
.landing-create input[type="text"]::placeholder { color: var(--muted); }
.landing-create input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--e2); }
/* the one button that IS the product — raised off the page so it begs a press */
.landing-create__go {
  white-space: nowrap; padding: 0.75rem 1.5rem; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.45), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.landing-create__go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.55), 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.landing-create__go:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.4); }
.landing-hero__micro { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-dark-dim); margin: 0.7rem 0 0; }

/* every section: a serif heading over quiet dim prose. min-width:0 matters —
   grid items default to min-width:auto, and without it the 1080px demo board
   sets the whole page's minimum width, ballooning a phone's layout viewport. */
.landing-section { min-width: 0; }
.landing-section h2 { font-size: var(--fs-xl); color: var(--on-dark); margin: 0 0 0.5rem; text-wrap: balance; }
.landing-lede { color: var(--on-dark-dim); max-width: 68ch; margin: 0 0 1.4rem; }

/* the embedded demo board — a real board, scaled into the page by embed_controller;
   below half size it stops shrinking and pans sideways instead */
.landing-demo__stage { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.landing-demo__stage .board-scaler { margin: 0 auto; }
.landing-demo__enter { margin: 0.9rem 0 0; text-align: center; }

/* ---- the app's front door (.landing--app): tighter and quieter — the
   reader already lives here, and the native tabs carry the wayfinding ---- */
/* bottom padding: the shell's floating tab bar overlays the page's tail */
.landing--app { gap: 1.8rem; padding-top: 0.6rem; padding-bottom: 5.5rem; }
/* the live preview: scrolls both ways once pinched past whole-wall, and
   touch-action leaves the two-finger pinch to embed_controller */
.landing--app .landing-demo__stage { overflow: auto; touch-action: pan-x pan-y; }
.landing--app .landing-section h2 { font-size: var(--fs-lg); }
.landing--app .landing-lede { font-size: 0.95rem; margin-bottom: 1rem; }
/* the whole wall in one glance, framed like a photograph of itself */
.landing--app .landing-demo__stage { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
/* the tab bar already rings the bell */
.native-app .appbar__bell { display: none; }

/* the curator's door in — only rendered for people who keep this board */
.landing-demo__curate { font-family: var(--font-mono); font-size: var(--fs-xs); margin: 0 0 0.9rem; }
.landing-demo__curate a { color: var(--on-dark-dim); text-decoration-color: var(--line); }
.landing-demo__curate a:hover { color: var(--on-dark); }

/* how it works: three numbered cards */
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.landing-step { background: var(--room-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.landing-step h3 { margin: 0 0 0.45rem; font-size: var(--fs-md); color: var(--on-dark); }
.landing-step p { margin: 0; color: var(--on-dark-dim); font-size: 0.95rem; }

/* use cases: four short cards, mono nameplates */
.landing-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.landing-use { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; background: linear-gradient(180deg, var(--room-2), rgba(29, 24, 18, 0.35)); }
.landing-use h3 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.09em; color: var(--accent); margin: 0 0 0.5rem; }
.landing-use p { margin: 0; color: var(--on-dark-dim); font-size: 0.95rem; }

/* the promise, the curator's deal, and the closing wander */
.landing-promise, .landing-earn, .landing-wander { text-align: center; max-width: 660px; margin: 0 auto; }
.landing-promise p, .landing-earn p, .landing-wander p { color: var(--on-dark-dim); }
.landing-earn a { font-family: var(--font-mono); font-size: var(--fs-sm); }
.landing-wander__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

/* the tear-off edge of "Which one is yours?" — a row of tabs along a
   perforation under the use-case cards, one per door. The reader is already
   answering "which one is me?"; the tab takes them to that door's full pitch. */
.landing-doors { text-align: center; margin-top: 1.6rem; }
.landing-doors__hint {
  margin: 0.9rem 0 0; color: var(--on-dark-faint);
  font-family: var(--font-mono); font-size: var(--fs-xs);
}
.landing-doors__tabs {
  display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap;
  gap: 0.55rem; padding-top: 0.9rem;
  border-top: 2px dashed var(--line);
}
.landing-doors__tab {
  display: inline-block; font-family: var(--font-mono); font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: 0.07em; white-space: nowrap;
  color: var(--ink); background: var(--paper); text-decoration: none;
  padding: 0.85rem 0.6rem 0.6rem; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tab-tilt, 0deg)); transform-origin: 50% 0;
  transition: transform 120ms ease;
}
.landing-doors__tab:nth-child(odd)  { --tab-tilt: -1.6deg; }
.landing-doors__tab:nth-child(even) { --tab-tilt: 1.2deg; }
.landing-doors__tab:hover { transform: rotate(0deg) translateY(2px); }

/* the money, in one honest line */
.landing-cost { text-align: center; max-width: 640px; margin: 0 auto; }
/* a mono kicker so the money line reads as a section, not a stray footnote */
.landing-kicker {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
  margin: 0 0 0.6rem;
}
.landing-cost p { color: var(--on-dark-dim); margin: 0 0 0.6rem; }
/* one line of the letter, quoted where people will actually see it */
.landing-cost__quote {
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-md);
  color: var(--on-dark); margin: 0.9rem auto 0.8rem; max-width: 34ch; text-wrap: balance;
}
.landing-cost__quote cite { font-style: normal; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-dark-dim); display: block; margin-top: 0.35rem; }
.landing-cost a { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* the shelf: real public boards, plain and honest — app chrome, never cork */
.landing-shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; margin-top: 1.2rem; }
.shelf-card { display: block; background: var(--room-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--on-dark); text-decoration: none; transition: transform 0.1s ease, border-color 0.12s ease; }
.shelf-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.5); color: var(--on-dark); }
.shelf-card__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.shelf-card__place { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-dark-dim); margin-top: 0.2rem; }
.shelf-card__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-dark-dim); margin-top: 0.6rem; }
.landing-shelf__more { margin: 1rem 0 0; font-family: var(--font-mono); font-size: var(--fs-sm); }

@media (max-width: 760px) {
  .landing { gap: 3rem; padding-top: 1.4rem; }
  .landing-create { flex-direction: column; }
  .landing-steps { grid-template-columns: 1fr; }
}

/* ====================================================================== *
 * Pricing — one paper notice from The Management, pinned to cork.        *
 * If this page ever grows a comparison grid, it has failed.              *
 * ====================================================================== */
.pricing-page { max-width: 720px; margin: 2rem auto 3rem; }
.pricing-board {
  background: linear-gradient(160deg, var(--cork), var(--cork-dark));
  border: 10px solid var(--frame); border-radius: var(--radius);
  padding: clamp(1.2rem, 5vw, 2.6rem); box-shadow: var(--e3);
}
.pricing-notice {
  position: relative; background: var(--paper); color: var(--ink);
  padding: 1.6rem 1.7rem 1.2rem; border-top: 4px solid var(--accent);
  box-shadow: 0 12px 26px var(--shadow-warm); transform: rotate(-0.6deg);
}
/* the one pin holding the notice up */
.pricing-notice::before {
  content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), var(--brd-pin, var(--pin)) 55%, rgba(0, 0, 0, 0.55));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.pricing-notice h1 {
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.05em;
  line-height: 1.5; margin: 0 0 1.1rem; color: var(--accent-dark);
}
.pricing-notice p { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.62; margin: 0 0 0.95rem; }
.pricing-notice__soon {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); border: 1px dashed rgba(0, 0, 0, 0.25); border-radius: 3px;
  padding: 0.1rem 0.35rem; white-space: nowrap; vertical-align: 0.12em;
}
.pricing-notice__sig { text-align: right; font-style: italic; margin-top: 1.1rem; }
.pricing-notice__ps {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); line-height: 1.6;
  border-top: 1px dashed rgba(0, 0, 0, 0.16); padding-top: 0.8rem; margin-bottom: 0;
}
.pricing-page__cta { text-align: center; margin: 1.6rem 0 0; }

/* ---- mobile ---- */
@media (max-width: 640px) {
  .board { border-width: 7px; }
  .main { padding: 0.7rem; }
  .appbar { padding: 0.45rem 0.7rem; gap: 0.5rem; }
  .appbar__name { max-width: 9rem; font-size: 0.96rem; }
  .appbar__actions:not(:empty) { padding-right: 0.35rem; }
  .appbar__account, .appbar__actions { gap: 0.15rem; }
}
