/* Postaki design system v2, the app and flow stylesheet. Tokens and rules: docs/design/v2/DESIGN.md.
   Same palette as v1, used as accents on white and a cool neutral ground. */
@font-face {
  font-family: "Commissioner";
  src: url("fonts/Commissioner-Variable.4273c7534d02.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* palette (unchanged from v1) */
  --carbon-950: #12144a;
  --carbon-900: #1c1f6e;
  --carbon-700: #2b2fa3;
  --carbon-600: #3a3fc0;
  --carbon-300: #a9ace6;
  --carbon-100: #e4e5f8;
  --carbon-50:  #f2f3fb;
  --paper: #ffffff;
  --ground: #f1f2f6;
  --copy-yellow: #fff0a6;
  --copy-yellow-strong: #ffe14d;
  --copy-pink: #fbd7e1;
  --serial-red: #c8202f;
  --ink: #15162b;
  --ink-soft: #45475f;
  --rule: #c9cbe6;
  --rule-strong: #8f93cf;
  --ok: #17744a;   --ok-bg: #dff3e8;
  --wait: #8a5a00; --wait-bg: #fff1cc;
  --fail: #a3192a; --fail-bg: #fde6ea;

  /* roles (v2: what each colour is for) */
  --bg: var(--ground);
  --surface: var(--paper);
  --line: var(--carbon-100);
  --line-strong: var(--rule);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --accent: var(--carbon-700);
  --accent-hover: var(--carbon-900);
  --accent-tint: var(--carbon-50);
  --create: var(--copy-yellow-strong);
  --on-create: var(--carbon-950);
  --focus: var(--carbon-600);

  /* roles with no primitive of their own (Day values; Night overrides them below) */
  --on-accent: #ffffff;
  --on-accent-soft: #d6d8fb;
  --create-hover: #ffd81f;
  --on-yellow: #2b2fa3;           /* icons on --copy-yellow, both themes */
  --on-pink: var(--carbon-950);   /* text on --copy-pink */
  --record-ink: #6b3446;          /* the approval record's labels */
  --record-line: rgb(107 52 70 / .35);
  --mark-hi: var(--copy-yellow-strong);
  --text-muted: #5e6079;          /* soon, disabled, tab labels: 5.2:1 on --muted-bg */
  --muted-bg: #ececf1;
  --fail-line: #f3b9c3;
  --warn-line: #f0d48a;
  --warn-bg: #fffbea;
  --on-ok: #ffffff;
  --row-hover: #fafaff;
  --surface-sunk: #fafafd;
  --surface-ghost: rgb(255 255 255 / .6);
  --bar-bg: var(--paper);  /* opaque: nothing shows through the top, tab and action bars */
  --focus-halo: rgb(58 63 192 / .18);
  --scrim: rgb(18 20 74 / .38);
  --scrim-light: rgb(18 20 74 / .08);
  --overlay: rgb(18 20 74 / .72);  /* controls on a photo, both themes */
  --on-overlay: #ffffff;
  --knob: #ffffff;
  --toast-bg: var(--carbon-950);
  --toast-fg: #ffffff;
  --toast-fail-bg: var(--fail);
  --toast-fail-fg: #ffffff;   /* 7.7:1 on Day --fail */
  --toast-wait-bg: var(--wait);
  --toast-wait-fg: #ffffff;   /* 5.9:1 on Day --wait */
  --qr-bg: #ffffff;               /* a QR code needs a light quiet zone in both themes */
  --band: #2b2fa3;                /* the landing's closing band and footer, both themes */
  --on-band: #ffffff;
  --on-band-soft: #d6d8fb;
  --band-line: rgb(255 255 255 / .18);
  /* platform marks: brand colours on a light tile in both themes, so black and red logos stay visible on Night */
  --pm-bg: var(--carbon-50);
  --pm-fg: #2b2fa3;
  --brand-facebook: #0866ff;
  --brand-instagram: #ff0069;
  --brand-black: #000000;
  --brand-linkedin: #0a66c2;
  --brand-youtube: #ff0000;
  --brand-pinterest: #bd081c;
  --brand-google: #4285f4;
  color-scheme: light;

  /* type */
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --t-display: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-title: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-heading: 1.25rem;
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-micro: 0.8125rem;

  /* space (4px base, unchanged) */
  --s-px: 0.125rem;      /* 2px: hairline nudges only */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: 1rem;

  /* radii (v2: softer, one scale) */
  --r-xs: 0.25rem;
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-pill: 62.4375rem;
  --mark-tile: 2.5rem; --mark-tile-sm: 1.75rem; --mark-tile-lg: 3rem;
  --mark-icon: 1.375rem; --mark-icon-sm: 1rem; --mark-icon-lg: 1.625rem;

  /* depth */
  --sh-1: 0 0.0625rem 0.125rem rgba(18, 20, 74, .06), 0 0.0625rem 0.0625rem rgba(18, 20, 74, .04);
  --sh-2: 0 0.375rem 1rem -0.25rem rgba(18, 20, 74, .12), 0 0.125rem 0.25rem rgba(18, 20, 74, .05);
  --sh-3: 0 -0.625rem 2.5rem -0.625rem rgba(18, 20, 74, .28);
  --sh-pop: 0 1.5rem 3rem -1rem rgb(18 20 74 / .3);
  --sh-deck: 0 1.125rem 2.25rem -1.125rem rgb(18 20 74 / .24);

  --tap: 3rem;
  /* The one allowed raw pixel in the whole codebase: a hairline. A rem hairline is unreliable (0.0625rem lands on a
     different device pixel depending on zoom and dpr and can vanish or double), so 1 CSS px is defined once here. */
  /* stylelint-disable-next-line unit-allowed-list -- the single hairline token, see the comment above */
  --bw: 1px;
  --bw-mid: 0.09375rem;    /* 1.5px borders: chips, choices */
  --col: minmax(0, 1fr);   /* the only way to write a flexible grid track */
  --bw-strong: 0.125rem;  /* focus rings and strong borders, no px */
  /* theme switch motion (website/theme-toggle.js reads these) */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur-icon: 600ms;
  --dur-reveal: 900ms;
  --dur-fade: 400ms;
  --dur-pop: 180ms;        /* menus opening */
  --ease-reveal: var(--ease);
  --bw-ring: 0.1875rem;    /* focus halo and outline rings */
  --bar: 4rem;
  --actionbar: 6rem;  /* room the sticky/fixed action bar takes at the bottom (button 3.5rem + padding); content and focus clear it */
  --actionbar-clear: calc(var(--actionbar) + env(safe-area-inset-bottom));
  --side: 16rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 60em) { :root { --gutter: 2rem; } }

/* Night, the default theme (accounts.middleware.ThemeMiddleware renders <html data-theme>). Only tokens change; every
   component keeps reading them. Contrast ratios are in docs/design/v2/DESIGN.md "Night". Carbon stays the brand: the
   grounds are carbon-tinted, the accent turns to a light carbon that takes dark text, yellow keeps its one meaning. */
[data-theme="night"] {
  color-scheme: dark;
  --carbon-50:  #23265a;   /* tint: hover, active nav, chips */
  --carbon-100: #2c2f66;   /* hairlines, tracks */
  --carbon-300: #5b60b8;   /* dots, thumb art */
  --carbon-600: #b3b6ff;   /* focus ring */
  --carbon-700: #a9adff;   /* accent: links, primary fill, selected */
  --carbon-900: #c8cbff;   /* accent hover */
  --paper: #181a3d;        /* surface: cards, lists, sheets, bars */
  --ground: #0f1029;       /* page ground */
  --ink: #eceefb;
  --ink-soft: #b5b8dc;
  --rule: #666bb4;         /* input and secondary-button borders, 3.5:1 on the surface */
  --rule-strong: #8a8fd6;
  --copy-pink: #3a1d2c;
  --serial-red: #ff7a86;
  --ok: #6edba5;   --ok-bg: #123828;
  --wait: #ffcf6b; --wait-bg: #372a08;
  --fail: #ff8d9c; --fail-bg: #401520;

  --on-accent: #12144a;
  --on-accent-soft: #2b2fa3;
  --create-hover: #fff07a;
  --on-pink: #ffe3ea;
  --record-ink: #f6c1cf;
  --record-line: rgb(246 193 207 / .3);
  --mark-hi: rgb(255 225 77 / .3);
  --text-muted: #9a9dc4;
  --muted-bg: #262842;
  --fail-line: #c24a5e;   /* 3.5:1 on the surface: the danger button's outline */
  --warn-line: #6b5420;
  --warn-bg: #2a230d;
  --on-ok: #0b2a1c;
  --row-hover: #1e2048;
  --surface-sunk: #141633;
  --surface-ghost: rgb(24 26 61 / .6);
  --bar-bg: var(--paper);
  --focus-halo: rgb(169 173 255 / .25);
  --scrim: rgb(4 5 20 / .66);
  --scrim-light: rgb(4 5 20 / .3);
  --knob: #eceefb;
  --toast-bg: #262a6b;
  --toast-fail-fg: #12144a;  /* 7.8:1 on Night --fail */
  --toast-wait-fg: #12144a;  /* 11.8:1 on Night --wait */
  --pm-bg: #ffffff;       /* white logo tile: brand colours 3.6 to 17:1 */

  --sh-1: 0 0.0625rem 0.125rem rgb(0 0 0 / .45);
  --sh-2: 0 0.375rem 1rem -0.25rem rgb(0 0 0 / .55), 0 0.125rem 0.25rem rgb(0 0 0 / .3);
  --sh-3: 0 -0.625rem 2.5rem -0.625rem rgb(0 0 0 / .7);
  --sh-pop: 0 1.5rem 3rem -1rem rgb(0 0 0 / .6);
  --sh-deck: 0 1.125rem 2.25rem -1.125rem rgb(0 0 0 / .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.5;
  color: var(--text); background: var(--bg);
  font-variation-settings: "FLAR" 0, "VOLM" 0;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;  /* a long name, URL or word wraps instead of widening the page */
}
::selection { background: var(--copy-yellow-strong); color: var(--on-create); }
:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 720; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: var(--bw-mid); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, time { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: var(--bw); height: var(--bw); overflow: hidden; clip: rect(0 0 0 0); }
.soft { color: var(--text-soft); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); }
.i { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 1.25rem; height: 1.25rem; }
.i--xs { width: 1rem; height: 1rem; stroke-width: 2.4; }
.display { font-size: var(--t-display); line-height: 1.04; font-weight: 780; letter-spacing: -0.025em; font-variation-settings: "FLAR" 100, "VOLM" 40; }
.title { font-size: var(--t-title); line-height: 1.15; font-weight: 750; font-variation-settings: "FLAR" 100, "VOLM" 20; }
.heading { font-size: var(--t-heading); line-height: 1.25; font-weight: 700; }
.stack > * + * { margin-top: var(--s-3); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.grow { flex: 1; min-width: 0; }

/* ---------- Buttons: one system ---------- */
.btn {
  --h: 3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--h); padding: 0 var(--s-5); border-radius: var(--r-md);
  border: var(--bw-mid) solid transparent; font-size: 1rem; font-weight: 660; line-height: 1.15;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .1s;
}
.btn:active { transform: translateY(0.0625rem); }
.btn--lg { --h: 3.5rem; font-size: 1.0625rem; padding: 0 var(--s-5); }
.btn--sm { --h: 2.75rem; padding: 0 var(--s-4); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--create { background: var(--create); color: var(--on-create); box-shadow: var(--sh-1); }
.btn--create:hover { background: var(--create-hover); }
.btn--secondary { background: var(--surface); color: var(--accent); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--accent-tint); border-color: var(--rule-strong); }
.btn--quiet { background: transparent; color: var(--accent); padding: 0 var(--s-3); }
.btn--quiet:hover { background: var(--accent-tint); }
.btn--danger { background: var(--surface); color: var(--fail); border-color: var(--fail-line); }
.btn--quiet-danger { color: var(--fail); }
.btn--quiet-danger:hover { background: var(--fail-bg); }
.btn[disabled], .btn.is-disabled { background: var(--accent-tint); color: var(--text-muted); border-color: transparent; box-shadow: none; cursor: not-allowed; }
@media (max-width: 37.4375em) { .btn--fill-sm { width: 100%; } }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 1.625rem; padding: var(--s-px) var(--s-3); max-inline-size: 100%;
  border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 680; text-wrap: balance;  /* long Greek labels wrap */
  background: var(--accent-tint); color: var(--accent);
}
/* AI-look rule: status chips carry colour and text, no leading dot */
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--wait { background: var(--wait-bg); color: var(--wait); }
.chip--fail { background: var(--fail-bg); color: var(--fail); }
.chip--draft { background: var(--muted-bg); color: var(--ink-soft); }
/* choice chips (filters, channel pickers): tappable, 44px */
.choice {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-4) 0 var(--s-3);
  border-radius: var(--r-pill); border: var(--bw-mid) solid var(--line-strong); background: var(--surface);
  font-weight: 620; font-size: .9375rem; white-space: nowrap; color: var(--ink); cursor: pointer;
}
.choice .count { color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.choice.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice.is-on .count { color: var(--on-accent-soft); }
.choice.is-off { color: var(--text-muted); border-style: dashed; }
.choices { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: var(--s-px); margin-block: calc(var(--s-px) * -1); }
.choices::-webkit-scrollbar { display: none; }

/* ---------- Platform mark (webapp/templatetags/platform.py: the brand logo on a light tile) ---------- */
.pm {
  width: var(--mark-tile); height: var(--mark-tile); border-radius: var(--r-md); flex: none; display: grid; place-items: center;
  background: var(--pm-bg); color: var(--pm-fg); font-weight: 780; font-size: .8125rem; letter-spacing: .02em;
  position: relative;
}
.pm .bi { width: var(--mark-icon); height: var(--mark-icon); fill: currentColor; display: block; }
.pm--lg { width: var(--mark-tile-lg); height: var(--mark-tile-lg); border-radius: var(--r-md); font-size: .9375rem; }
.pm--lg .bi { width: var(--mark-icon-lg); height: var(--mark-icon-lg); }
.pm--sm { width: var(--mark-tile-sm); height: var(--mark-tile-sm); border-radius: var(--r-sm); font-size: .6875rem; }
.pm--sm .bi { width: var(--mark-icon-sm); height: var(--mark-icon-sm); }
.pm--facebook { color: var(--brand-facebook); }
.pm--instagram { color: var(--brand-instagram); }
.pm--threads, .pm--tiktok { color: var(--brand-black); }
.pm--linkedin { color: var(--brand-linkedin); }
.pm--youtube { color: var(--brand-youtube); }
.pm--pinterest { color: var(--brand-pinterest); }
.pm--google_business { color: var(--brand-google); }
.pm.is-soon { background: var(--muted-bg); color: var(--text-muted); }
.pvlabel .pm { flex: none; }
.pm .tick {
  position: absolute; right: -0.3125rem; bottom: -0.3125rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--ok); color: var(--on-ok); display: grid; place-items: center; border: 0.125rem solid var(--surface);
}
.pm .tick .i { width: 0.75rem; height: 0.75rem; stroke-width: 3.2; }
.pm-stack { display: flex; }
.pm-stack .pm { border: 0.125rem solid var(--surface); }
.pm-stack .pm + .pm { margin-left: calc(var(--s-2) * -1); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card--pad { padding: var(--s-5); }
@media (max-width: 37.4375em) { .card--pad { padding: var(--s-4); } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: var(--s-6) 0 var(--s-3); }
.section-head h2 { font-size: 1.0625rem; font-weight: 720; }
.section-head a { font-weight: 640; font-size: .9375rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 1.5rem; min-width: 1.5rem; }

/* list rows */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.list > li + li { border-top: var(--bw) solid var(--line); }
.lrow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 4.25rem; color: inherit; text-decoration: none; }
a.lrow:hover { background: var(--row-hover); }
.lrow__main { flex: 1; min-width: 0; }
.lrow__title { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__meta { font-size: var(--t-small); color: var(--text-soft); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: center; margin-top: var(--s-px); }
.lrow__end { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.thumb { width: 3.25rem; height: 3.25rem; border-radius: var(--r-md); flex: none; overflow: hidden; background: var(--carbon-50); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.serial { color: var(--text-soft); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--t-micro); }

/* fields */
.field { display: block; }
.field + .field { margin-top: var(--s-4); }
.label { display: block; font-weight: 660; font-size: .9375rem; margin-bottom: var(--s-2); }
.hint { display: block; font-size: var(--t-small); color: var(--text-soft); margin-top: var(--s-2); }
.input {
  width: 100%; min-height: 3.25rem; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  border: var(--bw-mid) solid var(--line-strong); background: var(--surface); font-size: 1.0625rem;
}
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 var(--bw-ring) var(--focus-halo); }
.input-wrap { position: relative; display: block; }
.input-wrap .btn { position: absolute; right: 0.25rem; top: 0.25rem; --h: 2.75rem; }
textarea.input { min-height: 8.75rem; line-height: 1.55; resize: vertical; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.box { width: 1.5rem; height: 1.5rem; border-radius: var(--r-sm); border: 0.125rem solid var(--rule-strong); flex: none; display: grid; place-items: center; background: var(--surface); margin-top: calc(var(--s-px) * -1); }
.box.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.box .i { width: 1rem; height: 1rem; stroke-width: 3; }

/* segmented choice tiles (forms) */
.tiles2 { display: grid; grid-template-columns: var(--col) var(--col); gap: var(--s-2); }
.opt {
  border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); padding: var(--s-4); background: var(--surface);
  display: flex; flex-direction: column; gap: var(--s-1); min-height: 5.25rem; cursor: pointer;
}
.opt strong { font-weight: 700; }
.opt span { font-size: var(--t-small); color: var(--text-soft); line-height: 1.35; }
.opt.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 var(--bw) var(--accent); background: var(--accent-tint); }
/* the same tiles as a real radio group: the input covers the tile, invisible, so tap, keyboard and screen readers work */
.fieldset--tiles { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fieldset--tiles legend { padding: 0; }
.opt { position: relative; }
.opt__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:has(.opt__input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 var(--bw) var(--accent); background: var(--accent-tint); }
.opt:has(.opt__input:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.has-error .opt { border-color: var(--fail); }
.fieldset[hidden], [data-agree-for][hidden], [data-business-only-legend][hidden] { display: none; }

/* ---------- Progress ---------- */
.progress { height: 0.375rem; border-radius: var(--r-pill); background: var(--carbon-100); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.progress--yellow > i { background: var(--copy-yellow-strong); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.steps li { display: flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; color: var(--text-soft); font-weight: 600; }
.steps .dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; border: 0.125rem solid var(--rule); font-size: .8125rem; font-weight: 720; background: var(--surface); }
.steps .is-done { color: var(--ink); }
.steps .is-done .dot { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.steps .is-done .dot .i { width: 0.875rem; height: 0.875rem; stroke-width: 3.2; }
.steps .is-now { color: var(--ink); }
.steps .is-now .dot { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* ---------- Sticky action bar ---------- */
/* Whatever scrolls (focus, anchors, scrollIntoView) stops above the bar, never under it (WCAG 2.4.11). */
html:has(.actionbar) { scroll-padding-bottom: var(--actionbar-clear); }
.actionbar {
  position: sticky; bottom: 0; z-index: 20; background: var(--bar-bg);
  border-top: var(--bw) solid var(--line); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  display: flex; gap: var(--s-2); align-items: center;
}
.actionbar__note { flex: 1; min-width: 0; font-size: var(--t-small); color: var(--text-soft); line-height: 1.3; }
.actionbar__note strong { display: block; color: var(--ink); font-size: .9375rem; }

/* ---------- Sheet (bottom sheet on phone, side panel on desktop) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-3);
  padding: var(--s-2) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); max-height: 88dvh; overflow: auto;
}
.sheet__grip { width: 2.5rem; height: 0.3125rem; border-radius: var(--r-sm); background: var(--rule); margin: var(--s-1) auto var(--s-4); }
@media (min-width: 60em) {
  .sheet { left: auto; top: 0; width: 27.5rem; border-radius: var(--r-xl) 0 0 var(--r-xl); padding: var(--s-6); max-height: none; }
  .sheet__grip { display: none; }
}

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: var(--s-7) var(--s-5); }
.empty .art { display: grid; place-items: center; margin: 0 auto var(--s-3); color: var(--text-soft); }
.empty .art .i { width: 2.125rem; height: 2.125rem; }
.empty p { max-width: 34ch; margin: var(--s-2) auto var(--s-5); color: var(--text-soft); }

/* ---------- App shell ---------- */
.app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 3.75rem; display: flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--gutter); background: var(--bar-bg); border-bottom: var(--bw) solid var(--line);
}
.logo { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; font-variation-settings: "FLAR" 100, "VOLM" 30; }
.logo svg { width: 2.125rem; height: 2.125rem; }
.beta { font-size: .6875rem; font-weight: 760; background: var(--copy-yellow-strong); color: var(--carbon-950); padding: var(--s-px) var(--s-2); border-radius: var(--r-sm); letter-spacing: .02em; }
.iconbtn { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: grid; place-items: center; color: var(--ink); background: transparent; border: 0; position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--accent-tint); }
.badge { position: absolute; inset-block-start: var(--s-2); inset-inline-end: var(--s-2); min-inline-size: 1.125rem; block-size: 1.125rem; border-radius: var(--r-pill); padding: 0 var(--s-1); background: var(--copy-yellow-strong); color: var(--carbon-950); font-size: .6875rem; font-weight: 800; display: grid; place-items: center; border: var(--bw-strong) solid var(--surface); }
.switcher { display: flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-3) 0 var(--s-2); border-radius: var(--r-md); border: 0; background: transparent; font-weight: 680; cursor: pointer; min-width: 0; }
.switcher:hover { background: var(--accent-tint); }
.switcher .av { width: 2rem; height: 2rem; border-radius: var(--r-md); background: var(--copy-yellow); color: var(--carbon-950); display: grid; place-items: center; font-weight: 800; font-size: .8125rem; flex: none; }
.switcher .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: var(--s-5) var(--gutter) calc(var(--bar) + var(--s-6)); max-width: 70rem; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.pagehead p { color: var(--text-soft); margin-top: var(--s-2); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--bar) + env(safe-area-inset-bottom));
  background: var(--bar-bg); border-top: var(--bw) solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--col); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-px); text-decoration: none; color: var(--text-muted); font-size: .75rem; font-weight: 640; }
