/* YesIsReal — foglio di stile unico del sito (pagine pubbliche e area utente, ADR-0028).
   Tre parti: (1) token e (2) componenti copiati così come sono dal design system «YesIsReal Design System»
   (https://claude.ai/artifact/WBxCDwN7NLdQxfudduhG73, project/tokens.css e project/components/bundle.css: una modifica
   comune si fa lì e si ricopia qui, sostituendo il blocco); (3) le regole del sito, che usano solo i token.
   Font serviti da noi (OFL), nessuna chiamata a terzi dal browser. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable-946beb949095146693eb61281f15d355.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/CourierPrime-Regular-d1e7a058e3e6f3957031fb542d293d6e.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/CourierPrime-Bold-ef20acc41ba4e3574e7a3d18de05987e.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* === (1) Design system: tokens.css ===================================================================== */
/* YesIsReal Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --ink: #141414;
  --surface: #FFFFFF;
  --surface-muted: #F7F6F2;
  --chip: #F2F1EC;
  --hairline: #ECEAE4;
  --border-input: #DCD9D1;
  --text-secondary: #5B5B57;
  --text-body: #3A3A37;
  --text-on-dark: #BDBBB4;
  --placeholder-photo: #E9E7E1;
  --placeholder-avatar: #D9D6CE;
  --placeholder-deep: #BFBCB3;
  --disabled: #CFCDC6;
  --step-todo: #D5D3CC;
  --track: #E4E2DB;
  --ticket-spent: #8A8883;
  --viewfinder: #2A2A28;
  --overlay-dark: rgba(20,20,20,0.82);
  --overlay-light: rgba(255,255,255,0.9);
  --scrim: rgba(20,20,20,0.35);
  --teal: #0E6F66;
  /* I livelli sulle foto (ADR-0060, operatore 13/11/2026): Riservato blu notte, Privato viola prugna. */
  --reserved: #1F4E8C;
  --private: #7A3E9D;
  --teal-text: #0B5D55;
  --teal-hover: #0A5751;
  --teal-on-dark: #9FE0D6;
  --teal-on-teal: #D5EFEA;
  --teal-tint: #E3F1EE;
  --teal-border: #CFE6E1;
  --teal-wash: #F4FAF8;
  --paper: #FBF8F1;
  --paper-border: #E6E0D2;
  --paper-dash: #DCD5C4;
  --danger: #B42318;
  --danger-tint: #FBF1EF;
  --danger-border: #E7B9B1;
  --warning: #B45309;
  --warning-dot: #D9822B;
  --warning-tint: #FBF1E6;
  --warning-text: #6B4A1E;
  --live: #3DD68C;
  --map-blue: #2F6FED;
  --os-sheet: #F2F2F7;
  --os-ink: #000000;
  --case-sell-bg: #FFF1E6;
  --case-sell: #F59E6B;
  --case-sell-text: #C2410C;
  --case-social-bg: #E8F0FF;
  --case-social: #3B6FE0;
  --case-social-soft: #9DB8F5;
  --case-social-text: #2F57B8;
  --case-trip-bg: #E6F4FB;
  --case-trip: #2E9AC4;
  --case-trip-text: #1F7AA3;
  --case-business-bg: #F1E9FF;
  --case-business: #7C5CE0;
  --case-business-text: #5B3FC4;
  --case-craft-bg: #FFF7D6;
  --case-craft: #F2C94C;
  --case-craft-text: #8A6A10;
  --case-real-bg: #FCE9ED;
  --case-real: #B4405C;
  --case-real-text: #5B4A4E;
  --shadow-create: 0 6px 16px rgba(14,111,102,0.35);
  --shadow-segment: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-floating: 0 2px 8px rgba(20,20,20,0.12);
  --shadow-sheet: 0 -4px 20px rgba(20,20,20,0.1);
}
:root {
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --screen-top-bar: 58px;
  --screen-top-flow: 64px;
  --screen-bottom: 30px;
  --web-container: 1180px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-badge: 8px;
  --radius-box: 12px;
  --radius-button: 14px;
  --radius-card: 16px;
  --radius-ticket: 18px;
  --radius-sheet: 24px;
  --radius-pill: 999px;
  --tap-min: 44px;
  --button-lg-h: 54px;
  --button-md-h: 48px;
  --button-sm-h: 40px;
  --input-h: 46px;
  --otp-h: 58px;
  --row-h: 52px;
  --gesture-h: 62px;
  --create-size: 60px;
  --mark-header: 28px;
  --step-dot: 28px;
  --avatar-md: 40px;
  --app-width: 390px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-typewriter: "Courier Prime", "Courier New", monospace;
}
.title-xl { font-family: var(--font-sans); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.6px; }
.title-lg { font-family: var(--font-sans); font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.title-web-hero { font-family: var(--font-sans); font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.title-web { font-family: var(--font-sans); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.title-web-section { font-family: var(--font-sans); font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.3px; }
.wordmark-app { font-family: var(--font-sans); font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
.wordmark-web { font-family: var(--font-sans); font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -0.4px; }
.bar-title { font-family: var(--font-sans); font-size: 16px; line-height: 1.3; font-weight: 800; }
.card-title { font-family: var(--font-sans); font-size: 15px; line-height: 1.3; font-weight: 800; }
.body-lg { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; font-weight: 400; }
.row { font-family: var(--font-sans); font-size: 14px; line-height: 1.3; font-weight: 700; }
.strong-sm { font-family: var(--font-sans); font-size: 13px; line-height: 1.35; font-weight: 800; }
.field-label { font-family: var(--font-sans); font-size: 13px; line-height: 1.3; font-weight: 700; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 1.45; font-weight: 400; }
.caption-strong { font-family: var(--font-sans); font-size: 12px; line-height: 1.4; font-weight: 700; }
.micro { font-family: var(--font-sans); font-size: 11px; line-height: 1.4; font-weight: 700; }
.eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: 0.8px; }
.overline { font-family: var(--font-sans); font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: 0.6px; }
.button-lg { font-family: var(--font-sans); font-size: 16px; line-height: 1.2; font-weight: 800; }
.button-md { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 800; }
.button-sm { font-family: var(--font-sans); font-size: 13px; line-height: 1.2; font-weight: 800; }
.gesture { font-family: var(--font-sans); font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -0.3px; }
.code-entry { font-family: var(--font-sans); font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: 10px; }
.invite-number { font-family: var(--font-sans); font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: 2px; }
.kpi { font-family: var(--font-sans); font-size: 22px; line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
.l1-body { font-family: var(--font-typewriter); font-size: 15px; line-height: 1.55; font-weight: 400; }
.l1-compact { font-family: var(--font-typewriter); font-size: 14px; line-height: 1.5; font-weight: 400; }
.l1-large { font-family: var(--font-typewriter); font-size: 18px; line-height: 1.65; font-weight: 400; }
/* === fine tokens.css === */

/* === (2) Design system: components/bundle.css ============================================================ */
/* YesIsReal — componenti comuni. Ogni valore viene dai token (tokens.css). Prefisso yir- per non collidere con gli stili di testo. */
.yir { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.yir *, .yir *::before, .yir *::after { box-sizing: border-box; }
.yir a { color: var(--teal); }
.yir a:hover { color: var(--teal-hover); }
.yir :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Schermata app 390×844 */
.yir-screen { width: var(--app-width); height: 844px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.yir-screen--muted { background: var(--surface-muted); }
.yir-screen--dark { background: var(--ink); color: var(--surface); }
.yir-flow-head { padding: var(--screen-top-flow) var(--space-24) 0; display: flex; flex-direction: column; gap: var(--space-10); }
.yir-flow-body { padding: var(--space-20) var(--space-24) 0; display: flex; flex-direction: column; gap: var(--space-10); }
.yir-spacer { flex: 1; }
.yir-footer { padding: var(--space-12) var(--space-24) var(--screen-bottom); display: flex; flex-direction: column; gap: var(--space-10); }
.yir-eyebrow-row { display: flex; align-items: center; gap: var(--space-8); }
.yir-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--teal-text); }
.yir-overline { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.yir-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }

/* Top bar */
.yir-topbar { display: flex; align-items: center; justify-content: space-between; padding: var(--screen-top-bar) var(--space-12) var(--space-8); }
.yir-topbar__title { font-size: 16px; font-weight: 800; }
.yir-topbar__icon { width: var(--tap-min); height: var(--tap-min); display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); }
.yir-topbar__text { min-height: var(--tap-min); display: inline-flex; align-items: center; padding: 0 var(--space-8); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.yir-topbar__text--next { color: var(--teal); font-weight: 800; }
.yir-topbar__slot { width: var(--tap-min); }

/* Header con marchio */
.yir-header { display: flex; align-items: center; justify-content: space-between; padding: var(--screen-top-bar) var(--space-20) var(--space-10); }
.yir-brand { display: inline-flex; align-items: center; gap: var(--space-8); }
.yir-brand__name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.yir-brand--web .yir-brand__name { font-size: 20px; letter-spacing: -0.4px; }

/* Pulsanti */
.yir-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: var(--button-lg-h); padding: 0 var(--space-20); border-radius: var(--radius-button); border: 0; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; width: 100%; }
.yir-btn--md { min-height: var(--button-md-h); font-size: 15px; }
.yir-btn--pill { width: auto; display: inline-flex; min-height: var(--button-sm-h); padding: 0 var(--space-14); border-radius: var(--radius-pill); font-size: 13px; }
.yir-btn--primary { background: var(--teal); color: var(--surface); }
.yir-btn--ink { background: var(--ink); color: var(--surface); }
.yir-btn--outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.yir-btn--quiet { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-input); }
.yir-btn--danger { background: var(--surface); color: var(--danger); border: 1.5px solid var(--danger); }
.yir-btn--text { background: transparent; color: var(--text-secondary); min-height: var(--tap-min); font-size: 14px; font-weight: 700; }
.yir-btn[disabled], .yir-btn--disabled { background: var(--disabled); color: var(--text-body); border: 0; cursor: default; }
.yir .yir-btn--primary, .yir .yir-btn--ink { color: var(--surface); }
.yir .yir-btn--outline, .yir .yir-btn--quiet { color: var(--ink); }
.yir .yir-btn--danger { color: var(--danger); }
.yir .yir-btn--text { color: var(--text-secondary); }
.yir-btn-row { display: flex; gap: var(--space-8); }
.yir-btn-row > .yir-btn { flex: 1; }

/* Pulsante YesIsReal (gesto) */
.yir-gesture { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: var(--gesture-h); border-radius: var(--radius-card); background: var(--teal); color: var(--paper); text-decoration: none; border: 0; width: 100%; font: inherit; }
.yir .yir-gesture { color: var(--paper); }
.yir-gesture__main { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.yir-gesture__sub { font-size: 12px; font-weight: 700; opacity: 0.9; }

/* Campi */
.yir-field { display: flex; flex-direction: column; gap: 5px; }
.yir-field__label { font-size: 13px; font-weight: 700; }
.yir-input { min-height: var(--input-h); width: 100%; border: 1.5px solid var(--border-input); border-radius: var(--radius-box); padding: 0 var(--space-14); background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); }
.yir-input::placeholder { color: var(--text-secondary); }
.yir-input--focus { border-color: var(--teal); }
.yir-input--error { border-color: var(--danger); background: var(--danger-tint); }
.yir-field__help { font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.yir-field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.4; font-weight: 700; color: var(--danger); }
.yir-otp { min-height: var(--otp-h); width: 100%; text-align: center; border: 1.5px solid var(--border-input); border-radius: var(--radius-box); background: var(--surface); font: inherit; font-size: 26px; font-weight: 800; letter-spacing: 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.yir-check { display: flex; gap: var(--space-10); align-items: flex-start; font-size: 13px; line-height: 1.45; }
.yir-check__box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; border: 1.5px solid var(--border-input); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; margin-top: -1px; }
.yir-check__box--on { background: var(--teal); border-color: var(--teal); }

/* Chip, toggle, segmentato */
.yir-chip { display: inline-flex; align-items: center; padding: var(--space-8) var(--space-14); border-radius: var(--radius-pill); background: var(--chip); font-size: 13px; font-weight: 600; color: var(--ink); }
.yir-chip--on { background: var(--ink); color: var(--surface); font-weight: 700; }
.yir-toggle { width: 50px; height: 30px; border-radius: var(--radius-pill); border: 0; background: var(--disabled); position: relative; flex-shrink: 0; }
.yir-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); }
.yir-toggle--on { background: var(--teal); }
.yir-toggle--on::after { left: auto; right: 3px; }
.yir-segmented { display: flex; padding: 4px; border-radius: var(--radius-box); border: 1px solid var(--hairline); background: var(--surface-muted); gap: 4px; }
.yir-segmented__item { flex: 1; min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.yir-segmented__item--on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-segment); }

/* Badge */
.yir-human { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--teal-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.yir-human--sm { gap: 4px; padding: 2px 8px; font-size: 11px; }
.yir-human--neutral { background: var(--chip); color: var(--text-secondary); }
.yir-bio-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 800; }
.yir-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-badge); border: 1px solid var(--teal-border); color: var(--teal-text); font-size: 13px; font-weight: 700; }
.yir-badge--sm { gap: 5px; padding: 5px 10px; font-size: 12px; }
.yir-badge--neutral { border-color: var(--hairline); color: var(--text-secondary); }

/* Righe di stato e passi */
.yir-step { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-10) var(--space-14); border-radius: var(--radius-button); background: var(--surface-muted); }
.yir-step--active { background: var(--surface); border: 2px solid var(--teal); padding: var(--space-14); }
.yir-step--blocked { background: var(--surface); border: 1.5px solid var(--danger-border); }
.yir-step__dot { width: var(--step-dot); height: var(--step-dot); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.yir-step__dot--done { background: var(--teal); }
.yir-step__dot--now { background: var(--ink); color: var(--surface); }
.yir-step__dot--todo { background: var(--step-todo); color: var(--ink); }
.yir-step__dot--stop { background: var(--danger); }
.yir-step__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.yir-step__title { font-size: 14px; font-weight: 700; }
.yir-step__sub { font-size: 12px; color: var(--text-secondary); }

/* Box informativi e banner */
.yir-note { display: flex; align-items: flex-start; gap: var(--space-10); padding: var(--space-12) var(--space-14); border-radius: var(--radius-box); font-size: 13px; line-height: 1.45; }
.yir-note__icon { flex-shrink: 0; margin-top: 1px; }
.yir-note--teal { background: var(--teal-tint); color: var(--teal-text); }
.yir-note--neutral { background: var(--surface-muted); color: var(--text-secondary); font-size: 12px; }
.yir-note--danger { background: var(--danger-tint); border: 1px solid var(--danger-border); color: var(--ink); }
.yir-note--danger strong { color: var(--danger); }
.yir-note--warning { background: var(--warning-tint); color: var(--warning-text); }
.yir-note--outline { background: var(--surface); border: 1px solid var(--hairline); color: var(--text-body); }
.yir-note strong { font-weight: 800; }
.yir-banner { display: flex; align-items: center; gap: var(--space-10); padding: var(--space-10) var(--space-12); border-radius: var(--radius-box); background: var(--teal-tint); color: var(--teal-text); font-size: 12px; font-weight: 700; }
.yir-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.yir-banner__action { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--teal-text); white-space: nowrap; }

/* Card e righe */
.yir-card { border-radius: var(--radius-card); border: 1px solid var(--hairline); background: var(--surface); }
.yir-card--pad { padding: var(--space-14); }
.yir-card--teal { background: var(--teal-wash); border-color: var(--teal-border); }
.yir-card--selected { border: 2px solid var(--teal); }
.yir-rows { border-radius: var(--radius-card); border: 1px solid var(--hairline); background: var(--surface); overflow: hidden; }
.yir-row { display: flex; align-items: center; gap: var(--space-12); min-height: var(--row-h); padding: 0 var(--space-14); border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.yir-row:last-child { border-bottom: 0; }
.yir-row__label { flex: 1; }
.yir-row__value { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* Barra inferiore */
.yir-nav { display: flex; align-items: center; justify-content: space-around; padding: var(--space-10) var(--space-12) 28px; border-top: 1px solid var(--hairline); background: var(--surface); margin-top: auto; }
.yir-nav__item { width: 48px; height: var(--tap-min); display: flex; align-items: center; justify-content: center; position: relative; color: var(--ink); }
.yir-nav__create { width: var(--create-size); height: var(--create-size); margin-top: -26px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-create); position: relative; }
.yir-nav__create--locked { background: var(--disabled); box-shadow: none; }
.yir-nav__lock { position: absolute; right: -2px; top: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); display: flex; align-items: center; justify-content: center; }
.yir-nav__dot { position: absolute; right: 8px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Segnaposto, mirino, pill sopra foto */
.yir-avatar { width: var(--avatar-md); height: var(--avatar-md); border-radius: 50%; background: var(--placeholder-avatar); flex-shrink: 0; }
.yir-photo { border-radius: var(--radius-button); background: var(--placeholder-photo); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-secondary); position: relative; overflow: hidden; }
.yir-face-frame { width: 150px; height: 180px; border-radius: 75px / 90px; background: var(--viewfinder); display: flex; align-items: center; justify-content: center; position: relative; color: var(--text-on-dark); font-size: 11px; text-align: center; }
.yir-face-frame::after { content: ""; position: absolute; inset: -6px; border-radius: 81px / 96px; border: 3px dashed var(--teal); }
.yir-face-frame--ok::after { border-style: solid; }
.yir-face-frame--warn::after { border-color: var(--warning-dot); }
.yir-code-pill { display: inline-flex; align-items: center; gap: var(--space-8); padding: 7px 12px; border-radius: 10px; background: var(--overlay-dark); color: var(--surface); font-size: 13px; font-weight: 700; }
.yir-code-pill--sm { gap: 6px; padding: 5px 9px; border-radius: var(--radius-badge); font-size: 11px; }
.yir-code-pill--light { background: var(--overlay-light); color: var(--ink); }
.yir-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--overlay-dark); color: var(--surface); font-size: 11px; font-weight: 700; }
.yir-status-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.yir-status-pill__dot--warn { background: var(--warning-dot); }

/* Barra di quota */
.yir-meter { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.yir-meter__fill { height: 100%; background: var(--teal); border-radius: 3px; }

/* Sheet */
.yir-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: var(--space-12) 22px var(--screen-bottom); display: flex; flex-direction: column; gap: var(--space-14); box-shadow: var(--shadow-sheet); }
.yir-sheet__handle { width: 40px; height: 5px; border-radius: 3px; background: var(--border-input); align-self: center; }
.yir-scrim { position: absolute; inset: 0; background: var(--scrim); }

/* Biglietto d'invito */
.yir-ticket { width: 342px; height: 230px; display: flex; font-family: var(--font-sans); color: var(--ink); }
.yir-ticket__main { flex: 1; min-width: 0; padding: var(--space-14) var(--space-16); border-radius: var(--radius-ticket) 0 0 var(--radius-ticket); background: var(--paper); border: 1px solid var(--paper-border); border-right: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.yir-ticket__label { font-size: 11px; font-weight: 800; color: var(--teal-text); text-transform: uppercase; letter-spacing: 1.4px; }
.yir-ticket__name { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.3px; }
.yir-ticket__text { margin: 0; font-size: 13px; line-height: 1.38; color: var(--text-body); }
.yir-ticket__number { margin-top: auto; display: flex; align-items: baseline; gap: var(--space-8); padding-top: var(--space-8); border-top: 1.5px dashed var(--paper-dash); }
.yir-ticket__number-label { font-size: 10px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.2px; }
.yir-ticket__number-value { font-size: 22px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.yir-ticket__stub { position: relative; width: 84px; flex-shrink: 0; border-radius: 0 var(--radius-ticket) var(--radius-ticket) 0; background: var(--teal); border-left: 2px dashed var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-8); }
.yir-ticket__stub-label { font-size: 11px; font-weight: 800; color: var(--surface); text-transform: uppercase; letter-spacing: 1.2px; }
.yir-ticket__hole { position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ticket-ground, var(--surface)); }
.yir-ticket__hole--top { top: -12px; } .yir-ticket__hole--bottom { bottom: -12px; }
.yir-ticket--spent { opacity: 0.6; filter: grayscale(1); }
.yir-ticket--spent .yir-ticket__stub { background: var(--ticket-spent); }

/* Testo di livello 1 */
.yir-l1 { font-family: var(--font-typewriter); font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }
.yir-l1-card { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--paper); display: flex; flex-direction: column; gap: var(--space-10); }
.yir-l1-cursor { display: inline-block; width: 9px; height: 17px; background: var(--teal); vertical-align: -3px; margin-left: 2px; }

/* Bolle di chat */
.yir-bubble { max-width: 78%; padding: var(--space-10) var(--space-14); font-size: 14px; line-height: 1.45; }
.yir-bubble--mine { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--teal); color: var(--surface); }
.yir-bubble--theirs { align-self: flex-start; border-radius: 18px 18px 18px 4px; background: var(--chip); }
.yir-bubble--blocked { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--danger-tint); border: 1px solid var(--danger-border); color: var(--ink); }

/* Foglio di sistema simulato (Face ID, passkey, permessi): grigio di sistema, mai il nostro stile */
.yir-system-sheet { margin: 0 var(--space-10) var(--space-10); padding: var(--space-20); border-radius: 22px; background: var(--os-sheet); color: var(--os-ink); display: flex; flex-direction: column; align-items: center; gap: var(--space-10); text-align: center; font-family: -apple-system, system-ui, sans-serif; }
/* === fine bundle.css === */

/* === (3) Sito ============================================================================================ */
/* === Sito: base, testata, piè di pagina ================================================================== */
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans);
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); } a:hover { color: var(--teal-hover); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: var(--web-container); margin: 0 auto; padding: 0 24px; width: 100%; }
main { flex: 1; }
h1 { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.l1 { font-family: var(--font-typewriter); }

header.site { border-bottom: 1px solid var(--hairline); background: var(--surface); }
header.site .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.brand:hover { color: var(--ink); }
header.site nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
header.site nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700;
  color: var(--ink); text-decoration: none; }
header.site nav > a.pill { min-height: 40px; padding: 0 16px; margin-left: 6px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink); font-weight: 800; }
header.site nav > a.pill.me { background: var(--ink); color: var(--surface); }
.lang { display: inline-flex; gap: 2px; padding: 3px; margin-left: 8px; border-radius: var(--radius-pill); background: var(--chip);
  font-size: 12px; font-weight: 800; }
.lang a { padding: 4px 9px; border-radius: var(--radius-pill); color: var(--text-secondary); text-decoration: none; }
.lang a.on { background: var(--surface); color: var(--ink); }

/* Ciò che YesIsReal è (fragments :: traits), sopra il piè di pagina delle pagine pubbliche: quattro disegni con una riga
   in Courier Prime; quattro colonne su computer, due su telefono. */
.traits { border-top: 1px solid var(--hairline); background: var(--teal-wash); }
.traits ul { list-style: none; margin: 0 auto; padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.traits li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.traits svg { max-width: 100%; height: auto; }
.traits span { font-family: var(--font-typewriter); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--ink); max-width: 15ch; }
@media (max-width: 720px) {
  .traits ul { grid-template-columns: repeat(2, 1fr); padding-top: 28px; padding-bottom: 28px; }
  .traits svg { width: 96px; }
  .traits span { font-size: 14px; }
}
footer.site { border-top: 1px solid var(--hairline); margin-top: auto; }
footer.site .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; font-size: 13px; color: var(--text-secondary); }
footer.site .links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
footer.site .links > a { color: var(--text-secondary); }
/* Dati della società (art. 2250 c.c.): riga intera sotto il resto del piè di pagina, anche nella home (hs-foot). */
footer .company { margin: 0; flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
footer .company a { color: var(--text-secondary); }
/* Note legali: etichetta e valore su due colonne, uno sotto l'altro sul telefono. */
.legal-notice dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; margin: 24px 0 0; }
.legal-notice dt { font-weight: 700; color: var(--text-secondary); }
.legal-notice dd { margin: 0; }
@media (max-width: 640px) { .legal-notice dl { grid-template-columns: 1fr; gap: 2px; } .legal-notice dd { margin-bottom: 12px; } }

/* Pulsanti del sito (stessi del design system, in linea) */
.button { min-height: 48px; padding: 0 22px; border-radius: var(--radius-box); border: 0; background: var(--ink); color: var(--surface);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; }
.button:hover { color: var(--surface); }
.button.teal { background: var(--teal); color: var(--surface); border-radius: var(--radius-pill); } /* il colore vince su .small */
.button.pill { border-radius: var(--radius-pill); }
.button.outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.button.light { background: var(--surface); color: var(--ink); }
.button.ghost-dark { background: transparent; color: var(--surface); border: 1.5px solid var(--text-secondary); }
.button.danger { background: var(--surface); color: var(--danger); border: 1.5px solid var(--danger); }
.button.small { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-pill); }
.button[disabled] { background: var(--disabled); color: var(--text-body); border: 0; cursor: default; }
.textlink { font-size: 14px; font-weight: 800; }

/* Segno della Y (ADR-0023): grigio accanto al nome = umano verificato */
.y-human { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.badge-first { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--teal-tint); color: var(--teal-text); font-size: 12px; font-weight: 800; }

/* === Pagina pubblica del contenuto (tavola 10) ============================================================ */
main.content { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 32px; padding-bottom: 48px; }
.primary { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.author { display: flex; align-items: center; gap: 12px; }
.author .name { font-size: 16px; font-weight: 800; color: var(--ink); text-decoration: none; }
.author a.name:hover { text-decoration: underline; color: var(--ink); }
.author .meta { font-size: 13px; color: var(--text-secondary); }
.author .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.photo { width: 100%; border-radius: var(--radius-card); background: var(--placeholder-photo); display: block; height: auto; }
/* Contenuto riservato (ADR-0037): anteprima sfocata ingrandita, col livello sopra. */
.reserved { position: relative; }
.photo.blur { aspect-ratio: 4 / 3; object-fit: cover; filter: blur(6px); transform: scale(1.02); }
.reserved { overflow: hidden; border-radius: var(--radius-card); }
.reserved .veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.reserved .veil .t { font-weight: 800; font-size: 17px; color: var(--paper, #fff); text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.card { border-radius: var(--radius-card); border: 1px solid var(--teal-border); overflow: hidden; }
.card .head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--teal-tint);
  font-size: 15px; font-weight: 800; color: var(--teal-text); }
.card .rows { display: flex; flex-direction: column; padding: 6px 18px; }
.card .fact { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.card .fact:last-child { border-bottom: 0; }
.card .fact svg { flex-shrink: 0; margin-top: 2px; }
.fact .t { font-size: 14px; font-weight: 700; display: block; }
.fact .d { font-size: 13px; color: var(--text-secondary); display: block; }
.card .foot { padding: 12px 18px 16px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.small { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.strong-link { font-size: 13px; font-weight: 700; }
.join { border-radius: var(--radius-card); background: var(--ink); color: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.button.outline-light { background: transparent; color: var(--surface); border: 1.5px solid var(--surface); }
.early-actions { display: flex; flex-direction: column; gap: 10px; }
.join .t { font-size: 18px; font-weight: 800; line-height: 1.3; }
.join p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-on-dark); }
.unavailable { font-size: 15px; font-weight: 700; color: var(--warning); }

/* === Verifica inversa (tavola 11) ======================================================================== */
main.verify { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-secondary); max-width: 720px; }
form.code { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; }
form.code input { flex: 1 1 240px; min-height: 48px; border: 1.5px solid var(--hairline); border-radius: var(--radius-box); padding: 0 16px;
  font: inherit; font-size: 16px; }
.result { border-radius: 20px; border: 1px solid var(--hairline); padding: 18px 20px; max-width: 620px; display: flex; flex-direction: column; gap: 8px; }
.result .t { font-size: 16px; font-weight: 800; }
.scan { position: relative; overflow: hidden; align-self: center; max-width: 100%; border-radius: 14px; background: var(--placeholder-photo); line-height: 0; }
.scan img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }
.scan .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--teal); box-shadow: 0 0 22px 8px var(--teal); opacity: 0.9;
  animation: scan-sweep 2.4s ease-in-out infinite alternate; }
