/* Syncify design system: one stylesheet, no build step.

   Brand: signal blue #1c62f5 means "a real person is here" or "the main action"; night navy
   #131a29 is ink, your own sessions and the focus room. Neutrals are cool greys tuned to navy.
   Type: Instrument Sans (variable, 400–700) for everything; headings at 600 with tight tracking,
   times in tabular figures. Layout: 4 px spacing scale, calm Swiss grid, hairline borders and
   soft shadows only where something floats. Motion answers an action or shows a state change
   (the two halves of the S lock when two people are together); landing sections fade in once
   when scrolled to. Everything moving stops under prefers-reduced-motion.

   Order: tokens · base · layout · brand · icons · header/nav · buttons · forms · feedback ·
   surfaces · dialog · page parts · landing · auth · dashboard · invitations · focus room ·
   social · settings · legal/errors · admin · consent · motion. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------ */

:root {
  /* Brand scales */
  --blue-50: #eef3ff;
  --blue-100: #dde8fe;
  --blue-200: #bcd0fd;
  --blue-300: #8fb1ff;
  --blue-600: #1c62f5;
  --blue-700: #1450d6;
  --blue-800: #123fa8;
  --navy-950: #0c1120;
  --navy-900: #131a29;
  --navy-800: #1b2333;
  --navy-700: #263049;
  --navy-600: #364262;
  --navy-500: #5d6c90;
  --gray-25: #fbfbfc;
  --gray-50: #f6f7f9;
  --gray-100: #eff1f5;
  --gray-150: #e8ebf0;
  --gray-200: #e1e5eb;
  --gray-300: #cdd3dc;
  --gray-400: #8b95a8;
  --gray-600: #5f6b80;
  --gray-700: #3a4459;
  --green-50: #e9f6ef;
  --green-200: #b5e0c8;
  --green-600: #13915a;
  --green-700: #0f7a4a;
  --red-50: #fdeeeb;
  --red-200: #f3c4bc;
  --red-600: #c4321f;
  --red-700: #a3281a;
  --amber-50: #fdf6e3;
  --amber-200: #e8cf8e;
  --amber-700: #8a5a00;

  /* Semantic colours (light) */
  --bg: var(--gray-50);
  --surface: #fff;
  --surface-2: var(--gray-50);
  --surface-3: var(--gray-100);
  --border: #e4e7ed;
  --border-strong: var(--gray-300);
  --control: var(--gray-400);              /* form control edges: 3:1 on white */
  --text: var(--navy-900);
  --text-2: var(--gray-700);
  --text-3: var(--gray-600);               /* muted, still 5:1 on the page background */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-press: var(--blue-800);
  --primary-soft: var(--blue-50);
  --primary-soft-2: var(--blue-100);
  --primary-edge: var(--blue-200);
  --primary-text: var(--blue-700);
  --success: var(--green-700);
  --success-soft: var(--green-50);
  --success-edge: var(--green-200);
  --danger: var(--red-600);
  --danger-hover: var(--red-700);
  --danger-soft: var(--red-50);
  --danger-edge: var(--red-200);
  --warning: var(--amber-700);
  --warning-soft: var(--amber-50);
  --warning-edge: var(--amber-200);
  --focus: var(--blue-600);
  --ring: 0 0 0 3px rgba(28, 98, 245, .2);
  --scrim: rgba(12, 17, 32, .55);

  /* Type */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-2xs: .75rem;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --fs-h1: clamp(1.75rem, 1.45rem + 1.1vw, 2.375rem);
  --fs-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);

  /* Space (4 px scale) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;
  --s24: 96px;

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px -2px rgba(15, 23, 42, .07);
  --shadow-md: 0 2px 4px -1px rgba(15, 23, 42, .05), 0 12px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 10px -2px rgba(15, 23, 42, .06), 0 28px 56px -16px rgba(15, 23, 42, .22);

  /* Layout */
  --container: 1200px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 64px;
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --ease-snap: cubic-bezier(.3, 1.4, .5, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-enter: 420ms;                      /* things arriving */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --dur-slow: 320ms;
  --dur-reveal: 640ms;

  color-scheme: light;
}

@media (min-width: 768px) { :root { --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (min-width: 1024px) { :root { --gutter: max(32px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

/* The focus room is dark: same components, night tokens. */
body.room {
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: #161e2e;
  --surface-3: var(--navy-700);
  --border: var(--navy-700);
  --border-strong: var(--navy-600);
  --control: var(--navy-500);
  --text: #eef2f8;
  --text-2: #c9d2e3;
  --text-3: #9aa6bd;
  --primary-soft: rgba(28, 98, 245, .16);
  --primary-soft-2: rgba(28, 98, 245, .26);
  --primary-edge: rgba(143, 177, 255, .38);
  --primary-text: var(--blue-300);
  --success: #6fd3a2;
  --success-soft: rgba(19, 145, 90, .16);
  --success-edge: rgba(111, 211, 162, .35);
  --danger: #ff9b8c;
  --danger-hover: #ffb4a8;
  --danger-soft: rgba(196, 50, 31, .16);
  --danger-edge: rgba(255, 155, 140, .38);
  --focus: var(--blue-300);
  --ring: 0 0 0 3px rgba(143, 177, 255, .28);
  --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 28px 64px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Page-to-page crossfade only with a mouse or trackpad: on phones (iOS above all) it fought the
   browser's own toolbar animations and left fixed bars in the wrong place. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header:not(.site-header-public) { view-transition-name: site-header; }
}
/* Not on the signed-out header: a named element is a backdrop root, so the glass bar inside it
   would blur nothing (and in Chrome the page painted over the open phone menu). */
/* The header stays put (its own view-transition-name); the page under it leaves upwards and the
   next one arrives from just below: one direction, short. */
::view-transition-old(root) { animation: .16s cubic-bezier(.4, 0, 1, 1) both vt-leave; }
::view-transition-new(root) { animation: .34s cubic-bezier(.16, 1, .3, 1) both vt-arrive; }
@keyframes vt-leave { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(8px); } }

/* Base -------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
main:focus { outline: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.012em; }
h4 { font-size: var(--fs-base); letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-sm); }
code { font: 500 .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
hr { height: 1px; margin: var(--s8) 0; border: 0; background: var(--border); }

a {
  color: var(--primary-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
  transition: color var(--dur), text-decoration-color var(--dur);
}
a:hover { color: var(--primary-press); text-decoration-color: currentColor; }
body.room a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--blue-100); color: var(--navy-900); }
[hidden] { display: none !important; }

/* Layout ------------------------------------------------------------------ */

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.page { width: 100%; margin-inline: auto; padding-block: var(--s8) var(--s16); }
.page-narrow { max-width: 720px; }
.page-medium { max-width: 1040px; }
@media (min-width: 768px) { .page { padding-top: var(--s10); } }

.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.row-tight { gap: var(--s2); }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.inline-form { display: inline; margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; top: 10px; left: 10px;
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--navy-900); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease-out);
}
.skip:focus { transform: none; color: #fff; }

/* Two-column page body: content + side column on wide screens. */
.split { display: grid; gap: var(--s8); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s10); align-items: start; }
  .split > aside { position: sticky; top: calc(var(--header-h) + var(--s6)); }
}

/* Brand ------------------------------------------------------------------- */

.wordmark { display: block; width: auto; }
.mark { display: block; width: 100%; height: auto; overflow: visible; }
.mark path { transform-box: fill-box; transform-origin: center; }
.logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-sm); line-height: 0; text-decoration: none; }
.logo .wordmark { height: 26px; }

/* One logo, two inks: navy on light surfaces, white on dark ones (the blue half never changes).
   Dark surfaces set --logo-ink; nothing else recolours the logo. */
.logo-ink, .s-partner { fill: var(--logo-ink, #131a29); }
body.room, .on-dark, .auth-aside, .ui-face, .statement { --logo-ink: #fff; }

/* The partner's half shows presence without moving: full when you two are together, faded while
   waiting, fainter when working alone. Changes are a quiet cross-fade. */
.mark .s-partner { transition: opacity .5s var(--ease-out); }
.mark-apart .s-partner, .mark[data-state="apart"] .s-partner { opacity: .28; }
.mark[data-state="solo"] .s-partner { opacity: .16; }

/* "Someone is waiting": the only looping signal outside the focus room. */
.pulse { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Icons ------------------------------------------------------------------- */

.icon { flex: none; width: 1.25em; height: 1.25em; stroke-width: 1.75; vertical-align: -.25em; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }
.icon-badge {
  display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-text);
}
.icon-badge .icon { width: 20px; height: 20px; }
.icon-badge-navy { background: var(--navy-900); color: #fff; }
.icon-badge-soft { background: var(--surface-3); color: var(--text-2); }

/* Header and navigation ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.header-inner .logo { margin-right: auto; }
@media (min-width: 768px) { .header-inner .logo { margin-right: var(--s4); } }

.app-nav { display: none; align-items: center; gap: var(--s1); margin-right: auto; }
@media (min-width: 768px) { .app-nav { display: flex; } }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur), color var(--dur);
}
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav-link .icon { width: 18px; height: 18px; color: var(--text-3); }
.nav-link[aria-current="page"] .icon { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
/* Tablets (768-1023 px): the main navigation shows its icons only, so the next-session pill, the
   bell and the account menu keep their room; each label stays in the link's name and appears as a
   small tip on hover and keyboard focus. From 1024 px the labels are back. */
@media (min-width: 768px) and (max-width: 1023px) {
  .app-nav .nav-link { padding: 0 10px; }
  .app-nav .nav-label {
    position: absolute; top: calc(100% + 6px); left: 50%; z-index: 45;
    width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .app-nav .nav-link:hover .nav-label, .app-nav .nav-link:focus-visible .nav-label {
    width: auto; height: auto; overflow: visible; clip-path: none; transform: translateX(-50%);
    padding: 4px 8px; border-radius: var(--r-sm); background: var(--text); color: var(--surface);
    font-size: var(--fs-xs); font-weight: 500; pointer-events: none;
  }
  .app-nav .count-badge { position: absolute; top: 0; right: -2px; }
}
.header-actions .nav-link { font-weight: 500; }
/* Signed out: a floating glass bar ---------------------------------------------------------
   Logo, two places to go, then the two ways in: "Přihlásit se" quiet, "Registrovat se" leading.
   The bar floats over the page (the space around it lets clicks through) and grows a little more
   solid and compact as you scroll (--hs, 0 → 1, set by app.js). Phones keep the logo,
   "Registrovat se" and a menu. Motion: hover = a few pixels, press = compression, scroll =
   gradual, nothing loops. */
:root:has(.site-header-public) { --header-h: 64px; }
@media (min-width: 720px) { :root:has(.site-header-public) { --header-h: 72px; } }
.page-landing { background: #fff; }

.site-header-public {
  --hs: 0;
  --bar-h: 54px;
  --bar-h-min: 50px;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-inline: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
@media (min-width: 720px) {
  .site-header-public { --bar-h: 56px; --bar-h-min: 50px; padding-inline: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}
.pub-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--gutter) + 36px);   /* the logo lines up with the page's content */
  height: calc(var(--bar-h) - (var(--bar-h) - var(--bar-h-min)) * var(--hs));
  margin-inline: auto;
  padding: 0 6px 0 14px;
  border-radius: var(--r-full);
  pointer-events: auto;
}
@media (min-width: 720px) { .pub-bar { padding: 0 7px 0 18px; } }
/* The glass sits on the bar itself, always fully frosted; scrolling only deepens the tint. */
.pub-bar {
  background: rgba(255, 255, 255, .5);
  background: rgb(255 255 255 / calc(.5 + var(--hs) * .15));
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: inset 0 0 0 1px rgba(19, 26, 41, .08), inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -18px rgba(15, 23, 42, .28);
}

/* Logo: on hover the two halves of the S part by a pixel and settle back together. */
.pub-logo { flex: none; min-height: 44px; margin-right: 8px; padding-inline: 2px; }
.pub-logo .wordmark { height: 22px; }
@media (min-width: 720px) { .pub-logo { margin-right: 18px; } .pub-logo .wordmark { height: 24px; } }
@media (hover: hover) and (pointer: fine) {
  .pub-logo:hover .logo-blue { animation: s-settle-you .8s var(--ease-out); }
  .pub-logo:hover .logo-s2 { animation: s-settle-partner .8s var(--ease-out); }
}
@keyframes s-settle-you { 36% { transform: translate(-6px, -4px); } }
@keyframes s-settle-partner { 36% { transform: translate(6px, 4px); } }

/* Places: a soft light slides to the link under the pointer (or focus) and rests on the current page. */
.pub-nav { position: relative; display: none; align-items: center; gap: 2px; }
@media (min-width: 720px) { .pub-nav { display: flex; } }
.pub-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.pub-link:hover, .pub-link[aria-current="page"] { color: var(--text); }
.pub-nav:not(.is-live) .pub-link:hover, .pub-nav:not(.is-live) .pub-link[aria-current="page"] { background: rgba(19, 26, 41, .055); }
.pub-ink {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--iw, 0px);
  height: 36px;
  margin-top: -18px;
  border-radius: var(--r-full);
  background: rgba(19, 26, 41, .06);
  opacity: 0;
  translate: var(--ix, 0px) 0;
  scale: .9;
  transition: translate .42s var(--ease-out), width .42s var(--ease-out), scale .3s var(--ease-out), opacity .25s var(--ease-out);
  pointer-events: none;
}
.pub-nav.has-ink .pub-ink { opacity: 1; scale: 1; }
.pub-nav.ink-snap .pub-ink { transition: scale .3s var(--ease-out), opacity .25s var(--ease-out); }

/* "Produkt": a small panel under its button. Opens on hover with a bridge over the gap (so the
   pointer can travel into it), on click or tap, and from the keyboard (app.js sets data-open);
   without JavaScript on hover and focus. */
.pub-drop { position: relative; }
.pub-drop-btn { gap: 4px; border: 0; background: none; font-family: inherit; cursor: pointer; }
.pub-drop-chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .25s var(--ease-out); }
.pub-drop[data-open] .pub-drop-chev { transform: rotate(180deg); }
.pub-drop-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pub-drop-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 10px);
  left: 50%;
  width: 320px;
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(19, 26, 41, .08), 0 2px 6px rgba(15, 23, 42, .05), 0 28px 56px -24px rgba(15, 23, 42, .4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity .18s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
}
.pub-drop-panel::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; }   /* the bridge */
.pub-drop[data-open] .pub-drop-panel,
.pub-drop:not([data-js]):hover .pub-drop-panel,
.pub-drop:not([data-js]):focus-within .pub-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s var(--ease-out), transform .25s var(--ease-out), visibility 0s; }
.pub-drop-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pub-drop-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background-color .2s var(--ease-out); }
.pub-drop-link:hover, .pub-drop-link:focus-visible { background: rgba(19, 26, 41, .05); }
.pub-drop-link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pub-drop-link[aria-current="page"] { background: var(--primary-soft); }
.pub-drop-link > span:last-child { display: grid; gap: 1px; }
.pub-drop-link strong { font-size: var(--fs-sm); font-weight: 600; }
.pub-drop-link small { color: var(--text-3); font-size: var(--fs-xs); }
.pub-drop-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.pub-drop-link[aria-current="page"] .pub-drop-icon { background: #fff; color: var(--primary); }
.pub-drop-icon .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .pub-drop-panel, .pub-drop-chev { transition: none; } }

/* The two ways in. */
.pub-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header-public .pub-login {
  display: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
@media (min-width: 720px) { .site-header-public .pub-login { display: inline-flex; } }
.site-header-public .pub-login:hover, .site-header-public .pub-login[aria-current="page"] { border-color: rgba(19, 26, 41, .09); background: rgba(255, 255, 255, .94); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .site-header-public .pub-login:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 18px -10px rgba(15, 23, 42, .25); transform: translateY(-1px); }
}
.site-header-public .pub-login:active { box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transform: scale(.97); transition-duration: 80ms; }

.site-header-public .pub-signup {
  --mx: 0px;
  --my: 0px;
  min-height: 42px;
  padding: 0 15px;
  gap: 6px;
  border-color: transparent;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, #2d70ff, var(--primary) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(28, 98, 245, .3), 0 6px 16px -8px rgba(28, 98, 245, .55);
  font-size: var(--fs-sm);
  transform: translate(var(--mx), var(--my));
  transition: box-shadow .3s var(--ease-out), transform .35s var(--ease-out);
}
@media (min-width: 720px) { .site-header-public .pub-signup { min-height: 40px; padding: 0 15px 0 18px; } }
.site-header-public .pub-signup:hover { background: linear-gradient(180deg, #2d70ff, var(--primary) 72%); }
/* A soft light that follows the cursor inside the button. */
.site-header-public .pub-signup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.pub-cta-label { position: relative; }
.site-header-public .pub-arrow { position: relative; display: none; width: 16px; height: 16px; margin: 0 -2px 0 0; transition: transform .35s var(--ease-out), opacity .2s var(--ease-out); }
@media (min-width: 720px) { .site-header-public .pub-arrow { display: block; } }
@media (hover: hover) and (pointer: fine) {
  .site-header-public .pub-signup:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 1px 2px rgba(28, 98, 245, .3), 0 12px 26px -10px rgba(28, 98, 245, .7); }
  .site-header-public .pub-signup:hover::before { opacity: 1; }
  .site-header-public .pub-signup:hover .pub-arrow { transform: translateX(2px); }
}
.site-header-public .pub-signup:active { transform: translate(var(--mx), var(--my)) scale(.95); transition-duration: 90ms; }
/* Pressed: while the next page loads, the arrow leaves and a light runs across the button. */
.site-header-public .pub-signup.is-going { pointer-events: none; }
.site-header-public .pub-signup.is-going .pub-arrow { opacity: 0; transform: translateX(8px); }
.site-header-public .pub-signup.is-going::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .38) 50%, rgba(255, 255, 255, 0) 70%) no-repeat;
  background-size: 220% 100%;
  animation: cta-sweep 1s cubic-bezier(.4, 0, .2, 1) infinite;
  pointer-events: none;
}
@keyframes cta-sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* Phones: a menu. The icon's two lines (you in blue, your partner in navy) meet into a cross; the
   panel drops from the bar and its rows arrive one after another. A <details>, so it works
   without JavaScript; app.js only animates it, closes it on Escape, a tap outside or a choice. */
.pub-more { display: block; }
@media (min-width: 720px) { .pub-more { display: none; } }
.pub-menu-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.pub-menu-btn::-webkit-details-marker { display: none; }
.pub-menu-btn:hover, .pub-more[open] .pub-menu-btn { background: rgba(19, 26, 41, .055); }
.pub-menu-btn:active { transform: scale(.92); }
.pub-menu-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pub-burger { position: relative; width: 18px; height: 12px; }
.pub-burger i { position: absolute; top: 50%; left: 0; width: 18px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--navy-900); transition: translate .2s var(--ease-out) .12s, rotate .2s var(--ease-out); }
.pub-burger i:first-child { background: var(--primary); translate: 0 -4px; }
.pub-burger i:last-child { translate: 0 4px; }
.pub-more.is-open .pub-burger i, html:not(.js) .pub-more[open] .pub-burger i { translate: 0 0; transition: translate .2s var(--ease-out), rotate .26s var(--ease-out) .12s; }
.pub-more.is-open .pub-burger i:first-child, html:not(.js) .pub-more[open] .pub-burger i:first-child { rotate: 45deg; }
.pub-more.is-open .pub-burger i:last-child, html:not(.js) .pub-more[open] .pub-burger i:last-child { rotate: -45deg; }

.pub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 8px;
  border-radius: 24px;
  background: #fff;                    /* inside the frosted bar a second blur would only see the bar */
  box-shadow: inset 0 0 0 1px rgba(19, 26, 41, .08), 0 2px 6px rgba(15, 23, 42, .05), 0 28px 56px -24px rgba(15, 23, 42, .4);
  transform-origin: 90% 0;
  will-change: transform, opacity;     /* its own layer: the hero's composited text never paints over it */
}
html.js .pub-menu { opacity: 0; transform: translateY(-6px) scale(.97); visibility: hidden; transition: opacity .2s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s; }
html.js .pub-more.is-open .pub-menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease-out), transform .36s var(--ease-out), visibility 0s; }
.pub-menu-links { display: grid; gap: 2px; }
.pub-menu-group { margin: 4px 14px 2px; color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pub-menu-link.pub-menu-sub { min-height: 46px; font-size: var(--fs-base); }
.pub-menu { max-height: calc(100dvh - 96px); overflow-y: auto; }
.pub-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.pub-menu-link > .icon:first-child { width: 20px; height: 20px; color: var(--text-3); }
.pub-menu-link span { flex: 1; }
.pub-menu-link .pub-chev { width: 18px; height: 18px; color: var(--gray-400); }
.pub-menu-link:hover, .pub-menu-link:active { background: rgba(19, 26, 41, .05); }
.pub-menu-link[aria-current="page"] { background: var(--primary-soft); }
.pub-menu-link[aria-current="page"] > .icon:first-child { color: var(--primary); }
.pub-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(19, 26, 41, .07); }
.pub-menu-actions .btn { min-height: 48px; border-radius: 14px; }
html.js .pub-menu-links > *, html.js .pub-menu-actions { opacity: 0; translate: 0 -4px; transition: opacity .2s var(--ease-out), translate .3s var(--ease-out); }
html.js .pub-more.is-open .pub-menu-links > *, html.js .pub-more.is-open .pub-menu-actions { opacity: 1; translate: 0 0; }
html.js .pub-more.is-open .pub-menu-links > :nth-child(1) { transition-delay: .05s; }
html.js .pub-more.is-open .pub-menu-links > :nth-child(2) { transition-delay: .09s; }
html.js .pub-more.is-open .pub-menu-actions { transition-delay: .13s; }
/* While it is open the page waits under a light veil (a tap on it closes the menu). */
html.pub-menu-open { overflow: hidden; }
.pub-menu-open .site-header-public::before { content: ""; position: fixed; z-index: -1; inset: 0; background: rgba(12, 17, 32, .14); pointer-events: auto; animation: fade-in .25s var(--ease-out); }

/* Reading progress on the landing page: two halves of a line meet along the bar's lower edge. */
.pub-bar .sync-line { position: absolute; z-index: 1; top: auto; right: 30px; bottom: 0; left: 30px; height: 1.5px; overflow: hidden; border-radius: 2px; }

/* The next session, always one click away. */
.next-pill {
  display: none;
  align-items: center;
  gap: var(--s2);
  min-height: 36px;
  padding: 0 var(--s3) 0 var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur), background-color var(--dur);
}
.next-pill:hover { border-color: var(--border-strong); color: var(--text); }
.next-pill .dot, .next-pill .pulse { margin-left: 4px; }
.next-pill strong { font-variant-numeric: tabular-nums; }
.next-pill.is-live { border-color: var(--primary); background: var(--primary); color: #fff; }
.next-pill.is-live:hover { background: var(--primary-hover); color: #fff; }
.next-pill.is-live .pulse { background: #fff; }
@media (min-width: 640px) { .next-pill { display: inline-flex; } }

/* Account menu (a disclosure: works without JavaScript, app.js closes it on outside clicks). */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.nav-me {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 6px 4px 4px;
  border-radius: var(--r-full);
  color: var(--text-3);
  transition: background-color var(--dur);
}
.nav-me:hover, .menu[open] > .nav-me { background: var(--surface-3); }
.nav-me .avatar { width: 34px; height: 34px; font-size: var(--fs-sm); }
.nav-me .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.menu[open] > .nav-me .icon { transform: rotate(180deg); }
.menu-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: 264px;
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: menu-in var(--dur) var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
/* The account menu and the bell's panel drop down from their button (owner's request, 24 October
   2026): they unfold from the top edge with a small settle; the items follow a beat later. Only with
   html.motion-ok, never under reduced motion or „Omezit animace“ (then the short fade above stays). */
@keyframes menu-drop {
  0% { opacity: .6; transform: translateY(-10px) scaleY(.9); clip-path: inset(0 0 60% 0 round var(--r-lg)); }
  60% { opacity: 1; transform: translateY(3px) scaleY(1.01); clip-path: inset(0 0 0 0 round var(--r-lg)); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r-lg)); }
}
@keyframes menu-drop-item { from { opacity: 0; transform: translateY(-6px); } }
html.motion-ok:not(.reduce-motion) .menu[open] > .menu-panel,
html.motion-ok:not(.reduce-motion) .bell-panel:not([hidden]) { animation: menu-drop .3s cubic-bezier(.2, .9, .3, 1.15); }
html.motion-ok:not(.reduce-motion) .menu[open] > .menu-panel > *,
html.motion-ok:not(.reduce-motion) .bell-panel:not([hidden]) .bell-head,
html.motion-ok:not(.reduce-motion) .bell-panel:not([hidden]) .bell-all { animation: menu-drop-item .26s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .menu[open] > .menu-panel, .menu[open] > .menu-panel > *, .bell-panel, .bell-panel .bell-head, .bell-panel .bell-all { animation: none !important; }
}
.menu-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2) var(--s3); border-bottom: 1px solid var(--border); margin-bottom: var(--s2); }
.menu-head .avatar { width: 40px; height: 40px; }
.menu-head p { margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.menu-head strong { display: block; }
.menu-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 42px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text);
  font: 500 var(--fs-sm) var(--font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-item:hover { background: var(--surface-3); color: var(--text); }
.menu-item .icon { width: 18px; height: 18px; color: var(--text-3); }
.menu-item .count-badge { margin-left: auto; }
.menu-sep { height: 1px; margin: var(--s2) 0; background: var(--border); }
.menu form { margin: 0; }

/* Badges on navigation */
.count-badge, .nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  font: 600 var(--fs-2xs)/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.nav-badge { position: absolute; top: 0; left: 26px; box-shadow: 0 0 0 2px var(--surface); animation: pop-in .35s var(--ease-snap) both; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }

/* Bottom tab bar on phones. It is the last thing in the page and sticks to the bottom while you
   scroll, so the page ends exactly with it: no padding to reserve, nothing to scroll past. (A
   fixed bar plus bottom padding floated mid-screen on iOS with an empty strip under it.) */
.tabbar {
  position: sticky;
  z-index: 40;
  bottom: 0;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, .18);
}
.tab {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: var(--r-md);
  color: var(--text-3);
  font-size: var(--fs-2xs);
  font-weight: 500;
  text-decoration: none;
}
.tab .icon { width: 22px; height: 22px; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--primary-text); font-weight: 600; }
.tab .count-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--surface); }
@media (min-width: 768px) { .tabbar { display: none; } }

/* Footer */
.site-footer { margin-top: var(--s16); border-top: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: var(--fs-sm); }
.footer-inner { display: grid; gap: var(--s6); padding-block: var(--s10); }
.footer-brand { display: grid; gap: var(--s3); max-width: 320px; }
.footer-brand .wordmark { height: 24px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s6); border-top: 1px solid var(--border); font-size: var(--fs-xs); }
.footer-meta p { margin: 0; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.footer-meta .social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full); color: var(--text-2); transition: color .2s var(--ease-out), background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.footer-meta .social-link svg { width: 20px; height: 20px; }
.footer-meta .social-link:hover { color: var(--text); background: var(--gray-50); transform: translateY(-1px); }
.footer-meta .social-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 28px; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-meta { grid-column: 1 / -1; }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-border: var(--primary);
  --btn-bg-hover: var(--primary-hover);
  --btn-border-hover: var(--primary-hover);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  box-shadow: var(--shadow-xs);
  color: var(--btn-fg);
  font: 600 var(--fs-sm)/1.2 var(--font);
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur), border-color var(--dur), color .15s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-border-hover); color: var(--btn-fg); }
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn .icon { width: 18px; height: 18px; margin-inline: -2px; }
.btn-small { min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); font-size: var(--fs-xs); }
.btn-small .icon { width: 16px; height: 16px; }
.btn-large { min-height: 52px; padding: 0 24px; border-radius: var(--r-lg); font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn[data-magnetic] { transform: translate(var(--mgx, 0px), var(--mgy, 0px)); transition: background-color var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform .4s var(--ease-out); }
.btn[data-magnetic]:hover { box-shadow: 0 8px 24px -10px rgba(28, 98, 245, .6); }
.btn-white[data-magnetic]:hover { box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .35); }
.btn[data-magnetic]:active { transform: translate(var(--mgx, 0px), var(--mgy, 0px)) scale(.97); }
.btn-ghost {          /* secondary: white with an edge */
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  --btn-bg-hover: var(--surface-2);
  --btn-border-hover: var(--control);
}
.btn-quiet {          /* no edge, for low-emphasis actions */
  --btn-bg: transparent;
  --btn-fg: var(--text-2);
  --btn-border: transparent;
  --btn-bg-hover: var(--surface-3);
  --btn-border-hover: transparent;
  box-shadow: none;
}
.btn-dark { --btn-bg: var(--navy-900); --btn-border: var(--navy-900); --btn-bg-hover: var(--navy-700); --btn-border-hover: var(--navy-700); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-border: #fff; --btn-bg-hover: var(--blue-50); --btn-border-hover: var(--blue-50); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-border: var(--danger-edge); --btn-bg-hover: var(--danger); --btn-border-hover: var(--danger); }
.btn-danger:hover { --btn-fg: #fff; }
.btn-danger-solid { --btn-bg: var(--red-600); --btn-border: var(--red-600); --btn-bg-hover: var(--red-700); --btn-border-hover: var(--red-700); }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-small { width: 36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]:hover { background: var(--btn-bg); border-color: var(--btn-border); }
body.room .btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--navy-600); --btn-bg-hover: var(--navy-700); --btn-border-hover: var(--navy-500); }
body.room .btn-quiet { --btn-fg: var(--text-2); --btn-bg-hover: var(--navy-700); }
body.room .btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-border: rgba(255, 155, 140, .4); --btn-bg-hover: rgba(196, 50, 31, .22); --btn-border-hover: var(--danger); }
body.room .btn-danger:hover { --btn-fg: var(--danger-hover); }