.tabbar a.is-on { color: var(--accent); }
.tabbar a.is-on .i { stroke-width: 2.4; }
.tabbar .new { color: var(--text); }
.tabbar .new span:first-child { width: 3rem; height: 2.25rem; border-radius: var(--r-lg); background: var(--create); display: grid; place-items: center; box-shadow: var(--sh-1); }

.sidebar { display: none; }
@media (min-width: 60em) {
  .app { display: grid; grid-template-columns: var(--side) var(--col); }
  .tabbar, .topbar .logo, .topbar .switcher { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: var(--s-1); position: sticky; top: 0; height: 100dvh;
    background: var(--surface); border-right: var(--bw) solid var(--line); padding: var(--s-5) var(--s-4);
  }
  .sidebar .logo { padding: 0 var(--s-2) var(--s-4); }
  .sidebar .switcher { width: 100%; border: var(--bw) solid var(--line); margin-bottom: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2); }
  .sidebar .switcher .nm { flex: 1; text-align: left; }
  .nav { display: grid; grid-template-columns: var(--col); gap: var(--s-px); margin-top: var(--s-3); } /* long names truncate, never overflow */
  .nav a { display: flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--ink-soft); text-decoration: none; font-weight: 640; }
  .nav a:hover { background: var(--ground); color: var(--ink); }
  .nav a.is-on { background: var(--accent-tint); color: var(--accent); }
  .nav .cnt { margin-left: auto; font-size: .75rem; font-weight: 760; background: var(--copy-yellow-strong); color: var(--carbon-950); border-radius: var(--r-sm); padding: var(--s-px) var(--s-2); }
  .main { padding: var(--s-7) var(--s-7) var(--s-8); width: 100%; }
}

/* ---------- Onboarding shell (same shell, steps in place of nav) ---------- */
.ob .topbar { gap: var(--s-1); }
.ob .topbar .logo { margin-right: auto; }
.ob__progress { position: sticky; top: 3.75rem; z-index: 29; background: var(--bar-bg); padding: 0 var(--gutter) var(--s-3); border-bottom: var(--bw) solid var(--line); }
.ob__progress .row { justify-content: space-between; font-size: var(--t-small); font-weight: 640; color: var(--text-soft); margin-bottom: var(--s-2); }
.ob__body { padding: var(--s-6) var(--gutter) var(--s-6); max-width: 35rem; margin: 0 auto; }
.ob__body .lead { color: var(--text-soft); margin-top: var(--s-3); font-size: 1.0625rem; }
.ob .actionbar { position: fixed; left: 0; right: 0; }
@media (min-width: 60em) {
  .ob { display: grid; grid-template-columns: 21.25rem var(--col); min-height: 100dvh; }
  .ob .topbar, .ob__progress { display: none; }
  .ob .sidebar { display: flex; padding: var(--s-6) var(--s-6); background: var(--surface); }
  .ob .sidebar .logo { display: flex; padding: 0 0 var(--s-6); }
  .ob__main { display: flex; flex-direction: column; min-height: 100dvh; }
  .ob__body { padding: var(--s-9) var(--s-7) var(--s-7); width: 100%; }
  .ob .actionbar { position: sticky; margin-top: auto; justify-content: center; background: var(--bg); border-top: 0; padding: var(--s-5) var(--s-7) var(--s-7); }
  .ob .actionbar > .inner { width: 100%; max-width: 35rem; display: flex; gap: var(--s-3); align-items: center; }
}
.sidebar__reassure { margin-top: auto; padding: var(--s-4); border-radius: var(--r-lg); background: var(--ground); font-size: var(--t-small); color: var(--ink-soft); display: flex; gap: var(--s-2); }
.sidebar__reassure .i { color: var(--ok); }
.sidebar__reassure--top { margin-top: var(--s-2); }
.actionbar > .inner { display: flex; gap: var(--s-2); align-items: center; width: 100%; }

/* =========================================================
   Screen components
   ========================================================= */
.only-desk { display: none; }
/* stylelint-disable-next-line declaration-no-important -- utility that must win over the component display value it hides */
@media (min-width: 60em) { .only-desk { display: initial; } .only-phone { display: none !important; } }

/* platform tiles */
.ptiles { display: grid; grid-template-columns: var(--col) var(--col); gap: var(--s-2); }
@media (min-width: 60em) { .ptiles { grid-template-columns: repeat(3, var(--col)); gap: var(--s-3); } }
.ptile {
  display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); min-height: 7.75rem;
  background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  text-decoration: none; color: inherit; position: relative;
}
a.ptile:hover { border-color: var(--rule); box-shadow: var(--sh-2); }
.ptile__name { font-weight: 720; font-size: 1.0625rem; line-height: 1.2; }
.ptile__sub { font-size: var(--t-small); color: var(--text-soft); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }  /* two lines: on phones it carries the state the hidden chip would */
.ptile__cta { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; color: var(--accent); font-size: .9375rem; }
.ptile--todo { border: var(--bw-mid) dashed var(--rule); box-shadow: none; background: var(--surface-ghost); }
.ptile--todo:hover { background: var(--surface); border-style: solid; }
.ptile--warn { border-color: var(--warn-line); background: var(--surface); }  /* no cream tile: the border and the chip carry the warning */
.ptile--warn .ptile__cta { color: var(--wait); }
/* the suggested next tile looks like every other tile to connect; the suggestion is said in words (UX laws: similarity) */
.ptile--next { border: var(--bw-mid) dashed var(--rule); box-shadow: none; background: var(--surface-ghost); }
.ptile--next:hover { background: var(--surface); border-style: solid; }
.ptile__hint { font-size: var(--t-micro); font-weight: 680; color: var(--accent); }
.soonrow { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.soonrow .item { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: var(--r-md); background: var(--surface-ghost); border: var(--bw) solid var(--line); color: var(--ink-soft); font-weight: 620; font-size: .9375rem; }

.meter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-block: var(--s-2); }
.meter strong { font-size: 1.0625rem; min-inline-size: 0; }
.meter .progress { flex: 1 1 8rem; height: 0.5rem; }
.meter > a { display: inline-flex; align-items: center; min-block-size: var(--tap); }