@keyframes scan-sweep { from { top: 0; } to { top: calc(100% - 4px); } }
@media (prefers-reduced-motion: reduce) { .scan .bar { animation: none; top: 50%; } }
/* Avanzamento stimato della verifica (11/11/2026), sopra la foto: barra teal, percentuale a destra, secondi che restano sotto. */
.progress { display: flex; align-items: center; gap: 12px; }
.progress .track { flex: 1; height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.progress .fill { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 3px; transition: width 0.25s linear; }
.progress .pct { min-width: 3.2em; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.progress-left { margin: 0; min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .progress .fill { transition: none; } }
.verify-inputs { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.upload { border: 2px dashed var(--teal); border-radius: 20px; padding: 40px 24px; display: flex; flex-direction: column;
  align-items: center; gap: 10px; background: var(--teal-wash); text-align: center; }
.upload.over { background: var(--teal-tint); }
.upload .t { font-size: 17px; font-weight: 800; }
.upload .status { color: var(--ink); font-weight: 700; }
.upload .button.teal { margin-top: 6px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.explain > div { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-card); background: var(--surface-muted); }
.explain .label { font-size: 13px; font-weight: 800; color: var(--teal-text); }
.explain .t { font-size: 16px; font-weight: 800; }
.verdict { border-radius: 20px; border: 1px solid var(--teal-border); overflow: hidden; max-width: 760px; }
.verdict .head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--teal-tint);
  font-size: 16px; font-weight: 800; color: var(--teal-text); }
.verdict .head.neutral { background: var(--surface-muted); color: var(--ink); }
.verdict .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.verdict .who { display: flex; flex-direction: column; gap: 3px; }
.verdict .who .name { font-size: 15px; font-weight: 800; }
.facts { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius-box); background: var(--surface-muted);
  font-size: 13px; line-height: 1.45; }
.warning { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-box); background: var(--danger-tint);
  border: 1px solid var(--danger-border); font-size: 13px; line-height: 1.45; }
.warning svg { flex-shrink: 0; margin-top: 1px; }
.verdict .button { align-self: flex-start; border-radius: var(--radius-pill); }
/* Esito della verifica (ADR-0043): prima il telefono, una colonna; da 761 px la card del profilo sta di fianco. */
@media (max-width: 760px) { main.verify.outcome-page { padding: 20px 16px 32px; gap: 20px; } }
.outcome-layout { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.outcome { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px;
  border: 1px solid var(--teal-border); background: var(--surface); }
.outcome.negative { border-color: var(--hairline); }
/* Il corpo è calcolato perché il titolo più lungo (11,9 em) stia su una riga. */
.outcome .word { margin: 0; font-size: clamp(20px, calc((100vw - 66px) / 12.1), 30px); line-height: 1.15; font-weight: 800; color: var(--teal-text); }
.outcome .word svg { display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.14em; }
.outcome.tone-yellow .word svg circle { fill: var(--case-craft); }
.outcome.tone-yellow .word svg path { stroke: var(--ink); }
.outcome.tone-red .word svg circle { fill: var(--danger); }
.outcome.negative .word { color: var(--ink); }
.outcome p { margin: 0; }
.outcome .button { align-self: stretch; border-radius: var(--radius-pill); }
.outcome .photo-plain { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--placeholder-photo); }
.outcome-actions { display: flex; gap: 10px; }
/* Tasti a sola icona: il testo è il tooltip, preso da aria-label; sul telefono compare al tocco. */
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn::after { content: attr(aria-label); position: absolute; left: 0; bottom: calc(100% + 6px); padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.icon-btn:hover::after, .icon-btn:focus-visible::after { opacity: 1; }
.comparison { display: flex; flex-direction: column; gap: 8px; }
.compare-box { --pos: 50%; position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-muted); line-height: 0; }
.compare-box.sliding { touch-action: pan-y; cursor: ew-resize; }
.compare-box img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; pointer-events: none; }
.compare-box .copy { position: relative; display: block; width: 100%; height: auto; }
/* A slider aperto la parte che la copia non ha è vuota: dalla trasparenza non deve intravedersi l'originale. */
.compare-box.sliding .copy { background: var(--ink); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-box .original, .compare-box .diff { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.compare-box .original { visibility: hidden; }
.compare-box.backdrop .original, .compare-box.sliding .original { visibility: visible; }
.compare-box.sliding .diff, .compare-box.sliding .cells { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-box.no-highlight .diff, .compare-box.no-highlight .cells { visibility: hidden; }
.compare-box .cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.compare-box .cell.on { background: rgba(255, 224, 0, 0.4); }
.compare-box.reserved .cell { border: 0.5px solid var(--hairline); }
.compare-box.reserved .cell.on { background: rgba(255, 224, 0, 0.55); }
.compare-box .frame { position: absolute; box-sizing: border-box; border: 2px dashed var(--teal); pointer-events: none; }
.compare-box .seam { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.compare-box .seam::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--teal); }
.compare-box .tag { position: absolute; top: 8px; padding: 4px 8px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.62); color: var(--surface); font-size: 12px; line-height: 1.3; font-weight: 800; pointer-events: none; }
.compare-box .tag.yours { left: 8px; }
.compare-box .tag.theirs { right: 8px; }
.compare-box .seam, .compare-box .tag { visibility: hidden; }
.compare-box.sliding .seam, .compare-box.sliding .tag { visibility: visible; }
.compare-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; touch-action: none; cursor: ew-resize; }
.compare-range[hidden] { display: none; }
.compare-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--hairline); }
.compare-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--hairline); }
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 44px; height: 44px; margin-top: -19px; border: 9px solid transparent; border-radius: 50%; background: var(--teal); background-clip: padding-box; }
.compare-range::-moz-range-thumb { box-sizing: border-box; width: 44px; height: 44px; border: 9px solid transparent; border-radius: 50%; background: var(--teal); background-clip: padding-box; }
[data-compare-toggle][aria-pressed="true"], [data-highlight][aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.outcome-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.author-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 16px;
  border-radius: 20px; border: 1px solid var(--hairline); background: var(--surface-muted); }
.author-card .avatar { width: 44px; height: 44px; font-size: 18px; }
.author-card .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.author-card .name { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.author-card .real { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; }
.author-card .button { min-height: 44px; padding: 0 14px; font-size: 14px; }
@media (min-width: 761px) {
  .outcome-layout { flex-direction: row; align-items: flex-start; gap: 24px; }
  .outcome { flex: 1 1 420px; padding: 24px; }
  .outcome .word { font-size: clamp(28px, calc((100vw - 422px) / 12.1), 48px); }
  .outcome .button { align-self: flex-start; }
  .comparison { max-width: 760px; }
  .outcome-side { flex: 0 1 300px; }
  .author-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; }
  .author-card .avatar { width: 96px; height: 96px; font-size: 38px; }
  .author-card .who { align-items: center; gap: 6px; }
  .author-card .name { font-size: 20px; white-space: normal; }
  .author-card .meta { flex-direction: column; gap: 6px; }
  .author-card .button { margin-top: 10px; min-height: 48px; padding: 0 22px; font-size: 15px; }
}

/* === Pagina del link d'invito (tavole 40, 40a–d): fascia scura con le forme piatte, biglietto, passi ======== */
.invite-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--surface); }
.invite-hero::before { content: ""; position: absolute; right: -60px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: var(--case-sell); }
.invite-hero::after { content: ""; position: absolute; right: 22%; bottom: 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--case-craft); }
.invite-hero.plain::before, .invite-hero.plain::after { display: none; }
.invite-hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.invite-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.invite-hero-ticket { flex: 0 1 342px; display: flex; flex-direction: column; gap: 14px; margin: 0 auto; }
.invite-lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-body); max-width: 560px; }
.invite-lead strong { font-weight: 800; color: var(--ink); }
.invite-lead em { font-style: normal; color: var(--teal-text); }
.invite-lead.dark { font-size: 18px; color: #D6D4CE; }
.invite-lead.dark strong { color: var(--surface); }
.invite-lead.dark em { color: var(--teal-on-dark); }
.invite-few { margin: 0; padding: 10px 12px; border-radius: var(--radius-box); background: #262624; font-size: 14px; font-weight: 700; }
.ticket { display: flex; width: 100%; max-width: 342px; min-height: 230px; color: var(--ink); }
.ticket-main { flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--radius-ticket) 0 0 var(--radius-ticket); background: var(--paper);
  border: 1px solid var(--paper-border); border-right: 0; display: flex; flex-direction: column; gap: 10px; }
.ticket-label { font-size: 11px; font-weight: 800; color: var(--teal-text); text-transform: uppercase; letter-spacing: 1.4px; }
.ticket-who { display: flex; align-items: center; gap: 10px; }
.ticket-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--placeholder-avatar); border: 2px solid var(--surface); flex-shrink: 0; object-fit: cover; }
.ticket-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-name { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.ticket-handle { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.ticket-human { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 2px; border-radius: var(--radius-pill);
  background: var(--teal-tint); color: var(--teal-text); font-size: 10px; font-weight: 700; }
.ticket-text { margin: 0; font-size: 13px; line-height: 1.38; color: var(--text-body); }
.ticket-text strong { font-weight: 800; color: var(--ink); }
.ticket-number { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1.5px dashed var(--paper-dash); }
.ticket-number-label { font-size: 10px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.2px; }
.ticket-number-value { font-size: 22px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.ticket-stub { width: 84px; flex-shrink: 0; border-radius: 0 var(--radius-ticket) var(--radius-ticket) 0; background: var(--teal); border-left: 2px dashed var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; font-weight: 800; color: var(--surface); text-transform: uppercase; letter-spacing: 1.2px; }
.ticket.exhausted { opacity: 0.6; filter: grayscale(1); }
.ticket.exhausted .ticket-stub { background: var(--ticket-spent); }
main.invite { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
main.invite.desktop { max-width: var(--web-container); flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 40px; }
.invite-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.invite-steps li { display: flex; align-items: flex-start; gap: 12px; }
.invite-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.invite-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.invite-steps .t, .invite-cta .t, .invite-qr .t, .invite-box .t { font-size: 14px; font-weight: 800; }
.invite-steps .d { font-size: 13px; color: var(--text-secondary); }
.invite-steps.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.invite-steps.grid li { flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface-muted); }
.invite-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 8px; }
.invite-cta .t { font-size: 15px; }
.store img { display: block; width: auto; }
.invite-note { margin: 0; padding: 14px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-text); font-size: 13px; line-height: 1.45; }
.invite-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--hairline); }
.invite-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.invite-actions .button { width: 100%; justify-content: center; }
.invite-desktop-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.invite-desktop-text h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.invite-number { color: var(--ink); font-weight: 800; }
.invite-qr { flex: 1 1 280px; min-width: 0; padding: 22px; border-radius: var(--radius-ticket); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.invite-qr .qr svg { display: block; border-radius: var(--radius-box); border: 1px solid var(--hairline); }
.invite-stores { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hairline); }

/* === Pagina di un evento (tavola W1) ===================================================================== */
main.event { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.event-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.event-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.event-details { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--text-body); }
.event-note { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-box);
  background: var(--teal-tint); color: var(--teal-text); font-size: 13px; line-height: 1.45; max-width: 560px; }
.event-note svg { flex-shrink: 0; margin-top: 1px; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.event-ticket { flex: 0 1 342px; margin: 0 auto; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.event-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--surface-muted); }
.event-card .t { font-size: 15px; font-weight: 800; }
.event-card .d { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 720px) {
  main.event { padding-top: 24px; gap: 24px; }
  .event-hero { flex-direction: column; align-items: stretch; gap: 24px; }
  .event-text { flex-basis: auto; }
  .event-actions .button { width: 100%; justify-content: center; }
}

/* === Pagina del link di una richiesta di prova (tavola W1 del canvas PRV) ================================ */
main.proof { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.proof-who { display: flex; align-items: center; gap: 10px; }
.proof-head { display: flex; flex-direction: column; gap: 12px; }
.proof-ask { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-ticket); background: var(--paper); }
.proof-body { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.proof-section { display: flex; flex-direction: column; gap: 12px; }
.proof-section h2 { margin: 0; font-size: 20px; font-weight: 800; }
.proof-facts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--text-body); }
.proof-open { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; }
.proof-report { text-decoration: underline; }
@media (max-width: 720px) {
  main.proof { padding-top: 24px; gap: 22px; }
  .proof-body { font-size: 16px; }
}

/* === Home di lancio (tavola 37) ========================================================================== */
.hero { background: var(--surface-muted); border-bottom: 1px solid var(--hairline); }
.hero .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero h1 { font-size: 54px; line-height: 1.02; letter-spacing: -1.6px; }
.hero .lead { font-size: 18px; }
.strip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--teal-border); align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--teal-text); }
.strip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-ticket); min-height: 200px;
  text-decoration: none; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); }
.tool:hover { color: var(--ink); border-color: var(--border-input); }
.tool .t { font-size: 20px; font-weight: 800; line-height: 1.2; margin-top: auto; }
.tool .d { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.tool .go { font-size: 13px; font-weight: 800; }
.tool.dark { background: var(--ink); border: 0; color: var(--surface); }
.tool.dark .d { color: var(--text-on-dark); } .tool.dark .go { color: var(--teal-on-dark); }
.tool.teal { background: var(--teal); border: 0; color: var(--surface); }
.tool.teal .d { color: var(--teal-on-teal); }
.tool .stores-row { display: flex; gap: 8px; flex-wrap: wrap; }
main.home { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.section-head p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-secondary); max-width: 640px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.case { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); }
.case .art { height: 170px; display: flex; align-items: center; justify-content: center; }
.case .art svg { max-width: 100%; height: auto; }
.case .txt { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.case .t { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.4px; }
.case p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.case .ex { font-size: 12px; font-weight: 700; }
.case.sell .art { background: var(--case-sell-bg); } .case.sell .ex { color: var(--case-sell-text); }
.case.social .art { background: var(--case-social-bg); } .case.social .ex { color: var(--case-social-text); }
.case.proof .art { background: var(--teal-tint); } .case.proof .ex { color: var(--teal-text); }
.case.business .art { background: var(--case-business-bg); } .case.business .ex { color: var(--case-business-text); }
.case.trip .art { background: var(--case-trip-bg); } .case.trip .ex { color: var(--case-trip-text); }
.case.craft .art { background: var(--case-craft-bg); } .case.craft .ex { color: var(--case-craft-text); }
.case.real .art { background: var(--case-real-bg); } .case.real .ex { color: var(--case-real); }
.start { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.start .txt { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.start h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.start p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.areas { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--teal-border); font-size: 14px; font-weight: 800; }
.eyebrow-teal { font-size: 12px; font-weight: 800; color: var(--teal-text); text-transform: uppercase; letter-spacing: 0.8px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 28px;
  border-radius: var(--radius-ticket); background: var(--ink); color: var(--surface); }
.closing .txt { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.closing .t { font-size: 20px; font-weight: 800; line-height: 1.3; }
.closing .d { font-size: 14px; color: var(--text-on-dark); line-height: 1.5; }
.closing .d em { font-style: normal; color: var(--teal-on-dark); font-weight: 800; }
.closing .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps3 > div { display: flex; gap: 12px; padding: 20px; border-radius: var(--radius-card); background: var(--surface-muted); }
.steps3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.steps3 .t { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.steps3 .d { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }

/* === Home a regime ed Esplora (tavole 34, 33): griglia dei contenuti pubblici ============================ */
.verify-box { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-ticket); background: var(--surface);
  border: 1px solid var(--hairline); }
.verify-box .t { font-size: 20px; font-weight: 800; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-grid .hero-text { flex: 1 1 480px; }
.hero-grid .verify-box { flex: 1 1 380px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feed-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
section > .feed-head { margin-bottom: 16px; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1 1 200px; min-height: 48px; border: 1.5px solid var(--border-input); border-radius: var(--radius-box); padding: 0 16px;
  font: inherit; font-size: 16px; }
.aside-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.form-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--hairline);
  background: var(--surface); text-decoration: none; color: var(--ink); }
.item:hover { color: var(--ink); border-color: var(--border-input); }
.item .pic { position: relative; aspect-ratio: 4 / 3; background: var(--placeholder-photo); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .code { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: var(--radius-sm); background: var(--overlay-dark);
  color: var(--surface); font-size: 10px; font-weight: 700; }
.item .meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.item .who { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.item .when { font-size: 12px; color: var(--text-secondary); }
.chip-teal { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-badge); border: 1px solid var(--teal-border);
  color: var(--teal-text); font-size: 12px; font-weight: 700; align-self: flex-start; }
.empty { padding: 32px; border-radius: var(--radius-card); background: var(--surface-muted); color: var(--text-secondary); font-size: 15px; text-align: center; }
.more { display: flex; justify-content: center; }
.join-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px;
  border-radius: var(--radius-card); background: var(--surface-muted); }
.join-wide p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-body); max-width: 720px; }

/* === Profilo pubblico (tavola 12) ======================================================================== */
.profile-head { background: var(--surface-muted); border-bottom: 1px solid var(--hairline); }
.profile-head .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--placeholder-deep); flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; color: var(--surface); font-size: 38px; font-weight: 800; }
.avatar.sm { width: 44px; height: 44px; font-size: 18px; background: var(--placeholder-avatar); color: var(--ink); }
img.avatar { object-fit: cover; }
/* L'immagine di una pagina: quadrato con gli angoli arrotondati, raggio un quarto del lato; il cerchio resta delle persone (operatore, 24/11/2026). */
.avatar.square { border-radius: 25%; }
.profile-id { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-id .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-id h1 { font-size: 30px; letter-spacing: -0.5px; }
.profile-id .meta { font-size: 14px; color: var(--text-secondary); }
main.profile { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px; }
.profile-collections { margin-bottom: 28px; }
.profile-collections h2 { font-size: 18px; margin-bottom: 12px; }
.collections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.collections .cover { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-muted); }
.collections .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collections strong { display: block; font-size: 13px; margin-top: 6px; }
.collections .count { font-size: 12px; color: var(--text-secondary); }
main.profile > section { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
main.profile > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
main.profile .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.why { border-radius: var(--radius-card); background: var(--surface-muted); padding: 18px; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.why strong { color: var(--ink); font-weight: 800; }

/* === Accesso dal web e area utente (canvas ACC righe WA, WT; ADR-0028) ==================================== */
.yw-main { flex: 1; display: flex; }
/* Pannello di Accedi e Registrati: la schermata d'ingresso dell'app (ING-01) su carta, titolo e cose reali. */
.yw-aside { width: 520px; flex-shrink: 0; padding: 56px 48px; background: var(--paper); border-right: 1px solid var(--paper-border);
  display: flex; flex-direction: column; align-items: center; gap: 28px; }
.wa-claim { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 34px; font-weight: 800;
  line-height: 1.12; letter-spacing: -1px; color: var(--ink); }
.wa-teal { color: var(--teal); }
.wa { width: 100%; max-width: 410px; height: auto; display: block; }
.wa-things { opacity: 0.42; }
.wa text { font-family: var(--font-sans); font-size: 12px; font-weight: 800; letter-spacing: 0.2px; fill: var(--ink); text-anchor: middle; }
.wa-pop { transform-box: fill-box; transform-origin: center; animation: wa-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.15s); }
.wa-arm { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wa-draw 0.6s ease-in-out 0.4s forwards; }
@keyframes wa-pop { from { transform: scale(0.01); } to { transform: scale(1); } }
@keyframes wa-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-pop { animation: none; } .wa-arm { animation: none; stroke-dashoffset: 0; } }
.yw-pane { flex: 1; min-width: 0; display: flex; justify-content: center; padding: 56px 40px 40px; }
.yw-form { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.yw-form h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.5px; }
.yw-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.yw-actions { display: flex; flex-direction: column; gap: 10px; }
/* I tasti del modulo hanno la forma di quelli dell'app: rettangoli arrotondati da 54 px. */
.yw-form .button:not(.small) { min-height: 54px; border-radius: var(--radius-button); font-size: 16px; }
.yw-modal-scrim { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.38); display: flex; align-items: flex-start; justify-content: center;
  padding: 120px 16px 16px; z-index: 10; }
.yw-modal { width: 480px; max-width: 100%; border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
  padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.yw-modal .t { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.3px; }
@keyframes yw-toast-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.yw-toast { animation: yw-toast-out 5s forwards; }
.yw-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: var(--ink);
  color: var(--surface); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; z-index: 10; }
.option { padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border-radius: var(--radius-card);
  border: 1px solid var(--hairline); background: var(--surface); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.option:hover { color: var(--ink); border-color: var(--border-input); }
.option.selected { border-color: var(--teal-border); background: var(--teal-wash); }
.option .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.option .t { font-size: 14px; font-weight: 700; }
.option .d { font-size: 12px; color: var(--text-secondary); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.linkrow { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--text-secondary); }

.yw-app { flex: 1; display: flex; }
.yw-content { flex: 1; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 20px; background: var(--surface-muted); }
.yw-content h1 { font-size: 28px; letter-spacing: -0.5px; line-height: 1.15; }
.yw-content .intro { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); max-width: 720px; }
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; }
.panel > .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap; }
.panel > .ph .t { font-size: 16px; font-weight: 800; }
.panel > .ph .d { font-size: 13px; color: var(--text-secondary); }
.panel .line { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.panel .line:last-child { border-bottom: 0; }
.panel .line .txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.panel .line .t { font-size: 15px; font-weight: 800; }
.panel .line .d { font-size: 13px; color: var(--text-secondary); }
.panel .line .d.alert { color: var(--danger); font-weight: 700; }
/* Privacy: il tasto di cui parla la voce, in piccolo e cerchiato (operatore, 12/11/2026) */
.panel .line .sample { display: flex; gap: 8px; margin-top: 6px; }
.panel .line .sample .ring { display: inline-flex; flex-direction: column; padding: 6px 10px; border: 1.5px solid var(--teal);
  border-radius: 10px; background: var(--surface-muted); font-size: 11px; line-height: 1.3; color: var(--text-secondary); }
.panel .line .sample .ring strong { font-size: 14px; font-weight: 800; color: var(--ink); }
.panel .line .sample .ring.rx-row { flex-direction: row; align-items: center; gap: 0; }
.panel .line .sample .ring.rx-row .rx + .rx { margin-left: -4px; }
.panel .line .sample .ring.rx-row strong { font-size: 13px; font-weight: 700; margin-left: 6px; }
.panel .line .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.panel .foot { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface-muted); font-size: 13px; color: var(--text-secondary); }
.panel .pad { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span:last-child { color: var(--text-secondary); text-align: right; }
.kv span.warn { color: var(--warning); font-weight: 700; }
.icon-box { width: 44px; height: 44px; border-radius: var(--radius-box); background: var(--chip); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; }
.icon-box.teal { background: var(--teal-tint); }
.tag { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--teal-text); font-size: 11px; font-weight: 700;
  margin-left: 6px; vertical-align: middle; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; }
.kpi-box .v { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.kpi-box .l { font-size: 13px; color: var(--text-secondary); }
.continue { display: flex; gap: 24px; align-items: center; padding: 22px; border-radius: var(--radius-card); background: var(--surface);
  border: 1px solid var(--hairline); flex-wrap: wrap; }
.continue .txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.continue .t { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.progress { display: flex; gap: 22px; flex-wrap: wrap; }
.launch-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--ink);
  color: var(--surface); font-size: 14px; font-weight: 700; }
.launch-strip .p { margin-left: auto; color: var(--teal-on-dark); font-weight: 800; }
.big-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.big-action { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius-card); background: var(--surface);
  border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.big-action:hover { color: var(--ink); border-color: var(--border-input); }
.big-action .t { font-size: 16px; font-weight: 800; }
.big-action .d { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.big-action .go { font-size: 12px; font-weight: 800; color: var(--teal-text); margin-top: auto; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-card); background: var(--surface);
  border: 1px solid var(--hairline); }
.choice .dot { width: 40px; height: 40px; border-radius: var(--radius-box); flex-shrink: 0; }
.choice .txt { display: flex; flex-direction: column; gap: 4px; }
.choice .t { font-size: 16px; font-weight: 800; }
.choice .d { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.choice .go { font-size: 12px; font-weight: 800; color: var(--teal-text); }
.choice.sell .dot { background: var(--case-sell); } .choice.social .dot { background: var(--case-social); }
.choice.proof .dot { background: var(--teal); } .choice.trip .dot { background: var(--case-trip); }
.choice.business .dot { background: var(--case-business); } .choice.craft .dot { background: var(--case-craft); }
.choice.real .dot { background: var(--case-real); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-box); font-size: 13px; line-height: 1.45;
  background: var(--surface-muted); color: var(--text-body); }
.notice.teal { background: var(--teal-tint); color: var(--teal-text); }
.notice.danger { background: var(--danger-tint); border: 1px solid var(--danger-border); color: var(--ink); }
.notice svg { flex-shrink: 0; margin-top: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input { min-height: var(--input-h); border: 1.5px solid var(--border-input); border-radius: var(--radius-box); padding: 0 14px; font: inherit;
  font-size: 16px; background: var(--surface); }
.field input:focus { border-color: var(--teal); outline: none; }
.field input.otp { min-height: var(--otp-h); font-size: 26px; font-weight: 800; letter-spacing: 10px; text-align: center; }
.field input.error, .field textarea.error { border-color: var(--danger); }
.field textarea { min-height: 112px; border: 1.5px solid var(--border-input); border-radius: var(--radius-box); padding: 12px 14px; font: inherit;
  font-size: 16px; background: var(--surface); resize: vertical; }
.field textarea:focus { border-color: var(--teal); outline: none; }
.field .help { font-size: 12px; color: var(--text-secondary); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); }
.check .d { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.use-app { display: none; }

[hidden] { display: none !important; }
.grid.mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grid.mini .meta { padding: 8px 10px; }
.chip-teal.muted { border-color: var(--hairline); color: var(--text-secondary); }
.kv .invite-number { font-size: 18px; letter-spacing: 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel .line .t svg { vertical-align: middle; margin-left: 4px; }

/* === Guscio dell'app (ADR-0123, ADR-0072) ==================================================================
   Con l'accesso: intestazione con ☰, marchio e notifiche; a sinistra la colonna con le cinque voci della barra
   dell'app; il Menu che entra da sinistra; il riquadro «Si fa dall'app». Sotto i 600 px resta la testata del sito. */
header.site.shell-narrow { display: none; }
/* Barra in basso (D4): il contenuto lascia sotto lo spazio della barra (filo 1 + 6 + voci 48 + 8) e del disco di Crea. */
body:has(.yw-bar) { padding-bottom: 64px; }
.shell-top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.shell-top-row { min-height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 20px 0 16px; }
.shell-top-row .brand { margin-right: auto; }
.shell-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.shell-ic:hover { background: var(--chip); color: var(--ink); }
.shell-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--teal); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 1.5px var(--surface); }
.yw-bar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--hairline); background: var(--surface); }
.yw-bar-row { display: flex; align-items: flex-start; max-width: 640px; margin: 0 auto; padding: 6px 8px 8px; }
.yw-bar-row > a, .yw-bar-row > button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; height: 48px;
  padding: 0; border: 0; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.yw-bar-row > a:hover, .yw-bar-row > button:hover { color: var(--teal-text); }