/* Sending: the label hides behind a spinner, double clicks are ignored (app.js). */
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy .icon { opacity: 0; }
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 500 inherit var(--font);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--text); text-decoration-color: currentColor; }
.link-button .icon { width: 16px; height: 16px; }
.link-danger { color: var(--danger); }
a.link-danger:hover, .link-button.link-danger:hover { color: var(--danger-hover); }
.link-quiet { color: var(--text-3); text-decoration: none; }
.link-quiet:hover { color: var(--text); text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Forms ------------------------------------------------------------------- */

.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 6px; }
.field > label, .label { color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.field > label .muted, .label .muted { font-weight: 400; }
.hint { margin: 0; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }
.hint.is-ok { color: var(--success); }
.hint.is-bad { color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--control);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: 400 var(--fs-base)/1.4 var(--font);
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover, input[type="number"]:hover, textarea:hover, select:hover { border-color: var(--text-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
input[readonly] { background: var(--surface-2); }
textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 2px; }

/* Choice cards: radio buttons and checkboxes with a description. */
.choice-list { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-list legend { margin-bottom: var(--s3); padding: 0; font-size: var(--fs-sm); font-weight: 600; }
.choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s3);
  align-items: start;
  padding: 14px var(--s4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
  cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.choice:hover { border-color: var(--control); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice input { margin-top: 1px; }
.choice strong { color: var(--text); }
.choice .muted { display: block; margin-top: 2px; }

/* Password with a show/hide toggle (app.js) */
.password { position: relative; }
.password input { padding-right: 104px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font: 600 var(--fs-xs) var(--font);
  transform: translateY(-50%);
  cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-3); color: var(--text); }
.pw-toggle .icon { width: 16px; height: 16px; }

/* @username input */
.handle { display: flex; align-items: center; border: 1px solid var(--control); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); }
.handle:hover { border-color: var(--text-3); }
.handle:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.handle span { padding: 0 0 0 14px; color: var(--text-3); font-weight: 600; }
.handle input { border: 0 !important; box-shadow: none !important; padding-left: 4px; background: transparent; }

/* File picker: the native input stays for keyboards and no-JS, the label is the button. */
.file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-picker input[type="file"]:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.file-name { color: var(--text-3); font-size: var(--fs-sm); overflow-wrap: anywhere; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; padding: 0; border: 0; }
.swatches legend { margin-bottom: var(--s3); padding: 0; font-size: var(--fs-sm); font-weight: 600; }
.swatch { position: relative; border-radius: 50%; cursor: pointer; }
.swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.swatch .avatar { width: 40px; height: 40px; transition: box-shadow var(--dur), transform var(--dur-fast) var(--ease-out); }
.swatch:hover .avatar { transform: scale(1.06); }
.swatch input:checked + .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }
.swatch input:focus-visible + .avatar { outline: 2px solid var(--focus); outline-offset: 5px; }

.form-errors {
  display: flex;
  gap: var(--s3);
  margin: 0;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--danger-edge);
  border-radius: var(--r-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.form-errors::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 78px; }
.counter { font-variant-numeric: tabular-nums; }

/* Feedback: toasts, alerts, chips ------------------------------------------- */

/* Messages after a form was sent: toasts in the corner, closable; success ones fade after a while. */
.toasts {
  position: fixed;
  z-index: 60;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter);
  left: var(--gutter);
  display: grid;
  gap: var(--s2);
  justify-items: end;
  pointer-events: none;
}
@media (min-width: 640px) { .toasts { left: auto; width: 400px; } }
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  width: 100%;
  margin: 0;
  padding: 14px 12px 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in .42s var(--ease-out) both;
}
.toast > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--text-3); }
.toast-success > .icon { color: var(--success); }
.toast-error { border-color: var(--danger-edge); }
.toast-error > .icon { color: var(--danger); }
.toast-text { flex: 1; margin: 0; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease-in), transform .2s var(--ease-in); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.flash-close {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -2px -6px 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.flash-close:hover { background: var(--surface-3); color: var(--text); }
.flash-close .icon { width: 16px; height: 16px; }

/* Inline alerts inside a page */
.flash, .alert, .notice-line, .banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  max-width: none;
  margin: 0;
  padding: 14px var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.flash > .icon, .alert > .icon, .notice-line > .icon, .banner > .icon { width: 20px; height: 20px; margin-top: 1px; }
.flash-error, .alert-danger { border-color: var(--danger-edge); background: var(--danger-soft); color: var(--danger); }
.flash-success, .alert-success { border-color: var(--success-edge); background: var(--success-soft); color: var(--success); }
.notice-line, .alert-info, .banner { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--text); }
.notice-line > .icon, .banner > .icon { color: var(--primary-text); }
.banner { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner p, .alert p { margin: 0; }
.alert-warning { border-color: var(--warning-edge); background: var(--warning-soft); color: var(--warning); }
.notice { margin-bottom: var(--s6); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: middle;
}
.chip .icon { width: 14px; height: 14px; }
.chip-waiting, .chip-checkin { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--primary-text); }
.chip-matched { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.chip-live { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip-live .pulse { background: #fff; }
.chip-done { border-color: var(--success-edge); background: var(--success-soft); color: var(--success); }
.chip-missed, .chip-cancelled { color: var(--text-3); }
.chip-private { gap: 5px; }
.chip-author { min-height: 20px; padding: 0 8px; font-size: var(--fs-2xs); }
.chip-test { border-style: dashed; border-color: var(--amber-200); background: var(--amber-50); color: var(--amber-700); }
body.room .chip-matched { border-color: #fff; background: #fff; color: var(--navy-900); }
.test-badge { display: inline-flex; margin: 0 0 var(--s3); padding: 2px 10px; border: 1px dashed var(--amber-200); border-radius: var(--r-full); background: var(--amber-50); color: var(--amber-700); font-size: var(--fs-2xs); font-weight: 600; }

/* Surfaces ------------------------------------------------------------------ */

.panel, .card {
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.panel h2, .card h2 { font-size: var(--fs-xl); }
@media (max-width: 639px) { .panel, .card { padding: var(--s5); border-radius: var(--r-lg); } }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.panel-danger { border-color: var(--danger-edge); }
.panel-danger h2 { color: var(--danger); }
.card-flat { box-shadow: none; }
.card-soft { border-color: transparent; background: var(--surface-3); box-shadow: none; }

/* Rows of people (friends, followers, requests) */
.people { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.people > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding: 14px var(--s5);
  border-top: 1px solid var(--border);
}
.people > li:first-child { border-top: 0; }
.people .post-author { margin: 0; min-width: 0; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
.person-meta { display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: 400; }

/* Empty states */
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s10) var(--s6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center;
}
.empty-state > .mark, .empty-state > .icon-badge { margin-bottom: var(--s3); }
.empty-state > .mark { width: 56px; }
.empty-state p { margin: 0; max-width: 46ch; }
.empty-state .empty-title { color: var(--text); font-size: var(--fs-md); font-weight: 600; }
.empty-state .btn { margin-top: var(--s3); }
.empty-inline { margin: 0; padding: var(--s5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-3); font-size: var(--fs-sm); text-align: center; }

/* Dialog ------------------------------------------------------------------ */

.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in .24s var(--ease-out); }
.dialog[open]::backdrop { animation: fade-in .2s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-body { display: grid; gap: var(--s2); padding: var(--s6); }
.dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s2); border-radius: 50%; background: var(--danger-soft); color: var(--danger); }
.dialog-icon .icon { width: 22px; height: 22px; }
.dialog[data-tone="neutral"] .dialog-icon { background: var(--primary-soft); color: var(--primary-text); }
.dialog-title { margin: 0; font-size: var(--fs-lg); line-height: 1.3; }
.dialog-text { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.dialog-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 479px) { .dialog-actions .btn { flex: 1 1 auto; } }

/* Page parts -------------------------------------------------------------- */

.page-head { display: grid; gap: var(--s2); margin-bottom: var(--s8); }
.page-head h1 { margin: 0; }
.page-head p { margin: 0; color: var(--text-3); font-size: var(--fs-md); }
.page-head .eyebrow { margin-bottom: 2px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  color: var(--primary-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow-muted { color: var(--text-3); }
.eyebrow .icon { width: 16px; height: 16px; }
.h-small { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); font-size: var(--fs-base); letter-spacing: -.005em; }
.h-small .icon { width: 18px; height: 18px; color: var(--primary-text); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 var(--s4); color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.back:hover { color: var(--text); }
.back .icon { width: 16px; height: 16px; }
.section { margin-top: var(--s12); }
.section:first-child { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-bottom: var(--s4); }
.section-head h2 { margin: 0; font-size: var(--fs-xl); }
.section-head p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }

/* Segmented tabs */
.tabs { display: inline-flex; gap: 2px; margin: 0 0 var(--s6); padding: 3px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-3); }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--dur), color var(--dur); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-weight: 600; }

.more { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s6); }

/* Landing ----------------------------------------------------------------- */

.landing { background: #fff; }
.landing + .site-footer { margin-top: 0; }
/* Bands are full width: cards that slide in from the sides (scroll reveal) are clipped at the
   screen edge instead of making the page scroll sideways on phones. */
.band { padding-block: var(--s16); overflow-x: clip; }
.band-tight { padding-block: var(--s12); }
.band-gray { background: var(--gray-50); }
@media (min-width: 1024px) { .band { padding-block: var(--s24); } }
.band-head { display: grid; align-content: start; gap: var(--s3); max-width: 640px; margin-bottom: var(--s10); }
.band-head h2 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -.03em; }
.band-head p { margin: 0; color: var(--text-3); font-size: var(--fs-lg); }
.band-head .eyebrow { margin: 0; }
.band-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); max-width: none; }
.band-head-row > div { display: grid; gap: var(--s3); max-width: 640px; }