/* attention cards */
/* things that need you: one framed list with dividers, not a grid of cards (AI-look rule: not everything in a card) */
.att { display: grid; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.att > .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.att > * + * { border-block-start: var(--bw) solid var(--line); }
.attcard { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.attcard__top { display: flex; gap: var(--s-3); align-items: flex-start; }
.attcard h2 { font-size: 1.0625rem; line-height: 1.3; margin: var(--s-1) 0 var(--s-px); }
.att > * { min-width: 0; }
.attcard .acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
/* Side by side when both fit, one under the other on a phone (long Greek labels). */
.attcard .acts > .btn, .attcard .acts > form { flex: 1 1 12.5rem; min-width: 0; }
.attcard .acts .btn { width: 100%; white-space: normal; }
.attcard .acts > p { flex-basis: 100%; margin: 0; }
.startbar { height: 0.5rem; margin-block-end: var(--s-3); }
.alert-ic { width: 3.25rem; height: 3.25rem; border-radius: var(--r-lg); flex: none; display: grid; place-items: center; background: var(--wait-bg); color: var(--wait); }

/* week strip */
.week { display: grid; grid-template-columns: repeat(7, var(--col)); gap: var(--s-1); padding: var(--s-2); }
.week a { display: flex; flex-direction: column; align-items: center; gap: var(--s-px); padding: var(--s-2) 0 var(--s-3); border-radius: var(--r-md); text-decoration: none; color: var(--ink-soft); font-size: .75rem; font-weight: 640; }
.week a b { font-size: 1.125rem; color: var(--ink); font-weight: 720; font-variant-numeric: tabular-nums; }
.week a i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: transparent; margin-top: var(--s-px); }
.week a i.on { background: var(--carbon-300); }
.week a i.warn { background: var(--wait); }
.week a.is-today { background: var(--accent); color: var(--on-accent-soft); }
.week a.is-today b { color: var(--on-accent); }
.week a.is-today i.on { background: var(--copy-yellow-strong); }

/* two-column app layouts */
.cols { display: grid; gap: var(--s-2); }
.cols > *, .app > div, .cmp__grid > *, .ob__main { min-width: 0; }
@media (min-width: 68.75em) { .cols { grid-template-columns: var(--col) 21.25rem; gap: var(--s-6); align-items: start; } }

/* first run */
.create {
  padding: var(--s-6) var(--s-5); text-align: center; border: 0.125rem dashed var(--rule); border-radius: var(--r-xl);
  background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
}
.create__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.create p { color: var(--text-soft); max-width: 36ch; margin-bottom: var(--s-2); }
@media (min-width: 60em) { .create { padding: var(--s-8) var(--s-7); } }
/* the three steps under the first-run create zone: plain text columns, no card and no numerals (AI-look rules) */
.how { display: grid; grid-template-columns: repeat(3, var(--col)); gap: var(--s-4); padding-block: var(--s-3); }
.how > div { border-block-start: var(--bw-strong) solid var(--line-strong); padding-block-start: var(--s-2); }
.how span { font-size: .875rem; font-weight: 620; line-height: 1.3; display: block; }

/* composer: the form is the grid (editing column, side column); the action bar is outside it */
.cmp__title { font-weight: 720; font-size: 1.0625rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .chip { min-width: 0; height: auto; min-height: 1.625rem; padding-block: var(--s-1); white-space: normal; line-height: 1.2; }
.cmp__grid { flex: 1; display: grid; grid-template-columns: var(--col); align-content: start; }
.cmp__grid > * { min-width: 0; }
.cmp__edit { border: 0; margin: 0; min-inline-size: 0; padding: var(--s-5) var(--gutter) var(--s-2); display: grid; gap: var(--s-5); align-content: start; }
.cmp__edit > * { min-width: 0; }
.cmp__side { padding: 0 var(--gutter) var(--s-6); }
.cmp__side .inner { display: grid; gap: var(--s-3); justify-items: stretch; }
/* stylelint-disable-next-line declaration-no-important -- the author rule display: flex or grid on the same element would beat the hidden attribute */
.cmp__edit [hidden], .cmp__side [hidden] { display: none !important; }
.shell--focus .main { padding: 0; }
@media (min-width: 60em) {
  .cmp__grid { grid-template-columns: var(--col) var(--col); }
  .cmp__edit { padding: var(--s-6) var(--s-7) var(--s-7); max-width: 40rem; margin-left: auto; width: 100%; }
  .cmp__side { background: var(--surface); border-left: var(--bw) solid var(--line); padding: var(--s-6) var(--s-7); }
  /* The side panel sticks while the page scrolls, so it must fit the space between the top bar and the action bar and
     scroll inside itself: taller, its lower links sat under the bar and no page scroll could bring them out. */
  .cmp__side .inner { position: sticky; top: 6.25rem; max-width: 25rem; max-height: calc(100dvh - 6.25rem - var(--actionbar-clear)); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-1); margin: calc(-1 * var(--s-1)); }
  .shell--focus .actionbar { padding: var(--s-4) var(--s-6); }
}
.blk__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.blk__head h2 { font-size: 1rem; font-weight: 720; }
.media { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.media .ph { width: 7rem; height: 7rem; border-radius: var(--r-lg); overflow: hidden; position: relative; flex: none; }
.media .ph img { width: 100%; height: 100%; object-fit: cover; }
.media .ph .x { position: absolute; top: 0.375rem; right: 0.375rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--overlay); color: var(--on-overlay); display: grid; place-items: center; }
.media .ph .x .i { width: 0.875rem; height: 0.875rem; stroke-width: 2.6; }
.media .add { width: 7rem; height: 7rem; border-radius: var(--r-lg); border: var(--bw-mid) dashed var(--rule-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); color: var(--accent); font-weight: 660; font-size: .875rem; background: var(--surface); }
.textbox { background: var(--surface); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); }
.textbox textarea { display: block; border: 0; width: 100%; min-height: 10.5rem; padding: var(--s-4); resize: none; background: transparent; line-height: 1.55; font-size: 1.0625rem; }
.textbox textarea:focus { outline: none; }
.textbox__foot { display: flex; align-items: center; justify-content: space-between; border-top: var(--bw) solid var(--line); padding: var(--s-1) var(--s-2) var(--s-1) var(--s-4); font-size: var(--t-small); color: var(--text-soft); }
.aitag { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-micro); font-weight: 680; color: var(--carbon-950); background: var(--copy-yellow); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); }
.aitag .i { width: 0.875rem; height: 0.875rem; }
.whenbox { display: grid; gap: var(--s-2); }
.whenopt { display: flex; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); border: var(--bw-mid) solid var(--line-strong); background: var(--surface); }
.whenopt .radio { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 0.125rem solid var(--rule-strong); flex: none; }
.whenopt { cursor: pointer; }
.whenopt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 var(--bw) var(--accent); }
.whenopt:has(input:checked) .radio { border: 0.4375rem solid var(--accent); }
.whenopt:has(input:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.whenfallback { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.expiry { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
.expiry__pick { display: flex; align-items: center; min-height: 3.5rem; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); border: var(--bw-mid) solid var(--line-strong); background: var(--surface); color: inherit; font: inherit; font-weight: 680; cursor: pointer; text-align: left; min-width: 0; }
.expiry__pick:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.cmp__frozen { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: grid; gap: var(--s-5); }
.cmp__frozen > * { min-width: 0; }
.whenfallback label { display: grid; gap: var(--s-1); font-size: var(--t-small); color: var(--text-soft); }
/* the day picker (the date sheet; the calendar uses the same grid) */
.cal--pick .cday { min-height: 2.75rem; padding: var(--s-1) var(--s-px); border: 0; background: transparent; justify-content: center; align-items: center; font: inherit; cursor: pointer; }
.cal--pick .cday .n { width: 2.375rem; height: 2.375rem; }
.cal--pick .cal__grid .cday:nth-last-child(-n + 7) { border-bottom: 0; }
.cal--pick button.cday:hover:not(:disabled) .n { background: var(--accent-tint); }
.cal--pick .cday.is-sel { background: transparent; box-shadow: none; }
.cal--pick .cday.is-sel .n { background: var(--accent); color: var(--on-accent); }
.cal--pick .cday.is-today:not(.is-sel) .n { background: transparent; box-shadow: inset 0 0 0 var(--bw-mid) var(--accent); color: var(--accent); }
.cal--pick .cday.is-off { cursor: default; background: transparent; }
.cal--pick .cday.is-off .n { color: var(--ink-soft); opacity: .4; font-weight: 520; }
.sheet .calbar { margin-bottom: var(--s-2); }
.sheet__month { font-size: 1.125rem; font-weight: 740; text-transform: capitalize; }
.sheet__time { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-4) 0 var(--s-2); font-weight: 660; }
.sheet__time .input { width: auto; min-width: 7.5rem; }
.sheet__ok { width: 100%; margin-top: var(--s-3); }
.sheet .iconbtn:disabled { opacity: .3; cursor: default; }
.whenopt b { font-weight: 680; }
.whenopt > span:not(.radio) { color: var(--text-soft); font-size: var(--t-small); margin-left: auto; text-align: right; }
/* Best times: the windows behind the suggested time (webapp/_best_times.html). Quiet, under the options. */
.besttimes { display: flex; align-items: flex-start; gap: var(--s-2); margin: var(--s-2) 0 0; font-size: var(--t-small); color: var(--text-soft); line-height: 1.45; }
.besttimes[hidden] { display: none; }
.besttimes .i { flex: none; margin-top: calc(var(--s-1) / 2); color: var(--accent); }
.besttimes__text { min-width: 0; overflow-wrap: anywhere; }
.besttimes__held { color: var(--text); }
.besttimes__others { display: block; margin-top: var(--s-1); }
.besttimes__item { display: inline-block; max-width: 100%; }
.besttimes__item:not(:last-child)::after { content: ","; margin-inline-end: var(--s-1); }
.besttimes__item .num { color: var(--text); font-weight: 600; }
.besttimes__there { color: var(--text-muted); }

/* preview card (approximate platform look, no platform logos) */
.pv { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.pv__head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3); }
.pv__av { width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--copy-yellow); color: var(--carbon-950); display: grid; place-items: center; font-weight: 800; font-size: .75rem; flex: none; }
.pv__name { font-weight: 700; font-size: .9375rem; line-height: 1.2; }
.pv__img { aspect-ratio: 1; }
.pv__img img { width: 100%; height: 100%; object-fit: cover; }
.pv__text { padding: var(--s-3) var(--s-4) var(--s-4); font-size: .9375rem; line-height: 1.5; }
.pv__text .more { color: var(--ink-soft); }
.pvs { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-1) 0 var(--s-3); scrollbar-width: none; }
.pvs .pv { flex: 0 0 72%; scroll-snap-align: start; box-shadow: var(--sh-1); }
.pvs .pv__img { aspect-ratio: 4 / 3; }
.pvs .pv__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; margin-bottom: var(--s-4); }
.pvlabel { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3) 0; font-size: var(--t-micro); font-weight: 700; color: var(--ink-soft); }
.pv__text { white-space: pre-line; overflow-wrap: anywhere; }
.cmp__side .inner > * { min-width: 0; }
.pvbox { min-width: 0; }
.pvtabs { display: none; }
.pvbox .pv[hidden], .pvbox .pv__img[hidden], .pvtabs [hidden] { display: none; }
/* desktop: one card at a time, picked by the tabs (without scripts every card shows, each with its name) */
@media (min-width: 60em) {
  .pvbox--tabs .pvtabs { display: flex; margin-bottom: var(--s-4); }
  .pvbox--tabs .pvlabel { display: none; }
  .pvbox--tabs .pv:not(.is-active) { display: none; }
  .pvs { display: grid; gap: var(--s-4); overflow: visible; margin: 0; padding: 0; }
  .pvs .pv { box-shadow: var(--sh-2); }
  .pvs .pv__img { aspect-ratio: 1; }
  .pvs .pv__text { display: block; overflow: visible; padding-bottom: var(--s-4); margin-bottom: 0; }
}

/* approval record: the pink copy, the one place the duplicate-book metaphor stays in the app */
.record { background: var(--copy-pink); border-radius: var(--r-md); padding: var(--s-4) var(--s-4); }
.record__head { display: flex; justify-content: space-between; font-weight: 720; font-size: .9375rem; margin-bottom: var(--s-2); }
.record dl { margin: 0; display: grid; grid-template-columns: auto var(--col); gap: var(--s-1) var(--s-3); font-size: var(--t-small); }
.record dt { color: var(--record-ink); font-weight: 640; }
.record dd { margin: 0; font-weight: 620; color: var(--ink); }

/* posts list */
.daygroup { margin: var(--s-5) var(--s-1) var(--s-2); font-size: .9375rem; font-weight: 720; display: flex; justify-content: space-between; color: var(--ink); }
.daygroup span { color: var(--text-soft); font-weight: 600; font-size: var(--t-small); }
.list { container-type: inline-size; }
.prow .c-when, .prow .c-ch, .prow .c-st, .prow .c-go { display: none; }
@container (min-width: 41.25em) {
  .prow { display: grid; grid-template-columns: 3.25rem var(--col) 9.375rem 6.875rem 11.25rem 1.25rem; }
  .prow .t-when, .prow .t-ch, .prow .t-st { display: none; }
  .prow .c-when, .prow .c-ch, .prow .c-st { display: flex; align-items: center; }
  .prow .c-when { white-space: nowrap; font-weight: 640; font-variant-numeric: tabular-nums; }
  .prow .c-go { display: block; color: var(--rule-strong); }
}

/* fit at 360 to 390 px */
.btn--block { white-space: normal; text-align: center; }
.pm--sm .tick { display: none; }
.pm-stack .pm + .pm { margin-left: calc(var(--s-1) * -1); }
.ptile .chip { display: none; }
@media (min-width: 60em) { .ptile .chip { display: inline-flex; } }
.ptile, .ptile > div { min-width: 0; }

/* =========================================================
   Round 2: calendar, settings, subscription
   ========================================================= */

/* segmented view switch (Μήνας / Εβδομάδα / Λίστα) */
.seg { display: inline-flex; gap: var(--s-px); padding: var(--s-1); border-radius: var(--r-lg); background: var(--carbon-100); }
.seg a { min-height: 2.5rem; padding: 0 var(--s-4); border-radius: var(--r-md); display: inline-flex; align-items: center; color: var(--ink-soft); font-weight: 660; text-decoration: none; font-size: .9375rem; }
.seg a.is-on { background: var(--surface); color: var(--accent); box-shadow: var(--sh-1); }
@media (max-width: 37.4375em) { .seg { display: flex; } .seg a { flex: 1; justify-content: center; padding: 0 var(--s-2); } }

/* status colour, shared by dots, entries and the legend */
.st-ok { --st: var(--ok); --st-bg: var(--ok-bg); }
.st-sch { --st: var(--accent); --st-bg: var(--carbon-50); }
.st-wait { --st: var(--wait); --st-bg: var(--wait-bg); }
.st-fail { --st: var(--fail); --st-bg: var(--fail-bg); }
.st-draft { --st: var(--rule-strong); --st-bg: var(--muted-bg); }
.st-cancel { --st: var(--rule-strong); --st-bg: var(--muted-bg); }

/* calendar */
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.calbar .month { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 2.75rem; padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: transparent; font-size: 1.25rem; font-weight: 740; cursor: pointer; }
.calbar .month:hover { background: var(--accent-tint); }
.calbar .grow { flex: 1; }
.cal { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, var(--col)); }
.cal__dow { border-bottom: var(--bw) solid var(--line); }
.cal__dow span { text-align: center; padding: var(--s-2) 0; font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.cday { position: relative; min-height: 3.625rem; padding: var(--s-2) var(--s-px) var(--s-2); display: flex; flex-direction: column; align-items: center; gap: var(--s-1); border-right: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.cday:nth-child(7n) { border-right: 0; }
.cal__grid .cday:nth-last-child(-n + 7) { border-bottom: 0; }
.cday .n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 680; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.cday.is-out { background: var(--surface-sunk); }
.cday.is-out .n { color: var(--text-muted); font-weight: 520; }
.cday.is-today .n { background: var(--accent); color: var(--on-accent); }
.cday.is-sel { background: var(--accent-tint); box-shadow: inset 0 0 0 0.125rem var(--accent); }
.dots { display: flex; gap: var(--s-px); height: 0.375rem; }
.dots i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--st); }
.ents, .cday .add { display: none; }
@media (min-width: 60em) {
  .cday { min-height: 7.25rem; align-items: stretch; padding: var(--s-2); gap: var(--s-1); }
  .cday .n { width: 1.75rem; height: 1.75rem; font-size: .875rem; }
  .cday .dots { display: none; }
  .ents { display: grid; gap: var(--s-px); }
  .ent { display: flex; align-items: center; gap: var(--s-1); min-width: 0; padding: var(--s-1) var(--s-2) var(--s-1) var(--s-1); border-radius: var(--r-sm); background: var(--st-bg); font-size: .75rem; line-height: 1.2; color: var(--ink); }
  .ent img { width: 1.25rem; height: 1.25rem; border-radius: var(--r-xs); flex: none; }
  /* the time never breaks digit by digit; in a narrow cell the title gives way (it is one tap away in the day sheet) */
  .ent b { flex: none; white-space: nowrap; font-weight: 720; font-variant-numeric: tabular-nums; color: var(--st); }
  .ent span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ents .more { font-size: .75rem; font-weight: 660; color: var(--ink-soft); padding-left: var(--s-1); }
  .cday.is-hover { background: var(--row-hover); }
  .cday.is-hover .add { display: inline-flex; align-items: center; gap: var(--s-1); margin-top: auto; align-self: flex-start; min-height: 2rem; padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--surface); border: var(--bw-mid) solid var(--line-strong); color: var(--accent); font-weight: 680; font-size: .8125rem; }
  .cday.is-hover .add .i { width: 0.875rem; height: 0.875rem; stroke-width: 2.6; }
}
.legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-3); font-size: var(--t-micro); color: var(--ink-soft); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: var(--s-1); }
.legend i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--st); }
.dayhead { display: flex; align-items: baseline; justify-content: space-between; margin: var(--s-5) var(--s-1) var(--s-2); }
.dayhead h2 { font-size: 1.0625rem; }

/* month and year picker: bottom sheet on phones, popover on desktop */
.months { display: grid; grid-template-columns: repeat(3, var(--col)); gap: var(--s-2); }
.months button { min-height: 3.25rem; border-radius: var(--r-md); border: var(--bw-mid) solid var(--line); background: var(--surface); font-weight: 640; font-size: .9375rem; position: relative; cursor: pointer; }
.months button.has::after { content: ""; position: absolute; left: 50%; bottom: 0.4375rem; width: 0.3125rem; height: 0.3125rem; margin-left: calc(var(--s-px) * -1); border-radius: 50%; background: var(--carbon-300); }
.months button.is-now { border-color: var(--accent); color: var(--accent); }
.months button.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.months button.is-on::after { background: var(--copy-yellow-strong); }
.yearrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.yearrow strong { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
@media (min-width: 60em) {
  .sheet.pop { left: 18.75rem; top: 9.375rem; bottom: auto; right: auto; width: 23.75rem; border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-2), var(--sh-pop); }
  .scrim.light { background: var(--scrim-light); }
}
@media (max-width: 59.9375em) { .desk-sheet { display: none; } }

/* settings */
.set { display: grid; gap: var(--s-1); }
@media (min-width: 68.75em) { .set { grid-template-columns: 13.75rem var(--col); gap: var(--s-6); align-items: start; } }
.setnav { display: none; }
@media (min-width: 68.75em) {
  .setnav { display: grid; gap: var(--s-px); position: sticky; top: 2.5rem; }
  .setnav a { min-height: 2.5rem; display: flex; align-items: center; padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--ink-soft); font-weight: 620; text-decoration: none; }
  .setnav a.is-on { background: var(--accent-tint); color: var(--accent); }
}
.set h2.sh { font-size: 1.0625rem; margin: var(--s-5) var(--s-1) var(--s-2); }
.set section:first-child h2.sh { margin-top: 0; }
.lrow .val { color: var(--ink-soft); font-size: var(--t-small); margin-top: var(--s-px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .lab { font-weight: 640; }
.switch { width: 3.25rem; height: 2rem; border-radius: var(--r-pill); background: var(--rule); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--knob); box-shadow: var(--sh-1); transition: left .2s var(--ease); }
.switch.is-on { background: var(--accent); }
.switch.is-on::after { left: 1.4375rem; }
.lrow .ic { width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); flex: none; }
.lrow--danger .lab { color: var(--fail); }
.minimeter { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--t-small); color: var(--ink-soft); }
.minimeter .progress { width: 7.5rem; height: 0.375rem; flex: none; }
.backlink { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 2.5rem; color: var(--accent); font-weight: 660; text-decoration: none; margin: calc(var(--s-2) * -1) 0 var(--s-1) calc(var(--s-1) * -1); }
.backlink .i { width: 1.25rem; height: 1.25rem; }

/* subscription */
.planhead { padding: var(--s-5); display: grid; gap: var(--s-3); }
.planhead .row { align-items: flex-start; }
.planhead .row { flex-wrap: wrap; }
.planhead .grow { min-inline-size: 0; }
.planhead .pname { overflow-wrap: anywhere; font-size: 1.375rem; font-weight: 760; font-variation-settings: "FLAR" 100, "VOLM" 20; line-height: 1.2; }
.planhead .price { font-weight: 680; }
.usage { list-style: none; margin: 0; padding: 0; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.usage li { padding: var(--s-4) var(--s-4); display: grid; grid-template-columns: var(--col) auto; gap: var(--s-2) var(--s-3); align-items: baseline; }
.usage li + li { border-top: var(--bw) solid var(--line); }
.usage .lab { font-weight: 640; }
.usage .num { font-weight: 680; font-size: .9375rem; white-space: nowrap; }
.usage li[data-usage="channels"] { grid-template-columns: var(--col); }  /* the channel count is a sentence: its own line, wrapping */
.usage li[data-usage="channels"] .num { white-space: normal; }
.usage .num small { color: var(--ink-soft); font-weight: 520; font-size: .875rem; }
.usage .progress { grid-column: 1 / -1; height: 0.5rem; }
.usage .note { grid-column: 1 / -1; font-size: var(--t-small); color: var(--ink-soft); margin-top: calc(var(--s-px) * -1); }
/* ==========================================================================
   PLAN CARDS (owner 2026-11-26, branch plan-cards). One block, start to end, to ease merges.
   billing/templates/billing/_plan_cards.html; DESIGN.md "Plan cards". No px: tokens, rem, em, cqi.
   Each plan has an ink (its name, key line and ticks) and a wash (the top of its card's gradient), both
   built from existing role tokens, so Night and Day follow the theme. Contrast (WCAG 2.2, ink on wash):
   Day Basic 5.1, Plus 7.4, Max 5.4; Night Basic 8.0, Plus 5.9, Max 10.0; body text and --text-soft 6.3+ on every
   wash (see DESIGN.md).
   ========================================================================== */
:root {
  --t-price: clamp(1.75rem, 1.25rem + 1.6cqi, 2.25rem);
  --plan-ring: 0 0 0 0.0625rem var(--accent);  /* doubles the popular card's accent border */
}
.plansec { container: plans / inline-size; margin-block-start: var(--s-6); }
.plansec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-block-end: var(--s-5); }
.plansec__intro { flex: 1 1 20rem; min-inline-size: 0; display: grid; gap: var(--s-1); }
.plansec__intro h2 { font-size: var(--t-heading); font-weight: 740; }