.yw-bar-row > a.on { color: var(--teal); }
/* Crea: nella riga occupa 40, il disco da 60 sporge di 20 sopra il filo (BottomNav). */
.yw-bar-row > button.create { height: 40px; align-items: flex-end; }
.yw-bar .disc { display: flex; align-items: center; justify-content: center; width: var(--create-size); height: var(--create-size); border-radius: 50%;
  background: var(--teal); color: #FFFFFF; box-shadow: var(--shadow-create); }
.yw-bar-row > button.create:hover .disc { background: var(--teal-hover); }
.shell-me-ring { display: inline-flex; padding: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px transparent; }
.yw-bar-row > a.on .shell-me-ring { box-shadow: inset 0 0 0 2px var(--teal); }
.shell-me-pic { width: 24px; height: 24px; margin: 2px; border-radius: 50%; object-fit: cover; background: var(--placeholder-avatar); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

.shell-dialog { padding: 0; border: 0; color: var(--ink); }
.shell-dialog::backdrop { background: var(--scrim); }
.shell-dialog-body { display: flex; flex-direction: column; gap: 14px; }
.shell-menu { margin: 0; width: 340px; max-width: 92vw; height: 100%; max-height: none; background: var(--surface-muted); }
.shell-menu .shell-dialog-body { min-height: 100%; padding: 16px 16px 24px; box-sizing: border-box; }
.shell-menu[open] { animation: shell-in .18s ease-out; }
@keyframes shell-in { from { transform: translateX(-100%); } to { transform: none; } }
.shell-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 0; }
.shell-menu-head .t { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.shell-menu-head form { margin: 0; }
.shell-me { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.shell-me .avatar.sm { width: 52px; height: 52px; }
.shell-me .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shell-me .n { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-me .s { font-size: 12px; color: var(--text-secondary); }
.shell-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shell-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 84px; padding: 12px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-button); color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 700; position: relative; font-family: inherit; text-align: left; cursor: pointer; }
.shell-tile:hover { border-color: var(--teal-border); color: var(--ink); }
.ico { display: inline-flex; color: var(--ink); }
.ico.sell { color: var(--case-sell-text); }
.ico.craft { color: var(--case-craft-text); }
.ico.teal { color: var(--teal-text); }
.ico.real { color: var(--case-real); }
.ico.social { color: var(--case-social-text); }
.shell-tile.paper { background: var(--paper); border-color: var(--paper-border); }
.shell-tile-n { position: absolute; top: 14px; right: 12px; font-size: 12px; font-weight: 700; color: var(--teal-text); }
.yw-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 12px 24px 20px; }
footer.yw-legal .company { margin: 0; flex-basis: auto; }
.shell-rows { display: flex; flex-direction: column; margin: 0; padding: 4px 10px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); }
.shell-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border: 0; background: transparent; font: inherit;
  color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.shell-row + .shell-row { border-top: 1px solid var(--hairline); }
.shell-row:hover { color: var(--teal-text); }
.shell-row .t { flex: 1; font-size: 14px; font-weight: 700; }
.shell-row .v { font-size: 13px; color: var(--text-secondary); }
/* «Elimina l'account» (D91): la riga rossa delle Impostazioni, cosa succede alla chiusura e la scelta sui contenuti. */
.shell-row.danger, .shell-row.danger:hover { color: var(--danger); }
.closure-facts { list-style: none; margin: 16px 0; padding: 4px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; }
.closure-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.closure-facts li + li { border-top: 1px solid var(--hairline); }
.closure-facts li > span, .closure-option > span { display: flex; flex-direction: column; gap: 2px; }
.closure-facts .t, .closure-option .t { font-size: 15px; font-weight: 700; }
.closure-facts .small, .closure-option .small { color: var(--text-secondary); }
.closure-choice { margin: 16px 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.closure-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface); border: 1.5px solid var(--hairline); border-radius: 14px; cursor: pointer; }
.closure-option:has(input:checked) { border-color: var(--teal); }
.closure-option input { margin-top: 3px; accent-color: var(--teal); }
.shell-row .chev { display: inline-flex; color: var(--text-secondary); }
.shell-exit { width: 100%; min-height: 48px; border: 0; border-radius: var(--radius-button); background: var(--chip); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.shell-exit:hover { background: var(--hairline); }
.shell-sec { margin: 8px 0 -8px; padding: 0 4px; font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.yw-content .shell-rows { max-width: 640px; }
.shell-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px 0 -12px -10px;
  border-radius: 50%; color: var(--ink); }
.shell-back:hover { background: var(--chip); color: var(--ink); }
.shell-app { width: 420px; max-width: 92vw; border-radius: var(--radius-card); background: var(--surface); }
.shell-app .shell-dialog-body { padding: 24px; align-items: flex-start; }
.shell-app .t { font-size: 22px; font-weight: 800; }
.shell-app form { margin: 4px 0 0; }
.shell-app .stores-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .shell-menu[open] { animation: none; } }
@media (max-width: 599px) {
  body:has(.yw-bar) { padding-bottom: 0; }
  .yw-bar, .shell-top { display: none; }
  header.site.shell-narrow { display: block; }
}

/* === Muro della Home (ADR-0123, ADR-0073) ===================================================================
   Una colonna come nell'app: filtri a pillole, card a tutta larghezza (al più 600 px) con autore, motivo e tempo, contenuto
   4:5, reazioni (clic = Mi piace, passando sopra le sei), commenti, «Copia il link», descrizione in Courier Prime. */
.yw-content.home-wall { align-items: center; }
.home-wall > * { max-width: 640px; width: 100%; box-sizing: border-box; }
.wall { display: flex; flex-direction: column; gap: 14px; }
.wall-title { margin: 8px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.wall-filters { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: 65px; z-index: 5; padding: 6px 0; background: var(--surface-muted); }
.wall-filters a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--border-input); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.wall-filters a.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 800; }
.wall-list { display: flex; flex-direction: column; gap: 14px; }
.wall-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; scroll-margin-top: 140px; }
.wall-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.wall-pic { display: inline-flex; flex-shrink: 0; }
.wall-pic .avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.wall-pic.ev { width: 38px; height: 38px; border-radius: 10px; background: var(--case-trip-bg); color: var(--case-trip-text); align-items: center; justify-content: center; }
.wall-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wall-id .row { display: flex; align-items: center; gap: 6px; }
.wall-id .name { font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-id .meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); }
.wall-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--placeholder-photo); overflow: hidden; }
.wall-media img, .wall-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-media video { object-fit: contain; background: #141414; }
.wall-media .multi { position: absolute; right: 10px; top: 10px; height: 24px; padding: 0 8px 0 7px; border-radius: 999px; background: var(--overlay-dark);
  color: #FFFFFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.wall-media .lock { position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--reserved); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; }
.wall-media .lock.private { background: var(--private); }
.wall-media.text-tile { position: relative; inset: auto; display: flex; text-decoration: none; }
.wall-media.text-tile > span { font-size: 22px; line-height: 1.35; }
.wall-longtext { padding: 2px 16px 6px; font-size: 16px; line-height: 1.5; white-space: pre-line; }
.wall-longtext p { margin: 0; }
.wall-poll { display: flex; flex-direction: column; gap: 10px; margin: 0 14px; padding: 18px; border-radius: var(--radius-button); background: var(--case-business-bg);
  color: var(--ink); text-decoration: none; }
.wall-poll .q { font-size: 18px; font-weight: 800; }
.wall-poll .go { align-self: flex-start; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--case-business); color: #FFFFFF; font-size: 14px; font-weight: 800; }
.wall-grid { position: relative; display: grid; gap: 2px; aspect-ratio: 4 / 5; background: var(--placeholder-photo); }
.wall-grid.n2 { grid-template-columns: 1fr 1fr; }
.wall-grid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.wall-grid.n3 img:first-child { grid-row: span 2; }
.wall-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.wall-grid .chip-event { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 6px; background: #FFFFFF; color: var(--case-trip-text);
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.wall-stack { display: flex; align-items: center; gap: 16px; padding: 4px 14px 16px; color: var(--ink); text-decoration: none; }
.wall-stack .pile { position: relative; width: 120px; height: 150px; flex-shrink: 0; }
.wall-stack .pile img { position: absolute; width: 104px; height: 130px; object-fit: cover; border-radius: 10px; border: 2px solid #FFFFFF; box-shadow: var(--shadow-floating); }
.wall-stack .pile img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.wall-stack .pile img:nth-child(2) { left: 8px; top: 10px; z-index: 2; transform: rotate(4deg); }
.wall-stack .pile img:nth-child(3) { left: 16px; top: 20px; z-index: 1; transform: rotate(8deg); }
.wall-stack .txt { display: flex; flex-direction: column; gap: 4px; }
.wall-stack .t { font-size: 17px; font-weight: 800; }
.wall-stack .d { font-size: 13px; color: var(--text-secondary); }
.wall-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px; }
.wall-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.wall-act:hover { background: var(--chip); color: var(--ink); }
.wall-act.static { cursor: default; }
.wall-act.static:hover { background: transparent; }
.wall-act.copy-link { margin-left: auto; border: 0; color: var(--text-secondary); }
/* Nelle anteprime l'intestazione è più alta di 30 px (la fascia «Anteprima con dati d'esempio»). */
.shell-top:has(.preview-bar) ~ .yw-app .wall-filters { top: 95px; }
.wall-react { position: relative; margin: 0; }
.wall-react .rx-bar { position: absolute; left: 0; bottom: 100%; display: none; gap: 4px; padding: 6px 8px; border-radius: var(--radius-pill); background: var(--surface);
  box-shadow: var(--shadow-floating); border: 1px solid var(--hairline); z-index: 4; }
.wall-react:hover .rx-bar, .wall-react:focus-within .rx-bar { display: flex; }
.wall-react .rx-bar button { padding: 2px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .12s ease-out; }
.wall-react .rx-bar button:hover, .wall-react .rx-bar button:focus-visible { transform: scale(1.18); }
.wall-react .rx-bar button.on { box-shadow: 0 0 0 2px var(--teal); }
.wall-desc { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.wall-more { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 800; text-decoration: none; }
.wall-more[aria-busy="true"] { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .wall-react .rx-bar button { transition: none; } }

/* === Cerca (ADR-0123, ADR-0116) ==============================================================================
   Il campo a pillola, i chip a sola icona (la scritta su quello scelto), i gruppi in righe bordate come le Impostazioni. */
.search-form { position: relative; display: flex; align-items: center; margin: 0; }
.search-form .ico { position: absolute; left: 16px; color: var(--text-secondary); }
.search-form input[type="search"] { width: 100%; min-height: 48px; padding: 0 18px 0 46px; border: 1px solid var(--border-input); border-radius: var(--radius-pill);
  background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); box-sizing: border-box; }
.search-form input[type="search"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.search-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.search-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; min-width: 38px; justify-content: center; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); font-size: 14px; font-weight: 700;
  text-decoration: none; box-sizing: border-box; }
.search-chips a.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.search-group { display: flex; flex-direction: column; gap: 8px; }
.search-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.search-head h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-secondary); }
.search-head a { font-size: 14px; font-weight: 800; color: var(--teal-text); text-decoration: none; }
.search-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 4px; color: var(--ink); text-decoration: none; }
.search-row + .search-row { border-top: 1px solid var(--hairline); }
a.search-row:not([href]) { cursor: default; }
.search-row .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-row .t { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-row .t svg { vertical-align: -2px; }
.search-row .d { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.search-row .tag { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--chip); font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.search-day { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--case-trip-bg); color: var(--case-trip-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.search-day .m { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.search-day .n { font-size: 18px; font-weight: 800; }
.search-none { display: flex; flex-direction: column; gap: 6px; padding: 28px 8px; text-align: center; }
.search-none .t { font-size: 18px; font-weight: 800; }
.search-none .d { font-size: 14px; color: var(--text-secondary); }
.shell-ic.on { background: var(--teal-wash); color: var(--teal-text); }

/* === Anteprima degli stati =============================================================================== */
main.preview { padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.preview-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.preview-list .panel .pad a { font-weight: 700; }
.preview-bar { background: var(--warning-tint); color: var(--warning-text); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 12px; }
.preview-bar a { color: var(--warning-text); }

/* === Misure ============================================================================================== */
/* Accesso anticipato (tavola 42): tre schede, quella del passo in corso in evidenza. */
main.early { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.early-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.early-head .lead { font-size: 17px; }
.chip-teal.early-ref { align-self: flex-start; padding: 8px 14px; border: 0; border-radius: var(--radius-pill); background: var(--teal-tint);
  color: var(--teal-text); font-size: 13px; font-weight: 700; }
.early-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.early-card { flex: 1 1 280px; min-width: 0; box-sizing: border-box; padding: 24px; border-radius: 18px; background: var(--surface-muted);
  display: flex; flex-direction: column; gap: 14px; }
.early-card.on { flex: 1.3 1 360px; background: var(--surface); border: 2px solid var(--teal); }
.early-step { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.early-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.early-card.idle .early-num { background: var(--text-secondary); }
.early-form { display: flex; flex-direction: column; gap: 14px; }
.early-form .button { margin-top: 4px; }
.field label .optional { font-weight: 500; color: var(--text-secondary); }
.link-button { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--teal); cursor: pointer;
  text-decoration: underline; }
.early-mark { display: flex; justify-content: center; padding: 8px 0; }
.early-mark svg { padding: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); }
.early-text { margin: 0; font-size: 15px; line-height: 1.5; }
.early-links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.early-note { max-width: 760px; }

@media (max-width: 1099px) {
  .yw-main { flex-direction: column; }
  .yw-aside { width: auto; padding: 28px 32px; border-right: 0; border-bottom: 1px solid var(--paper-border); }
  .yw-aside .wa { display: none; }
  .wa-claim { font-size: 26px; }
  .yw-pane { padding: 40px 24px; }
  .yw-content { padding: 24px; }
}
@media (max-width: 640px) {
  h1 { font-size: 32px; } .wrap { padding: 0 16px; } .invite-hero h1 { font-size: 26px; }
  .invite-hero::before { width: 140px; height: 140px; right: -60px; top: -50px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; } .section-head h2 { font-size: 30px; }
  .cases { grid-template-columns: 1fr; }
  .early-card.idle { display: none; }
}
/* Sotto i 600 px l'area utente non c'è: al suo posto «Dal telefono si usa l'app» (ACC-WT7, piano § Area web). */
@media (max-width: 599px) {
  .yw-app, .yw-main.private { display: none; }
  .use-app { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 40px 16px; }
}

/* Definizioni SVG condivise (filtro del segno a mano): fuori dal flusso. Classe e non attributo style: la CSP non ammette stili inline. */
.svg-defs { position: absolute; }

/* Registrazione dal web */
.signup-date { border: 0; margin: 0; padding: 0; }
.signup-date legend { padding: 0; font-size: 13px; font-weight: 700; }
.signup-date__row { display: flex; gap: 10px; }
.signup-date__row label { flex: 1; min-width: 0; }
.signup-date__row label:last-child { flex: 1.4; }
.signup-date__row input { width: 100%; text-align: center; }
.signup-how summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* La cerchia (ADR-0039): «Aggiungi una persona» nell'area utente, i gesti sulla pagina del profilo, la veil del riservato. */
.add-person { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.add-person .row { display: flex; gap: 8px; flex-wrap: wrap; }
.add-person input { min-height: 44px; flex: 1 1 200px; border: 1.5px solid var(--border-input); border-radius: var(--radius-box); padding: 0 14px; font: inherit; }
.add-person input:focus { border-color: var(--teal); outline: none; }
.profile-circle .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.profile-circle form.inline { display: inline; margin-left: 8px; }
.reserved .veil .sent { font-size: 13px; font-weight: 700; opacity: .9; }

/* Persone e Notifiche nell'area utente (ADR-0040, tavola 17): schede, voci non lette, blocco discreto sul profilo. */
.tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.tabs a.on { background: var(--teal-wash); color: var(--teal-text); border-color: transparent; }
.panel .line.unread { background: #F4FAF8; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.profile-block { margin-top: 16px; color: var(--text-secondary); }
.profile-block summary { cursor: pointer; font-weight: 700; }
.profile-block form { margin-top: 8px; }

/* Reazioni, commenti e statistiche (ADR-0041, canvas SOC) */
.rx { flex-shrink: 0; display: block; }
.rx .rx-f { fill: var(--surface); }
.rx .rx-l { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rx-like .rx-bg { fill: var(--teal); }
.rx-heart .rx-bg { fill: var(--case-real); }
.rx-laugh .rx-bg { fill: var(--case-craft); }
.rx-wow .rx-bg { fill: var(--case-sell); }
.rx-sad .rx-bg { fill: var(--case-social); }
.rx-angry .rx-bg { fill: var(--warning); }
.rx-laugh .rx-f, .rx-wow .rx-f { fill: var(--ink); }
.rx-laugh .rx-l { stroke: var(--ink); }
.social { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.rx-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 48px; }
.rx-row form { margin: 0; }
.rx-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--border-input); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rx-btn.on { border-color: var(--teal); background: var(--teal-tint); }
.rx-stack { display: inline-flex; align-items: center; padding-right: 4px; }
.rx-stack .rx { margin-right: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--surface); }
.social-counts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.social-counts .count { display: inline-flex; align-items: center; gap: 7px; }
.social-counts .w { color: var(--text-secondary); font-weight: 600; }
.social-counts .muted { color: var(--text-secondary); }
.social .count.small { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); }
.comments { display: flex; flex-direction: column; gap: 14px; }
.comments .overline { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); }
.comment { display: flex; flex-direction: column; gap: 10px; }
.comment-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.comment-body p { margin: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-head .name { font-weight: 700; color: var(--ink); text-decoration: none; }
.comment-head .tag { padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.replies { display: flex; flex-direction: column; gap: 10px; margin-left: 15px; padding-left: 22px; border-left: 2px solid var(--hairline); }
.teal-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--teal-wash); border-color: var(--teal-border); margin-bottom: 14px; }
.stats-periods { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.stats-periods .chip { padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.stats-periods .chip.on { background: var(--ink); color: var(--surface); font-weight: 700; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--hairline); }
.kpi-card strong { font-size: 24px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-card span { font-size: 12px; color: var(--text-secondary); }
.stats-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 14px; }
.stats-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.stats-bars .b { width: 100%; flex: 1; }
.stats-bars .b rect { fill: var(--teal); }
.stats-bars .v { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats-bars .l { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.stats-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.stats-reactions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.stats-reactions > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stats-table { overflow-x: auto; }
.stats-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: left; }
.stats-table th { color: var(--text-secondary); font-size: 12px; }
.stats-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.stats-table a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.stats-table img { border-radius: 8px; object-fit: cover; }
/* Un post di solo testo (ADR-0083) nella tabella: il suo sfondo, coi colori e le forme di .tbg-*. */
.stats-table .text-swatch { position: relative; overflow: hidden; flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; box-sizing: border-box; }
.stats-table .text-swatch.tbg-none { border: 1px solid var(--hairline); }

/* Pagina del certificato (tavola 66) */
.cert-desk { max-width: 560px; padding-top: 24px; padding-bottom: 40px; }
.cert-sheet { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--paper); border: 1px solid var(--paper-border); border-radius: 4px; outline: 1px solid var(--paper-dash); outline-offset: -8px; box-shadow: 0 6px 18px rgba(20, 20, 20, 0.08); }
.cert-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.cert-head h1 { margin: 4px 0 0; font-size: 25px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.cert-head p { margin: 0; }
.cert-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.cert-media { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 140px; }
.cert-media img { display: block; width: 136px; height: 136px; object-fit: cover; border-radius: 6px; }
.cert-media img.round { border-radius: 50%; }
.cert-textmark.text-tile { position: relative; inset: auto; width: 136px; height: 136px; flex-shrink: 0; border-radius: 6px; padding: 16px; box-sizing: border-box; }
.cert-textmark.text-tile > span { font-size: 12px; -webkit-line-clamp: 5; }
.cert-fulltext { margin: 0; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-box); font-family: var(--font-typewriter);
  font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.cert-noimage { display: flex; align-items: center; justify-content: center; width: 136px; height: 136px; border-radius: 6px; background: var(--hairline); color: var(--text-secondary); font-size: 12px; font-weight: 800; }
.cert-stamp { flex-shrink: 0; transform: rotate(-7deg); }
.cert-facts, .cert-tech dl { margin: 0; }
.cert-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--paper-dash); font-size: 14px; }
.cert-facts dt { color: var(--text-secondary); }
.cert-facts dd { margin: 0; font-weight: 800; text-align: right; }
.cert-pdf { align-self: stretch; text-align: center; }
/* Gradi di certificazione (ADR-0127, canvas GRD-S): la scala intera, il grado del contenuto in evidenza. */
.grade-block { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.grade-block-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-secondary); }
.grade-block-title a { text-transform: none; letter-spacing: 0; font-size: 13px; }
.grade-scale { display: flex; flex-direction: column; gap: 6px; }
.grade-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--hairline); }
.grade-row.current { padding: 10px 12px; background: var(--teal-tint); border: 1.5px solid var(--teal-border); }
.grade-row .grade-icon { flex-shrink: 0; margin-top: 1px; }
.grade-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.grade-name { font-size: 13.5px; font-weight: 700; color: var(--text-secondary); }
.grade-line { font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.grade-row.current .grade-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.grade-row.current .grade-line { font-size: 12.5px; color: var(--text-body); }
.grade-here { flex-shrink: 0; align-self: center; padding: 3px 8px; border-radius: 999px; background: var(--teal); color: #FFFFFF; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; }
.grade-note { font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); margin: 0; }
.grade-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--paper-border); }
.grade-verdict .grade-text span:first-child { font-size: 16px; font-weight: 800; color: var(--ink); }
.grade-verdict .grade-text span + span { font-size: 13.5px; line-height: 1.45; color: var(--text-body); }
.grades-page { max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 40px; }
.grades-page h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.15; }
.grades-page .lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text-body); }
.grades-list { display: flex; flex-direction: column; gap: 12px; }
.grades-item { display: flex; gap: 12px; align-items: flex-start; }
.grades-item .grade-icon { flex-shrink: 0; }
.grades-item .grade-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.grades-item .grade-line { font-size: 14px; line-height: 1.45; color: var(--text-body); }
.grades-box { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline); }
.grades-box.muted { background: var(--surface-muted); border: 0; }
.grades-box h2 { margin: 0 0 6px 0; font-size: 14px; font-weight: 800; }
.grades-box p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-body); }
.grades-foot { text-align: center; }
.cert-tech { border-top: 1px solid var(--paper-dash); }
.cert-tech summary { min-height: 46px; display: flex; align-items: center; font-size: 14px; font-weight: 800; cursor: pointer; }
.cert-tech dl > div { padding: 5px 0; }
.cert-tech dt { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.cert-tech dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.cert-tech dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 400; }
.cert-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--paper-dash); }
/* Per chi riceve il certificato (D79): un riquadro sobrio in fondo, che resta anche nella stampa della pagina. */
.cert-recipient { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--paper-dash); border-radius: 10px; }
.cert-recipient h2 { margin: 0 0 6px; font-size: 14px; }
.cert-recipient p { margin: 0; }

/* Elenchi di persone (tavola W3, ADR-0055): follower, seguiti, chi ha reagito; colonna stretta, righe toccabili. */
.people-page { max-width: 640px; padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.people-page .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 800; color: var(--ink);
  text-decoration: none; align-self: flex-start; }
.people-page h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.rx-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rx-tabs a { height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--chip); color: var(--ink); font-size: 13px;
  font-weight: 800; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.rx-tabs a.on { background: var(--ink); color: var(--surface); }
.people-rows { display: flex; flex-direction: column; }
.people-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 4px; border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: var(--ink); }
.people-row img.avatar { object-fit: cover; }
.people-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--text-secondary); }
.people-row .who strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.people-rows .more { margin-top: 20px; }
.people-closing, .people-empty { padding: 16px 0; text-align: center; font-size: 14px; color: var(--text-secondary); }
.people-hides { padding: 48px 0; text-align: center; font-size: 15px; color: var(--text-secondary); }
.people-guest { margin-top: 12px; padding: 36px 24px; border-radius: var(--radius-card); border: 1px solid var(--hairline); display: flex;
  flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.people-guest strong { font-size: 17px; font-weight: 800; }
.profile-id .meta a { color: inherit; font-weight: 700; }
.profile-id .followed-by { font-size: 13px; }

/* Account › Privacy (tavola W4). */
.panel .foot.small { margin: 0; padding: 14px 20px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.panel fieldset.choices { margin: 0; padding: 0; border: 0; }
.panel fieldset.choices legend { padding: 16px 20px 0 20px; font-size: 15px; font-weight: 800; }
.panel input[type="checkbox"], .panel input[type="radio"] { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }

/* La raccolta di un'altra persona (tavola W5). */
.collection-page { padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.collection-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.collection-head .cover { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--placeholder-photo); }
.collection-head .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-head .about { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.collection-head .overline { color: var(--teal-text); text-transform: uppercase; }
.collection-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.15; }
.collection-head .by { font-size: 14px; color: var(--text-secondary); }
.collection-head .by a { color: var(--ink); font-weight: 700; }
.collection-head .reserved { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary);
  background: var(--chip); border-radius: 999px; padding: 4px 10px; }
.collection-head .description { font-size: 15px; line-height: 1.5; color: var(--text-body); white-space: pre-line; }
.copy-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-input);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.copy-link:hover { border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--placeholder-photo); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .code-pill { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-typewriter); font-size: 11px; color: #FFFFFF; background: var(--overlay-dark); border-radius: 999px; padding: 3px 8px; }
@media (max-width: 720px) {
  .collection-head { grid-template-columns: 1fr; gap: 16px; }
  .tiles { gap: 3px; }
  .tile .code-pill { display: none; }
}

/* Profilo pubblico (tavola W1), uguale all'app (operatore, 24/11/2026, canvas PRF): foto e, a destra, nome, @handle e
   contatori; sotto descrizione e gesti, poi i cerchi delle raccolte e le schede. Da computer la descrizione sta nella
   colonna del nome, come la testata di prima. */