.lede { max-width: 46ch; margin-bottom: 0; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s8); }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
/* The focus-room interface shown at the end of the landing story. */
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3) var(--s3); font-size: var(--fs-xs); }
.preview-bar .mark { width: 22px; }
.preview-bar span { color: #9aa6bd; }
.preview-timer { display: inline-flex; align-items: center; gap: var(--s2); padding: 4px 10px 4px 6px; border-radius: var(--r-full); background: var(--navy-800); font-variant-numeric: tabular-nums; }
.preview-timer svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.preview-timer circle { fill: none; stroke-width: 4; }
.preview-timer strong { color: #fff; font-size: var(--fs-sm); }
.preview-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #1e2739;
}
.tile .mark { width: 42%; }
.tile .person-art { position: absolute; bottom: 0; left: 50%; width: 62%; transform: translateX(-50%); }
.tile-you { background: #1b2a4d; }
.tile-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: rgba(12, 17, 32, .72);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 600;
}
.tile-label .icon { width: 12px; height: 12px; color: #ff9b8c; }
.preview-goals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s2); }
.preview-goal { margin: 0; padding: 12px 14px; border-radius: var(--r-lg); background: var(--navy-800); font-size: var(--fs-xs); line-height: 1.45; }
.preview-goal span { display: block; margin-bottom: 2px; color: #9aa6bd; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.preview-goal strong { color: #fff; font-weight: 600; }
/* Landing story ------------------------------------------------------------
   One scene driven by the scroll: Alone → Discover → Connect → Sync → Focus. app.js measures the
   stage (--cy0, --cy1, --w-ui… in px, so nothing overlaps on short or narrow screens), sets the
   progress (--p) and eased chapter values (--zoom, --flat, --float, --split, --link, --card,
   --ui, --end) and --o on every [data-window] element, and draws the orbit. Everything here is
   opacity, transform or size computed from those, so nothing plays on its own except the slow
   orbit. Without JavaScript, with reduced motion or in browsers without CSS trig functions, the
   section is a plain hero: the copy, the session interface and the closing call. */

.story { position: relative; background: #fff; }
.story-stage { position: relative; display: grid; justify-items: center; gap: var(--s10); padding: var(--s12) var(--gutter) var(--s16); }
.story-grid, .story-glow, .story-captions, .story-scene, .story-nav, .card-face, .story-globe, .story-hint { display: none; }
.story-hero { max-width: 780px; text-align: center; }
.story-hero h1 { margin: 0 auto var(--s5); font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.045em; }
.hero-accent {
  background: linear-gradient(100deg, var(--blue-700) 0%, var(--blue-600) 35%, #5b8cff 50%, var(--blue-600) 65%, var(--blue-700) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-hero .lede { margin-inline: auto; }
.story-hero .hero-actions { justify-content: center; }
.story-card {
  position: relative;
  width: min(880px, 100%);
  padding: var(--s3);
  border: 1px solid var(--navy-700);
  border-radius: var(--r-2xl);
  background: var(--navy-900);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 40px 80px -24px rgba(19, 26, 41, .45);
  color: #eef2f8;
}
.story-end { display: grid; justify-items: center; gap: var(--s5); text-align: center; }
.story-end h2 { max-width: 18ch; margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }

/* A generic profile picture (you, before meeting anyone) and your partner's. */
.person { display: block; width: 100%; height: auto; }
.person-bg { fill: #dfe3ea; }
.person-fg { fill: #fff; }
.person-partner .person-bg { fill: #2f3d5c; }
.person-partner .person-fg { fill: #b3c1db; }

.story-live .story { height: 560vh; }
.story-live .story-stage {
  --p: 0; --zoom: 0; --flat: 0; --float: 0; --split: 0; --link: 0; --card: 0; --ui: 0; --end: 0; --mx: 0; --my: 0;
  --cy0: 70%; --cy1: 56%; --dx: min(30vw, 360px);
  --w-ui: min(880px, 92vw); --h-ui: min(540px, 60vh); --y-ui: 54%;
  --w-end: min(700px, 92vw); --h-end: min(420px, 48vh); --y-end: 34%; --end-bottom: 6%;
  --cy: calc(var(--cy0) + (var(--cy1) - var(--cy0)) * var(--zoom));
  position: sticky;
  top: var(--header-h);
  display: block;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  padding: 0;
  overflow: hidden;
}
.story-live .story-grid {
  position: absolute;
  inset: -25%;
  display: block;
  background-image: radial-gradient(rgba(19, 26, 41, .1) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: calc(1 - var(--flat) * .5 - var(--ui) * .5);
  transform: translate(calc(var(--mx) * -6px), calc(var(--my) * -4px - var(--p) * 60px)) scale(calc(1 + var(--zoom) * .8));
}
.story-live .story-glow {
  position: absolute;
  top: var(--cy);
  left: 50%;
  display: block;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(28, 98, 245, .13), rgba(28, 98, 245, .05) 45%, transparent 70%);
  opacity: calc(1 - var(--ui));
  transform: translate(calc(-50% + var(--mx) * 18px), calc(-50% + var(--my) * 12px)) scale(calc(1 + var(--zoom) * .3));
  pointer-events: none;
}

/* 1 · Alone: you in the middle of a slow, tilted orbit. */
.story-live .story-hero { position: absolute; z-index: 4; top: var(--hero-top, 7%); left: 50%; width: min(820px, calc(100% - 2 * var(--gutter))); opacity: var(--o); transform: translate(-50%, calc(var(--zoom) * -56px)); }
.story-live .story-hero h1 { margin-bottom: var(--s4); font-size: clamp(2.375rem, min(1.25rem + 4vw, 9vh), 4.75rem); }
.story-live .story-hero .lede { max-width: 44ch; }
.story-live .story-hero .hero-actions { margin-top: var(--s6); }
.story-live .story-hero > * { animation: hero-in 1s var(--ease-out) both; }
.story-live .story-hero > :nth-child(2) { animation-delay: .08s; }
.story-live .story-hero > :nth-child(3) { animation-delay: .18s; }
.story-live .story-hero > :nth-child(4) { animation-delay: .3s; }
.story-live .hero-accent { animation: accent-sweep 2.6s var(--ease-out) .5s both; }
@keyframes hero-in { from { opacity: 0; filter: blur(8px); transform: translateY(18px); } }
@keyframes accent-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.story-live .hero-off .story-hero { visibility: hidden; }
@media (max-width: 559px) {
  .story-live .story-hero .lede { font-size: var(--fs-md); }
  .story-live .hero-secondary { min-height: 40px; border-color: transparent; background: none; box-shadow: none; color: var(--text-2); }
}

.story-live .story-scene { position: absolute; inset: 0; display: block; animation: scene-in 1.4s var(--ease-out) .35s both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit-rings path { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.orbit-back path { stroke: url(#ring-back); }
.orbit-front { z-index: 3; }
.orbit-front path { stroke: url(#ring-front); }
.orbit-rings path:nth-of-type(3) { stroke-dasharray: 2 6; }
.orbit-dots { position: absolute; inset: 0; }
.orbit-dots i { position: absolute; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(28, 98, 245, .12); will-change: transform, opacity; }
.orbit-dots i:nth-child(3n+2) { background: var(--navy-900); box-shadow: none; }
.orbit-dots i:nth-child(4n+3) { background: var(--blue-300); box-shadow: none; }

/* 2 · Discover: the orbit stretches into a path and other people appear along it. */
.floaters .avatar {
  --show: clamp(0, calc((var(--float) - var(--i) * .1) * 2.5), 1);
  position: absolute;
  top: var(--cy);
  left: var(--x);
  width: 34px;
  height: 34px;
  font-size: var(--fs-xs);
  box-shadow: 0 0 0 4px #fff, 0 10px 20px -8px rgba(19, 26, 41, .45);
  opacity: calc(var(--show) * (1 - var(--split) * 1.4));
  transform: translate(-50%, calc(-50% + var(--y) + sin(var(--p) * 900deg + var(--i) * 70deg) * 7px)) scale(calc(.4 + var(--show) * .6));
}
.floaters .avatar:nth-child(1) { --x: 9%; --y: -34px; --i: 0; }
.floaters .avatar:nth-child(2) { --x: 22%; --y: 30px; --i: 1; }
.floaters .avatar:nth-child(3) { --x: 35%; --y: -26px; --i: 2; }
.floaters .avatar:nth-child(4) { --x: 65%; --y: 28px; --i: 3; }
.floaters .avatar:nth-child(5) { --x: 78%; --y: -32px; --i: 4; }
.floaters .avatar:nth-child(6) { --x: 91%; --y: 26px; --i: 5; }
@media (max-width: 639px) { .floaters .avatar { width: 28px; height: 28px; font-size: 11px; } }

/* 3 · Connect: you move aside, someone arrives from the other side, two paths converge, and the
   little orbits around each of you fall into the same rhythm. */
.actor { position: absolute; z-index: 2; top: var(--cy); left: 50%; display: grid; justify-items: center; gap: var(--s2); }
.actor-avatar { width: var(--av, 92px); height: var(--av, 92px); border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--border), 0 24px 48px -18px rgba(19, 26, 41, .55); }
.actor-partner .actor-avatar { --av: 76px; }
.actor-label { padding: 2px 10px; border-radius: var(--r-full); background: #fff; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }
.actor-you {
  opacity: calc(1 - var(--card) * 1.6);
  transform: translate(-50%, -50%) translate(calc(var(--mx) * 5px), calc(var(--my) * 4px)) translateX(calc(var(--split) * var(--dx) * -1 * (1 - var(--card) * .85))) scale(calc(1 + var(--zoom) * .1 - var(--split) * .16 - var(--card) * .4));
}
.actor-partner {
  opacity: calc(min(1, var(--split) * 3) - var(--card) * 1.6);
  transform: translate(-50%, -38px) translateX(calc((1 - var(--split)) * 64vw + var(--split) * var(--dx) * (1 - var(--card) * .85))) scale(calc(1 - var(--card) * .45));
}
.mini { position: absolute; top: calc(var(--av, 92px) / 2); left: 50%; width: 0; height: 0; opacity: calc(min(1, var(--split) * 2) * (1 - var(--card) * 2)); }
.actor-partner .mini { top: 38px; }
.mini::before { content: ""; position: absolute; top: 0; left: 0; width: calc(var(--av, 92px) + 44px); height: calc((var(--av, 92px) + 44px) * .34); border: 1px solid rgba(28, 98, 245, .28); border-radius: 50%; transform: translate(-50%, -50%); }
.actor-partner .mini::before { width: 120px; height: 41px; border-color: rgba(19, 26, 41, .2); }
.mini i { position: absolute; top: 0; left: 0; z-index: 1; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--primary); }
.actor-partner .mini i { background: var(--navy-900); }
.mini i.is-front { z-index: 3; }
.actor-avatar { position: relative; z-index: 2; }
.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: calc(1 - var(--card) * 1.6); }
.path path { fill: none; stroke-width: 2; stroke-linecap: round; }
.path-you { stroke: var(--primary); clip-path: inset(-10% calc(100% - var(--split) * 50%) -10% -10%); }
.path-partner { stroke: var(--navy-900); clip-path: inset(-10% -10% -10% calc(100% - var(--split) * 50%)); }

/* 4 · Sync: a glowing line joins the two of you and becomes the session card. */
.link-line { position: absolute; top: var(--cy); left: 50%; width: calc(var(--dx) * 2); height: 2px; margin-top: -1px; opacity: calc(1 - var(--card) * 1.8); transform: translateX(-50%); }
.link-line::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #7aa3ff 50%, var(--primary)); box-shadow: 0 0 10px rgba(28, 98, 245, .7), 0 0 30px rgba(28, 98, 245, .4); transform: scaleX(var(--link)); }
.link-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border: 3px solid var(--primary); border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(28, 98, 245, .14), 0 0 26px rgba(28, 98, 245, .7); transform: translate(-50%, -50%) scale(var(--link)); }

.story-live .story-card {
  --w0: min(320px, 84vw);
  pointer-events: none;                 /* a picture: taps go through to the orbit under it */
  --h0: 196px;
  position: absolute;
  z-index: 4;
  top: calc(var(--cy) + (var(--y-ui) - var(--cy)) * var(--ui) + (var(--y-end) - var(--y-ui)) * var(--end));
  left: 50%;
  width: calc(var(--w0) + (var(--w-ui) - var(--w0)) * var(--ui) + (var(--w-end) - var(--w-ui)) * var(--end));
  height: calc(var(--h0) + (var(--h-ui) - var(--h0)) * var(--ui) + (var(--h-end) - var(--h-ui)) * var(--end));
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--navy-700) calc(min(1, var(--ui) * 1.6) * 100%), var(--border));
  border-radius: calc(20px + var(--ui) * 8px);
  background: color-mix(in srgb, var(--navy-900) calc(min(1, var(--ui) * 1.6) * 100%), #fff);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 30px 70px -24px rgba(19, 26, 41, calc(.3 + var(--ui) * .2)), 0 0 0 calc((1 - var(--ui)) * var(--card) * 6px) rgba(28, 98, 245, .12);
  color: var(--text);
  opacity: min(1, calc(var(--card) * 2.5));
  transform: translate(-50%, -50%) scale(calc(.2 + var(--card) * .8));
}
.story-live .card-face { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 22px 24px; opacity: calc(1 - var(--ui) * 2.4); }
.card-time { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.card-time strong { margin-right: 4px; color: var(--text); font-size: var(--fs-xl); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.card-people { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-md); font-weight: 600; }
.pair { display: inline-flex; }
.pair-avatar { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.pair-avatar + .pair-avatar { margin-left: -8px; }
.card-ask { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.card-btn { display: inline-flex; justify-self: start; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-sm); background: var(--primary); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.card-btn .icon { width: 16px; height: 16px; }
.story-live .ui-face { position: absolute; inset: 12px; display: flex; flex-direction: column; opacity: clamp(0, calc((var(--ui) - .3) * 2.4), 1); }
.story-live .ui-face .preview-tiles { flex: 1; min-height: 0; }
.story-live .ui-face .tile { height: 100%; aspect-ratio: auto; }

/* 5 · Focus, then the call to action. */
.story-live .story-captions { position: absolute; z-index: 4; top: var(--cap-top, 7%); left: 50%; display: block; width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0; padding: 0; list-style: none; text-align: center; transform: translateX(-50%); }
.story-captions li { position: absolute; top: 0; right: 0; left: 0; opacity: var(--o); }
.story-captions .eyebrow { justify-content: center; margin-bottom: var(--s3); }
.story-line { max-width: 22ch; margin: 0 auto; color: var(--text); font-size: clamp(1.625rem, 1.05rem + 2.2vw, 2.875rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.story-line .w { display: inline-block; opacity: calc(.12 + .88 * var(--w, 1)); filter: blur(calc((1 - var(--w, 1)) * 6px)); transform: translateY(calc((1 - var(--w, 1)) * 10px)); }
.story-live .story-end { position: absolute; z-index: 4; bottom: var(--end-bottom); left: 50%; width: min(720px, calc(100% - 2 * var(--gutter))); opacity: var(--o); transform: translate(-50%, calc((1 - var(--o)) * 24px)); }
.story-live .story-stage:not(.end-on) .story-end { visibility: hidden; }

/* The orbit under the headline answers a tap or click and glides on to "Objevit"; the hint at the
   bottom says the page goes on (and does the same). Both leave once the story moves. */
.story-live .story-globe {
  position: absolute;
  z-index: 3;
  top: var(--cy);
  left: 50%;
  display: block;
  width: calc(var(--globe-r, 160px) * 2);
  height: max(128px, calc(var(--globe-r, 160px) * .9));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.story-live .hero-off .story-globe { visibility: hidden; }
.story-live .actor-you .actor-avatar { transition: box-shadow .3s var(--ease-out), transform .25s var(--ease-out); }
.story-live .story-stage:has(.story-globe:hover) .actor-you .actor-avatar { box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(28, 98, 245, .5), 0 24px 48px -18px rgba(19, 26, 41, .55); }
.story-live .story-stage:has(.story-globe:active) .actor-you .actor-avatar { transform: scale(.94); }
.story-live .story-hint {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font: 600 var(--fs-xs) var(--font);
  white-space: nowrap;
  cursor: pointer;
  opacity: var(--o, 1);
  transform: translate(-50%, calc((1 - var(--o, 1)) * 10px));
  animation: hint-in .6s var(--ease-out) 1.2s both;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.story-live .story-hint:hover { border-color: var(--border-strong); color: var(--text); }
.story-live .story-hint:active { transform: translate(-50%, 0) scale(.96); }
.story-live .story-hint .icon { width: 16px; height: 16px; color: var(--primary); animation: hint-bob 1.6s ease-in-out 1.8s infinite; }
.story-live .hint-off .story-hint { visibility: hidden; }
.story-live .story-stage:not(.hint-off) .story-nav { pointer-events: none; }   /* still fading in under the hint */
.story-live .is-short .story-hero .eyebrow { display: none; }
.story-live .is-short .story-hero .hero-actions { margin-top: var(--s4); }
@keyframes hint-in { from { filter: opacity(0); translate: 0 8px; } }   /* not opacity: the scroll owns that */
@keyframes hint-bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
html.is-gliding { scroll-behavior: auto; }

/* Chapter buttons with a sliding marker. */
.story-live .story-nav {
  position: absolute;
  z-index: 5;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-md);
  opacity: var(--o);
  transform: translate(-50%, calc((1 - var(--o)) * 12px));
}
.story-live .story-stage.nav-off .story-nav { visibility: hidden; }
.story-nav button {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-full);
  background: none;
  color: var(--text-3);
  font: 600 var(--fs-xs) var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.story-nav button:hover { color: var(--text); }
.story-nav button:active { transform: scale(.95); }
.story-nav button[aria-current="step"] { color: #fff; }
.story-nav-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--ink-w, 0); border-radius: var(--r-full); background: var(--navy-900); box-shadow: 0 4px 12px -4px rgba(19, 26, 41, .5); transform: translateX(var(--ink-x, 0)); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
@media (max-width: 559px) {
  .story-nav button:not([aria-current="step"]) { width: 26px; padding: 0; font-size: 0; }
  .story-nav button:not([aria-current="step"])::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); transform: translate(-50%, -50%); }
}

/* Statement: "Soustřeďte se. Spolu. Lépe." revealed by the scroll over a slow fall of S marks. */
.statement { position: relative; overflow: hidden; overflow: clip; background: radial-gradient(120% 70% at 50% 0%, #182544 0%, var(--navy-950) 60%); color: #eef2f8; }
.statement-sky { position: absolute; inset: 0; pointer-events: none; }
.fall { position: absolute; top: var(--y0); left: var(--x); width: var(--s); height: auto; opacity: var(--a); filter: blur(var(--b)); transform: translateY(calc(var(--q, .5) * var(--v) * 120vh - 30vh)) rotate(calc(var(--r) + var(--q, .5) * var(--spin))); }
.fall:nth-child(1) { --x: 6%; --y0: 4%; --s: 46px; --a: .1; --b: 0px; --v: .9; --r: -12deg; --spin: 40deg; }
.fall:nth-child(2) { --x: 18%; --y0: 30%; --s: 22px; --a: .07; --b: 1.5px; --v: .5; --r: 20deg; --spin: -30deg; }
.fall:nth-child(3) { --x: 29%; --y0: 12%; --s: 74px; --a: .06; --b: 3px; --v: 1.2; --r: 8deg; --spin: 25deg; }
.fall:nth-child(4) { --x: 41%; --y0: 48%; --s: 18px; --a: .12; --b: 0px; --v: .7; --r: -30deg; --spin: 60deg; }
.fall:nth-child(5) { --x: 53%; --y0: 6%; --s: 34px; --a: .08; --b: 1px; --v: .8; --r: 14deg; --spin: -20deg; }
.fall:nth-child(6) { --x: 64%; --y0: 38%; --s: 58px; --a: .05; --b: 2.5px; --v: 1.1; --r: -6deg; --spin: 35deg; }
.fall:nth-child(7) { --x: 75%; --y0: 16%; --s: 26px; --a: .11; --b: 0px; --v: .6; --r: 24deg; --spin: -45deg; }
.fall:nth-child(8) { --x: 86%; --y0: 44%; --s: 42px; --a: .07; --b: 1px; --v: .95; --r: -18deg; --spin: 30deg; }
.fall:nth-child(9) { --x: 94%; --y0: 8%; --s: 20px; --a: .09; --b: .5px; --v: .55; --r: 10deg; --spin: -25deg; }
.fall:nth-child(10) { --x: 11%; --y0: 62%; --s: 30px; --a: .06; --b: 2px; --v: .75; --r: 36deg; --spin: 20deg; }
.fall:nth-child(11) { --x: 23%; --y0: 78%; --s: 52px; --a: .05; --b: 3px; --v: 1.05; --r: -24deg; --spin: -35deg; }
.fall:nth-child(12) { --x: 37%; --y0: 70%; --s: 24px; --a: .1; --b: 0px; --v: .65; --r: 4deg; --spin: 50deg; }
.fall:nth-child(13) { --x: 59%; --y0: 74%; --s: 38px; --a: .07; --b: 1.5px; --v: .85; --r: -14deg; --spin: -30deg; }
.fall:nth-child(14) { --x: 70%; --y0: 60%; --s: 16px; --a: .12; --b: 0px; --v: .5; --r: 28deg; --spin: 45deg; }
.fall:nth-child(15) { --x: 81%; --y0: 82%; --s: 64px; --a: .045; --b: 3px; --v: 1.15; --r: -8deg; --spin: 20deg; }
.fall:nth-child(16) { --x: 47%; --y0: 88%; --s: 28px; --a: .08; --b: 1px; --v: .7; --r: 18deg; --spin: -40deg; }
@media (max-width: 639px) { .fall { width: calc(var(--s) * .7); } .fall:nth-child(n+11) { display: none; } }
.statement-inner { position: relative; display: grid; justify-items: center; gap: var(--s6); padding: var(--s24) var(--gutter); text-align: center; }
.statement-text { max-width: 14ch; margin: 0; color: #fff; font-size: clamp(2.5rem, 1.2rem + 5vw, 5.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.statement-text [data-phrase="1"] { color: var(--blue-300); }
.statement-sub { max-width: 40ch; margin: 0; color: #9aa6bd; font-size: var(--fs-lg); }
.story-live .statement { height: 220vh; }
.story-live .statement-inner { position: sticky; top: var(--header-h); min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); align-content: center; padding-block: var(--s12); }
.story-live .statement [data-phrase] { display: inline-block; opacity: calc(.08 + .92 * var(--r, 0)); filter: blur(calc((1 - var(--r, 0)) * 10px)); transform: translateY(calc((1 - var(--r, 0)) * 18px)); }

/* Upcoming blocks with live waiting counts */
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.slot-tile {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out);
}
.slot-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); color: var(--text); transform: translateY(-2px); }
.slot-time { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.slot-day { color: var(--text-3); font-size: var(--fs-xs); }
.slot-state { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; }
.slot-tile.is-waiting { border-color: var(--primary-edge); background: var(--primary-soft); }
.slot-tile.is-waiting:hover { border-color: var(--primary); }
.slot-tile.is-waiting .slot-state { color: var(--primary-text); font-weight: 600; }

/* A 50-minute session on one line */
.timeline { display: grid; grid-template-columns: minmax(48px, 6fr) minmax(0, 88fr) minmax(48px, 6fr); gap: 4px; margin: 0 0 var(--s10); padding: 0; list-style: none; }
.timeline li { display: grid; gap: var(--s2); min-width: 0; }
.timeline .bar { height: 10px; border-radius: var(--r-full); background: var(--navy-900); }
.timeline li:first-child .bar { background: var(--primary); }
.timeline li:last-child .bar { background: var(--green-600); }
.timeline .when { color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline li:nth-child(2) .when { text-align: center; }
.timeline li:last-child .when { text-align: right; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin: calc(-1 * var(--s6)) 0 var(--s10); padding: 0; color: var(--text-2); font-size: var(--fs-sm); list-style: none; }
.timeline-legend li { display: inline-flex; align-items: center; gap: var(--s2); }
.timeline-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--navy-900); }
.timeline-legend .t-goal { background: var(--primary); }
.timeline-legend .t-check { background: var(--green-600); }

.steps { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { position: relative; padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--s5);
  right: var(--s5);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps .icon-badge { margin-bottom: var(--s4); }
.steps h3 { margin-bottom: 6px; font-size: var(--fs-base); }
.steps p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.55; }

.features { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.features li { display: grid; align-content: start; gap: var(--s2); padding: var(--s6) var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.features .icon-badge { margin-bottom: var(--s2); }
.band-more { margin: var(--s8) 0 0; }
.features strong { font-size: var(--fs-base); font-weight: 600; }
.features span { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.55; }

.faq-grid { display: grid; gap: var(--s8); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s16); } }
.faq-grid .band-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding: var(--s4) 0;
  font-size: var(--fs-md);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary-text); }
.faq details p { margin: 0 0 var(--s5); padding-right: var(--s8); color: var(--text-2); animation: rise-in .3s var(--ease-out); }
.faq details p a { font-weight: 600; }

/* FAQ in categories: each category opens to its questions (plain <details>, works without JS). */
.faq-cats { display: grid; gap: var(--s3); }
.faq-cat { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); }
.faq-cat[open] { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.faq-cat > summary { display: flex; align-items: center; gap: var(--s4); min-height: 72px; padding: var(--s4) var(--s5); border-radius: var(--r-lg); list-style: none; cursor: pointer; }
.faq-cat > summary::-webkit-details-marker { display: none; }
.faq-cat > summary:hover .faq-cat-name { color: var(--primary-text); }
.faq-cat > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-cat > summary .icon-badge { flex: none; }
.faq-cat-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.faq-cat-name { font-size: var(--fs-md); font-weight: 600; transition: color var(--dur); }
.faq-cat-count { color: var(--text-3); font-size: var(--fs-xs); }
.faq-cat > summary > .icon { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur) var(--ease-out); }
.faq-cat[open] > summary > .icon { transform: rotate(180deg); }
.faq-cat > .faq { margin: 0 var(--s5) var(--s2); }
.faq-cat > .faq > details:last-child { border-bottom: 0; }
@media (max-width: 639px) {
  .faq-cat > summary { gap: var(--s3); padding: var(--s3) var(--s4); }
  .faq-cat > .faq { margin-inline: var(--s4); }
  .faq-cat .faq summary { font-size: var(--fs-base); }
  .faq-cat .faq details p { padding-right: 0; }
}

/* /faq and /funkce */
.faq-main { width: 100%; }
.faq-page .band-head h1 { margin: 0; font-size: clamp(2rem, 1.25rem + 2.8vw, 3rem); letter-spacing: -.04em; }
.faq-more { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.feat-jump { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); }
.feat-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: border-color var(--dur), color var(--dur); }
.feat-jump a:hover { border-color: var(--border-strong); color: var(--text); }
.footer-copy { white-space: nowrap; }

/* /co-je-body-doubling: the ideas behind Syncify and what research says (body_doubling.html). */
.bd-main { width: 100%; }
.bd-hero { padding-block: var(--s16) var(--s10); }
.bd-hero .eyebrow { margin-bottom: var(--s3); }
.bd-hero h1 { max-width: 18ch; margin: 0 0 var(--s4); font-size: clamp(2rem, 1.25rem + 2.8vw, 3.375rem); letter-spacing: -.042em; line-height: 1.05; }
.bd-hero .lede { max-width: 58ch; }
.bd-updated { margin: var(--s6) 0 0; color: var(--text-3); font-size: var(--fs-xs); }
.bd-split { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 960px) { .bd-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s16); } }
.bd-text h2, .bd-closing h2 { margin: 0 0 var(--s4); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -.03em; }
.bd-text p { max-width: 60ch; color: var(--text-2); font-size: var(--fs-md); line-height: 1.65; }
.bd-text p:last-child { margin-bottom: 0; }

/* Two desks, two tasks, one shared time; nothing on the screens is shown. */
.bd-desks { display: grid; gap: var(--s4); margin: 0; padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface-2); }
.bd-desk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.bd-desk { display: grid; justify-items: center; gap: var(--s2); padding: var(--s5) var(--s3); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); text-align: center; }
.bd-avatar { display: block; width: 64px; height: 64px; }
.bd-avatar .person { width: 100%; height: 100%; }
.bd-who { font-weight: 600; }
.bd-task { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.bd-task .icon { width: 14px; height: 14px; }
.bd-screen { display: grid; place-items: center; width: 100%; max-width: 140px; height: 56px; margin-top: var(--s2); border-radius: var(--r-md) var(--r-md) 4px 4px; background: var(--navy-900); color: rgba(255, 255, 255, .55); }
.bd-screen .icon { width: 18px; height: 18px; }
.bd-shared { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0; padding: var(--s3) var(--s4); border: 1px solid var(--primary-edge); border-radius: var(--r-full); background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.bd-shared span { display: inline-flex; align-items: center; gap: var(--s2); }
.bd-shared .icon { width: 18px; height: 18px; }
.bd-desks figcaption { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 400px) { .bd-desks { padding: var(--s4); } .bd-desk { padding-inline: var(--s2); } .bd-task { font-size: var(--fs-2xs); } }

.bd-cards { margin-top: 0; }
@media (min-width: 1024px) { .bd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bd-cards h3 { margin: 0; font-size: var(--fs-base); }
.bd-cards p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

.bd-studies { display: grid; gap: var(--s4); }
@media (min-width: 960px) { .bd-studies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-study { display: grid; align-content: start; padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.bd-study > * { margin-block: 0; }
.bd-label { justify-self: start; white-space: normal; }
.bd-study h3 { margin-top: var(--s4); font-size: var(--fs-xl); letter-spacing: -.02em; }
.bd-study h4 { margin-top: var(--s5); color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bd-study h4 + p { margin-top: var(--s2); }
.bd-study p { color: var(--text-2); line-height: 1.65; }
.bd-limit, .bd-note, .bd-privacy { display: flex; align-items: flex-start; gap: var(--s3); }
.bd-study .bd-limit { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--warning-soft); color: var(--text); }
.bd-limit .icon, .bd-note .icon, .bd-privacy .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.bd-limit .icon { color: var(--warning); }
.bd-study .bd-source { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.55; overflow-wrap: anywhere; }
.bd-source cite { font-style: normal; }
.bd-source a { display: inline-flex; align-items: center; gap: 2px; margin-right: var(--s2); font-weight: 600; }
.bd-source a .icon { width: 13px; height: 13px; }
.bd-note { max-width: 860px; margin: var(--s6) 0 0; padding: var(--s4) var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); line-height: 1.6; }
.bd-note .icon { color: var(--text-3); }
.bd-privacy { max-width: 860px; margin: var(--s6) 0 0; color: var(--text-2); line-height: 1.6; }
.bd-privacy .icon { color: var(--primary-text); }
.bd-closing { display: grid; justify-items: center; text-align: center; }
.bd-closing p { max-width: 52ch; margin: 0 0 var(--s6); color: var(--text-2); font-size: var(--fs-md); }
.bd-closing .how-actions { justify-content: center; margin: 0; }
@media (max-width: 639px) {
  .bd-hero { padding-block: var(--s10) var(--s6); }
  .bd-hero .lede { font-size: var(--fs-md); }
  .bd-hero .how-actions .btn { flex: 1 1 auto; min-height: 46px; padding-inline: 16px; font-size: var(--fs-sm); }
  .bd-study { padding: var(--s5); }
}

.cta-band {
  position: relative;
  display: grid;
  gap: var(--s6);
  padding: var(--s12) var(--s8);
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--navy-900);
  color: #eef2f8;
}
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -.035em; }
.cta-band p { margin: 0; color: #c9d2e3; font-size: var(--fs-lg); }
.cta-band .mark { position: absolute; right: -70px; bottom: -110px; width: 340px; opacity: .1; }
.cta-band > div { position: relative; display: grid; gap: var(--s3); }
.cta-band > .cta-actions { display: flex; }
@media (min-width: 768px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s16); } }

/* Jak to funguje -------------------------------------------------------------
   Six steps beside one small Syncify (the stage) that changes with them. how.js picks the step
   from the scroll (wide screens) or the swipe (phones) and from the step buttons; every move is a
   CSS transition between the [data-step] states below. Without JavaScript the steps are a plain
   list of cards and the stage stays hidden. */

.how-main { width: 100%; }
.how-hero { display: grid; gap: var(--s8); padding-block: var(--s10) var(--s8); }
@media (min-width: 960px) { .how-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: var(--s12); padding-block: var(--s16) var(--s12); } }
.how-hero .eyebrow { margin-bottom: var(--s3); }
.how-hero h1 { max-width: 16ch; margin: 0 0 var(--s4); font-size: clamp(2rem, 1.25rem + 2.8vw, 3.375rem); letter-spacing: -.042em; line-height: 1.03; }
.how-hero .lede { max-width: 50ch; }
.how-actions, .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.how-actions { margin-top: var(--s6); }
@media (max-width: 639px) {
  .how-hero { gap: var(--s6); padding-block: var(--s8) var(--s6); }
  .how-hero .lede { font-size: var(--fs-md); }
  .how-actions { margin-top: var(--s5); }
  .how-actions .btn { flex: 1 1 auto; min-height: 46px; padding-inline: 16px; font-size: var(--fs-sm); }
  .how-glance { padding: var(--s4); }
}
.btn-on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .3); --btn-bg-hover: rgba(255, 255, 255, .08); --btn-border-hover: rgba(255, 255, 255, .55); box-shadow: none; }

/* The session at a glance: 3 · 50 · 3 minutes. */
.how-glance { margin: 0; padding: var(--s5) var(--s5) var(--s4); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.how-glance-bar { display: grid; grid-template-columns: 1fr 6fr 1fr; gap: 4px; }
.how-glance-bar span { height: 8px; border-radius: var(--r-full); }
.g-warm { background: var(--blue-300); }
.g-focus { background: linear-gradient(90deg, var(--blue-600), var(--blue-300)); }
.g-wrap { background: #4cc28c; }
.how-glance figcaption { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.35; }
.how-glance figcaption span:nth-child(2) { text-align: center; }
.how-glance figcaption span:last-child { text-align: right; }
.how-glance strong { display: block; color: var(--text); font-size: var(--fs-sm); }

/* Steps: cards; with JavaScript they become the text beside the stage (wide) or a swipe row. */
.how { padding-bottom: var(--s16); }
.how-nav, .how-stage-col, .how-next { display: none; }
.how-steps { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.how-step { padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.how-step-n { display: flex; align-items: baseline; gap: var(--s2); margin: 0 0 var(--s2); color: var(--primary-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.how-step-n span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.how-step h2 { margin: 0 0 var(--s3); font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem); letter-spacing: -.034em; line-height: 1.1; }
.how-step-lead { margin: 0; color: var(--text-2); font-size: var(--fs-md); line-height: 1.6; }
.how-points { display: grid; gap: var(--s3); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.how-points li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.how-points .icon { width: 20px; height: 20px; color: var(--primary-text); }
.how-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s6); }

/* Step buttons: a sliding dark marker under the current one; steps already passed keep a tint. */
.how.is-live .how-nav { position: relative; display: flex; align-items: center; gap: 2px; width: fit-content; max-width: 100%; margin: 0 auto var(--s8); padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-full); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); scrollbar-width: none; }
.how-nav::-webkit-scrollbar { display: none; }
.how-nav button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 7px;
  border: 0;
  border-radius: var(--r-full);
  background: none;
  color: var(--text-2);
  font: 600 var(--fs-sm)/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .35s var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.how-nav button:hover { color: var(--text); }
.how-nav button:active { transform: scale(.96); }
.how-tab-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text-3); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; transition: background-color .35s, color .35s; }
.how-nav button.is-past .how-tab-n { background: var(--primary-soft); color: var(--primary-text); }
.how-nav button[aria-current="step"] { color: #fff; }
.how-nav button[aria-current="step"] .how-tab-n { background: rgba(255, 255, 255, .16); color: #fff; }
.how-nav-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--ink-w, 0); border-radius: var(--r-full); background: var(--navy-900); box-shadow: 0 6px 16px -8px rgba(19, 26, 41, .6); transform: translateX(var(--ink-x, 0)); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }

/* Wide screens: the text scrolls, the stage stays beside it; the step at the middle of the screen leads. */
@media (min-width: 960px) {
  .how.is-live .how-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "nav nav" "steps stage"; column-gap: var(--s16); }
  .how.is-live .how-nav { grid-area: nav; position: sticky; z-index: 6; top: calc(var(--header-h) + 12px); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  .how.is-live .how-stage-col { display: block; grid-area: stage; }
  .how.is-live .how-stage { position: sticky; top: calc(var(--header-h) + 92px); width: min(100%, calc((100vh - var(--header-h) - 124px) * 1.25)); margin-inline: auto; }
  .how.is-live .how-steps { grid-area: steps; gap: 0; padding-bottom: 24vh; }
  .how.is-live .how-step { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding: var(--s8) 0; border: 0; background: none; box-shadow: none; opacity: .26; transition: opacity .5s var(--ease-out); }
  .how.is-live .how-step:first-child { min-height: 48vh; justify-content: flex-start; padding-top: var(--s10); }
  .how.is-live .how-step.is-active { opacity: 1; }
}

/* Phones and tablets: the stage on top, the steps as cards to swipe. */
@media (max-width: 959px) {
  .how.is-live .how-grid { display: flex; flex-direction: column; }
  .how.is-live .how-nav { width: auto; max-width: none; margin: 0 calc(-1 * var(--gutter)) var(--s4); padding: 4px var(--gutter); border: 0; border-radius: 0; background: none; box-shadow: none; scroll-padding-inline: var(--gutter); }
  .how.is-live .how-nav button { border: 1px solid var(--border); background: var(--surface); }
  .how.is-live .how-nav button[aria-current="step"] { border-color: transparent; background: transparent; }
  .how.is-live .how-nav-ink { top: 4px; bottom: 4px; }
  .how.is-live .how-stage-col { display: block; }
  .how.is-live .how-stage { width: 100%; max-width: 600px; margin-inline: auto; border-radius: var(--r-xl); }
  .how.is-live .how-steps { display: flex; gap: var(--s3); margin: var(--s4) calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) var(--s2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .how.is-live .how-steps::-webkit-scrollbar { display: none; }
  .how.is-live .how-step { display: flex; flex: 0 0 min(86%, 440px); flex-direction: column; padding: 18px var(--s5) var(--s3); scroll-snap-align: center; opacity: .55; transition: opacity .35s var(--ease-out), box-shadow .35s; }
  .how.is-live .how-step.is-active { opacity: 1; box-shadow: var(--shadow-md); }
  .how.is-live .how-step h2 { font-size: var(--fs-xl); }
  .how.is-live .how-step-lead { font-size: .9375rem; line-height: 1.55; }
  .how.is-live .how-points { gap: var(--s2); margin-top: var(--s4); }
  .how.is-live .how-points li { font-size: var(--fs-xs); }
  .how.is-live .how-next { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; min-height: 40px; margin-top: auto; padding: var(--s2) 0 0; border: 0; background: none; color: var(--primary-text); font: 600 var(--fs-sm) var(--font); cursor: pointer; }
  .how.is-live .how-next .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
  .how.is-live .how-next:hover .icon { transform: translateX(3px); }
  .how.is-live .how-step-actions { margin-top: auto; padding-top: var(--s4); }
}

/* The stage ---------------------------------------------------------------
   Positions in % of the stage (x of its width, y of its height), sizes in cqw (1/100 of its
   width), so it scales as one picture. Blue is you, white your partner (the logo on dark). */
.how-stage {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .8s;
  --logo-ink: #fff;
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  border: 1px solid var(--navy-700);
  border-radius: var(--r-2xl);
  background: radial-gradient(140% 100% at 50% 0%, #19233d 0%, var(--navy-900) 52%, var(--navy-950) 100%);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 40px 80px -32px rgba(19, 26, 41, .55);
  color: #eef2f8;
  user-select: none;
  -webkit-user-select: none;
}
.how-stage .person-you .person-bg { fill: var(--blue-600); }
.how-stage .person-you .person-fg { fill: #fff; }
.how-stage .person-partner .person-bg { fill: #e8edf5; }
.how-stage .person-partner .person-fg { fill: #5d6c90; }

.hs-bg { position: absolute; z-index: -1; inset: 0; }
.hs-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px); background-size: 4.2cqw 4.2cqw; -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent); }
.hs-glow { position: absolute; left: var(--gx, 62%); top: var(--gy, 32%); width: 84cqw; height: 84cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 98, 245, .3), rgba(28, 98, 245, 0)); transform: translate(-50%, -50%); transition: left 1.4s var(--ease), top 1.4s var(--ease), opacity 1s; }
.hs-glow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(19, 145, 90, .32), rgba(19, 145, 90, 0)); opacity: 0; transition: opacity 1s; }
.how-stage[data-step="1"] { --gx: 50%; --gy: 46%; }
.how-stage[data-step="2"] { --gx: 50%; --gy: 40%; }
.how-stage[data-step="3"] { --gx: 50%; --gy: 62%; }
.how-stage[data-step="4"] { --gx: 50%; --gy: 58%; }
.how-stage[data-step="5"] { --gx: 50%; --gy: 30%; }
.how-stage.is-wrap .hs-glow::after { opacity: 1; }
.hs-drift { position: absolute; height: auto; opacity: .05; animation: hs-drift 28s ease-in-out infinite alternate; }
.hs-drift:nth-of-type(1) { left: 4%; top: 64%; width: 15cqw; }
.hs-drift:nth-of-type(2) { left: 82%; top: 12%; width: 9cqw; animation-duration: 34s; animation-delay: -12s; }
.hs-drift:nth-of-type(3) { left: 74%; top: 76%; width: 6cqw; animation-duration: 22s; animation-delay: -6s; }
@keyframes hs-drift { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(3cqw, -5cqw) rotate(10deg); } }

.hs-bar { position: absolute; z-index: 3; top: 4cqw; left: 4.4cqw; display: flex; align-items: center; gap: 1.6cqw; color: #9aa6bd; font-size: clamp(9px, 2.3cqw, 13px); font-weight: 500; line-height: 1; }
.hs-bar .mark { width: 4.6cqw; flex: none; }
.hs-pill { position: absolute; z-index: 3; top: 3cqw; right: 4.4cqw; display: inline-flex; align-items: center; gap: 1.4cqw; padding: .9cqw 1.6cqw .9cqw 2cqw; border: 1px solid rgba(143, 177, 255, .35); border-radius: 99px; background: rgba(28, 98, 245, .16); color: var(--blue-300); font-size: clamp(8px, 2cqw, 12px); font-weight: 600; letter-spacing: .06em; line-height: 1; text-transform: uppercase; opacity: 0; transform: translateY(-1cqw); transition: opacity .4s, transform .5s var(--ease), color .5s, background-color .5s, border-color .5s; }
.hs-pill strong { color: #fff; font-size: clamp(10px, 2.7cqw, 15px); letter-spacing: 0; }
.how-stage[data-step="2"] .hs-pill, .how-stage.is-wrap .hs-pill { opacity: 1; transform: none; }
.how-stage.is-wrap .hs-pill { border-color: rgba(111, 211, 162, .4); background: rgba(19, 145, 90, .2); color: #6fd3a2; }

/* 1 · Objev: the week's timetable, one block where someone already waits. */
.hs-board { position: absolute; inset: 0; transition: opacity .45s, transform .8s var(--ease), filter .45s, visibility 0s; }
.how-stage:not([data-step="0"]) .hs-board { visibility: hidden; opacity: 0; filter: blur(3px); transform: scale(.94) translateY(-2cqw); transition: opacity .45s, transform .8s var(--ease), filter .45s, visibility 0s .45s; }
.hs-day { position: absolute; left: 6%; color: #9aa6bd; font-size: clamp(9px, 2.3cqw, 13px); font-weight: 600; transform: translateY(-50%); }
.hs-day:nth-child(1) { top: 30.5%; }
.hs-day:nth-child(2) { top: 52.5%; }
.hs-slot { position: absolute; display: grid; align-content: center; gap: .3cqw; width: 21%; height: 16%; padding-left: 2.2cqw; border: 1px solid var(--navy-700); border-radius: 2.2cqw; background: rgba(27, 35, 51, .85); }
.hs-slot b { color: #dfe5f0; font-size: clamp(10px, 2.7cqw, 15px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hs-slot small { color: #7d8aa5; font-size: clamp(8px, 1.9cqw, 11px); line-height: 1.2; }
.hs-slot:nth-child(3) { top: 22.5%; left: 22%; opacity: .45; }
.hs-slot:nth-child(4) { top: 22.5%; left: 46%; }
.hs-slot:nth-child(5) { top: 22.5%; left: 70%; }
.hs-slot:nth-child(6) { top: 44.5%; left: 22%; }
.hs-slot:nth-child(7) { top: 44.5%; left: 46%; }
.hs-slot:nth-child(8) { top: 44.5%; left: 70%; }
.hs-slot.is-waiting { border-color: rgba(143, 177, 255, .6); background: rgba(28, 98, 245, .22); animation: hs-ping 2.6s ease-out infinite; }
.hs-slot.is-waiting b { color: #fff; }
.hs-slot.is-waiting small { color: var(--blue-300); font-weight: 600; }
@keyframes hs-ping { 0% { box-shadow: 0 0 0 0 rgba(143, 177, 255, .45); } 70%, 100% { box-shadow: 0 0 0 2.6cqw rgba(143, 177, 255, 0); } }

.hs-lines { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hs-lines path { fill: none; stroke-linecap: round; }
.hs-hint { stroke: rgba(143, 177, 255, .55); stroke-width: 1.5; stroke-dasharray: 1.6 2.4; opacity: 0; transition: opacity .4s; animation: hs-march 1.4s linear infinite; }
.how-stage[data-step="0"] .hs-hint { opacity: 1; transition-delay: .5s; }
@keyframes hs-march { to { stroke-dashoffset: -4; } }
.hs-link { stroke: var(--blue-300); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .7s var(--ease), opacity .3s; }
.how-stage[data-step="1"] .hs-link { opacity: 1; stroke-dashoffset: 0; transition-delay: .45s; }
.hs-spark { position: absolute; z-index: 2; top: 46%; left: 41%; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 1.6cqw .5cqw rgba(143, 177, 255, .85); opacity: 0; transform: translate(-50%, -50%); }
.how-stage[data-step="1"] .hs-spark { animation: hs-spark 2.6s var(--ease) 1.1s infinite alternate; }
@keyframes hs-spark { 0% { left: 41%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 59%; opacity: 0; } }

/* You and your partner: circles while you find each other, video tiles in the session. */
.hs-seat {
  --x: 44.5%; --y: 82%; --w: 11cqw; --h: 11cqw; --a: 11cqw; --r: 50%;
  position: absolute;
  z-index: 2;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--h);
  border: 1px solid var(--seat-line, transparent);
  border-radius: var(--r);
  background-color: var(--seat-bg, transparent);
  transform: translate(-50%, -50%);
  transition: top var(--t) var(--ease), left var(--t) var(--ease), width var(--t) var(--ease), height var(--t) var(--ease), border-radius var(--t) var(--ease), background-color .6s, border-color .6s, opacity .5s, box-shadow .6s;
}
.hs-partner { --x: 63.6%; --y: 26.8%; --w: 4.4cqw; --h: 4.4cqw; --a: 4.4cqw; }
.hs-avatar { position: absolute; top: 50%; left: 50%; width: var(--a); height: var(--a); border-radius: 50%; box-shadow: 0 0 0 .5cqw rgba(12, 17, 32, .9); transform: translate(-50%, -50%); transition: width var(--t) var(--ease), height var(--t) var(--ease); }
.hs-avatar .person { width: 100%; height: 100%; border-radius: 50%; }
.how-stage[data-step="0"] .hs-you .hs-avatar, .how-stage[data-step="1"] .hs-avatar { animation: hs-float 4.5s ease-in-out infinite; }
.how-stage[data-step="1"] .hs-partner .hs-avatar { animation-delay: -2.2s; }
@keyframes hs-float { 50% { transform: translate(-50%, calc(-50% - .8cqw)); } }
.hs-name { position: absolute; top: calc(100% + 1.4cqw); left: 50%; padding: .5cqw 1.5cqw; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #c9d2e3; font-size: clamp(9px, 2.1cqw, 12px); font-weight: 600; line-height: 1.2; white-space: nowrap; transform: translateX(-50%); transition: top var(--t) var(--ease), left var(--t) var(--ease), transform var(--t) var(--ease), opacity .4s, background-color .4s; }
.hs-mic { position: absolute; top: 1.3cqw; right: 1.3cqw; display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; opacity: 0; transition: opacity .4s; }
.hs-mic .icon { width: 2cqw; height: 2cqw; }
.how-stage[data-step="0"] .hs-partner .hs-name { opacity: 0; }
.how-stage[data-step="1"] .hs-seat { --w: 18cqw; --h: 18cqw; --a: 18cqw; }
.how-stage[data-step="1"] .hs-you { --x: 30%; --y: 46%; }
.how-stage[data-step="1"] .hs-partner { --x: 70%; --y: 46%; }
.how-stage[data-step="2"] .hs-seat { --w: 41cqw; --h: 29cqw; --a: 12cqw; --r: 3cqw; --seat-bg: #1b2333; --seat-line: #2a3551; }
.how-stage[data-step="2"] .hs-you { --x: 26.5%; --y: 41%; }
.how-stage[data-step="2"] .hs-partner { --x: 73.5%; --y: 41%; }
.how-stage[data-step="3"] .hs-seat, .how-stage[data-step="4"] .hs-seat { --w: 34cqw; --h: 19cqw; --a: 8cqw; --r: 2.6cqw; --seat-bg: #1b2333; --seat-line: #2a3551; }
.how-stage[data-step="3"] .hs-you, .how-stage[data-step="4"] .hs-you { --x: 27%; --y: 23%; }
.how-stage[data-step="3"] .hs-partner, .how-stage[data-step="4"] .hs-partner { --x: 73%; --y: 23%; }
.how-stage[data-step="5"] .hs-seat { --w: 11cqw; --h: 11cqw; --a: 11cqw; --y: 21%; }
.how-stage[data-step="5"] .hs-you { --x: 44.5%; }
.how-stage[data-step="5"] .hs-partner { --x: 55.5%; }
.how-stage[data-step="2"] .hs-name, .how-stage[data-step="3"] .hs-name, .how-stage[data-step="4"] .hs-name { top: calc(100% - 4.6cqw); left: 1.6cqw; background: rgba(0, 0, 0, .35); transform: none; }
.how-stage[data-step="5"] .hs-name { opacity: 0; }
.how-stage[data-step="3"] .hs-mic, .how-stage[data-step="4"] .hs-mic { opacity: 1; }
/* Focus: both tiles breathe together, slowly. */
.how-stage[data-step="3"] .hs-seat { opacity: .72; animation: hs-breathe 5s ease-in-out infinite; }
@keyframes hs-breathe { 50% { box-shadow: 0 0 0 .6cqw rgba(143, 177, 255, .14); } }
.how-stage.is-shifting .hs-seat { opacity: .72; }

.hs-badge { position: absolute; z-index: 3; top: 27%; left: 50%; display: grid; place-items: center; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 .6cqw var(--navy-900); color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .3s, transform .5s var(--ease-snap); }
.hs-badge .icon { width: 2.8cqw; height: 2.8cqw; }
.how-stage[data-step="5"] .hs-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .55s; }
.hs-chip { position: absolute; z-index: 2; top: 72%; left: 50%; display: inline-flex; align-items: center; gap: 1cqw; padding: 1cqw 2cqw; border: 1px solid rgba(143, 177, 255, .3); border-radius: 99px; background: rgba(28, 98, 245, .14); color: #dfe5f0; font-size: clamp(9px, 2.3cqw, 13px); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 1.5cqw); transition: opacity .4s, transform .6s var(--ease); }
.hs-chip .icon { width: 2.6cqw; height: 2.6cqw; color: var(--blue-300); }
.how-stage[data-step="1"] .hs-chip { opacity: 1; transform: translate(-50%, 0); transition-delay: .9s; }

/* 3 · Sladit: say hello, type the goal. */
.hs-goal { position: absolute; z-index: 2; top: 68%; max-width: 40cqw; padding: .9cqw 1.8cqw; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 1.8cqw; background: rgba(255, 255, 255, .06); color: #dfe5f0; font-size: clamp(8px, 2.15cqw, 12px); white-space: nowrap; text-overflow: ellipsis; opacity: 0; clip-path: inset(0 100% 0 0 round 1.8cqw); transform: translate(-50%, -50%); transition: opacity .3s, clip-path 0s .3s; }
.hs-goal-you { left: 26.5%; }
.hs-goal-partner { left: 73.5%; }
.how-stage[data-step="2"] .hs-goal { opacity: 1; clip-path: inset(0 0 0 0 round 1.8cqw); transition: opacity .2s .8s, clip-path 1.1s steps(18) .8s; }
.how-stage[data-step="2"] .hs-goal-partner { transition-delay: 1.9s; }
.how-stage.is-shifting .hs-goal { opacity: .35; transition: opacity .5s; }

/* 4 · Soustředit se: the timer takes the centre. */
.hs-ring { position: absolute; z-index: 2; top: 61%; left: 50%; width: 28cqw; aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%) scale(.82); transition: opacity .5s, transform .8s var(--ease), top .8s var(--ease); }
.how-stage[data-step="3"] .hs-ring, .how-stage[data-step="4"] .hs-ring { opacity: 1; transform: translate(-50%, -50%); }
.how-stage[data-step="4"] .hs-ring { top: 57%; }
.hs-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hs-ring-track, .hs-ring-fill { fill: none; stroke-width: 3; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.hs-ring-track { stroke: rgba(255, 255, 255, .09); }
.hs-ring-fill { stroke: var(--blue-300); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--fp, 0) * 100); stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(143, 177, 255, .7)); transition: stroke-dashoffset .5s linear, stroke .6s; }
.hs-ring-check { fill: none; stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4.5; }
.hs-ring-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(16px, 6.2cqw, 36px); font-weight: 600; letter-spacing: -.03em; transition: opacity .3s; }
.hs-ring-label { position: absolute; top: 67%; left: 50%; color: #9aa6bd; font-size: clamp(7px, 1.8cqw, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transform: translateX(-50%); transition: opacity .3s; }

/* 5 · Dokončit: the ring closes, a pulse runs the timeline, both of you light up, then the wrap-up. */
.how-stage[data-step="4"] { --fp: 1; }
.how-stage[data-step="4"] .hs-ring-fill { transition: stroke-dashoffset 1s var(--ease), stroke .6s .9s; }
.how-stage.is-playing .hs-ring-check { animation: draw .5s var(--ease) 1s forwards; }
.how-stage.is-wrap .hs-ring-check { stroke-dashoffset: 0; }
.how-stage.is-wrap .hs-ring-fill { stroke: #6fd3a2; filter: drop-shadow(0 0 2px rgba(111, 211, 162, .7)); }
.how-stage[data-step="4"] .hs-ring-time, .how-stage[data-step="4"] .hs-ring-label { opacity: 0; }
.how-stage.is-playing .hs-you { animation: hs-sync 1.2s var(--ease) .95s; }
.how-stage.is-playing .hs-partner { animation: hs-sync 1.2s var(--ease) 1.1s; }
@keyframes hs-sync { 0% { box-shadow: 0 0 0 0 rgba(143, 177, 255, .55); } 100% { box-shadow: 0 0 0 2.6cqw rgba(143, 177, 255, 0); } }
.hs-done, .hs-outcome { position: absolute; z-index: 2; top: 81%; left: 50%; opacity: 0; transform: translate(-50%, -50%); transition: opacity .4s; white-space: nowrap; }
.hs-done { color: #fff; font-size: clamp(10px, 2.6cqw, 15px); font-weight: 600; }
.how-stage[data-step="4"] .hs-done { opacity: 1; transition-delay: 1s; }
.how-stage.is-wrap .hs-done { opacity: 0; transition-delay: 0s; }
.hs-outcome { display: inline-flex; gap: 1.2cqw; }
.hs-outcome > span { display: inline-flex; align-items: center; gap: .8cqw; padding: .8cqw 1.8cqw; border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; color: #9aa6bd; font-size: clamp(8px, 2.1cqw, 12px); font-weight: 600; }
.hs-outcome .is-picked { border-color: rgba(111, 211, 162, .5); background: rgba(19, 145, 90, .2); color: #6fd3a2; }
.hs-outcome .icon { width: 2.4cqw; height: 2.4cqw; }
.how-stage.is-wrap .hs-outcome { opacity: 1; transition-delay: .2s; }

.hs-timeline { position: absolute; z-index: 2; top: 92%; right: 8%; left: 8%; display: grid; grid-template-columns: 1fr 6fr 1fr; gap: .8cqw; opacity: 0; transition: opacity .5s; }
.how-stage[data-step="2"] .hs-timeline, .how-stage[data-step="3"] .hs-timeline, .how-stage[data-step="4"] .hs-timeline { opacity: 1; }
.hs-seg { position: relative; height: max(4px, 1cqw); overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.hs-seg i { position: absolute; inset: 0; border-radius: inherit; background: var(--blue-300); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .35s linear; }
.hs-seg-focus i { background: linear-gradient(90deg, var(--blue-600), var(--blue-300)); }
.hs-seg-wrap i { background: #6fd3a2; }
.hs-energy { position: absolute; top: 50%; left: 0; width: 3cqw; height: 3cqw; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, rgba(143, 177, 255, .9) 40%, rgba(143, 177, 255, 0) 70%); opacity: 0; transform: translate(-50%, -50%); }
.how-stage.is-playing .hs-energy { animation: hs-energy 1s cubic-bezier(.45, 0, .2, 1) .05s forwards; }
@keyframes hs-energy { 0% { left: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { left: 87.5%; opacity: 0; } }

/* 6 · Pokračovat: what comes next. */
.hs-next-title { position: absolute; z-index: 2; top: 36%; left: 50%; display: inline-flex; align-items: center; gap: 1.2cqw; margin: 0; max-width: none; color: #fff; font-size: clamp(11px, 3cqw, 17px); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%); transition: opacity .4s; }
.hs-next-title .icon { width: 3.4cqw; height: 3.4cqw; color: #6fd3a2; }
.how-stage[data-step="5"] .hs-next-title { opacity: 1; transition-delay: .35s; }
.hs-next { position: absolute; z-index: 2; top: 46%; right: 8%; left: 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; visibility: hidden; transition: visibility 0s .5s; }
.how-stage[data-step="5"] .hs-next { visibility: visible; transition-delay: 0s; }
.hs-next-row { display: flex; align-items: center; gap: 1.6cqw; min-width: 0; padding: 2.3cqw 2.4cqw; border: 1px solid #2a3551; border-radius: 2.4cqw; background: rgba(27, 35, 51, .92); color: #eef2f8; font-size: clamp(9px, 2.45cqw, 14px); font-weight: 600; line-height: 1.2; text-decoration: none; opacity: 0; transform: translateY(2cqw); transition: opacity .4s, transform .6s var(--ease), border-color .2s, background-color .2s, color .2s; }
.hs-next-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-next-row .icon { flex: none; width: 3.4cqw; height: 3.4cqw; color: var(--blue-300); }
.hs-next-row:hover { border-color: rgba(143, 177, 255, .55); background: #212b40; color: #fff; }
.hs-next-row:active { transform: scale(.97); }
.how-stage[data-step="5"] .hs-next-row { opacity: 1; transform: none; }
.how-stage[data-step="5"] .hs-next-row:nth-child(1) { transition-delay: .45s; }
.how-stage[data-step="5"] .hs-next-row:nth-child(2) { transition-delay: .53s; }
.how-stage[data-step="5"] .hs-next-row:nth-child(3) { transition-delay: .61s; }
.how-stage[data-step="5"] .hs-next-row:nth-child(4) { transition-delay: .69s; }
.how-stage[data-step="5"] .hs-next-row:hover { transition-delay: 0s; }

/* Dashboard: the first-time panel links here. */
.tips-more { margin: var(--s5) 0 0; }

/* Auth -------------------------------------------------------------------- */

.auth-layout { display: grid; gap: var(--s8); align-items: start; max-width: 1080px; margin: var(--s8) auto 0; }
@media (min-width: 1024px) { .auth-layout { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: var(--s12); margin-top: var(--s12); } }
.auth {
  width: 100%;
  max-width: 480px;
  margin: var(--s8) auto 0;
  padding: var(--s8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.auth-layout .auth { margin: 0; }
.auth > .mark { width: 40px; margin-bottom: var(--s6); }
.auth h1 { margin-bottom: var(--s2); font-size: clamp(1.625rem, 1.45rem + .6vw, 2rem); }
.auth h1 + p, .auth .lead { color: var(--text-3); }
.auth .form { margin-top: var(--s6); }
.auth .banner, .auth .alert { margin: var(--s4) 0 0; }
.auth > .form-errors { margin-top: var(--s4); }
.auth-foot { margin: var(--s5) 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.auth-foot + .auth-foot { margin-top: var(--s2); }
.auth-foot a { display: inline-block; padding-block: 4px; }
.auth-divider { height: 1px; margin: var(--s6) 0 0; background: var(--border); }
.confirm-slot { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--fs-md); }
.confirm-slot .icon-badge { flex: none; }
.confirm-slot span { display: block; color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 639px) { .auth { margin-top: var(--s4); padding: var(--s6) var(--s5); } }

/* Sign in with Google / Apple, by each provider's rules at our height and radius, the label in the
   middle. Google: its light theme (white, #747775 edge, #1f1f1f text) with the official G at 20 px,
   12 px from the edge. Apple: black with white text and its official logo file exactly as tall as
   the button (never cropped or padded), centred on the same line as the G. The files carry their
   own white or black background, so the buttons keep that colour in every state: hover lifts by a
   pixel with a shadow, a press compresses, the chosen one turns its logo into a spinner while the
   others wait dimmed, and a failed attempt gets a red edge and a line saying why. */
.providers { display: grid; gap: 10px; margin-top: var(--s6); }
.provider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 48px;
  border: 1px solid;
  border-radius: var(--r-md);
  font: 600 var(--fs-sm)/1.2 var(--font);
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out), opacity .25s var(--ease-out);
}
.provider-google, .provider-google:hover { border-color: #747775; background: #fff; color: #1f1f1f; }
.provider-apple, .provider-apple:hover { overflow: hidden; border-width: 0; background: #000; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .provider:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 10px 20px -12px rgba(15, 23, 42, .45); transform: translateY(-1px); }
}
.provider:active { box-shadow: none; transform: scale(.98); transition-duration: 90ms; }
.provider:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Both marks are centred 22 px from the button's outer edge (Google's sits inside its 1 px border). */
.provider-mark { position: absolute; top: 50%; left: 11px; width: 20px; height: 20px; margin-top: -10px; }
.provider-apple .provider-mark { top: 0; bottom: 0; left: 22px; width: auto; height: auto; margin-top: 0; translate: -50% 0; }
.provider-mark img { display: block; width: 100%; height: 100%; max-width: none; transition: opacity .2s var(--ease-out), scale .3s var(--ease-out); }
.provider-apple .provider-mark img { width: auto; }
.provider::after { content: ""; position: absolute; top: 50%; left: 13px; width: 16px; height: 16px; margin-top: -8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; scale: .4; pointer-events: none; transition: opacity .2s var(--ease-out), scale .3s var(--ease-out); }
.provider-apple::after { left: 14px; }
.provider.is-loading { pointer-events: none; }
.provider.is-loading .provider-mark img { opacity: 0; scale: .5; }
.provider.is-loading::after { opacity: 1; scale: 1; animation: turn .7s linear infinite; }
.providers.is-busy .provider:not(.is-loading) { opacity: .45; pointer-events: none; }
.provider.is-error { box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-soft); animation: shake .35s .15s; }
.provider-google.is-error { border-color: var(--danger); }
.provider-note { margin: 2px 0 0; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.45; animation: rise-in .35s var(--ease-out); }
.provider-note.is-bad { color: var(--danger); }
@keyframes turn { to { rotate: 360deg; } }
.or-divider { display: flex; align-items: center; gap: var(--s3); margin: var(--s6) 0 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth .or-divider + .form, .auth .or-divider + .form-errors { margin-top: var(--s5); }
.auth .muted + .providers { margin-top: var(--s5); }

/* The last step after a provider: who you are signing up as. */
.finish-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s3) 0 var(--s2); }
.finish-via { padding: 3px 10px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.finish-email { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* Settings → E-maily: "Vypnout všechny" / "Zapnout všechny" swaps its words with a short cross-fade. */
.email-all-label { display: inline-block; }
.email-all.is-swapping .email-all-label { animation: email-all-in .32s var(--ease-out); }
@keyframes email-all-in { from { opacity: 0; translate: 0 4px; } }

/* Settings: the ways into the account. */
/* Two-factor authentication: the code page at sign-in, confirming yourself, setting a method up,
   recovery codes (templates/auth/twofactor.html and friends) and the settings rows below. */
.tfa .lead { margin-bottom: 0; }
.tfa-step { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s2); color: var(--primary-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tfa-step .icon { width: 14px; height: 14px; }
.tfa-how, .tfa-note { display: flex; gap: var(--s3); margin: var(--s5) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.tfa-how .icon, .tfa-note .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--primary-text); }
.tfa-note { border: 1px solid var(--border); background: transparent; }
.tfa-note .icon { color: var(--text-3); }
.tfa .form { margin-top: var(--s5); }
.tfa > .form-errors { margin-top: var(--s4); }
.tfa-code { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; letter-spacing: .3em; text-align: center; }
.tfa-code-long { font-size: var(--fs-md); letter-spacing: .12em; }
.tfa-resend { margin-top: var(--s3); }
.tfa-resend .btn-block { margin-top: var(--s2); }
.tfa-other { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
.tfa-other-title { margin: 0 0 var(--s1); color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.tfa-other ul { display: grid; margin: 0; padding: 0; list-style: none; }
.tfa-other .link-arrow { font-size: var(--fs-sm); }
.tfa-help { margin-top: var(--s4); color: var(--text-3); font-size: var(--fs-sm); }
.tfa-help summary { color: var(--text-2); font-weight: 600; cursor: pointer; }
.tfa-help p { margin: var(--s2) 0 0; line-height: 1.55; }
.tfa form.auth-foot .link-button, .tfa .auth-foot a { display: inline-flex; align-items: center; gap: 6px; }
.tfa .auth-foot .icon { width: 16px; height: 16px; }
.tfa .hint.is-ok { display: flex; align-items: center; gap: 6px; }
.tfa-steps { display: grid; gap: var(--s6); margin: var(--s6) 0 0; padding-left: 1.25em; }
.tfa-steps > li::marker { color: var(--primary-text); font-weight: 600; }
.tfa-steps > li > p { margin: 0 0 var(--s3); }
.tfa-steps .form { margin-top: 0; }
.tfa-qr { display: inline-grid; margin: 0 0 var(--s3); padding: var(--s2); border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.tfa-qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.tfa-manual summary { color: var(--primary-text); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.tfa-manual > div { margin-top: var(--s3); }
.tfa-key input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.tfa-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s4); margin: var(--s5) 0 var(--s3); padding: var(--s4) var(--s5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); list-style: none; counter-reset: code; }
.tfa-code-list li { display: flex; align-items: baseline; gap: 8px; counter-increment: code; }
.tfa-code-list li::before { content: counter(code) "."; min-width: 1.5em; color: var(--text-3); font-size: var(--fs-xs); text-align: right; }
.tfa-code-list code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-md); letter-spacing: .04em; }
@media (max-width: 379px) { .tfa-code-list { grid-template-columns: minmax(0, 1fr); } }
.tfa-codes-all { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.tfa-code-actions { gap: var(--s2); }
.tfa-codes > .btn-block { margin-top: var(--s6); }
@media print {
  .tfa-codes { margin: 0; border: 0; box-shadow: none; }
  .tfa-code-actions, .tfa-codes > .btn, .tfa-codes .share-status { display: none !important; }
}

/* In settings: each method is a row like the sign-in methods, with what it does underneath. */
.tfa-methods .signin-method { align-items: start; padding: var(--s4) 0; }
.tfa-methods .signin-method:first-child { padding-top: 0; }
.sm-note { margin-top: 2px; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }
.sm-state.is-low { color: var(--warning); }
.tfa-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s2); }
@media (max-width: 559px) {
  .tfa-methods .signin-method { grid-template-columns: 40px minmax(0, 1fr); }
  .tfa-actions { grid-column: 2; justify-content: flex-start; }
}
.tfa-unlocked { margin: 0 0 var(--s4); }
.tfa-switch { position: relative; flex: none; width: 40px; height: 24px; margin: 8px 0; padding: 0; border: 0; border-radius: var(--r-full); background: var(--gray-300); cursor: pointer; transition: background-color .2s var(--ease-out); }
.tfa-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .3s var(--ease-out); }
.tfa-switch[aria-checked="true"] { background: var(--primary); }
.tfa-switch[aria-checked="true"] .tfa-switch-knob { transform: translateX(16px); }
.tfa-switch:disabled { opacity: .45; cursor: not-allowed; }
.tfa-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tfa-switch.is-busy .tfa-switch-knob { opacity: .6; }

.signin-methods { display: grid; margin: 0; padding: 0; list-style: none; }
.signin-method { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--border); }
.signin-method:first-child { padding-top: 0; border-top: 0; }
.sm-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-3); color: var(--text-2); transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.sm-mark img { width: 20px; height: 20px; }
.sm-mark .icon { width: 18px; height: 18px; }
/* The providers' tiles: Google's G on white; Apple's logo-only file with its black square filling
   the rounded tile (the file's own margin falls outside). Being connected shows in the text. */
.sm-mark.sm-google, .signin-method.is-linked .sm-mark.sm-google { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.sm-mark.sm-apple, .signin-method.is-linked .sm-mark.sm-apple { overflow: hidden; background: #000; }
.sm-mark.sm-apple img { width: calc(40px * 56 / 44); height: calc(40px * 56 / 44); max-width: none; }
.sm-text { display: grid; gap: 2px; min-width: 0; }
.sm-state { color: var(--text-3); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.sm-state.is-on { color: var(--success); }
.signin-method.is-linked .sm-mark { background: var(--success-soft); color: var(--success); }
.signin-method form { margin: 0; }
.delete-confirm { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

.auth-aside {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 560px;
  padding: var(--s12);
  border-radius: var(--r-2xl);
  background: var(--navy-900);
  color: #c9d2e3;
}
@media (min-width: 1024px) { .auth-aside { display: grid; align-content: space-between; gap: var(--s10); } }
.auth-aside .mark { width: 48px; }
.auth-aside h2 { max-width: 16ch; margin: var(--s8) 0 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -.035em; }
.auth-aside ul { display: grid; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.auth-aside li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); align-items: start; font-size: var(--fs-sm); }
.auth-aside li strong { display: block; color: #fff; font-size: var(--fs-base); }
.auth-aside .icon-badge { background: rgba(255, 255, 255, .08); color: #fff; }
.auth-aside .aside-note { display: flex; align-items: center; gap: var(--s2); margin: 0; color: #9aa6bd; font-size: var(--fs-xs); }
.auth-aside .aside-note .icon { width: 16px; height: 16px; }

/* Dashboard --------------------------------------------------------------- */

.checkin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--primary-edge);
  border-radius: var(--r-lg);
  background: var(--primary-soft);
}
.checkin + .checkin { margin-top: var(--s2); }
.checkin p { display: flex; align-items: center; gap: var(--s3); margin: 0; font-size: var(--fs-sm); }
.checkin p .icon { width: 20px; height: 20px; color: var(--primary-text); }

/* The next session */
.next {
  display: grid;
  gap: var(--s5);
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .next { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s8); padding: var(--s8); }
}
.next.is-open { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28, 98, 245, .14), var(--shadow-md); }
.next-time { display: grid; gap: 4px; margin: 0; }
.next-time strong { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1; }
.next-time small { color: var(--text-3); font-size: var(--fs-sm); }
@media (min-width: 768px) { .next-time { padding-right: var(--s8); border-right: 1px solid var(--border); } }
.next-info { display: grid; gap: var(--s3); min-width: 0; }
.next-info p { margin: 0; }
.next-when { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.next-when strong { color: var(--text); font-variant-numeric: tabular-nums; }
.next-when [data-countdown] { color: var(--text-3); }
.person { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); }
.person .mark { width: 32px; flex: none; }
.session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
@media (min-width: 768px) { .next .session-actions { flex-direction: column; align-items: stretch; } }

.session-list { display: grid; margin: var(--s3) 0 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.session-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; gap: var(--s4); padding: 14px var(--s5); border-top: 1px solid var(--border); }
.session-row:first-child { border-top: 0; }
.session-time { margin: 0; font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.session-time small { display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: 400; }
.session-info p { margin: 0; }
@media (max-width: 639px) { .session-row { grid-template-columns: 1fr; gap: var(--s2); } }

/* One-click picks (_picks.html): a few good times as cards. Blue means a real person is waiting.
   Side by side where their box is wide, one compact row each where it is narrow (a phone, the
   end of a session); tokens make them work on the night set of the focus room too. */
.picks-box { container-type: inline-size; margin: var(--s4) 0; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.picks form { height: 100%; margin: 0; }
.pick {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "day day" "time time" "note go";
  align-items: end;
  gap: 2px var(--s3);
  width: 100%;
  height: 100%;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur), transform var(--dur-fast) var(--ease-out);
}
.pick-day { grid-area: day; color: var(--text-3); font-size: var(--fs-sm); }
.pick-time { grid-area: time; font-size: var(--fs-h2); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.15; }
.pick-note { grid-area: note; display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin-top: var(--s2); color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; }
.pick-note .icon { width: 14px; height: 14px; flex: none; }
.pick-go { grid-area: go; display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s2); color: var(--primary-text); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.pick-go .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.pick:hover:not([disabled]) { border-color: var(--primary); box-shadow: var(--shadow-xs); }
.pick:hover:not([disabled]) .pick-go .icon { transform: translateX(3px); }
.pick:active:not([disabled]) { transform: scale(.98); }
.pick.is-waiting { border-color: var(--primary-edge); background: var(--primary-soft); }
.pick.is-waiting .pick-note { color: var(--primary-text); font-weight: 600; }
.pick.is-waiting:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-soft-2); }
.pick[disabled] { background: var(--surface-2); cursor: not-allowed; }
.pick[disabled] .pick-go { color: var(--text-3); }
.pick.is-busy { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 7.25rem; color: var(--primary-text); font-weight: 600; cursor: progress; }
/* Narrow: one compact row per pick (time, day and who is there, the action). */
@container (max-width: 40rem) {
  .picks { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .pick { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time day go" "time note go"; align-items: center; column-gap: var(--s4); row-gap: 0; padding: 12px var(--s4); }
  .pick-time { font-size: var(--fs-xl); }
  .pick-note, .pick-go { margin-top: 0; }
  .pick.is-busy { min-height: 3.75rem; }
}
.pick.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* The dashboard's start card: nothing public booked, so the next session is one click away. */
.start-card { padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.start-head h2 { margin: 0; font-size: var(--fs-xl); }
.start-head p { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.start-card .notice-line { margin: var(--s4) 0 0; }
.start-card .picks-box { margin-bottom: var(--s3); }
.start-foot { margin: 0; font-size: var(--fs-sm); }
@media (min-width: 768px) { .start-card { padding: var(--s8); } }
@media (max-width: 639px) { .start-card { padding: var(--s5); border-radius: var(--r-lg); } }

/* What the user has done so far, under the dashboard title: plain numbers, no streaks. */
.progress-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.progress-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
.progress-line .link-arrow { min-height: 24px; font-size: var(--fs-sm); }

.tips { display: grid; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.tips li strong { color: var(--text); font-weight: 600; }
.tips li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.tips .icon { width: 20px; height: 20px; color: var(--primary-text); }

/* Timetable for the next 7 days */
.board-card { padding: var(--s2) var(--s2) var(--s4); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.board-wrap { overflow-x: auto; }
.board { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.board thead td { width: 8.5rem; }
.board thead th { padding: var(--s2) var(--s2) 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; }
.board tbody th { padding: 0 var(--s2); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-align: left; white-space: nowrap; }
.board tr.is-today th { color: var(--primary-text); }
.board td { height: 60px; padding: 0; }
.cell-hour { display: none; }
.slot-btn, .cell-mine a, .cell-static {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-2);
  font: 500 var(--fs-xs)/1.3 var(--font);
  text-align: left;
  text-decoration: none;
}
.slot-btn { cursor: pointer; transition: border-color var(--dur), background-color var(--dur), color var(--dur), transform var(--dur-fast) var(--ease-out); }
.slot-btn strong { color: var(--text-2); font-weight: 600; }
.slot-btn span, .cell-mine span, .cell-static span { color: var(--text-3); }
.slot-btn:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-soft); }
.slot-btn:hover:not([disabled]) strong { color: var(--primary-text); }
.slot-btn:active:not([disabled]) { transform: scale(.97); }
.slot-btn[disabled] { background: var(--surface-2); cursor: not-allowed; }
.slot-btn[disabled] strong { color: var(--text-3); font-weight: 500; }
.slot-btn.is-busy { opacity: .6; cursor: progress; }
.cell-waiting .slot-btn { border-color: var(--primary-edge); background: var(--primary-soft); }
.cell-waiting .slot-btn:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-soft-2); }
.cell-waiting .slot-btn strong, .cell-waiting .slot-btn .waiting { color: var(--primary-text); }
.slot-free { display: none; }
.slot-act { display: none; align-items: center; gap: 4px; }
.slot-act .icon { width: 14px; height: 14px; }
.slot-btn:not([disabled]):hover .slot-idle, .slot-btn:not([disabled]):focus-visible .slot-idle { display: none; }
.slot-btn:not([disabled]):hover .slot-act, .slot-btn:not([disabled]):focus-visible .slot-act { display: inline-flex; }
.slot-btn .waiting { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.cell-mine a { border-color: var(--navy-900); background: var(--navy-900); color: #fff; transition: background-color var(--dur); }
.cell-mine a strong { color: #fff; }
.cell-mine a span { color: #b9c3d6; }
.cell-mine a:hover { background: var(--navy-700); color: #fff; }
.cell-past .cell-static { border-style: dashed; border-color: var(--border); background: transparent; }
.cell-past .cell-static span { color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s3) var(--s3) 0; color: var(--text-3); font-size: var(--fs-xs); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); }
.legend .l-waiting { border-color: var(--primary-edge); background: var(--primary-soft); }
.legend .l-mine { border-color: var(--navy-900); background: var(--navy-900); }
@media (max-width: 767px) {
  .board-card { padding: var(--s4); }
  .board, .board tbody, .board tr, .board th, .board td { display: block; width: auto; }
  .board { border-spacing: 0; }
  .board thead { display: none; }
  .board tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); padding: var(--s4) 0; border-top: 1px solid var(--border); }
  .board tbody tr:first-child { padding-top: 0; border-top: 0; }
  .board tbody th { grid-column: 1 / -1; padding: 0; }
  .board td { height: auto; }
  .board td.cell-past { display: none; }
  .slot-btn, .cell-mine a, .cell-static { min-height: 56px; padding: 8px 10px; }
  .cell-hour { display: block; color: var(--text); font-size: var(--fs-base); font-weight: 600; font-variant-numeric: tabular-nums; }
  .slot-btn span.cell-hour, .cell-mine a span.cell-hour { color: inherit; font-size: var(--fs-base); }
  .cell-mine a span.cell-hour { color: #fff; }
  .slot-btn strong { display: none; }
  .cell-waiting .slot-btn strong { display: none; }
  .slot-free { display: block; }
  .legend { margin: var(--s4) 0 0; }
}
@media (max-width: 359px) { .board tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Invitations ------------------------------------------------------------ */

.invite {
  margin-top: var(--s4);
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.invite-head { display: flex; gap: var(--s4); align-items: flex-start; }
.invite-head h2 { margin: 0 0 4px; font-size: var(--fs-md); }
.invite-head p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.invite .invite-body { margin-top: var(--s4); }
.invite p { font-size: var(--fs-sm); }
.invite-link { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.invite-link input { flex: 1 1 240px; font-size: var(--fs-sm); }
.invite .share-status { min-height: 1.4em; margin: var(--s2) 0 0; }
.share-status { color: var(--text-3); font-size: var(--fs-sm); }
.share-status.is-bad { color: var(--danger); }
.invite-manage { margin-top: var(--s2); gap: var(--s5); }
.invite-friends { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); }
.invite-friends > p { margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-xs); }
.invite-friends .row { gap: var(--s2); }
.invite-dark { margin-top: var(--s4); text-align: left; }
.invite-page .invite-link { margin: var(--s4) 0 0; }
.same-again { justify-content: center; margin: var(--s5) 0 var(--s8); }

/* Focus room --------------------------------------------------------------
   One dark room for every phase of a booking. Live: the stage (the call, or two seats while
   there is no call) is the focus; beside it one panel, never a pile of cards: the clock, the two
   people with their goals, the check-in. Before: a lobby card (who, when, join). After: the
   result, the next block. The bar's lower edge is the block itself: 3 · 50 · 3 minutes filling
   up in real time. Sentence-case labels, hairlines between parts, colour only for state:
   blue for the warm-up and focus, green for the wrap-up and done, red only for reporting. */

body.room { --bar-h: 60px; background: var(--navy-900); }
.room-bar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--navy-700); background: rgba(19, 26, 41, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.room-bar.is-live { border-bottom-color: transparent; }
.room-bar-inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--bar-h); }
.room-bar .logo { flex: none; }
.room-bar .logo .wordmark { height: 22px; }
.room-bar .logo .mark { display: none; width: 28px; }
.room-label { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; margin: 0 auto 0 var(--s5); color: var(--text-3); font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap; }
.room-kind { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; }
.room-kind .icon { flex: none; width: 15px; height: 15px; color: var(--blue-300); }
.room-when strong { color: var(--text-2); font-weight: 600; }
.bar-clock { display: none; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; }
.bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage-accent, var(--blue-300)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-accent, var(--blue-300)) 22%, transparent); transition: background-color .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.room-actions { display: flex; flex: none; align-items: center; gap: var(--s2); }
.room-act .icon { width: 16px; height: 16px; }
@media (max-width: 1023px) {
  .bar-clock { display: inline-flex; margin-left: auto; }
  .room-bar.is-live .room-label { margin-right: 0; }
  .room-bar.is-live .room-when { display: none; }
}
@media (max-width: 639px) {
  .room-bar .logo .wordmark { display: none; }
  .room-bar .logo .mark { display: block; }
  .room-label { margin-left: var(--s3); }
  .room-bar.is-live .room-label { display: none; }
  .room-act .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .room-act { width: 40px; min-height: 40px; padding: 0; }
}

/* The block along the bar's lower edge. session.js sizes the parts from the real minutes. */
.bar-track { position: absolute; right: 0; bottom: -1px; left: 0; display: grid; grid-template-columns: 3fr 50fr 3fr; gap: 2px; height: 2px; }
.bar-track .phase-seg { height: 2px; border-radius: 0; }
.bar-track .energy { top: -7px; }

/* Shared pieces: the three phases on a line, stage texts that swap in place. */
.phases { position: relative; display: grid; grid-template-columns: 1fr 6fr 1fr; gap: 3px; }
.phase-seg { position: relative; height: 6px; overflow: hidden; border-radius: var(--r-full); background: var(--navy-700); }
.phase-seg i { position: absolute; inset: 0; border-radius: inherit; background: var(--blue-300); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform 1s linear; }
.seg-wrapup i { background: #6fd3a2; }
#room[data-stage="focus"] .seg-focus i, body[data-stage="focus"] .bar-track .seg-focus i { background: linear-gradient(90deg, var(--blue-600), var(--blue-300)); }
.energy { position: absolute; top: -5px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(143, 177, 255, .9) 45%, rgba(143, 177, 255, 0) 70%); opacity: 0; pointer-events: none; }
.swap { display: grid; }
.swap > [data-for] { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility .5s; }
#room[data-stage="before"] .swap > [data-for="before"],
#room[data-stage="warmup"] .swap > [data-for="warmup"],
#room[data-stage="focus"] .swap > [data-for="focus"],
#room[data-stage="wrapup"] .swap > [data-for="wrapup"] { opacity: 1; visibility: visible; transform: none; }
body.room, #room { --stage-accent: var(--blue-300); }
body.room[data-stage="wrapup"], #room[data-stage="wrapup"] { --stage-accent: #6fd3a2; }

/* The live room ------------------------------------------------------------ */
.room-grid { display: grid; grid-template-areas: "stage" "clock" "side"; gap: var(--s3); padding-block: var(--s3) var(--s10); }
.room-stage { grid-area: stage; min-width: 0; }
.room-clock { grid-area: clock; }
.room-side { grid-area: side; }
@media (min-width: 1024px) {
  .room-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "stage clock" "stage side";
    gap: 0 var(--s5);
    height: calc(100vh - var(--bar-h));
    height: calc(100dvh - var(--bar-h));
    min-height: 560px;
    padding-block: var(--s5);
  }
  .room-side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--navy-600) transparent; }
}

/* The stage */
.video { position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 300px; border: 1px solid var(--navy-700); border-radius: var(--r-xl); background: var(--navy-950); }
@media (max-width: 1023px) { .video { height: min(64vh, 620px); height: min(64dvh, 620px); } }
.video iframe { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; }
.video[data-state="live"] iframe { animation: frame-in .6s var(--ease-out); }
@keyframes frame-in { from { opacity: 0; } }

/* Two seats while there is no call: you, and your partner or the place for one. */
.stage-seats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; transition: opacity .4s var(--ease-out); }
@media (max-width: 559px) { .stage-seats { grid-template-columns: 1fr; } }
.video[data-state="live"] .stage-seats { opacity: 0; }
.stage-seat { position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 0; padding: var(--s5); overflow: hidden; border: 1px solid transparent; border-radius: var(--r-lg); background: var(--navy-800); text-align: center; transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out); }
.stage-seat .avatar-xl { margin-bottom: var(--s2); box-shadow: 0 0 0 6px rgba(255, 255, 255, .04); }
@media (max-width: 559px) { .stage-seat .avatar-xl { width: 64px; height: 64px; font-size: 1.75rem; } }
.seat-name { margin: 0; color: var(--text); font-size: var(--fs-md); font-weight: 600; }
.seat-status { margin: 0; max-width: 32ch; color: var(--text-3); font-size: var(--fs-sm); line-height: 1.5; }
.seat-you .seat-status { display: none; }
.seat-partner[data-presence="apart"] { border: 1.5px dashed var(--navy-600); background: transparent; }
.seat-partner[data-presence="apart"] .avatar { opacity: .6; }
.seat-partner[data-presence="solo"] { background: rgba(27, 35, 51, .5); }
.seat-partner[data-presence="solo"] .avatar { opacity: .4; }
/* Waiting for the call to start: both seats breathe with a slow sheen. */
.video[data-state="starting"] .stage-seat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .045) 50%, transparent 70%); background-size: 300% 100%; animation: sheen 2.2s linear infinite; }
.video[data-state="starting"] .seat-partner::after { animation-delay: .25s; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* What the call is doing: a pill at the top (starting, reconnecting), a message when it needs you. */
.stage-pill { position: absolute; z-index: 4; top: 14px; left: 50%; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); margin: 0; padding: 7px 14px 7px 12px; border: 1px solid var(--navy-600); border-radius: var(--r-full); background: rgba(12, 17, 32, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; translate: -50% 0; animation: pill-in .4s var(--ease-out) both; }
.stage-pill .icon { flex: none; width: 15px; height: 15px; }
.stage-pill-warn { border-color: rgba(232, 207, 142, .4); color: #f4d899; }
.stage-pill-quiet { top: auto; bottom: 14px; overflow: hidden; text-overflow: ellipsis; }
.stage-spinner { flex: none; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes pill-in { from { opacity: 0; translate: -50% -6px; } }
.stage-overlay { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: var(--s6); background: radial-gradient(90% 60% at 50% 40%, rgba(28, 98, 245, .08), rgba(28, 98, 245, 0) 70%), var(--navy-950); animation: fade-in .3s var(--ease-out); }
.stage-message { display: grid; justify-items: center; gap: var(--s2); max-width: 42ch; text-align: center; animation: rise-in .45s var(--ease-out) both; }
.stage-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s2); border: 1px solid var(--navy-600); border-radius: 50%; background: var(--navy-800); color: var(--text-2); }
.stage-icon .icon { width: 22px; height: 22px; }
.stage-message h2 { margin: 0; font-size: var(--fs-lg); }
.stage-message p { margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-sm); }

/* The clock */
.room-clock { display: grid; gap: var(--s3); padding: var(--s5); border: 1px solid var(--navy-700); border-radius: var(--r-xl); background: var(--navy-800); }
.clock-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.clock-stage { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--stage-accent); font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.005em; transition: color .6s var(--ease-out); }
.clock-stage::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.clock-time { margin: 0; color: #fff; font-size: 2.5rem; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.phase-legend { display: grid; grid-template-columns: 1fr 6fr 1fr; gap: 3px; margin: -4px 0 0; color: var(--text-3); font-size: var(--fs-2xs); }
.phase-legend span:nth-child(2) { text-align: center; }
.phase-legend span:last-child { text-align: right; }
.clock-hint p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.clock-hint strong { color: #fff; }
.soon { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--text-3); font-size: var(--fs-xs); }
.soon strong { color: var(--stage-accent); }
.soon .pulse { background: var(--blue-300); }
@media (max-width: 1023px) {
  /* The bar shows the time on smaller screens; here the stage and what to do in it. */
  .clock-time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .room-clock { gap: var(--s2); padding: var(--s4) var(--s5); }
  .room-clock .phases, .room-clock .phase-legend, .room-clock .soon { display: none; }
}

/* The panel: people and their goals, the check-in, what else there is to do. */
.room-side { display: grid; align-content: start; border: 1px solid var(--navy-700); border-radius: var(--r-xl); background: var(--navy-800); }
@media (min-width: 1024px) {
  .room-clock { border-bottom-color: var(--navy-700); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .room-side { border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); }
}
.side-section { padding: var(--s5); }
.side-section + .side-section { border-top: 1px solid var(--navy-700); }
#room:not([data-stage="wrapup"]) .side-checkin + .side-section { border-top: 0; }   /* the check-in is hidden then */
.side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s4); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; letter-spacing: -.005em; }
.side-title .icon { width: 16px; height: 16px; color: var(--text-3); }
.side-note { margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-sm); }
.connection { display: flex; align-items: center; gap: var(--s2); margin: var(--s4) var(--s4) 0; padding: 8px 12px; border: 1px solid rgba(232, 207, 142, .35); border-radius: var(--r-md); background: rgba(138, 90, 0, .18); color: #f4d899; font-size: var(--fs-xs); }
.connection .icon { width: 16px; height: 16px; }
.connection:not([hidden]) { animation: rise-in .35s var(--ease-out); }

.people-list { display: grid; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.person { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.person-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 36px; margin: 0; color: var(--text); font-weight: 600; line-height: 1.3; }
.person-goal { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.person-partner[data-presence="apart"] .avatar, .person-partner[data-presence="solo"] .avatar { opacity: .55; }
.person-partner[data-empty] .person-goal { color: var(--text-3); }
.presence-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 8px; border-radius: var(--r-full); background: var(--navy-700); color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; line-height: 1.6; white-space: nowrap; }
.presence-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.presence-chip:empty { display: none; }
.presence-chip[data-status="together"] { background: rgba(19, 145, 90, .2); color: #6fd3a2; }

.avatar-partner { background: #33415f; color: #fff; box-shadow: inset 0 0 0 1px rgba(143, 177, 255, .28); }
.avatar-seat { border: 1.5px dashed var(--navy-500); background: transparent; color: var(--text-3); }
.avatar-seat .icon { width: 48%; height: 48%; }

/* Your goal: the sentence, with a pencil to change it (session.js); the field without JavaScript. */
.goal-form { display: grid; gap: var(--s2); margin: 0; }
.goal-edit { display: flex; gap: var(--s2); }
.goal-edit input { flex: 1; min-width: 0; min-height: 40px; padding-block: 8px; font-size: var(--fs-sm); }
.goal-edit .btn { min-height: 40px; }
.goal-view { display: none; }
.goal-form.is-enhanced.has-goal:not(.is-editing) .goal-view { display: flex; align-items: flex-start; gap: var(--s2); margin: 0; }
.goal-form.is-enhanced.has-goal:not(.is-editing) .goal-edit { display: none; }
.goal-form.is-editing .goal-edit { animation: rise-in .3s var(--ease-out); }
.goal-text { flex: 1; min-width: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.icon-btn { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; margin: -5px -6px -5px 0; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer; transition: background-color var(--dur), color var(--dur); }
.icon-btn:hover { background: var(--navy-700); color: var(--text); }
.icon-btn .icon { width: 16px; height: 16px; }
.goal-saved { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.goal-saved:empty { display: none; }
.goal-saved.is-saved { color: #6fd3a2; animation: rise-in .3s var(--ease-out); }
.goal-saved.is-bad { color: var(--danger); }

/* The check-in during the wrap-up: three answers in one control. */
#room:not([data-stage="wrapup"]) [data-for-stage="wrapup"] { display: none; }
.side-checkin { background: linear-gradient(180deg, rgba(19, 145, 90, .12), rgba(19, 145, 90, 0) 80%); animation: rise-in .6s var(--ease-out) both; }
.side-checkin .side-title .icon { color: #6fd3a2; }
.checkin-form { display: grid; gap: var(--s3); }
.checkin-form input[type="text"] { min-height: 40px; padding-block: 8px; font-size: var(--fs-sm); }
.checkin-form .btn { justify-self: start; }
.checkin-done { display: flex; align-items: center; gap: 8px; margin: 0; color: #6fd3a2; font-size: var(--fs-sm); font-weight: 500; animation: rise-in .4s var(--ease-out) both; }
.checkin-done .icon { width: 18px; height: 18px; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; margin: 0; padding: 4px; border: 1px solid var(--navy-600); border-radius: var(--r-md); background: var(--navy-950); }
.segmented label { position: relative; display: grid; place-items: center; min-height: 40px; padding: 0 6px; border-radius: 7px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; text-align: center; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented label:hover:not(:has(input:checked)) { background: var(--navy-800); color: var(--text); }
.segmented label:has(input:checked) { background: var(--blue-600); color: #fff; box-shadow: 0 6px 14px -8px rgba(28, 98, 245, .8); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.abandon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin: 0; }
.abandon p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.room-share .invite-link input { font-size: var(--fs-xs); }
.no-show h2 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-base); }
.no-show h2 .icon { width: 18px; height: 18px; color: var(--text-3); }
.no-show p { margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-sm); }
.no-show .chip { margin: 0; }
.no-show-report > summary { list-style: none; cursor: pointer; }
.no-show-report > summary::-webkit-details-marker { display: none; }
.no-show-report .form { margin-top: var(--s3); }

/* Warm-up → focus: the clock settles. */
#room.is-settling .room-clock { animation: settle 1.4s var(--ease-out); }
@keyframes settle { 0% { box-shadow: 0 0 0 0 rgba(143, 177, 255, .35); } 40% { box-shadow: 0 0 0 8px rgba(143, 177, 255, 0); } }

/* Focus complete: an energy pulse runs along the block, both seats light up, the ring closes. */
.complete-overlay { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(28, 98, 245, .16), rgba(12, 17, 32, 0) 42%), rgba(12, 17, 32, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; }
.complete-mark { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.complete-ring { width: 112px; height: 112px; margin-bottom: var(--s2); }
.complete-title { margin: 0; color: #fff; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.02em; }
.complete-sub { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.cr-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 6; }
.cr-fill { fill: none; stroke: var(--blue-300); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; }
.cr-check { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
#room.is-completing .complete-overlay { animation: overlay-show 3.2s var(--ease-out) forwards; }
#room.is-completing .complete-overlay .cr-fill { animation: ring-close 1.1s var(--ease-out) .9s forwards; }
#room.is-completing .complete-overlay .cr-check { animation: draw .45s var(--ease-out) 1.85s forwards; }
#room.is-completing .complete-mark { animation: rise-in .6s var(--ease-out) .8s both; }
body.is-completing .energy { animation: energy-run 1s cubic-bezier(.45, 0, .2, 1) forwards; }
#room.is-completing .person .avatar { animation: sync-glow 1.1s var(--ease-out) 1s both; }
#room.is-completing .room-clock { animation: complete-ripple 1.8s var(--ease-out) 2.25s; }
@keyframes overlay-show { 0%, 18% { opacity: 0; visibility: visible; } 30%, 82% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes ring-close { to { stroke-dashoffset: 0; } }
@keyframes energy-run { 0% { opacity: 0; left: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 16px); } }
@keyframes sync-glow { 0% { box-shadow: 0 0 0 2px var(--navy-800), 0 0 0 2px rgba(143, 177, 255, .7); } 100% { box-shadow: 0 0 0 2px var(--navy-800), 0 0 0 14px rgba(143, 177, 255, 0); } }
@keyframes complete-ripple { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 162, .5); } 100% { box-shadow: 0 0 0 16px rgba(111, 211, 162, 0); } }
.side-checkin.is-saved { animation: complete-ripple 1.5s var(--ease-out); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* The partner arrives: their seat and avatar step in with a soft ring; away, they dim. */
[data-partner-seat] .avatar, [data-partner-row] .avatar { transition: opacity .5s var(--ease-out), scale .6s var(--ease-out); }
.just-arrived .avatar { animation: arrive-ring 1.3s var(--ease-out) .15s; }
.is-entering .avatar { animation: partner-in .8s var(--ease-out) both, arrive-ring 1.3s var(--ease-out) .5s; }
@keyframes partner-in { from { opacity: 0; scale: .7; } }
@keyframes arrive-ring { 0% { box-shadow: 0 0 0 0 rgba(143, 177, 255, .75); } 100% { box-shadow: 0 0 0 14px rgba(143, 177, 255, 0); } }

/* Leaving, or the page changing under the call: the room fades instead of jumping. */
body.is-leaving #room, body.is-leaving .room-bar { opacity: 0; scale: .99; transition: opacity .22s var(--ease-in), scale .26s var(--ease-in); }

/* Before the session: the lobby ------------------------------------------- */
.lobby { display: grid; gap: var(--s3); width: min(100%, 560px); margin: 0 auto; padding-block: var(--s8) var(--s16); }
@media (min-width: 768px) { .lobby { padding-top: var(--s12); } }
.lobby-card { display: grid; justify-items: center; gap: var(--s3); padding: var(--s10) var(--s8) var(--s6); border: 1px solid var(--navy-700); border-radius: var(--r-2xl); background: radial-gradient(120% 70% at 50% 0%, rgba(28, 98, 245, .12), rgba(28, 98, 245, 0) 60%), var(--navy-800); text-align: center; }
@media (max-width: 559px) { .lobby-card { padding: var(--s8) var(--s5) var(--s5); border-radius: var(--r-xl); } }
.pair { display: flex; align-items: center; margin-bottom: var(--s2); }
.pair .avatar { box-shadow: 0 0 0 4px var(--navy-800); }
.pair-line { width: 48px; margin: 0 4px; border-top: 2px dashed var(--navy-500); }
.pair[data-presence="together"] .pair-line { border-top-style: solid; border-color: var(--blue-300); }
.lobby-mark { width: 56px; margin-bottom: var(--s2); }
.lobby-when, .lobby-title { margin: 0; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem); letter-spacing: -.03em; }
.lobby-when .num { white-space: nowrap; }
.lobby-who { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--text-2); }
.lobby-who .icon { flex: none; width: 16px; height: 16px; color: var(--blue-300); }
.lobby-who strong { color: #fff; }
.lobby-wait { display: grid; justify-items: center; gap: 6px; width: 100%; margin-top: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--navy-700); }
.lobby-wait-label { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.big-time { margin: 0; color: #fff; font-size: clamp(3rem, 2.2rem + 3.4vw, 4.25rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.lobby-note { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.lobby-join { margin: var(--s3) 0 0; }
.btn-join { min-width: 240px; }
@media (max-width: 479px) { .lobby-join, .btn-join { width: 100%; min-width: 0; } }
.lobby-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s5); width: 100%; margin: var(--s3) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--navy-700); color: var(--text-3); font-size: var(--fs-xs); list-style: none; }
.lobby-facts li { display: inline-flex; align-items: center; gap: 6px; }
.lobby-facts .icon { width: 15px; height: 15px; }
.lobby-section, .lobby > .abandon, .lobby > .invite { padding: var(--s5) var(--s6); border: 1px solid var(--navy-700); border-radius: var(--r-xl); background: var(--navy-800); }
@media (max-width: 559px) { .lobby-section, .lobby > .abandon, .lobby > .invite { padding: var(--s5); } }
.lobby > .invite { margin: 0; }
.lobby-section > h2 { margin: 0 0 2px; font-size: var(--fs-md); }
.lobby-section-note { margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-sm); }
.lobby-section .room-share .side-title { margin-bottom: var(--s2); }
.steps-line { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; margin: 0; padding: 0; color: var(--text-3); font-size: var(--fs-xs); line-height: 1.4; list-style: none; }
.steps-line li { display: grid; align-content: start; gap: 8px; }
.steps-line li::before { content: ""; height: 4px; border-radius: 2px; background: var(--navy-600); }
.steps-line li:nth-child(2)::before { background: linear-gradient(90deg, var(--blue-600), var(--blue-300)); }
.steps-line li:last-child::before { background: rgba(111, 211, 162, .55); }
.steps-line strong { display: block; color: var(--text); font-size: var(--fs-sm); }

/* After the session --------------------------------------------------------- */
.after { display: grid; gap: var(--s4); width: min(100%, 600px); margin: 0 auto; padding-block: var(--s10) var(--s16); }
.after-head { display: grid; justify-items: center; gap: var(--s2); margin-bottom: var(--s4); text-align: center; }
.after-head h1 { margin: 0; font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem); }
.after-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.after-meta { margin: 0; max-width: 52ch; color: var(--text-3); font-size: var(--fs-sm); }
.after-mark { width: 56px; margin-bottom: var(--s3); }
.done-ring { width: 76px; height: 76px; margin-bottom: var(--s2); }
.done-ring .cr-fill { stroke: #6fd3a2; animation: ring-close 1s var(--ease-out) .15s forwards; }
.done-ring .cr-check { animation: draw .45s var(--ease-out) 1s forwards; }
.chip-outcome { border-color: var(--navy-600); background: var(--navy-800); color: var(--text-2); }
.chip-outcome.chip-done { border-color: rgba(111, 211, 162, .35); background: rgba(19, 145, 90, .16); color: #6fd3a2; }
.after-card { padding: var(--s6); border: 1px solid var(--navy-700); border-radius: var(--r-xl); background: var(--navy-800); }
@media (max-width: 559px) { .after-card { padding: var(--s5); } }
.after-card.form { gap: var(--s5); }
.after-goal { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.after-goal-plain { text-align: center; }
.after-note { margin: 0; color: var(--text-3); font-size: var(--fs-sm); text-align: center; }
.celebrate-card p { margin: 0 0 var(--s3); }
.celebrate-card .row { gap: var(--s2); }
.friend-card { display: flex; gap: var(--s4); align-items: flex-start; }
.friend-card .icon-badge { flex: none; background: rgba(143, 177, 255, .14); color: var(--blue-300); }
.friend-card p { margin: 0 0 var(--s3); }
.friend-card .chip { margin-right: 6px; }
.after-section { margin-top: var(--s4); }
.after-section > h2 { margin: 0 0 var(--s2); font-size: var(--fs-lg); }
.after-section > p { color: var(--text-3); font-size: var(--fs-sm); }
.same-again { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
@media (max-width: 479px) { .same-again .btn { flex: 1 1 100%; } }
.after-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--navy-700); font-size: var(--fs-sm); }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); min-width: 0; margin: 0; padding: 0; border: 0; }
.outcomes legend { margin-bottom: var(--s3); padding: 0; font-weight: 600; }
.outcome { display: grid; justify-items: start; gap: var(--s4); padding: var(--s4); border: 1px solid var(--navy-600); border-radius: var(--r-lg); background: var(--navy-900); cursor: pointer; transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur); }
.outcome:hover { border-color: var(--navy-500); }
.outcome-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.outcome-top .icon { width: 22px; height: 22px; color: var(--text-3); }
.outcome input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 2px solid var(--text-3); border-radius: 50%; cursor: pointer; }
.outcome input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-300); transform: scale(0); transition: transform .2s var(--ease-snap); }
.outcome input:checked { border-color: var(--blue-300); }
.outcome input:checked::before { transform: scale(1); }
.outcome input:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; }
.outcome:has(input:checked) { border-color: var(--blue-300); background: #1b2c52; box-shadow: inset 0 0 0 1px var(--blue-300); }
.outcome:has(input:checked) .outcome-top .icon { color: var(--blue-300); }
.outcome-label { font-size: var(--fs-md); font-weight: 600; }
@media (max-width: 559px) { .outcomes { grid-template-columns: 1fr; } .outcome { grid-template-columns: auto 1fr; align-items: center; } .outcome-top { width: auto; gap: var(--s3); flex-direction: row-reverse; } }

body.room textarea, body.room input[type="text"] { border-color: var(--control); background: var(--navy-950); color: var(--text); }
body.room textarea:hover, body.room input[type="text"]:hover { border-color: var(--text-3); }
body.room input:focus, body.room textarea:focus { border-color: var(--blue-300); }

/* Reporting from the room */
.dialog-report { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.report-form { gap: var(--s3); }
.report-form .choice-list { margin-top: var(--s2); }
.report-form .choice-list legend { color: var(--text); }
.report-form textarea { min-height: 84px; }
.report-form .dialog-actions { margin-top: var(--s2); }
.dialog-title[tabindex]:focus { outline: none; }

@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Social: posts, profiles, people ------------------------------------------ */

.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font: 600 var(--fs-sm)/1 var(--font);
}
.av-blue { background: #1c62f5; }
.av-navy { background: #131a29; }
.av-teal { background: #0b7480; }
.av-violet { background: #6447d4; }
.av-orange { background: #b2520c; }
.av-rose { background: #c0335f; }
.av-green { background: #257a43; }
.avatar-s { width: 30px; height: 30px; font-size: var(--fs-xs); }
.avatar-l { width: 48px; height: 48px; font-size: var(--fs-lg); }
.avatar-xl { width: 96px; height: 96px; font-size: 2.5rem; }
img.avatar { display: block; object-fit: cover; background: var(--surface-3); }

.posts { display: grid; gap: var(--s3); }
.post { padding: var(--s5) var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
@media (max-width: 639px) { .post { padding: var(--s4) var(--s5); border-radius: var(--r-lg); } }
.post-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.post-author { display: inline-flex; align-items: center; gap: var(--s3); min-width: 0; color: var(--text); line-height: 1.3; text-decoration: none; }
.post-author > span { min-width: 0; overflow-wrap: anywhere; }
.post-author strong { font-weight: 600; }
.post-author:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.post-author .muted { font-size: var(--fs-sm); }
.post-badge { display: inline-flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); color: var(--primary-text); font-size: var(--fs-xs); font-weight: 600; }
.post-badge .icon { width: 16px; height: 16px; }
.post-text { margin: 0; font-size: var(--fs-md); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); }
.post-time { color: var(--text-3); font-size: var(--fs-xs); text-decoration: none; white-space: nowrap; }
a.post-time { display: inline-flex; align-items: center; min-height: 28px; }
a.post-time:hover { color: var(--text); text-decoration: underline; }
.post-foot .post-time:first-of-type { margin-left: auto; }
.like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2);
  font: 600 var(--fs-xs) var(--font);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur), color var(--dur);
}
.like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.like:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.like.is-on { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--primary-text); }
.like.is-on svg { fill: var(--primary); stroke: var(--primary); }
.like { position: relative; }
.like svg { transition: fill .25s var(--ease-out), stroke .25s var(--ease-out); }
.like.just-liked svg { animation: heart .5s var(--ease-out); }
.like.just-liked::after { content: ""; position: absolute; top: 50%; left: 20px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1.5px solid var(--primary); border-radius: 50%; opacity: 0; animation: like-ring .6s var(--ease-out); pointer-events: none; }
.like.just-unliked svg { animation: heart-out .3s var(--ease-out); }
@keyframes like-ring { 0% { opacity: .55; scale: .45; } 100% { opacity: 0; scale: 1.45; } }
@keyframes heart-out { 40% { scale: .84; } }
.is-error { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes heart { 30% { scale: 1.26; } 65% { scale: .96; } }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.own-post { margin-top: var(--s4); padding: 0; }
.own-post > summary { display: flex; align-items: center; gap: var(--s2); min-height: 52px; padding: 0 var(--s5); font-size: var(--fs-sm); font-weight: 600; list-style: none; cursor: pointer; }
.own-post > summary::-webkit-details-marker { display: none; }
.own-post > summary .icon { width: 18px; height: 18px; color: var(--text-3); }
.own-post[open] > summary { border-bottom: 1px solid var(--border); }
.own-post-body { display: grid; gap: var(--s4); padding: var(--s5); }
.own-post .form { margin: 0; }
.report-link { margin-top: var(--s10); text-align: center; }

.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: start; }
@media (max-width: 639px) { .profile-head { grid-template-columns: 1fr; gap: var(--s4); } .avatar-xl { width: 80px; height: 80px; font-size: 2rem; } }
.profile-id h1 { margin: 0; overflow-wrap: anywhere; }
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: 4px; }
.friend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--success-edge);
  border-radius: var(--r-full);
  background: var(--success-soft);
  color: var(--success);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur), background-color var(--dur);
}
.friend-badge:hover { border-color: var(--success); color: var(--success); }
.friend-badge .icon { width: 15px; height: 15px; }
.profile-id > p { margin: 0; }
.profile-handle { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); color: var(--text-3); }
.profile-bio { margin-top: var(--s4) !important; max-width: 56ch; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.profile-actions { margin-top: var(--s5); gap: var(--s2); }
.profile-actions .inline-form { display: inline-flex; }
.profile-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: var(--s8) 0 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.profile-stats > div { padding: var(--s4); border-left: 1px solid var(--border); }
.profile-stats > div:first-child { border-left: 0; }
.profile-stats dt { color: var(--text-3); font-size: var(--fs-xs); }
.profile-stats dt a { display: inline-block; padding-block: 4px; margin-block: -4px; color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); }
.profile-stats dt a:hover { color: var(--text); text-decoration: underline; }
.profile-stats dd { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (max-width: 767px) {
  .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-stats > div { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
  .profile-stats > div:nth-child(-n+3) { border-top: 0; }
  .profile-stats > div:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 419px) {
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats > div:nth-child(3) { border-top: 1px solid var(--border); }
  .profile-stats > div:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .profile-stats > div:nth-child(2n+1) { border-left: 0; }
}
/* Personal history (/historie): the stats row of the profile with four numbers, then the list. */
.history-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--s6); }
@media (max-width: 767px) {
  .history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-stats > div:nth-child(n) { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
  .history-stats > div:nth-child(-n+2) { border-top: 0; }
  .history-stats > div:nth-child(2n+1) { border-left: 0; }
}
.history-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.history-item { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: start; gap: var(--s2) var(--s5); padding: var(--s5); border-top: 1px solid var(--border); }
.history-item:first-child { border-top: 0; }
.history-when p { margin: 0; }
.history-when strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.history-when .num { color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.history-with { display: flex; align-items: center; gap: 5px; margin-top: 6px !important; color: var(--text-3); font-size: var(--fs-xs); }
.history-with .icon { width: 12px; height: 12px; flex: none; }
.history-body { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.history-body p { margin: 0; }
.history-goal { color: var(--text); overflow-wrap: anywhere; }
.history-note { display: flex; gap: 6px; color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.history-note .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--text-3); }
.history-flag { color: var(--text-3); font-size: var(--fs-xs); }
.history-actions { display: flex; align-items: center; gap: var(--s2); }
@media (max-width: 639px) {
  .history-item { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
  .history-when { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--s3); }
  .history-when strong { display: inline; }
  .history-with { margin-top: 0 !important; }
}
.private-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); }
.private-icon .icon, .private-icon .icon-lock { width: 22px; height: 22px; }
.icon-lock { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lock-inline { display: inline-block; vertical-align: -1px; color: var(--text-3); }

/* Comments under a celebration */
.comments { margin-top: var(--s10); scroll-margin-top: calc(var(--header-h) + 20px); }
.comments h2 { display: flex; align-items: baseline; gap: var(--s2); font-size: var(--fs-xl); }
.comments h2 .muted { font-size: var(--fs-base); font-weight: 500; }
.comment-list { display: grid; gap: 0; margin: 0 0 var(--s5); padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 24px); }
.comment:first-child { border-top: 0; }
.comment:target { background: var(--primary-soft); animation: rise-in .5s var(--ease-out) both; }
.comment-avatar { line-height: 0; }
.comment-head { margin: 0; font-size: var(--fs-sm); line-height: 1.4; }
.comment-head a { color: var(--text); text-decoration: none; }
.comment-head a:hover { text-decoration: underline; }
.comment-head .muted { font-size: var(--fs-xs); }
.comment-text { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment-actions { display: flex; align-items: center; gap: var(--s4); margin-top: 4px; font-size: var(--fs-xs); }
.comment-actions .link-button, .comment-actions .link-quiet { display: inline-flex; align-items: center; min-height: 28px; color: var(--text-3); }
.comment-actions .link-button:hover { color: var(--text); }
.comment-form { padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }

/* Settings ----------------------------------------------------------------- */

/* One grid: the header (title + one line) above the cards, the category list beside them on wide
   screens and as a sticky row of chips under the site header on phones and tablets. */
.settings-layout { display: grid; grid-template-areas: "head" "nav" "main"; gap: var(--s5); }
.settings-layout > * { min-width: 0; }
.settings-head { grid-area: head; margin: 0; }
.settings-nav { grid-area: nav; }
.settings { grid-area: main; }
@media (min-width: 1024px) {
  .settings-layout { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "nav head" "nav main"; column-gap: var(--s10); row-gap: var(--s8); align-items: start; }
  .settings-nav { position: sticky; top: calc(var(--header-h) + var(--s6)); }
}
.settings-nav ul { display: flex; gap: var(--s2); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.settings-nav ul::-webkit-scrollbar { display: none; }
.settings-nav li { flex: none; }
@media (min-width: 1024px) { .settings-nav ul { flex-direction: column; gap: var(--s1); overflow: visible; } }
.settings-nav a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 40px;
  padding: 0 var(--s3);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur), color var(--dur);
}
.settings-nav a:hover { background: var(--surface-3); color: var(--text); }
.settings-nav a[aria-current="true"] { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-weight: 600; }
.settings-nav .icon { width: 18px; height: 18px; color: var(--text-3); }
@media (max-width: 1023px) {
  .settings-nav {
    position: sticky;
    z-index: 30;
    top: var(--header-h);
    margin: calc(-1 * var(--s2)) calc(-1 * var(--gutter)) 0;
    padding: var(--s2) 0;
    background: rgba(246, 247, 249, .9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
  .settings-nav ul {
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter) - 8px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter) - 8px), transparent);
  }
  .settings-nav a { min-height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
  .settings-nav a[aria-current="true"] { border-color: var(--navy-900); background: var(--navy-900); box-shadow: none; color: #fff; }
  .settings-nav a[aria-current="true"] .icon { color: #fff; }
  .settings-layout .settings .panel { scroll-margin-top: 56px; }   /* below the sticky chips */
}
.settings { display: grid; gap: var(--s4); min-width: 0; }
.settings .panel { scroll-margin-top: var(--s4); }
.settings .panel:target { border-color: var(--primary-edge); box-shadow: 0 0 0 3px var(--primary-soft); }
.photo-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: start; }
@media (max-width: 559px) { .photo-row { grid-template-columns: 1fr; gap: var(--s4); } }
.photo-preview { line-height: 0; }
.photo-preview .avatar-xl { animation: pop-in .35s var(--ease-snap) both; }
.account-email { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }

/* Legal, prose and error pages --------------------------------------------- */

.prose { max-width: 72ch; }
.prose h1 { margin-bottom: var(--s6); }
.prose h2 { margin-top: var(--s10); font-size: var(--fs-xl); }
.prose ul { padding-left: 22px; }
.prose li { color: var(--text-2); }
.prose li + li { margin-top: var(--s2); }
.prose p { color: var(--text-2); }
.draft-note { padding: var(--s3) var(--s4); border: 1px solid var(--warning-edge); border-radius: var(--r-md); background: var(--warning-soft); color: var(--warning); font-size: var(--fs-sm); }

.error-page { display: grid; justify-items: center; max-width: 560px; margin: 0 auto; padding-block: var(--s16) var(--s10); text-align: center; }
.error-page .mark { width: 88px; margin-bottom: var(--s8); }
.error-page .mark-apart { margin-left: 12px; }
.error-code { margin: 0 0 var(--s2); color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.error-page p { margin-inline: auto; }
.error-actions { justify-content: center; margin-top: var(--s6); gap: var(--s2); }
@media (max-width: 559px) { .error-page { padding-top: var(--s10); } .error-actions .btn { flex: 1 1 auto; } }

/* Admin -------------------------------------------------------------------- */

/* Admin confirmation and the authenticator set-up (admin/confirm.html, admin/totp.html) */
.steps-list { display: grid; gap: var(--s3); margin: 0 0 var(--s5); padding-left: 1.25em; }
.totp-secret { margin: var(--s2) 0; }
.totp-secret code { display: inline-block; padding: var(--s2) var(--s3); border: 1px solid var(--border); border-radius: var(--r-sm, 8px); background: var(--surface); font-size: var(--fs-md, 1.05rem); letter-spacing: .06em; overflow-wrap: break-word; }

.admin-nav { display: flex; gap: var(--s1); margin-bottom: var(--s8); padding-bottom: 0; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-bottom: 2px solid transparent; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.admin-nav a:hover { color: var(--text); }
.admin-nav a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td > a { display: inline-block; min-width: 24px; padding-block: 3px; }
.priority { color: var(--danger); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); }
.ops-list { display: grid; gap: var(--s2); margin: var(--s4) 0 0; padding-left: var(--s5); }
.stat-grid + .table-wrap { margin-top: var(--s4); }
.stat { display: block; padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-xs); color: var(--text); text-decoration: none; }
a.stat:hover { border-color: var(--border-strong); color: var(--text); }
.stat b { display: block; font-size: var(--fs-h2); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--text-3); font-size: var(--fs-sm); }
.actions-inline { display: flex; flex-wrap: wrap; gap: var(--s2); }
.admin-person { display: flex; align-items: center; gap: var(--s4); }
.admin-photo { display: inline-block; width: 72px; height: 72px; margin-top: 6px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.admin h1 { margin-bottom: var(--s6); }

/* Cookie banner ------------------------------------------------------------ */

.consent {
  position: fixed;
  z-index: 55;
  right: var(--gutter);
  bottom: calc(var(--gutter) + var(--safe-bottom));
  left: var(--gutter);
  display: grid;
  gap: var(--s4);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: rise-in .4s var(--ease-out) both;
}
body.has-tabbar .consent { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }
@media (min-width: 768px) {
  .consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6); padding: var(--s5) var(--s6); }
  body.has-tabbar .consent { bottom: var(--gutter); }
}
.consent h2 { margin: 0 0 4px; font-size: var(--fs-base); }
.consent p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.consent.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
body:has(.consent) .site-footer { padding-bottom: 180px; }
.consent-choice { max-width: 440px; }
.cookie-list { display: grid; gap: var(--s3); margin: var(--s4) 0 0; }
.cookie-list > div { padding: var(--s4) var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.cookie-list dt { margin-bottom: 4px; font-weight: 600; overflow-wrap: anywhere; }
.cookie-list dd { margin: 0; color: var(--text-2); }
.cookie-list .cookie-life { margin-top: 6px; color: var(--text-3); font-size: var(--fs-sm); }


/* Reservation moment (app.js reserve()): the block lifts and its edge runs like a progress line,
   then the block opens into a card where both seats fall into one rhythm and a ring closes with
   a tick. Only for people without reduced motion; everyone else gets the
   normal page and toast. */
@property --rv-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.is-reserving { position: relative; z-index: 3; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(28, 98, 245, .6), 0 0 0 3px rgba(28, 98, 245, .14) !important; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.slot-btn.is-reserving { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--primary-text); opacity: 1; }
.rv-sweep { position: absolute; z-index: 1; inset: -1px; padding: 2px; border-radius: inherit; background: conic-gradient(from var(--rv-angle), transparent 0 58%, rgba(28, 98, 245, .2) 70%, var(--primary) 90%, transparent 100%); pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: rv-sweep 1.1s linear infinite; }
@keyframes rv-sweep { to { --rv-angle: 360deg; } }
.is-refused { border-color: var(--danger) !important; animation: shake .35s; }

.reserved { position: fixed; z-index: 85; inset: 0; display: grid; place-items: center; padding: var(--gutter); background: rgba(12, 17, 32, 0); transition: background-color .35s var(--ease-out), -webkit-backdrop-filter .35s, backdrop-filter .35s; }
.reserved.is-in { background: rgba(12, 17, 32, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reserved-card { position: relative; width: min(400px, 100%); padding: var(--s8) var(--s6) var(--s6); overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); text-align: center; outline: none; }
.reserved-card::before { content: ""; position: absolute; top: -120px; left: 50%; width: 360px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 98, 245, .16), rgba(28, 98, 245, 0)); transform: translateX(-50%); pointer-events: none; }
.rv-pair { position: relative; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--s6); }
.rv-seat { position: relative; flex: none; width: 64px; height: 64px; }
.rv-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.rv-face .avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.rv-face img.avatar { object-fit: cover; }
.rv-face.is-blank { background: var(--primary); }
.rv-you .rv-face { opacity: 0; transition: opacity .35s var(--ease-out) .15s; }
.reserved.is-in .rv-you .rv-face { opacity: 1; }
.rv-partner .rv-face { opacity: 0; transform: translateX(22px) scale(.8); transition: opacity .45s var(--ease-out) .35s, transform .7s var(--ease-out) .35s; }
.reserved.is-in .rv-partner .rv-face { opacity: 1; transform: none; }
.rv-partner.is-open .rv-face { border: 2px dashed var(--primary-edge); background: var(--primary-soft); }
.reserved.is-in .rv-partner.is-open .rv-face { animation: rv-wait 2.6s ease-in-out 1.6s infinite; }
@keyframes rv-wait { 50% { box-shadow: 0 0 0 6px rgba(28, 98, 245, .1); } }
.rv-partner.is-open .rv-face svg { width: 34px; height: 34px; color: var(--primary-text); }
.rv-orbit { position: absolute; inset: -9px; border: 1px dashed var(--primary-edge); border-radius: 50%; opacity: 0; transition: opacity .4s .3s; animation: spin 2.6s linear infinite; }
.reserved.is-in .rv-orbit { opacity: 1; }
.rv-orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(28, 98, 245, .6); }
.rv-phase { position: absolute; inset: 0; }
.reserved.is-in .rv-phase { animation: rv-catch 1s var(--ease-out) .3s both; }
@keyframes rv-catch { from { transform: rotate(-210deg); } to { transform: rotate(0); } }
.rv-link { position: relative; flex: none; width: 108px; height: 48px; }
.rv-link::before, .rv-link::after { content: ""; position: absolute; top: 50%; width: 32px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .4s var(--ease-out) .35s; }
.rv-link::before { left: 0; transform-origin: left; }
.rv-link::after { right: 0; transform-origin: right; }
.reserved.is-in .rv-link::before, .reserved.is-in .rv-link::after { transform: scaleX(1); }
.rv-ring { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; overflow: visible; transform: translate(-50%, -50%); }
.rv-ring-track { fill: var(--surface); stroke: var(--primary-soft-2); stroke-width: 3; }
.rv-ring-fill { fill: none; stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; stroke-width: 3; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.rv-tick { fill: none; stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.5; }
.reserved.is-in .rv-ring-fill { animation: draw .5s var(--ease-out) .55s forwards; }
.reserved.is-in .rv-tick { animation: draw .3s var(--ease-out) .98s forwards; }
.reserved.is-in .rv-ring { animation: rv-pulse 1.2s var(--ease-out) 1.08s; }
@keyframes rv-pulse { 0% { filter: drop-shadow(0 0 0 rgba(28, 98, 245, .7)); } 100% { filter: drop-shadow(0 0 16px rgba(28, 98, 245, 0)); } }
.rv-title { margin: 0 0 var(--s1); font-size: var(--fs-xl); letter-spacing: -.02em; }
.rv-when { margin: 0 auto var(--s4); color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.rv-next { margin: 0 auto; color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.rv-note { margin: var(--s1) auto var(--s6); color: var(--text-3); font-size: var(--fs-sm); }
.rv-title, .rv-when, .rv-next, .rv-note, .rv-go { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.reserved.is-in .rv-title, .reserved.is-in .rv-when, .reserved.is-in .rv-next, .reserved.is-in .rv-note, .reserved.is-in .rv-go { opacity: 1; transform: none; }
.reserved.is-in .rv-title { transition-delay: .78s; }
.reserved.is-in .rv-when { transition-delay: .86s; }
.reserved.is-in .rv-next { transition-delay: .94s; }
.reserved.is-in .rv-note { transition-delay: 1s; }
.reserved.is-in .rv-go { transition-delay: 1.08s; }
.rv-go { overflow: hidden; }
.rv-go::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .2); transform: scaleX(0); transform-origin: left; }
.reserved.is-counting .rv-go::after { transform: scaleX(1); transition: transform 2.8s linear; }
.rv-go span { position: relative; }

/* Interaction system ---------------------------------------------------------
   One vocabulary everywhere: hover lifts or tints, press compresses, sending shows a spinner and
   says what is happening, success confirms in place, errors say why. */

/* Page loading: a thin bar while the next page is on its way. */
.nav-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 2px; background: var(--primary); opacity: 0; transform: scaleX(0); transform-origin: left; pointer-events: none; }
body.room .nav-progress { background: var(--blue-300); }
.is-navigating .nav-progress { opacity: 1; animation: nav-load 10s cubic-bezier(.08, .82, .17, 1) forwards; }
@keyframes nav-load { 0% { transform: scaleX(0); } 12% { transform: scaleX(.42); } 100% { transform: scaleX(.94); } }

/* Buttons that say what they are doing ("Rezervuji…"). */
.btn.is-busy.has-busy-label { color: var(--btn-fg) !important; }
.btn.is-busy.has-busy-label::after { position: static; order: -1; width: 14px; height: 14px; }
.slot-btn.is-busy { flex-direction: row; align-items: center; justify-content: center; gap: 8px; border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); font-weight: 600; opacity: 1; }
.slot-btn.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* Saved in place: Ukládám… → ✓ Uloženo, or Nepodařilo se uložit. */
.save-state { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; transition: opacity .4s var(--ease-out); }
.panel-head > div:first-child { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s3); }
.panel-head > div:first-child > p { flex-basis: 100%; }
.save-state svg { width: 14px; height: 14px; }
.save-state.is-saving { background: var(--surface-3); color: var(--text-2); }
.save-state.is-saving::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.save-state.is-saved { background: var(--success-soft); color: var(--success); animation: state-in .35s var(--ease-snap); }
.save-state.is-saved svg path { stroke-dasharray: 14; stroke-dashoffset: 14; animation: tick-draw .35s var(--ease-out) .1s forwards; }
.save-state.is-error { background: var(--danger-soft); color: var(--danger); animation: state-in .35s var(--ease-out), shake .35s .1s; }
.save-state.is-fading { opacity: 0; }
@keyframes state-in { from { opacity: 0; transform: scale(.9); } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.js .autosave-hide { display: none; }

/* Switches for on/off settings. */
input.switch { position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--r-full); background: var(--gray-300); appearance: none; -webkit-appearance: none; cursor: pointer; transition: background-color .2s var(--ease-out); }
input.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .3s var(--ease-out), width .2s var(--ease-out); }
input.switch:checked { background: var(--primary); }
input.switch:checked::before { transform: translateX(16px); }
input.switch:active::before { width: 22px; }
input.switch:checked:active::before { transform: translateX(12px); }
input.switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-switch { grid-template-columns: minmax(0, 1fr) auto; }
.choice-switch .switch { order: 2; margin-top: 2px; }
.choice-switch:has(input:checked) { border-color: var(--border-strong); background: var(--surface); box-shadow: none; }
.choice-switch:has(input:focus-visible) { box-shadow: var(--ring); }