/* Monthly / Yearly: two links, so the switch works without JS (?period=year is a second server-drawn state). */
.periodswitch { display: inline-flex; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-pill); background: var(--accent-tint); border: var(--bw) solid var(--line); }
.periodswitch__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-block-size: 2.75rem;
  padding-inline: var(--s-4); border-radius: var(--r-pill); color: var(--text-soft); font-weight: 660;
  font-size: 0.9375rem; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease);
}
.periodswitch__opt:hover { color: var(--accent); }
.periodswitch__opt.is-on { background: var(--surface); color: var(--accent); box-shadow: var(--sh-1); }
.periodswitch__free { padding: var(--s-px) var(--s-2); border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-size: var(--t-micro); font-weight: 700; }
@container plans (width < 30em) {
  .periodswitch { display: flex; inline-size: 100%; }
  .periodswitch__opt { flex: 1 1 0; min-inline-size: 0; padding-inline: var(--s-2); flex-wrap: wrap; }
}

/* The grid: 1 column on phones, 2 on tablets, 4 when there is room. Every card spans five rows of the grid and lays
   its parts on them (subgrid), so names, prices, buttons, key lines and lists start at the same height across a row. */
.plans { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), var(--col)); gap: var(--s-5) var(--s-4); }
@container plans (width >= 34em) { .plans { --cols: 2; } }
@container plans (width >= 52em) { .plans { --cols: 4; gap: var(--s-5) var(--s-3); } }
.plan {
  grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: var(--s-4); min-inline-size: 0;
  padding: var(--s-5); border-radius: var(--r-lg); border: var(--bw) solid var(--line); box-shadow: var(--sh-1);
  background: var(--surface);  /* one surface for every plan, ranked by price only (AI-look rules: no per-tier washes) */
}
@container plans (width >= 52em) { .plan { padding: var(--s-5) var(--s-4); } }
/* The popular card: an accent border thickened by a ring of the same colour (a shadow, so its rows stay where the
   other cards' rows are; the border alone still shows in forced colours). */
.plan.is-popular { border-color: var(--accent); box-shadow: var(--plan-ring), var(--sh-2); }

.plan__head { display: grid; gap: var(--s-1); align-content: start; min-inline-size: 0; }
.plan__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.plan__name { font-size: 1.625rem; line-height: 1.1; font-weight: 770; letter-spacing: -0.02em; color: var(--text); font-variation-settings: "FLAR" 100, "VOLM" 20; }
.plan__badge { display: inline-flex; align-items: center; min-block-size: 1.5rem; padding-inline: var(--s-2); border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 700; line-height: 1.2; }
.plan__badge--popular { background: var(--accent); color: var(--on-accent); }
.plan__badge--current { background: var(--ok-bg); color: var(--ok); }
.plan__for { font-size: var(--t-small); color: var(--text-soft); }

.plan__price { display: grid; gap: var(--s-1); align-content: start; min-inline-size: 0; }
.plan__amount { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); }
.plan__big { font-size: var(--t-price); line-height: 1.05; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.plan__per { font-size: var(--t-small); font-weight: 600; color: var(--text-soft); }
.plan__was { flex-basis: 100%; font-size: 1rem; font-weight: 650; color: var(--text-soft); text-decoration-thickness: var(--bw-strong); font-variant-numeric: tabular-nums; }
.plan__bill { font-size: var(--t-micro); color: var(--text-soft); }

.plan__act { display: grid; gap: var(--s-2); align-content: start; }
.plan__act .btn { flex-wrap: wrap; text-wrap: balance; }
.plan__save { padding: var(--s-px) var(--s-2); border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); font-size: var(--t-micro); font-weight: 700; }
.plan__note { font-size: var(--t-micro); color: var(--text-soft); text-align: center; }

/* The allowance a customer compares first, with the lines under it drawn as a small tree. */
.plan__key { display: grid; gap: var(--s-2); align-content: start; padding-block-start: var(--s-4); border-block-start: var(--bw) solid var(--line); }
.plan__keyline { display: flex; align-items: flex-start; gap: var(--s-2); font-weight: 720; color: var(--ink); }
.plan__keyline .i { inline-size: 1.25em; block-size: 1.25em; margin-block-start: 0.05em; }
.plan__tree { list-style: none; margin: 0; padding: 0; margin-inline-start: 0.6em; display: grid; gap: var(--s-1); }
.plan__tree li { position: relative; padding-inline-start: 1.25em; font-size: var(--t-small); color: var(--text-soft); }
.plan__tree li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: -0.35em; inline-size: 0.75em; block-size: 1.1em;
  border-inline-start: var(--bw-strong) solid var(--rule-strong); border-block-end: var(--bw-strong) solid var(--rule-strong);
  border-end-start-radius: 0.4em;
}
.plan__tree li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 0.6em -0.35em;
  border-inline-start: var(--bw-strong) solid var(--rule-strong);
}

.plan__list { display: grid; gap: var(--s-4); align-content: start; }
.plan__inc { font-size: var(--t-small); font-weight: 700; color: var(--text); }
.plan__group { display: grid; gap: var(--s-2); }
.plan__group h4 { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.01em; color: var(--text-muted); }
.plan__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.plan__group li { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-small); min-inline-size: 0; }
.plan__group li > span { min-inline-size: 0; }
.plan__group .i { inline-size: 1.15em; block-size: 1.15em; margin-block-start: 0.2em; stroke-width: 2.6; }
.plan__yes .i { color: var(--ink); }
.plan--free .plan__yes .i { color: var(--ok); }
.plan__no { color: var(--text-muted); }
/* ======================= END PLAN CARDS ======================= */
.subgrid { display: grid; gap: var(--s-2); }
@media (min-width: 68.75em) { .subgrid { grid-template-columns: minmax(0, 1.15fr) var(--col); gap: var(--s-6); align-items: start; } }
.planline { font-size: var(--t-small); color: var(--ink-soft); margin: calc(var(--s-px) * -1) var(--s-1) var(--s-4); }
.planline a { font-weight: 640; }
.planwarn { margin-block-end: var(--s-4); }
.planwarn p { margin: 0; }
.calbar { flex-wrap: nowrap; }
@media (max-width: 37.4375em) { .calbar .month { font-size: 1.125rem; padding: 0 var(--s-2); } }
@media (max-width: 59.9375em) { .calbar .today { display: none; } }
.minimeter { flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.minimeter .progress { width: 100%; order: 2; }
@media (max-width: 37.4375em) { .inv .chip { display: none; } }
@media (min-width: 60em) { .cancelwrap { max-width: 35rem; } }

/* =========================================================
   Shell additions (not in the mockups: they are static pages)
   ========================================================= */
.skip { position: absolute; left: -624.9375rem; top: 0.5rem; }
.skip:focus { left: 0.5rem; z-index: 60; background: var(--surface); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.app > div { display: flex; flex-direction: column; min-height: 100dvh; }
.app main.main { flex: 1; width: 100%; }
a.switcher { color: inherit; text-decoration: none; }
.switcher .i { color: var(--ink-soft); }
.sidebar .nav a span:not(.cnt) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .grow { min-width: 0; }
.topbar .logo { margin-right: auto; }

/* focus shell (composer): no sidebar, no tabs, a close button with the serial and the status */
.topbar--focus { display: none; }
.shell--focus .sidebar, .shell--focus .tabbar, .shell--focus .topbar--app { display: none; }
.shell--focus.app { display: block; }
.shell--focus > div { background: var(--bg); }
.shell--focus .topbar--focus { display: flex; }
.shell--focus .main { padding-bottom: var(--s-6); max-width: none; }
@media (min-width: 60em) {
  .shell--focus .topbar--focus { display: flex; height: 4.25rem; padding: 0 var(--s-6); }
  .shell--focus .main { padding: 0; }
}

/* sheets: a root that holds the scrim and the sheet. Without JS a ?sheet=<id> link renders it open. */
.sheet-root[hidden] { display: none; }
.scrim { cursor: default; }
.sheet { animation: sheet-up .24s var(--ease); }
@keyframes sheet-up { from { transform: translateY(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 60em) { @keyframes sheet-up { from { transform: translateX(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } } }
.sheet__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.sheet__head h2 { flex: 1; font-size: var(--t-heading); font-weight: 700; }
.has-sheet { overflow: hidden; }
.av { width: 2rem; height: 2rem; border-radius: var(--r-md); background: var(--copy-yellow); color: var(--carbon-950); display: grid; place-items: center; font-weight: 800; font-size: .8125rem; flex: none; }
.lrow .i.tick { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

/* toasts: server messages as one live region */
.toasts { position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar) + 0.75rem + env(safe-area-inset-bottom)); display: grid; gap: var(--s-2); justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s-3); max-width: 32.5rem; width: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--toast-bg); color: var(--toast-fg); box-shadow: var(--sh-2); font-weight: 600; }
.toast--error { background: var(--toast-fail-bg); color: var(--toast-fail-fg); }
.toast--warning { background: var(--toast-wait-bg); color: var(--toast-wait-fg); }
.toast__text { flex: 1; min-width: 0; }
.toast .iconbtn { color: inherit; width: 2.25rem; height: 2.25rem; }
.toast .iconbtn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
@media (min-width: 60em) { .toasts { left: calc(var(--side) + 1.5rem); bottom: 1.5rem; justify-items: start; } }
/* The time zone question (webapp/tz.js): at the top, so it never sits on a toast or the action bar. */
.tznote { position: fixed; z-index: 50; top: calc(var(--s-3) + env(safe-area-inset-top)); inset-inline: var(--gutter); margin-inline: auto; max-width: 32.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--toast-bg); color: var(--toast-fg); box-shadow: var(--sh-2); font-weight: 600; }
.tznote[hidden] { display: none; }
.tznote__text { flex-basis: 100%; min-width: 0; }
.tznote__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tznote .btn--quiet { color: inherit; }
.shell--focus ~ .toasts { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.sprite { position: absolute; }

/* list rows: long text (notifications) wraps instead of cutting off; unread rows are marked */
.lrow__title--wrap { white-space: normal; overflow: visible; }
.lrow.is-unread { background: var(--accent-tint); }
.lrow.is-unread .lrow__title { font-weight: 720; }
.lrow.is-unread .lrow__title { font-weight: 720; }

/* OAuth consent page */
.consent { max-width: 40rem; }
.consent__scopes { list-style: disc; padding-left: calc(var(--s-5) + var(--s-4)); display: grid; gap: var(--s-1); }
.consent__choice { border: var(--bw) solid var(--line); display: grid; gap: var(--s-3); margin: 0; }
.consent__choice legend { padding: 0 var(--s-2); }
.consent .check input { width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--accent); flex: none; }

/* =========================================================
   Flow shell and account forms (sign-up, sign-in, legal acceptance, allauth pages)
   ========================================================= */
.ob ~ .toasts { left: var(--gutter); bottom: calc(6rem + env(safe-area-inset-bottom)); justify-items: center; }
@media (min-width: 60em) { .ob ~ .toasts { left: 22.75rem; bottom: 1.5rem; justify-items: start; } }
.ob__body { padding-bottom: var(--s-10); }
@media (min-width: 60em) { .ob__body { padding-bottom: var(--s-5); } }
.ob__body > * + .form, .ob__body > .title + .soft { margin-top: var(--s-4); }
.flow-p { margin-top: var(--s-3); }
.flow-h2 { margin-top: var(--s-5); }
.flow-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.flow-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.rule { border: 0; border-top: var(--bw) solid var(--line); margin: var(--s-5) 0; }

/* the form: fields stack, the submit buttons close it */
.form { display: grid; gap: var(--s-4); }
.form-actions, .btn-group { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.btn-group { margin-top: 0; }
.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); min-inline-size: 0; }
/* LinkedIn's link preview: three fields that only work together, boxed so they read as one optional group. */
.linkprev { padding: var(--s-4); border: var(--bw) solid var(--line); border-radius: var(--r-md); }
.linkprev > legend { padding-inline: var(--s-1); }
.linkprev > .q { margin: 0; }
.form .field + .field, .form .field + .fieldset, .form .fieldset + .field { margin-top: 0; }

/* allauth and Django inputs carry no class: style them like .input inside .fauto */
.fauto input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .fauto select, .fauto textarea {
  width: 100%; min-height: 3.25rem; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font: inherit; font-size: 1.0625rem;
  border: var(--bw-mid) solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.fauto input:focus, .fauto select:focus, .fauto textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 var(--bw-ring) var(--focus-halo); }
.fauto input[type=checkbox], .fauto input[type=radio] { width: 1.5rem; height: 1.5rem; margin: var(--s-px) 0 0; accent-color: var(--accent); flex: none; }
.fauto--check .check { margin: 0; min-height: 2.75rem; align-items: center; }
.fauto--radio { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fauto--radio legend { padding: 0; }
.fauto--radio div div { display: grid; gap: var(--s-2); }
.fauto--radio label { display: flex; align-items: center; gap: var(--s-3); min-height: 3.25rem; padding: 0 var(--s-4); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-weight: 600; cursor: pointer; }
.fauto--radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 var(--bw) var(--accent); }
.input-wrap input { padding-right: var(--s-10); }
.has-error input:not([type=checkbox]):not([type=radio]), .has-error .input { border-color: var(--fail); }
.err { display: block; color: var(--fail); font-size: var(--t-small); font-weight: 640; margin-top: var(--s-2); }
.err ul, .errorlist { list-style: none; margin: 0; padding: 0; }
.fauto .hint ul { margin: var(--s-1) 0 0; padding-left: 1.25em; }

/* messages inside the flow and account pages */
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: var(--bw-mid) solid var(--line-strong); background: var(--carbon-50); color: var(--ink); line-height: 1.45; font-weight: 560; }
.alert--ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.alert--wait { background: var(--surface); border-color: var(--wait); color: var(--wait); }
.alert--fail { background: var(--fail-bg); border-color: var(--fail); color: var(--fail); }
.ob__body > .alert, .manage > .alert { margin-top: var(--s-4); }