main.pf { max-width: 975px; padding-top: 36px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 28px; }
.pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo id" "photo more"; gap: 16px 56px; align-items: start; }
.pf-photo { grid-area: photo; display: flex; justify-content: center; padding-left: 24px; }
.avatar.xl { width: 156px; height: 156px; font-size: 56px; background: var(--placeholder-avatar); color: var(--ink); object-fit: cover; }
.pf-id { grid-area: id; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.pf-id h1.name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.pf-handle { font-size: 14px; color: var(--text-secondary); }
.pf-more-info { grid-area: more; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-actions form.inline { display: inline-flex; margin: 0; }
.pf-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; font: inherit; font-size: 14px;
  font-weight: 800; cursor: pointer; text-decoration: none; background: var(--chip); color: var(--ink); }
.pf-btn.teal { background: var(--teal); color: #FFFFFF; }
.pf-btn.teal:hover { background: var(--teal-hover); }
.pf-btn.ink { background: var(--ink); color: #FFFFFF; }
.pf-btn.tint { background: var(--teal-tint); color: var(--teal-text); }
.pf-btn.static { cursor: default; }
.pf-more { position: relative; }
.pf-more summary { list-style: none; width: 36px; padding: 0; justify-content: center; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-menu { position: absolute; top: 44px; left: 0; z-index: 5; width: 300px; padding: 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: 0 8px 24px rgba(20, 20, 20, 0.12); display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--text-body); }
.pf-stats { display: flex; gap: 12px 36px; flex-wrap: wrap; margin-top: 12px; font-size: 15px; color: var(--text-secondary); }
.pf-stats a { color: var(--text-secondary); text-decoration: none; }
.pf-stats a:hover { text-decoration: underline; }
.pf-stats strong { font-weight: 800; color: var(--ink); }
.pf-bio { margin: 0; font-size: 15px; line-height: 1.5; max-width: 520px; white-space: pre-line; }
.pf-bio a, .description-text a { color: var(--teal-text); font-weight: 700; text-decoration: none; }
/* La menzione in un chip (operatore, 12/11/2026): fondo teal chiaro, angoli tondi; va a capo col testo. */
a.mention { color: var(--teal-text); font-weight: 700; text-decoration: none; background: var(--teal-tint); padding: 1px 6px;
  border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
a.mention:hover { background: var(--teal-border); color: var(--teal-text); }
.pf-followed { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.pf-followed:hover { text-decoration: underline; }
.pf-signin { font-size: 13px; color: var(--text-secondary); }
.pf-signin a { font-weight: 700; color: var(--ink); }
.pf-blocked { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--hairline); font-size: 15px; }
.pf-blocked span { flex: 1; }
.pf-contents { display: flex; flex-direction: column; gap: 4px; }
/* Le due schede, griglia e Video, solo icone (il nome per il lettore di schermo); senza video un filo. */
.pf-tabs { display: flex; border-top: 1px solid var(--hairline); }
.pf-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: -1px; min-height: 48px; border-top: 1.5px solid transparent;
  color: var(--text-secondary); text-decoration: none; }
.pf-tabs a.on { color: var(--ink); border-top-color: var(--ink); }
.pf-tabs a:hover { color: var(--ink); }
.pf-line { border-top: 1px solid var(--hairline); margin-bottom: 4px; }
/* Scheda «Attività» (ADR-0086): sfide ed eventi in righe, ognuna porta alla sua pagina. */
.pf-group-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-see-all { font-size: 13px; font-weight: 800; color: var(--teal-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pf-see-all:hover { text-decoration: underline; }
/* Il titolo di una sezione, con l'icona del tipo come nel chip delle card (operatore, 24/11/2026). */
.pf-group { display: flex; align-items: center; gap: 8px; margin: 20px 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); }
.pf-group .n { color: var(--text-secondary); }
.pf-activity { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.pf-activity li { border-bottom: 1px solid var(--hairline); }
.pf-activity a { display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 8px 4px; color: var(--ink); text-decoration: none; }
.pf-activity a[href]:hover .t { text-decoration: underline; }
.pf-activity .t { font-size: 15px; font-weight: 800; }
.pf-activity .d { font-size: 13px; color: var(--text-secondary); }
.pf-contents .tiles { gap: 4px; }
.pf-contents .empty, .pf-contents .more { align-self: center; margin-top: 20px; }
/* Le raccolte in cerchi (canvas PRF): 64 in striscia, scorrono se sono tante; 92 nella pagina «Vedi tutte». */
.pf-circles { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 4px; margin-bottom: -12px; scrollbar-width: none; }
.pf-circles::-webkit-scrollbar { display: none; }
.pf-circles a, .pf-circle-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; min-width: 0; }
.pf-circles a { flex: 0 0 72px; }
.pf-circles .ring, .pf-circle-grid .ring { position: relative; display: block; width: 64px; height: 64px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--border-input); }
.pf-circles .disc, .pf-circle-grid .disc { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--placeholder-photo); color: var(--ink); }
.pf-circles .disc.more { background: var(--chip); }
.pf-circles .disc img, .pf-circle-grid .disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-circles .badge, .pf-circle-grid .badge { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #FFFFFF;
  background: var(--reserved); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.pf-circles .badge.private, .pf-circle-grid .badge.private { background: var(--private); }
.pf-circles .name, .pf-circle-grid .name { max-width: 100%; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-all h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.pf-back { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; min-height: 44px; color: var(--ink); text-decoration: none; }
.pf-back .avatar { width: 40px; height: 40px; font-size: 16px; background: var(--placeholder-avatar); color: var(--ink); object-fit: cover; }
.pf-back .who { display: flex; flex-direction: column; }
.pf-back .name { font-size: 15px; font-weight: 800; }
.pf-back .handle { font-size: 12px; color: var(--text-secondary); }
.pf-circle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
.pf-circle-grid .ring { width: min(100%, 160px); height: auto; aspect-ratio: 1; }
.pf-circle-grid .badge { right: 4%; bottom: 4%; width: 28px; height: 28px; }
.pf-circle-grid .name { font-size: 13px; }
.pf-all .empty { align-self: center; }
@media (max-width: 720px) {
  main.pf { padding-top: 16px; gap: 20px; }
  .pf-head { grid-template-areas: "photo id" "more more"; gap: 14px 20px; align-items: center; }
  .pf-photo { padding-left: 0; }
  .avatar.xl { width: 92px; height: 92px; font-size: 34px; }
  .pf-id { padding-top: 0; }
  .pf-id h1.name { font-size: 18px; }
  .pf-handle { font-size: 13px; }
  .pf-stats { gap: 20px; margin-top: 8px; font-size: 13px; }
  .pf-stats > * { display: flex; flex-direction: column; }
  .pf-stats strong { font-size: 18px; }
  .pf-circle-grid .ring { width: 92px; }
  /* Al telefono la griglia è a filo come nell'app: da bordo a bordo, stacco 2, angoli vivi. */
  .pf-contents .tiles { gap: 2px; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .pf-contents .tile { border-radius: 0; }
}
/* Segno «più foto» (tavola I): due quadrati e il numero delle foto, in alto a destra; accanto al lucchetto se c'è. */
.tile .multi, .item .pic .multi { position: absolute; right: 8px; top: 8px; height: 22px; padding: 0 7px 0 6px; border-radius: 999px; background: rgba(20, 20, 20, 0.82);
  color: #FFFFFF; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tile .multi.beside-lock { right: 40px; }
.tile .lock { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--reserved); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; }
.tile .lock.private { background: var(--private); }
.lock-disc.private { background: var(--private); color: #FFFFFF; }
.reserved.private { color: var(--private); }
/* Reazioni e commenti sempre visibili, in basso a destra (operatore, 13/11/2026). */
.tile .stats { position: absolute; right: 8px; bottom: 8px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--overlay-dark);
  color: #FFFFFF; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.tile .stats > span { display: inline-flex; align-items: center; gap: 4px; }
.tile .stats ~ .code-pill, .tile:has(.stats) .code-pill { max-width: calc(100% - 110px); }
.invite-bar { position: sticky; bottom: 0; z-index: 8; background: var(--surface); border-top: 1px solid var(--hairline); }
.invite-bar .wrap { max-width: 975px; padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.invite-bar .text { flex: 1 1 260px; display: flex; flex-direction: column; font-size: 13px; color: var(--text-secondary); }
.invite-bar .text strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.invite-bar .signin { font-size: 14px; font-weight: 800; color: var(--ink); min-height: 44px; display: flex; align-items: center; text-decoration: none; }
@media (max-width: 720px) {
  .tile .stats { right: 5px; bottom: 5px; height: 20px; padding: 0 6px; gap: 6px; }
}

/* Pagina del contenuto (tavole W2, M1). */
main.post-page { max-width: 1060px; padding-top: 32px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.post { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.post .media { flex: 1 1 480px; min-width: 0; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.post .media > .photo { border-radius: 0; max-width: 560px; max-height: 80vh; width: 100%; object-fit: contain; background: transparent; }
.post .media .reserved { width: 100%; max-width: 560px; aspect-ratio: 4 / 5; border-radius: 0; }
.post .media .reserved .photo.blur { height: 100%; aspect-ratio: auto; border-radius: 0; }
.post .media .reserved .veil { background: rgba(255, 255, 255, 0.55); }
.post .media .reserved .veil .t { color: var(--ink); text-shadow: none; font-size: 13px; font-weight: 800; background: var(--surface); border-radius: 999px; padding: 7px 14px; }
.post .media .reserved .veil .sent { color: var(--ink); }
.lock-disc { width: 60px; height: 60px; border-radius: 50%; background: var(--reserved); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
/* Post con più foto (tavola W): posizione, frecce come link, punti sotto la foto, riquadro della foto mostrata. */
.post .media { position: relative; }
/* Video (tavola PUB-VW1): durata o «Fermo immagine» in alto a destra; il lettore usa i comandi del browser. */
.video-tag { position: absolute; top: 14px; right: 14px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(20, 20, 20, 0.82); color: #fff; font-size: 12px; font-weight: 700; line-height: 28px; font-variant-numeric: tabular-nums; pointer-events: none; }
.video-box { position: relative; width: 100%; max-width: 640px; }
.video-box video, .video-box img { display: block; width: 100%; border-radius: 14px; background: var(--ink); }
.video-gone { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.video-gone p { margin: 0; }
.carousel-pos { position: absolute; top: 14px; right: 14px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(20, 20, 20, 0.82); color: #fff; font-size: 12px; font-weight: 700; line-height: 28px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.yir .carousel-arrow, .yir .carousel-arrow:hover { color: var(--ink); }
.carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(20, 20, 20, 0.45); }
.carousel-dots a { width: 8px; height: 8px; border-radius: 50%; background: var(--disabled); }
.carousel-dots a.on { background: #fff; }
.carousel-cert { border: 1px solid var(--teal-border); border-radius: 16px; background: var(--teal-wash); padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; font-size: 14px; color: var(--text-body, #3A3A37); }
.carousel-cert strong { color: var(--teal-text); font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.carousel-cert a { font-size: 13px; font-weight: 800; }
.carousel-cert .small { color: var(--text-secondary); font-size: 12px; }
.post-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.post-author { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.post-author .avatar.sm { width: 38px; height: 38px; font-size: 15px; object-fit: cover; }
.post-author .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-author .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-author .name { font-size: 14px; font-weight: 800; color: var(--ink); text-decoration: none; }
.post-author form.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.post-author .dot { color: var(--text-secondary); }
.link-follow { border: 0; padding: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 800; color: var(--teal-text); cursor: pointer; }
.post-author .meta { font-size: 12px; color: var(--text-secondary); }
/* La pagina che ha aperto una sfida o organizza un evento, nella testa (contratto della tappa 2 § 1.12): come .post-author, senza riquadro. */
.page-author { display: flex; align-items: center; gap: 10px; }
.page-author .avatar.sm { width: 38px; height: 38px; font-size: 15px; object-fit: cover; }
.page-author .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-author .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-author .name { font-size: 14px; font-weight: 800; color: var(--ink); text-decoration: none; }
.page-author .meta, .post-author .meta a, .page-author .meta a { font-size: 12px; color: var(--text-secondary); }
.post-body { flex: 1; min-height: 260px; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
/* Il testo del post a macchina da scrivere (operatore, 13/11/2026): si distingue da etichette e comandi. */
.post-caption p { margin: 0; font-family: var(--font-typewriter); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.post-caption .name { font-weight: 800; color: var(--ink); text-decoration: none; }
.post-caption a:not(.name) { color: var(--teal-text); font-weight: 700; text-decoration: none; }
.post-caption .edited { display: block; margin-top: 4px; font-size: 12px; color: var(--text-secondary); }
/* Post di solo testo (ADR-0083, piano § Linguaggio visivo › Sfondi): i colori di TextBackground (shared) e dei token
   text-bg-* del design system; le forme sun e waves sono un cerchio pieno nell'angolo. Card 1:1 nella pagina, tessera 4:5
   nelle griglie; oltre 150 caratteri il testo semplice in Courier Prime 16, allineato a sinistra. */
.tbg-none { background: #FFFFFF; color: #141414; }
.tbg-ink { background: #141414; color: #FFFFFF; }
.tbg-coral { background: #E2553B; color: #FFFFFF; }
.tbg-yellow { background: #F2C94C; color: #141414; }
.tbg-peach { background: #FFD3B0; color: #141414; }
.tbg-pink { background: #F7BFCB; color: #141414; }
.tbg-lavender { background: #CDBEF7; color: #141414; }
.tbg-sage { background: #BFDDB0; color: #141414; }
.tbg-ocean { background: #1F7AA3; color: #FFFFFF; }
.tbg-blue { background: #3B6FE0; color: #FFFFFF; }
.tbg-burgundy { background: #8C2F45; color: #FFFFFF; }
.tbg-sun { background: #F2C94C; color: #141414; }
.tbg-waves { background: #CDBEF7; color: #141414; }
.tbg-sun::before, .tbg-waves::before { content: ""; position: absolute; aspect-ratio: 1 / 1; border-radius: 50%; }
/* Sole: centro all'82% e all'86% del lato, raggio 30%. Onde: centro nell'angolo in alto a sinistra, raggio 42%. */
.tbg-sun::before { width: 60%; right: -12%; bottom: -16%; background: #E2553B; }
.tbg-waves::before { width: 84%; left: -42%; top: -42%; background: #3B6FE0; }
.post .media.text-media { background: transparent; }
.text-card { position: relative; overflow: hidden; box-sizing: border-box; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; padding: 10%;
  display: flex; align-items: center; justify-content: center; }
.text-card.tbg-none { border: 1px solid var(--hairline); }
.text-card p { position: relative; margin: 0; font-family: var(--font-typewriter); text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.text-card.size-l p { font-size: 28px; line-height: 1.3; }
.text-card.size-m p { font-size: 24px; line-height: 1.35; }
.text-card.size-s p { font-size: 20px; line-height: 1.4; }
.text-card .mention { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-card.plain { aspect-ratio: auto; display: block; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
.text-card.plain p { font-size: 16px; line-height: 1.55; text-align: left; }
.text-card.plain .mention { color: var(--teal-text); text-decoration: none; }
.text-tile { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 14%; }
.text-tile.tbg-none { border: 1px solid var(--hairline); border-radius: inherit; }
.text-tile > span { position: relative; font-family: var(--font-typewriter); font-size: 14px; line-height: 1.35; text-align: center; white-space: pre-line;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .more-comments { font-weight: 700; color: var(--text-secondary); }
.post-actions { border-top: 1px solid var(--hairline); padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rx-bar { display: flex; align-items: center; gap: 8px; }
.rx-bar .rx-row { flex: 1; gap: 2px; }
.rx-bar .rx-btn { border-color: transparent; }
.code-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--teal-border);
  background: var(--teal-wash); color: var(--ink); text-decoration: none; flex-shrink: 0; }
.code-chip > span { display: flex; flex-direction: column; line-height: 1.05; }
.code-chip strong { font-family: var(--font-typewriter); font-size: 13px; letter-spacing: 0.6px; }
.code-chip span span { font-size: 9px; color: var(--text-secondary); }
.post-actions .count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.post-actions .count .w { color: var(--text-secondary); font-weight: 600; }
.post-actions .counts-line { font-size: 13px; color: var(--text-secondary); }
.post-actions .strong { font-weight: 800; }
.post-actions .muted { color: var(--text-secondary); margin: 0; }
.app-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--teal-wash); border: 1px solid var(--teal-border); }
.app-card .t { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-secondary); }
.app-card .t strong { font-size: 13px; color: var(--ink); }
/* «Altri contenuti» sotto la foto: stesse basi della riga sopra (foto 480, lato 340), il lato resta vuoto. */
.post-below { display: flex; flex-wrap: wrap; align-items: flex-start; }
.post-below::after { content: ""; flex: 1 1 340px; }
.more-by { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.post-body .edits-line { margin: 0; color: var(--text-secondary); }
.post-body .edits-line strong { color: var(--ink); }
.more-by .t { font-size: 14px; font-weight: 800; }
.more-by .t a { color: var(--ink); }
.more-by .tiles { gap: 4px; }
@media (max-width: 720px) {
  main.post-page { padding-top: 0; gap: 16px; }
  .post { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
  .post .media { flex-basis: 100%; }
  .post-body { min-height: 0; }
}

/* === Pagine delle sfide (incremento 5, blocco 5c; tavole SFI-W1, W2, W3) ================================== */
main.contest { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.contest-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.contest-head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contest-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.contest-eyebrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.contest-title { margin: 0 0 4px; position: relative; align-self: flex-start; font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -1px;
  overflow-wrap: anywhere; }
.contest-mark { position: absolute; left: -4px; bottom: -12px; width: 100%; height: 16px; }
.contest-goal { margin: 14px 0 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--text-body); }
.contest-counters { font-size: 13px; font-weight: 700; color: var(--ink); }
.contest-dates { font-size: 13px; color: var(--text-secondary); }
.contest-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contest-ranking { display: flex; flex-direction: column; gap: 14px; }
.contest-ranking h2 { margin: 0; }
.contest-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 760px; }
.contest-podium-row { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.contest-podium-row.pos-1 { order: 2; }
.contest-podium-row.pos-2 { order: 1; }
.contest-podium-row.pos-3 { order: 3; }
.contest-podium-photo { display: block; width: 100%; height: 200px; border-radius: 12px; overflow: hidden; background: var(--placeholder-photo); }
.contest-podium-row.pos-1 .contest-podium-photo { height: 250px; }
.contest-podium-row.pos-3 .contest-podium-photo { height: 170px; }
.contest-podium-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contest-podium-photo.empty { background: var(--surface-muted); border: 1px solid var(--hairline); }
.contest-pos { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 15px; }
.contest-podium-row.pos-1 .contest-pos { background: var(--teal); }
.contest-podium-name { font-size: 13px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.contest-podium-votes { font-size: 12px; color: var(--text-secondary); }
.contest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.contest-grid a { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--placeholder-photo); }
.contest-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contest-details { border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface-muted); }
.contest-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; min-height: 44px; }
.contest-details > summary::-webkit-details-marker { display: none; }
.contest-details-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.contest-details-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.contest-details[open] .contest-details-hint svg { transform: rotate(180deg); }
.contest-details-body { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.contest-card { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.contest-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.contest-rules { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.contest-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; padding: 8px 0; }
.contest-join-ticket { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.contest-join-ticket h2 { margin: 0; }
.contest-ticket { text-decoration: none; text-align: left; }
.contest-ticket:hover { color: var(--ink); }
.contest-free { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.contest-slogans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contest-slogans li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.4; }
.contest-slogans strong { font-weight: 800; }
.contest-slogans .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-text); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
/* W3: le immagini sono già sfocate dal nucleo (derivato blur): qui solo il riquadro e la scritta. */
main.contest-private { max-width: 760px; }
.contest-blur { position: relative; height: 150px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-muted); overflow: hidden; }
.contest-blur img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.contest-blur-empty { grid-column: 1 / -1; }
.contest-blur-veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--ink); }
/* W1: la sfida sopra la foto nella pagina del contenuto. */
.contest-tag { align-self: flex-start; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.contest-tag-title { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.contest-tag:hover { color: var(--ink); }
/* Il segno del podio sopra il titolo della sfida (piano § 24): nastro e disco col posto, senza l'anello delle medaglie. */
.contest-tag-podium { display: inline-flex; align-items: center; gap: 8px; }
.podium-medal-ribbon { fill: var(--ink); opacity: .45; }
.podium-medal-disc { fill: var(--ink); }
.podium-medal-number { fill: var(--paper); font-size: 12px; font-weight: 800; font-family: inherit; }

@media (max-width: 720px) {
  main.contest { padding-top: 24px; gap: 24px; }
  .contest-title { font-size: 32px; }
  .contest-actions { width: 100%; }
  .contest-actions .button { flex: 1 1 auto; justify-content: center; }
  .contest-podium-photo { height: 140px; }
  .contest-podium-row.pos-1 .contest-podium-photo { height: 170px; }
  .contest-podium-row.pos-3 .contest-podium-photo { height: 120px; }
  .contest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .contest-join { gap: 24px; }
}
/* «Hai un invito?» col codice di una foto in gara: la foto accanto al titolo della sfida. */
.signup-contest-photo { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* === Marketplace: pagina di un annuncio (/m/…) ed elenco (/marketplace), tavole MKT-W1 e MKT-W2 ======================== */
main.mkt { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.mkt-old { color: var(--text-secondary); text-decoration: line-through; font-size: 13px; }
.mkt-veil { position: absolute; inset: 0; background: var(--scrim); }
/* La pagina di un annuncio: galleria a sinistra, scheda a destra; sotto i 760 px una colonna. */
.mkt-gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mkt-photo { position: relative; overflow: hidden; border-radius: 16px; background: var(--placeholder-photo); aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.mkt-photo img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--placeholder-photo); }
.mkt-shot { position: absolute; left: 14px; top: 14px; text-decoration: none; }
.mkt-shot[hidden] { display: none; }
.mkt-photo .yir-code-pill, .mkt-photo .yir-code-pill:hover { color: var(--surface); }
.mkt-state { position: absolute; left: 14px; bottom: 14px; }
.mkt-state.big { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); background: var(--ink); font-size: 14px; padding: 8px 16px; }
.mkt-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mkt-thumb { display: block; height: 80px; border-radius: var(--radius-button); overflow: hidden; background: var(--placeholder-photo); border: 2px solid transparent; }
.mkt-thumb.on { border-color: var(--ink); }
.mkt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mkt-head { display: flex; flex-direction: column; gap: 6px; }
.mkt-head h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; }
.mkt-back { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; }
.mkt-priceline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mkt-desc { white-space: pre-line; overflow-wrap: anywhere; }
.mkt-seller { display: flex; align-items: center; gap: 12px; }
.mkt-seller .avatar.sm { width: 48px; height: 48px; object-fit: cover; }
.mkt-seller-hidden { background: var(--chip); }
.mkt-seller-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mkt-seller-name { display: flex; align-items: center; gap: 6px; }
.mkt-seller-name .card-title { color: var(--ink); text-decoration: none; }
.mkt-seller-name .micro { color: var(--text-secondary); }
/* Il venditore professionale (una pagina verificata, contratto della tappa 2 § 6): i dati dell'attività e il recesso. */
.mkt-professional { margin: 0 0 10px; }
.mkt-business { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mkt-business div { display: flex; gap: 12px; justify-content: space-between; font-size: 13px; }
.mkt-business dt { color: var(--text-secondary); }
.mkt-business dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); }
.mkt-business + .small { display: block; margin-top: 10px; }
.mkt-write { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }
.mkt-write .button { justify-content: center; }
/* L'elenco: filtri a sinistra, tessere a destra. */
.mkt-filters { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.mkt-search { position: relative; display: block; }
.mkt-search svg { position: absolute; left: 14px; top: 13px; color: var(--text-secondary); }
.mkt-search .yir-input { padding-left: 44px; background: var(--surface-muted); border-color: var(--hairline); }
.mkt-filter { display: flex; flex-direction: column; gap: 6px; }
.mkt-cats { display: flex; flex-direction: column; }
.mkt-cats a { min-height: 36px; display: flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.mkt-cats a.on { color: var(--teal-text); }
.mkt-price { display: flex; gap: 8px; }
.mkt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mkt-chip { cursor: pointer; }
.mkt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mkt-chip input:checked + .yir-chip { background: var(--ink); color: var(--surface); font-weight: 700; }
.mkt-chip input:focus-visible + .yir-chip { outline: 2px solid var(--teal); outline-offset: 2px; }
.mkt-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mkt-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.mkt-results-head h1 { font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.mkt-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); min-width: 0; }
.mkt-tile:hover { color: var(--ink); }
.mkt-cover { aspect-ratio: 1 / 1; align-items: flex-end; justify-content: flex-start; padding: 8px; }
.mkt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-cover-pills { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mkt-cover.closed .yir-status-pill { background: var(--ink); }
.mkt-tile-price { display: flex; align-items: baseline; gap: 6px; }
.mkt-tile-now { font-size: 17px; font-weight: 800; }
.mkt-tile-title { font-size: 15px; line-height: 1.4; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-more { margin: 0; }
@media (max-width: 760px) {
  main.mkt { padding-top: 20px; gap: 24px; }
  .mkt-filters { max-width: none; flex-basis: 100%; }
  .mkt-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Sondaggi e indovinelli: la pagina /{codice} (blocco 4c, tavola SON-A9). Solo token del sito. */
.poll-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.poll-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.poll-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 800; }
.poll-chip.kind { background: var(--ink); color: var(--surface); }
.poll-title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.poll-question { margin: 0; font-family: "Courier Prime", monospace; font-size: 17px; line-height: 1.45; color: var(--ink); white-space: pre-line; }
.poll-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.poll-options li { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.poll-options li .bar { position: absolute; inset: 0 auto 0 0; background: var(--chip); z-index: 0; }
.poll-options li > span { position: relative; z-index: 1; }
.poll-options li.right { border-color: var(--teal); border-width: 2px; }
.poll-options li .pct { font-weight: 800; }
.poll-label { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.poll-solution { margin: 0; font-size: 16px; font-weight: 800; color: var(--teal-text); }
.poll-results { display: flex; flex-direction: column; gap: 6px; }
.poll-results ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-body); }
.poll-link { font-weight: 800; color: var(--teal-text); word-break: break-word; }
.poll-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-top: 1px solid var(--hairline); }
.poll-cta .stores-row { display: flex; flex-wrap: wrap; gap: 10px; }
.poll-credit { font-size: 12px; color: var(--text-secondary); }
.poll-media { position: relative; width: 100%; max-width: 560px; }
.poll-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.poll-media .not-certified { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--overlay-dark); color: var(--surface); font-size: 12px; font-weight: 800; }
.poll-options .bar.w0 { width: 0%; } .poll-options .bar.w5 { width: 5%; } .poll-options .bar.w10 { width: 10%; } .poll-options .bar.w15 { width: 15%; } .poll-options .bar.w20 { width: 20%; } .poll-options .bar.w25 { width: 25%; } .poll-options .bar.w30 { width: 30%; } .poll-options .bar.w35 { width: 35%; } .poll-options .bar.w40 { width: 40%; } .poll-options .bar.w45 { width: 45%; } .poll-options .bar.w50 { width: 50%; } .poll-options .bar.w55 { width: 55%; } .poll-options .bar.w60 { width: 60%; } .poll-options .bar.w65 { width: 65%; } .poll-options .bar.w70 { width: 70%; } .poll-options .bar.w75 { width: 75%; } .poll-options .bar.w80 { width: 80%; } .poll-options .bar.w85 { width: 85%; } .poll-options .bar.w90 { width: 90%; } .poll-options .bar.w95 { width: 95%; } .poll-options .bar.w100 { width: 100%; }

/* --- Recensioni certificate (blocco R8, canvas REC: W1 recensione, W2 scheda del luogo, W5 per il gestore, W6 come
   verifichiamo). Stelle in un colore solo (piano § 21 decisione 19), niente rosso e verde. --- */
.rv { padding-top: 28px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.rv-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rv-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.rv-muted { color: var(--text-secondary); }
.rv-teal { color: var(--teal-text); }
.rv-center { text-align: center; }
.rv-back { text-decoration: none; color: var(--ink); }
.rv-stars { display: inline-flex; letter-spacing: 1px; color: var(--ink); line-height: 1; }
.rv-stars .off { color: var(--border-input); }
.rv-stars.sm { font-size: 15px; }
.rv-stars.md { font-size: 18px; letter-spacing: 2px; }
.rv-stars.lg { font-size: 28px; letter-spacing: 2px; }
.rv-real { display: inline-flex; align-items: center; gap: 4px; }
.rv-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--placeholder-avatar); object-fit: cover; flex-shrink: 0; display: inline-block; }
.rv-avatar.sm { width: 36px; height: 36px; }
.rv-avatar.xs { width: 30px; height: 30px; }
.rv-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-author__names { display: flex; flex-direction: column; }
.rv-follow { margin-left: auto; }
.rv-vote { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rv-text { margin: 0; font-size: 19px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
/* Il testo della recensione è dell'autore, livello 1 (R10): Courier Prime come il post di solo testo; la risposta della pagina resta in Manrope. */
.rv-l1 { font-family: var(--font-typewriter); font-size: 16px; line-height: 1.55; font-weight: 400; }
.rv-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rv-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-box); display: block; background: var(--placeholder-photo); }
.rv-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--chip); font-size: 13px; font-weight: 700; }
.rv-badge.teal { background: var(--teal-tint); color: var(--teal-text); }
.rv-actions { display: flex; align-items: center; gap: 18px; padding-top: 6px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.rv-actions > * { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.rv-push { margin-left: auto; }
.rv-box { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-card); text-decoration: none; color: var(--ink); }
.rv-box.teal { border: 1px solid var(--teal-border); }
.rv-box.muted { background: var(--surface-muted); }
.rv-box.dark { background: var(--ink); color: var(--surface); }
.rv-box.dark .caption { color: var(--text-on-dark); }
.rv-check { display: flex; gap: 8px; }
.rv-check b { color: var(--teal-text); }
.rv-line { margin: 6px 0 0; }
.rv-mark { margin-top: -6px; max-width: 100%; }
/* Il talloncino della prova d'acquisto (tavola W1t, ADR-0121): carta, il ritaglio dell'intestazione in scala di grigi, quattro
   barre fisse al posto del corpo, la riga «Acquisto verificato · mese» col marchio, il bordo seghettato in basso. */
.rv-stub { position: relative; margin: 2px 0 12px; padding: 12px 12px 14px; max-width: 280px; background: var(--paper);
  border: 1px solid var(--paper-border); border-bottom: 0; display: flex; flex-direction: column; gap: 10px; }
.rv-stub::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 8px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 12px 8px repeat-x; }
.rv-stub__crop { display: block; width: 100%; height: auto; filter: grayscale(1); mix-blend-mode: multiply; }
.rv-stub__bars { display: flex; flex-direction: column; gap: 7px; padding: 2px; }
.rv-stub__bars i { display: block; height: 6px; border-radius: 3px; background: var(--paper-dash); }
.rv-stub__bars i:nth-child(1) { width: 86%; }
.rv-stub__bars i:nth-child(2) { width: 62%; }
.rv-stub__bars i:nth-child(3) { width: 92%; }
.rv-stub__bars i:nth-child(4) { width: 48%; }
.rv-stub__line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 8px;
  border-top: 1.5px dashed var(--paper-dash); font-family: var(--font-typewriter); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.rv-stub__brand { color: var(--teal-text); text-transform: none; letter-spacing: 0; }
.rv-hero { background: var(--surface-muted); border-bottom: 1px solid var(--hairline); }
.rv-hero__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rv-hero__logo { width: 88px; height: 88px; border-radius: 20px; background: var(--placeholder-deep); flex-shrink: 0; }
.rv-hero__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-hero__text h1 { margin: 0; overflow-wrap: anywhere; }
.rv-hero__text p { margin: 2px 0 0; max-width: 620px; }
.rv-hero__actions { display: flex; flex-direction: column; gap: 10px; flex: 0 1 280px; }
.rv-write { justify-content: center; }
.rv-average { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.rv-average__big { display: flex; flex-direction: column; gap: 2px; }
.rv-average__n { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.rv-average__sum { flex: 1 1 100%; }
.rv-bars { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.rv-bar { display: flex; align-items: center; gap: 8px; }
.rv-bar__s, .rv-bar__n { width: 18px; }
.rv-bar__track { flex: 1; height: 8px; border-radius: 4px; background: var(--hairline); overflow: hidden; }
.rv-bar__fill { display: block; height: 8px; background: var(--ink); }
.rv-few { margin: 0; padding: 14px 16px; border-radius: var(--radius-box); background: var(--surface-muted); }
.rv-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-filter { min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--chip); color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 800; }
.rv-filter.on { background: var(--ink); color: var(--surface); }
.rv-sort { margin-left: auto; }
.rv-sort label { display: inline-flex; align-items: center; gap: 8px; }
.rv-sort select { height: 38px; padding: 0 10px; border-radius: var(--radius-box); border: 1.5px solid var(--border-input); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.rv-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-card); border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
.rv-card--compact { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; }
.rv-card__who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-card__vote { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.rv-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rv-owner { max-width: 560px; flex-direction: column; gap: 14px; }
.rv-owner h1 { margin: 0; }
.rv-owner__review { gap: 8px; }
.rv-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rv-points li { display: flex; gap: 10px; }
.rv-points svg { flex: none; }
.rv-owner__actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rv-wide { width: 100%; justify-content: center; display: flex; align-items: center; }
.rv-link { min-height: 46px; text-decoration: none; }
.rv-how { max-width: 880px; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 64px; }
.rv-how__head { display: flex; flex-direction: column; gap: 14px; }
.rv-how__title { margin: 0; position: relative; align-self: flex-start; }
.rv-how__title svg { position: absolute; left: -4px; bottom: -14px; }
.rv-how__sub { margin: 18px 0 0; font-size: 19px; font-weight: 700; }
.rv-how__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.rv-how__list li { display: flex; gap: 16px; align-items: flex-start; }
.rv-how__n { width: 32px; height: 32px; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; font-weight: 800; }
.rv-how__point { display: flex; flex-direction: column; gap: 4px; }
.rv-how__point .title-web-section { font-size: 19px; }
.rv-how__report { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rv-how__report .body-lg { flex: 1 1 360px; }
@media (max-width: 640px) {
  .rv-push { margin-left: 0; }
  .rv-sort { margin-left: 0; }
  .rv-photos { grid-template-columns: minmax(0, 1fr); }
}

/* === Testi legali (F1.5.5): Termini, Informativa, condizioni aggiuntive, categorie vietate ================ */
.legal-doc { max-width: 820px; }
.legal-head { display: flex; flex-direction: column; gap: 8px; }
.legal-head h1, .legal-head p { margin: 0; }
.legal-meta { font-size: 14px; color: var(--text-secondary); }
.legal-lang { padding: 12px 16px; border-radius: var(--radius-box); border: 1px solid var(--teal-border); background: var(--teal-wash); font-size: 15px; }
.legal-toc { border: 1px solid var(--hairline); border-radius: var(--radius-box); padding: 16px 20px; }
.legal-toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--teal-text); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body { font-size: 16px; line-height: 1.6; }
.legal-body h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; scroll-margin-top: 24px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.35; scroll-margin-top: 24px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 14px; }
.legal-body li + li { margin-top: 6px; }
.legal-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; line-height: 1.45; }
.legal-body th, .legal-body td { border: 1px solid var(--hairline); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 140px; }
.legal-body th { background: var(--teal-wash); font-weight: 700; }

/* Eventi (ADR-0123; come l'app: HOME-X2, EVE-R1…R7) */
.ico.trip { color: var(--case-trip-text); }
.evt-art { display: block; flex-shrink: 0; }
.events-page h1, .event-page h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.evt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; text-align: center; }
.evt-empty .t { font-size: 18px; font-weight: 800; }
.evt-empty .d { font-size: 14px; color: var(--text-secondary); }
.evt-group { display: flex; flex-direction: column; gap: 8px; }
.evt-group h2, .home-block h3 { margin: 0; padding: 0 4px; font-size: 15px; font-weight: 800; color: var(--text-secondary); }
.evt-rows { display: flex; flex-direction: column; gap: 10px; }
.evt-row { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.evt-row:hover { border-color: var(--teal-border); color: var(--ink); }
.evt-row .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evt-row .day { font-size: 12px; font-weight: 800; color: var(--case-trip-text); }
.evt-row .t { font-size: 16px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evt-row .d { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.evt-row .d.state { color: var(--teal-text); font-weight: 700; }
.evt-row.past .evt-thumb { filter: grayscale(1); opacity: 0.7; }
.evt-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: flex; }
.evt-thumb.sm { width: 48px; height: 48px; border-radius: 10px; }
.evt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.evt-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--chip);
  font-size: 12px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.evt-chip.pending { background: var(--case-craft-bg); color: var(--case-craft-text); }
.evt-chip.live { background: var(--teal-tint); color: var(--teal-text); }
.evt-more { align-self: flex-start; padding: 4px; font-size: 14px; font-weight: 800; color: var(--teal-text); text-decoration: none; }
.evt-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); background: var(--placeholder-photo); }
.evt-head { display: flex; flex-direction: column; gap: 10px; }
.evt-over { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-secondary); }
.evt-when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 700; }
.evt-facts .ico { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal-tint); }
.evt-faces { display: flex; flex-shrink: 0; }
.evt-faces .avatar + .avatar { margin-left: -10px; }
.avatar.xs { width: 28px; height: 28px; font-size: 12px; background: var(--placeholder-avatar); color: var(--ink); object-fit: cover;
  border: 2px solid var(--surface); box-sizing: border-box; }
.evt-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.evt-box .t { font-size: 17px; font-weight: 800; }
.evt-box .d { font-size: 15px; color: var(--text-secondary); }
.evt-box.closed { background: var(--surface-muted); }
.evt-about { margin: 0; font-size: 15px; line-height: 1.5; }
.evt-rsvp { font-size: 15px; }
.evt-photos { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 140px; }
.evt-add { align-self: stretch; justify-content: center; gap: 8px; }
.evt-none { margin: 0; padding: 8px 4px; font-size: 14px; color: var(--text-secondary); }
.evt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.evt-grid + .evt-grid { margin-top: -9px; border-radius: 0; }
.evt-tile { position: relative; aspect-ratio: 1; background: var(--placeholder-photo); display: block; }
.evt-tile img:not(.avatar) { width: 100%; height: 100%; object-fit: cover; display: block; }
.evt-tile .by { position: absolute; left: 6px; bottom: 6px; display: flex; }
.evt-tile .n { position: absolute; right: 6px; top: 6px; min-width: 22px; padding: 2px 6px; border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.6); color: #FFFFFF; font-size: 12px; font-weight: 800; text-align: center; box-sizing: border-box; }
.evt-tile .c { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px;
  border-radius: var(--radius-pill); background: rgba(20, 20, 20, 0.6); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.evt-comments { display: flex; flex-direction: column; gap: 10px; }
.evt-comments .search-head h2 { display: flex; align-items: baseline; gap: 6px; }
.evt-comments > .button { align-self: flex-start; }

/* Home del sito: scorciatoie, Adesso, Per te (ADR-0123; come l'app) */
.home-shortcuts { display: flex; gap: 20px; padding: 4px; }
.home-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink);
  text-decoration: none; }
.home-shortcuts .disc { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--hairline); }
.home-shortcuts .disc.sell { color: var(--case-sell-text); }
.home-shortcuts .disc.events { color: var(--case-trip-text); }
.home-shortcuts .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal);
  border: 2px solid var(--surface-muted); }
.home-now, .home-foryou { display: flex; flex-direction: column; gap: 10px; }
.home-now .wall-title, .home-foryou .wall-title { margin: 0; }
.home-now button.search-row, .home-foryou button.search-row { width: 100%; border: 0; background: transparent; font: inherit; text-align: left;
  cursor: pointer; }
.home-now .search-row .ico, .home-foryou .search-row .ico { width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-muted); }
.home-live { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px 10px; }
.home-live .search-row { padding: 0; }
.home-live .button { align-self: flex-start; gap: 6px; }
.home-live + .search-row, .search-row + .home-live { border-top: 1px solid var(--hairline); }
.home-block { display: flex; flex-direction: column; gap: 8px; }
.home-saved { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.home-saved a { flex: 0 0 120px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.home-saved img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: var(--placeholder-photo); }
.home-past { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.home-past .mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  background: var(--placeholder-photo); }
.home-past .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.home-past .mosaic img:first-child { grid-row: span 2; }
.home-past .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.home-past .t { font-size: 16px; font-weight: 800; }
.home-past .d { font-size: 13px; color: var(--text-secondary); }

/* ---- Sfide nel guscio (ADR-0123; come ContestCard e ContestPageView dell'app) ---------------------------------------- */
.ico.business, .home-shortcuts .disc.contests { color: var(--case-business-text); }
.cst-empty-ico { color: var(--case-business-text); }
.cst-cards { display: flex; flex-direction: column; gap: 14px; }
.cst-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; }
.cst-open { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.cst-open:hover { color: var(--ink); }
.cst-open:hover .t { text-decoration: underline; }
/* La scena: sempre un podio; 180 px, 214 con le foto che passano o salgono sui gradini. */
.cst-strip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; height: 180px;
  background: var(--surface-muted); overflow: hidden; }
.cst-strip.marquee, .cst-strip.podium { height: 214px; }
.cst-chips { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.cst-type, .cst-state { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface);
  font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.cst-type { color: var(--case-business-text); }
.cst-state { color: var(--ink); background: var(--chip); }
.cst-marquee { position: absolute; left: 0; right: 0; top: 50px; display: flex; gap: 8px; justify-content: center; }
.cst-marquee img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; border: 3px solid var(--surface); }
.cst-steps { display: flex; align-items: flex-end; gap: 6px; }
.cst-steps span { width: 92px; border-radius: 6px 6px 0 0; background: var(--border-input); }
.cst-steps .s1 { height: 44px; } .cst-steps .s2 { height: 30px; } .cst-steps .s3 { height: 20px; }
.cst-strip.marquee .cst-steps { position: relative; z-index: 1; }
.cst-steps.flat span { height: 12px; }
.cst-steps.flat { gap: 0; } .cst-steps.flat span { border-radius: 0; } .cst-steps.flat .s2 { border-top-left-radius: 6px; } .cst-steps.flat .s3 { border-top-right-radius: 6px; }
.cst-podium { display: flex; align-items: flex-end; gap: 6px; margin-bottom: -10px; }
.cst-step-photo { width: 92px; display: flex; justify-content: center; }
.cst-step-photo img, .cst-step-photo i { display: block; border-radius: 10px; border: 3px solid var(--surface); object-fit: cover; box-shadow: 0 2px 4px rgba(14, 17, 16, .12); }
.cst-step-photo i { background: var(--chip); }
.cst-step-photo.p1 img, .cst-step-photo.p1 i { width: 86px; height: 86px; margin-bottom: 44px; }
.cst-step-photo.p2 img, .cst-step-photo.p2 i { width: 78px; height: 78px; margin-bottom: 30px; }
.cst-step-photo.p3 img, .cst-step-photo.p3 i { width: 72px; height: 72px; margin-bottom: 20px; }
.cst-strip.podium .cst-podium { position: absolute; bottom: 0; }
.cst-flat { display: flex; gap: 8px; }
.cst-flat img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 3px solid var(--surface); }
.cst-glyph { color: var(--text-secondary); }
.cst-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; }
.cst-info .cst-by { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.cst-info .t { font-size: 17px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cst-info .g { font-size: 13px; color: var(--text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cst-info .m { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.cst-info .m strong { color: var(--ink); }
.cst-info .n { font-size: 13px; font-weight: 700; }
.cst-actions { display: flex; align-items: center; gap: 8px; padding: 6px 14px 14px; }
.cst-actions.page { padding: 0; }
.cst-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid var(--teal-border); background: var(--teal-wash); color: var(--teal-text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cst-btn.filled { border-color: transparent; background: var(--teal); color: var(--surface); }
.cst-btn:hover { filter: brightness(.97); }
.cst-note { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--teal-text); }
.cst-note.muted { color: var(--text-secondary); }
.cst-note .ok { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: var(--surface); }
.cst-note .star-full { display: inline-flex; color: var(--case-craft-text); }
.cst-note .star-full svg { fill: currentColor; }
/* Inviti e «Le tue sfide». */
.cst-invite { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.cst-invite .cst-actions { padding-top: 0; }
.cst-mine { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; }
.cst-mine-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.cst-mine-row + .cst-mine-row { border-top: 1px solid var(--hairline); }
.cst-mine-row:hover { background: var(--surface-muted); color: var(--ink); }
.cst-mine-row .th { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--placeholder-photo); }
.cst-mine-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-mine-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cst-mine-row .t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-mine-row .d { font-size: 13px; color: var(--text-secondary); }
.cst-lock { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); color: var(--ink); }
/* Pagina della sfida. */
.cst-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cst-over { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .6px; color: var(--text-secondary); text-transform: uppercase; }
.cst-over svg { width: 18px; height: 18px; }
.contest-page .contest-title { font-size: 34px; margin-bottom: 12px; }
.cst-author { padding-left: 0; }
.cst-counts { font-size: 13px; font-weight: 700; }
.cst-dates { font-size: 13px; color: var(--text-secondary); }
.cst-goal { margin: 4px 0 0; font-size: 15px; color: var(--text-body); }
.cst-results { display: flex; flex-direction: column; gap: 14px; }
.cst-mine-badge { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: var(--teal); color: var(--surface); font-size: 11px; font-weight: 800; }
@media (max-width: 720px) {
  .cst-steps span, .cst-step-photo { width: 78px; }
  .cst-marquee img { width: 64px; height: 64px; }
}

/* ---- Marketplace nel guscio (ADR-0123; come MarketTabs e la scheda Vendi dell'app) ---------------------------------- */
.mkt-list .mkt-tabs { flex: 0 0 100%; max-width: 560px; }
.market-mine .mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.market-mine button.mkt-tile { border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mkt-sell-new .button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mkt-mine-tile { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mkt-stats { display: flex; gap: 12px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.mkt-stats span { display: inline-flex; align-items: center; gap: 4px; }
.mkt-fresh { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--teal-text); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* ---- Le mie recensioni nel guscio (ADR-0123; come MyReviewsView dell'app) ------------------------------------------ */
.home-shortcuts .disc.reviews, .myrev-empty-ico { color: var(--case-craft-text); }
.myrev-write { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-button); background: var(--teal-tint); }
.myrev-write .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.myrev-write .t, .myrev-title .t { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myrev-write .d { font-size: 13px; color: var(--teal-text); }
.myrev-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-button); background: var(--surface); border: 1px solid var(--hairline); }
.myrev-row.pub { flex-direction: row; align-items: center; gap: 10px; padding-right: 6px; }
.myrev-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.myrev-open:hover { color: var(--ink); }
.myrev-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.myrev-row .x { font-size: 15px; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myrev-row .d { font-size: 13px; color: var(--text-secondary); }
.myrev-row .d.warn { color: var(--warning-text, #9A5B00); }
.myrev-acts { display: flex; gap: 18px; }
.myrev-act { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 800; color: var(--teal-text); cursor: pointer; text-align: left; }
.myrev-act.muted { color: var(--text-secondary); }
.myrev-share { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.myrev-share:hover { background: var(--surface-muted); }

/* ---- Sondaggi nel guscio (ADR-0123; come PollPageScreen dell'app) -------------------------------------------------- */
.home-shortcuts .disc.polls { color: var(--case-business-text); }
.polls-page .poll-create { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.polls-page .wall-list { display: flex; flex-direction: column; gap: 14px; }

/* ---- Una pagina dello staff nel guscio (ADR-0123; come «Staff» dell'app) ------------------------------------------- */
.pg-head { display: flex; align-items: center; gap: 16px; }
.pg-head .avatar.square { width: 64px; height: 64px; font-size: 24px; }
.pg-head .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pg-head h1 { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.pg-head .d { font-size: 14px; color: var(--text-secondary); }
.pg-staff-title { margin: 0; padding: 0 4px; font-size: 15px; font-weight: 800; color: var(--text-secondary); }

/* === Richieste di prova nel guscio (ADR-0123; ProofListView e ProofRequestPageView dell'app) ======================== */
.prq-list .prq-ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.prq-art .a { fill: var(--case-sell-bg); }
.prq-art .b { fill: var(--case-sell); }
.prq-art .c { stroke: var(--teal); }
.prq-empty .d { font-size: 15px; color: var(--ink); }
.evt-group h2 .prq-count { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; margin-left: 8px; padding: 0 6px;
  border-radius: var(--radius-pill); background: var(--teal); color: #FFFFFF; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.prq-rows { padding: 0; overflow: hidden; }
.prq-row { min-height: 72px; padding: 12px 14px; }
.prq-row.mine { background: var(--teal-wash); }
.prq-row .t.off { color: var(--text-secondary); }
.prq-row .prq-who { display: block; font-size: 11px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prq-row .prq-who b { font-weight: 700; color: var(--ink); }
.prq-other { position: relative; flex-shrink: 0; width: 40px; height: 40px; }
.prq-other .avatar.sm { width: 40px; height: 40px; font-size: 16px; }
.avatar.prq-link { display: flex; align-items: center; justify-content: center; background: var(--chip); color: var(--text-secondary); }
.prq-dir { position: absolute; right: -4px; bottom: -4px; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ink); color: #FFFFFF; border: 2px solid var(--surface); }
.prq-dir.out { background: var(--teal); }
.prq-thumb { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.prq-thumb.wait { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--border-input); color: var(--text-secondary); }
.prq-answer { flex-shrink: 0; min-height: 32px; font-weight: 700; }
.prq-page { gap: 16px; }
.prq-head { display: flex; align-items: center; gap: 10px; }
.prq-head .prq-person { flex: 1; }
.prq-person { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; }
.prq-person .avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.prq-person .t { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prq-pill { flex-shrink: 0; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--chip); color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.prq-pill.done { background: var(--teal-tint); color: var(--teal-text); }
.prq-pill.closed { padding: 5px 10px; border-radius: var(--radius-badge); background: transparent; border: 1px solid var(--hairline); font-size: 12px; }
.prq-meta { margin: -8px 0 0; font-size: 13px; color: var(--text-secondary); }
.prq-body { padding: 16px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--hairline); font-size: 17px; line-height: 1.45;
  color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.prq-body.muted { background: var(--surface-muted); }
.prq-title { margin: 0; }
.prq-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.prq-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-body); }
.prq-facts svg, .prq-sees svg { flex-shrink: 0; margin-top: 2px; color: var(--ink); }
.prq-sees { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-box);
  font-size: 13px; line-height: 1.45; color: var(--text-body); }
.prq-actions { display: flex; flex-direction: column; gap: 10px; }
.prq-actions .yir-note { margin: 0; }
.prq-minor { display: flex; justify-content: space-between; }
.prq-minor button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }

/* ---- Il vuoto come nell'app (ADR-0123): disco colorato con l'icona, titolo, una riga, il tasto ------------------------ */
.yir-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.yir-empty .disc { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface-muted); color: var(--ink); margin-bottom: 4px; }
.yir-empty .disc.business { background: var(--case-business-bg); color: var(--case-business-text); }
.yir-empty .disc.sell { background: var(--case-sell-bg); color: var(--case-sell-text); }
.yir-empty .disc.craft { background: var(--case-craft-bg); color: var(--case-craft-text); }
.yir-empty .disc.teal { background: var(--teal-tint); color: var(--teal-text); }
.yir-empty .t { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.yir-empty .d { max-width: 420px; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.yir-empty .button { margin-top: 6px; min-width: 220px; }
.yir-empty.sm { padding: 18px 16px; gap: 6px; }
.yir-empty.sm .disc { width: 48px; height: 48px; }
.yir-empty.sm .t { font-size: 15px; }
.yir-empty.sm .d { font-size: 14px; }

/* === Base comune come l'app (piano «Web identico all'app», blocco 1) ======================================================
   Pezzi del design system dell'app che il bundle non ha ancora: le voci di YirText mancanti, la barra in alto unica
   (YirIconTopBar), le schede a segmenti con l'icona (YirIconTabs) e senza (ContestsTabs), il chip del tipo (YirTypeChip),
   il tasto Condividi col suo foglio e la conferma scura. Valori dai token. */
.top-bar-title { font-family: var(--font-sans); font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; }
.row-value { font-family: var(--font-sans); font-size: 13px; line-height: 1.3; font-weight: 400; }
.post { font-family: var(--font-typewriter); font-size: 16px; line-height: 1.55; font-weight: 400; }
.post-strong { font-family: var(--font-typewriter); font-size: 16px; line-height: 1.55; font-weight: 700; }

/* Fondo: le schermate di modulo dell'app sono bianche (Home, Sfide, Eventi, Sondaggi, Marketplace, Cerca); restano grigie
   le liste personali (Richieste di prova, Le mie recensioni) e le Impostazioni. */
.yw-content.home-wall { background: var(--surface); }
.yw-content.home-wall .wall-filters { background: var(--surface); }
.yw-content.prq-list, .yw-content.reviews-mine { background: var(--surface-muted); }

/* Barra in alto unica: indietro 22 (tratto 2,2) in 44, icona del modulo 22, titolo 20/800 a sinistra; a destra al più due
   icone 22 in 44. Larga quanto il contenuto della pagina. */
.yw-topbar { display: flex; align-items: center; min-height: 44px; margin: -12px 0 -4px -12px; align-self: stretch; color: var(--ink); }
.home-wall .yw-topbar { width: 100%; max-width: 640px; align-self: center; }
.yw-topbar-back, .yw-topbar-ic, .yw-topbar .yw-share { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: var(--tap-min); height: var(--tap-min); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  cursor: pointer; text-decoration: none; }
.yw-topbar-back:hover, .yw-topbar-ic:hover, .yw-topbar .yw-share:hover { background: var(--chip); color: var(--ink); }
.yw-topbar-back .ic { stroke-width: 2.2; }
.yw-topbar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-10); padding-left: var(--space-2); }
.yw-topbar-title .ic { flex-shrink: 0; }
.yw-topbar-title h1, .yw-content .yw-topbar-title h1 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Schede a segmenti (.yir-segmented del bundle): con l'icona come YirIconTabs (Marketplace, Sondaggi, Recensioni), testo
   row 14/700, icona 17 a tratto 2,2, il pallino teal; --chip senza icone come ContestsTabs (Aperte · Chiuse), 13/700. */
.yir-segmented { width: 100%; max-width: 640px; box-sizing: border-box; }
a.yir-segmented__item, button.yir-segmented__item { gap: var(--space-6); padding: 0 var(--space-4); border: 0; background: transparent; font: inherit;
  font-size: 13px; font-weight: 700; color: var(--text-secondary); text-decoration: none; cursor: pointer; }
a.yir-segmented__item:hover { color: var(--ink); }
a.yir-segmented__item.yir-segmented__item--on, button.yir-segmented__item.yir-segmented__item--on { background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-segment); }
.yir-segmented--icons .yir-segmented__item { font-size: 14px; }
.yir-segmented--icons .yir-segmented__item .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.yir-segmented--chip { background: var(--chip); border-color: transparent; }
.yir-segmented__dot { position: relative; display: inline-flex; }
.yir-segmented__dot::after { content: ""; position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 2px var(--surface-muted); }
.yir-segmented__item--on .yir-segmented__dot::after { box-shadow: 0 0 0 2px var(--surface); }

/* Chip del tipo: capsula bianca, icona 13 a tratto 2,2 e nome 11/800 maiuscolo con spaziatura 0,7, ombra leggera. */
.yir-type-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--surface);
  color: var(--ink); font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: 0.7px; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(20,20,20,0.2); }
.yir-type-chip .ic { stroke-width: 2.2; flex-shrink: 0; }

/* Condividi a sola icona (18 in 44) e la variante con la parola; il foglio di ripiego; la conferma scura. */
.yw-share { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.yw-share:hover { background: var(--chip); }
.share-sheet { width: 360px; max-width: 92vw; border-radius: var(--radius-sheet); background: var(--surface); }
.share-sheet .shell-dialog-body { padding: 22px 20px 18px; }
.share-sheet .t { font-size: 15px; font-weight: 800; }
.share-opt { display: flex; align-items: center; gap: 12px; min-height: var(--button-md-h); padding: 0 16px; border: 1.5px solid var(--ink);
  border-radius: var(--radius-button); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800;
  text-decoration: none; cursor: pointer; }
.share-opt:hover { background: var(--surface-muted); color: var(--ink); }
.share-opt[hidden] { display: none; }
.share-sheet form { margin: 0; }
.share-sheet form .button { width: 100%; }
.yw-flash { position: fixed; left: 50%; bottom: 32px; z-index: 50; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--radius-box);
  background: var(--ink); color: #FFFFFF; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-floating); }
.yw-flash[hidden] { display: none; }

/* === Home come l'app (piano «Web identico all'app», blocco 3) ============================================================
   Scorciatoie a dischi grigi senza bordo e icone nere (HomeShortcuts), titoli 15/800, «Adesso» a card grigie (HomeNowLine),
   biglietto dell'evento in corso, busta della richiesta di prova, «Per te» con le card e i biglietti, «Invita amici» a
   biglietto, «Scrivi qualcosa…», il muro da bordo a bordo con le fasce grigie da 8 (WallPostView). */
.home-shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 4px 0; }
.home-shortcuts a { gap: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-shortcuts .disc, .home-shortcuts .disc.sell, .home-shortcuts .disc.events, .home-shortcuts .disc.contests, .home-shortcuts .disc.reviews,
.home-shortcuts .disc.polls { background: var(--chip); border: 0; color: var(--ink); }
.home-shortcuts .dot { top: 1px; left: 43px; right: auto; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--surface); }
.wall-title, .home-now .wall-title, .home-foryou .wall-title { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; letter-spacing: 0; color: var(--ink); }
.yir-banner--neutral { background: var(--chip); color: var(--ink); text-decoration: none; }
.yir-banner--neutral .yir-banner__dot { background: var(--text-secondary); }

.now-rows { display: flex; flex-direction: column; gap: 12px; }
.now-line { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; box-sizing: border-box; border: 0; border-radius: var(--radius-card);
  background: var(--surface-muted); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; width: 100%; }
.now-line:hover { background: var(--chip); color: var(--ink); }
.now-disc { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--chip); color: var(--teal-text); }
.now-disc.ink { color: var(--ink); }
.now-line .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.now-line .t { font-size: 14px; line-height: 1.3; font-weight: 700; }
.now-line .d { font-size: 12px; color: var(--text-secondary); }
.now-line .chev { display: inline-flex; color: var(--text-secondary); }

/* La linea da strappare dei biglietti (TicketShape, TicketTearLine): tratteggio con due tacche ai lati. */
.ticket-tear { position: relative; display: block; height: 0; margin: 0 14px; border-top: 1.5px dashed var(--border-input); }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--hairline); box-sizing: border-box; }
.ticket-tear::before { left: -23px; clip-path: inset(0 0 0 50%); }
.ticket-tear::after { right: -23px; clip-path: inset(0 50% 0 0); }

.now-ticket, .now-envelope { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--surface); overflow: hidden; }
.now-ticket-open, .now-envelope-open { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.now-ticket-band { position: relative; display: block; height: 88px; background: var(--case-trip-bg); overflow: hidden; }
.now-ticket-band > img, .now-ticket-band > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.now-ticket-band .yir-type-chip, .evt-ticket-photo .yir-type-chip { position: absolute; top: 10px; left: 10px; }
.now-ticket-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 4px; }
.now-ticket-body .t-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.now-ticket-body .t { font-size: 15px; font-weight: 800; }
.now-ticket-body .d { font-size: 12px; color: var(--text-secondary); }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--teal-tint);
  color: var(--teal-text); font-size: 11px; font-weight: 800; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.now-ticket > .button, .now-envelope > .button { align-self: flex-start; margin: 10px 14px 14px; gap: 6px; }

.now-envelope { background: var(--paper); border-color: var(--paper-border); }
.now-envelope-open { padding: 14px 14px 0; gap: 10px; }
.env-top { display: flex; align-items: flex-start; justify-content: space-between; }
.env-stamp { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 52px; background: var(--surface);
  border: 2px dotted var(--paper-dash); transform: rotate(4deg); }
.env-from { display: flex; flex-direction: column; gap: 4px; }
.env-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-secondary); }
.env-who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.env-line { display: block; border-top: 1.5px dashed var(--paper-dash); }
.env-body { font-family: var(--font-typewriter); font-size: 15px; line-height: 1.55; color: var(--text-body); }
.now-contest { display: flex; flex-direction: column; gap: 6px; }
.now-contest-note { font-size: 12px; font-weight: 700; color: var(--teal-text); padding: 0 4px; }

.carousel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.carousel-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.carousel-head h3 .n { color: var(--text-secondary); font-weight: 700; }
.carousel-head a { font-size: 14px; font-weight: 800; color: var(--teal-text); text-decoration: none; }
.cst-cards.two { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.evt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.evt-ticket, .evt-tiles .home-past { display: flex; flex-direction: column; padding: 0; gap: 0; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; }
.evt-ticket-photo { position: relative; display: block; height: 150px; background: var(--case-trip-bg); }
.evt-ticket-photo > img, .evt-ticket-photo > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.evt-ticket .txt, .evt-tiles .home-past .txt { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.evt-ticket .day { font-size: 12px; font-weight: 800; color: var(--teal-text); }
.evt-ticket .t, .evt-tiles .home-past .t { font-size: 15px; font-weight: 800; }
.evt-ticket .d, .evt-tiles .home-past .d { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); }
.evt-tiles .home-past .mosaic { width: 100%; height: 150px; border-radius: 0; }

.invite-ticket { display: flex; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.it-main { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--paper-border);
  border-right: 0; border-radius: var(--radius-ticket) 0 0 var(--radius-ticket); }
.it-over { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--teal-text); }
.it-title { font-size: 15px; font-weight: 800; }
.it-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.it-bar svg { flex: 1; height: 6px; }
.it-bar .bg { fill: var(--paper-border); }
.it-bar .fill { fill: var(--teal); }
.it-dash { display: block; border-top: 1.5px dashed var(--paper-dash); }
.it-num { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.it-num b { font-size: 17px; font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.it-more { font-size: 12px; color: var(--text-secondary); }
.it-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 78px; flex-shrink: 0;
  background: var(--teal); color: #FFFFFF; border-radius: 0 var(--radius-ticket) var(--radius-ticket) 0; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.it-stub::before, .it-stub::after { content: ""; position: absolute; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); }
.it-stub::before { top: -7px; }
.it-stub::after { bottom: -7px; }
.invite-ticket:hover .it-stub { background: var(--teal-hover); }

.home-compose { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0 14px; border: 0; border-bottom: 8px solid var(--surface-muted);
  background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.home-compose .avatar.sm { width: 40px; height: 40px; flex-shrink: 0; }
.home-compose .field { flex: 1; display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--surface-muted); border: 1px solid var(--hairline); color: var(--text-secondary); font-size: 14px; justify-content: flex-start; }
.home-compose .shoot { display: inline-flex; color: var(--ink); }

/* Il muro: post da bordo a bordo su bianco, separati da una fascia grigia da 8; descrizione Courier 16/1.55, meta 12. */
.wall-list, .polls-page .wall-list { gap: 0; }
.wall-card { border: 0; border-radius: 0; border-bottom: 8px solid var(--surface-muted); }
.wall-desc { font-size: 16px; line-height: 1.55; }
.wall-id .meta { font-size: 12px; }
.home-compose .field { justify-content: flex-start; text-align: left; }
.evt-tiles .home-past { align-items: stretch; }

/* === Guide «Come funziona» (piano «Web identico all'app», blocco 4; GuideCard, GuideSheet, GuideNotice) ===================
   Card su teal chiarissimo col bordo teal, occhiello teal, slogan 16/800 con l'evidenza teal, X, tre passi coi riquadri da
   62 (teal chiaro, carta, bianco col filo) e la didascalia, riga finale dopo il filo; foglio coi passi in colonna; il
   cerchio a mano attorno alla «i» dopo la chiusura. */
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--teal-border); border-radius: var(--radius-card);
  background: var(--teal-wash); color: var(--ink); }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guide-eyebrow { font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: 0.8px; color: var(--teal-text); }
.guide-close { margin: 0; }
.guide-close button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-secondary); cursor: pointer; }
.guide-close button:hover { background: var(--teal-tint); color: var(--ink); }
.guide-title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 800; }
.guide-title strong, .guide-cap strong, .guide-foot strong, .guide-outcomes strong { color: var(--teal-text); font-weight: 800; }
.guide-title.lg { font-size: 26px; line-height: 1.15; letter-spacing: -0.5px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; flex-direction: column; gap: 6px; }
.guide-tile { display: flex; align-items: center; justify-content: center; height: 62px; border-radius: var(--radius-box); overflow: hidden;
  background: var(--teal-tint); border: 1px solid transparent; box-sizing: border-box; }
.guide-tile.paper { background: var(--paper); border-color: var(--paper-border); }
.guide-tile.plain { background: var(--surface); border-color: var(--hairline); }
.guide-tile svg { width: 61px; height: 56px; }
.guide-cap { font-size: 12px; line-height: 1.4; font-weight: 700; display: flex; flex-direction: column; }
.guide-sub { font-weight: 400; color: var(--text-secondary); }
.guide-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--teal-border); font-size: 12px; line-height: 1.45; color: var(--text-body); }
.guide-outcomes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--teal-border); list-style: none;
  font-size: 12px; color: var(--text-body); }
.guide-outcomes li { display: flex; align-items: center; gap: 8px; }
.guide-mark { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--teal); }
.guide-mark.o2 { background: var(--warning-dot); }
.guide-mark.o3 { background: transparent; border: 1.5px dashed var(--ticket-spent); box-sizing: border-box; }
.guide-sheet { width: 440px; max-width: 92vw; border-radius: var(--radius-sheet); background: var(--surface); }
.guide-sheet .shell-dialog-body { padding: 20px 22px 22px; gap: 14px; }
.guide-sheet .guide-head form { margin: 0; }
.guide-steps.col { grid-template-columns: 1fr; gap: 12px; }
.guide-steps.col li { flex-direction: row; align-items: center; gap: 14px; }
.guide-steps.col .guide-tile { width: 72px; flex-shrink: 0; }
.guide-steps.col .guide-cap { font-size: 15px; line-height: 1.5; font-weight: 400; }
.guide-steps.col .guide-cap strong { font-weight: 800; }
.guide-all { align-self: flex-start; font-size: 14px; font-weight: 800; color: var(--teal-text); text-decoration: none; }
.guide-info { position: relative; }
.guide-info.ring::after { content: ""; position: absolute; inset: 2px; border: 2.5px solid var(--teal); border-radius: 48% 52% 50% 46%;
  transform: rotate(-8deg); pointer-events: none; }
.yw-content.guides-page { align-items: center; }
.guides-page > * { width: 100%; max-width: 640px; box-sizing: border-box; }
.guides-page .shell-row { width: 100%; }
.verify .guide-card, .pf-all .guide-card { margin: 0 0 20px; }

/* === Marketplace come l'app (blocco 5) ======================================================================================
   Le tre schede nello stesso guscio bianco, larghe fino a 880 sul PC (griglie con più colonne), stile dell'app: ricerca 46
   grigia, pillole Categoria e Filtri alte 40 (accese in inchiostro), tessere delle categorie 44 grigie, fascia «Avvisami»,
   tessera a cartellino col cartellino del prezzo, card dei propri annunci, miniature di Salvati, fogli Categoria e Filtri,
   scheda dell'annuncio coi tasti rapidi. Icone in inchiostro, nessun colore per categoria. */
.yw-content.mkt-shell { background: var(--surface); }
.home-wall.mkt-shell > *, .mkt-shell.home-wall .yw-topbar { max-width: 880px; }
.mkt-shell .yir-segmented { max-width: 880px; }
.mkt-shell .guide-card { box-sizing: border-box; }
.mkt-shell h2 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--ink); }

/* Ricerca (46, grigia col filo, lente 20 grigia, × per svuotare) e pillole. */
.mkt-searchbar { position: relative; display: block; margin: 0; }
.mkt-searchbar .mkt-search .ic { position: absolute; left: 14px; top: 13px; color: var(--text-secondary); }
.mkt-searchbar .yir-input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 44px; border-radius: var(--radius-box); font-size: 16px;
  background: var(--surface-muted); border: 1px solid var(--hairline); }
.mkt-searchbar .yir-input::-webkit-search-cancel-button { display: none; }
.mkt-search-clear { position: absolute; right: 1px; top: 1px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--text-secondary); }
.mkt-search-clear:hover { color: var(--ink); }
.mkt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; box-sizing: border-box; border: 0; border-radius: var(--radius-pill);
  background: var(--chip); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mkt-pill .ic { stroke-width: 2.4; }
.mkt-pill.on { background: var(--ink); color: var(--surface); font-weight: 800; padding-right: 4px; }
button.mkt-pill.on { padding-right: 12px; }
.mkt-pill.on button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.mkt-pill.on a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 40px; color: var(--surface); }
.mkt-pill.on a .ic { stroke-width: 2.6; }

/* Fascia «Avvisami»: grigia col filo, campanella, testo body e tasto a pillola in inchiostro alto 36. */
.mkt-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-box); background: var(--surface-muted);
  border: 1px solid var(--hairline); color: var(--ink); }
.mkt-alert > span { flex: 1; font-size: 14px; line-height: 1.45; color: var(--text-body); }
.mkt-alert button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font: inherit;
  font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* «Sfoglia per categoria»: quadrato 44 grigio raggio 12 con l'icona 20 in inchiostro e il nome 11/700 su una riga. */
.mkt-browse { display: flex; flex-wrap: wrap; gap: 12px; padding: 2px 0; }
.mkt-browse a, .mkt-browse button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 56px; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; font-size: 11px; line-height: 1.4; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.mkt-browse .sq { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-muted); }
.mkt-browse .sq .ic { stroke-width: 1.7; }
.mkt-browse .sq.grid .ic { stroke-width: 1.9; }
.mkt-browse a:hover .sq, .mkt-browse button:hover .sq { background: var(--chip); }

/* Titolo dei risultati 15/800, a destra «dalle foto più recenti» 11/700 grigio o l'ordine in teal; vuoto grigio centrato. */
.mkt-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 4px; }
.mkt-heading .small { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.mkt-heading .sort { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--teal-text); cursor: pointer; }
.mkt-empty { margin: 0; padding-top: 24px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.mkt-shell .mkt-grid, .mkt-list .mkt-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 12px; }
.mkt-more .yir-btn { width: 100%; }

/* La tessera a cartellino (MarketTile, TagShape, TagHole, PriceTag). */
.mkt-tile { gap: 6px; }
button.mkt-tile { border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mkt-cover { position: relative; display: block; aspect-ratio: 17 / 16; padding: 0; overflow: hidden; background: var(--placeholder-photo);
  border-radius: 0 0 var(--radius-box) var(--radius-box);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px); }
.mkt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-cover.closed img, .mkt-photo.closed img, .mkt-mine-pic.closed img, .mkt-mini.closed img { filter: grayscale(1); }
.mkt-hole { position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(20,20,20,0.28); }
.mkt-made { position: absolute; left: 8px; top: 22px; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-secondary);
  font-size: 11px; line-height: 1.4; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 3px rgba(20,20,20,0.2); }
.mkt-cover-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 16px); box-sizing: border-box;
  padding: 4px 9px; border: 2px solid #FFFFFF; border-radius: var(--radius-box); background: rgba(20,20,20,0.55); color: #FFFFFF;
  font-size: 13px; font-weight: 800; letter-spacing: 1.8px; white-space: nowrap; overflow: hidden; }
.mkt-cover-label.big { font-size: 20px; letter-spacing: 2.8px; padding: 7px 14px; }
.price-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 13px;
  box-sizing: border-box; max-width: calc(100% - 16px); background: var(--ink); color: var(--surface); border-radius: 0 6px 6px 0;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); white-space: nowrap; }