/* Just booked: the card says so once, then settles. */
.next { position: relative; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.next:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.next.is-new { animation: booked-glow 2.4s var(--ease-out); }
@keyframes booked-glow { 0% { box-shadow: 0 0 0 0 rgba(28, 98, 245, .45), var(--shadow-sm); border-color: var(--primary); } 60% { box-shadow: 0 0 0 10px rgba(28, 98, 245, 0), var(--shadow-sm); border-color: var(--primary-edge); } }
.booked-badge { position: absolute; top: -12px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: var(--r-full); background: var(--success); box-shadow: var(--shadow-md); color: #fff; font-size: var(--fs-xs); font-weight: 600; animation: badge-life 4.2s var(--ease-out) both; pointer-events: none; }
.booked-badge .icon { width: 15px; height: 15px; }
@keyframes badge-life { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

/* Cards and rows answer the pointer. */
.session-row, .people > li { transition: background-color var(--dur); }
.session-row:hover, .people > li:hover { background: var(--surface-2); }
.post, .stat, .cookie-list > div { transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out); }
.post:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
a.stat:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.menu-item { transition: background-color var(--dur-fast), color var(--dur-fast); }
.link-button:active, .menu-item:active, .tab:active, .nav-link:active, .like:active { transform: scale(.97); }
.like, .tab, .nav-link { transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur-fast) var(--ease-out); }
.dialog-actions .btn { min-width: 96px; }

/* Motion ------------------------------------------------------------------- */

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }

/* Scroll reveal: app.js adds .reveal-ready to <html> only when motion is allowed, so without
   JavaScript (or with reduced motion) everything is simply visible. */
/* Section heads rise into place and their cards follow one by one; the 50-minute timeline
   draws itself. */
.reveal-ready [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out); }
.reveal-ready [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.reveal-ready [data-reveal-stagger] > * { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out) var(--d, 0s), translate .7s var(--ease-out) var(--d, 0s), transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.reveal-ready [data-reveal-stagger].is-visible > * { opacity: 1; translate: 0 0; }
/* "Jak to funguje" cards come in from alternating sides (odd from the left, even from the right),
   each once, as it scrolls into view; app.js staggers cards arriving together through --d. The
   band clips the offset (overflow-x: clip), so phones never scroll sideways. */
.reveal-ready [data-reveal-sides] > * { opacity: 0; translate: -24px 0; transition: opacity .7s var(--ease-out) var(--d, 0s), translate .75s var(--ease-out) var(--d, 0s), transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.reveal-ready [data-reveal-sides] > :nth-child(even) { translate: 24px 0; }
.reveal-ready [data-reveal-sides] > .is-in { opacity: 1; translate: 0 0; }
.reveal-ready [data-reveal] .timeline .bar { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.reveal-ready [data-reveal].is-visible .timeline .bar { transform: none; }
.reveal-ready [data-reveal].is-visible .timeline li:nth-child(2) .bar { transition-delay: .35s; transition-duration: 1.4s; }
.reveal-ready [data-reveal].is-visible .timeline li:nth-child(3) .bar { transition-delay: 1.6s; }
.reveal-ready [data-reveal] .timeline-legend li { opacity: 0; transition: opacity .5s; }
.reveal-ready [data-reveal].is-visible .timeline-legend li { opacity: 1; transition-delay: 1.9s; }

.sync-line { position: fixed; z-index: 45; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.sync-line::before, .sync-line::after { content: ""; position: absolute; top: 0; width: 50%; height: 100%; transform: scaleX(var(--p, 0)); }
.sync-line::before { left: 0; background: var(--primary); transform-origin: left; }
.sync-line::after { right: 0; background: var(--navy-900); transform-origin: right; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(2) { --d: 70ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(3) { --d: 140ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(4) { --d: 210ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(5) { --d: 280ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(6) { --d: 350ms; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(n+7) { --d: 420ms; }

/* Private meetings ---------------------------------------------------------------------
   Scheduling is the place for motion here: the picker opens, months slide the way you move,
   hours arrive one after another, the dial's hand turns the short way to the minute, and the
   three choices settle into one line ("Čtvrtek 15. října · 9:30"). Transforms and opacity
   only; everything holds still under reduced motion (the end of this file). */
.back-row { margin: 0 0 var(--s4); }
.meeting-new .page-head h1 { max-width: 22ch; }
.page-head-actions { gap: var(--s2); }
.schedule-form { display: grid; gap: var(--s4); }
.schedule-card { padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.schedule-card-title { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); font-size: var(--fs-base); }
.schedule-card-title .icon { width: 18px; height: 18px; color: var(--primary-text); }
@media (max-width: 639px) { .schedule-card { padding: var(--s5) var(--s4); border-radius: var(--r-lg); } }
.schedule-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.schedule-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.schedule-note .icon { flex: none; width: 16px; height: 16px; }
.schedule-form [data-create] { transition: background-color .2s var(--ease-out), box-shadow .35s var(--ease-out), transform .25s var(--ease-out); }
.schedule-form [data-create].is-ready { box-shadow: 0 0 0 4px var(--primary-soft-2); }
@media (max-width: 639px) { .schedule-submit .btn { width: 100%; } }
.lock-base { display: flex; gap: var(--s3); margin: 0 0 var(--s4); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.lock-base .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--primary-text); }
.lock-field { margin-top: var(--s3); }

/* The plain fields (no JavaScript) */
.picker-native { display: grid; gap: var(--s4); }
.picker-native-time { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

/* Date → hour → minute */
.pick-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s5); padding: 0; list-style: none; }
.pick-step {
  display: grid;
  gap: 1px;
  min-width: 78px;
  padding: 7px 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s, box-shadow .3s var(--ease-out), transform .25s var(--ease-out);
}
.pick-step-label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pick-step-value { color: var(--text); font-size: var(--fs-md); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-step[aria-current="step"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); color: var(--primary-text); }
.pick-step.is-done:not([aria-current]) { background: var(--surface-2); }
.pick-step:disabled { opacity: .45; cursor: default; }
.pick-step:not(:disabled):not([aria-current]):hover { border-color: var(--control); }
.pick-step:not(:disabled):active { transform: scale(.97); transition-duration: 90ms; }
.pick-step.is-missing { border-color: var(--danger); animation: shake .35s; }
.pick-step-sep { display: grid; place-items: center; color: var(--text-3); }
.pick-step-sep .icon { width: 16px; height: 16px; }
@media (max-width: 400px) { .pick-step { min-width: 0; padding-inline: 10px; } .pick-steps { gap: 4px; } }

/* The three pages share one place; the active one slides in from the side it comes from. */
.pick-stage { display: grid; margin: -6px; padding: 6px; overflow: hidden; }
.pick-stage, .schedule-form [data-create] { scroll-margin: calc(var(--header-h) + 16px) 0 calc(var(--tabbar-h) + var(--safe-bottom) + 16px); }
.pick-view {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease-in), translate .28s var(--ease-in), visibility 0s linear .28s;
}
.pick-view.is-before { translate: -36px 0; }
.pick-view.is-after { translate: 36px 0; }
.pick-view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: 0 0;
  transition: opacity .34s var(--ease-out) .08s, translate .5s var(--ease-out) .04s, visibility 0s;
}
.pick-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s3); margin: 0 0 var(--s3); font-weight: 600; }
.pick-title-day { color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.cal-title { margin: 0; font-size: var(--fs-md); font-weight: 600; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-2); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.cal-nav .icon { width: 18px; height: 18px; }
.cal-nav:hover:not(:disabled) { border-color: var(--control); background: var(--surface-2); }
.cal-nav:active:not(:disabled) { transform: scale(.9); transition-duration: 90ms; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-week { margin-bottom: 4px; color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.cal-viewport { position: relative; display: grid; }
.cal-grid { grid-area: 1 / 1; align-content: start; }
.cal-grid.is-going { pointer-events: none; }
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text);
  font: 600 var(--fs-sm)/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  isolation: isolate;
  transition: color .22s var(--ease-out);
}
.cal-day::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  scale: .5;
  transition: opacity .22s var(--ease-out), scale .42s var(--ease-out), background-color .2s;
}
.cal-day:hover:not(:disabled):not(.is-selected)::before { background: var(--surface-3); opacity: 1; scale: 1; }
.cal-day.is-selected { color: #fff; }
.cal-day.is-selected::before { background: var(--primary); opacity: 1; scale: 1; box-shadow: 0 6px 16px -8px rgba(28, 98, 245, .7); }
.cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--primary); }
.cal-day.is-selected.is-today::after { background: #fff; }
.cal-day:disabled { color: var(--gray-300); cursor: default; }
.cal-day:focus-visible { outline: none; }
.cal-day:focus-visible::before { opacity: 1; scale: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.cal-day:focus-visible:not(.is-selected)::before { background: var(--surface); }
.cal-gap { height: 44px; }

/* Hours */
.hour-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 479px) { .hour-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hour {
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: 600 var(--fs-base)/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .2s, background-color .24s var(--ease-out), color .2s, box-shadow .3s var(--ease-out), translate .3s var(--ease-out), scale .3s var(--ease-out);
}
.hour:hover:not(:disabled):not(.is-selected) { border-color: var(--control); translate: 0 -1px; }
.hour:active:not(:disabled) { scale: .95; transition-duration: 90ms; }
.hour.is-selected { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(28, 98, 245, .75); }
.hour.is-picked { animation: pick-pop .44s var(--ease-out); }
.hour:disabled { border-color: transparent; background: var(--surface-2); color: var(--gray-300); cursor: default; }
.hour:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hour-grid.is-arriving .hour { animation: pick-arrive .46s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 12ms); }
@keyframes pick-pop { 45% { scale: 1.08; } }
@keyframes pick-arrive { from { opacity: 0; translate: 0 8px; scale: .96; } }

/* The minute dial: the hand turns to the chosen minute (always the short way). */
.dial { display: grid; justify-items: center; gap: var(--s3); padding-top: var(--s1); }
.dial-face {
  --size: min(272px, 74vw);
  --r: calc(var(--size) / 2 - 28px);
  position: relative;
  width: var(--size);
  height: var(--size);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 30%, var(--surface-2) 30.5% 100%);
}
.dial-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 2px;
  height: calc(var(--r) - 18px);
  margin-left: -1px;
  border-radius: 2px;
  background: var(--primary);
  transform-origin: 50% 100%;
  rotate: var(--turn, 0deg);
  opacity: .25;
  transition: rotate .6s cubic-bezier(.22, 1, .36, 1), opacity .3s var(--ease-out);
}
.dial-hand.is-instant { transition: none; }
.dial-face.has-pick .dial-hand { opacity: 1; }
.dial-hand i { position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--primary); }
.dial-pivot { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  font: 600 var(--fs-sm)/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  isolation: isolate;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  transition: color .22s var(--ease-out);
}
.tick::before { content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 50%; background: var(--primary); opacity: 0; scale: .5; transition: opacity .2s var(--ease-out), scale .4s var(--ease-out), background-color .2s; }
.tick:hover:not(:disabled):not(.is-selected)::before { background: var(--surface-3); opacity: 1; scale: 1; }
.tick.is-selected { color: #fff; }
.tick.is-selected::before { background: var(--primary); opacity: 1; scale: 1; }
.tick.is-picked::after { content: ""; position: absolute; inset: 1px; border: 2px solid var(--primary); border-radius: 50%; animation: tick-ring .65s var(--ease-out) both; pointer-events: none; }
.tick:disabled { color: var(--gray-300); cursor: default; }
.tick:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@keyframes tick-ring { from { opacity: .7; scale: .85; } to { opacity: 0; scale: 1.4; } }
.dial-readout { display: flex; align-items: baseline; margin: 0; color: var(--text); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.dial-colon { padding: 0 1px; color: var(--text-3); }
.dial-readout-min { color: var(--primary); }

/* The choice, in one line */
.pick-result {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 56px;
  margin: var(--s5) 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-3);
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), color .3s;
}
.pick-result-mark { display: grid; place-items: center; }
.pick-result-mark .icon { width: 22px; height: 22px; transition: color .3s; }
.pick-result-text { display: none; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-size: var(--fs-md); font-weight: 600; }
.pick-result-date, .pick-result-time, .pick-result-dot { display: inline-block; }
.pick-result-time { color: var(--primary); font-variant-numeric: tabular-nums; }
.pick-result-dot { color: var(--text-3); }
.pick-result.is-ready { border-style: solid; border-color: var(--primary-edge); background: var(--primary-soft); color: var(--text); }
.pick-result.is-ready .pick-result-empty { display: none; }
.pick-result.is-ready .pick-result-text { display: inline-flex; }
.pick-result.is-ready .pick-result-mark .icon { color: var(--primary); animation: pop-in .42s var(--ease-out); }
.pick-result.is-ready .pick-result-date { animation: result-from-left .52s var(--ease-out) both; }
.pick-result.is-ready .pick-result-time { animation: result-from-right .52s var(--ease-out) .06s both; }
.pick-result.is-ready .pick-result-dot { animation: pop-in .4s var(--ease-out) .14s both; }
@keyframes result-from-left { from { opacity: 0; translate: -12px 0; } }
@keyframes result-from-right { from { opacity: 0; translate: 12px 0; } }

/* Opening: the picker unfolds, the month's days arrive in reading order. */
.picker.is-opening .picker-ui { animation: picker-open .55s var(--ease-out) both; }
.picker.is-opening .cal-day { animation: pick-arrive .44s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 7ms); }
@keyframes picker-open { from { opacity: 0; translate: 0 10px; scale: .985; } }