/* account management pages (email, password, 2FA, delete) */
.manage { display: grid; gap: var(--s-4); max-width: 40rem; }
.manage__back { justify-self: start; }
.manage__nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-1); padding: var(--s-1); border-radius: var(--r-lg); background: var(--carbon-100); justify-self: start; max-width: 100%; }
.manage__nav a { min-height: 2.5rem; padding: 0 var(--s-4); border-radius: var(--r-md); display: inline-flex; align-items: center; color: var(--ink-soft); font-weight: 660; text-decoration: none; font-size: .9375rem; }
.manage__nav a[aria-current=page] { background: var(--surface); color: var(--accent); box-shadow: var(--sh-1); }
.manage .title { margin-top: var(--s-2); }
.panel + .panel { margin-top: var(--s-4); }
.panel__actions { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); }
.provider-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: var(--bw) solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.table th { color: var(--accent); font-weight: 700; }
.details { border-top: var(--bw) solid var(--line); padding-block: var(--s-2); }
.details summary { cursor: pointer; min-height: 3rem; display: flex; align-items: center; font-weight: 650; }
.manage code, .ob__body code { font-variant-numeric: tabular-nums; background: var(--carbon-50); padding: var(--s-px) var(--s-2); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.danger-h { font-size: 1rem; font-weight: 700; margin: var(--s-5) 0 var(--s-2); }
.danger-list { display: grid; gap: var(--s-1); margin: 0 0 var(--s-4); padding-left: 1.25em; line-height: 1.5; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { min-height: 3rem; display: flex; align-items: center; border-bottom: var(--bw) solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }

/* sign-up steps 1 and 2: the form under the lead, the waiting card, the actions list */
.form--lead, .form-actions--lead { margin-top: var(--s-6); }
.ob__body > .alert + .form--lead { margin-top: var(--s-4); }
.sidebar__title { margin-bottom: var(--s-2); }
.sidebar__intro { margin-bottom: var(--s-5); }
.progress--s1 > i { width: 10%; }
.progress--s2 > i { width: 30%; }
.progress--s3 > i { width: 50%; }
.progress--s4 > i { width: 70%; }
.progress--s5 > i { width: 90%; }
.flow-note { margin-top: var(--s-5); }
.ink { color: var(--ink); }
.wait { margin-top: var(--s-5); padding: var(--s-4); display: flex; gap: var(--s-3); align-items: center; }
/* still, no pulse (AI-look rule): the text says the page is waiting */
.wait-dot { inline-size: 2.5rem; block-size: 2.5rem; border-radius: var(--r-md); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); flex: none; }
.wait-dot.is-still { color: var(--text-muted); }
.wait-line { margin-top: var(--s-3); }
.wait-line[hidden] { display: none; }
.list--gap { margin-top: var(--s-3); }
.ob .actionbar__note { text-align: center; }
@media (max-width: 59.9375em) { .ob__body:has(+ .actionbar) { padding-bottom: var(--s-10); } }

/* sign-up step 4: the 2FA step and the recovery codes */
.sec { list-style: none; margin: var(--s-5) 0 0; padding: 0; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); }
.sec li { display: flex; gap: var(--s-3); padding: var(--s-4); }
.sec li + li { border-top: var(--bw) solid var(--line); }
.sec b { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; font-size: .875rem; }
.sec li > div { flex: 1; min-width: 0; }
.sec__app { margin-top: var(--s-3); }
.sec__app p { margin-top: var(--s-2); }
.sec__key { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sec__scan { display: flex; gap: var(--s-4); align-items: center; margin-top: var(--s-3); }
.sec__scan p { max-width: 24ch; }
.sec__fold { margin-top: var(--s-2); }
.sec__fold summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--accent); font-weight: 640; cursor: pointer; }
.qr { width: 10.5rem; height: 10.5rem; padding: var(--s-2); background: var(--qr-bg); border-radius: var(--r-md); border: var(--bw) solid var(--line); box-sizing: content-box; }
.qr svg { display: block; width: 100%; height: 100%; }
.sec__code .err { margin-top: var(--s-2); }
.otp-input { display: block; width: 100%; max-width: 15rem; min-height: 3.5rem; margin-top: var(--s-3); padding: var(--s-2) var(--s-4); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.5rem; font-weight: 720; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.otp-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 var(--bw-ring) var(--focus-halo); }
.has-error .otp-input { border-color: var(--fail); }
.sec__after { margin-top: var(--s-4); }
.codes { list-style: none; margin: var(--s-4) 0 0; padding: var(--s-4); display: grid; grid-template-columns: var(--col) var(--col); gap: var(--s-2) var(--s-4); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); font-size: 1.0625rem; font-weight: 700; }
.codes li { overflow-wrap: anywhere; }
.codes__tools { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.ob__body > .alert + .codes { margin-top: var(--s-4); }

/* connect pickers (Facebook Pages, LinkedIn Pages, Google profiles): one tickable list row per account */
.pickhead { display: grid; gap: var(--s-2); max-width: 44rem; margin-bottom: var(--s-5); }
.pick { max-width: 44rem; margin-bottom: var(--s-4); }
.lrow--pick { cursor: pointer; }
.lrow--pick:has(.pick__box:checked) { background: var(--accent-tint); }
.lrow--pick:has(.pick__box:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: -0.1875rem; }
.lrow--child { padding-left: var(--s-7); }
.pick__box { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--accent); margin: 0; }
.pickfine { display: flex; gap: var(--s-2); align-items: flex-start; max-width: 44rem; }
@media (min-width: 60em) { .pickpage { max-width: 44rem; margin: 0 auto; padding: var(--s-7) var(--s-5) var(--s-6); } }

/* ---------- Channels: meter, tiles, connect and detail sheets (docs/design/v2/channels*.html) ---------- */
.main > .meter, .channels__meter .meter { margin-bottom: var(--s-3); }
.channels__meter { margin: var(--s-5) 0 var(--s-4); }
.ptile__top { justify-content: space-between; }
.section-head--tiles { margin-top: var(--s-5); }
.soonrow { list-style: none; padding: 0; }
.soonrow .item__link { display: flex; align-items: center; gap: var(--s-2); color: inherit; text-decoration: none; }
.channels__lock { margin-top: var(--s-5); display: flex; gap: var(--s-2); align-items: center; }
.sr-only { position: absolute; width: var(--bw); height: var(--bw); margin: calc(var(--s-px) * -1); padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sheet__top { margin-bottom: var(--s-4); }
.sheet__top .heading { margin: 0; }
.facts { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-5); display: grid; gap: var(--s-2); font-size: var(--t-small); color: var(--ink-soft); }
.facts li { display: flex; gap: var(--s-2); }
.facts .i { color: var(--accent); margin-top: var(--s-px); flex: none; }
.radio-dot { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 0.125rem solid var(--rule-strong); flex: none; background: var(--surface); }
.opt:has(.opt__input:checked) .radio-dot { border: 0.4375rem solid var(--accent); }
.opt--row { min-height: 0; flex-direction: row; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.connectform__after { text-align: center; margin-top: var(--s-3); }
.accts { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.acct { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: var(--bw) solid var(--line); }
.acct:first-child { border-top: 0; padding-top: 0; }
.acct__name { font-weight: 700; overflow-wrap: anywhere; }
.reason { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.4; }
.reason--wait { color: var(--wait); }
.acct__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-start; }
.acct__drop > summary { list-style: none; cursor: pointer; }
.acct__drop > summary::-webkit-details-marker { display: none; }
.acct__confirm { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
@media (min-width: 60em) {
  .ob__body--wide { max-width: 45rem; }
  .ob__main:has(.ob__body--wide) .actionbar > .inner { max-width: 40rem; }
  .ob__main:has(.ob__body--wide) .actionbar__note { text-align: left; }
}
.opt__input:checked + .radio-dot { border: 0.4375rem solid var(--accent); }

/* Αρχική (docs/design/v2/home-first.html, home-week.html) */
.section-head--first { margin-top: var(--s-5); }
.how--gap { margin-top: var(--s-3); }
.pm--ok { background: var(--ok); color: var(--on-ok); }
.pm--num { background: var(--copy-yellow); color: var(--carbon-950); }
.chanstrip { padding: var(--s-3) var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.thumb--lg { width: 4rem; height: 4rem; }
.attcard .reason { margin: 0; }
.alert-ic--fail { background: var(--fail-bg); color: var(--fail); }
.prow .t-st { margin-top: var(--s-2); }

/* composer fields (the copy sections of every platform) */
.message { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-weight: 620; background: var(--accent-tint); }
.message--warning { background: var(--surface); color: var(--wait); border: var(--bw) solid var(--warn-line); }  /* no cream area (AI-look rules) */
.has-error .textbox, .q--error input, .q--error select, .q--error textarea { border-color: var(--fail); }
.counter { font-variant-numeric: tabular-nums; }
.counter--warn { color: var(--fail); font-weight: 700; }
.textbox__foot { min-height: 2.75rem; flex-wrap: wrap; column-gap: var(--s-3); }
.choices--wrap { flex-wrap: wrap; overflow: visible; }
a.choice { text-decoration: none; }
.choice:has(input:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.choice .tick { display: none; }
.choice:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.choice:has(input:checked) .tick { display: inline; }
.choice.is-off { cursor: default; }
a.choice.is-off { cursor: pointer; }
.pick__soon { margin-top: var(--s-2); font-size: var(--t-small); color: var(--text-soft); }
/* UX laws (Hick, progressive disclosure): channels that cannot be chosen now wait under one disclosure below the picker */
.pick__off { margin-top: var(--s-2); }
.pick__off > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); color: var(--accent); font-size: var(--t-small); font-weight: 640; cursor: pointer; }
.pick__off > summary::-webkit-details-marker { display: none; }
.pick__off[open] .pick__chev { transform: rotate(180deg); }
.pick__off > .choices { margin-top: var(--s-2); }
/* UX laws (progressive disclosure): a copy's own text box shows only once "Change it only here" is ticked; the post text goes out until then */
.own-desc:has(.same input[type="checkbox"]:not(:checked)) > textarea { display: none; }
.check input[type=checkbox] { width: 1.5rem; height: 1.5rem; margin: 0; flex: none; accent-color: var(--accent); }
.check { align-items: center; min-height: 2.75rem; margin-top: var(--s-2); }
.media { flex-wrap: wrap; align-items: flex-start; }
.media__items { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.media .ph .thumb { width: 100%; height: 100%; border-radius: 0; display: block; }
.media .ph .x { border: 0; cursor: pointer; padding: 0; min-width: 0; }
.ph__move { position: absolute; left: 0.25rem; bottom: 0.25rem; right: 0.25rem; display: flex; justify-content: space-between; }
.ph__move button { width: 2rem; height: 2rem; border-radius: 50%; border: 0; padding: 0; background: var(--overlay); color: var(--on-overlay); display: grid; place-items: center; cursor: pointer; }
.ph__move button[disabled] { opacity: .35; cursor: default; }
.ph__move .i { width: 1rem; height: 1rem; stroke-width: 2.6; }
.media .add { cursor: pointer; font-weight: 640; font-size: var(--t-small); text-align: center; }
.media__zone.is-over .add { border-color: var(--accent); background: var(--accent-tint); }
.media__progress { display: grid; gap: var(--s-1); margin-bottom: var(--s-2); }
.media__progress progress { width: 100%; }
.whenopt { cursor: pointer; }
.whenopt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 var(--bw) var(--accent); }
.whenopt:has(input:checked) .radio { border: 0.4375rem solid var(--accent); }
.whenopt:has(input:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.when-row { display: grid; grid-template-columns: var(--col) var(--col); gap: var(--s-2); margin-top: var(--s-3); }
.when-row .input { min-width: 0; }
.copy { display: grid; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: var(--bw) solid var(--line); }
.copy__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); }
.copy__who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.copy__head h2 { font-size: 1rem; font-weight: 720; }
.copy__head p { color: var(--text-soft); font-size: var(--t-small); }
.copy-tabs { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.copy-tabs button { min-height: 2.75rem; padding: 0 var(--s-4); border-radius: var(--r-pill); border: var(--bw-mid) solid var(--line-strong); background: var(--surface); font-weight: 620; white-space: nowrap; cursor: pointer; }
.copy-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.issues-chip { font-size: var(--t-micro); font-weight: 680; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--wait-bg); color: var(--wait); white-space: nowrap; }
.issues-chip--ok { background: var(--ok-bg); color: var(--ok); }
.copy__issues { list-style: none; margin: 0 0 var(--s-3); padding: var(--s-3); display: grid; gap: var(--s-2); border-radius: var(--r-md); background: var(--wait-bg); color: var(--wait); font-size: var(--t-small); }
.copy__issues li { display: flex; gap: var(--s-2); align-items: flex-start; min-width: 0; }
.copy__issues li > span { min-width: 0; overflow-wrap: anywhere; }
.copy__issues .i { flex: none; margin-top: var(--s-px); }
.copy__issues a { color: inherit; font-weight: 680; }
.q { display: grid; gap: var(--s-2); border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.q__label { font-weight: 680; font-size: .9375rem; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); padding: 0; }
.q__label .counter { font-weight: 600; font-size: var(--t-small); color: var(--text-soft); }
.q__hint { font-size: var(--t-small); color: var(--text-soft); line-height: 1.45; }
.q input[type=text], .q input[type=url], .q input[type=date], .q input[type=time], .q select, .q textarea {
  width: 100%; min-height: 3.25rem; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: var(--bw-mid) solid var(--line-strong);
  background: var(--surface); font-size: 1.0625rem; font-family: inherit; color: inherit;
}
.q textarea { min-height: 7.5rem; line-height: 1.55; resize: vertical; }
.q input:focus, .q select:focus, .q textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 var(--bw-ring) var(--focus-halo); }
.checkline { display: grid; grid-template-columns: 1.5rem var(--col); gap: var(--s-3); align-items: flex-start; min-height: 2.75rem; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.checkline input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--accent); }
.checkline small { display: block; color: var(--text-soft); font-size: var(--t-small); margin-top: var(--s-px); }
.choice-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice-pills input { position: absolute; width: var(--bw); height: var(--bw); opacity: 0; }
.choice-pills label { display: inline-flex; flex-direction: column; justify-content: center; min-height: 2.75rem; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); border: var(--bw-mid) solid var(--line-strong); background: var(--surface); font-weight: 620; cursor: pointer; }
.choice-pills label small { color: var(--text-soft); font-weight: 500; font-size: var(--t-micro); }
.choice-pills input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 var(--bw) var(--accent); background: var(--accent-tint); }
.choice-pills input:focus-visible + label { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.choice-pills--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); }
.detect { display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--accent-tint); }
.detect span { display: block; color: var(--text-soft); font-size: var(--t-small); }
.same { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; color: var(--text-soft); font-size: var(--t-small); }
.same .checkline { grid-template-columns: 1.5rem auto; }
.more summary { display: flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; font-weight: 660; cursor: pointer; color: var(--accent); }
.fine, .tt-as { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-small); color: var(--text-soft); }
.tt-as { color: var(--ink); font-weight: 620; }
.row { display: flex; gap: var(--s-2); align-items: flex-start; }
.stack { display: grid; gap: var(--s-2); }
.stack--4 { gap: var(--s-4); margin-top: var(--s-3); }
.tt-preview { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tt-preview .thumb { position: relative; }
.thumb__dur { position: absolute; left: 0.25rem; bottom: 0.25rem; padding: var(--s-px) var(--s-2); border-radius: var(--r-sm); background: var(--overlay); color: var(--on-overlay); font-size: .6875rem; font-weight: 700; }
.tt-more { display: grid; gap: var(--s-3); padding-left: var(--s-6); }
.missing { color: var(--text-soft); font-style: italic; }
/* the approval record: one block per channel */
.record dl + dl { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--bw) dashed var(--record-line); }
.record dd { overflow-wrap: anywhere; }
.record .reason { margin-top: var(--s-2); color: var(--record-ink); }
.approve__say { font-weight: 660; margin-top: var(--s-3); }
.approve__fine { font-size: var(--t-small); color: var(--record-ink); margin-top: var(--s-2); line-height: 1.45; }
.approve__fine a { color: inherit; text-decoration: underline; }
.blocker { display: grid; gap: var(--s-1); margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); color: var(--fail); border: var(--bw) solid var(--fail-line); }
.blocker b { display: flex; gap: var(--s-2); align-items: center; }
.blocker a { color: var(--accent); font-weight: 660; margin-left: var(--s-2); }

/* Αναρτήσεις: the view switch, the filter chips and the variant rows (docs/design/v2/posts.html) */
.posts-seg { margin-bottom: var(--s-4); }
.posts-filters { margin-bottom: var(--s-1); }
.choice { text-decoration: none; }
.posts-more { text-align: center; margin-top: var(--s-4); }
.thumb { position: relative; }
.thumb .art { width: 100%; height: 100%; box-sizing: border-box; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vrow { position: relative; flex-wrap: wrap; }
.vrow:hover { background: var(--row-hover); }
.vrow__link { display: block; white-space: normal; color: inherit; text-decoration: none; }
.vrow__link::after { content: ""; position: absolute; inset: 0; }
.vrow .c-when, .vrow .c-ch, .vrow .c-st { display: none; }
.vrow__side { position: relative; z-index: 1; flex-basis: 100%; padding-left: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.vrow__side:empty { display: none; }
.vrow__side .retry { margin: 0; }
.vrow__note { position: relative; z-index: 1; flex-basis: 100%; margin: 0; padding-left: var(--s-8); }
.vrow .t-st { margin-top: var(--s-2); }
/* UX laws (uniform connectedness): the next channel of the same post hangs off the one above, joined by a line in the thumb column, no divider */
.list > li.vrow--cont { border-top-color: transparent; }
.vrow--cont > .thumb { visibility: hidden; }
.vrow--cont::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--s-4) + 1.5625rem); border-inline-start: var(--bw-strong) solid var(--line-strong); pointer-events: none; }
.vrow__chan { display: flex; align-items: center; gap: var(--s-2); min-block-size: var(--tap); color: var(--ink); font-size: var(--t-small); font-weight: 620; text-decoration: none; }
.vrow__chan > span:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
.vrow .vrow__chan { white-space: normal; }  /* the desktop row keeps titles on one line; a channel name wraps instead */
@container (min-width: 41.25em) {
  .vrow .t-when, .vrow .t-ch, .vrow .t-st { display: none; }
  .vrow .c-when, .vrow .c-ch, .vrow .c-st { display: flex; align-items: center; flex: none; }
  .vrow .c-when { width: 8.5rem; white-space: nowrap; font-weight: 640; font-variant-numeric: tabular-nums; }
  .vrow__link { white-space: nowrap; }
  .vrow .c-ch { width: 1.75rem; }
  .vrow .c-name { display: none; }
  .vrow .c-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-small); color: var(--text-soft); }
  .vrow .c-st { width: 11rem; }
  .vrow__side { flex: none; flex-basis: auto; padding-left: 0; width: 12.5rem; justify-content: flex-end; }
  .vrow__side:empty { display: block; }
}

@container (min-width: 62.5em) {
  .vrow .c-ch { width: 10.625rem; gap: var(--s-2); min-width: 0; }
  .vrow .c-name { display: block; }
}

