/* bot-link · design C "Meet in a Room" — production stylesheet.
   Warm shared-table world: paper, ink outlines, chunky press shadows, Fraunces display, Figtree UI.
   Server-rendered pages (/i/{invite}) may use: .page .page-narrow .card .h1 .lead .btn .btn-primary
   .btn-ghost .kicker .fine .match-code .mc-char .fp .invite-box .invite-line (see web/README.md). */

@import url("/assets/fonts/fonts.css"); /* so server-rendered pages that link only app.css get the fonts too */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f2e8; --paper-2: #eee8d8; --card: #fffdf7; --card-2: #fbf7ec;
  --ink: #15333a; --ink-2: #33545a; --muted: #586e70; --line: #d3d8cf; --line-soft: #e6e3d7;
  --edge: #15333a; --hard: #15333a; --hard-soft: rgba(21, 51, 58, .16);
  --blue: #2a5fe0; --blue-deep: #1c45ad; --on-blue: #fff;
  --coral: #ff7a5c; --sun: #ffd447; --mint: #7fd9b6; --lilac: #c6b6ff; --peach: #ffb878; --rose: #ff9fb4;
  --sun-tint: #fff6d1; --coral-tint: #ffe6de; --mint-tint: #ddf5ea; --lilac-tint: #ece6ff; --blue-tint: #e3ebff;
  --table-depth: #a9c8bf; --table-top: #d8ece5; --table-inner: #e8f4ef; --table-shine: rgba(255, 255, 255, .55); --table-edge: #15333a;
  --char-ink: #15333a; --live: #2fb07f; --warn: #c2410c; --danger: #c43c25;
  --focus: #2a5fe0;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", ui-rounded, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .78, .22, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
  --gutter: clamp(16px, 4.6vw, 64px); --maxw: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1c1d; --paper-2: #122326; --card: #162a2c; --card-2: #1a3133;
    --ink: #f2ede1; --ink-2: #d2dcd6; --muted: #a2b4b0; --line: #2c4446; --line-soft: #223739;
    --edge: #3f5f60; --hard: #040a0b; --hard-soft: rgba(0, 0, 0, .35);
    --blue: #5b8cff; --blue-deep: #4170e6; --on-blue: #06132e;
    --sun-tint: #2f2a14; --coral-tint: #33201b; --mint-tint: #15302a; --lilac-tint: #251f3a; --blue-tint: #18264a;
    --table-depth: #0a1617; --table-top: #1f3b3b; --table-inner: #244444; --table-shine: rgba(255, 255, 255, .06); --table-edge: #4b6d6c;
    --live: #4fd3a0; --warn: #fb923c; --danger: #ff7a62; --focus: #8fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1c1d; --paper-2: #122326; --card: #162a2c; --card-2: #1a3133;
  --ink: #f2ede1; --ink-2: #d2dcd6; --muted: #a2b4b0; --line: #2c4446; --line-soft: #223739;
  --edge: #3f5f60; --hard: #040a0b; --hard-soft: rgba(0, 0, 0, .35);
  --blue: #5b8cff; --blue-deep: #4170e6; --on-blue: #06132e;
  --sun-tint: #2f2a14; --coral-tint: #33201b; --mint-tint: #15302a; --lilac-tint: #251f3a; --blue-tint: #18264a;
  --table-depth: #0a1617; --table-top: #1f3b3b; --table-inner: #244444; --table-shine: rgba(255, 255, 255, .06); --table-edge: #4b6d6c;
  --live: #4fd3a0; --warn: #fb923c; --danger: #ff7a62; --focus: #8fb0ff;
  color-scheme: dark;
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#app { display: flex; flex-direction: column; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--sun); color: #15333a; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1.5px solid var(--line); margin: 6px 0; }
q { quotes: "“" "”"; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
[hidden] { display: none !important; }
.noscript { padding: 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; color: var(--paper); }

/* Paper grain and soft pools of colour: the room feels lived-in, never flat. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 7% 3%, color-mix(in srgb, var(--sun) 12%, transparent), transparent 25rem),
    radial-gradient(circle at 94% 22%, color-mix(in srgb, var(--mint) 11%, transparent), transparent 30rem),
    radial-gradient(circle at 46% 96%, color-mix(in srgb, var(--lilac) 8%, transparent), transparent 28rem),
    radial-gradient(rgba(21, 51, 58, .042) 1px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px;
}

/* ── icons + characters ─────────────────────────────────────────────────── */
.icon { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.brand { fill: currentColor; stroke: none; }
.char { flex: 0 0 auto; overflow: visible; }
.char .c-line { stroke: var(--char-ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.char .c-fill { fill: var(--c, var(--peach)); }
.char .c-eye { fill: var(--char-ink); }
.char .c-mouth { fill: none; stroke: var(--char-ink); stroke-width: 2.2; stroke-linecap: round; }
.char .c-badge { fill: #fffdf7; }
.char .c-mono { font: 800 8.5px/1 var(--sans); fill: var(--char-ink); letter-spacing: .02em; }
.char .c-visor { stroke: rgba(255, 255, 255, .55); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.char .c-pointer { fill: #fffdf7; }
.char .c-dot { fill: var(--coral); }
.char .c-initial { font: 700 20px/1 var(--display); fill: var(--char-ink); }
.char .c-empty { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4.5; }
/* app-colors:begin (generated by web/scripts/app-icons.mjs; bodies from each icon's dominant colour) */
.char-claude-code { --c: #df8d72; --c-logo: #d97757; --c-tint: #f8e7e2; }
.char-codex { --c: #7d87f8; --c-logo: #7782ff; --c-tint: #dde0fd; }
.char-cursor { --c: #c7ccd1; --c-logo: #000000; --c-tint: #ebedef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .char-claude-code { --c: #d97757; } :root:not([data-theme="light"]) .char-codex { --c: #6c77ef; } :root:not([data-theme="light"]) .char-cursor { --c: #a0a8b0; } }
:root[data-theme="dark"] .char-claude-code { --c: #d97757; }
:root[data-theme="dark"] .char-codex { --c: #6c77ef; }
:root[data-theme="dark"] .char-cursor { --c: #a0a8b0; }
/* app-colors:end */
.char-other { --c: var(--peach); }
.char-person { --c: var(--sun); }
.char .c-fill, .char .c-badge { filter: drop-shadow(0 2.5px 0 rgba(21, 51, 58, .22)); }

/* ── logo (brand kit "Bloom Loop": exact colours, no effects; lockup >= 180px wide) ── */
:root { --brand-ink: #111425; --brand-hyphen: #315bf4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand-ink: #f7f4ec; --brand-hyphen: #3dcca5; } }
:root[data-theme="dark"] { --brand-ink: #f7f4ec; --brand-hyphen: #3dcca5; }
.brand-lockup { display: block; flex: none; width: 180px; height: 54px; }
.brand-lockup .brand-ink { fill: var(--brand-ink); }
.brand-lockup .brand-hyphen { fill: var(--brand-hyphen); }
.brand-mark { display: block; flex: none; }
/* Signed in on a narrow phone the account nav needs the room: the lockup can't go under 180px, so the mark stands alone. */
.logo .logo-compact { display: none; }
@media (max-width: 399.98px) { .nav:has(.me-btn) .logo-full { display: none; } .nav:has(.me-btn) .logo-compact { display: block; } }

/* ── nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); width: 100%; margin: 0 auto;
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-soft); opacity: 0; transition: opacity .3s; }
.logo { min-height: 44px; display: inline-flex; flex: none; align-items: center; margin-left: -8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 6px; }
.nav-link { min-height: 44px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .2s; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.count-dot { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border: 1.5px solid var(--char-ink); border-radius: 999px; background: var(--sun); color: #15333a; font: 800 13px/1 var(--sans); }
.count-dot.big { min-width: 30px; height: 30px; font-size: 14px; box-shadow: 0 2px 0 var(--hard); }
.menu-wrap { position: relative; }
.me-btn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .25s var(--spring); }
.me-btn:hover { transform: translateY(-2px) rotate(-4deg); }
.me-btn img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--edge); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(280px, calc(100vw - 32px)); padding: 8px;
  border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: 0 6px 0 var(--hard), 0 24px 48px -16px var(--hard-soft);
  animation: pop-in .22s var(--ease);
}
.menu-head { display: grid; gap: 2px; padding: 8px 10px 10px; }
.menu-head span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.menu-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--paper-2); color: var(--ink); outline-offset: -2px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--coral), var(--sun)); opacity: 0; }
.progress.on { opacity: 1; animation: load 1.6s var(--ease) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(.95); opacity: .4; } }

/* ── layout ─────────────────────────────────────────────────────────────── */
.main { flex: 1; width: 100%; }
.page { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 64px; animation: page-in .5s var(--ease) both; }
.page-narrow { max-width: calc(640px + 2 * var(--gutter)); }
.center-page { min-height: 60dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .lead { margin-top: 8px; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; margin-top: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.split-main { display: grid; gap: 14px; max-width: 520px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── type ───────────────────────────────────────────────────────────────── */
.display, .display-sm, .h1, .room-title, .need-title, .modal-title, .table-card-title { font-family: var(--display); font-optical-sizing: auto; }
.display { font-size: clamp(3.1rem, 1.4rem + 7vw, 7.3rem); font-weight: 560; line-height: .9; letter-spacing: -.045em; }
.display .line { display: block; }
.display .accent { color: var(--blue); }
.display em { font-style: italic; font-weight: 500; position: relative; z-index: 0; white-space: nowrap; }
.display em::after { content: ""; position: absolute; left: -.04em; right: -.02em; bottom: .02em; height: .16em; z-index: -1; background: var(--sun); border-radius: 4px; transform: rotate(-1deg) scaleX(0); transform-origin: left; animation: underline .9s .5s var(--ease) forwards; }
@keyframes underline { to { transform: rotate(-1deg) scaleX(1); } }
.display-sm { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.3rem); font-weight: 560; line-height: .98; letter-spacing: -.04em; }
.h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); font-weight: 560; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-family: var(--display); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); font-weight: 560; letter-spacing: -.035em; line-height: 1.04; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.lead.small { font-size: 1.08rem; }
.kicker { font: 800 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fine { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.fine .icon { margin-top: 1px; }
.help { font-size: 14px; color: var(--muted); line-height: 1.5; display: flex; gap: 6px; align-items: flex-start; }
.help .icon { margin-top: 3px; }
.eyebrow { width: fit-content; min-height: 32px; display: inline-flex; align-items: center; gap: 9px; padding: 4px 13px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 25%, transparent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--live) 8%, transparent); } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--card); --btn-fg: var(--ink);
  position: relative; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 22px; border: 2px solid var(--edge); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 4px 0 var(--hard); font-weight: 750; letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .2s, opacity .2s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--hard); color: var(--btn-fg); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hard); transition-duration: .06s; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .5; transform: none; box-shadow: 0 2px 0 var(--hard); }
.btn-primary { --btn-bg: var(--blue); --btn-fg: var(--on-blue); border-color: var(--char-ink); }
.btn-primary:hover { --btn-bg: var(--blue-deep); }
.btn-sun { --btn-bg: var(--sun); --btn-fg: #15333a; border-color: var(--char-ink); }
.btn-ghost { --btn-bg: var(--card); }
.btn-ghost:hover { --btn-bg: var(--card-2); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; border-color: var(--char-ink); }
.btn-danger-ghost { --btn-fg: var(--danger); border-color: color-mix(in srgb, var(--danger) 70%, var(--edge)); box-shadow: 0 3px 0 color-mix(in srgb, var(--danger) 40%, var(--hard)); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.08rem; box-shadow: 0 5px 0 var(--hard); }
.btn-lg:hover { box-shadow: 0 7px 0 var(--hard); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--hard); }
.btn-block { width: 100%; }
.btn .icon { transition: transform .25s var(--spring); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2.4px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.busy .spinner { display: inline-block; }
.btn.busy > .icon { display: none; }
.btn.copied { --btn-bg: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, transform .2s var(--spring); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); transform: rotate(-6deg); }
.btn-provider { --btn-bg: var(--card); width: 100%; justify-content: center; min-height: 54px; }
.g-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font: 800 13px/1 var(--sans); }
.back { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 6px -4px; padding: 0 8px 0 4px; border-radius: 999px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); background: var(--paper-2); }
.back .icon { transition: transform .25s var(--spring); }
.back:hover .icon { transform: translateX(-3px); }
.chip { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--edge); color: var(--ink); }

/* ── forms ──────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; }
.opt { font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--edge); border-radius: 16px; background: var(--card);
  font-size: 17px; transition: box-shadow .2s, border-color .2s; box-shadow: inset 0 2px 0 var(--hard-soft);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.prefix-wrap { position: relative; }
.prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-52%); font: 600 24px/1 var(--display); color: var(--muted); pointer-events: none; }
.input-prefixed { padding-left: 38px; font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.counter { justify-self: end; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.form-status { min-height: 1.4em; font-weight: 600; color: var(--danger); font-size: 15px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 2px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }

/* ── cards + panels ─────────────────────────────────────────────────────── */
.card { border: 2px solid var(--edge); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 6px 0 var(--hard), 0 30px 60px -30px var(--hard-soft); }
.panel { border: 2px solid var(--edge); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 5px 0 var(--hard); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 2px solid var(--edge); background: var(--card-2); }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font: 750 17px/1.2 var(--sans); letter-spacing: -.01em; }
.panel-meta { font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }
.panel-body { padding: 18px 20px 20px; }
.panel-foot { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: 1.5px solid var(--line); background: var(--card-2); color: var(--muted); font-size: 14px; }
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 22px; border: 2px solid var(--edge); border-radius: var(--r-md); box-shadow: 0 4px 0 var(--hard); }
.banner p { margin-top: 4px; color: var(--ink-2); }
.banner .icon { margin-top: 2px; }
.banner-sun { background: var(--sun-tint); }
.banner-coral { background: var(--coral-tint); }
.error-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 2px dashed color-mix(in srgb, var(--danger) 60%, var(--line)); border-radius: var(--r-md); background: color-mix(in srgb, var(--coral-tint) 55%, var(--card)); color: var(--ink-2); }
.error-box p { flex: 1 1 200px; }
.error-ic { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 14px; background: var(--coral); color: #15333a; box-shadow: 0 3px 0 var(--hard); transform: rotate(-4deg); }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1.5px solid var(--char-ink); border-radius: 999px; font: 800 13px/1 var(--sans); letter-spacing: .02em; color: #15333a; white-space: nowrap; }
.badge-owner { background: var(--sun); }
.badge-stuck { background: var(--coral); }
.badge-this { background: var(--mint); margin-left: 8px; }

/* skeletons */
.sk { display: block; border-radius: 12px; background: linear-gradient(100deg, var(--line-soft) 30%, var(--card-2) 50%, var(--line-soft) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.sk-block { height: 76px; margin-bottom: 12px; }
.sk-art { height: 96px; }
.sk-line { height: 14px; }
.w60 { width: 60%; } .w80 { width: 80%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.route-loading { display: grid; gap: 28px; min-height: 64dvh; align-content: start; }
.route-sk-head { display: grid; gap: 12px; width: min(560px, 100%); padding-top: 18px; }
.route-sk-title { width: min(360px, 72vw); height: clamp(44px, 7vw, 74px); border-radius: 22px; }
.route-sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.route-sk-card { min-height: 230px; display: grid; align-content: start; gap: 14px; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 72%, transparent); }
.route-sk-art { height: 126px; margin-bottom: 4px; }
@media (max-width: 760px) { .route-sk-grid { grid-template-columns: 1fr; } .route-sk-card:nth-child(n+2) { display: none; } }

/* empty states */
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 8px; text-align: center; }
.empty-state .muted { max-width: 38ch; }
.empty-title { font-weight: 750; font-size: 17px; }
.empty-tick { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 50%; background: var(--mint); color: #15333a; box-shadow: 0 3px 0 var(--hard); }
.empty-state.big { padding: 48px 16px; border: 2px dashed var(--line); border-radius: var(--r-lg); gap: 14px; }
.empty-art { position: relative; width: 240px; height: 130px; }
.empty-art .et-top { position: absolute; left: 20px; right: 20px; top: 46px; height: 60px; border: 2px solid var(--table-edge); border-radius: 50%; background: var(--table-top); box-shadow: 0 9px 0 var(--table-depth); }
.empty-art .char { position: absolute; }
.et-a { left: 92px; top: 0; } .et-b { left: 0; top: 66px; } .et-c { right: 0; top: 66px; }

/* ── the table ──────────────────────────────────────────────────────────── */
.table-scene { position: relative; width: 100%; aspect-ratio: 16 / 10; margin: 0 auto; }
.table-scene.compact { aspect-ratio: 4 / 3.3; }
.table-surface { position: absolute; left: 11%; right: 11%; top: 16%; width: 78%; height: 68%; overflow: visible; }
.t-shadow { fill: var(--hard-soft); filter: blur(10px); opacity: .42; }
.t-depth { fill: var(--table-depth); stroke: var(--table-edge); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.t-top { fill: var(--table-top); stroke: var(--table-edge); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.t-inner { fill: var(--table-inner); }
.t-shine { fill: var(--table-shine); }
.t-grain { fill: none; stroke: color-mix(in srgb, var(--table-edge) 16%, transparent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.t-grain-soft { opacity: .55; }
.table-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52%; pointer-events: none; }
.table-center > * { pointer-events: auto; }
.table-card {
  min-width: 150px; max-width: 100%; display: grid; justify-items: center; gap: 2px; padding: 14px 22px 12px;
  border: 2px solid var(--char-ink); border-radius: 14px; background: var(--sun); color: #15333a; box-shadow: 0 5px 0 rgba(21, 51, 58, .35);
  transform: rotate(-1.5deg); text-align: center;
}
.table-card-title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.table-card-sub { font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.seat {
  --seat-w: 108px;
  position: absolute; left: clamp(calc(var(--seat-w) / 2), var(--x), calc(100% - var(--seat-w) / 2)); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  width: var(--seat-w); display: grid; justify-items: center; gap: 1px; padding: 6px 4px; border: 0; border-radius: 16px; background: transparent; text-align: center; cursor: default;
  animation: seat-in .6s var(--spring) both; animation-delay: calc(var(--i) * 60ms);
}
button.seat { cursor: pointer; }
button.seat:hover .seat-char { transform: translateY(-4px) rotate(-3deg); }
button.seat:hover .seat-name { color: var(--blue); }
.seat-char { position: relative; display: block; isolation: isolate; transition: transform .3s var(--spring); }
.seat-char > .char { position: relative; z-index: 2; }
.seat-chair {
  position: absolute; left: 50%; top: 13px; z-index: 0; width: 45px; height: 34px; transform: translate(-50%, 5px);
  border: 2px solid var(--table-edge); border-bottom-width: 3px; border-radius: 18px 18px 10px 10px; background: color-mix(in srgb, var(--card) 82%, var(--table-top));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--hard) 55%, transparent); opacity: .72;
}
.seat-chair::before, .seat-chair::after { content: ""; position: absolute; bottom: -9px; width: 2px; height: 10px; border-radius: 2px; background: var(--table-edge); }
.seat-chair::before { left: 8px; transform: rotate(8deg); } .seat-chair::after { right: 8px; transform: rotate(-8deg); }
.seat-empty .seat-chair { opacity: 0; }
.seat-arrival-ring { position: absolute; left: 50%; top: 50%; z-index: -1; width: 58px; height: 58px; border: 2px solid var(--mint); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.55); }
.seat-sparks { position: absolute; inset: -10px; z-index: 4; pointer-events: none; }
.seat-sparks i { position: absolute; width: 7px; height: 7px; opacity: 0; transform: rotate(45deg); background: var(--sun); border: 1.5px solid var(--char-ink); }
.seat-sparks i:nth-child(1) { left: 1px; top: 9px; } .seat-sparks i:nth-child(2) { right: -1px; top: 2px; width: 5px; height: 5px; background: var(--coral); } .seat-sparks i:nth-child(3) { right: 4px; bottom: 4px; width: 4px; height: 4px; background: var(--mint); }
.seat-arriving .seat-char { animation: member-arrive .82s var(--spring) both; }
.seat-arriving .seat-chair { animation: chair-pull .82s var(--spring) both; }
.seat-arriving .seat-arrival-ring { animation: arrival-ring .85s var(--ease) both; }
.seat-arriving .seat-sparks i { animation: arrival-spark .7s var(--spring) both; }
.seat-arriving .seat-sparks i:nth-child(2) { animation-delay: 80ms; } .seat-arriving .seat-sparks i:nth-child(3) { animation-delay: 150ms; }
.table-scene.has-arrival .table-surface { animation: table-welcome .75s var(--ease); }
.seat-tag {
  position: relative; z-index: 3; max-width: 100%; display: grid; justify-items: center; margin-top: 3px; padding: 2px 8px 3px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 2px 0 var(--hard-soft);
  justify-self: center; width: max-content; max-width: calc(var(--seat-w) + 26px); padding-inline: 6px;
}
.seat-empty .seat-tag { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 60%, transparent); background: var(--card-2); box-shadow: none; }
.seat-name { max-width: 100%; font-weight: 800; font-size: 14px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-sub { max-width: 100%; font-size: 13px; color: var(--muted); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-empty .seat-name { font-weight: 650; color: var(--muted); }
.seat-mine .seat-char::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 26px; height: 4px; border-radius: 4px; background: var(--blue); transform: translateX(-50%); }
.seat-flag { position: absolute; left: -6px; top: -4px; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--char-ink); border-radius: 50%; background: var(--coral); color: #15333a; font: 900 13px/1 var(--sans); animation: wobble 2.6s ease-in-out infinite; }
.seat-crown { position: absolute; left: -8px; top: -8px; width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--char-ink); border-radius: 50%; background: var(--sun); color: #15333a; font-size: 13px; line-height: 1; }
.seat.no-enter { animation: none; }
@keyframes seat-in { from { opacity: 0; transform: translate(-50%, -30%) scale(.85); } }
@keyframes member-arrive { 0% { opacity: 0; transform: translateY(24px) scale(.68) rotate(7deg); } 65% { transform: translateY(-7px) scale(1.06) rotate(-3deg); } }
@keyframes chair-pull { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.8) rotate(8deg); } 70% { opacity: .8; transform: translate(-50%, 2px) scale(1.04) rotate(-2deg); } }
@keyframes arrival-ring { 35% { opacity: .85; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); } }
@keyframes arrival-spark { 0%, 30% { opacity: 0; transform: translateY(8px) rotate(45deg) scale(.2); } 62% { opacity: 1; transform: translateY(-3px) rotate(75deg) scale(1); } 100% { opacity: 0; transform: translateY(-10px) rotate(105deg) scale(.5); } }
@keyframes table-welcome { 45% { transform: scale(1.012); filter: saturate(1.12); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.table-scene.compact .seat { --seat-w: 88px; }
.table-scene.compact .seat-name { font-size: 13px; }
.table-scene.compact .seat-sub { display: none; }

/* ── landing: see the landing block at the end of this file ── */

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 2px solid var(--line-soft); padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; margin-left: -8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-2); }
.foot-links a:hover { background: var(--paper-2); }

/* ── auth ───────────────────────────────────────────────────────────────── */
.auth-page { display: grid; place-items: center; min-height: calc(100dvh - 68px - 120px); }
.auth-card { width: min(100%, 460px); display: grid; gap: 16px; padding: clamp(24px, 5vw, 40px); }
.auth-art { display: grid; place-items: center; margin-bottom: 4px; }
.mini-table { position: relative; width: 190px; height: 104px; }
.mini-top { position: absolute; left: 22px; right: 22px; top: 44px; height: 46px; border: 2px solid var(--table-edge); border-radius: 50%; background: var(--table-top); box-shadow: 0 7px 0 var(--table-depth); }
.mini-table .char { position: absolute; }
.mt-a { left: 4px; top: 22px; animation: bob 3.2s ease-in-out infinite; }
.mt-b { right: 4px; top: 22px; animation: bob 3.2s .6s ease-in-out infinite; }
.mt-c { left: 75px; top: 0; animation: bob 3.2s 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.provider-list { display: grid; gap: 12px; }
.dev-form { display: grid; gap: 14px; }

/* ── rooms list ─────────────────────────────────────────────────────────── */
.needs-stack { margin-bottom: 26px; }
.room-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-card {
  position: relative; height: 100%; display: grid; gap: 14px; padding: 18px 20px 20px; border: 2px solid var(--edge); border-radius: var(--r-lg);
  background: var(--card); box-shadow: 0 5px 0 var(--hard); text-decoration: none; color: var(--ink); transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.room-card:hover { color: var(--ink); transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 9px 0 var(--hard); }
.room-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--hard); }
.rc-table { position: relative; height: 92px; border-radius: 16px; background: var(--paper-2); overflow: hidden; }
.rc-top { position: absolute; left: 18%; right: 18%; top: 28%; height: 46%; border: 2px solid var(--table-edge); border-radius: 50%; background: var(--table-top); box-shadow: 0 6px 0 var(--table-depth); }
.rc-seat { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px; border: 2px solid var(--char-ink); border-radius: 6px; background: var(--coral); transition: transform .35s var(--spring); }
.room-card:hover .rc-seat { transform: translateY(-2px); }
.rc-seat:nth-child(3n) { background: #4d7cf0; } .rc-seat:nth-child(3n+1) { background: var(--sun); }
.rc-seat-empty { background: transparent !important; border-style: dashed; border-color: var(--muted); }
.rc-body { display: grid; gap: 4px; }
.rc-name { font: 600 28px/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.rc-purpose { color: var(--ink-2); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.rc-needs { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--sun-tint); font-size: 14px; font-weight: 700; }
.rc-go { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--edge); border-radius: 50%; background: var(--card); transition: transform .3s var(--spring), background .2s; }
.room-card:hover .rc-go { transform: translateX(3px); background: var(--sun); color: #15333a; }
.skeleton-card { pointer-events: none; }

/* ── what needs you ─────────────────────────────────────────────────────── */
.needs-list { display: grid; gap: 16px; }
/* Lists that grow without bound scroll inside their panel (js/scrollbox.js): header/footer stay, body scrolls. */
.panel:has(> .scroll-area.cap-panel) { display: flex; flex-direction: column; max-height: max(360px, 60vh); }
.panel:has(> .scroll-area.cap-panel) > :not(.scroll-area) { flex: none; }
.scroll-area { position: relative; min-height: 0; display: flex; flex-direction: column; }
.scroll-area.cap-panel { flex: 1 1 auto; }
.scroll-area.cap-list { max-height: max(240px, 44vh); }
.needs-panel:has(> .scroll-area.cap-panel) { max-height: none; } /* never cut a request off: Approve must always be reachable without scrolling inside the card (TG 14578) */
.scroll-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; /* no overscroll containment: at the end of the list (or when there is nothing to scroll) the page scrolls on (TG 15113) */ }
.scroll-body:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.scroll-area::before, .scroll-area::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 30px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.scroll-area::before { top: 0; background: linear-gradient(var(--card), transparent); }
.scroll-area::after { bottom: 0; background: linear-gradient(transparent, var(--card)); }
.scroll-area.fade-top::before, .scroll-area.fade-bottom::after { opacity: 1; }
.new-pill {
  position: absolute; top: 10px; left: 50%; z-index: 3; transform: translateX(-50%); min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; border: 2px solid var(--char-ink); border-radius: 999px; background: var(--blue); color: var(--on-blue);
  font: 800 14px/1 var(--sans); box-shadow: 0 3px 0 var(--hard); cursor: pointer; animation: pill-in .35s var(--spring);
}
.new-pill[hidden] { display: none; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.9); } }
.need {
  --tint: var(--sun-tint); --bar: var(--sun);
  position: relative; display: grid; gap: 14px; padding: 18px 18px 18px; border: 2px solid var(--edge); border-radius: var(--r-md);
  background: var(--tint); box-shadow: 0 4px 0 var(--hard); overflow: hidden; animation: need-in .5s var(--spring) both;
}
.need::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bar); border-bottom: 2px solid var(--edge); }
.need-person { --tint: var(--lilac-tint); --bar: var(--lilac); }
.need-move { --tint: var(--blue-tint); --bar: #7ea2ff; }
.need-stuck { --tint: var(--coral-tint); --bar: var(--coral); }
.need-cannot_wake { --tint: var(--coral-tint); --bar: var(--peach); }
.need-needs_you { --tint: var(--mint-tint); --bar: var(--mint); }
.need-new_device { --tint: var(--mint-tint); --bar: var(--mint); }
@keyframes need-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.need-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.need-kind { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 800 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.need-room { padding: 2px 8px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); text-transform: none; letter-spacing: 0; font-weight: 750; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.need-time { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.need-main { display: flex; gap: 14px; align-items: flex-start; }
.need-title { font-size: clamp(21px, 1.4vw + 14px, 26px); font-weight: 560; letter-spacing: -.025em; line-height: 1.12; overflow-wrap: anywhere; }
.need-meta { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.need-meta .need-line { display: block; }
.need-meta .need-line + .need-line { margin-top: 2px; }
.need-ic { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 14px; background: var(--mint); color: #15333a; }
.need-job { display: grid; gap: 3px; padding: 10px 12px; border-left: 3px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--card) 55%, transparent); overflow-wrap: anywhere; }
.untrusted-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.need-hint { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.need-fine { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.need-blocker { padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1.5px dashed var(--edge); font-weight: 650; font-size: 14px; }
.need-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.code-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.code-row > div { display: grid; gap: 6px; }
.code-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.match-code { display: inline-flex; gap: 6px; }
.mc-char { width: 46px; height: 56px; display: grid; place-items: center; border: 2px solid var(--edge); border-radius: 12px; background: var(--card); box-shadow: 0 3px 0 var(--hard); font: 700 30px/1 var(--mono); }
.mc-md .mc-char { width: 40px; height: 48px; font-size: 25px; }
.mc-sm .mc-char { width: 30px; height: 36px; font-size: 18px; border-radius: 8px; }
/* 6-character codes (K7Q-2MX): two groups of three, narrower boxes so the code fits a 390 px phone */
.mc-sep { align-self: center; font: 700 22px/1 var(--mono); color: var(--muted); padding: 0 2px; }
.match-code:has(.mc-sep) { gap: 4px; }
.match-code:has(.mc-sep) .mc-char { width: 38px; height: 50px; font-size: 26px; border-radius: 10px; }
.mc-md.match-code:has(.mc-sep) .mc-char { width: 34px; height: 44px; font-size: 22px; }
.mc-sm.match-code:has(.mc-sep) .mc-char { width: 26px; height: 32px; font-size: 16px; border-radius: 7px; }
.fp { font: 600 15px/1.3 var(--mono); letter-spacing: .02em; padding: 3px 8px; border-radius: 8px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1.5px solid var(--line); white-space: nowrap; }

/* ── room page ──────────────────────────────────────────────────────────── */
.room-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 4px 0 26px; }
.room-title-wrap { display: grid; gap: 8px; min-width: 0; }
.room-title { font-size: clamp(3rem, 1.8rem + 5.4vw, 6.4rem); font-weight: 560; letter-spacing: -.05em; line-height: .92; overflow-wrap: anywhere; }
.room-title.sm { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); }
.room-title .hash { color: var(--blue); margin-right: .02em; }
.purpose-row { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.room-purpose { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); overflow-wrap: anywhere; }
.purpose-form { display: flex; flex-wrap: wrap; gap: 8px; width: min(100%, 560px); }
.purpose-form .input { flex: 1 1 220px; min-height: 46px; }
.room-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 650; color: var(--muted); }
.fp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); }
.fp-chip code { font-size: 13px; font-weight: 650; }
.fp-chip-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.fp-chip.ok { border-color: color-mix(in srgb, var(--live) 70%, var(--line)); }
.fp-chip.ok .icon { color: var(--live); }
.fp-chip.bad { border-color: var(--danger); color: var(--danger); }
.here-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 2px solid var(--char-ink); border-radius: 999px; background: var(--card); font-weight: 800; box-shadow: 0 3px 0 var(--hard); }
.here-pill.is-live { background: var(--mint); color: #15333a; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.is-live .pulse { background: #15603f; animation: breathe 2s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(21, 96, 63, .2); }
.room-grid-layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .room-grid-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.col { display: grid; gap: 22px; min-width: 0; }
.col .panel + .panel { margin-top: 0; }
@media (max-width: 999px) {
  .room-grid-layout { display: flex; flex-direction: column; }
  .col { display: contents; }
  .needs-panel { order: 1; } .table-panel { order: 2; } .invite-panel { order: 3; } .person-panel { order: 4; } .activity-panel { order: 5; }
  .col .panel { width: 100%; }
}
.table-panel { background: var(--table-inner); }
.table-wrap { padding: 10px 12px 0; background: color-mix(in srgb, var(--table-top) 45%, var(--card)); border-bottom: 2px solid var(--edge); }
.roster { background: var(--card); }
.roster-list { list-style: none; margin: 0; padding: 6px; display: grid; }
.roster-item { width: 100%; min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; transition: background .2s; }
.roster-item:hover { background: var(--paper-2); }
.roster-list li + li .roster-item { border-top: 1.5px solid var(--line-soft); border-radius: 0; }
.roster-list li + li .roster-item:hover { border-radius: 14px; border-top-color: transparent; }
.ri-main { display: grid; gap: 1px; min-width: 0; }
.ri-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ri-top strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-job { color: var(--ink-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-sub { color: var(--muted); font-size: 13px; }
.turn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); max-width: 15em; text-align: right; line-height: 1.25; }
.turn-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.turn-live .turn-dot { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.turn-lg { font-size: 15px; text-align: left; max-width: none; }
@media (max-width: 560px) {
  .roster-item { grid-template-columns: auto minmax(0, 1fr); }
  .roster-item .turn { grid-column: 2; justify-self: start; text-align: left; }
}
.roster-empty { padding: 18px 20px; }
.people-list { list-style: none; margin: 0; padding: 8px 12px 0; display: grid; }
.person-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px; }
.person-row + .person-row { border-top: 1.5px solid var(--line-soft); }
.pr-name { flex: 1; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.invite-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 2px dashed var(--edge); border-radius: 16px; background: var(--card); }
.invite-box.is-off { opacity: .55; }
.invite-line { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.invite-line .kw { color: var(--blue); font-weight: 700; }
.invite-panel .help { margin-top: 12px; }
.invite-panel { background: var(--mint-tint); }
.invite-panel .panel-head { background: color-mix(in srgb, var(--mint) 35%, var(--card)); }
.copy-btn { flex: 0 0 auto; }
.pinv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pinv { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card-2); }
.pinv.is-fresh { border-color: var(--edge); background: var(--sun-tint); animation: need-in .5s var(--spring); }
.pinv-main { flex: 1; display: grid; min-width: 0; }
.pinv-url { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinv-state { font-size: 13px; color: var(--muted); font-weight: 650; }
.person-panel .panel-body { padding-top: 8px; }
.sealed-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; }
.activity { list-style: none; margin: 0; padding: 0; display: grid; }
.act { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; }
.act + .act { border-top: 1.5px solid var(--line-soft); }
.act-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); }
.act-message .act-ic { background: var(--blue-tint); color: var(--blue); }
.act-joined .act-ic, .act-person_joined .act-ic { background: var(--mint-tint); color: var(--live); }
.act-removed .act-ic, .act-left .act-ic, .act-person_left .act-ic { background: var(--coral-tint); color: var(--danger); }
.act span { overflow-wrap: anywhere; }
.act .arrow { color: var(--muted); }
.act time { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.activity-panel .help { margin-top: 12px; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 2px dashed var(--line); }

/* ── modals + sheets ────────────────────────────────────────────────────── */
dialog.modal {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--edge); border-radius: 28px;
  background: var(--card); color: var(--ink); box-shadow: 0 8px 0 var(--hard), 0 40px 80px -20px rgba(0, 0, 0, .45); overflow: auto;
}
dialog.modal[open] { animation: modal-in .35s var(--spring); }
dialog.modal::backdrop { background: color-mix(in srgb, #0b1a1c 58%, transparent); backdrop-filter: blur(3px); animation: fade-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-body { position: relative; display: grid; gap: 16px; padding: clamp(22px, 5vw, 32px); }
.modal-title { font-size: clamp(30px, 4vw + 10px, 40px); font-weight: 560; letter-spacing: -.035em; line-height: 1.02; }
.modal-title.small { font-size: clamp(26px, 3vw + 10px, 32px); }
.modal-lead { color: var(--ink-2); font-size: 16px; }
.modal-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 4px; }
.hc-mark { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 18px; background: var(--sun); color: #15333a; box-shadow: 0 4px 0 var(--hard); transform: rotate(-4deg); }
.hc-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--card-2); }
.hc-facts > div { display: grid; gap: 6px; }
.hc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card-2); }
.hc-step strong { display: block; }
.hc-step small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.hc-dot { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 50%; background: var(--card); color: #15333a; font-weight: 900; }
.is-done .hc-dot { background: var(--mint); }
.is-warn .hc-dot { background: var(--peach); }
.is-todo .hc-dot { background: var(--sun-tint); }
.hc-turnstile:empty { display: none; }
.hc-status { min-height: 1.3em; font-weight: 650; color: var(--danger); }
.hc-status:empty { display: none; }
dialog.sheet .modal-body { padding-top: 26px; }
.sheet-close { position: absolute; right: 12px; top: 12px; }
.sheet-hero { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.facts { margin: 0; display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.fact { display: grid; gap: 2px; padding: 11px 14px; background: var(--card-2); }
.fact + .fact { border-top: 1.5px solid var(--line); }
.fact dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 92dvh; }
  dialog.modal[open] { animation: sheet-up .4s var(--ease); }
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
}

/* ── toasts ─────────────────────────────────────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 400; display: grid; gap: 10px; width: min(460px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 13px 18px; border: 2px solid var(--char-ink); border-radius: 16px; background: #15333a; color: #fffdf7; font-weight: 650; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--spring); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast-success { background: var(--mint); color: #15333a; }
.toast-error { background: var(--coral); color: #15333a; }

/* ── new room, invites, devices, docs ───────────────────────────────────── */
.new-room-form { display: grid; gap: 20px; margin-top: 8px; }
.split-side { display: grid; gap: 14px; }
.split-side .table-scene { max-width: 520px; width: 100%; }
.invite-card { display: grid; gap: 16px; padding: clamp(24px, 5vw, 40px); margin-top: 8px; }
.invite-art { width: 96px; height: 96px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 50%; }
.invite-art.ok { border: 2px solid var(--char-ink); background: var(--mint); color: #15333a; box-shadow: 0 4px 0 var(--hard); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checklist .icon { color: var(--live); margin-top: 3px; }
.device-list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 12px; }
.device { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: 0 4px 0 var(--hard); }
.device.is-this { background: var(--mint-tint); }
.device.is-revoked { opacity: .6; box-shadow: none; }
.device-ic { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 14px; background: var(--lilac); color: #15333a; }
.device-main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.device-sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.device .warn { color: var(--danger); }
.docs-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: 260px minmax(0, 1fr); } .docs-aside { position: sticky; top: 92px; align-self: start; } }
.docs-aside { display: grid; gap: 16px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-left: 2px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.toc a:hover { border-color: var(--blue); color: var(--blue); }
.doc-raw { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.65; }
.prose h1 { font: 560 clamp(2.4rem, 1.6rem + 3vw, 3.8rem)/1 var(--display); letter-spacing: -.04em; margin-bottom: 20px; }
.prose h2 { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--display); letter-spacing: -.025em; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose .table-scroll { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); font-size: .88em; overflow-wrap: anywhere; }
.prose pre { padding: 16px 18px; border: 2px solid var(--edge); border-radius: 16px; background: #15333a; color: #f2ede1; overflow-x: auto; box-shadow: 0 4px 0 var(--hard); }
.prose pre code { padding: 0; background: none; font-size: 14px; overflow-wrap: normal; }
.prose em { color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 2px solid var(--edge); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.prose th { background: var(--card-2); font-size: 14px; }
.prose tr:last-child td { border-bottom: 0; }
.lost-art { width: 120px; height: 120px; display: grid; place-items: center; }

/* ── phone tuning ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav { height: 62px; }
  .page-head .btn { width: 100%; }
  .panel-head { padding: 10px 16px; }
  .panel-body { padding: 16px; }
  .need { padding: 16px 14px; }
  .mc-char { width: 42px; height: 52px; font-size: 27px; }
  .table-scene .seat-name { font-size: 13px; }
  .invite-box { flex-direction: column; align-items: stretch; padding: 12px; }
  .copy-btn { width: 100%; }
  .room-head { margin-bottom: 18px; }
  .here-pill { min-height: 36px; font-size: 14px; }
}
@media (max-width: 560px) { .panel:has(> .scroll-area.cap-panel) { max-height: max(340px, 55vh); } .needs-panel:has(> .scroll-area.cap-panel) { max-height: max(820px, 88vh); } .scroll-area.cap-list { max-height: max(220px, 40vh); } }
@media (max-width: 380px) { .mc-char { width: 38px; height: 48px; font-size: 24px; } }

/* ── view transitions + reduced motion ─────────────────────────────────── */
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .display em::after { transform: rotate(-1deg) scaleX(1); }
}
@media (forced-colors: active) {
  .btn, .card, .panel, .need { border: 2px solid CanvasText; }
  .char .c-fill { fill: Canvas; }
}

/* ── server-rendered chat invite page (/i/{invite}, template owned by server/) ── */
.invite-page { display: grid; gap: 16px; max-width: calc(680px + 2 * var(--gutter)); }
.invite-page.narrow { max-width: calc(680px + 2 * var(--gutter)); }
.invite-page > h1 { font: 560 clamp(2.6rem, 1.8rem + 4vw, 4.4rem)/.95 var(--display); letter-spacing: -.045em; }
.invite-page > h2 { font: 600 clamp(1.4rem, 1.2rem + .8vw, 1.8rem)/1.1 var(--display); letter-spacing: -.02em; margin-top: 14px; }
.invite-page .purpose { font-size: 1.2rem; color: var(--ink-2); }
.invite-page .members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.invite-page .members li { padding: 12px 14px; border: 2px solid var(--edge); border-radius: var(--r-sm); background: var(--card); box-shadow: 0 3px 0 var(--hard); overflow-wrap: anywhere; }
.invite-page ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.invite-page li::marker { color: var(--blue); font-weight: 800; }
.invite-page code { padding: 2px 7px; border-radius: 7px; background: var(--paper-2); overflow-wrap: anywhere; }
.invite-page .small { font-size: 14px; color: var(--muted); }
.invite-page a { min-height: 44px; display: inline-flex; align-items: center; }

/* "other" apps named at join (apptint.js): a generic bot tinted per name */
.char-tinted { --c: hsl(var(--app-hue, 25) 70% 78%); }
:root[data-theme="dark"] .char-tinted { --c: hsl(var(--app-hue, 25) 55% 66%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .char-tinted { --c: hsl(var(--app-hue, 25) 55% 66%); } }

/* ── admin (owner only, read only: views/admin.js) ──────────────────────── */
.adm-page .page-head { align-items: flex-start; }
.adm-head-side { display: grid; justify-items: end; gap: 10px; }
.adm-live { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.adm-body { display: grid; gap: 22px; }
.adm-body .panel + .panel { margin-top: 0; }
.adm-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .adm-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.adm-stat { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: 0 4px 0 var(--hard); min-width: 0; }
.adm-stat-label { font: 800 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-stat-value { font: 600 clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem)/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.adm-stat-sub { font-size: 14px; color: var(--muted); }
.adm-stat.is-bad { background: var(--coral-tint); }
.adm-stat.is-ok { background: var(--mint-tint); }
.adm-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1080px) { .adm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.adm-panel .panel-body { display: grid; gap: 14px; }
.adm-h3 { font: 750 15px/1.2 var(--sans); color: var(--ink-2); margin-top: 4px; }
.adm-health { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-dot { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; }
.adm-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.adm-dot.bad { border-color: var(--danger); color: var(--danger); }
.adm-dot.bad::before { background: var(--danger); }
.adm-kv { margin: 0; display: grid; gap: 0; }
.adm-kv > div { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1.5px solid var(--line-soft); }
.adm-kv > div:last-child { border-bottom: 0; }
.adm-kv dt { color: var(--muted); font-weight: 650; font-size: 14px; }
.adm-kv dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.adm-states { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .adm-states { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-states li { display: grid; gap: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card-2); }
.adm-states strong { font: 600 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.adm-states span { font-size: 14px; color: var(--muted); font-weight: 650; }
.adm-states .st-waiting { background: var(--sun-tint); }
.adm-states .st-stuck { background: var(--coral-tint); }
.adm-states .st-done { background: var(--mint-tint); }
.adm-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-reasons li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--card-2); font-size: 15px; }
.adm-reasons li.is-bad { background: var(--coral-tint); }
.adm-reasons strong { font-variant-numeric: tabular-nums; }
.adm-table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th, .adm-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--line-soft); }
.adm-table th { background: var(--card-2); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tr.is-bad td { background: color-mix(in srgb, var(--coral-tint) 70%, transparent); }
.adm-table tr.is-warn td { background: color-mix(in srgb, var(--sun-tint) 70%, transparent); }
.adm-table tr.is-gone td { color: var(--muted); }
.adm-code { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--paper-2); font-size: 13px; overflow-wrap: anywhere; }
td > .adm-code:first-child { margin-left: 0; }
.adm-room { font-weight: 700; white-space: nowrap; }
.adm-mail { overflow-wrap: anywhere; }
.adm-badge { margin-left: 8px; }
.adm-turn.is-live { color: var(--live); font-weight: 700; }
.adm-turn.is-gone { color: var(--muted); }
.adm-empty { padding: 4px 0; }
.adm-lock { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 8px auto 0; padding: clamp(24px, 5vw, 40px); text-align: center; }
.adm-lock .lead { margin: 0 auto; }
.adm-lock-ic { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 20px; background: var(--sun); color: #15333a; box-shadow: 0 4px 0 var(--hard); transform: rotate(-4deg); }
/* phones: each table row is a small card, each cell shows its column name */
@media (max-width: 720px) {
  .adm-head-side { justify-items: start; }
  .adm-table-wrap { overflow: visible; border: 0; }
  .adm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { margin-bottom: 10px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
  .adm-table tr.is-bad, .adm-table tr.is-warn { border-color: var(--edge); }
  .adm-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; text-align: right; border-bottom: 1px dashed var(--line-soft); }
  .adm-table td.num { text-align: right; }
  .adm-table tr.is-bad td, .adm-table tr.is-warn td { background: none; }
  .adm-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 800; text-align: left; }
  .adm-table td > * { min-width: 0; overflow-wrap: anywhere; }
  .adm-kv > div { grid-template-columns: 1fr; gap: 2px; }
}
.adm-more > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--ink-2); border-radius: 10px; }
.adm-more > summary:hover { color: var(--ink); }
.adm-more[open] > summary { margin-bottom: 10px; }

/* ── join request facts (item 9): who is asking, where it runs ─────────── */
.rq-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 4px 0 14px; padding: 12px 14px; border: 2px solid var(--edge); border-radius: 14px; background: var(--card); }
.rq-fact { display: contents; }
.rq-fact dt { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.rq-fact dd { margin: 0; font: 600 16px/1.35 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.rq-name dd { font-size: 20px; font-weight: 800; }
.rq-job dd { font: 500 15px/1.4 var(--sans, inherit); }
.rq-compact { margin: 0 0 6px; padding: 10px 12px; }
.rq-compact .rq-fact dd { font-size: 14px; }
.rq-compact .rq-name dd { font-size: 16px; }
.adm-capped { display: grid; gap: 10px; }

/* ── landing ("Your agent and their agent, in one room.", views/landing.js) ─────────
   The Bloom Loop's arcs are places: sun = a teammate's machine, blue = cloud, coral = local Mac, mint = a server.
   Everything sits on the dashboard's tokens (paper, ink outlines, press shadows, Fraunces + Figtree). */
.landing { overflow-x: clip; --lp-deep: #15333a; --lp-deep-2: #1d4148; --lp-on-deep: #f2ede1; --lp-on-deep-2: #c3d2ce; --lp-deep-line: rgba(242, 237, 225, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .landing { --lp-deep: #091516; --lp-deep-2: #12272a; --lp-deep-line: rgba(242, 237, 225, .12); } }
:root[data-theme="dark"] .landing { --lp-deep: #091516; --lp-deep-2: #12272a; --lp-deep-line: rgba(242, 237, 225, .12); }
.lp-z-team, .lp-w-team, .lp-zc-team, .lp-zb-team, .lp-zs-team { --z: var(--sun); --zt: var(--sun-tint); --zf: #15333a; }
.lp-z-cloud, .lp-w-cloud, .lp-zc-cloud, .lp-zb-cloud, .lp-zs-cloud { --z: var(--blue); --zt: var(--blue-tint); --zf: var(--on-blue); }
.lp-z-local, .lp-w-local, .lp-zc-local, .lp-zb-local, .lp-zs-local { --z: var(--coral); --zt: var(--coral-tint); --zf: #15333a; }
.lp-z-server, .lp-w-server, .lp-zc-server, .lp-zb-server, .lp-zs-server { --z: var(--mint); --zt: var(--mint-tint); --zf: #15333a; }
.landing [class*="lp-z"], .landing [class*="lp-w-"] { --zw: color-mix(in srgb, var(--z) 70%, var(--ink)); }
.lp-wrap { max-width: var(--maxw); margin: 0 auto; }
.lp-loop { flex: none; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

/* app icon tiles: the real icon on a light plate in both themes (dark glyphs stay crisp on dark pages) */
.lp-ic { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border: 1.5px solid var(--edge); border-radius: 12px; background: #fffdf7; box-shadow: 0 2px 0 var(--hard-soft); }
.lp-ic img { width: 66%; height: 66%; object-fit: contain; }
.lp-ic-fill img { width: 100%; height: 100%; }
.lp-ic-full { background: #000; }
.lp-ic-full img { width: 100%; height: 100%; object-fit: cover; }
.lp-ic-any { border-style: dashed; background: transparent; color: var(--ink-2); box-shadow: none; }

/* hero */
.lp-hero { position: relative; isolation: isolate; padding: clamp(20px, 4vw, 52px) var(--gutter) clamp(36px, 5vw, 64px); }
.lp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(36% 30% at 10% 52%, color-mix(in srgb, var(--sun) 14%, transparent), transparent 70%),
    radial-gradient(36% 30% at 90% 52%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 70%),
    radial-gradient(36% 30% at 10% 96%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 70%),
    radial-gradient(36% 30% at 90% 96%, color-mix(in srgb, var(--coral) 11%, transparent), transparent 70%);
}
.lp-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 980px; margin: 0 auto; }
.lp-eyebrow { gap: 10px; }
.lp-title.display { font-size: clamp(2.7rem, 1.2rem + 5.2vw, 5.6rem); line-height: .95; text-wrap: balance; }
.lp-hero-lead { max-width: 60ch; text-wrap: pretty; }
.lp-stage-hint { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* hero map: four islands around the room */
.lp-stage { position: relative; isolation: isolate; width: min(1240px, 100%); height: 540px; margin: clamp(32px, 5vw, 56px) auto 0; display: grid; grid-template-columns: 1fr 240px 1fr; grid-template-rows: 1fr 1fr; gap: 22px 0; }
.lp-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; max-width: none; }
.lp-wire { fill: none; stroke: var(--zw); stroke-width: 2; stroke-linecap: round; opacity: .6; transition: opacity .3s, stroke-width .3s; }
.lp-seal circle { fill: var(--card); stroke: var(--zw); stroke-width: 1.5; }
.lp-seal .icon { color: var(--zw); stroke-width: 2.4; }
.lp-seal { transition: opacity .3s; }
.lp-inspect .lp-wire { opacity: .14; }
.lp-inspect .lp-seal { opacity: .25; }
.lp-inspect .lp-wire.lp-on { opacity: 1; stroke-width: 3; }
.lp-inspect .lp-seal.lp-on { opacity: 1; }
.lp-draw .lp-wire { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: lp-draw 1.3s var(--ease) forwards; animation-delay: var(--d, 0s); }
.lp-draw .lp-seal { opacity: 0; animation: lp-fade .5s ease forwards; animation-delay: calc(var(--d, 0s) + .9s); }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-fade { to { opacity: 1; } }
.lp-zone { position: relative; }
.lp-zone::before { content: ""; position: absolute; inset: 0; z-index: 0; border: 2px solid color-mix(in srgb, var(--z) 55%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--zt) 75%, transparent); }
.lp-zone::after { content: ""; position: absolute; inset: 14px; z-index: 0; border: 2px dashed color-mix(in srgb, var(--z) 35%, transparent); border-radius: var(--r); }
.lp-z-team { grid-area: 1 / 1; --r: 46% 54% 40% 60% / 52% 46% 54% 48%; }
.lp-z-cloud { grid-area: 1 / 3; --r: 54% 46% 58% 42% / 46% 54% 46% 54%; }
.lp-z-server { grid-area: 2 / 1; --r: 42% 58% 50% 50% / 54% 44% 56% 46%; }
.lp-z-local { grid-area: 2 / 3; --r: 58% 42% 46% 54% / 46% 56% 44% 54%; }
.lp-zlabel { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px 0 10px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); box-shadow: 0 2px 0 var(--hard-soft); font: 800 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.lp-zlabel i { width: 11px; height: 11px; border: 1.5px solid var(--char-ink); border-radius: 50%; background: var(--z); }
.lp-zlabel em { font-style: normal; color: var(--muted); letter-spacing: .02em; }
.lp-z-team .lp-zlabel { top: -8px; left: 8%; } .lp-z-cloud .lp-zlabel { top: -8px; right: 8%; }
.lp-z-server .lp-zlabel { bottom: -8px; left: 8%; } .lp-z-local .lp-zlabel { bottom: -8px; right: 8%; }
.lp-chat {
  position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 220px; min-height: 60px;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 12px 9px 12px;
  border: 2px solid var(--edge); border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 4px 0 var(--hard); transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .2s;
}
.lp-chat::after { content: ""; position: absolute; left: -2px; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--z); }
.lp-chat:hover, .lp-chat:focus-visible, .lp-chat[aria-pressed="true"] { transform: translate(-50%, calc(-50% - 3px)); box-shadow: 0 7px 0 var(--hard), 0 0 0 4px color-mix(in srgb, var(--z) 30%, transparent); }
.lp-chat-meta { min-width: 0; }
.lp-chat b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chat small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chat-dot { align-self: start; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }
.lp-z-cloud .lp-c1 { --x: 30%; --y: 66%; } .lp-z-cloud .lp-c2 { --x: 72%; --y: 50%; } .lp-z-cloud .lp-c3 { --x: 44%; --y: 24%; }
.lp-z-team .lp-c1 { --x: 70%; --y: 64%; } .lp-z-team .lp-c2 { --x: 28%; --y: 36%; }
.lp-z-local .lp-c1 { --x: 30%; --y: 34%; } .lp-z-local .lp-c2 { --x: 72%; --y: 50%; } .lp-z-local .lp-c3 { --x: 44%; --y: 77%; }
.lp-z-server .lp-c1 { --x: 70%; --y: 30%; } .lp-z-server .lp-c2 { --x: 28%; --y: 52%; } .lp-z-server .lp-c3 { --x: 64%; --y: 78%; }
.lp-hub { grid-area: 1 / 2 / 3 / 3; position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.lp-hub-disc { position: relative; width: 196px; height: 196px; display: grid; place-items: center; border: 2px solid var(--edge); border-radius: 50%; background: var(--card); box-shadow: 0 7px 0 var(--hard), 0 30px 60px -24px var(--hard-soft); }
.lp-hub-disc::before, .lp-hub-disc::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed var(--line); pointer-events: none; }
.lp-hub-disc::before { inset: -40px; }
.lp-hub-disc::after { inset: -84px; opacity: .6; }
.lp-hub-disc .lp-loop { width: 120px; height: 120px; }
.lp-hub-tag { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border: 2px solid var(--char-ink); border-radius: 999px; background: var(--lp-deep); color: var(--lp-on-deep); font: 600 13px/1 var(--mono); white-space: nowrap; box-shadow: 0 3px 0 var(--hard); }
.lp-hub-tag .icon { color: var(--mint); }

/* section scaffolding */
.lp-block { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lp-h2 { text-wrap: balance; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); }
.lp-sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.lp-sec-lead { justify-self: end; }

/* what can connect */
.lp-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-pair { position: relative; padding: 24px 24px 26px; border: 2px solid var(--edge); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 5px 0 var(--hard); transition: transform .3s var(--spring), box-shadow .3s var(--ease); }
.lp-pair:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 9px 0 var(--hard); }
.lp-duo { display: flex; align-items: center; margin-bottom: 20px; }
.lp-duo .lp-ic { width: 52px; height: 52px; border-radius: 15px; }
.lp-bridge { position: relative; flex: 1; max-width: 96px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 10px); opacity: .9; }
.lp-bridge .lp-loop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px; border-radius: 50%; background: var(--card); width: 30px; height: 30px; }
.lp-names { margin-bottom: 6px; font: 600 13px/1.3 var(--mono); color: var(--muted); }
.lp-pair h3, .lp-wcard h3 { font: 600 23px/1.12 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.lp-pair p:not(.lp-names), .lp-wcard p { color: var(--ink-2); }
.lp-same { position: absolute; top: 20px; right: 20px; padding: 3px 10px; border: 1.5px solid var(--line); border-radius: 999px; font: 800 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lp-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.lp-wcard { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 30px; border: 2px solid var(--edge); border-radius: var(--r-lg); box-shadow: 0 5px 0 var(--hard); }
.lp-wcard p { max-width: 46ch; }
.lp-wcard-places { background: var(--lp-deep); border-color: var(--char-ink); }
.lp-wcard-places h3 { color: var(--lp-on-deep); }
.lp-wcard-places p { color: var(--lp-on-deep-2); }
.lp-wcard-people { background: var(--sun-tint); }
.lp-places { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-place { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 800 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-on-deep); }
.lp-pin { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 16px; background: var(--z); color: var(--zf); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.lp-seg { position: relative; flex: 1; height: 2px; margin-bottom: 30px; background: repeating-linear-gradient(90deg, rgba(242, 237, 225, .4) 0 5px, transparent 5px 10px); }
.lp-seg .lp-loop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px; border-radius: 50%; background: var(--lp-deep); }
.lp-people { display: flex; align-items: center; gap: 14px; }
.lp-person { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 2px solid var(--edge); border-radius: 16px; background: var(--card); box-shadow: 0 3px 0 var(--hard); }
.lp-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 50%; background: var(--z); color: var(--zf); font: 700 17px/1 var(--display); }
.lp-person b { display: block; font-size: 15px; line-height: 1.2; }
.lp-person small { display: block; font-size: 13px; color: var(--muted); }

/* how it works */
.lp-how { background: var(--paper-2); border-block: 2px solid var(--line-soft); }
.lp-how .kicker { color: var(--ink-2); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr; gap: 18px; }
.lp-step { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 22px; border: 2px solid var(--edge); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 5px 0 var(--hard); }
.lp-step h3 { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.lp-step p { color: var(--ink-2); font-size: 15.5px; }
.lp-num { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 50%; background: var(--z); color: var(--zf); font: 700 16px/1 var(--sans); box-shadow: 0 2px 0 var(--hard); }
.lp-art { flex: 1; display: grid; place-items: center; padding: 24px 0; }
.lp-step-key { background: var(--lp-deep); border-color: var(--char-ink); }
.lp-step-key h3 { color: var(--lp-on-deep); }
.lp-step-key > p { color: var(--lp-on-deep-2); }
.lp-mini { width: 100%; max-width: 230px; padding: 14px; border: 2px solid var(--edge); border-radius: 16px; background: var(--card-2); box-shadow: 0 3px 0 var(--hard); }
.lp-lbl { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lp-room-name { margin: 6px 0 12px; font: 600 24px/1 var(--display); letter-spacing: -.03em; }
.lp-room-name .hash { color: var(--blue); }
.lp-slots { display: flex; gap: 6px; }
.lp-slots span { width: 32px; height: 32px; border: 2px dashed var(--line); border-radius: 10px; }
.lp-slots span:first-child { border: 2px solid var(--edge); background: var(--blue-tint); }
.lp-pane { width: 100%; max-width: 250px; overflow: hidden; border: 2px solid var(--char-ink); border-radius: 14px; background: #15333a; color: #c3d2ce; font: 500 13px/1.6 var(--mono); box-shadow: 0 4px 0 var(--hard); }
:root[data-theme="dark"] .lp-pane { background: #050c0d; border-color: var(--edge); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-pane { background: #050c0d; border-color: var(--edge); } }
.lp-pane-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(242, 237, 225, .12); color: #f2ede1; }
.lp-pane-bar .lp-ic { width: 24px; height: 24px; border-radius: 7px; border-width: 1px; }
.lp-pane-body { padding: 10px 12px 12px; }
.lp-p { color: var(--sun); }
.lp-ok { color: var(--mint); }
.lp-tok { padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: #fff; }
.lp-moment { width: 100%; display: grid; gap: 14px; }
.lp-codebox { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1.5px solid rgba(127, 217, 182, .45); border-radius: 10px; background: rgba(127, 217, 182, .1); }
.lp-codebox small, .lp-code small { display: inline-flex; align-items: center; gap: 4px; font: 800 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.lp-codebox .mc-sep { color: #c3d2ce; }
.lp-codebox .mc-char { background: #fffdf7; color: #15333a; border-color: #15333a; box-shadow: none; }
.lp-browser { justify-self: end; width: 100%; max-width: 300px; overflow: hidden; border: 2px solid var(--char-ink); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.lp-browser-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1.5px solid var(--line); background: var(--card-2); }
.lp-browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.lp-url { margin-left: 6px; flex: 1; display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--card); font: 500 13px/1.3 var(--mono); color: var(--muted); }
.lp-browser-body { padding: 13px 14px 14px; }
.lp-q { margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.lp-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.lp-who .lp-ic { width: 26px; height: 26px; border-radius: 8px; border-width: 1px; }
.lp-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 12px; padding: 8px 10px; border: 1.5px solid color-mix(in srgb, var(--mint) 70%, var(--edge)); border-radius: 10px; background: var(--mint-tint); }
.lp-code small { color: var(--live); }
:root:not([data-theme="dark"]) .lp-code small { color: #1f7a57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-code small { color: var(--live); } }
.lp-acts { display: flex; gap: 8px; }
.lp-acts span { flex: 1; padding: 7px 0; border: 2px solid var(--edge); border-radius: 999px; background: var(--card); text-align: center; font-weight: 800; font-size: 14px; box-shadow: 0 2px 0 var(--hard); }
.lp-acts .lp-yes { background: var(--blue); color: var(--on-blue); border-color: var(--char-ink); }
.lp-handoff { width: 100%; max-width: 230px; display: flex; flex-direction: column; gap: 10px; }
.lp-hchip { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border: 2px solid var(--edge); border-radius: 14px; background: var(--card-2); box-shadow: 0 3px 0 var(--hard); }
.lp-hchip .lp-ic { width: 32px; height: 32px; border-radius: 9px; }
.lp-hchip b { display: block; font-size: 14px; line-height: 1.2; }
.lp-hchip small { display: block; font-size: 13px; color: var(--muted); }
.lp-hmid { display: flex; align-items: center; gap: 8px; padding-left: 20px; font: 500 13px/1 var(--mono); color: var(--muted); }
.lp-hmid::before { content: ""; width: 2px; height: 28px; margin-right: 2px; background: var(--line); }

/* safety */
.lp-safety { background: var(--lp-deep); color: var(--lp-on-deep); }
.lp-safety .lp-h2 { color: var(--lp-on-deep); }
.lp-safety .kicker { color: var(--lp-on-deep-2); }
.lp-safety .lp-sec-lead { color: var(--lp-on-deep-2); justify-self: start; margin-top: 18px; }
.lp-safe-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lp-seal-art { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin-top: 48px; display: grid; place-items: center; }
.lp-seal-art::before, .lp-seal-art::after { content: ""; position: absolute; border-radius: 50%; }
.lp-seal-art::before { inset: 4%; border: 2px dashed rgba(242, 237, 225, .2); }
.lp-seal-art::after { inset: -6%; border: 2px solid rgba(242, 237, 225, .08); }
.lp-seal-art .lp-loop { width: 62%; height: 62%; }
.lp-stamp { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 2px solid rgba(242, 237, 225, .25); border-radius: 999px; background: var(--lp-deep-2); font: 600 13px/1 var(--mono); color: var(--lp-on-deep); white-space: nowrap; }
.lp-stamp .icon { color: var(--mint); }
.lp-rules { list-style: none; margin: 0; padding: 0; }
.lp-rules li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-top: 2px solid var(--lp-deep-line); }
.lp-rules li:last-child { border-bottom: 2px solid var(--lp-deep-line); }
.lp-k { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--char-ink); border-radius: 14px; background: var(--z); color: var(--zf); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.lp-rules h3 { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 6px; color: var(--lp-on-deep); }
.lp-rules p { max-width: 52ch; color: var(--lp-on-deep-2); }

/* apps */
.lp-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lp-app { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px 14px 14px; border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: 0 4px 0 var(--hard); transition: transform .3s var(--spring); }
.lp-app:hover { transform: translateY(-3px); }
.lp-app .lp-ic { width: 48px; height: 48px; border-radius: 14px; }
.lp-app b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; }
.lp-app small { display: block; margin-top: 2px; font: 500 13px/1.2 var(--mono); color: var(--muted); }
.lp-app-any { grid-column: 1 / -1; border-style: dashed; background: transparent; box-shadow: none; }
.lp-legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.lp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lp-legend i { width: 12px; height: 12px; border: 1.5px solid var(--char-ink); border-radius: 50%; background: var(--z); }

/* closing call */
.lp-cta { padding: 0 var(--gutter) clamp(64px, 9vw, 120px); }
.lp-cta-card { position: relative; max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 7vw, 92px) clamp(22px, 5vw, 64px); border: 2px solid var(--edge); border-radius: 36px; background: var(--card); box-shadow: 0 8px 0 var(--hard); overflow: hidden; }
.lp-cta-card::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; pointer-events: none; background: radial-gradient(50% 50% at 25% 50%, color-mix(in srgb, var(--sun) 18%, transparent), transparent 70%), radial-gradient(50% 50% at 75% 50%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%); }
.lp-cta-card > * { position: relative; }
.lp-orbit { width: 156px; height: 156px; display: grid; place-items: center; margin-bottom: 34px; }
.lp-orbit::before { content: ""; position: absolute; inset: 0; border: 2px dashed var(--line); border-radius: 50%; }
.lp-orbit .lp-loop { width: 92px; height: 92px; }
.lp-sat { position: absolute; width: 36px; height: 36px; border-radius: 11px; }
.lp-s1 { top: -10px; left: 50%; transform: translateX(-50%) rotate(-6deg); } .lp-s2 { right: -10px; top: 50%; transform: translateY(-50%) rotate(5deg); }
.lp-s3 { bottom: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg); } .lp-s4 { left: -10px; top: 50%; transform: translateY(-50%) rotate(6deg); }
.lp-cta-title { max-width: 14ch; }
.lp-cta-lead { margin: 16px auto 30px; }

/* launch (between people): one command, demo slot, sees / never sees, tested apps, legal links */
.lp-ic-bot { background: var(--card); }
.lp-ic-bot svg { width: 86%; height: 86%; }
.lp-free { margin: -4px 0 0; font-weight: 700; color: var(--ink-2); }
.lp-cmd { width: min(720px, 100%); margin-top: 6px; text-align: left; }
.lp-cmd-lbl { margin: 0 0 8px; font: 800 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-cmd-row { display: flex; align-items: stretch; gap: 10px; }
.lp-cmd-code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px 14px; border: 2px solid var(--char-ink); border-radius: 14px; background: #15333a; color: #f2ede1; font: 500 14px/1.45 var(--mono); overflow-wrap: anywhere; box-shadow: 0 3px 0 var(--hard); }
.lp-cmd-copy { flex: none; min-height: 48px; }
.lp-cmd-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.lp-video { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }
.lp-video-slot { max-width: 960px; margin: 0 auto; }
.lp-video-frame { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: clamp(18px, 4vw, 48px); border: 3px dashed var(--line); border-radius: var(--r-lg); background: var(--paper-2); text-align: center; }
.lp-video-badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--card); font: 800 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.lp-video-msg { margin: 0; font: 600 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.15 var(--display); color: var(--ink); }
.lp-video-sub { margin: 0; max-width: 56ch; color: var(--ink-2); }
.lp-video-slot figcaption { margin-top: 10px; text-align: center; color: var(--muted); }
.lp-between .lp-pair { display: flex; flex-direction: column; gap: 10px; }
.lp-k-light { margin-bottom: 6px; }
.lp-zs-cloud .lp-k-light, .lp-between .lp-pair:nth-child(1) .lp-k { --z: var(--sun); --zf: #15333a; }
.lp-between .lp-pair:nth-child(2) .lp-k { --z: var(--blue); --zf: var(--on-blue); }
.lp-between .lp-pair:nth-child(3) .lp-k { --z: var(--mint); --zf: #15333a; }
.lp-solo { margin: 26px 0 0; max-width: 72ch; padding: 16px 18px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--ink-2); }
.lp-safety .lp-sec-lead { justify-self: start; margin-top: 12px; }
.lp-sees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(28px, 4vw, 44px); }
.lp-sees { padding: 26px; border: 2px solid var(--lp-deep-line); border-radius: var(--r-lg); background: var(--lp-deep-2); }
.lp-sees h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--lp-on-deep); }
.lp-sees ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.lp-sees li { color: var(--lp-on-deep-2); }
.lp-sees-more { margin: 26px 0 0; max-width: 80ch; color: var(--lp-on-deep-2); }
.lp-sees-link { margin: 6px 0 0; }
.lp-link-light { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--lp-on-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lp-tested { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-trow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border: 2px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: 0 4px 0 var(--hard); }
.lp-trow .lp-ic { width: 48px; height: 48px; border-radius: 14px; }
.lp-tmeta b { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; }
.lp-tmeta p { margin: 2px 0 0; color: var(--ink); }
.lp-tmeta small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.lp-tverdict { padding: 5px 12px; border: 1.5px solid var(--edge); border-radius: 999px; font: 800 13px/1.2 var(--sans); white-space: nowrap; color: #15333a; }
.lp-t-yes .lp-tverdict { background: var(--mint); }
.lp-t-partly .lp-tverdict { background: var(--sun); }
.lp-t-no .lp-tverdict { background: var(--card-2); color: var(--ink); }
.lp-tested-note { margin: 18px 0 0; max-width: 80ch; color: var(--ink-2); }
.lp-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 26px 0 0; }
.lp-legal a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .lp-cmd-row { flex-direction: column; }
  .lp-sees-grid { grid-template-columns: 1fr; }
  .lp-sees { padding: 20px; }
  .lp-trow { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .lp-trow .lp-ic { width: 38px; height: 38px; border-radius: 11px; }
  .lp-tverdict { grid-column: 2; justify-self: start; }
  .lp-video-frame { aspect-ratio: auto; min-height: 260px; padding-top: 52px; }
}

/* responsive */
@media (max-width: 1180px) {
  .lp-stage { grid-template-columns: 1fr 200px 1fr; }
  .lp-chat { width: 196px; }
  .lp-hub-disc { width: 166px; height: 166px; } .lp-hub-disc .lp-loop { width: 100px; height: 100px; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-step { min-height: 340px; }
}
@media (max-width: 1000px) {
  .lp-chat.lp-c3 { display: none; }
  .lp-z-cloud .lp-c1, .lp-z-local .lp-c1 { --x: 36%; } .lp-z-cloud .lp-c2, .lp-z-local .lp-c2 { --x: 64%; }
  .lp-z-team .lp-c1, .lp-z-server .lp-c1 { --x: 64%; } .lp-z-team .lp-c2, .lp-z-server .lp-c2 { --x: 36%; }
  .lp-z-cloud .lp-c2, .lp-z-team .lp-c2 { --y: 32%; } .lp-z-local .lp-c2, .lp-z-server .lp-c2 { --y: 68%; }
  .lp-pairs { grid-template-columns: 1fr 1fr; }
  .lp-sec-head, .lp-wide, .lp-safe-grid { grid-template-columns: 1fr; }
  .lp-sec-lead { justify-self: start; }
  .lp-seal-art { margin: 40px auto 0; width: min(280px, 80%); }
}
@media (max-width: 760px) {
  .lp-stage { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 140px 10px; }
  .lp-z-team { grid-area: 1 / 1; } .lp-z-cloud { grid-area: 1 / 2; } .lp-z-server { grid-area: 2 / 1; } .lp-z-local { grid-area: 2 / 2; }
  .lp-zone { display: flex; flex-direction: column; gap: 10px; padding: 44px 9px 16px; }
  .lp-z-server, .lp-z-local { padding: 16px 9px 44px; }
  .lp-zone::after { inset: 7px; }
  .lp-zlabel { min-height: 28px; padding: 0 9px 0 8px; gap: 6px; letter-spacing: .04em; }
  .lp-zlabel em { display: none; }
  .lp-z-team .lp-zlabel, .lp-z-server .lp-zlabel { left: 10px; } .lp-z-cloud .lp-zlabel, .lp-z-local .lp-zlabel { right: 10px; left: auto; }
  .lp-z-team .lp-zlabel, .lp-z-cloud .lp-zlabel { top: 9px; } .lp-z-server .lp-zlabel, .lp-z-local .lp-zlabel { bottom: 9px; top: auto; }
  .lp-chat { position: relative; left: auto; top: auto; transform: none; width: 100%; min-height: 56px; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 8px 8px 8px 10px; border-radius: 13px; box-shadow: 0 3px 0 var(--hard); }
  .lp-chat:hover, .lp-chat:focus-visible, .lp-chat[aria-pressed="true"] { transform: translateY(-2px); }
  .lp-chat .lp-ic { width: 30px; height: 30px; border-radius: 9px; }
  .lp-chat b { font-size: 14px; }
  .lp-chat small { white-space: normal; }
  .lp-chat-dot { display: none; }
  .lp-chat::after { top: 10px; bottom: 10px; }
  .lp-hub { grid-area: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .lp-hub-disc { width: 92px; height: 92px; box-shadow: 0 4px 0 var(--hard); }
  .lp-hub-disc::before { inset: -18px; } .lp-hub-disc::after { display: none; }
  .lp-hub-disc .lp-loop { width: 56px; height: 56px; }
  .lp-hub-tag { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-height: 28px; padding: 0 10px; }
  .lp-pairs, .lp-steps { grid-template-columns: 1fr; }
  .lp-pair { padding: 20px; }
  .lp-step { min-height: 0; }
  .lp-wcard { padding: 22px; min-height: 0; }
  .lp-pin { width: 48px; height: 48px; }
  .lp-place { font-size: 13px; letter-spacing: .02em; text-align: center; }
  .lp-people { flex-direction: column; align-items: stretch; }
  .lp-people > .lp-loop { align-self: center; }
  .lp-apps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-app { padding: 12px; gap: 10px; }
  .lp-app .lp-ic { width: 38px; height: 38px; border-radius: 11px; }
  .lp-app b { font-size: 14px; }
  .lp-rules li { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; }
  .lp-rules .lp-k { width: 44px; height: 44px; }
  .lp-cta-card { border-radius: 26px; }
  .lp-actions { width: 100%; }
  .lp-actions .btn { width: 100%; }
}
@media (max-width: 380px) { .lp-places .lp-place { font-size: 13px; } .lp-seg .lp-loop { display: none; } }
@media (prefers-reduced-motion: reduce) { .lp-draw .lp-wire { stroke-dashoffset: 0; animation: none; } .lp-draw .lp-seal { opacity: 1; animation: none; } }

/* nav: section links (landing, wide screens) + theme switch (signed out) */
.nav-sections { display: none; }
@media (min-width: 1100px) { body[data-route="landing"] .nav-sections { display: inline-flex; } }
.theme-btn .icon { transition: transform .3s var(--spring); }
.theme-btn:hover .icon { transform: rotate(-20deg); }
/* the approval moment: compact code boxes so code + label fit the mock panes */
.lp-codebox, .lp-code { flex-wrap: wrap; }
.lp-moment .match-code:has(.mc-sep) { gap: 3px; }
.lp-moment .match-code:has(.mc-sep) .mc-char { width: 22px; height: 28px; font-size: 14px; border-radius: 6px; border-width: 1.5px; box-shadow: none; }
.lp-moment .mc-sep { font-size: 14px; padding: 0; }

/* ── calm pass (TG 14610): proof lives behind "Details"; the main surface says one plain line ───────── */
.more { font-size: 14px; color: var(--muted); }
.more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; border-radius: 10px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.more > summary:hover { color: var(--ink); }
.more > summary:focus-visible { outline: 3px solid var(--focus, var(--blue)); outline-offset: 2px; }
.more-body { display: grid; gap: 8px; padding: 2px 0 6px; overflow-wrap: anywhere; }
.more-body p { margin: 0; }
.more-body .fp { font-size: 13px; }
.trust-chip { display: inline-flex; align-items: center; gap: 6px; }
.room-meta details.fp-chip { display: inline-block; min-height: 0; padding: 0; border: 0; background: none; }
.room-meta details.fp-chip > summary { min-height: 30px; padding: 2px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 650; }
.room-meta details.fp-chip.ok > summary { border-color: color-mix(in srgb, var(--live) 70%, var(--line)); }
.room-meta details.fp-chip.ok > summary .icon { color: var(--live); }
.room-meta details.fp-chip[open] .more-body { margin-top: 8px; max-width: 420px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.panel-sub { margin: 0 0 8px; font-size: 15px; font-weight: 750; color: var(--ink); }
.panel-split { border-top: 1.5px dashed var(--line); margin-top: 18px; padding-top: 16px; }
/* human check: the way out when there's no phone or key (launch plan #4) */
.hc-alt { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.hc-alt[hidden] { display: none; }
.hc-alt-link { font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px 2px; min-height: 32px; cursor: pointer; }