/* The meeting page */
.meeting-page { padding-top: var(--s6); }
.meeting-card { position: relative; padding: var(--s8); border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--shadow-md); }
@media (max-width: 639px) { .meeting-card { padding: var(--s6) var(--s5); border-radius: var(--r-xl); } }
.mc-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s5); }
.privacy-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px 3px 10px; border-radius: var(--r-full); background: var(--navy-900); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.privacy-chip .icon { width: 14px; height: 14px; }
.mc-who { margin: 0 0 var(--s2); color: var(--text-3); font-weight: 600; }
.mc-when { display: grid; gap: 2px; margin: 0; font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); letter-spacing: -.02em; line-height: 1.12; }
.mc-when > span { display: block; }
.mc-time { color: var(--primary); font-variant-numeric: tabular-nums; }
.mc-sub { margin: var(--s3) 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.mc-facts { display: grid; gap: 6px; margin: var(--s4) 0 0; padding: 0; color: var(--text-2); font-size: var(--fs-sm); list-style: none; }
.mc-facts li { display: flex; align-items: flex-start; gap: 10px; }
.mc-facts .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--text-3); }
.mc-state { display: flex; align-items: center; gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.mc-state .mark { flex: none; width: 32px; }
.mc-state p { margin: 0; }
.mc-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
@media (max-width: 479px) { .mc-actions .btn { width: 100%; } }
.mc-note { margin: var(--s3) 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.mc-countdown { margin-top: var(--s6); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-2); }
.mc-countdown-value { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-md); font-weight: 600; }
.mc-countdown-value .icon { flex: none; width: 18px; height: 18px; color: var(--primary-text); }
.mc-countdown .mc-note { margin-top: 4px; }
.choice-optional { color: var(--text-3); font-weight: 500; }
.mc-password { max-width: 420px; margin-top: var(--s6); }
.seats { display: flex; align-items: center; gap: 6px; margin: var(--s6) 0 0; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.seat { width: 12px; height: 12px; border: 2px solid var(--primary); border-radius: 50%; transition: background-color .3s var(--ease-out); }
.seat.is-taken { background: var(--primary); }
.seats .seat:last-of-type { margin-right: 6px; }
.mc-share { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--border); }
.mc-share .invite-link { margin-top: var(--s4); }
.mc-share .share-status { min-height: 1.4em; margin: var(--s2) 0 0; }
.mc-manage { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--border); }
.mc-change { flex: 0 1 auto; }
.mc-change[open] { flex-basis: 100%; }
.mc-change > summary { display: inline-flex; list-style: none; }
.mc-change > summary::-webkit-details-marker { display: none; }
.mc-change[open] > summary { margin-bottom: var(--s4); }
.schedule-form-inline { padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.schedule-form-inline .pick-step, .schedule-form-inline .hour { background: var(--surface); }
.mc-foot { display: flex; align-items: center; gap: 6px; margin-top: var(--s4); }
.mc-foot .icon { flex: none; width: 14px; height: 14px; }

/* A new meeting arrives: the card settles, the lock steps into place, the link follows. */
.meeting-card.is-created { animation: card-arrive .6s var(--ease-out) both; }
.meeting-card.is-created .mc-when > span { animation: when-in .62s var(--ease-out) both; }
.meeting-card.is-created .mc-when .mc-time { animation-delay: .08s; }
.meeting-card.is-created .privacy-chip { animation: privacy-settle .7s var(--ease-out) .28s both; }
.meeting-card.is-created .mc-lock { animation: privacy-settle .7s var(--ease-out) .36s both; }
.meeting-card.is-created .mc-share { animation: rise-in .5s var(--ease-out) .42s both; }
@keyframes card-arrive { from { opacity: 0; translate: 0 14px; scale: .985; } }
@keyframes when-in { from { opacity: 0; translate: 0 10px; } }
@keyframes privacy-settle { 0% { opacity: 0; translate: 0 -8px; scale: .82; } 55% { opacity: 1; } }
/* With a mouse or trackpad the chosen time travels from the picker into the card instead. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pick-result.is-leaving { view-transition-name: meeting-when; }
  .meeting-card.is-created .mc-when { view-transition-name: meeting-when; }
  ::view-transition-group(meeting-when) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  @supports (view-transition-name: none) {
    .meeting-card.is-created, .meeting-card.is-created .mc-when > span { animation: none; }
  }
}

/* Full: nothing about who is inside, just that both seats are taken. */
.full-state { text-align: center; }
.full-seats { position: relative; display: inline-flex; margin: var(--s2) auto var(--s6); }
.full-seat { width: 44px; height: 44px; border: 3px solid var(--surface); border-radius: 50%; background: var(--navy-900); box-shadow: var(--shadow-sm); animation: seat-in .5s var(--ease-out) both; }
.full-seat + .full-seat { margin-left: -12px; background: var(--primary); animation-delay: .08s; }
.full-count { position: absolute; right: -16px; bottom: -6px; padding: 2px 7px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-size: var(--fs-2xs); font-weight: 700; animation: pop-in .4s var(--ease-out) .3s both; }
.full-state .lead { margin: var(--s2) auto 0; max-width: 34ch; }
.full-state .form { margin-top: var(--s6); }
@keyframes seat-in { from { opacity: 0; translate: 0 6px; } }

/* Copy → tick */
.copy-ico { display: inline-grid; flex: none; width: 16px; height: 16px; }
.copy-ico .icon { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity .2s var(--ease-out), scale .36s var(--ease-out), rotate .36s var(--ease-out); }
.copy-ico .ico-done { opacity: 0; scale: .4; rotate: -35deg; }
.copy-btn.is-copied { border-color: var(--success); background: var(--success); color: #fff; }
.copy-btn.is-copied .ico-copy { opacity: 0; scale: .5; rotate: 25deg; }
.copy-btn.is-copied .ico-done { opacity: 1; scale: 1; rotate: 0deg; }
.copy-btn.is-copied .copy-label { animation: label-swap .3s var(--ease-out); }

/* Motion system ----------------------------------------------------------------------
   One vocabulary everywhere. Hover: a pixel or two up and a deeper shadow. Press: compression.
   Arriving: a few pixels of rise while fading in, details a beat later. State changes: a cross-
   fade, a roll or a settle instead of a jump. Nothing loops except "someone is waiting" and
   spinners. Transforms and opacity only; prefers-reduced-motion switches all of it off (below). */

/* Buttons: hover lifts (not quiet ones), arrows lean the way they point, a sending button keeps
   its size while a spinner takes the label's place, and a swapped label ("Rezervuji…") eases in. */
@media (hover: hover) and (pointer: fine) {
  :where(.btn:not(.btn-quiet):not([data-magnetic]):not([disabled]):not(.is-busy)):hover { transform: translateY(-1px); }
  :where(.btn:not(.btn-quiet):not(.btn-ghost):not(.btn-white):not(.btn-danger):not(.btn-on-dark):not([disabled])):hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 18px -10px rgba(28, 98, 245, .6); }
  :where(.btn-ghost:not([disabled]), .btn-white:not([disabled])):hover { box-shadow: var(--shadow-sm); }
  :where(.btn-dark:not([disabled])):hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 8px 18px -10px rgba(19, 26, 41, .7); }
}
.btn .icon, .link-arrow .icon { transition: transform .3s var(--ease-out), opacity .2s; }
.btn:hover .i-arrow-right, .link-arrow:hover .i-arrow-right { transform: translateX(3px); }
.btn:hover .i-chevron-right { transform: translateX(2px); }
.btn.is-busy::after { animation: spin .7s linear infinite, busy-in .25s var(--ease-out); }
.btn.has-busy-label { animation: label-swap .28s var(--ease-out); }
@keyframes busy-in { from { opacity: 0; scale: .4; } }
@keyframes label-swap { from { opacity: .35; translate: 0 3px; } }