/* Post page and delete page */
.pd { max-width: 44rem; display: grid; gap: var(--s-5); }
.pd .pagehead { margin-bottom: 0; }
.pd, .pd > * { min-width: 0; }
.pd__card { display: grid; grid-template-columns: var(--col); gap: var(--s-4); }
.pd__title { font-size: 1.1875rem; line-height: 1.3; margin-top: var(--s-2); }
.pd__text { white-space: pre-line; }
.pd__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.pd__approval { display: grid; grid-template-columns: auto var(--col); gap: var(--s-1) var(--s-4); margin: 0; padding: var(--s-4) var(--s-4); border-radius: var(--r-md); background: var(--carbon-50); font-size: var(--t-small); }
.pd__approval dt { color: var(--text-soft); }
.pd__approval dd { margin: 0; font-weight: 640; }

/* Comments under a sent copy (Plan 5b): read on demand, never stored; no profile pictures */
.cm { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: var(--bw) solid var(--line); }
.cm, .cm > * { min-width: 0; }
.cm__h { font-size: var(--t-body); }
.cm__list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.cm__item { display: grid; gap: var(--s-1); min-width: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--carbon-50); }
.cm__item--page { background: var(--accent-tint); }
.cm__who { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; margin: 0; }
.cm__name, .cm__headline, .cm__text { overflow-wrap: anywhere; margin: 0; }
.cm__text { white-space: pre-line; }
.cm__done { margin: 0; color: var(--accent); font-weight: 640; }
.cm__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-start; }
.cm__reply { min-width: 0; flex: 1 1 100%; }
.cm__reply > summary { display: inline-flex; list-style: none; cursor: pointer; }
.cm__reply > summary::-webkit-details-marker { display: none; }
.cm__form { display: grid; gap: var(--s-2); padding-top: var(--s-2); }

/* Results: the numbers of a post and of a channel, and the Results page */
.res { max-width: 44rem; display: grid; gap: var(--s-5); }
.res .pagehead { margin-bottom: 0; }
.res, .res > * { min-width: 0; }
.res .section-head { margin: 0; }
.res__card { display: grid; grid-template-columns: var(--col); gap: var(--s-4); }
.res__name { font-size: var(--t-heading); line-height: 1.3; overflow-wrap: anywhere; }
.res__dl { --grid-min: 7rem; --grid: var(--s-3) var(--s-4); margin: 0; padding: var(--s-4); border-radius: var(--r-md); background: var(--carbon-50); }
.res__dl > div { min-width: 0; }
.res__dl dt { color: var(--text-soft); font-size: var(--t-small); overflow-wrap: anywhere; }
.res__dl dd { margin: 0; font-size: var(--t-heading); font-weight: 720; overflow-wrap: anywhere; }
.res__one { display: grid; gap: var(--s-2); }
.pd .res__one { margin: 0; }
.res .lrow__end strong { font-size: var(--t-body); }
.thumb--icon { display: grid; place-items: center; color: var(--accent); background: var(--accent-tint); }
.retry { display: inline-block; margin: 0; }

/* calendar (task 14): the day number is the link that selects the day, stretched over the cell */
.calbar a.month { text-decoration: none; color: inherit; }
.calbar h2.month { margin: 0; }
.cday a.n { color: inherit; text-decoration: none; }
.cday a.n::after { content: ""; position: absolute; inset: 0; }
.cday.is-today a.n { color: var(--on-accent); }
.cday .ents { pointer-events: none; }
.cday .add { text-decoration: none; }
.months a.monthbtn { min-height: 3.25rem; border-radius: var(--r-md); border: var(--bw-mid) solid var(--line); background: var(--surface); font-weight: 640; font-size: .9375rem; position: relative; display: grid; place-items: center; color: inherit; text-decoration: none; }
.months a.monthbtn.has::after { content: ""; position: absolute; left: 50%; bottom: 0.4375rem; width: 0.3125rem; height: 0.3125rem; margin-left: calc(var(--s-px) * -1); border-radius: 50%; background: var(--carbon-300); }
.months a.monthbtn.is-now { border-color: var(--accent); color: var(--accent); }
.months a.monthbtn.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.months a.monthbtn.is-on::after { background: var(--copy-yellow-strong); }
.yearrow .iconbtn:empty { pointer-events: none; }
.weekday .dayhead { margin-top: var(--s-5); }
.weekday .dayhead .chip { vertical-align: middle; margin-left: var(--s-2); }
@media (min-width: 60em) {
  .cday:hover, .cday:focus-within { background: var(--row-hover); }
  .cday:hover .add, .cday:focus-within .add { display: inline-flex; align-items: center; gap: var(--s-1); margin-top: auto; align-self: flex-start; min-height: 2rem; padding: 0 var(--s-3); border-radius: var(--r-sm); background: var(--surface); border: var(--bw-mid) solid var(--line-strong); color: var(--accent); font-weight: 680; font-size: .8125rem; position: relative; z-index: 1; }
  .cday .add .i { width: 0.875rem; height: 0.875rem; stroke-width: 2.6; }
}
@media (max-width: 37.4375em) { .calbar h2.weektitle { font-size: 1rem; line-height: 1.25; } }

/* settings (task 15): rows that open an edit form, real switches, notes */
.set > div { min-width: 0; }
.setnav a.is-on { background: var(--accent-tint); color: var(--accent); }
.rowedit > summary { list-style: none; cursor: pointer; }
.rowedit > summary::-webkit-details-marker { display: none; }
.rowedit > summary:hover { background: var(--carbon-50); }
.rowedit[open] > summary .btn { background: var(--accent-tint); }
.rowedit__form { display: grid; gap: var(--s-3); padding: var(--s-1) var(--s-4) var(--s-4); border-top: var(--bw) solid var(--line); padding-top: var(--s-4); background: var(--carbon-50); }
.rowedit__form .check { margin: 0; }
.rowedit__form .btn { justify-self: start; }
.lrow .val--wrap { white-space: normal; overflow: visible; }
.wrapall { overflow-wrap: anywhere; word-break: break-word; }
.lrow .lab.wrapall { white-space: normal; }
.ic--yellow { background: var(--copy-yellow); color: var(--carbon-950); }
.ok { color: var(--ok); font-weight: 640; }
.setnote { margin: var(--s-2) var(--s-1) 0; }
.setnote--top { margin: calc(var(--s-px) * -1) var(--s-1) var(--s-3); }
.setact { margin-top: var(--s-3); }
.set section + section { margin-top: var(--s-2); }
label.lrow { cursor: pointer; position: relative; }
.sw { position: absolute; opacity: 0; width: 3.25rem; height: 2rem; right: 1rem; margin: 0; cursor: pointer; }
.sw:checked + .switch { background: var(--accent); }
.sw:checked + .switch::after { left: 1.4375rem; }
.sw:focus-visible + .switch { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.secretcard { display: grid; gap: var(--s-4); }
.secretcard .secret { display: block; padding: var(--s-4); border-radius: var(--r-md); background: var(--carbon-50); border: var(--bw-mid) solid var(--line-strong); overflow-wrap: anywhere; user-select: all; }
.set code { font-variant-numeric: tabular-nums; background: var(--carbon-50); padding: var(--s-px) var(--s-2); border-radius: var(--r-sm); overflow-wrap: anywhere; font-size: .8125rem; }
.list.log .lab { font-weight: 560; }
.has-error .input { border-color: var(--fail); }
.lrow .btn--sm { --h: 2.5rem; flex: none; }
/* Inside a row that is itself a link (settings rows) the small button only shows the action: the row takes the click.
   In other rows (posts) the buttons are real and must stay clickable. */
a.lrow .btn--sm { pointer-events: none; }
@media (min-width: 60em) { .plans { grid-template-columns: repeat(4, var(--col)); } }

/* landing (task 17): docs/design/v2/landing.html. Only the landing page loads these; classes are lh*, hero*, band*, ticket, split, chlist, closing, foot */
body.lp{background:var(--paper)}
.wrap{max-width:75rem;margin:0 auto;padding:0 var(--s-4)}@media(min-width:60em){.wrap{padding:0 var(--s-6)}}
.lh{position:sticky;top:0;z-index:20;background:var(--bar-bg);border-bottom:var(--bw) solid var(--line)}
.lh__in{display:flex;align-items:center;gap:var(--s-2);height:4rem}.lh .logo{margin-right:auto}
.lh__nav{display:none}.lh__cta{display:none}
@media(min-width:60em){.lh__in{height:4.5rem}.lh__nav{display:flex;gap:var(--s-1);margin-right:var(--s-3)}.lh__nav a{padding:var(--s-3) var(--s-4);border-radius:var(--r-md);color:var(--ink-soft);font-weight:640;text-decoration:none}.lh__nav a:hover{background:var(--ground);color:var(--ink)}.lh__cta{display:inline-flex}}
.hero{padding:var(--s-6) 0 var(--s-8);background:var(--paper)}
.hero__in{display:grid;gap:var(--s-6);align-items:center}
@media(min-width:60em){.hero{padding:var(--s-8) 0 var(--s-9)}.hero__in{grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);gap:var(--s-8)}}
.hero h1{color:var(--ink);font-size:clamp(2.125rem,1.4rem + 3vw,4rem)}
.mark{color:var(--accent);background:linear-gradient(transparent 62%,var(--mark-hi) 62%,var(--mark-hi) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hero__lede{font-size:1.125rem;color:var(--ink-soft);margin-top:var(--s-5);max-width:34rem;line-height:1.55}
.hero__cta{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-6)}
@media(max-width:37.4375em){.hero__cta .btn{width:100%}}
/* hero deck: six example posts to play with (website/deck.py, hero-deck.js). The resting slots below are the no-JS
   picture and must match STACK and FAN in hero-deck.js (offsets in rem): a tidy offset stack on phones and under
   reduced motion, a fanned hand from 60em. The script moves cards with transform and opacity only. */
.hero{overflow-x:clip}
.hero__art{position:relative;width:100%;min-width:0;max-width:22.5rem;margin:0 auto}
.deck{position:relative;border-radius:var(--r-lg)}
.deck:focus-visible{outline:.1875rem solid var(--focus);outline-offset:.625rem}
.deck__cards{display:grid;grid-template-columns:var(--col);padding-top:var(--s-5)}
.deck__card{grid-area:1/1;min-width:0;display:flex;flex-direction:column;transform-origin:50% 0;backface-visibility:hidden}
.deck__card:nth-child(1){z-index:6}
.deck__card:nth-child(2){z-index:5;transform:translate(0,-.75rem) scale(.95)}
.deck__card:nth-child(3){z-index:4;transform:translate(0,-1.5rem) scale(.9)}
.deck__card:nth-child(n+4){z-index:1;transform:translate(0,-1.5rem) scale(.9);opacity:0}
@media (min-width:60em) and (prefers-reduced-motion:no-preference){
  .hero__art{max-width:25rem}
  .deck{max-width:21.25rem;margin:0 auto}
  .deck__cards{padding-top:var(--s-3)}
  .deck__card{transform-origin:50% 100%}
  .deck__card:nth-child(2){transform:translate(-.875rem,.25rem) rotate(-4deg) scale(.97)}
  .deck__card:nth-child(3){transform:translate(.875rem,.25rem) rotate(4deg) scale(.97)}
  .deck__card:nth-child(4){z-index:3;transform:translate(-1.625rem,.625rem) rotate(-8deg) scale(.94);opacity:1}
  .deck__card:nth-child(5){z-index:2;transform:translate(1.625rem,.625rem) rotate(8deg) scale(.94);opacity:1}
  .deck__card:nth-child(6){transform:translate(0,.875rem) scale(.92)}
}
.deck.is-live .deck__card{touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;will-change:transform}
.deck.is-live .deck__card.is-dragging{cursor:grabbing}
.slip{position:relative;background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-2),var(--sh-deck);overflow:hidden;border:.0625rem solid var(--line)}
.slip__head{display:flex;align-items:center;gap:var(--s-2);padding:var(--s-3) var(--s-4)}
.slip .pv__av{width:2.25rem;height:2.25rem;border-radius:50%;background:var(--copy-yellow);color:var(--carbon-950);display:grid;place-items:center;font-weight:720;font-size:.8125rem;flex:none}
.slip__img{aspect-ratio:4/3;background:var(--ground)}
.slip__img svg{width:100%;height:100%;display:block}
.slip__dots{display:flex;justify-content:center;gap:var(--s-1);padding-top:var(--s-3)}
.slip__dots i{width:.375rem;height:.375rem;border-radius:50%;background:var(--rule)}
.slip__dots i.is-on{background:var(--accent)}
.slip__board{padding:var(--s-3) var(--s-4) 0;font-size:var(--t-micro);font-weight:680;color:var(--ink-soft)}
.slip__text{padding:var(--s-3) var(--s-4) 0;font-size:.9375rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.slip__foot{display:flex;justify-content:space-between;align-items:center;gap:var(--s-2);margin-top:auto;padding:var(--s-3) var(--s-4) var(--s-4)}
.deck__stamp{position:absolute;left:50%;top:38%;display:grid;gap:var(--s-px);justify-items:center;padding:var(--s-3) var(--s-5);border-radius:var(--r-md);background:var(--copy-pink);color:var(--on-pink);box-shadow:var(--sh-2);pointer-events:none;opacity:0;transform:translate(-50%,-50%) rotate(-7deg) scale(1.35);transition:transform .22s var(--ease),opacity .12s var(--ease)}
.deck__stamp b{font-size:1.375rem;font-weight:780;letter-spacing:-.01em;font-variation-settings:"FLAR" 100;white-space:nowrap}
.deck__card.is-approved .deck__stamp{opacity:1;transform:translate(-50%,-50%) rotate(-7deg) scale(1)}
.deck__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--s-1) var(--s-2);margin-top:var(--s-5)}
.deck__bar[hidden]{display:none}
.deck__nav{width:2.75rem;height:2.75rem;display:grid;place-items:center;border-radius:50%;border:.09375rem solid var(--line-strong);background:var(--surface);color:var(--accent);cursor:pointer;transition:background-color .2s var(--ease),border-color .2s var(--ease),transform .12s var(--ease)}
.deck__nav:active{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.deck__nav:hover{background:var(--accent-tint);border-color:var(--rule-strong)}}
.deck__count{min-width:5.5em;text-align:center;font-size:var(--t-small);font-weight:680;color:var(--ink-soft)}
.deck__hint{flex-basis:100%;text-align:center;font-size:var(--t-small);color:var(--ink-soft)}
@media (prefers-reduced-motion:reduce){
  .deck__stamp{transform:translate(-50%,-50%) rotate(-7deg);transition:opacity .15s ease}
  .deck__card.is-approved .deck__stamp{transform:translate(-50%,-50%) rotate(-7deg)}
  .deck__nav{transition:background-color .2s ease}
  .deck__nav:active{transform:none}
}
.band{padding:var(--s-8) 0;background:var(--ground)}.band--paper{background:var(--paper)}
@media(min-width:60em){.band{padding:var(--s-9) 0}}
.lede{color:var(--ink-soft);font-size:1.0625rem;margin-top:var(--s-3);max-width:36rem}
/* how it works: a plain list of three short paragraphs, one column (AI-look rules: no three-up columns, no numerals, no cards) */
.howlist{list-style:none;padding:0;margin:var(--s-5) 0 0;display:grid;gap:var(--s-4);max-inline-size:42rem}
.howlist h3{font-size:1.0625rem;line-height:1.3;display:inline}.howlist h3::after{content:". "}.howlist p{display:inline;color:var(--ink-soft);font-size:.9375rem}
.split{display:grid;grid-template-columns:var(--col);gap:var(--s-6)}.split>*{min-width:0}@media(min-width:60em){.split{grid-template-columns:var(--col) var(--col);gap:var(--s-8);align-items:start}}
.chlist{list-style:none;padding:0;margin:var(--s-5) 0 0;display:grid;grid-template-columns:var(--col);gap:0;border-top:var(--bw) solid var(--line)}
.chlist li{display:flex;align-items:center;gap:var(--s-3);min-height:3.5rem;border-bottom:var(--bw) solid var(--line);font-weight:640}
@media(min-width:37.5em){.chlist{grid-template-columns:var(--col) var(--col);column-gap:var(--s-5)}}
.record--big{padding:var(--s-5);max-width:min(100%,26rem)}.record--big dl{font-size:.9375rem;gap:var(--s-2) var(--s-4)}
@media(min-width:60em){.record--big{margin-top:var(--s-5)}}
.faq{max-width:51.25rem}
.faq{margin-top:var(--s-5);background:var(--surface);border-radius:var(--r-lg);border:var(--bw) solid var(--line)}
.faq details+details{border-top:var(--bw) solid var(--line)}
.faq summary{list-style:none;cursor:pointer;min-height:3.75rem;display:flex;align-items:center;justify-content:space-between;gap:var(--s-3);padding:var(--s-3) var(--s-5);font-weight:680}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.5rem;font-weight:400;color:var(--accent);transition:transform .2s var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq p{padding:0 var(--s-5) var(--s-4);color:var(--ink-soft);max-width:60ch}
.closing{background:var(--band);color:var(--on-band);padding:var(--s-8) 0 0}
.closing__in{display:flex;flex-direction:column;gap:var(--s-5);align-items:flex-start;padding-bottom:var(--s-7)}
@media(min-width:60em){.closing{padding-top:var(--s-9)}.closing__in{flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:var(--s-8)}.closing h2{max-width:22ch}}
@media(max-width:37.4375em){.closing .btn{width:100%}}
.foot{display:flex;flex-wrap:wrap;gap:var(--s-1) var(--s-5);padding-top:var(--s-5);padding-bottom:var(--s-6);border-top:var(--bw) solid var(--band-line);font-size:.875rem;color:var(--on-band-soft)}
.foot a{color:var(--on-band-soft);text-decoration:none;min-height:2.25rem;display:inline-flex;align-items:center}.foot a:hover{color:var(--on-band)}
.foot span{width:100%;order:2;margin-top:var(--s-2)}@media(min-width:60em){.foot span{width:auto;order:0;margin:0 auto 0 0;align-self:center}}
.lp .skip { position: absolute; left: -624.9375rem; top: 0.5rem; }
.lp .skip:focus { left: 0.5rem; z-index: 60; background: var(--surface); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.lp .hero h1 { font-weight: 780; }
.lp .lh__in .btn--quiet { padding: 0 var(--s-3); }
.lp .chlist .pm { flex: none; }
.lp .chlist li { gap: var(--s-3); padding-block: var(--s-2); }
.lp .chlist .grow { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.lp .chlist .chip { flex: none; width: auto; height: auto; white-space: nowrap; margin-left: auto; }
@media (min-width: 60em) { .lp .chlist { grid-template-columns: var(--col); } }
.lp .record--big { margin-top: 0; }
.lp .closing h2 { color: var(--on-band); }
.lp .foot { flex-wrap: wrap; }
.lp a:focus-visible, .lp summary:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; border-radius: var(--r-sm); }
@media (min-width: 60em) { .lp .lh__nav a:focus-visible { outline-offset: -0.125rem; } }
.lp .lpfoot { background: var(--band); color: var(--on-band); }
.lp .closing { padding-bottom: 0; }

/* spacing and bar widths for templates that may not carry inline style (review fix) */
.calempty { padding: var(--s-4) var(--s-4); text-align: center; }
.mt-6 { margin-top: var(--s-2); }
.mt-8 { margin-top: var(--s-2); }
.mt-12 { margin-top: var(--s-3); }
.mt-14 { margin-top: var(--s-4); }
.mt-24 { margin-top: var(--s-5); }
.mb-16 { margin-bottom: var(--s-4); }
.record__note { margin-top: var(--s-3); color: var(--record-ink); }
.progress i.w-0 { width: 0%; }
.progress i.w-1 { width: 1%; }
.progress i.w-2 { width: 2%; }
.progress i.w-3 { width: 3%; }
.progress i.w-4 { width: 4%; }
.progress i.w-5 { width: 5%; }
.progress i.w-6 { width: 6%; }
.progress i.w-7 { width: 7%; }
.progress i.w-8 { width: 8%; }
.progress i.w-9 { width: 9%; }
.progress i.w-10 { width: 10%; }
.progress i.w-11 { width: 11%; }
.progress i.w-12 { width: 12%; }
.progress i.w-13 { width: 13%; }
.progress i.w-14 { width: 14%; }
.progress i.w-15 { width: 15%; }
.progress i.w-16 { width: 16%; }
.progress i.w-17 { width: 17%; }
.progress i.w-18 { width: 18%; }
.progress i.w-19 { width: 19%; }
.progress i.w-20 { width: 20%; }
.progress i.w-21 { width: 21%; }
.progress i.w-22 { width: 22%; }
.progress i.w-23 { width: 23%; }
.progress i.w-24 { width: 24%; }
.progress i.w-25 { width: 25%; }
.progress i.w-26 { width: 26%; }
.progress i.w-27 { width: 27%; }
.progress i.w-28 { width: 28%; }
.progress i.w-29 { width: 29%; }
.progress i.w-30 { width: 30%; }
.progress i.w-31 { width: 31%; }
.progress i.w-32 { width: 32%; }
.progress i.w-33 { width: 33%; }
.progress i.w-34 { width: 34%; }
.progress i.w-35 { width: 35%; }
.progress i.w-36 { width: 36%; }
.progress i.w-37 { width: 37%; }
.progress i.w-38 { width: 38%; }
.progress i.w-39 { width: 39%; }
.progress i.w-40 { width: 40%; }
.progress i.w-41 { width: 41%; }
.progress i.w-42 { width: 42%; }
.progress i.w-43 { width: 43%; }
.progress i.w-44 { width: 44%; }
.progress i.w-45 { width: 45%; }
.progress i.w-46 { width: 46%; }
.progress i.w-47 { width: 47%; }
.progress i.w-48 { width: 48%; }
.progress i.w-49 { width: 49%; }
.progress i.w-50 { width: 50%; }
.progress i.w-51 { width: 51%; }
.progress i.w-52 { width: 52%; }
.progress i.w-53 { width: 53%; }
.progress i.w-54 { width: 54%; }
.progress i.w-55 { width: 55%; }
.progress i.w-56 { width: 56%; }
.progress i.w-57 { width: 57%; }
.progress i.w-58 { width: 58%; }
.progress i.w-59 { width: 59%; }
.progress i.w-60 { width: 60%; }
.progress i.w-61 { width: 61%; }
.progress i.w-62 { width: 62%; }
.progress i.w-63 { width: 63%; }
.progress i.w-64 { width: 64%; }
.progress i.w-65 { width: 65%; }
.progress i.w-66 { width: 66%; }
.progress i.w-67 { width: 67%; }
.progress i.w-68 { width: 68%; }
.progress i.w-69 { width: 69%; }
.progress i.w-70 { width: 70%; }
.progress i.w-71 { width: 71%; }
.progress i.w-72 { width: 72%; }
.progress i.w-73 { width: 73%; }
.progress i.w-74 { width: 74%; }
.progress i.w-75 { width: 75%; }
.progress i.w-76 { width: 76%; }
.progress i.w-77 { width: 77%; }
.progress i.w-78 { width: 78%; }
.progress i.w-79 { width: 79%; }
.progress i.w-80 { width: 80%; }
.progress i.w-81 { width: 81%; }
.progress i.w-82 { width: 82%; }
.progress i.w-83 { width: 83%; }
.progress i.w-84 { width: 84%; }
.progress i.w-85 { width: 85%; }
.progress i.w-86 { width: 86%; }
.progress i.w-87 { width: 87%; }
.progress i.w-88 { width: 88%; }
.progress i.w-89 { width: 89%; }
.progress i.w-90 { width: 90%; }
.progress i.w-91 { width: 91%; }
.progress i.w-92 { width: 92%; }
.progress i.w-93 { width: 93%; }
.progress i.w-94 { width: 94%; }
.progress i.w-95 { width: 95%; }
.progress i.w-96 { width: 96%; }
.progress i.w-97 { width: 97%; }
.progress i.w-98 { width: 98%; }
.progress i.w-99 { width: 99%; }
.progress i.w-100 { width: 100%; }
.thumb__art { padding: var(--s-4); color: var(--carbon-300); }
.thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* EN / EL toggle (templates/language_toggle.html) on the light surfaces: landing header, sign-up flow, app sidebar. Tokens and rem only. */
.langtoggle { display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-md); background: var(--ground); flex: none; }
.langtoggle__on, .langtoggle__go { min-inline-size: var(--tap); min-block-size: var(--tap); padding-inline: var(--s-2); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); font: inherit; text-decoration: none; font-size: var(--t-micro); font-weight: 720; letter-spacing: .02em; }
.langtoggle__on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); cursor: default; }
.langtoggle__go { background: transparent; color: var(--ink-soft); cursor: pointer; }
.langtoggle__go:hover { color: var(--ink); }
.langtoggle__go:focus-visible { outline: var(--bw-strong) solid var(--accent); outline-offset: var(--bw-strong); }
.lh .langtoggle { margin-right: var(--s-1); }
.sidebar__lang { margin-top: auto; margin-bottom: var(--s-3); }
.sidebar__lang + .sidebar__reassure { margin-top: 0; }
@media (max-width: 29.9em) { .ob .topbar .beta { display: none; } }  /* room for EN / EL, Night / Day and Sign in on one line */
@media (max-width: 24.9em) {
  .lh__in { flex-wrap: wrap; block-size: auto; min-block-size: var(--s-8); padding-block: var(--s-2); }
  .ob .topbar { flex-wrap: wrap; block-size: auto; }
}