.price-tag::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--surface); }
.price-tag .now { font-size: 15px; line-height: 1.3; font-weight: 800; }
.price-tag s { font-size: 11px; font-weight: 700; opacity: 0.8; }
.price-tag.state .now { font-size: 13px; line-height: 1.2; }
.price-tag.light { background: var(--surface); color: var(--ink); filter: drop-shadow(0 1px 1.5px rgba(20,20,20,0.2)); }
.price-tag.light::before { background: var(--text-secondary); }
.price-tag.spent { background: var(--ticket-spent); }
.price-tag.mine { background: var(--teal); }
.mkt-tile-title, .mkt-tile .mkt-tile-title { font-size: 12px; line-height: 1.4; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-tile-title.sold { color: var(--text-secondary); }
.mkt-tile-line { margin-top: -4px; font-size: 12px; line-height: 1.45; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vendi: «Metti in vendita», card dei propri annunci (MarketMineCard) in griglia sul PC, riga «Venduti e ritirati». */
.mkt-sell-new { gap: 8px; }
.mkt-heading + .mkt-empty { padding-top: 16px; padding-bottom: 16px; }
.mkt-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mkt-mine { align-self: start; display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.mkt-mine-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left;
  text-decoration: none; cursor: pointer; }
.mkt-mine-head:hover { color: var(--ink); background: var(--surface-muted); }
.mkt-mine-pic { position: relative; width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--placeholder-photo); }
.mkt-mine-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-mine-head .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mkt-mine-head .row1 { display: flex; align-items: center; gap: 8px; }
.mkt-mine-head .p { font-size: 13px; line-height: 1.35; font-weight: 800; }
.mkt-state-pill { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--chip); color: var(--text-body); font-size: 11px; line-height: 1.4; font-weight: 700; }
.mkt-state-pill.on { background: var(--teal-tint); color: var(--teal-text); }
.mkt-mine-head .t { font-size: 14px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-mine-head .d { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.mkt-mine .mkt-stats { display: flex; gap: 14px; padding: 10px 12px; background: var(--surface-muted); border-top: 1px solid var(--hairline);
  font-size: 12px; font-weight: 700; color: var(--ink); }
.mkt-mine .mkt-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mkt-mine .mkt-stats .ic { stroke-width: 2.4; }
.mkt-mine-actions { display: flex; border-top: 1px solid var(--hairline); }
.mkt-mine-actions button { flex: 1; min-height: 44px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800;
  color: var(--teal-text); cursor: pointer; }
.mkt-mine-actions button + button { border-left: 1px solid var(--hairline); }
.mkt-mine-actions button:hover { background: var(--surface-muted); }
.mkt-closed-row .shell-row { padding-left: 14px; }

/* Salvati: titoli con l'icona 20, ricerche a righe 56 nella card, «3 nuovi» teal pieno, miniature 76, sezioni vuote in una riga. */
.mkt-sec { display: flex; flex-direction: column; gap: 10px; }
.mkt-sec-title { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.mkt-empty-line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.mkt-empty-line .ic { flex-shrink: 0; width: 20px; }
.mkt-searches { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.mkt-search-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; box-sizing: border-box; color: var(--ink); text-decoration: none; }
.mkt-search-row + .mkt-search-row { border-top: 1px solid var(--hairline); }
.mkt-search-row:hover { color: var(--ink); background: var(--surface-muted); }
.mkt-search-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mkt-search-row .t { font-size: 14px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-search-row .d { font-size: 12px; line-height: 1.45; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-search-row .chev { display: inline-flex; color: var(--text-secondary); }
.mkt-fresh { padding: 2px 7px; border-radius: var(--radius-pill); background: var(--teal); color: var(--surface); font-size: 11px; line-height: 1.4; font-weight: 700; }
.mkt-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mkt-mini { position: relative; display: block; height: 76px; border-radius: 10px; overflow: hidden; background: var(--placeholder-photo); }
.mkt-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkt-mini .tag { position: absolute; left: 5px; bottom: 5px; max-width: calc(100% - 10px); box-sizing: border-box; padding: 2px 6px; border-radius: 6px;
  background: var(--ink); color: var(--surface); font-size: 11px; line-height: 1.4; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-mini .tag.state { background: var(--overlay-dark); }

/* I fogli Categoria (griglia a 3 colonne, tessere grigie alte 62, la scelta su teal chiarissimo col bordo teal) e Filtri. */
.mkt-sheet { width: 520px; max-width: 94vw; max-height: 88vh; border-radius: var(--radius-sheet); background: var(--surface); }
.mkt-sheet .shell-dialog-body { gap: 18px; padding: 18px 20px 20px; margin: 0; }
.mkt-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mkt-sheet-head .t { font-size: 17px; font-weight: 800; }
.mkt-sheet-head form { margin: 0; }
.mkt-sheet-head button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; }
.mkt-sheet-head button:hover { background: var(--chip); }
.mkt-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mkt-cat-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; padding: 6px 4px;
  border-radius: 12px; background: var(--surface-muted); border: 1.5px solid transparent; color: var(--ink); text-decoration: none; text-align: center;
  font-size: 12px; line-height: 1.4; font-weight: 700; }
.mkt-cat-grid a .ic { stroke-width: 1.7; }
.mkt-cat-grid a:hover { background: var(--chip); color: var(--ink); }
.mkt-cat-grid a.on { background: var(--teal-wash); border-color: var(--teal); }
.mkt-fsec { display: flex; flex-direction: column; gap: 10px; }
.mkt-fsec .mkt-sec-title { font-size: 13px; font-weight: 700; padding-top: 0; }
.mkt-fsec .mkt-price .yir-input { min-height: 46px; }

/* La scheda dell'annuncio: nel guscio su due colonne sul PC; foto e miniature col bordo teal, scritta in mezzo sui chiusi. */
.mkt-item-shell .mkt-item { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.mkt-photo { aspect-ratio: auto; height: 440px; border-radius: 0; }
.mkt-photo img { object-fit: cover; }
.mkt-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.mkt-thumb { flex: 0 0 72px; width: 72px; height: 72px; box-sizing: border-box; border-radius: var(--radius-box); border: 1px solid var(--hairline); }
.mkt-thumb.on { border: 2px solid var(--teal); }
.mkt-side { gap: 14px; }
.mkt-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-box); border: 1px solid var(--border-input);
  font-size: 14px; line-height: 1.45; color: var(--text-body); }
.mkt-banner .pill { flex-shrink: 0; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 700; }
.mkt-head { gap: 4px; }
.mkt-priceline .now { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.mkt-priceline .mkt-old { font-size: 14px; }
.mkt-negotiable { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--chip); color: var(--text-body); font-size: 11px; line-height: 1.4; font-weight: 700; }
.mkt-head h1.mkt-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: 0; color: var(--ink); }
.mkt-meta { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.mkt-quick { display: flex; gap: 0; padding: 4px 0; }
.mkt-q { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 4px 0; border: 0; background: none; font: inherit;
  font-size: 12px; line-height: 1.45; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.mkt-q:hover { color: var(--ink); }
.mkt-q .c { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--chip); }
.mkt-q:hover .c { background: var(--border-input); }
.mkt-desc-block { display: flex; flex-direction: column; gap: 6px; }
.mkt-desc-block h2 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; }
.mkt-desc-block .yir-l1 { font-size: 14px; line-height: 1.5; }
.mkt-lines { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mkt-lines li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.mkt-lines .ic { flex-shrink: 0; width: 22px; color: var(--teal-text); }
.mkt-zone { position: relative; display: flex; align-items: center; justify-content: center; height: 160px; border-radius: var(--radius-box);
  background: var(--surface-muted); border: 1px solid var(--hairline); }
.mkt-zone .cap { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--overlay-light);
  font-size: 11px; font-weight: 700; color: var(--ink); }
.mkt-zone .pin { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mkt-zone .pin .ic { color: var(--teal-text); }
a.mkt-seller { padding: 14px; color: var(--ink); text-decoration: none; }
a.mkt-seller:hover { color: var(--ink); background: var(--surface-muted); }
.mkt-seller { padding: 14px; }
.mkt-seller .chev { display: inline-flex; color: var(--text-secondary); }
.mkt-seller-hidden { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
.mkt-professional { display: flex; flex-direction: column; gap: 8px; }
.mkt-professional .card-title { margin: 0; }
.mkt-professional .small { color: var(--text-secondary); }
.mkt-certnote { display: flex; flex-direction: column; font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.mkt-certnote .l { display: flex; align-items: center; gap: 8px; }
.mkt-certnote a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--teal-text); text-decoration: underline; }
.mkt-write .yir-btn { color: var(--surface); }
.mkt-item-shell .mkt-write { position: sticky; bottom: 64px; padding: 12px 0 16px; background: var(--surface); border-top: 1px solid var(--hairline); }
.mkt-report { display: inline-flex; align-items: center; gap: 6px; }
.mkt-menu { position: relative; }
.mkt-menu summary { list-style: none; }
.mkt-menu summary::-webkit-details-marker { display: none; }
.mkt-menu-list { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 220px; padding: 6px; border-radius: var(--radius-box); background: var(--surface);
  box-shadow: var(--shadow-floating); }
.mkt-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.mkt-menu-list button:hover { background: var(--surface-muted); }
@media (max-width: 760px) {
  .mkt-shell .mkt-grid, .mkt-list .mkt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .mkt-photo { height: 300px; }
  .mkt-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .mkt-quick { justify-content: space-around; }
  .mkt-minis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .mkt-item-shell .mkt-write { bottom: 0; }
}
.mkt-shell .yir-segmented { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

/* === Recensioni e Richieste di prova come l'app (blocco 6) ==================================================================
   «Recensioni» con le schede Scopri · Le tue e «Recensisci» in inchiostro (ReviewsPageScreen), Scopri largo fino a 880 sul PC
   con le card dei luoghi in griglia (nell'app scorrono di lato), la card della recensione (ReviewEntryCard), il riquadro
   colorato della categoria (PlaceCategoryBadge), la scheda del luogo e la recensione (PlaceReviewsView, ReviewDetailView), i
   ritocchi delle Richieste di prova. Valori dai token. */
.yw-content.reviews-mine { background: var(--surface); }
.home-wall.rv-page-discover > *, .rv-page-discover.home-wall .yw-topbar, .rv-page-discover .yir-segmented { max-width: 880px; }
.yw-content.rv-shell { background: var(--surface); }
.home-wall.rv-shell > *, .rv-shell.home-wall .yw-topbar { max-width: 1040px; }
.rv-write-btn .ic, .rv-writebar .yir-btn .ic { stroke-width: 2.2; }

/* Le tue (MyReviewsView): titoli dei gruppi in overline, nomi 15/800, testo pubblicato in Courier 16, non pubblicata su avviso. */
.reviews-mine .evt-group h2 { padding: 0; font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.myrev-write .t, .myrev-title .t { font-size: 15px; }
.myrev-row .x { font-family: var(--font-typewriter); font-size: 16px; line-height: 1.55; }
.myrev-row.warn { background: var(--warning-tint); border-color: transparent; }
.myrev-row .d.warn { font-size: 12px; color: var(--warning-text); }

/* Stelle disegnate (ReviewStars): xs 11 · sm 12 · md 16 · lg 20, piene in inchiostro, spente in border-input. */
.rv-stars { display: inline-flex; align-items: center; gap: 1px; letter-spacing: 0; vertical-align: middle; }
.rv-stars svg { width: 12px; height: 12px; fill: var(--ink); }
.rv-stars svg.off { fill: var(--border-input); }
.rv-stars.xs svg { width: 11px; height: 11px; }
.rv-stars.md { gap: 2px; }
.rv-stars.md svg { width: 16px; height: 16px; }
.rv-stars.lg { gap: 2px; }
.rv-stars.lg svg { width: 20px; height: 20px; }

/* Il riquadro della categoria: il segno sul suo fondo, coi colori dei casi (DiscoverTint). */
.rv-catbadge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-muted); color: var(--text-secondary); }
.rv-catbadge .ic { stroke-width: 2.2; }
.rv-catbadge.xs { width: 24px; height: 24px; border-radius: 6px; }
.rv-catbadge.md { width: 40px; height: 40px; border-radius: 10px; }
.rv-catbadge.lg { width: 56px; height: 56px; border-radius: var(--radius-box); }
.rv-catbadge.fill { width: 100%; height: 100%; border-radius: var(--radius-box); }
.rv-catbadge.cat-food { background: var(--case-sell-bg); color: var(--case-sell); }
.rv-catbadge.cat-lodging { background: var(--case-business-bg); color: var(--case-business); }
.rv-catbadge.cat-shop { background: var(--case-social-bg); color: var(--case-social); }
.rv-catbadge.cat-personal_care { background: var(--case-real-bg); color: var(--case-real); }
.rv-catbadge.cat-craft { background: var(--case-craft-bg); color: var(--case-craft); }
.rv-catbadge.cat-attraction { background: var(--case-trip-bg); color: var(--case-trip); }

/* La card della recensione: filo, raggio 16, interno 14 (8 in fondo); testa del luogo; chi scrive 32; miniature 72; segno;
   risposta col filo a sinistra; riga delle azioni sotto un filo. */
.rv-card { gap: 10px; padding: 14px 14px 8px; background: var(--surface); }
.rv-card.short { gap: 8px; padding-top: 8px; }
.rv-head { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: -4px 0; color: var(--ink); text-decoration: none; }
.rv-head:hover { color: var(--ink); }
.rv-head .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rv-head .t { font-size: 15px; line-height: 1.3; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-head .d { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.rv-head > .ic { color: var(--text-secondary); stroke-width: 2.4; flex-shrink: 0; }
.rv-rule { display: block; height: 1px; background: var(--hairline); }
.rv-card__open { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.rv-card.short .rv-card__open { gap: 8px; }
.rv-card__open:hover { color: var(--ink); }
.rv-card__who { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.rv-card__who .rv-avatar, .rv-scard .rv-avatar { width: 32px; height: 32px; }
.rv-card.short .rv-card__who .rv-avatar { width: 28px; height: 28px; }
.rv-card__who .names { display: flex; flex-direction: column; min-width: 0; }
.rv-card__who .n { font-size: 14px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__who .m { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.rv-card__vote { flex-shrink: 0; gap: 4px; font-size: 14px; }
.rv-card__vote b { font-weight: 700; }
.rv-post { display: block; font-family: var(--font-typewriter); font-size: 16px; line-height: 1.55; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.rv-post.rv-clamp { display: -webkit-box; }
.rv-thumbs { display: flex; gap: 6px; }
.rv-thumbs img, .rv-thumbs .more { width: 72px; height: 72px; border-radius: var(--radius-box); object-fit: cover; background: var(--placeholder-photo); }
.rv-thumbs .more { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-muted); font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.rv-badges { gap: 6px; align-items: center; }
.rv-badges .rv-badge { padding: 4px 10px; font-size: 12px; line-height: 1.4; color: var(--ink); }
.rv-sign { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--teal-tint); color: var(--teal-text);
  font-size: 12px; line-height: 1.4; font-weight: 700; }
.rv-sign .ic { stroke-width: 2.2; flex-shrink: 0; }
.rv-sign .w { display: flex; flex-direction: column; }
.rv-sign .code { font-size: 10px; line-height: 1.2; font-weight: 400; letter-spacing: 0.6px; font-variant-numeric: tabular-nums; }
.rv-reply { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 2px solid var(--hairline); font-size: 12px; line-height: 1.45; color: var(--text-body); }
.rv-reply b { font-weight: 700; color: var(--ink); }
.rv-visits { margin-top: -4px; text-decoration: none; }
.rv-acts { display: flex; align-items: center; margin: 0 -4px; padding-top: 6px; border-top: 1px solid var(--hairline); }
.rv-act { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 8px; box-sizing: border-box; border: 0; background: none;
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; }
.rv-act:hover { color: var(--ink); }
.rv-acts .yw-share .ic { width: 20px; height: 20px; }
.rv-report { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; border: 0; background: none; color: var(--text-secondary);
  font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rv-report:hover { color: var(--ink); }

/* Scopri: ricerca grigia (bianca col bordo teal durante la ricerca, «Annulla» teal), pillole alte 40, titoli 15/800 con il
   suggerimento 11/700, card dei luoghi (196 e 150, copertina 112 e 92) in griglia, divisorio «Più lontano», vuoto. */
.rv-discover { display: flex; flex-direction: column; gap: 12px; }
.rv-search { display: flex; align-items: center; gap: 10px; }
.rv-search .mkt-search { position: relative; flex: 1; display: block; }
.rv-search .yir-input { padding-right: 14px; }
.rv-search:has(.rv-search-cancel) .yir-input { background: var(--surface); border: 1.5px solid var(--teal); }
.rv-search-cancel { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--teal-text); text-decoration: none; }
.rv-pills .mkt-pill .ic { stroke-width: 2.4; }
.rv-pills .mkt-pill.on { padding-right: 12px; }
.rv-dsec { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.rv-dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rv-dhead h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.rv-dhead h2 .ic { stroke-width: 2.2; }
.rv-dhead .hint { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.rv-dhead .see { font-size: 13px; font-weight: 700; color: var(--teal-text); text-decoration: none; }
.rv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 10px; }
.rv-tiles.wide { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.rv-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--ink); text-decoration: none; }
.rv-tile.wide { gap: 4px; }
.rv-tile:hover { color: var(--ink); }
.rv-tile .cover { display: block; height: 92px; border-radius: var(--radius-box); overflow: hidden; }
.rv-tile.wide .cover { height: 112px; }
.rv-tile .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-tile .n { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; line-height: 1.4; font-weight: 700; }
.rv-tile.wide .n { font-size: 14px; line-height: 1.3; }
.rv-tile .n > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tile .n svg { flex-shrink: 0; }
.rv-tile .c, .rv-tile .r { font-size: 12px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-tile .c, .rv-tile .r .g { color: var(--text-secondary); }
.rv-tile .r b { font-weight: 700; }
.rv-tile .f { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--teal-text); }
.rv-tile .f i { width: 18px; height: 18px; border-radius: 50%; background: var(--placeholder-avatar); flex-shrink: 0; }
.rv-sortmenu { position: relative; }
.rv-sortmenu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; font-weight: 700; color: var(--teal-text); cursor: pointer; }
.rv-sortmenu summary::-webkit-details-marker { display: none; }
.rv-sortlist { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 200px; padding: 6px; border-radius: var(--radius-box); background: var(--surface);
  box-shadow: var(--shadow-floating); display: flex; flex-direction: column; }
.rv-sortlist a, .rv-sortlist .off { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.rv-sortlist a:hover { background: var(--surface-muted); color: var(--ink); }
.rv-sortlist .off { color: var(--disabled); }
.rv-beyond { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.rv-beyond::before, .rv-beyond::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.rv-beyond .w { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.rv-beyond .ic { stroke-width: 2.4; }
.rv-more { margin-top: 4px; }
.rv-fail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
.rv-fail p, .rv-none { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.rv-none { padding-top: 24px; text-align: center; }
.rv-dempty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 8px 0; text-align: center; }
.rv-dempty .t { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.rv-dempty .d { max-width: 420px; font-size: 14px; line-height: 1.45; color: var(--text-body); }
.rv-dempty .yir-btn { width: auto; }
.rv-dempty-art .a { fill: var(--case-trip-bg); }
.rv-dempty-art .b { fill: var(--paper); stroke: var(--ink); }
.rv-dempty-art .c { stroke: var(--placeholder-deep); }
.rv-dempty-art .d { fill: var(--case-craft); }
.rv-dempty-art .e { stroke: var(--teal); }
.rv-discover .yir-overline { margin: 4px 0 -2px; }
.rv-prows { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.rv-prow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.rv-prow + .rv-prow { border-top: 1px solid var(--hairline); }
.rv-prow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rv-prow .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-prow .d { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-prow b { font-size: 12px; font-weight: 700; white-space: nowrap; }
.rv-scard { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.rv-scard .top { display: flex; align-items: baseline; gap: 8px; }
.rv-scard .top .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-scard .top .d { font-size: 12px; color: var(--text-secondary); }
.rv-scard .who { display: flex; align-items: center; gap: 8px; }
.rv-scard .who .rv-avatar { width: 26px; height: 26px; }
.rv-scard .who .m { flex: 1; min-width: 0; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-scard .who .m b { color: var(--ink); }
.rv-scard .who .v { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.rv-scard mark { background: var(--teal-tint); color: inherit; }

/* Il foglio Filtri di Scopri: titoli in overline, la posizione, caselle con icona (bordo in inchiostro la scelta), interruttori. */
.rv-fsheet .mkt-sheet-head { gap: 4px; }
.rv-fsheet .mkt-sheet-head .t { flex: 1; }
.rv-reset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--teal-text); text-decoration: none; }
.rv-fsheet fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rv-fsheet fieldset:disabled .yir-chip { opacity: 0.4; }
.rv-pos { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px 0 12px; border-radius: var(--radius-box); background: var(--surface-muted); }
.rv-pos .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; }
.rv-pos .t.off { color: var(--text-secondary); }
.rv-pos button { min-height: 44px; padding: 0 10px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--teal-text); cursor: pointer; }
.rv-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rv-boxes label { position: relative; cursor: pointer; }
.rv-boxes label.off { opacity: 0.4; cursor: default; }
.rv-boxes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-boxes .box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 8px 4px; box-sizing: border-box;
  border-radius: var(--radius-box); border: 1px solid var(--hairline); background: var(--surface); font-size: 12px; line-height: 1.3; font-weight: 700; text-align: center; color: var(--ink); }
.rv-boxes.three .box { min-height: 72px; }
.rv-boxes .box .ic { stroke-width: 2.2; }
.rv-boxes input:checked + .box { border: 2px solid var(--ink); background: var(--surface-muted); }
.rv-boxes input:focus-visible + .box { outline: 2px solid var(--teal); outline-offset: 2px; }
.rv-only { gap: 0; }
.rv-only .yir-overline { padding-bottom: 4px; }
.rv-only label { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 700; cursor: pointer; }
.rv-only label > span { flex: 1; }
.rv-only label .ic { stroke-width: 2.2; flex-shrink: 0; }
.rv-switch { appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: var(--radius-pill); background: var(--disabled); cursor: pointer; flex-shrink: 0; }
.rv-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); transition: left 0.15s ease; }
.rv-switch:checked { background: var(--teal); }
.rv-switch:checked::after { left: 23px; }
.rv-switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* La scheda del luogo: testa col riquadro 56, nome 20/800 con la Y, indirizzo con lo spillo teal e «Mappe ›», pagina o
   «Non ufficiale», media 36 con le barre a capsula (chip/inchiostro, ciascuna filtra), filtri 44, ordine a icona, «Scrivi»
   in inchiostro. Sul PC la colonna a lato resta. */
.rv-place .rv-main { gap: 14px; }
.rv-public-bar { display: flex; justify-content: flex-end; margin-bottom: -8px; }
.rv-phead { display: flex; align-items: center; gap: 12px; }
.rv-phead .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-phead .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-phead h1, .yw-content .rv-phead h1 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.3px; overflow-wrap: anywhere; }
.rv-phead .nm svg { flex-shrink: 0; }
.rv-phead .c { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.rv-addr { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.rv-addr > .ic { color: var(--teal-text); flex-shrink: 0; }
.rv-addr .a { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.rv-addr .m { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--teal-text); }
.rv-addr .m .ic { stroke-width: 3; }
.rv-addr:hover { color: var(--ink); }
.rv-intro { margin: 0; }
.rv-pagepills { display: flex; gap: 8px; }
.rv-pp { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-pill);
  background: var(--chip); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-pp.line { background: var(--surface); border: 1.5px solid var(--ink); }
.rv-pp:hover { color: var(--ink); }
.rv-attr { display: flex; align-items: center; gap: 10px; }
.rv-attr .caption { flex: 1; }
.rv-manage { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 800; color: var(--teal-text); text-decoration: none; }
.rv-unofficial { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--radius-card); background: var(--surface-muted); }
.rv-unofficial .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--chip); font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.rv-unofficial .body { color: var(--text-body); }
.rv-claim { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; }
.rv-claim:hover { color: var(--ink); background: var(--surface); }
.rv-place .rv-average { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 0; border-bottom: 0; }
.rv-place .rv-average__big { flex-direction: row; align-items: center; gap: 12px; padding: 4px 0; }
.rv-place .rv-average__n { font-size: 36px; letter-spacing: -1px; }
.rv-average__s { display: flex; flex-direction: column; gap: 2px; }
.rv-place .rv-bars { flex: none; gap: 0; }
.rv-place .rv-bar { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--text-secondary); text-decoration: none; font-size: 12px; }
.rv-place .rv-bar__s { width: 32px; }
.rv-place .rv-bar__n { width: 32px; text-align: right; }
.rv-place .rv-bar__track { flex: 1; height: 8px; border-radius: 4px; background: none; }
.rv-bar__track .t { fill: var(--chip); }
.rv-bar__track .f { fill: var(--ink); }
.rv-place .rv-bar.on .rv-bar__s, .rv-place .rv-bar:hover .rv-bar__s { color: var(--ink); font-weight: 700; }
.rv-place .rv-few { padding: 12px 14px; color: var(--text-body); }
.rv-place .rv-tools { flex-wrap: nowrap; gap: 6px; }
.rv-place .rv-filters { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rv-place .rv-filter { flex-shrink: 0; min-height: 44px; }
.rv-sorticon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.rv-sorticon:hover { background: var(--chip); color: var(--ink); }
.rv-sorticon .ic { stroke-width: 2.2; }
.rv-writebar { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.rv-writebar .yir-btn:hover { color: var(--surface); }

/* La recensione: nella barra il luogo come titolo (16/800 e la riga grigia), «⋯» con Condividi e Segnala; chi scrive 40, stelle
   20 con la parola colorata, il segno a destra, testo in Courier 16, foto due per riga alte 132 (200 sul PC), azioni fra due fili. */
.rv-bartitle { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 4px; color: var(--ink); text-decoration: none; }
.rv-bartitle:hover { color: var(--ink); }
.rv-bartitle .t { font-size: 16px; line-height: 1.3; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-bartitle .d { font-size: 12px; line-height: 1.45; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-shell .mkt-menu-list .js-share { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.rv-shell .mkt-menu-list .js-share:hover { background: var(--surface-muted); }
.rv-review .rv-main { gap: 12px; }
.rv-rauthor { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.rv-rauthor:hover { color: var(--ink); }
.rv-rauthor .rv-avatar { width: 40px; height: 40px; }
.rv-rauthor .names { display: flex; flex-direction: column; min-width: 0; }
.rv-rauthor .n { font-size: 14px; line-height: 1.3; font-weight: 700; }
.rv-rauthor .m { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.rv-rvote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-rvote .rv-sign { margin-left: auto; }
.rv-word { font-size: 12px; line-height: 1.4; font-weight: 700; }
.rv-word.r1 { color: #B42318; }
.rv-word.r2 { color: #C2410C; }
.rv-word.r3 { color: #A16207; }
.rv-word.r4 { color: #4D7C0F; }
.rv-word.r5 { color: #15803D; }
.rv-published { margin-top: -6px; }
.rv-rtext { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-rphotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rv-rphotos img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-box); background: var(--placeholder-photo); }
.rv-racts { margin: 0; padding: 2px 0; border-bottom: 1px solid var(--hairline); }
.rv-rreply { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-box); background: var(--surface-muted); }
.rv-rreply .h { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-rreply .h .rv-catbadge { margin-right: 2px; }
.rv-rreply .n { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-rreply .body { margin: 0; color: var(--text-body); }
.rv-ccount { padding-top: 2px; }

/* Richieste di prova: «Chiedi una prova» medio teal raggio 14, titoli in overline, righe bianche raggio 16 senza filo coi
   divisori rientrati di 70, «⋯» a destra delle proprie, vuoto 14/700; la pagina: testo 15/1.5, tasti medi, la ricevuta
   su bianco, «Rifiuta» e «Segnala» 14/700. */
.prq-list .evt-group h2 { display: flex; align-items: center; padding: 0; font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.prq-list .evt-group h2 .prq-count { letter-spacing: 0; }
.prq-list .prq-ask { width: 100%; }
.prq-list .prq-ask .ic { stroke-width: 2.4; }
.shell-rows.prq-rows { padding: 0; border: 0; border-radius: var(--radius-card); background: var(--surface); }
.prq-item { position: relative; }
.prq-item + .prq-item::before { content: ""; position: absolute; left: 70px; right: 0; top: 0; z-index: 1; height: 1px; background: var(--hairline); }
.prq-item + .prq-item .search-row { border-top: 0; }
.prq-row.with-menu { padding-right: 52px; }
.prq-menu { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.prq-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-secondary); cursor: pointer; }
.prq-menu summary:hover { background: var(--chip); color: var(--ink); }
.prq-menu .mkt-menu-list { top: 44px; }
.prq-empty .d { font-size: 14px; font-weight: 700; }
.prq-body { font-size: 15px; line-height: 1.5; }
.yw-content.prq-page.prq-received { background: var(--surface); }
.prq-received .prq-title, .yw-content .prq-received .prq-title { font-size: 26px; line-height: 1.15; letter-spacing: -0.5px; }
.prq-minor button { font-size: 14px; }
.prq-actions .yir-btn { box-sizing: border-box; }

@media (min-width: 900px) {
  .rv-shell .rv { display: flex; gap: 32px; align-items: flex-start; }
  .rv-shell .rv-side { position: sticky; top: 80px; }
}
@media (max-width: 899px) {
  .rv-shell .rv { display: flex; flex-direction: column; gap: 24px; }
  .rv-rphotos img { height: 132px; }
}
.rv-shell .rv { padding: 0; }

/* === Sfide e Sondaggi come l'app (piano «Web identico all'app», blocco 7) ===============================================
   Card della sfida: chip del tipo e dello stato bianchi con ombra, podio a gradini 2-1-3 numerati (grigio scuro, inchiostro,
   grigio chiaro; 50/72/34), il nastro di foto da 104 che scorre dentro la scena (mai la pagina), base piatta da 260×12, testi
   15/12, tasti 13/800 con lo stato spento. Pagina della sfida: titolo 30, autore senza @handle, tondi da 40 su grigio nella
   riga delle date, risultati col cerchio a mano, griglia a 3 colonne con spazio 4, fascia fissa in basso. Sondaggi: il fumetto
   grigio con la coda, chip bianchi, risposte a capsula alte 46, barre dei risultati, segno a mano sulla giusta; ricerca,
   filtri a capsula, categorie, fogli. */
.yir-state-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface);
  color: var(--text-secondary); font-size: 11px; line-height: 1.3; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 3px rgba(20,20,20,0.2); }
.yir-state-chip .ic { stroke-width: 2.2; }
.cst-chips { align-items: center; }
.cst-steps { gap: 6px; }
.cst-steps span { position: relative; display: flex; justify-content: center; padding-top: 6px; box-sizing: border-box; width: 92px;
  border-radius: 6px 6px 0 0; font-size: 11px; line-height: 1.3; font-weight: 700; color: var(--surface); }
.cst-steps .s1 { height: 72px; background: var(--ink); }
.cst-steps .s2 { height: 50px; background: var(--text-secondary); }
.cst-steps .s3 { height: 34px; background: var(--placeholder-deep); color: var(--ink); }
.cst-steps.lifted span { box-shadow: 0 -4px 12px rgba(20,20,20,0.18); }
.cst-base { width: 260px; height: 12px; border-radius: 6px 6px 0 0; background: var(--border-input); flex-shrink: 0; }
.cst-strip.flat { gap: 6px; }
.cst-step-photo.p1 img, .cst-step-photo.p1 i { margin-bottom: 72px; }
.cst-step-photo.p2 img, .cst-step-photo.p2 i { margin-bottom: 50px; }
.cst-step-photo.p3 img, .cst-step-photo.p3 i { margin-bottom: 34px; }
.cst-podium { margin-bottom: -6px; }
.cst-marquee { top: 50px; overflow: hidden; justify-content: center; }
.cst-marquee-row { display: flex; gap: 8px; flex-shrink: 0; }
.cst-marquee img { width: 104px; height: 104px; border: 0; border-radius: 10px; flex-shrink: 0; }
.cst-marquee.moves { justify-content: flex-start; }
.cst-marquee.moves .cst-marquee-row { animation: cst-marquee 42s linear infinite; }
.cst-marquee.moves.n4 .cst-marquee-row { animation-duration: 28s; }
.cst-marquee.moves.n5 .cst-marquee-row { animation-duration: 35s; }
@keyframes cst-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cst-marquee.moves .cst-marquee-row { animation: none; }
}
.cst-info .t { font-size: 15px; }
.cst-info .g, .cst-info .m, .cst-info .n { font-size: 12px; }
.cst-info .m .ic { color: var(--text-secondary); flex-shrink: 0; }
.cst-btn { font-size: 13px; }
.cst-btn.off { border-color: transparent; background: var(--chip); color: var(--text-secondary); }
.cst-note { font-size: 12px; }
@media (max-width: 720px) {
  .cst-steps span, .cst-step-photo { width: 78px; }
  .cst-marquee img { width: 84px; height: 84px; }
  .cst-base { width: 220px; }
}

/* Elenco delle sfide: «Nuova sfida», titoli in overline, inviti con «Entra» a tutta larghezza e «Rifiuta» grigio, righe 14,
   vuoto in testo grigio; sul PC le card su due colonne. */
.contests-page .cst-new { box-sizing: border-box; }
.contests-page .cst-new .ic { stroke-width: 2.4; }
.contests-page .evt-group h2 { padding: 0; font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.cst-invite-acts { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 14px 8px; }
.cst-invite-acts .yir-btn { box-sizing: border-box; }
.cst-mine-row .t { font-size: 14px; }
.cst-mine-row .d { font-size: 12px; }
.cst-empty { margin: 8px 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
@media (min-width: 1100px) {
  .home-wall.contests-page > *, .contests-page.home-wall .yw-topbar { max-width: 900px; }
  .contests-page .cst-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
}

/* Pagina della sfida. */
.contest-page .contest-title { font-size: 30px; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px; }
.cst-over { font-size: 11px; font-weight: 700; }
.cst-official { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--chip);
  color: var(--text-body); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.cst-official .ok { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); color: var(--surface); }
.cst-official .ok .ic { width: 9px; height: 9px; stroke-width: 3; }
.cst-author { display: inline-flex; align-items: center; gap: 8px; padding-top: 4px; color: var(--ink); text-decoration: none; }
.cst-author .avatar { width: 30px; height: 30px; font-size: 13px; }
.cst-author .t { font-size: 15px; font-weight: 800; }
.cst-author:hover .t { text-decoration: underline; }
.cst-counts { font-size: 12px; }
.cst-daterow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.cst-daterow .cst-dates { flex: 1; min-width: 0; font-size: 12px; }
.cst-rounds { display: inline-flex; align-items: center; margin-left: auto; }
.cst-round { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.cst-round::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--chip); z-index: 0; }
.cst-round .ic { position: relative; z-index: 1; }
.cst-round.on { color: var(--surface); }
.cst-round.on::before { background: var(--ink); }
.cst-round:hover { color: var(--ink); }
.cst-round.on:hover { color: var(--surface); }
.cst-invite-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.cst-invite-card .h { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.cst-invite-card .h .ic { color: var(--teal-text); }
.cst-invite-card .minor { display: flex; gap: 8px; }
.cst-invite-card .yir-btn { box-sizing: border-box; }
.cst-invite-card .minor .yir-btn { width: auto; padding: 0 8px; }
.cst-results .yir-overline { display: block; }
.cst-paper { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--paper); border: 1px solid var(--paper-border); }
.cst-paper .t { font-size: 15px; font-weight: 800; }
.cst-mine-result .th { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--placeholder-photo); }
.cst-mine-result .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-mine-result .txt { display: flex; flex-direction: column; gap: 2px; }
.cst-mine-result .d { font-size: 12px; color: var(--text-secondary); }
.contest-page .contest-podium { gap: 8px; max-width: none; }
.contest-page .contest-podium-photo { height: 120px; border-radius: 10px; }
.contest-page .contest-podium-row.pos-1 .contest-podium-photo { height: 160px; }
.contest-page .contest-podium-row.pos-3 .contest-podium-photo { height: 100px; }
.contest-page .contest-pos { position: relative; width: 30px; height: 30px; overflow: visible; }
.contest-page .contest-podium-row.pos-1 .contest-pos { width: 36px; height: 36px; }
.cst-hand-circle { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); pointer-events: none; }
.contest-page .contest-podium-name { font-size: 12px; }
.contest-page .contest-podium-votes { font-size: 11px; }
@media (min-width: 1100px) {
  .contest-page .contest-podium-photo { height: 156px; }
  .contest-page .contest-podium-row.pos-1 .contest-podium-photo { height: 208px; }
  .contest-page .contest-podium-row.pos-3 .contest-podium-photo { height: 130px; }
}
.cst-top { display: flex; flex-direction: column; }
.cst-top-row { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--ink); text-decoration: none; }
.cst-top-row + .cst-top-row { border-top: 1px solid var(--hairline); }
.cst-top-row .pos { width: 22px; text-align: right; font-size: 14px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cst-top-row .th { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--placeholder-photo); }
.cst-top-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-top-row .name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-top-row .name.gone { color: var(--text-secondary); }
.cst-top-row .votes { font-size: 12px; color: var(--text-secondary); }
.cst-others { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cst-others .d { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.cst-grid-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 60px 0 20px; text-align: center; }
.cst-grid-empty .t { font-size: 15px; font-weight: 800; }
.cst-grid-empty .d { font-size: 12px; color: var(--text-secondary); }
.cst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.cst-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--placeholder-photo); }
.cst-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-tile .mine { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--overlay-light);
  color: var(--ink); font-size: 11px; font-weight: 700; }
.cst-tile .stars { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px;
  color: var(--surface); font-size: 13px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cst-tile .name { position: absolute; left: 6px; bottom: 6px; right: 6px; color: var(--surface); font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (min-width: 1100px) {
  .home-wall.contest-page > *, .contest-page.home-wall .yw-topbar { max-width: 900px; }
  .cst-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* La fascia dei tasti resta sopra la barra di navigazione in basso (come .mkt-write). */
.cst-footer { position: sticky; bottom: 64px; z-index: 5; display: flex; gap: 8px; padding: 12px 0; background: var(--surface);
  border-top: 1px solid var(--hairline); box-sizing: border-box; }
.cst-enter, .cst-vote { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--button-lg-h);
  border-radius: var(--radius-button); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.cst-enter { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.cst-vote { background: var(--teal); color: var(--surface); border: 0; }
.cst-enter.off, .cst-vote.off { background: var(--disabled); color: var(--text-body); border-color: transparent; }
.cst-details .shell-dialog-body { padding: 22px 20px 18px; align-items: stretch; }
.cst-details .goal { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-body); }
.cst-reqs { display: flex; flex-wrap: wrap; gap: 6px; }
.cst-reqs span { padding: 5px 10px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cst-detail-rows { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); overflow: hidden; }
.cst-detail-rows > * { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.cst-detail-rows > * + * { border-top: 1px solid var(--hairline); }
.cst-detail-rows span { flex: 1; font-size: 14px; font-weight: 700; }
.cst-detail-rows strong { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-align: right; }
.cst-detail-rows a:hover { background: var(--surface-muted); }
.cst-leave { align-self: flex-start; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--danger); cursor: pointer; }

/* La card del sondaggio: il fumetto grigio con la coda (24×12 a 13 dal bordo), i chip, le risposte. */
.wall-poll-card .wall-actions { margin-top: 4px; }
.poll-bubble { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius-card); background: var(--surface-muted); color: var(--ink); }
.poll-bubble.tail { margin: 12px 16px 0; }
.poll-bubble.tail::before, .poll-bubble.tail::after { content: ""; position: absolute; left: 13px; width: 0; height: 0; border-style: solid; }
.poll-bubble.tail::before { top: -12px; border-width: 0 12px 12px; border-color: transparent transparent var(--hairline); }
.poll-bubble.tail::after { top: -10px; left: 14px; border-width: 0 11px 11px; border-color: transparent transparent var(--surface-muted); }
.poll-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.poll-type, .poll-qchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface);
  font-size: 11px; line-height: 1.3; white-space: nowrap; box-shadow: 0 1px 3px rgba(20,20,20,0.2); }
.poll-type { gap: 5px; padding: 5px 10px; color: var(--ink); font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; }
.poll-qchip { color: var(--text-secondary); font-weight: 700; }
.poll-type .ic, .poll-qchip .ic { stroke-width: 2.2; flex-shrink: 0; }
.poll-kind { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-cat, .poll-diff { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink); }
.poll-bars { display: inline-flex; align-items: flex-end; gap: 3px; width: 20px; height: 16px; }
.poll-bars i { display: block; width: 4px; border-radius: 1.5px; background: var(--border-input); }
.poll-bars i:nth-child(1) { height: 6px; } .poll-bars i:nth-child(2) { height: 10px; } .poll-bars i:nth-child(3) { height: 14px; }
.poll-bars.d-easy i:nth-child(1), .poll-bars.d-medium i:nth-child(-n+2), .poll-bars.d-hard i { background: var(--ink); }
.poll-head { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.poll-head:hover { color: var(--ink); }
.poll-q { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.2px; }
.poll-qbody { font-size: 15px; line-height: 1.4; font-weight: 700; }
.poll-redacted { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: var(--radius-box); background: var(--surface); }
.poll-redacted i { display: block; height: 10px; border-radius: 5px; background: var(--chip); }
.poll-redacted i:nth-child(1) { width: 92%; } .poll-redacted i:nth-child(2) { width: 78%; } .poll-redacted i:nth-child(3) { width: 85%; } .poll-redacted i:nth-child(4) { width: 40%; }
.poll-start { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--surface); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.poll-rows { display: flex; flex-direction: column; gap: 10px; }
.poll-pill { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; box-sizing: border-box; width: 100%;
  border: 1.5px solid var(--border-input); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; text-align: left; }
button.poll-pill { cursor: pointer; }
button.poll-pill:hover { border-color: var(--ink); }
.poll-pill.mine { border-color: var(--ink); }
.poll-pill.dim { border-color: var(--hairline); color: var(--text-secondary); }
.poll-pill .ic { stroke-width: 3; flex-shrink: 0; }
.poll-bar { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; overflow: hidden;
  border: 1.5px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; font-weight: 700; }
.poll-bar.mine { border-color: var(--ink); }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--track); z-index: 0; }
.poll-bar.strong .fill { background: var(--placeholder-deep); }
.poll-bar > :not(.fill) { position: relative; z-index: 1; }
.poll-bar .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poll-bar.strong:not(.mine) .txt { font-weight: 800; }
.poll-bar .ic { stroke-width: 3; flex-shrink: 0; }
.poll-bar .yours { font-size: 12px; font-weight: 400; color: var(--text-body); }
.poll-bar .pct { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--text-secondary); }
.poll-bar.strong .pct { color: var(--ink); }
.poll-mark { flex-shrink: 0; }
.poll-bar .fill.w0, .poll-split i.w0 { width: 0%; } .poll-bar .fill.w5, .poll-split i.w5 { width: 5%; } .poll-bar .fill.w10, .poll-split i.w10 { width: 10%; }
.poll-bar .fill.w15, .poll-split i.w15 { width: 15%; } .poll-bar .fill.w20, .poll-split i.w20 { width: 20%; } .poll-bar .fill.w25, .poll-split i.w25 { width: 25%; }
.poll-bar .fill.w30, .poll-split i.w30 { width: 30%; } .poll-bar .fill.w35, .poll-split i.w35 { width: 35%; } .poll-bar .fill.w40, .poll-split i.w40 { width: 40%; }
.poll-bar .fill.w45, .poll-split i.w45 { width: 45%; } .poll-bar .fill.w50, .poll-split i.w50 { width: 50%; } .poll-bar .fill.w55, .poll-split i.w55 { width: 55%; }
.poll-bar .fill.w60, .poll-split i.w60 { width: 60%; } .poll-bar .fill.w65, .poll-split i.w65 { width: 65%; } .poll-bar .fill.w70, .poll-split i.w70 { width: 70%; }
.poll-bar .fill.w75, .poll-split i.w75 { width: 75%; } .poll-bar .fill.w80, .poll-split i.w80 { width: 80%; } .poll-bar .fill.w85, .poll-split i.w85 { width: 85%; }
.poll-bar .fill.w90, .poll-split i.w90 { width: 90%; } .poll-bar .fill.w95, .poll-split i.w95 { width: 95%; } .poll-bar .fill.w100, .poll-split i.w100 { width: 100%; }
.poll-number { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-box); background: var(--surface); }
.poll-number .n { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.poll-number .mine { margin-left: auto; font-size: 12px; font-weight: 700; }
.poll-split { display: flex; flex-direction: column; gap: 8px; }
.poll-split .bar { display: flex; gap: 2px; height: 12px; border-radius: var(--radius-pill); overflow: hidden; }
.poll-split .bar i { display: block; height: 100%; }
.poll-split i.c { background: var(--teal); } .poll-split i.w { background: var(--placeholder-deep); } .poll-split i.o { background: var(--track); }
.poll-split .legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; }
.poll-split .legend span { display: inline-flex; align-items: center; gap: 5px; }
.poll-split .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.poll-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.poll-line.strong { font-weight: 700; color: var(--ink); }
.poll-line.lock .ic { stroke-width: 2.2; flex-shrink: 0; }
.poll-share { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--button-md-h); border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-button); background: var(--teal-wash); color: var(--teal-text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.poll-propose { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }

/* La pagina Sondaggi: ricerca, filtri rapidi (scelto inchiostro pieno), categorie che scorrono, titolo della lista, fogli. */
.polls-page .poll-create { box-sizing: border-box; }
.poll-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border-radius: var(--radius-box);
  background: var(--surface-muted); color: var(--text-secondary); box-sizing: border-box; }
.poll-search input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.poll-search .clear { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text-secondary); }
.poll-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-quick a, .poll-quick button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill);
  background: var(--chip); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.poll-quick .on { background: var(--ink); color: var(--surface); }
.poll-quick .on .poll-bars i { background: rgba(255,255,255,0.35); }
.poll-quick .on .poll-bars.d-easy i:nth-child(1), .poll-quick .on .poll-bars.d-medium i:nth-child(-n+2), .poll-quick .on .poll-bars.d-hard i { background: var(--surface); }
.poll-quick .ic { stroke-width: 2.4; }
.poll-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.poll-cats a { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 64px; color: var(--ink); text-decoration: none;
  font-size: 11px; font-weight: 700; text-align: center; }
.poll-cats .tile { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-muted); }
.poll-cats a.on .tile { background: var(--ink); color: var(--surface); }
.poll-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.poll-heading .t { font-size: 15px; font-weight: 800; }
.poll-heading .d { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.poll-empty { margin: 8px 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.poll-sheet .shell-dialog-body { padding: 22px 20px 18px; align-items: stretch; gap: 6px; }
.poll-sheet .t { margin-bottom: 6px; }
.poll-sheet .yir-overline { margin-top: 8px; }
.poll-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-box); color: var(--ink);
  text-decoration: none; font-size: 15px; font-weight: 700; }
.poll-opt span:last-of-type { flex: 1; }
.poll-opt:hover { background: var(--surface-muted); color: var(--ink); }
.poll-opt.on { background: var(--chip); }
.polls-page .evt-group h2 { padding: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.poll-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.poll-row + .poll-row { border-top: 1px solid var(--hairline); }
.poll-row:hover { background: var(--surface-muted); color: var(--ink); }
.poll-row .tile, .poll-row .face { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; }
.poll-row .tile { display: flex; align-items: center; justify-content: center; background: var(--surface-muted); }
.poll-row .face { border-radius: 50%; object-fit: cover; }
.poll-row .face.square { border-radius: 10px; }
.poll-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.poll-row .chips { display: flex; gap: 6px; }
.poll-row .poll-type, .poll-row .poll-qchip { padding: 3px 8px; font-size: 10px; }
.poll-row .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poll-row .meter { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.poll-row .meter i { display: block; height: 100%; background: var(--placeholder-deep); }
.poll-row .d { font-size: 12px; color: var(--text-secondary); }
.poll-row .meter i.w0 { width: 0%; } .poll-row .meter i.w5 { width: 5%; } .poll-row .meter i.w10 { width: 10%; } .poll-row .meter i.w15 { width: 15%; }
.poll-row .meter i.w20 { width: 20%; } .poll-row .meter i.w25 { width: 25%; } .poll-row .meter i.w30 { width: 30%; } .poll-row .meter i.w35 { width: 35%; }
.poll-row .meter i.w40 { width: 40%; } .poll-row .meter i.w45 { width: 45%; } .poll-row .meter i.w50 { width: 50%; } .poll-row .meter i.w55 { width: 55%; }
.poll-row .meter i.w60 { width: 60%; } .poll-row .meter i.w65 { width: 65%; } .poll-row .meter i.w70 { width: 70%; } .poll-row .meter i.w75 { width: 75%; }
.poll-row .meter i.w80 { width: 80%; } .poll-row .meter i.w85 { width: 85%; } .poll-row .meter i.w90 { width: 90%; } .poll-row .meter i.w95 { width: 95%; }
.poll-row .meter i.w100 { width: 100%; }

/* La pagina del sondaggio: chip bianchi con ombra, la domanda in Manrope 18/800, risposte a capsula, la giusta col segno a mano. */
.poll-tags .poll-chip { min-height: 0; padding: 5px 9px; background: var(--surface); color: var(--text-secondary); font-size: 11px; font-weight: 700;
  box-shadow: 0 1px 3px rgba(20,20,20,0.2); }
.poll-tags .poll-chip.kind { gap: 5px; padding: 5px 10px; background: var(--surface); color: var(--ink); font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; }
.poll-tags .poll-chip .ic { stroke-width: 2.2; }
.poll-body .poll-question { font-family: inherit; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.2px; }
.poll-body .poll-options li { min-height: 46px; padding: 0 16px; border: 1.5px solid var(--hairline); border-radius: var(--radius-pill); font-size: 14px; }
.poll-body .poll-options li .bar { background: var(--track); }
.poll-body .poll-options li.right { border-color: var(--hairline); border-width: 1.5px; }
.poll-body .poll-options li .txt { display: inline-flex; align-items: center; gap: 8px; }
.poll-body .poll-share { align-self: stretch; }

/* === Eventi, Pagine, Profilo, contenuto come l'app (piano «Web identico all'app», blocco 8) ==============================
   Eventi: la riga a biglietto con le tacche e la linea da strappare (EventRow, TicketShape), «Nuovo evento», il vuoto con
   la figura dei tre riquadri (GuideEmptyState); la pagina come EventPageView (barra coi commenti, tema 52, righe icona e
   testo, facce 30, riquadro teal chiaro della data, tre tasti di «Ci sarai?», galleria da bordo a bordo, commenti col campo
   a capsula, fascia «Aggiungi foto» in basso); le persone con le risposte a icona. Valori dai token. */
.evt-new { gap: 6px; }
.evt-new .ic { stroke-width: 2.4; }
.events-page .evt-group { gap: 10px; }
.events-page .evt-group h2.yir-overline, .home-block .evt-group h2.yir-overline { margin: 8px 0 0; padding: 0; font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.evt-empty { gap: 12px; padding: 32px 20px; }
.evt-empty .t { font-size: 15px; font-weight: 800; }
.evt-empty .d { font-size: 14px; line-height: 1.45; }
.evt-empty .yir-btn { width: auto; margin-top: 6px; padding: 0 22px; }
.evt-empty-art .chip { fill: var(--chip); }
.evt-empty-art .tint { fill: var(--teal-tint); }
.evt-empty-art .hand { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.evt-empty-link { min-height: var(--tap-min); padding: 0 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800;
  color: var(--teal-text); cursor: pointer; }

/* La riga: interno 10, copertina 64 raggio 12 col giorno sotto (12/700 text-body), tacche di raggio 8 a 80 dal bordo sinistro,
   tratteggio 1,5 (4/4) border-input fra copertina e testo, nome 15/800 su due righe, chi organizza con la foto 16, spillo 13. */
.evt-row { position: relative; align-items: stretch; gap: 12px; padding: 10px; border-radius: 16px; }
.evt-row:hover { border-color: var(--hairline); background: var(--surface-muted); }
.evt-row-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; flex-shrink: 0; }
.evt-row-side::before, .evt-row-side::after { content: ""; position: absolute; left: 61px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--hairline); box-sizing: border-box; }
.evt-row-side::before { top: -19px; clip-path: inset(50% 0 0 0); }
.evt-row-side::after { bottom: -19px; clip-path: inset(0 0 50% 0); }
.evt-row .day { font-size: 12px; line-height: 1.3; font-weight: 700; color: var(--text-body); white-space: nowrap; }
.evt-row .txt { position: relative; gap: 3px; justify-content: center; align-items: flex-start; }
.evt-row .txt::before { content: ""; position: absolute; left: -7px; top: 2px; bottom: 2px; border-left: 1.5px dashed var(--border-input); }
.evt-row .t { font-size: 15px; line-height: 1.3; }
.evt-row .d { font-size: 12px; color: var(--text-secondary); }
.evt-row .d.org { gap: 6px; color: var(--text-body); }
.evt-row .d.place .ic { stroke-width: 2.2; color: var(--text-secondary); }
.evt-row .d.state { font-weight: 700; color: var(--text-secondary); }
.evt-row.past .evt-thumb { opacity: 1; }
.evt-row .evt-chip { padding: 3px 8px; font-size: 11px; font-weight: 700; color: var(--text-body); }
.evt-row .evt-chip.pending { background: var(--warning-tint); color: var(--warning-text); }
.evt-org-pic { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
  background: var(--placeholder-avatar); color: var(--ink); font-size: 9px; font-weight: 800; object-fit: cover; }
.evt-org-pic.square { border-radius: 25%; }
.evt-org-pic.md { width: 18px; height: 18px; font-size: 10px; }
@media (min-width: 1100px) {
  .events-page .evt-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* La pagina dell'evento. */
.evt-bar .yw-topbar-title { flex: 1; }
.evt-bar-comments { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); padding: 0 6px; border-radius: 10px;
  color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.evt-bar-comments:hover { background: var(--chip); color: var(--ink); }
.event-page .evt-cover { border-radius: 16px; }
.event-page .evt-head { gap: 14px; }
.evt-title-row { display: flex; align-items: center; gap: 12px; }
.evt-title-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evt-title-txt h1, .yw-content .evt-title-txt h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.4px; overflow-wrap: anywhere; }
.evt-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.evt-line { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-size: 14px; line-height: 1.4; color: var(--text-body); text-decoration: none; }
a.evt-line:hover { color: var(--ink); }
.evt-line .ic { flex-shrink: 0; stroke-width: 2.2; color: var(--text-secondary); }
.evt-line .one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-page .evt-chip { gap: 5px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.event-page .evt-chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.evt-people { display: flex; flex-direction: column; gap: 2px; }
.evt-people-row { display: flex; align-items: center; gap: 10px; min-height: var(--tap-min); color: var(--ink); text-decoration: none; }
.evt-people-row .evt-faces .evt-face + .evt-face { margin-left: -9px; }
.evt-face { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; box-sizing: border-box;
  border-radius: 50%; border: 2px solid var(--surface); background: var(--placeholder-avatar); color: var(--ink); font-size: 12px; font-weight: 800; object-fit: cover; }
.evt-face.square { border-radius: 25%; }
.evt-people-line { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.evt-people-row > .ic { color: var(--text-secondary); stroke-width: 2.4; flex-shrink: 0; }
.event-page .evt-box .yir-btn { width: auto; padding: 0 22px; }

.evt-before { display: flex; flex-direction: column; gap: 16px; }
.evt-when-box { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: var(--teal-wash);
  border: 1px solid var(--teal-border); }
.evt-when-big { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.4px; }
.evt-cal { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); color: var(--teal-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.evt-cal:hover { color: var(--teal-text); text-decoration: underline; }
.evt-cal .ic { stroke-width: 2.2; }
.evt-poll-t { font-size: 15px; font-weight: 800; margin-bottom: -6px; }
.evt-rsvp-btns { display: flex; gap: 8px; }
.evt-rsvp-btns button { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: var(--button-md-h); padding: 0;
  border: 1.5px solid var(--border-input); border-radius: var(--radius-button); background: var(--surface); cursor: pointer; }
.evt-rsvp-btns .ic { stroke-width: 2.4; }
.evt-rsvp-btns .yes { color: var(--teal); }
.evt-rsvp-btns .maybe { color: var(--ink); }
.evt-rsvp-btns .no { color: var(--danger); }
.evt-rsvp-btns .yes.on { background: var(--teal-tint); border-color: var(--teal); }
.evt-rsvp-btns .maybe.on { background: var(--chip); border-color: var(--ink); }
.evt-rsvp-btns .no.on { background: var(--danger-tint); border-color: var(--danger); }
.evt-rsvp-btns button:hover { background: var(--surface-muted); }
.evt-before-note { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-muted);
  font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.evt-before-note .ic { flex-shrink: 0; }

.event-page .evt-grid { gap: 2px; border-radius: 0; }
.event-page .evt-grid + .evt-grid { margin-top: -10px; }
.event-page .evt-tile .n { display: inline-flex; align-items: center; gap: 4px; height: 22px; min-width: 0; padding: 0 7px 0 6px; background: var(--overlay-dark); font-size: 11px; }
.event-page .evt-tile .by .avatar.xs { width: 22px; height: 22px; font-size: 10px; border-width: 1.5px; }
.event-page .evt-tile .c { gap: 3px; padding: 3px 7px; background: var(--overlay-dark); font-size: 11px; }
.event-page .evt-tile .c .ic { stroke-width: 2.4; }

.event-page .evt-comments { gap: 6px; padding-top: 18px; border-top: 1px solid var(--hairline); scroll-margin-top: 140px; }
.evt-comments-head { display: flex; align-items: center; gap: 8px; min-height: var(--tap-min); }
.evt-comments-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.evt-comments-head .n { flex: 1; font-size: 14px; color: var(--text-secondary); }
.evt-all { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap-min); padding: 0; border: 0; background: none; font: inherit;
  font-size: 13px; font-weight: 800; color: var(--teal-text); cursor: pointer; }
.evt-all .ic { stroke-width: 2.6; }
.event-page .evt-comments .comment-row { padding: 10px 0; }
.event-page .evt-comments .comment-row .avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.evt-write, .yw-capsule-field { display: flex; align-items: center; width: 100%; min-height: 46px; margin-top: 8px; padding: 0 14px; box-sizing: border-box;
  border: 1.5px solid var(--border-input); border-radius: var(--radius-pill); background: var(--surface); font: inherit; font-size: 14px;
  color: var(--text-secondary); text-align: left; cursor: pointer; }
.evt-write:hover, .yw-capsule-field:hover { border-color: var(--ink); }
.evt-closed { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 20px 8px; border-top: 1px solid var(--hairline); text-align: center; }
.evt-closed .t { font-size: 15px; font-weight: 800; }
.evt-closed .d { max-width: 420px; font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.evt-add-bar { position: sticky; bottom: 64px; z-index: 5; padding: 12px 0; background: var(--surface); border-top: 1px solid var(--hairline); box-sizing: border-box; }
.evt-add-bar .yir-btn .ic { stroke-width: 2.2; }

/* Le persone: foto 32, nome 14/700, la risposta a icona, il ruolo grigio a destra. */
.evt-people-of { margin: -6px 0 0; font-size: 13px; color: var(--text-secondary); }
.evt-people-list { padding: 0 14px; border-radius: 16px; }
.evt-person { display: flex; align-items: center; gap: 12px; min-height: var(--row-h); padding: 8px 0; color: var(--ink); text-decoration: none; }
.evt-person + .evt-person { border-top: 1px solid var(--hairline); }
.evt-person .evt-face { width: 32px; height: 32px; border: 0; }
.evt-person .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt-person .rsvp { display: inline-flex; }
.evt-person .rsvp .ic { stroke-width: 2.2; }
.evt-person .rsvp.yes { color: var(--teal); }
.evt-person .rsvp.maybe { color: var(--ink); }
.evt-person .rsvp.no { color: var(--danger); }
.evt-person .role { font-size: 12px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
@media (min-width: 1100px) {
  .home-wall.events-page > *, .events-page.home-wall .yw-topbar { max-width: 900px; }
}

/* Profilo (PersonProfileView): il «⋯» in alto a destra col menu; tasti a capsula alti 40 di larghezza uguale (Segui in
   inchiostro col «+», Segui già teal chiaro col filo e la spunta, la cerchia a contorno, Scrivi tondo); numeri in colonna
   18/800 sopra l'etichetta 13; griglia a filo con stacco 2 e angoli vivi. */
.pf-top { display: flex; justify-content: flex-end; margin: -24px 0 -24px; position: relative; z-index: 6; }
.pf-menu-more .mkt-menu-list { min-width: 260px; }
.pf-menu-more .mkt-menu-list form { margin: 0; }
.pf-menu-more .mkt-menu-list .js-share, .pf-menu-more .mkt-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.pf-menu-more .mkt-menu-list button:hover { background: var(--surface-muted); }
.pf-menu-more .mkt-menu-list button.danger { color: var(--danger); }
.pf-menu-more .hint { display: block; padding: 0 12px 8px 40px; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.pf-actions { gap: 8px; flex-wrap: nowrap; max-width: 520px; }
.pf-actions form.inline { flex: 1; min-width: 0; }
.pf-actions > .pf-btn:not(.round) { flex: 1; min-width: 0; }
.pf-btn { justify-content: center; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 13px; white-space: nowrap; }
.pf-actions form.inline .pf-btn { width: 100%; }
.pf-btn .ic { stroke-width: 2.4; flex-shrink: 0; }
.pf-btn.ink:hover { background: var(--ink); opacity: 0.9; color: #FFFFFF; }
.pf-btn.tint { border: 1px solid var(--teal-border); }
.pf-btn.outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-input); }
.pf-btn.quiet { background: var(--chip); color: var(--text-secondary); }
.pf-btn.round { width: 40px; flex: 0 0 40px; padding: 0; background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-input); }
.pf-stats { gap: 12px 36px; }
.pf-stats > * { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: 13px; line-height: 1.3; color: var(--text-secondary); }
.pf-stats strong { font-size: 18px; line-height: 1.25; }
.pf-contents .tiles { gap: 2px; }
.pf-contents .tile { border-radius: 0; }
@media (max-width: 720px) {
  .pf-top { margin: -8px 0 -16px; }
}

/* Pagina del contenuto (ItemDetailView): Condividi e «⋯» a destra dell'autore; un tasto col pollice (la barra delle sei
   passando sopra), le facce delle reazioni col numero, commenti e visualizzazioni con le icone; il codice nella capsula
   carta col timbro (CertificateChip); «Scrivi un commento…» come campo a capsula. */
.post-author-acts { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: -8px; }
.post-author-acts .mkt-menu-list { min-width: 220px; }
.post-author-acts .mkt-menu-list button, .wall-menu .mkt-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.post-author-acts .mkt-menu-list button:hover, .wall-menu .mkt-menu-list button:hover { background: var(--surface-muted); }
.post-actions .rx-bar { justify-content: space-between; flex-wrap: wrap; }
.post-rx { display: flex; align-items: center; gap: 8px; min-width: 0; }
.post-rx .wall-react { display: inline-flex; }
.post-rx-main { display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; }
.post-rx-main:hover { background: var(--chip); color: var(--ink); }
.post-rx-count { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); color: var(--ink); text-decoration: none; font-size: 14px; }
.post-rx-count strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.post-rx-stat { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; }
.post-rx-stat.muted { color: var(--text-secondary); }
.code-chip { height: 32px; padding: 0 12px 0 6px; gap: 6px; background: var(--paper); border-color: var(--paper-border); }
.code-chip strong { font-family: var(--font-sans); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.code-chip span span { font-size: 9px; }
.post-body .yw-capsule-field { margin-top: 12px; }

/* Il muro: il «⋯» nella testa, il pollice al posto del cuore. */
.wall-head .wall-menu { margin-left: auto; }
.wall-head .wall-menu summary { width: 40px; height: 40px; }
.wall-menu .mkt-menu-list { top: 42px; }
.wall-act .ic { stroke-width: 1.9; }

/* Pagine: le righe come le Impostazioni (immagine 40, nome 15/700, riga grigia, stato in capsula, freccia); la testa 64 col nome
   18/800; titoli delle sezioni e dei gruppi in maiuscolo grigio 12/800; card bianche raggio 14 coi divisori; «Aggiungi una
   persona» bianco col filo alto 48, «Lascia il ruolo di titolare» rosso 14/800 (PageManage, PageStaff). */
.pg-rows { padding: 0 14px; }
.pg-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.pg-row + .pg-row { border-top: 1px solid var(--hairline); }
a.pg-row:hover .t { color: var(--teal-text); }
.pg-row .avatar.sm { width: 40px; height: 40px; font-size: 16px; object-fit: cover; }
.pg-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pg-row .t { font-size: 15px; font-weight: 700; }
.pg-row .t svg { vertical-align: -2px; }
.pg-row .d { font-size: 13px; color: var(--text-secondary); }
.pg-row .chev { display: inline-flex; color: var(--text-secondary); }
.pg-state { display: inline-flex; margin-top: 4px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--chip); font-size: 11px; font-weight: 700; color: var(--text-body); }
.pg-note { margin: 0; padding: 0 4px; font-size: 13px; color: var(--text-secondary); }
.pg-head .pg-name { font-size: 18px; line-height: 1.3; font-weight: 800; }
.pg-head .txt { align-items: flex-start; }
.pg-section { margin: 8px 0 -4px; padding: 0 4px; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.pg-manage .shell-row .v { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-manage .shell-row.locked { color: var(--ticket-spent); cursor: default; }
.pg-manage .shell-row.locked:hover { color: var(--ticket-spent); }
.pg-group { margin-top: 4px; padding: 0 4px; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); }
.pg-staff { display: flex; flex-direction: column; padding: 0 14px; border-radius: var(--radius-button); background: var(--surface); border: 1px solid var(--hairline); }
.pg-person { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.pg-person + .pg-person { border-top: 1px solid var(--hairline); }
.pg-person .avatar.sm { width: 40px; height: 40px; font-size: 16px; object-fit: cover; }
.pg-person .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-person .t { font-size: 15px; line-height: 1.25; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-person .d { font-size: 14px; color: var(--text-secondary); }
.pg-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 8px; border: 1.5px solid var(--border-input);
  border-radius: var(--radius-button); background: var(--surface); font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; }
.pg-add:hover { border-color: var(--ink); }
.pg-leave { min-height: 48px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--danger); cursor: pointer; }
/* La pagina del contenuto è <section class="post">: la voce di testo .post del blocco 1 (Courier 16) non vale per il riquadro. */
section.post { font-family: var(--font-sans); font-size: inherit; line-height: inherit; font-weight: inherit; }
.pg-staff, .pg-add, .pg-leave { width: 100%; max-width: 640px; box-sizing: border-box; }
/* Chiusura (blocco 9): l'avviso scuro sopra la barra in basso; Termini e Privacy nella riga legale del guscio. */
body:has(.yw-bar) .yw-flash { bottom: 88px; }
.yw-legal-link { font-size: 12px; color: var(--text-secondary); }

/* Ingresso nuovo dal sito (ADR-0125; canvas ING2). R2: due caselle alla pari, la passkey col segno «Consigliata». */
.access-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.access-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px 16px;
  border-radius: var(--radius-card); background: var(--surface); border: 1.5px solid var(--hairline); text-decoration: none; color: var(--ink); }
.access-opt:hover { color: var(--ink); border-color: var(--border-input); }
.access-opt.rec { border-color: var(--teal-border); background: var(--teal-wash); }
.access-opt.rec .ic { color: var(--teal-text); }
.access-opt .t { font-size: 16px; font-weight: 800; }
.access-opt .d { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.access-badge { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--teal);
  color: var(--surface); font-size: 11px; font-weight: 800; }
@media (max-width: 420px) { .access-opts { grid-template-columns: 1fr; } }
/* R2 dal 3/12/2026: tre caselle una sotto l'altra, con le tacche di protezione e semplicità (3 teal, 2 teal o ambra, 1 rosso). */
.access-opts { grid-template-columns: 1fr; }
.access-levels { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.access-level { display: flex; align-items: center; gap: 4px; }
.access-level .k { width: 92px; font-size: 12px; color: var(--text-secondary); }
.access-level i { display: block; width: 22px; height: 6px; border-radius: var(--radius-pill); background: var(--border-input); }
.access-level.l3 i { background: var(--teal); }
.access-level.l2 i:nth-of-type(-n+2) { background: var(--teal); }
.access-level.ease.l2 i:nth-of-type(-n+2) { background: var(--warning); }
.access-level.l1 i:nth-of-type(1) { background: var(--danger); }
/* R4, S3, A2: la password con «Mostra». */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 92px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font: inherit;
  font-size: 13px; font-weight: 800; color: var(--teal-text); padding: 6px 10px; cursor: pointer; }
.field .ok { color: var(--teal-text); font-weight: 700; }
.notice.warn { background: var(--warning-tint); color: var(--warning-text); }
/* A1: il promemoria dell'ultimo modo e le righe degli altri modi. */
.signin-last { margin: 0; font-size: 14px; font-weight: 700; color: var(--teal-text); }
.signin-rows { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); }
.signin-rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 16px;
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink); }
.signin-rows a + a { border-top: 1px solid var(--hairline); }
.signin-rows a:hover { color: var(--teal-text); }
/* R5: i codici di recupero, in griglia. */
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 14px; border-radius: var(--radius-box);
  background: var(--surface-muted); font-family: var(--font-mono, monospace); font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.codes-tools { display: flex; gap: 8px; }
/* S1: le righe di Sicurezza, il segno «Consigliata» e il pallino finché l'account non è protetto. */
.shell-row .pill-rec { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--teal); color: var(--surface); font-size: 11px; font-weight: 800; }
.shell-row .sub { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.shell-row.static { cursor: default; }
.shell-row.static:hover { color: inherit; }
.shell-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.shell-note { max-width: 640px; margin: 10px 0 0; font-size: 12px; color: var(--text-secondary); }

/* Google e Apple (blocco 6, canvas ING2 A1, R1): due tasti chiari con il segno del fornitore, servito dal sito. */
.provider-buttons { display: flex; flex-direction: column; gap: 10px; }
.button.provider { display: flex; align-items: center; justify-content: center; gap: 10px; background: #ffffff; color: #1f1f1f;
  border: 1px solid #747775; border-radius: var(--radius-pill); }
.button.provider:hover { color: #1f1f1f; background: #f7f7f7; }
.button.provider img { width: 18px; height: 18px; flex: none; }