/* Cards that lead somewhere or hold actions answer the pointer with a little depth. */
.post, a.stat, .steps li, .features li { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.next { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post:hover, .next:hover, a.stat:hover, .steps li:hover, .features li:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
}

/* Arriving lists (the feed, a profile's celebrations): each item rises as it fades in when it
   scrolls into view, a beat after the one before; its likes and comments follow. early.js marks
   html.motion-ok before the first paint (so nothing flashes) and app.js reveals items; if app.js
   never runs, everything appears after a few seconds anyway. */
.motion-ok [data-enter] > * { transition: opacity .45s var(--ease-out) var(--enter-delay, 0s), translate .6s var(--ease-out) var(--enter-delay, 0s), transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.motion-ok [data-enter] > :not(.is-in) { opacity: 0; translate: 0 14px; animation: reveal-failsafe .01s 4s forwards; }
.motion-ok [data-enter] > * .post-foot { transition: opacity .4s var(--ease-out) calc(var(--enter-delay, 0s) + .18s), translate .5s var(--ease-out) calc(var(--enter-delay, 0s) + .18s); }
.motion-ok [data-enter] > :not(.is-in) .post-foot { opacity: 0; translate: 0 6px; animation: reveal-failsafe .01s 4s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; translate: 0 0; } }
/* A celebration you have just posted, or a comment you have just written, settles in with a halo. */
.post.is-fresh { animation: fresh-in .7s var(--ease-out) both, fresh-halo 2.6s var(--ease-out) .3s; }
.post.is-fresh .post-foot { animation: rise-in .5s var(--ease-out) .35s both; }
.comment:target { animation: fresh-in .6s var(--ease-out) both, comment-halo 2.4s var(--ease-out) .2s; }
@keyframes fresh-in { from { opacity: 0; translate: 0 16px; scale: .985; } }
@keyframes fresh-halo { 0% { box-shadow: 0 0 0 0 rgba(28, 98, 245, .35), var(--shadow-sm); border-color: var(--primary-edge); } 100% { box-shadow: 0 0 0 14px rgba(28, 98, 245, 0), var(--shadow-sm); } }
@keyframes comment-halo { 0%, 40% { background-color: var(--primary-soft); } 100% { background-color: transparent; } }

/* Numbers that change roll: the old figure leaves upwards, the new one comes from below (like
   counts, the session timer). app.js / session.js build the cells; without them it is plain text. */
.roll { display: inline-flex; }
.roll-cell { display: inline-grid; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.roll-cell > span { grid-area: 1 / 1; transition: translate .42s var(--ease-out), opacity .32s var(--ease-out); }
.roll-cell > .is-entering { opacity: 0; translate: 0 60%; }
.roll-cell > .is-entering.from-above { translate: 0 -60%; }
.roll-cell > .is-leaving { opacity: 0; translate: 0 -60%; }
.roll-cell > .is-leaving.to-below { translate: 0 60%; }

/* Tabs: on wide screens the active background slides to the new tab while the page changes
   (a shared element of the page transition); elsewhere it simply moves. */
.tabs a { position: relative; isolation: isolate; }
.tabs-ink { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--surface); box-shadow: var(--shadow-sm); }
.tabs a[aria-current="page"]:has(.tabs-ink) { background: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tabs-ink { view-transition-name: tabs-ink; }
  ::view-transition-group(tabs-ink) { animation-duration: .38s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
}
.settings-nav a { transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }

/* Something changed since this page was last open (a partner arrived): the card says so once. */
.next.is-changed { animation: booked-glow 2.4s var(--ease-out); }
.next.is-changed .person { animation: rise-in .6s var(--ease-out) .25s both; }
.next.is-changed .chip { animation: state-in .45s var(--ease-out) .1s both; }

@media (hover: none) {
  .slot-tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .tabbar, .site-footer, .consent, .toasts { display: none !important; }
  body { background: #fff; }
}

/* Goals and tasks ------------------------------------------------------------------------
   One checklist everywhere (templates/_tasks.html): the dashboard card, Moje cíle, the lobby,
   the focus room's panel and the end of a session. Same rows, same tokens; in the room the night
   set colours them. Ticked off is green (done), "V sezení" is blue (the main action). The only
   motion: the tick draws, a new row rises in, a deleted one slides out. */
.tasks-panel { display: grid; gap: var(--s3); }
.tasks-panel .icon-btn:hover { background: var(--surface-3); color: var(--text); }
.tasks-status { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.tasks-status:empty { display: none; }
.tasks-status.is-bad { color: var(--danger); font-weight: 500; }
.tasks-empty { margin: 0; }
.tasks-empty[hidden] { display: none; }
div.tasks-empty { display: grid; gap: 4px; padding: var(--s5) var(--s4); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); text-align: center; }
div.tasks-empty p { margin: 0; }
.tasks-empty .empty-title { color: var(--text); font-weight: 600; }

/* Adding: one field with a plus, the button inside its edge. */
.task-add { display: flex; align-items: center; gap: var(--s2); min-width: 0; padding: 4px 4px 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); }
.task-add:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.task-add-icon { display: grid; flex: none; place-items: center; color: var(--text-3); }
.task-add-icon .icon { width: 18px; height: 18px; }
.task-add input[type="text"] { flex: 1; min-width: 0; min-height: 40px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; font-size: var(--fs-sm); }
.task-add input[type="text"]:focus { box-shadow: none; }
.task-add .btn { flex: none; min-height: 36px; }
body.room .task-add { background: var(--navy-950); border-color: var(--navy-600); }

/* Rows */
.tasks { display: grid; margin: 0; padding: 0; list-style: none; }
.tasks:empty { display: none; }
.task { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 32px; align-items: start; gap: 2px var(--s3); padding: 9px 0; border-top: 1px solid var(--border); }
.tasks > .task:first-child { border-top: 0; }
.task-check, .task-pick-form { margin: 0; }
.task-tick { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; padding: 0; border: 2px solid var(--control); border-radius: 7px; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform var(--dur-fast); }
.task-tick:hover { border-color: var(--success); }
.task-tick:active { transform: scale(.92); }
.task-tick:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check-mark { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .25s var(--ease-out); }
.task-tick[aria-checked="true"] { border-color: var(--success); background: var(--success); }
body.room .task-tick[aria-checked="true"] { color: var(--navy-950); }
.task-tick[aria-checked="true"] .check-mark { stroke-dashoffset: 0; }
.task-tick.is-busy { opacity: .7; }
.task-main { min-width: 0; padding-top: 2px; }
.task-text { margin: 0; color: var(--text); font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; transition: color .25s var(--ease-out); }
.task.is-done .task-text { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.task-meta { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--text-3); font-size: var(--fs-2xs); }
.task-meta .icon { width: 13px; height: 13px; }
.task-pick { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-full); background: transparent; color: var(--text-2); font: 600 var(--fs-2xs) var(--font); white-space: nowrap; cursor: pointer; transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.task-pick .icon { width: 13px; height: 13px; }
.task-pick:hover { border-color: var(--primary-edge); color: var(--primary-text); }
.task-pick[aria-pressed="true"] { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--primary-text); }
[data-task-list="session"] .task-pick-form { display: none; }   /* everything here is in the session */
.task:not(:has(.task-pick-form)) { grid-template-columns: auto minmax(0, 1fr) 32px; }
/* The drawer under a row (text, attachments, delete): its button stays at the row's end. */
.task-more { grid-column: 1 / -1; }
.task-more > summary { position: absolute; top: 5px; right: 0; margin: 0; list-style: none; }
.task-more > summary::-webkit-details-marker { display: none; }
.task-more[open] > summary { background: var(--surface-3); color: var(--text); }
.task-drawer { display: grid; gap: var(--s3); margin: var(--s2) 0 var(--s1) 36px; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.task-edit { display: flex; gap: var(--s2); }
.task-edit input[type="text"] { flex: 1; min-width: 0; min-height: 38px; padding-block: 6px; font-size: var(--fs-sm); }
.task-edit .btn { min-height: 38px; }
.task-drawer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.task-drawer .link-button.small, .task-files .link-button.small { font-size: var(--fs-xs); }

/* Attachments: the owner's own material, nothing Syncify checks. */
.task-files { display: grid; gap: var(--s2); }
.file-list { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.file-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s3); }
.file-preview { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-3); color: var(--text-2); }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-preview:hover { border-color: var(--border-strong); }
.file-icon { display: grid; place-items: center; }
.file-icon .icon { width: 24px; height: 24px; }
.file-body { min-width: 0; }
.file-body .file-name { margin: 0; overflow: hidden; color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-size { margin: 0; color: var(--text-3); font-size: var(--fs-2xs); }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s3); }
.file-actions form { margin: 0; }
.file-pick { position: relative; cursor: pointer; }
.attach > summary { list-style: none; cursor: pointer; }
.attach > summary::-webkit-details-marker { display: none; }
.attach[open] > .attach-toggle { color: var(--text); }
.attach-form { display: grid; gap: var(--s2); margin-top: var(--s2); }
.attach-form input[type="file"] { max-width: 100%; color: var(--text-2); font: var(--fs-xs) var(--font); }
.attach-form input[type="file"]::file-selector-button { margin-right: var(--s3); padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: 600 var(--fs-xs) var(--font); cursor: pointer; }
.upload-state { display: flex; align-items: center; gap: var(--s3); margin: 0; color: var(--text-2); font-size: var(--fs-xs); }
.upload-state[hidden] { display: none; }
.upload-bar { flex: none; width: 96px; height: 6px; overflow: hidden; border-radius: var(--r-full); background: var(--surface-3); }
.upload-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .2s linear; }
.upload-state.is-bad { color: var(--danger); font-weight: 500; }
.upload-state.is-bad .upload-bar { display: none; }
.upload-state.is-done { color: var(--success); }
.upload-state.is-done .upload-bar { display: none; }

/* Folds: finished tasks, the other unfinished ones. */
.tasks-done, .tasks-other { margin: 0; }
.tasks-done[hidden], .tasks-other[hidden] { display: none; }
.tasks-done > summary, .tasks-other > summary { display: flex; align-items: center; gap: var(--s2); min-height: 40px; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; list-style: none; cursor: pointer; }
.tasks-done > summary::-webkit-details-marker, .tasks-other > summary::-webkit-details-marker { display: none; }
.tasks-done > summary > .icon:first-child { width: 16px; height: 16px; color: var(--success); }
.tasks-done > summary:hover, .tasks-other > summary:hover { color: var(--text); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }
.fold-icon { width: 16px; height: 16px; margin-left: auto; color: var(--text-3); transition: transform var(--dur) var(--ease-out); }
details[open] > summary .fold-icon { transform: rotate(180deg); }
.tasks-more-link { margin: var(--s1) 0 0; }
.task-undo { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: var(--s2) var(--s3); border: 1px solid var(--primary-edge); border-radius: var(--r-md); background: var(--primary-soft); font-size: var(--fs-sm); }
.task-undo .icon { width: 16px; height: 16px; }
.task-undo .link-button { margin-left: auto; }
.tasks-done-section { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--border); }
.tasks-done-section h2 { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s1); font-size: var(--fs-lg); }
.tasks-done-section h2 .icon { width: 18px; height: 18px; color: var(--success); }
.tasks-done-section > p { margin: 0 0 var(--s2); }

/* Progress of a session's tasks: a green pill, and a thin bar in the room. */
.goals-progress { display: inline-flex; align-items: center; margin: 0; padding: 2px 10px; border-radius: var(--r-full); background: var(--success-soft); color: var(--success); font-size: var(--fs-2xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goals-meter { display: block; height: 4px; margin: 0 0 var(--s3); overflow: hidden; border-radius: var(--r-full); background: var(--surface-3); }
.goals-meter i { display: block; height: 100%; border-radius: inherit; background: var(--success); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .6s var(--ease-out); }
.tasks-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s2); }
.tasks-head h2 { display: flex; align-items: center; gap: var(--s2); margin: 0; }

/* The dashboard: goals beside the next session, then the people to work with again. */
.dash-grid { display: grid; gap: var(--s5); margin: var(--s6) 0 var(--s10); }
/* Goals beside the next session: both columns end at the same line, the card grows with it. */
@media (min-width: 1024px) { .dash-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; gap: var(--s6); } }
.goals-card { display: grid; align-content: start; gap: var(--s3); }
.goals-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.goals-head h2 { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-xl); }
.goals-head h2 .icon { width: 20px; height: 20px; color: var(--primary-text); }
.goals-sub { margin: -4px 0 var(--s1); color: var(--text-3); font-size: var(--fs-sm); }
.dash-label { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.dash-label .icon { width: 16px; height: 16px; }
.dash-next { display: grid; align-content: start; min-width: 0; }
.dash-next > .empty-state { padding-block: var(--s8); }
@media (min-width: 1024px) {
  .dash-next .next { grid-template-columns: auto minmax(0, 1fr); gap: var(--s5) var(--s6); padding: var(--s6); }
  .dash-next .next .session-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .dash-next .next-time { padding-right: var(--s6); }
}
.dash-more-picks { margin-top: var(--s4); }
.dash-next .start-card { padding: var(--s6); }
.people-compact > li { padding: 10px var(--s4); }
.posts-compact .post { padding: var(--s4) var(--s5); }
.posts-compact .post-foot { margin-top: var(--s3); }
.goals-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.goals-stats strong { margin-left: 4px; color: var(--text); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.goals-next { margin: 0 0 var(--s5); }
.goals-next .link-arrow { margin-left: auto; white-space: nowrap; }

/* The lobby and the end of a session */
.lobby-tasks .tasks-head h2 { font-size: var(--fs-lg); }
.goal-from-tasks { margin-top: var(--s2); }
.after-tasks .tasks-head h2 { font-size: var(--fs-lg); }
.after-tasks .tasks-head h2 .icon { width: 18px; height: 18px; color: var(--success); }
.after-tasks > p { margin: 0 0 var(--s2); }

/* The focus room: a fold in the panel (closed on phones and tablets, open on desktops). */
.side-goals .goals-fold > summary { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); list-style: none; cursor: pointer; }
.side-goals .goals-fold > summary::-webkit-details-marker { display: none; }
.side-goals .goals-fold > summary .side-title { margin: 0; }
.side-goals .goals-fold > summary .goals-progress { margin-left: auto; }
.side-goals .goals-fold > summary .fold-icon { margin-left: 0; }
.side-goals .goals-fold:not([open]) > summary { margin-bottom: 0; }
.side-goals .side-note { margin-bottom: var(--s2); }
.side-goals .task-drawer { margin-left: 0; }

/* Sharing after a session: pick, see who sees it, preview, publish. */
.share-card { display: grid; gap: var(--s5); }
.share-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 4px; font-size: var(--fs-lg); }
.share-head h2 .icon { width: 20px; height: 20px; color: var(--primary-text); }
.share-head h2 .muted { font-size: var(--fs-sm); font-weight: 400; }
.share-head p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.share-picks { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.share-picks legend { margin-bottom: var(--s2); padding: 0; color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.share-group { display: grid; gap: 6px; }
.share-pick { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color var(--dur), background-color var(--dur); }
.share-pick:hover { border-color: var(--border-strong); }
.share-pick:has(input:checked) { border-color: var(--primary-edge); background: var(--primary-soft); }
.share-pick:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.share-pick input { flex: none; }
.share-pick-text { display: grid; min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.share-file { margin-left: var(--s8); }
.share-file-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.share-thumb { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-3); }
.file-icon-s .icon { width: 20px; height: 20px; }
.share-audience { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--fs-sm); }
.share-audience > .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--text-3); }
.share-audience p { margin: 0; }
.share-preview-label { margin: 0 0 var(--s2); color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-preview { border-style: dashed; box-shadow: none; }
.post-preview .post-head { margin-bottom: var(--s3); }
.share-preview-empty { margin: var(--s2) 0 0; }
.share-preview-empty[hidden], .post-preview [hidden] { display: none; }

/* What a post shows besides its words: the ticked tasks and attachments the author picked. */
.post-tasks { margin-top: var(--s3); }
.post-text + .post-tasks { margin-top: var(--s4); }
.post-tasks-label { margin: 0 0 6px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.post-task-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.post-task-list li { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.post-task-list .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--success); }
.post-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--s2); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.post-files-1 { grid-template-columns: minmax(0, 1fr); }
.post-files-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-files[hidden] { display: none; }
/* A photo keeps its own shape (width and height come from the file); very tall ones stop at a
   sensible height and show whole, letterboxed on the quiet surface. */
.post-file { display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-3); cursor: zoom-in; }
.post-file img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70vh, 560px); transition: transform .4s var(--ease-out); }
.post-files-2 .post-file img, .post-files-3 .post-file img { max-height: 320px; }
.post-file:hover img { transform: scale(1.01); }
@media (max-width: 480px) { .post-files-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-note { margin: var(--s3) 0 0; color: var(--text-3); font-size: var(--fs-2xs); }
.post-note[hidden] { display: none; }
/* The whole card of a post in the feed opens its page (app.js); its controls keep their own. */
.post.is-linked { cursor: pointer; transition: border-color var(--dur), box-shadow var(--dur); }
.post.is-linked:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.post.is-linked :is(a, button, input, textarea, label, summary, form) { cursor: auto; }
.post.is-linked :is(a, button, summary, label) { cursor: pointer; }
.post.is-linked .post-file { cursor: zoom-in; }

/* The larger view of a photo. */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: var(--s4); border: 0; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(9 12 20 / .88); }
.lightbox-img { max-width: 100%; max-height: calc(100dvh - 2 * var(--s4) - 48px); border-radius: var(--r-md); object-fit: contain; }
.lightbox-btn { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background var(--dur); }
.lightbox-btn:hover { background: rgb(255 255 255 / .24); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-btn[hidden] { display: none; }
.lightbox-close { top: max(var(--s4), env(safe-area-inset-top)); right: max(var(--s4), env(safe-area-inset-right)); }
.lightbox-prev { top: 50%; left: max(var(--s3), env(safe-area-inset-left)); transform: translateY(-50%); }
.lightbox-next { top: 50%; right: max(var(--s3), env(safe-area-inset-right)); transform: translateY(-50%); }
.lightbox-count { position: fixed; bottom: max(var(--s4), env(safe-area-inset-bottom)); left: 50%; margin: 0; color: rgb(255 255 255 / .8); font-size: var(--fs-sm); transform: translateX(-50%); }
.lightbox-count[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { html.motion-ok .lightbox[open] { animation: fade-in .2s var(--ease-out); } }

/* How many tasks are saved of the most allowed (tasks.usage). */
.task-usage { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-2xs); }
.task-usage.is-full { color: var(--warning); font-weight: 600; }
.task-add.is-full { opacity: .7; }

.toast-action { flex: none; min-height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--primary-text); font: 600 var(--fs-sm) var(--font); cursor: pointer; }
.toast-action:hover { background: var(--primary-soft); }

@media (prefers-reduced-motion: no-preference) {
  .task.is-new { animation: rise-in .4s var(--ease-out); }
  .task.is-leaving { opacity: 0; transform: translateX(10px); transition: opacity .2s var(--ease-in), transform .2s var(--ease-in); }
  .task.just-done .task-tick { animation: task-tick-pop .45s var(--ease-snap); }
  .task.just-done .check-mark { transition-duration: .35s; transition-delay: .05s; }
  .goals-progress.is-new { animation: task-tick-pop .45s var(--ease-snap); }
  .file-preview.is-new { animation: rise-in .4s var(--ease-out); }
  .task-more[open] .task-drawer { animation: rise-in .25s var(--ease-out); }
}
@keyframes task-tick-pop { 40% { transform: scale(1.14); } 100% { transform: none; } }
@media (max-width: 559px) {
  .task-drawer { margin-left: 0; }
  .task-add .btn { padding-inline: 12px; }
  .share-file { margin-left: var(--s4); }
}