/* checkout (plan 12): one column, every child may shrink; the lines wrap instead of cutting the sentence */
.checkout { display: grid; gap: var(--s-4); max-width: 40rem; min-width: 0; }
.checkout > * { min-width: 0; margin: 0; }
.checkout__lines .lrow { min-height: 0; align-items: flex-start; }
.checkout__lines .val { white-space: normal; overflow: visible; }
.checkout__lines .num { text-align: right; font-variant-numeric: tabular-nums; max-width: 50%; overflow-wrap: anywhere; }
.checkout__extra .row { align-items: stretch; }
.checkout__extra select { min-width: 0; }

/* subscription, paid state (plan 12): banners and the forms that sit in rows */
.pay-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.pay-banner__text { flex: 1 1 14rem; min-width: 0; }
.pay-banner form, .lrow form, .planhead form { margin: 0; }
.planhead .row { flex-wrap: wrap; }
.plan .small { margin: 0; }
.plans--paid dl { grid-template-columns: var(--col) auto; }
.plans--paid dd { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 60em) { .plans--paid { grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr)); } }

/* Night / Day toggle (templates/theme_toggle.html): one icon button beside the EN / EL toggle. Tokens and rem only. */
.themetoggle { display: inline-flex; margin: 0; flex: none; }
.themetoggle__btn { min-inline-size: var(--tap); min-block-size: var(--tap); display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-md); background: var(--ground); color: var(--ink-soft); cursor: pointer; }
.themetoggle__btn:hover { color: var(--ink); background: var(--accent-tint); }
.themetoggle__btn:focus-visible { outline: var(--bw-strong) solid var(--focus); outline-offset: var(--bw-strong); }
.themetoggle__i { inline-size: 1.25rem; block-size: 1.25rem; overflow: visible; }
.themetoggle__core { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.themetoggle__rays { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: center; }
.themetoggle__bite { transform-box: view-box; }
/* By day the button offers Night: the core grows into a moon, the bite slides in, the rays turn away and fade. */
[data-theme="day"] .themetoggle__core { transform: scale(1.75); }
[data-theme="day"] .themetoggle__rays { transform: rotate(-90deg) scale(.5); opacity: 0; }
[data-theme="day"] .themetoggle__bite { transform: translate(-29.17%, 29.17%); }  /* 7 of the 24-unit view box */
/* Switching (website/theme-toggle.js): a circular reveal of the new page from the button, else a short colour fade.
   No motion at all under prefers-reduced-motion (owner 2026-11-26). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-instant *, :root.theme-instant *::before, :root.theme-instant *::after { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-fading, .theme-fading * {
    transition: background-color var(--dur-fade) ease, color var(--dur-fade) ease, border-color var(--dur-fade) ease,
      fill var(--dur-fade) ease, stroke var(--dur-fade) ease;
  }
  .themetoggle__core, .themetoggle__rays, .themetoggle__bite {
    transition: transform var(--dur-icon) var(--ease-in-out), opacity var(--dur-icon) var(--ease-in-out);
  }
}
.sidebar__lang { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* Phones: the header row holds the logo, EN / EL, Night / Day and Sign in. EN / EL shows only the language it switches
   to (the page itself is in the current one), so the row fits at 360 in Greek too; it still wraps at 320. */
@media (max-width: 29.9em) {
  .langtoggle { padding: 0; background: transparent; }
  .langtoggle__on { display: none; }
  .langtoggle__go { background: var(--ground); }
  .lh .langtoggle { margin-right: 0; }
  .lh .beta { display: none; }
}
/* Native fields follow the theme (color-scheme), with the brand accent and a readable placeholder in both. */
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
::placeholder { color: var(--text-muted); opacity: 1; }

/* Post-language editor (settings): chosen list with the main one marked, then a filter and a plain select to add from.
   Tokens and relative units only. */
.langed { display: grid; gap: var(--s-4); padding: var(--s-4); border-top: var(--bw) solid var(--line); background: var(--carbon-50); }
.langed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.langed__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); border: var(--bw) solid var(--line); }
.langed__name { flex: 1 1 10rem; min-width: 0; font-weight: 640; overflow-wrap: anywhere; }
.langed__main { flex: none; }
.langed__ops { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-inline-start: auto; }
.langed__add { display: grid; gap: var(--s-3); }
.langed__select { min-height: 11rem; padding: var(--s-1); }
.langed__select option { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.langed [hidden] { display: none; }

/* ---------- App top bar (owner 2026-11-26; webapp/_topbar.html, _account_menu.html) ----------
   Phone: business switcher, bell, account menu. Desktop: business / page, posts left (to Subscription), bell, New post,
   account menu; the sidebar keeps navigation only. Tokens, rem and intrinsic sizes only. */
.appbar__where, .postsleft, .appbar__new, .appbar__lang { display: none; }
.appbar__tools { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; flex: none; }
.bell[aria-current="page"] { background: var(--accent-tint); color: var(--accent); }
.bell:focus-visible, .postsleft:focus-visible, .umenu__btn:focus-visible, .umenu__links a:focus-visible, .umenu__out button:focus-visible { outline: var(--bw-strong) solid var(--focus); outline-offset: var(--bw-strong); }

@media (min-width: 60em) {
  .topbar--app { block-size: 4rem; gap: var(--s-4); padding-inline: var(--s-7); }
  .appbar__where { display: flex; align-items: center; gap: var(--s-1); flex: 1 1 0; min-inline-size: 0; margin: 0; }
  /* one line: the business name gives way (ellipsis) to the page title; the full name is in the sidebar switcher */
  .appbar__biz { flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-weight: 620; }
  .appbar__sep { flex: none; color: var(--rule-strong); }
  .appbar__title { flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 740; font-size: 1.0625rem; letter-spacing: -0.01em; }
  .appbar__tools { gap: var(--s-3); }
  .postsleft { display: inline-flex; align-items: center; gap: var(--s-2); min-block-size: 2.75rem; padding-inline: var(--s-3) var(--s-4); border-radius: var(--r-pill); border: var(--bw) solid var(--line-strong); color: var(--text-soft); font-size: var(--t-small); font-weight: 640; text-decoration: none; font-variant-numeric: tabular-nums; }
  .postsleft__short { display: none; }
  .postsleft .i { color: var(--accent); }
  .postsleft:hover { background: var(--accent-tint); color: var(--text); }
  .postsleft.is-out { background: var(--wait-bg); border-color: transparent; color: var(--wait); }
  .postsleft.is-out .i { color: currentColor; }
  .appbar__new { display: inline-flex; }
}
/* wide desktops: EN / EL on the bar itself (owner 2026-11-26), left of the bell; the account menu keeps it too */
@media (min-width: 80em) { .appbar__lang { display: flex; } }
/* narrow desktops: the tools close up so the business name keeps some room */
@media (min-width: 60em) and (max-width: 79.99em) {
  .appbar__tools { gap: var(--s-2); }
  /* the pill shows "2/3" and keeps the sentence for screen readers; Subscription, one click away, has it in full */
  .postsleft__short { display: inline; }
  .postsleft { position: relative; }
  .postsleft__full { position: absolute; inline-size: 0.0625rem; block-size: 0.0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* visually hidden: nowrap keeps it one line, unseen */
}

/* Account menu: a <details> disclosure (no JS needed), app.js adds aria-expanded, Escape and click-outside. */
.umenu { position: relative; }
.umenu__btn { list-style: none; display: inline-flex; align-items: center; gap: var(--s-1); min-block-size: 2.75rem; min-inline-size: 2.75rem; justify-content: center; padding-inline: var(--s-1); border-radius: var(--r-md); color: var(--text-soft); cursor: pointer; }
.umenu__btn::-webkit-details-marker { display: none; }
.umenu__btn:hover, .umenu[open] .umenu__btn { background: var(--accent-tint); color: var(--text); }
.umenu__av { inline-size: 2rem; block-size: 2rem; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: var(--t-micro); font-weight: 780; letter-spacing: .02em; }
.umenu__chev { display: none; }
.umenu[open] .umenu__chev { transform: rotate(180deg); }
@media (min-width: 60em) { .umenu__chev { display: block; } .umenu__btn { padding-inline: var(--s-1) var(--s-2); } }
.umenu__panel {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + var(--s-2));
  inline-size: min(20rem, calc(100dvw - 2 * var(--gutter))); display: grid; grid-template-columns: var(--col);
  padding: var(--s-2); border-radius: var(--r-lg); border: var(--bw) solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: var(--sh-pop);
}
@media (prefers-reduced-motion: no-preference) {
  .umenu[open] .umenu__panel { animation: umenu-in var(--dur-pop) var(--ease); transform-origin: top right; }
}
@keyframes umenu-in { from { opacity: 0; transform: translateY(-0.25rem) scale(.98); } to { opacity: 1; transform: none; } }
.umenu__who { display: grid; gap: var(--s-px); padding: var(--s-2) var(--s-3) var(--s-3); min-inline-size: 0; }
.umenu__name { font-weight: 720; overflow-wrap: anywhere; }
.umenu__mail { color: var(--text-soft); font-size: var(--t-small); overflow-wrap: anywhere; }
.umenu__tz { display: flex; align-items: center; gap: var(--s-1); margin-block-start: var(--s-1); color: var(--text-muted); font-size: var(--t-micro); font-weight: 600; min-inline-size: 0; overflow-wrap: anywhere; }
.umenu__tz .i { inline-size: 1em; block-size: 1em; }
.umenu__links { list-style: none; margin: 0; padding: var(--s-1) 0; display: grid; border-block: var(--bw) solid var(--line); }
.umenu__links a, .umenu__out button {
  display: flex; align-items: center; gap: var(--s-3); inline-size: 100%; min-block-size: 2.75rem; padding-inline: var(--s-3);
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); font: inherit; font-weight: 620;
  text-align: start; text-decoration: none; cursor: pointer;
}
.umenu__links a span, .umenu__out button span { min-inline-size: 0; }
.umenu__links .i, .umenu__out .i { color: var(--text-soft); }
.umenu__links a:hover, .umenu__out button:hover { background: var(--accent-tint); }
.umenu__prefs { display: grid; gap: var(--s-1); padding: var(--s-2) var(--s-3); border-block-end: var(--bw) solid var(--line); }
.umenu__pref { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); }
.umenu__pref > span { min-inline-size: 0; color: var(--text-soft); font-size: var(--t-small); font-weight: 640; }
.umenu .langtoggle { padding: var(--s-1); background: var(--ground); }
.umenu .langtoggle__on { display: inline-flex; }
.umenu .langtoggle__go { background: transparent; }
.umenu .themetoggle__btn { background: var(--ground); color: var(--text); }
.umenu .themetoggle__btn:hover { background: var(--accent-tint); }
.umenu__out { margin: 0; padding-block-start: var(--s-1); }