/* The landing: a longer headline (three short sentences) and the illustrative previews. */
.story-hero h1.hero-long { max-width: 18ch; font-size: clamp(2.125rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.06; }
.story-live .story-hero h1.hero-long { font-size: clamp(2rem, min(1rem + 3.2vw, 7.4vh), 3.75rem); }
.hero-long .hero-accent { display: inline-block; }
.preview-note { display: flex; align-items: flex-start; gap: var(--s2); max-width: 640px; margin: calc(var(--s10) * -1 + var(--s4)) 0 var(--s8); color: var(--text-3); font-size: var(--fs-sm); }
.preview-note .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.previews { display: grid; gap: var(--s6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) { .previews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
.preview-card { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s3); min-width: 0; }
.preview-step { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-md); font-weight: 600; }
.preview-step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: var(--fs-xs); }
.preview-frame { padding: var(--s5); box-shadow: var(--shadow-md); pointer-events: none; user-select: none; }
.preview-frame .post-head { margin-bottom: var(--s3); }
.preview-title { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-sm); font-weight: 600; }
.preview-title .icon { width: 16px; height: 16px; color: var(--primary-text); }
.preview-title .goals-progress { margin-left: auto; }
.preview-tasks .task { grid-template-columns: auto minmax(0, 1fr) auto; }
.preview-caption { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.preview-room { --surface-3: var(--navy-700); --border: var(--navy-700); --control: var(--navy-500); --text: #eef2f8; --text-3: #9aa6bd; --success: #6fd3a2; --success-soft: rgba(19, 145, 90, .16); --primary-text: var(--blue-300); border-color: var(--navy-700); background: var(--navy-800); color: var(--text); }
.preview-room .task-tick[aria-checked="true"] { color: var(--navy-950); }
.preview-room-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.preview-room-stage { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-300); font-size: var(--fs-xs); font-weight: 600; }
.preview-room-stage .icon { width: 14px; height: 14px; }
.preview-room-top strong { color: #fff; font-size: var(--fs-xl); letter-spacing: -.02em; }
.preview-room-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: var(--s4); }
.preview-room-tile { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 6px 8px; border-radius: var(--r-md); background: linear-gradient(160deg, #2a3756, #1b2333); color: #dbe3f1; font-size: var(--fs-2xs); font-weight: 600; }
.preview-room-tile.is-you { background: linear-gradient(160deg, #2f5bd1, #1b2f6b); }
.preview-room-tile .icon { width: 12px; height: 12px; }

/* The feed sends people back to their own goals: a card at the top, a line at the end of a page. */
.feed-goals { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s6); padding: var(--s4) var(--s5); border: 1px solid var(--primary-edge); border-radius: var(--r-xl); background: var(--primary-soft); color: var(--text); text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.feed-goals:hover { border-color: var(--primary); }
.feed-goals > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.feed-goals .icon-badge { flex: none; }
.feed-goals-arrow { flex: none; width: 18px; height: 18px; color: var(--primary-text); transition: transform var(--dur) var(--ease-out); }
.feed-goals:hover .feed-goals-arrow { transform: translateX(3px); }
.feed-end { display: grid; justify-items: center; gap: var(--s4); margin-top: var(--s8); text-align: center; }
.feed-end p { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.feed-end p .icon { width: 16px; height: 16px; }
.file-card.is-pending .file-preview, .file-card.is-failed .file-preview { color: var(--text-3); }
.file-card.is-pending .file-preview .icon, .file-card.is-failed .file-preview .icon { width: 20px; height: 20px; }
.file-card.is-failed .file-size { color: var(--danger); }
.privacy-tasks { display: grid; gap: 4px; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); }
.privacy-tasks p { margin: 0; }
.privacy-tasks .icon { width: 16px; height: 16px; color: var(--primary-text); }

/* Rewards ---------------------------------------------------------------------------------
   Owner's request, 23 October 2026 (rewards.py, templates/_rewards.html, README "Rewards").
   Calm on purpose: the same cards, chips and blue as everything else, no gold, no trophies, no
   confetti. Every bar is a native <progress> beside the same numbers in words; done and not
   done differ in shape too (a filled dot or a ring, a solid badge or a dashed one), never only
   in colour. The only motion: the end of a session's card arrives once, a new level's bar fills,
   new badges settle in. All of it off under reduced motion (the rule above). */
.meter {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--primary);
  overflow: hidden;
}
.meter::-webkit-progress-bar { border-radius: var(--r-full); background: var(--surface-3); }
.meter::-webkit-progress-value { border-radius: var(--r-full); background: var(--primary); }
.meter::-moz-progress-bar { border-radius: var(--r-full); background: var(--primary); }
.meter-s { height: 6px; }

.lvl { display: grid; gap: 8px; }
.lvl-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin: 0; }
.lvl-name { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; }
.lvl-xp { color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.lvl-next { margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

.week-dots { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.week-dots i { width: 12px; height: 12px; border: 1.5px solid var(--border-strong); border-radius: 50%; }
.week-dots i.is-on { border-color: var(--primary); background: var(--primary); }

.badge-icon { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-edge); }
.badge-icon .icon { width: 20px; height: 20px; }
.badge-icon.is-locked { border: 1.5px dashed var(--border-strong); background: transparent; color: var(--text-3); box-shadow: none; }
.badge-earned { color: var(--text-3); font-size: var(--fs-xs); }

/* The account menu and the dashboard card show the coins beside the way to the rewards. */
.menu-coins { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.menu-item .menu-coins .icon { width: 14px; height: 14px; }
.coin-count { display: inline-flex; align-items: center; gap: 4px; margin-right: var(--s2); padding: 1px 8px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text); font-weight: 600; }
.coin-count .icon { width: 14px; height: 14px; color: var(--text-2); }

/* The dashboard: next session and progress share the right-hand column. */
.dash-side { display: grid; align-content: start; gap: var(--s5); min-width: 0; }
.reward-dash { display: grid; gap: var(--s4); }
.reward-dash .goals-head h2 { font-size: var(--fs-lg); }
.reward-dash-intro { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.reward-dash-week { display: grid; gap: var(--s2); }
.reward-dash-week p { margin: 0; font-size: var(--fs-sm); }
.reward-dash-next { display: flex; align-items: center; gap: var(--s3); margin: 0; padding-top: var(--s4); border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.reward-dash-next .badge-icon { width: 32px; height: 32px; }
.reward-dash-next .badge-icon .icon { width: 16px; height: 16px; }

/* /odmeny */
.rw-overview { display: grid; gap: var(--s4); margin-bottom: var(--s3); }
@media (min-width: 760px) { .rw-overview { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); } }
.rw-stat { display: grid; align-content: start; gap: var(--s3); }
.rw-label { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.rw-label .icon { width: 16px; height: 16px; color: var(--primary-text); }
.rw-week, .rw-coins { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.rw-week > strong, .rw-coins > strong { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.rw-sub { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.rw-total { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.rw-empty { margin-top: var(--s8); }
.rewards > .panel { margin-top: var(--s10); }
#tydenni-cil .form + .hint { margin-top: var(--s3); }
.rw-credit { margin: var(--s12) 0 0; color: var(--text-3); font-size: var(--fs-xs); }

.goal-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 52px)); gap: var(--s2); margin: 0; padding: 0; border: 0; }
@media (max-width: 479px) { .goal-pick { gap: 6px; } }
.goal-opt { position: relative; display: grid; cursor: pointer; }
.goal-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.goal-opt span { display: grid; place-items: center; min-width: 0; height: 44px; padding: 0 var(--s3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform var(--dur-fast) var(--ease-out); }
.goal-opt:hover span { border-color: var(--text-3); }
.goal-opt input:active + span { transform: scale(.96); }
.goal-opt input:checked + span { border-color: var(--text); background: var(--text); color: var(--surface); }
.goal-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.badge-grid { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badge-tile { display: flex; align-items: flex-start; gap: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.badge-tile.is-on { border-color: var(--primary-edge); }
.badge-body { display: grid; flex: 1; gap: 6px; min-width: 0; }
.badge-body h3 { margin: 0; font-size: var(--fs-base); }
.badge-req { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.badge-date { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--success); font-size: var(--fs-xs); font-weight: 600; }
.badge-date .icon { width: 14px; height: 14px; }
.badge-progress { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }

.coin-balance { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--fs-md); }
.coin-balance .icon { width: 18px; height: 18px; color: var(--text-2); }

.ledger { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); list-style: none; }
.ledger li { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s5); border-top: 1px solid var(--border); }
.ledger li:first-child { border-top: 0; }
.ledger-what { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); }
.ledger-amounts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px var(--s3); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.ledger-amounts .is-minus { color: var(--text-3); }

/* Looks: a frame round the photo or initial, a quiet pattern behind the top of the profile.
   Patterns: Hero Patterns by Steve Schoger, CC BY 4.0 (static/brand/accents/ATTRIBUTION.md). */
.frame { position: relative; display: inline-grid; flex: none; place-items: center; border-radius: 50%; }
.frame > .avatar { box-shadow: 0 0 0 2px var(--surface); }
.frame-mist { padding: 5px; background: #b7c5dd; }
.frame-dawn { padding: 5px; background: linear-gradient(140deg, #f1dcb2 0%, #f3c9a0 28%, #8fb1ff 68%, #1c62f5 100%); }
.frame-orbit { padding: 7px; }
.frame-orbit::before, .frame-orbit::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.frame-orbit::before { inset: 0; border: 1.5px solid var(--primary); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--primary-edge); }
.frame-orbit::after { top: 9%; right: 9%; width: 9px; height: 9px; border: 2px solid var(--surface); background: var(--primary); translate: 50% -50%; }
.profile-head > .frame { align-self: start; justify-self: start; margin: -5px; }

.profile-head.has-accent { padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); background-color: var(--surface); background-repeat: repeat; }
@media (max-width: 639px) { .profile-head.has-accent { padding: var(--s5); border-radius: var(--r-lg); } }
.accent-dots { background-image: url("../brand/accents/dots.svg"); }
.accent-wiggle { background-image: url("../brand/accents/wiggle.svg"); }
.accent-circles { background-image: url("../brand/accents/circles.svg"); }

.profile-badges { margin-top: var(--s6); }
.badge-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.badge-row li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.badge-row li > span:last-child, .reward-badges li > span:last-child { display: grid; min-width: 0; }
.badge-row .badge-icon { width: 34px; height: 34px; }
.badge-row .badge-icon .icon { width: 17px; height: 17px; }
.profile-badges-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--s5) 0 0; }
.profile-badges-empty .icon { width: 16px; height: 16px; }

/* The end of a session (night colours): one card, then the sharing step under it. */
.after-stack { display: grid; gap: var(--s4); }
.reward-card { display: grid; gap: var(--s4); }
.reward-card[hidden] { display: none; }
.reward-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.reward-head h2 { display: flex; align-items: center; gap: var(--s2); margin: 0; font-size: var(--fs-lg); }
.reward-head h2 .icon { width: 18px; height: 18px; color: var(--primary-text); }
.reward-close { margin: -6px -8px -6px 0; }
.reward-earned { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin: 0; }
.reward-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid var(--primary-edge); border-radius: var(--r-full); background: var(--primary-soft); color: var(--text); font-weight: 600; }
.reward-chip .icon { width: 15px; height: 15px; color: var(--primary-text); }
.reward-minutes { color: var(--text-3); font-size: var(--fs-sm); }
.reward-news { display: flex; align-items: center; gap: var(--s2); margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--primary-soft); }
.reward-news .icon { flex: none; width: 18px; height: 18px; color: var(--primary-text); }
.reward-week { display: grid; gap: var(--s2); }
.reward-week-line { margin: 0; font-size: var(--fs-sm); }
.reward-kind { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.reward-badges { padding-top: var(--s4); border-top: 1px solid var(--border); }
.reward-badges-title { margin: 0 0 var(--s3); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.reward-badges ul { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.reward-badges li { display: flex; align-items: center; gap: var(--s3); }
.reward-more { margin: 0; }
.reward-none { display: flex; align-items: flex-start; justify-content: center; gap: var(--s2); text-align: left; }
.reward-none .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }

@keyframes reward-arrive { from { opacity: 0; translate: 0 10px; } }
@keyframes reward-glow { 0% { box-shadow: 0 0 0 0 rgba(143, 177, 255, .4); } 100% { box-shadow: 0 0 0 16px rgba(143, 177, 255, 0); } }
@keyframes badge-settle { from { opacity: 0; scale: .6; } }
@keyframes dot-settle { 50% { scale: 1.35; } }
.motion-ok .reward-card { animation: reward-arrive .55s var(--ease-out) .2s both; }
.motion-ok .reward-card.is-news { animation: reward-arrive .55s var(--ease-out) .2s both, reward-glow 1.4s var(--ease-out) .8s; }
.motion-ok .reward-card .reward-badges .badge-icon { animation: badge-settle .5s var(--ease-snap) .9s both; }
.motion-ok .reward-card .reward-badges li:nth-child(2) .badge-icon { animation-delay: 1s; }
.motion-ok .reward-card .reward-badges li:nth-child(3) .badge-icon { animation-delay: 1.1s; }
.motion-ok .reward-card .reward-badges li:nth-child(n+4) .badge-icon { animation-delay: 1.2s; }
.motion-ok .reward-week.is-reached .week-dots i.is-on { animation: dot-settle .45s var(--ease-out) both; animation-delay: .9s; }
.motion-ok .reward-week.is-reached .week-dots i.is-on:nth-child(2) { animation-delay: .97s; }
.motion-ok .reward-week.is-reached .week-dots i.is-on:nth-child(3) { animation-delay: 1.04s; }
.motion-ok .reward-week.is-reached .week-dots i.is-on:nth-child(n+4) { animation-delay: 1.11s; }
.reward-card.is-closing { opacity: 0; translate: 0 -6px; transition: opacity .2s var(--ease-in), translate .2s var(--ease-in); }

/* Level and XP beside a name (profile) or a title (Přehled). */
.chip-level { gap: 6px; border-color: var(--primary-edge); background: var(--primary-soft); color: var(--text); font-size: var(--fs-xs); text-decoration: none; }
.chip-level .icon { color: var(--primary-text); }
.chip-level strong { font-weight: 700; }
.chip-level-xp { padding-left: 6px; border-left: 1px solid var(--primary-edge); color: var(--text-2); font-weight: 600; }
a.chip-level { transition: border-color var(--dur), background-color var(--dur); }
a.chip-level:hover { border-color: var(--primary); }
a.chip-level:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dash-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.dash-title h1 { margin: 0; }

/* Profile style: names, titles, the profile's background, the store preview -----------------
   Owner's request, 23 October 2026 (looks.py, templates/shop.html, static/js/style.js). A name
   keeps its text and its links; only its colour and font change. The colours themselves come from
   the page's one nonce'd <style> (--nm1: a solid colour, also the fallback; --nmg: the gradient's
   stops), all checked for 4.5:1 on every light surface. Gradients without background-clip support,
   forced colours and the night theme fall back to a plain readable colour. The animated gradient
   moves only on a profile's own heading (nm-live), slowly, with CSS alone, and stands still under
   reduced motion, in lists, comments and during a running focus session. */
@font-face { font-family: "Syncify Geometric"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/name-geometric.woff") format("woff"); }
@font-face { font-family: "Syncify Rounded"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/name-rounded.woff") format("woff"); }
@font-face { font-family: "Syncify Serif"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/name-serif.woff") format("woff"); }
@font-face { font-family: "Syncify Mono"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/name-mono.woff") format("woff"); }
.nm-f-geometric { font-family: "Syncify Geometric", var(--font); letter-spacing: 0; }
.nm-f-rounded { font-family: "Syncify Rounded", var(--font); letter-spacing: 0; }
.nm-f-serif { font-family: "Syncify Serif", Georgia, "Times New Roman", serif; letter-spacing: 0; }
.nm-f-mono { font-family: "Syncify Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.02em; }

.nm-color, .nm-grad, .nm-anim { color: var(--nm1); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nm-grad, .nm-anim {
    background-image: linear-gradient(90deg, var(--nmg));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}
/* Only where it may move, with motion allowed: the image twice as wide, drifting slowly sideways
   (background-position only: no size change, no layout change, no flashing). Otherwise, reduced
   motion included, exactly the static gradient of the same colours. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .motion-ok .nm-anim.nm-live { background-size: 200% 100%; background-repeat: repeat-x; animation: nm-flow 24s linear infinite; }
  }
}
@keyframes nm-flow { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }
@media (forced-colors: active) {
  .nm { color: inherit !important; -webkit-text-fill-color: currentColor !important; background: none !important; animation: none !important; }
}
/* The night colours (the end of a session): every name in the plain colour, the font kept. */
body.room .nm { color: inherit; -webkit-text-fill-color: currentColor; background: none; animation: none; }

/* A bought title: words in quotes, no icon or badge shape, so it never reads as an earned badge. */
.name-title { color: var(--text-2); font-size: var(--fs-sm); font-style: italic; font-weight: 500; overflow-wrap: anywhere; }
.name-title::before { content: "\201E"; }
.name-title::after { content: "\201C"; }
.profile-title { display: block; margin: -2px 0 6px; }
.post-title { display: block; margin-top: 2px; font-size: var(--fs-xs); }
.profile-name h1 { min-width: 0; overflow-wrap: anywhere; }

/* The profile page's own background, behind the header and the cards (the rest of the app keeps
   the theme). Cards stay 90 % opaque on it, so reading stays comfortable. */
.profile-main.has-bg { background: var(--pbg); --surface: rgba(255, 255, 255, .9); --border: rgba(19, 26, 41, .09); }
.profile-main.has-bg .profile-head.has-accent, .profile-head.is-card { background-color: rgba(255, 255, 255, .74); }
.profile-head.is-card { padding: var(--s6); border: 1px solid var(--border); border-radius: var(--r-xl); }
@media (max-width: 639px) { .profile-head.is-card { padding: var(--s5); border-radius: var(--r-lg); } }

/* The preview of the store (/obchod) and the settings' colour forms. */
@media (min-width: 900px) { .style-preview-wrap { position: sticky; top: calc(var(--header-h) + var(--s4)); } }
.style-preview-wrap { display: grid; gap: var(--s2); min-width: 0; }
/* Narrow screens: the preview stays in view (compact) while the choices scroll under it. */
@media (max-width: 899px) {
  .style-preview-wrap { position: sticky; top: calc(var(--header-h) + var(--s2)); z-index: 5; margin-inline: calc(var(--s2) * -1); padding: var(--s2); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
  .style-preview .sp-card { display: none; }
  .style-preview { grid-column: 1 / -1; padding: var(--s2); }
  .style-preview-wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s2); }
  .style-preview-wrap [data-preview-reset] { grid-column: 2; grid-row: 1; }
  .style-preview-label { grid-column: 1; grid-row: 1; min-width: 0; }
  .style-preview-state { flex-basis: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.style-preview-wrap .btn { justify-self: start; }
.style-preview-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.style-preview-state { color: var(--text-3); font-size: var(--fs-xs); font-weight: 400; }
.style-preview { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); }
.style-preview.has-bg { background: var(--pbg); }
.style-preview.has-bg .sp-head, .style-preview.has-bg .sp-card { --surface: rgba(255, 255, 255, .9); }
.sp-head { display: flex; align-items: center; gap: var(--s3); min-width: 0; padding: var(--s3); border: 1px solid transparent; border-radius: var(--r-lg); }
.sp-head.has-accent, .sp-head.is-card { border-color: var(--border); background-color: var(--surface); background-repeat: repeat; }
.style-preview.has-bg .sp-head.has-accent, .style-preview.has-bg .sp-head.is-card { background-color: rgba(255, 255, 255, .74); }
.sp-frame { display: inline-grid; flex: none; place-items: center; border-radius: 50%; }
.sp-id { display: grid; gap: 2px; min-width: 0; }
.sp-name { font-size: var(--fs-lg); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sp-title { font-size: var(--fs-xs); }
.sp-handle { color: var(--text-3); font-size: var(--fs-xs); }
.sp-card { display: grid; gap: 6px; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.sp-card span { height: 8px; border-radius: 4px; background: var(--surface-3); }
.sp-card span:nth-child(2) { width: 72%; }
.sp-card span:nth-child(3) { width: 46%; }


.anim-form { margin-top: var(--s4); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); }
.anim-form fieldset { display: grid; gap: var(--s3); min-width: 0; margin: 0; padding: 0; border: 0; }
.anim-form legend { margin-bottom: 4px; padding: 0; font-size: var(--fs-sm); font-weight: 600; }
.anim-presets, .bg-presets { display: flex; flex-wrap: wrap; gap: var(--s2); }
.anim-preset { min-height: 40px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-full); background: var(--surface); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; transition: border-color var(--dur); }
.anim-preset:hover, .bg-preset:hover { border-color: var(--text-3); }
.anim-preset:focus-visible, .bg-preset:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.anim-colors { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.color-field { display: grid; gap: 4px; color: var(--text-2); font-size: var(--fs-xs); }
.color-field[hidden] { display: none; }
.color-field input[type="color"] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--control); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.color-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check-line { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; font-size: var(--fs-sm); }
.bg-form { display: grid; gap: var(--s4); }
.bg-custom { display: grid; gap: var(--s3); }
.bg-custom[hidden] { display: none; }
.bg-preset { display: grid; align-items: end; width: 104px; height: 56px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--pbg); color: var(--text-2); font: 600 var(--fs-xs)/1.1 var(--font); text-align: left; cursor: pointer; transition: border-color var(--dur); }
.settings-style-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); margin: 0 0 var(--s2); font-size: var(--fs-lg); }
/* The background reaches the footer (no grey band between them). */
.profile-main.has-bg { padding-bottom: var(--s16); }
body:has(.profile-main.has-bg) .site-footer { margin-top: 0; }

/* „Omezit animace“ (users.reduce_motion → html.reduce-motion): the same as the system's reduced-
   motion setting above, for this account on every device. early.js leaves html.motion-ok off too,
   so effects show their still version. */
html.reduce-motion { scroll-behavior: auto !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.reduce-motion::view-transition-group(*), html.reduce-motion::view-transition-old(*), html.reduce-motion::view-transition-new(*) { animation: none !important; }

/* Store and effects -----------------------------------------------------------------------
   Owner's request, 23 October 2026 (shop.py, templates/shop.html, _shop.html, static/js/style.js;
   README "Store"). Effects are CSS only: transforms and opacity (the sheen moves a background, like
   the animated gradient). They loop only with html.motion-ok and no reduced-motion preference, only
   where a template says fx-live (a profile's own heading, the store's preview), stop off screen
   (fx-off) and in a hidden tab (html.fx-hidden, app.js); everywhere else they stand still. */
[data-fx].fx-off, [data-fx].fx-off *, [data-fx].fx-off::before, [data-fx].fx-off::after,
[data-fx].fx-off *::before, [data-fx].fx-off *::after,
html.fx-hidden [data-fx], html.fx-hidden [data-fx] *, html.fx-hidden [data-fx]::before, html.fx-hidden [data-fx]::after,
html.fx-hidden [data-fx] *::before, html.fx-hidden [data-fx] *::after { animation-play-state: paused !important; }

/* Avatar effects (in the frame's place). Still: the light stays where it is. */
.fx-frame-glow { padding: 5px; isolation: isolate; }
.fx-frame-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #dfe8fd 0deg, #bcd0fd 60deg, #1c62f5 105deg, #8fb1ff 135deg, #dfe8fd 190deg, #e9effc 360deg); rotate: 40deg; }
.fx-frame-orbit { padding: 8px; isolation: isolate; }
.fx-frame-orbit::before { content: ""; position: absolute; inset: 1px; z-index: -1; border: 1px solid rgba(28, 98, 245, .3); border-radius: 50%; pointer-events: none; }
.fx-frame-orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; rotate: 45deg;
  background: radial-gradient(circle at 50% 4px, #fff 0 1.5px, #1c62f5 2.2px 3.6px, rgba(28, 98, 245, .25) 4.2px 6px, transparent 6.5px); }
.profile-head > .fx-frame-orbit { margin: -8px; }

/* The aurora: a soft layer under the header's text and buttons (z-index -1 in the header's own
   stacking context), strongest at the top, gone before the name; the pattern stays visible. */
.has-aurora { position: relative; isolation: isolate; }
.fx-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 90%); }
.fx-aurora > span { position: absolute; inset: -35% -25% 5% -25%;
  background: radial-gradient(42% 60% at 22% 42%, rgba(28, 98, 245, .2), transparent 70%),
              radial-gradient(38% 55% at 55% 30%, rgba(10, 102, 112, .16), transparent 70%),
              radial-gradient(40% 60% at 84% 46%, rgba(91, 63, 196, .17), transparent 70%); }

/* The sheen: the name drawn once more on top (the same text from data-text, hidden from screen
   readers by the empty alternative), with a light band crossing it now and then. Not drawn at all
   where names stand still (lists, comments, reduced motion): the name keeps its own colour. */
@keyframes fx-turn-glow { from { rotate: 40deg; } to { rotate: 400deg; } }
@keyframes fx-turn-orbit { from { rotate: 45deg; } to { rotate: 405deg; } }
@keyframes fx-aurora { 0% { translate: -6% 0; scale: 1; } 50% { translate: 3% 3%; scale: 1.06; } 100% { translate: 7% -2%; scale: 1; } }
@keyframes nm-sheen { 0% { background-position: 100% 0; } 20%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .fx-live.fx-frame-glow::before { animation: fx-turn-glow 10s linear infinite; }
  .motion-ok .fx-live.fx-frame-orbit::after { animation: fx-turn-orbit 16s linear infinite; }
  .motion-ok .fx-aurora.fx-live > span { animation: fx-aurora 22s ease-in-out infinite alternate; }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .motion-ok .nm-sheen.nm-live { position: relative; display: inline-block; }
    .motion-ok .nm-sheen.nm-live::after {
      content: attr(data-text) / "";
      position: absolute; inset: 0; pointer-events: none;
      color: transparent; -webkit-text-fill-color: transparent;
      background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .72) 50%, transparent 60%) no-repeat;
      background-size: 250% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      animation: nm-sheen 8s ease-in-out 1.2s infinite;
    }
  }
}
@media (forced-colors: active) {
  .nm-sheen::after, .fx-aurora { display: none !important; }
  .fx-frame-glow::before { background: CanvasText; }
}
body.room .nm-sheen::after { display: none; }

/* Completion effects (the end of a verified session, once; the store's samples on hover or
   focus; the preview's "Přehrát"). Never in the way: no pointer events, clipped to the card.
   Still versions: one calm ring; a few pieces lying near the title. */
.reward-card.has-done-fx, .shop-sample-done, .sp-done { position: relative; }
.done-fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; --ox: 50%; --oy: 50%; }
.reward-card .fx-done-ripple { --ox: 34px; --oy: 36px; }
.reward-card .fx-done-confetti { --ox: 55%; --oy: 26px; }
.sp-done .fx-done-confetti { --ox: 72%; --oy: 78px; }
.sp-done .fx-done-ripple { --ox: 26px; --oy: 24px; }
.shop-sample-done .fx-done-ripple { --ox: 22px; }
.done-fx i { position: absolute; top: var(--oy); left: var(--ox); }
.fx-done-ripple i { width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid rgba(143, 177, 255, .55); border-radius: 50%; }
.fx-done-ripple i:nth-child(n+2) { opacity: 0; }
.fx-done-confetti i { width: 6px; height: 10px; margin: -5px 0 0 -3px; border-radius: 1.5px; background: var(--c); opacity: .55; translate: var(--x) var(--y); rotate: var(--r); }
.fx-done-confetti i:nth-child(1) { --x: -70px; --y: -8px; --r: -24deg; --c: #8fb1ff; --d: 0s; }
.fx-done-confetti i:nth-child(2) { --x: -46px; --y: 14px; --r: 30deg; --c: #f1dcb2; --d: .05s; }
.fx-done-confetti i:nth-child(3) { --x: -24px; --y: -16px; --r: 64deg; --c: #6fd3a2; --d: .02s; }
.fx-done-confetti i:nth-child(4) { --x: -8px; --y: 18px; --r: -48deg; --c: #bcd0fd; --d: .08s; }
.fx-done-confetti i:nth-child(5) { --x: 12px; --y: -18px; --r: 18deg; --c: #1c62f5; --d: .03s; }
.fx-done-confetti i:nth-child(6) { --x: 30px; --y: 10px; --r: -70deg; --c: #f3c9a0; --d: .06s; }
.fx-done-confetti i:nth-child(7) { --x: 50px; --y: -10px; --r: 42deg; --c: #8fb1ff; --d: .01s; }
.fx-done-confetti i:nth-child(8) { --x: 70px; --y: 16px; --r: -16deg; --c: #c3b5f0; --d: .09s; }
.fx-done-confetti i:nth-child(9) { --x: -86px; --y: 20px; --r: 80deg; --c: #c3b5f0; --d: .07s; }
.fx-done-confetti i:nth-child(10) { --x: 88px; --y: -4px; --r: -60deg; --c: #6fd3a2; --d: .04s; }
.fx-done-confetti i:nth-child(11) { --x: -34px; --y: 30px; --r: 12deg; --c: #8fb1ff; --d: .1s; }
.fx-done-confetti i:nth-child(12) { --x: 40px; --y: 28px; --r: 96deg; --c: #f1dcb2; --d: .11s; }
@keyframes done-ripple { 0% { scale: .4; opacity: .9; } 70% { opacity: 0; } 100% { scale: 7; opacity: 0; } }
@keyframes done-ripple-settle { 0% { scale: .4; opacity: .9; } 55% { scale: 5; opacity: 0; } 60% { scale: 1; opacity: 0; } 100% { scale: 1; opacity: 1; } }
@keyframes done-confetti { 0% { translate: 0 0; rotate: 0deg; scale: .5; opacity: 0; } 12% { opacity: 1; } 65% { opacity: 1; } 100% { translate: calc(var(--x) * 1.2) calc(var(--y) + 44px); rotate: calc(var(--r) + 220deg); scale: 1; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .motion-ok :is(.done-fx.is-playing, .shop-item:is(:hover, :focus-within, .is-trying) .done-fx, .shop-confirm-sample:is(:hover, :focus-within) .done-fx).fx-done-ripple i { animation: done-ripple 1.5s cubic-bezier(.2, .7, .3, 1) both; }
  .motion-ok :is(.done-fx.is-playing, .shop-item:is(:hover, :focus-within, .is-trying) .done-fx, .shop-confirm-sample:is(:hover, :focus-within) .done-fx).fx-done-ripple i:first-child { animation-name: done-ripple-settle; animation-duration: 2s; }
  .motion-ok :is(.done-fx.is-playing, .shop-item:is(:hover, :focus-within, .is-trying) .done-fx, .shop-confirm-sample:is(:hover, :focus-within) .done-fx).fx-done-ripple i:nth-child(2) { animation-delay: .18s; }
  .motion-ok :is(.done-fx.is-playing, .shop-item:is(:hover, :focus-within, .is-trying) .done-fx, .shop-confirm-sample:is(:hover, :focus-within) .done-fx).fx-done-ripple i:nth-child(3) { animation-delay: .36s; }
  .motion-ok :is(.done-fx.is-playing, .shop-item:is(:hover, :focus-within, .is-trying) .done-fx, .shop-confirm-sample:is(:hover, :focus-within) .done-fx).fx-done-confetti i { animation: done-confetti 1.7s cubic-bezier(.15, .7, .35, 1) var(--d) both; }
  /* At the end of a session the card arrives first, then its moment. */
  .motion-ok .reward-card .done-fx.is-playing i { animation-delay: calc(.7s + var(--d, 0s)); }
  .motion-ok .reward-card .done-fx.is-playing.fx-done-ripple i:nth-child(2) { animation-delay: .88s; }
  .motion-ok .reward-card .done-fx.is-playing.fx-done-ripple i:nth-child(3) { animation-delay: 1.06s; }
}

/* The store page. */
.shop .page-head { margin-bottom: var(--s5); }
.shop-wallet { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .shop-wallet { grid-template-columns: minmax(150px, auto) minmax(0, 1fr); align-items: center; gap: var(--s8); } }
.shop-balance { margin: 4px 0 0; font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; }
.shop-wallet-text { display: grid; gap: var(--s2); }
.shop-wallet-text p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.shop-wallet-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s5); }
.shop-wallet-links span { color: var(--text-3); }
.shop-wallet-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.shop-wallet-links .icon { width: 15px; height: 15px; }
.shop-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin: var(--s6) 0; }
.shop-tabs { max-width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab-count { margin-left: 6px; color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; }
.shop-filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-filter { min-height: 32px; padding-inline: 12px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: border-color var(--dur), background-color var(--dur), color var(--dur); }
.chip-filter:hover { border-color: var(--text-3); color: var(--text); }
.chip-filter[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--surface); }
.chip-filter:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.shop-layout { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .shop-layout { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; } }
.shop-sections { display: grid; gap: var(--s10); min-width: 0; }
.shop-section-head { margin-bottom: var(--s3); }
.shop-section-head h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.shop-section-head .hint { margin: 0; }
.shop-worn { white-space: nowrap; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.shop-item { display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + var(--s6)); transition: border-color var(--dur), box-shadow var(--dur); }
.shop-item-wide { grid-column: 1 / -1; }
.shop-item.is-active { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.shop-item.is-trying:not(.is-active) { border-color: var(--primary-edge); box-shadow: 0 0 0 1px var(--primary-edge); }
.shop-try { position: relative; display: grid; place-items: center; align-content: center; gap: var(--s2); min-height: 108px; padding: var(--s4) var(--s3) var(--s3); border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: background-color var(--dur); }
.shop-try:hover { background: var(--surface-3); }
.shop-try:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.shop-try[aria-pressed="true"] { background: var(--primary-soft); box-shadow: inset 0 -3px 0 var(--primary); }
.shop-try-label { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; }
.shop-try-label .icon { width: 13px; height: 13px; }
.shop-try[aria-pressed="true"] .shop-try-label { color: var(--primary-text); }
.shop-sample { display: grid; place-items: center; width: 100%; min-width: 0; }
.shop-sample-name { max-width: 100%; font-size: var(--fs-md); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.shop-sample-title .name-title { font-size: var(--fs-sm); }
.shop-sample-banner { display: flex; align-items: center; gap: var(--s2); width: min(100%, 220px); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-md); background-color: var(--surface); background-repeat: repeat; text-align: left; }
.sb-lines { display: grid; flex: 1; gap: 5px; }
.sb-lines i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.sb-lines i + i { width: 60%; }
.shop-sample-done { display: grid; place-items: center; width: min(100%, 300px); min-height: 64px; overflow: hidden; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--navy-800); color: #e9eefc; }
.sd-title { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.sd-title .icon { width: 16px; height: 16px; color: var(--blue-300); }
/* Store samples stand still until chosen ("Vyzkoušet"), pointed at or focused. */
.shop-sample *, .shop-sample *::before, .shop-sample *::after { animation-play-state: paused !important; }
.shop-item:is(:hover, :focus-within, .is-trying) .shop-sample *, .shop-item:is(:hover, :focus-within, .is-trying) .shop-sample *::before,
.shop-item:is(:hover, :focus-within, .is-trying) .shop-sample *::after,
.shop-confirm-sample.shop-sample *, .shop-confirm-sample.shop-sample *::before, .shop-confirm-sample.shop-sample *::after { animation-play-state: running !important; }
.shop-body { display: grid; align-content: start; gap: 6px; padding: var(--s3) var(--s4) var(--s4); }
.shop-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s2); }
.shop-title h3 { margin: 0; font-size: var(--fs-base); }
.shop-price { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 700; }
.shop-price .icon { width: 15px; height: 15px; color: var(--text-2); }
.chip-owned { border-color: var(--primary-edge); background: var(--primary-soft); color: var(--primary-text); }
.shop-text { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.shop-where { display: flex; gap: 6px; margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.shop-where .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.shop-still { margin: 0; color: var(--text-3); font-size: var(--fs-xs); }
.shop-presets { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 4px 0; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.shop-actions form { margin: 0; }
.shop-replace, .shop-missing { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.shop-replace .icon { width: 13px; height: 13px; }
.shop-empty { margin: 0; }
@media (max-width: 479px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .shop-try { min-height: 92px; padding: var(--s3) var(--s2) var(--s2); }
  .shop-sample-name { font-size: var(--fs-base); }
  .shop-body { padding: var(--s3); }
  .shop-actions .btn { width: 100%; padding-inline: var(--s2); white-space: normal; }
  .shop-where { display: none; }
  .shop-item-wide .shop-where { display: flex; }
}
/* The preview beside the items: the profile, the moment after a session, what would change. */
.sp-done { display: grid; justify-items: start; gap: 4px; overflow: hidden; padding: var(--s3) var(--s4); border-radius: var(--r-lg); background: var(--navy-800); color: #e9eefc; }
.sd-sub { position: relative; margin: 0; color: #b8c2d9; font-size: var(--fs-xs); }
.sp-done .btn { position: relative; margin-top: 4px; }
.sp-replace { margin: 0; color: var(--text-2); font-size: var(--fs-xs); }
.shop-preview-hint { margin: 0; }
@media (max-width: 899px) {
  .shop-preview .sp-done, .shop-preview-hint { display: none; }
  .shop-preview .sp-replace { grid-column: 1 / -1; }
}
.sp-head.has-aurora { border-color: var(--border); }
/* Buying without JavaScript: the confirmation page. */
.shop-confirm-card { display: grid; gap: var(--s4); }
.shop-confirm-sample { min-height: 132px; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-2); }
.shop-sum { display: grid; margin: 0; border: 1px solid var(--border); border-radius: var(--r-md); }
.shop-sum div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s4); border-top: 1px solid var(--border); }
.shop-sum div:first-child { border-top: 0; }
.shop-sum dt { color: var(--text-3); }
.shop-sum dd { margin: 0; font-weight: 600; text-align: right; }

/* Odměny: the store's entry and a still preview of what is worn. */
.rw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.rw-head > div { flex: 1 1 420px; min-width: 0; }
.rw-look { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .rw-look { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; } }
.rw-worn { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rw-worn li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s3); padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.rw-worn li span { color: var(--text-3); }
.rw-look-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.rw-coins-actions { margin: var(--s2) 0 0; }

/* Settings: what is owned, one choice per slot (the choice itself shows what replaces what). */
.wardrobe { display: grid; gap: var(--s5); margin-top: var(--s4); }
.wardrobe fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.wardrobe legend { margin-bottom: var(--s2); padding: 0; font-size: var(--fs-sm); font-weight: 600; }
.wr-options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.wr-opt { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-sm); cursor: pointer; transition: border-color var(--dur); }
.wr-opt:hover { border-color: var(--text-3); }
.wr-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wr-opt:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); font-weight: 600; }
.wr-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.wr-opt .nm { font-weight: 600; }
.style-tools { display: grid; gap: var(--s6); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
.style-tools h3 { margin: 0 0 4px; font-size: var(--fs-base); }
.bg-swatch { width: 100%; height: 56px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.bg-swatch.has-bg { background: var(--pbg); }
.shop-wallet h2.rw-label { margin: 0; font-size: var(--fs-sm); }
.shop-where-all { margin-top: 6px; }
.shop-sample-done { min-height: 96px; align-content: end; }
.shop-sample-done .fx-done-confetti { --ox: 50%; --oy: 24px; }
.shop-sample-done .fx-done-ripple { --oy: 68px; }
/* The preview's confetti waits for "Přehrát" (its still pieces would sit on the text). */
.motion-ok .sp-done .fx-done-confetti:not(.is-playing) i { opacity: 0; }
@media (max-width: 479px) { .shop-actions form { flex: 1 1 100%; } }

/* Notifications ------------------------------------------------------------------------------
   Owner's request, 24 October 2026 (inbox.py, templates/_notifications.html, notifications.html,
   static/js/inbox.js). The bell sits in the signed-in header on every width; its overview drops
   from it like the account menu. Unread items say "Nové" with a dot and a bolder line, not only
   a tint. Names keep their look, standing still. */
.bell { position: relative; }
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); color: var(--text-2); text-decoration: none; transition: background-color var(--dur), color var(--dur); }
.bell-btn:hover, .bell-btn[aria-expanded="true"], .bell-btn[aria-current="page"] { background: var(--surface-3); color: var(--text); }
.bell-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bell:not(.is-kbd) .bell-btn:focus-visible { outline: none; }   /* inbox.js: rings only after keyboard use */
.bell-btn .icon { width: 20px; height: 20px; }
.bell-count { top: 2px; left: 22px; }
.bell-count[hidden] { display: none; }
.bell-panel { position: absolute; z-index: 50; top: calc(100% + 8px); right: -52px; display: grid; gap: var(--s2); width: min(380px, calc(100vw - 2 * var(--gutter, 16px))); max-height: min(560px, calc(100dvh - var(--header-h) - 32px)); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); grid-template-rows: auto minmax(0, 1fr) auto; transform-origin: top right; animation: menu-in var(--dur) var(--ease-out); }
.bell-panel[hidden] { display: none; }
@media (max-width: 719px) { .bell-panel { position: fixed; top: calc(var(--header-h) + 6px); right: var(--gutter, 16px); left: var(--gutter, 16px); width: auto; } }
.bell-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); padding: 0 var(--s1); }
.bell-head h2 { margin: 0; font-size: var(--fs-base); }
.bell-head h2:focus { outline: none; }
.bell-head h2:focus-visible { outline: none; }
.bell-panel.is-kbd .bell-head h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Motion (only with html.motion-ok, never under reduced motion): the bell swings and the badge pops
   when something new arrives, the panel's items rise in one after another, read ones fade. */
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@keyframes badge-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes note-in { from { opacity: .25; transform: translateY(5px); } }
.motion-ok .bell-btn.is-ring .icon { transform-origin: 50% 10%; animation: bell-ring .7s var(--ease-out); }
.motion-ok .bell-count.is-pop { animation: badge-pop .35s var(--ease-out); }
.motion-ok .bell-btn:active .icon { transform: scale(.9); transition: transform var(--dur-fast); }
.motion-ok .note.note-in { animation: note-in .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 20ms); }
.motion-ok .note.is-reading .note-new { opacity: 0; transition: opacity .25s; }
html.reduce-motion .bell-btn .icon, html.reduce-motion .bell-count, html.reduce-motion .note { animation: none !important; }
.bell-head form { margin: 0; }
.bell-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bell-loading { margin: var(--s3); }
.bell-all { justify-self: start; margin: 0 var(--s1); }
.bell-panel .note-empty { padding: var(--s6) var(--s3); border: 0; }

.notes { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.note { position: relative; display: flex; align-items: flex-start; gap: var(--s2); border-radius: var(--r-md); }
.note.is-unread { background: var(--primary-soft); }
.note-open { flex: 1; min-width: 0; margin: 0; }
.note-btn { display: flex; align-items: flex-start; gap: var(--s3); width: 100%; padding: var(--s3); border: 0; border-radius: var(--r-md); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur); }
.note-btn:hover { background: var(--surface-3); }
.note.is-unread .note-btn:hover { background: var(--primary-soft-2); }
.note-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.note-btn .avatar { flex: none; }
.note-body { display: grid; gap: 2px; min-width: 0; }
.note-text { font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: anywhere; }
.note.is-unread .note-text { font-weight: 500; }
.note-handle { color: var(--text-3); font-weight: 400; }
.note-new { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; color: var(--primary-text); font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.note-time { color: var(--text-3); font-size: var(--fs-xs); }
.note-mark { margin: 0; padding: var(--s3) var(--s2) 0 0; }
.note-mark .icon-btn { margin: 0; }
.note-mark .icon-btn:hover { background: var(--surface-3); color: var(--text); }
.notes-compact .note-btn { padding: var(--s2) var(--s3); }
.notes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3); }
.notes-head > div { flex: 1 1 320px; }
.notes-head form { margin: 0; }
.notes-tabs .count-badge { margin-left: 6px; }
.notes-day { margin-top: var(--s5); }
.notes-day-title { margin: 0 0 var(--s2); color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }
.notes-more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin: var(--s6) 0 var(--s4); }
@media (forced-colors: active) { .note.is-unread { outline: 1px solid CanvasText; } .note-dot { background: CanvasText; } }