/* Composer AI help (Plan 8): plain secondary buttons under the text, the suggestion in a ruled panel beside it. */
.aihelp { margin-top: var(--s-3); }
.aihelp[hidden], .aihelp__panel[hidden], .aihelp__translate[hidden] { display: none; }
.aihelp__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.aihelp__translate { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.aihelp__translate select { width: auto; max-width: 100%; min-width: 0; }
.aihelp__panel { margin-top: var(--s-3); padding: var(--s-4); background: var(--surface); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); min-width: 0; }
.aihelp__panel--error { border-color: var(--fail-line); color: var(--fail); }
.aihelp__panel { scroll-margin-block-end: var(--actionbar-clear); }  /* clear of the composer's sticky bar */
.aihelp__panel:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.aihelp__draft { margin-top: var(--s-3); }
.aihelp__draft > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); color: var(--accent); font-weight: 640; cursor: pointer; }
.aihelp__draft > summary::-webkit-details-marker { display: none; }
.aihelp__draft[open] .aihelp__chev { transform: rotate(180deg); }
.aihelp__draft > summary:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.aihelp__draftbody { display: grid; gap: var(--s-3); margin-top: var(--s-2); min-width: 0; }
.aihelp__draftbody .btn { justify-self: start; }
.aihelp__draftbody textarea { width: 100%; min-width: 0; }
.aihelp__written[hidden] { display: none; }
.aihelp__written { color: var(--text); font-weight: 640; }
.aihelp__title { font-size: var(--t-small); font-weight: 720; margin-bottom: var(--s-2); }
.aihelp__text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 0; }
.aihelp__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.aihelp__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }

/* ---------- Light video edit (Plus and Max): the tile's button and the editor dialog ---------- */
.media .ph:has(.ph__edit) { height: auto; overflow: visible; border-radius: 0; display: flex; flex-direction: column; gap: var(--s-1); }
.media .ph:has(.ph__edit) .thumb { height: 7rem; border-radius: var(--r-lg); overflow: hidden; }
.media .ph:has(.ph__edit) .ph__move { top: 4.75rem; bottom: auto; }
.ph__edit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-1); min-height: var(--tap); width: 100%; padding: var(--s-1) var(--s-2); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--accent); font: inherit; font-size: var(--t-small); font-weight: 640; cursor: pointer; min-width: 0; }
.ph__edit[hidden] { display: none; }
.ph__edit:focus-visible { outline: var(--bw-ring) solid var(--focus); outline-offset: var(--s-px); }
.ph__edited { color: var(--ok); font-weight: 700; }
.vedit { width: min(40rem, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 2 * var(--gutter)); padding: var(--s-4); border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--sh-pop); overflow: auto; }
.vedit::backdrop { background: var(--scrim); }
.vedit__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.vedit__head h2 { flex: 1; min-width: 0; font-size: var(--t-heading); font-weight: 700; }
.vedit__body { display: grid; gap: var(--s-4); min-width: 0; }
.vedit__body[hidden], .vedit [hidden] { display: none; }
.vedit .field { min-width: 0; }
.vedit__strip { overflow-x: auto; border-radius: var(--r-md); background: var(--muted-bg); }
.vedit__track { position: relative; display: flex; list-style: none; margin: 0; padding: 0; width: max-content; min-width: 100%; }
.vedit__track li { flex: 0 0 auto; }
.vedit__tile { display: block; padding: 0; border: 0; background: transparent; cursor: pointer; min-height: var(--tap); }
.vedit__tile img { display: block; width: 5.5rem; aspect-ratio: 16 / 9; object-fit: cover; }
.vedit__tile:focus-visible { outline: var(--bw-ring) solid var(--focus); outline-offset: calc(-1 * var(--bw-ring)); }
.vedit__marker { position: absolute; top: 0; bottom: 0; width: var(--bw-strong); background: var(--create); box-shadow: 0 0 0 var(--bw) var(--on-create); pointer-events: none; }
.vedit__range { display: block; width: 100%; min-height: var(--tap); accent-color: var(--accent); }
.vedit__lines { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-1); font-size: var(--t-small); color: var(--text-soft); }
.vedit__lines li { min-width: 0; overflow-wrap: anywhere; }
.vedit__frame { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--muted-bg); margin-bottom: var(--s-2); }
.vedit__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vedit__box { position: absolute; top: 0; bottom: 0; border: var(--bw-ring) solid var(--create); background: var(--scrim-light); }
.vedit__covers { border: 0; margin: 0; padding: 0; min-width: 0; }
.vedit__covers legend { font-weight: 660; padding: 0; margin-bottom: var(--s-2); }
.vedit__cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: var(--s-2); }
.vedit__cover { position: relative; display: grid; gap: var(--s-1); align-content: start; min-width: 0; padding: var(--s-1); border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: center; font-size: var(--t-micro); }
.vedit__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); }
.vedit__cover.is-outside img { opacity: .45; }
.vedit__outside { font-size: var(--t-micro); color: var(--wait); font-weight: 640; }
.vedit__outside[hidden] { display: none; }
.vedit__cover--auto { place-content: center; min-height: var(--tap); font-weight: 660; }
.vedit__cover:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 var(--bw-mid) var(--accent); }
.vedit__cover:has(input:focus-visible) { outline: var(--bw-ring) solid var(--focus); outline-offset: var(--s-px); }
.vedit__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-4); }

/* Offline page (webapp/offline.html): one centred card, no shell. */
.offline { min-height: 100dvh; display: grid; place-items: center; padding: var(--gutter); background: var(--bg); }
.offline__card { display: grid; gap: var(--s-4); inline-size: min(100%, 28rem); min-width: 0; }

/* Install page (webapp/install.html) and its steps, shared with the install sheet. */
.inst { display: grid; gap: var(--s-4); min-width: 0; }
.inst__views { display: grid; gap: var(--s-3); min-width: 0; }
.inst__view { min-width: 0; }
.inst__sum { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--tap); padding: var(--s-2) var(--s-4); cursor: pointer; list-style: none; }
.inst__sum::-webkit-details-marker { display: none; }
.inst__sum .i { flex: none; transition: transform var(--dur-pop) var(--ease); }
.inst__view[open] .inst__sum .i { transform: rotate(180deg); }
.inst__sum:focus-visible { outline: var(--bw-ring) solid var(--focus); outline-offset: calc(var(--bw-strong) * -1); border-radius: var(--r-lg); }
.inst__body { display: grid; gap: var(--s-3); padding: 0 var(--s-4) var(--s-4); min-width: 0; }
.inst__steps li { align-items: flex-start; padding-block: var(--s-1); }
.inst__steps .dot { flex: none; }
.inst__step { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.inst__link { overflow-wrap: anywhere; }
.inst__qr { box-sizing: border-box; inline-size: min(100%, 16rem); aspect-ratio: 1; justify-self: center; padding: var(--s-4); background: var(--qr-bg); border-radius: var(--r-md); border: var(--bw) solid var(--line); line-height: 0; }
.inst__qr svg { display: block; inline-size: 100%; block-size: 100%; }
@media (prefers-reduced-motion: reduce) { .inst__sum .i { transition: none; } }
.inst__sheet { display: grid; gap: var(--s-4); min-width: 0; }

/* Brand profile: sections, and the colour slots (native picker beside a hex box) */
.profsec { display: grid; gap: var(--s-4); }
.profsec .field + .field { margin-top: 0; }
.colours { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--s-3); }
.colours__slot { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.colours__slot .input { min-width: 0; flex: 1; }
.colours__pick { flex: none; width: 3.25rem; height: 3.25rem; padding: 0; border: var(--bw-mid) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
/* Brand profile import: suggestions with their source, the logo candidates with the rights tick */
.impsec { grid-template-columns: minmax(0, 1fr); }
.impsec > *, .impsec form, .impsec__field { min-width: 0; }
.impsec .btn { white-space: normal; text-align: center; max-width: 100%; }
.impsec__field { display: grid; gap: var(--s-2); min-width: 0; }
.impsec__h { margin: 0; font-weight: 600; }
.impsec__option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-md); min-width: 0; }
.impsec__text { display: grid; gap: var(--s-1); flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.impsec__value { margin: 0; white-space: pre-line; }
.impsec__logos { display: grid; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.impsec__pick { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 3rem; min-width: 0; }
.impsec__pick input { flex: none; margin-top: var(--s-1); }
.impsec__thumb { flex: none; width: 5rem; height: 5rem; object-fit: contain; border: var(--bw) solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.impsec__state, .impsec__note { margin: 0; overflow-wrap: anywhere; }
.logo-thumb { display: block; width: 6rem; height: 6rem; object-fit: contain; border: var(--bw) solid var(--line); border-radius: var(--r-md); background: var(--surface); }
/* the profile step ends with a button: room for the fixed action bar and the consent banner under it */
@media (max-width: 59.99em) { .ob__body.ob__body--tall:has(+ .actionbar) { padding-bottom: calc(var(--s-9) * 6); } }

/* ---------- WEEK: the week screen (Plan 16; docs/design/v2/week.md) ---------- */
.wk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.wk-head > div { min-width: 0; }
.wk-head p { color: var(--text-soft); margin-top: var(--s-2); }
.wk-nav { display: flex; align-items: center; gap: var(--s-1); }
.wk-ai { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-4); font-size: var(--t-small); color: var(--text-soft); }
.wk-ai > span:last-child { min-width: 0; flex: 1 1 16rem; }
.wk-progress { display: grid; gap: var(--s-2); margin-bottom: var(--s-2); }
.wk-progress .row { justify-content: space-between; flex-wrap: wrap; font-size: var(--t-small); font-weight: 640; color: var(--text-soft); }
.wk-progress .row strong { color: var(--ink); font-weight: 720; }
.wk-progress .progress { height: 0.5rem; }
.wk-days { container: wk / inline-size; }
.wkpost { padding: var(--s-4); display: grid; gap: var(--s-3); min-width: 0; scroll-margin-top: calc(var(--bar) + var(--s-4)); }
.wkpost__top { display: flex; gap: var(--s-3); align-items: flex-start; }
.wkpost__top > .grow { display: grid; gap: var(--s-1); }
.wkpost__when { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.wkpost__time { font-size: 1.25rem; font-weight: 750; line-height: 1.2; }
.wkpost .besttimes { margin: 0; }
.wkpost__ch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--text-soft); }
.wkpost__ch > span:last-child { min-width: 0; }
.wkpost__text { line-height: 1.55; max-inline-size: 65ch; text-wrap: pretty; }
.wkpost__note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--t-small); color: var(--text-soft); }
.wkpost__note > span { min-width: 0; flex: 1 1 14rem; }
.wkpost__note a { color: var(--accent); font-weight: 660; display: inline-flex; align-items: center; min-height: var(--tap); }
.wkpost__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.wkpost__acts .btn { white-space: normal; text-wrap: balance; }
.wkpost__acts .wkpost__approve { flex: 1 1 100%; }
.wkpost .thumb--none { display: grid; place-items: center; color: var(--text-soft); }
/* a post whose waiting copies say different things: each copy with its channels, picture and text */
.wkpost__copies { display: grid; gap: var(--s-3); }
.wkpost__copy { display: grid; gap: var(--s-2); justify-items: start; padding-top: var(--s-3); border-top: var(--bw) dashed var(--line-strong); }
.wkpost__copy:first-child { padding-top: 0; border-top: 0; }
.wkpost__copy .wkpost__ch { margin: 0; color: var(--ink); }
.wkpost .blocker { margin-top: 0; }
@container wk (min-width: 30em) {
  .wkpost { grid-template-columns: 7rem var(--col); column-gap: var(--s-4); }
  .wkpost > * { grid-column: 2; }
  .wkpost > .wkpost__top { display: contents; }
  .wkpost__top > .thumb { grid-column: 1; grid-row: 1 / span 4; width: 7rem; height: 7rem; }
  .wkpost__top > .grow { grid-column: 2; }
  .wkpost__acts .wkpost__approve { flex: 0 1 auto; }
  .wk-days .wkpost__more { display: flex; flex-wrap: wrap; flex: 0 1 auto; gap: var(--s-1); }
  .wk-days .wkpost__more .btn { flex-direction: row; gap: var(--s-2); padding: 0 var(--s-3); font-size: .9375rem; }
}
/* phone: the three quieter actions share one row, icon over label (Greek labels are long) */
.wkpost__more { display: flex; flex-wrap: wrap; gap: var(--s-1); flex: 1 1 100%; }
.wkpost__more .btn { flex: 1 1 auto; }
.wkpost__more .btn { flex-direction: column; gap: var(--s-1); padding: var(--s-2) var(--s-1); font-size: var(--t-small); line-height: 1.2; }
.wk-approveall { display: none; }
@media (min-width: 60em) { .wk-side .wk-approveall { display: flex; } }
.wk-result .lrow .btn--sm { --h: var(--tap); }
/* Approved posts fold to one row (progressive disclosure): the week left to read gets shorter as you go. */
.wkdone > summary { list-style: none; cursor: pointer; }
.wkdone > summary::-webkit-details-marker { display: none; }
.wkdone > summary:hover { background: var(--carbon-50); }
/* TikTok's own step, inside the post's frame and joined by a line (uniform connectedness, no card in a card). */
.wk-tt { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: var(--bw) dashed var(--line-strong); }
.wk-tt__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.wk-tt__head strong { font-size: 1.0625rem; }
.wk-tt .q select { max-inline-size: 22rem; }
.wk-tt .btn { justify-self: start; white-space: normal; }
/* the approval of the week: the pink record (DESIGN.md: approval record), sticky beside the list on wide screens */
.wk-side { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.wk-side .record .btn { margin-top: var(--s-3); white-space: normal; }
.wk-side .approve__say { margin-top: var(--s-3); font-weight: 640; font-size: var(--t-small); }
.wk-side .approve__fine { margin-top: var(--s-2); font-size: var(--t-small); color: var(--record-ink); }
@media (min-width: 68.75em) { .wk-side { position: sticky; top: calc(var(--bar) + var(--s-5)); margin-top: 0; } }
/* phone: the Approve all bar sits above the tab bar, at the thumb */
.wk-bar { bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
.wk-bar .btn { white-space: normal; }
@media (min-width: 60em) { .wk-bar { display: none; } }
@media (max-width: 59.9375em) { .main:has(+ .wk-bar) { padding-bottom: calc(var(--bar) * 2 + var(--s-6)); } }
/* result after Approve all: one frame, the summary then one row per thing that needs you */
.wk-result { margin-bottom: var(--s-5); }
.wk-result__head { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); }
.wk-result__head h2 { font-size: 1.125rem; line-height: 1.3; }
.wk-result__head p { color: var(--text-soft); margin-top: var(--s-1); font-size: var(--t-small); }
.wk-result .lrow { align-items: flex-start; flex-wrap: wrap; }
.wk-result .lrow__main { flex: 1 1 14rem; }
.wk-result .lrow__title { white-space: normal; }
.wk-result .lrow .btn { flex: 0 1 auto; white-space: normal; }
.wk-result__rows { list-style: none; margin: 0; padding: 0; }
.wk-result__rows > li { border-top: var(--bw) solid var(--line); }
.alert-ic--ok { background: var(--ok-bg); color: var(--ok); }
.wk-empty .btn { white-space: normal; }
.wk-empty .empty p + p { margin-top: calc(var(--s-4) * -1); }
