/*
 * LUCIDA — presentazione principale.
 * Mobile first. Palette beauty luminosa, un solo carattere (Manrope),
 * testo da 18 px, pulsanti da almeno 44 px.
 */
:root {
  --white: #FFFDFB;
  --cream: #F8F2ED;
  --cipria: #F3E2E2;
  --nude: #EAD5CB;
  --salvia: #DDE8DF;
  --terra: #C98678;
  --sand: #F1E7DC;
  --text: #302B2B;
  --text-2: #574E4E;
  --text-3: #6B6161;
  --terra-ink: #9C5546;     /* terracotta per testi e link: contrasto 5,6:1 */
  --terra-btn: #A55C4E;     /* pulsante principale: bianco su questo 5,1:1 */
  --salvia-ink: #3D6A4C;
  --cipria-ink: #94505E;
  --nude-ink: #85583F;
  --line: rgba(48, 43, 43, .12);
  --line-2: rgba(48, 43, 43, .22);
  --shadow: 0 24px 50px -30px rgba(90, 55, 45, .35);
  /* nomi usati dai grafici di charts.js */
  --fg: #302B2B; --fg-2: #574E4E; --fg-3: #6B6161; --card: #FFFFFF; --sheet: #FFFFFF;
  --acc: #C98678; --acc-deep: #9C5546; --ink: #302B2B; --on-ink: #FFFDFB; --on-ink-2: #EDE3DE; --on-ink-3: #CFC3BD;
  --ok: #3D6A4C; --warn: #8E5B12; --risk: #9C5546; --idle: #6B6161; --new: #46608A;

  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1240px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.25, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 1024px) { body { font-size: 19px; } }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--terra-ink); }
:focus-visible { outline: 3px solid var(--terra-btn); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: -9999px; top: 16px; z-index: 100; background: var(--text); color: var(--white); padding: 12px 16px; border-radius: 10px; }
.skip:focus-visible { left: 16px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(36px, 4.6vw, 62px); }
h1 span { color: var(--terra-ink); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--terra-ink); letter-spacing: .01em; }
.lead { margin: 16px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 58ch; }
.price-from { margin: 18px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.price-from b { font-size: 1.5em; color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.num { font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 17px/1.1 var(--font); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s var(--ease); text-align: center; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terra-btn); color: #fff; }
.btn-primary:hover { background: #8f4e42; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15.5px; }
.chip-btn { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 700 15px/1 var(--font); color: var(--text-2); transition: background-color .2s, color .2s, border-color .2s; }
.chip-btn:hover { border-color: var(--text); color: var(--text); }
.chip-btn[aria-pressed="true"], .chip-btn[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- barra in alto ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 251, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font); letter-spacing: .14em; color: var(--text); text-decoration: none; }
.brand-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--cipria) 19% 45%, var(--terra) 46%); box-shadow: 0 0 0 3px var(--cipria); }
.top-nav { display: none; gap: 6px; margin-left: auto; }
.top-nav a { padding: 10px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 16px; }
.top-nav a:hover { color: var(--text); background: var(--cream); }
.top-cta { display: none; }
.menu-toggle { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 49; background: var(--white); padding: 18px var(--gutter) 40px; display: none; flex-direction: column; gap: 2px; overflow-y: auto; }
.menu-open .menu { display: flex; }
.menu a { padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 1024px) { .top-nav { display: flex; } .top-cta { display: inline-flex; } .menu-toggle { display: none; } }

/* ---------- 01 copertina ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); background: radial-gradient(70% 60% at 85% 20%, var(--cipria), transparent 70%), radial-gradient(60% 50% at 0% 100%, var(--salvia), transparent 70%), var(--white); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-sub { margin: 20px 0 0; font-size: clamp(18px, 1.7vw, 22px); color: var(--text-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero-visual { position: relative; padding: 10px 0 40px; }
.tablet { background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 40px 80px -40px rgba(120, 70, 55, .45), 0 0 0 10px #f6ece6; }
.tablet-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.tablet-bar b { font-size: 18px; }
.tablet-bar span { font-size: 14px; color: var(--text-2); font-weight: 600; }
.tablet-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; height: clamp(260px, 36vw, 380px); }
.tcol { position: relative; background: var(--cream); border-radius: 12px; }
.tcol small { position: absolute; top: 8px; left: 10px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ev { position: absolute; left: 6px; right: 6px; top: calc(28px + var(--t) * .86); height: calc(var(--h) * .86); border-radius: 9px; padding: 6px 8px; font: 700 12.5px/1.25 var(--font); font-style: normal; color: var(--text); overflow: hidden; border-left: 4px solid rgba(0, 0, 0, .12); }
.ev.nude { background: var(--nude); border-color: #c99f8b; }
.ev.cipria { background: var(--cipria); border-color: #d9a7ae; }
.ev.salvia { background: var(--salvia); border-color: #9cbca5; }
.ev.terra { background: #f0cfc6; border-color: var(--terra); }
.phone-card { position: absolute; right: -2%; bottom: 0; width: min(270px, 70%); background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phone-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; font-weight: 600; }
.pc-tag { font-size: 13px; font-weight: 800; color: var(--salvia-ink); }
.client-chip { position: absolute; left: -2%; top: 46%; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.client-chip b { display: block; font-size: 15px; }
.client-chip small { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
@media (max-width: 559px) { .client-chip { display: none; } .phone-card { right: 0; width: 82%; } }
.av { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--cipria); color: var(--cipria-ink); font: 800 14px/1 var(--font); }
.feature-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: clamp(28px, 4vw, 48px); padding: 6px 2px 10px; scrollbar-width: none; }
.feature-strip::-webkit-scrollbar { display: none; }
.feature-strip a { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: .02em; box-shadow: 0 10px 24px -20px rgba(90, 55, 45, .5); }
.feature-strip a:hover { border-color: var(--text); }
.fs-dot { width: 12px; height: 12px; border-radius: 50%; }
.fs-dot.agenda { background: #c99f8b; } .fs-dot.clienti { background: #d39aa4; } .fs-dot.tratt { background: var(--terra); }
.fs-dot.oper { background: #8fb39b; } .fs-dot.cabine { background: #c2ab8e; } .fs-dot.report { background: #7d8fa6; }
@media (min-width: 1024px) { .feature-strip { justify-content: space-between; overflow: visible; } .feature-strip a { flex: 1; justify-content: center; } }

/* ---------- sezioni ---------- */
.sec { padding: clamp(56px, 9vw, 112px) 0; }
.sec-cream { background: var(--cream); }
.sec-cipria { background: var(--cipria); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 820px; }

/* ---------- 02 centro 3D ---------- */
.c3d { display: grid; gap: 18px; }
@media (min-width: 1024px) { .c3d { grid-template-columns: minmax(0, 1.55fr) minmax(360px, .9fr); align-items: start; } }
.c3d-stage { position: relative; }
.c3d-canvas { position: relative; width: 100%; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #fbf3ee, #f3e6de); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .c3d-canvas { aspect-ratio: auto; height: min(70vh, 640px); } }
.c3d-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.c3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c3d.live .c3d-fallback { display: none; }
.c3d-loading { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 14px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .85); padding: 6px 10px; border-radius: 999px; }
.c3d.live .c3d-loading, .c3d.static .c3d-loading { display: none; }
.c3d-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); box-shadow: 0 12px 26px -16px rgba(60, 35, 30, .6); font: 800 15px/1 var(--font); color: var(--text); white-space: nowrap; transition: opacity .4s, background-color .25s, border-color .25s; }
.pin::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--zc); }
.pin:hover, .pin.on { border-color: var(--text); }
.c3d.focused .pin:not(.on) { opacity: 0; pointer-events: none; }
@media (max-width: 699px) { .c3d-pins { display: none; } }
.c3d-back { position: absolute; left: 14px; top: 14px; z-index: 3; }
.c3d-panel { background: #fff; border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 0; }
.c3d-intro p { margin: 6px 0 16px; color: var(--text-2); }
.c3d-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zone-btn { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; min-height: 60px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: 800 16px/1.2 var(--font); color: var(--text); transition: border-color .2s, background-color .2s; }
.zone-btn small { display: block; font-weight: 600; font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.zone-btn::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--zc); }
.zone-btn:hover { border-color: var(--text); }
.zone-btn[aria-pressed="true"] { background: var(--zc); border-color: var(--text); }
.c3d.focused .c3d-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.c3d.focused .zone-btn { min-height: 48px; padding: 8px 10px; font-size: 14px; grid-template-columns: 10px minmax(0, 1fr); }
.c3d.focused .zone-btn small { display: none; }
.c3d.focused .c3d-intro { display: none; }
.c3d-detail { animation: fadeUp .45s var(--ease) both; }
.c3d-detail .zd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.c3d-detail .zd-head i { width: 14px; height: 14px; border-radius: 50%; background: var(--zc); }
.c3d-detail .zd-head span { font-size: 14px; font-weight: 800; color: var(--text-2); }
.c3d-detail h3 { font-size: clamp(24px, 2.4vw, 30px); }
.c3d-detail > p { margin: 8px 0 16px; color: var(--text-2); font-size: 17px; }
.zd-app { border-radius: 18px; border: 1px solid var(--line); background: var(--white); padding: 12px; }
.zd-app .app-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.zd-app .app-title b { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.zd-more { margin-top: 14px; display: inline-flex; font-weight: 800; text-decoration: none; min-height: 44px; align-items: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 03 funzioni ---------- */
.status-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; color: var(--text-2); margin-bottom: 10px; }
.status-legend span { display: inline-flex; align-items: center; gap: 8px; }
.status-legend b { color: var(--text); }
.st { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.st-try { background: var(--salvia-ink); } .st-show { background: #c99f8b; } .st-plan { background: transparent; border: 2px dashed var(--text-3); }
.honest { margin: 0 0 26px; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: 16.5px; color: var(--text-2); border: 1px solid var(--line); }
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat { display: grid; gap: 12px; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feat-top h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.feat-top h3 i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--zc, var(--cream)); }
.feat-top h3 svg { width: 21px; height: 21px; stroke: var(--text); fill: none; stroke-width: 1.8; }
.badge-st { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 800 13px/1 var(--font); white-space: nowrap; }
.badge-st.try { background: var(--salvia); color: var(--salvia-ink); }
.badge-st.show { background: var(--nude); color: var(--nude-ink); }
.badge-st.plan { background: transparent; color: var(--text-2); border: 1.5px dashed var(--text-3); }
.feat dl { margin: 0; display: grid; gap: 8px; }
.feat dt { font-size: 14px; font-weight: 800; color: var(--text-2); }
.feat dd { margin: 0; font-size: 16.5px; line-height: 1.45; }
.feat-more { display: none; }
@media (max-width: 699px) {
  .feat { padding: 18px; gap: 10px; }
  .feat dl > div:not(:first-child) { display: none; }
  .feat.open dl > div { display: block; }
  .feat-more { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font: 700 16px/1.3 var(--font); color: var(--text-2); text-align: left; cursor: pointer; }
  .feat-more::after { content: '+'; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-size: 18px; flex: none; }
  .feat.open .feat-more::after { content: '−'; }
}
.feat .try-link { font-weight: 800; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- demo: contenitore comune ---------- */
.try-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 14px; scrollbar-width: none; }
.try-nav::-webkit-scrollbar { display: none; }
.try-nav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--text-2); font-weight: 800; font-size: 15px; text-decoration: none; }
.try-nav a.on { background: var(--text); color: #fff; border-color: var(--text); }
.demo { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; min-width: 0; container-type: inline-size; }
/* le viste si adattano allo spazio che hanno davvero: pagina intera o pannello accanto al centro 3D */
.zd-app { container-type: inline-size; min-width: 0; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.demo-bar .title { font-weight: 800; font-size: 17px; }
.demo-bar .sp { flex: 1; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--font); color: var(--text-2); padding: 7px 10px; border-radius: 999px; border: 1.5px dashed var(--line-2); white-space: nowrap; max-width: 100%; }
@media (max-width: 380px) { .demo-tag { white-space: normal; line-height: 1.25; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); gap: 2px; }
.seg button { min-height: 40px; border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 700 15px/1 var(--font); color: var(--text-2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seg-tabs button { min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 800 16px/1 var(--font); color: var(--text-2); }
.seg-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 800 13px/1 var(--font); white-space: nowrap; background: color-mix(in srgb, currentColor 12%, transparent); }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.risk { color: var(--risk); } .badge.idle { color: var(--idle); } .badge.new { color: var(--new); }
.badge.vip { color: #8a6326; } .badge.pack { color: var(--cipria-ink); }

/* ---------- agenda ---------- */
.ag-days { display: flex; align-items: center; gap: 6px; }
.ag-days button.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 20px; line-height: 1; }
.ag-days button.arrow:disabled { opacity: .35; cursor: default; }
.ag-days b { min-width: 130px; text-align: center; font-size: 17px; }
.ag-sum { padding: 10px 16px; font-size: 15.5px; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--white); }
.ag-sum b { color: var(--text); }
.ag-grid-wrap { overflow-x: auto; }
.ag-grid { position: relative; display: grid; min-width: 760px; }
.ag-h { position: sticky; top: 0; z-index: 2; background: #fff; padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15px; }
.ag-h small { display: block; font-weight: 600; font-size: 13px; color: var(--text-2); }
.ag-times { position: relative; }
.ag-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--text-2); }
.ag-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--hour); }
.ag-ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 6px 8px; overflow: hidden; text-align: left; font: 600 13.5px/1.25 var(--font); background: var(--cream); border: 1.5px solid transparent; border-left: 5px solid var(--ec); color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
.ag-ev:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .5); z-index: 3; }
.ag-ev b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev span { display: block; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev.s-completato { opacity: .62; }
.ag-ev.s-in-corso { background: var(--cipria); border-color: var(--terra); }
.ag-ev.s-da-confermare { border-style: dashed; border-color: var(--warn); border-left-style: solid; }
.ag-ev.sel { box-shadow: 0 0 0 3px var(--text); z-index: 4; }
.ag-ev.short span { display: none; }
.ag-now { position: absolute; left: 56px; right: 0; border-top: 2px solid var(--terra-btn); z-index: 3; pointer-events: none; }
.ag-list { display: grid; }
.ag-more { width: 100%; min-height: 48px; border: 0; border-top: 1px solid var(--line); background: var(--paper-2, #F8F2ED); font: 800 16px/1.2 var(--font); color: var(--terra-ink); cursor: pointer; }
.ag-more:hover { background: #F3E2E2; }
.ag-li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; border-left: 5px solid var(--ec); }
.ag-li .tm { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.ag-li b { display: block; font-size: 17px; }
.ag-li small { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.ag-li.s-completato { opacity: .6; }
.ag-li.sel { background: var(--cream); }
.ag-filter { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ag-filter::-webkit-scrollbar { display: none; }
.ag-filter .chip-btn { flex: none; }
.ag-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 16px; }
.wk { text-align: left; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; min-height: 44px; }
.wk.today { border-color: var(--terra-btn); }
.wk b { display: block; font-size: 17px; }
.wk .num { display: block; font-size: 34px; margin: 10px 0 4px; }
.wk small { font-size: 14.5px; color: var(--text-2); font-weight: 600; }
.wk .bar { display: block; height: 8px; border-radius: 4px; background: var(--cream); margin-top: 10px; overflow: hidden; }
.wk .bar i { display: block; height: 100%; width: var(--w); background: var(--terra); }
.wk.closed { background: var(--white); border-style: dashed; color: var(--text-2); }
.ag-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; font-size: 14.5px; color: var(--text-2); border-top: 1px solid var(--line); }
.ag-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ag-legend i { width: 18px; height: 12px; border-radius: 4px; background: var(--cream); border-left: 4px solid var(--terra); }
.ag-legend i.done { opacity: .55; } .ag-legend i.now { background: var(--cipria); }
.ag-legend i.wait { border: 1.5px dashed var(--warn); border-left: 4px solid var(--terra); }

/* dettaglio (pannello laterale / cassetto) */
.detail { display: grid; gap: 12px; }
.detail h4 { font-size: 24px; }
.detail .rows { display: grid; gap: 0; }
.detail .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.detail .row span { color: var(--text-2); }
.detail .row b { text-align: right; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.detail .note { font-size: 15px; color: var(--text-2); background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.ag-body { display: grid; }
@media (min-width: 1024px) { .ag-body.has-side { grid-template-columns: minmax(0, 1fr) 340px; } .ag-side { border-left: 1px solid var(--line); padding: 18px; } }
.ag-side { padding: 16px; }
.ag-side .empty { color: var(--text-2); font-size: 16px; }

/* ---------- clienti ---------- */
.cl { display: grid; }
@media (min-width: 960px) { .cl { grid-template-columns: 360px minmax(0, 1fr); } .cl-list { border-right: 1px solid var(--line); } }
.cl-tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search input { width: 100%; min-height: 50px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 12px 16px 12px 44px; font-size: 17px; background: #fff; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--text-2); fill: none; stroke-width: 2; }
.cl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cl-chips::-webkit-scrollbar { display: none; }
.cl-chips .chip-btn { flex: none; }
.cl-items { max-height: 560px; overflow-y: auto; }
@media (max-width: 959px) { .cl-items { max-height: 360px; } }
.cl-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; min-height: 64px; }
.cl-item:hover { background: var(--white); }
.cl-item[aria-selected="true"] { background: var(--cipria); }
.cl-item b { display: block; font-size: 17px; }
.cl-item small { display: block; font-size: 14.5px; color: var(--text-2); }
.cl-item .val { font-weight: 800; font-size: 16px; }
.cl-card { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 16px; align-content: start; animation: fadeUp .4s var(--ease) both; }
.cc-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cc-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--cipria), var(--nude)); font: 800 24px/1 var(--font); color: var(--cipria-ink); }
.cc-head h4 { font-size: clamp(26px, 2.6vw, 34px); }
.cc-head p { margin: 4px 0 0; color: var(--text-2); font-size: 16px; }
.cc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc-f { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.cc-f small { display: block; font-size: 14px; font-weight: 800; color: var(--text-2); }
.cc-f b { display: block; margin-top: 6px; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.cc-f span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--text-2); }
.cc-f.next { background: var(--salvia); border-color: transparent; }
.cc-f.pack { background: var(--cipria); border-color: transparent; }
.cc-action { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px; border-radius: 16px; background: var(--cream); }
.cc-action small { display: block; font-size: 14px; font-weight: 800; color: var(--terra-ink); }
.cc-action b { display: block; font-size: 19px; margin-top: 4px; }
.cc-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.cc-tl li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cc-tl time { font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .cc-tl li { grid-template-columns: 1fr; gap: 2px; } }

/* problema → dato → decisione */
.insight-card { display: grid; gap: 10px; align-items: center; margin-bottom: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--cipria); }
@media (min-width: 800px) { .insight-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; } }
.insight-card .num { font-size: clamp(54px, 7vw, 84px); color: var(--terra-ink); }
.insight-card h3 { font-size: clamp(21px, 2.2vw, 28px); }
.insight-card p { margin: 6px 0 0; color: var(--text-2); font-size: 17px; }
.sec-cream .insight-card, .sec .insight-card.salvia { background: var(--salvia); }
.sec-cream .insight-card .num, .insight-card.salvia .num { color: var(--salvia-ink); }

/* ---------- trattamenti ---------- */
.tr { display: grid; }
@container (min-width: 840px) { .tr { grid-template-columns: 340px minmax(0, 1fr); } .tr-list { border-right: 1px solid var(--line); } }
.tr-list { display: grid; align-content: start; }
.tr-item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 64px; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 17px; }
.tr-item::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--terra); }
.tr-item small { font-weight: 700; color: var(--text-2); font-size: 15px; }
.tr-item[aria-selected="true"] { background: #f6e3dc; }
.tr-card { padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 16px; align-content: start; animation: fadeUp .4s var(--ease) both; }
.tr-card h4 { font-size: clamp(26px, 2.6vw, 34px); }
.tr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 640px) { .tr-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tr-facts div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tr-facts small { display: block; font-size: 14px; font-weight: 800; color: var(--text-2); }
.tr-facts b { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.02em; }
.tr-who { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-who span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--salvia); font-weight: 700; font-size: 15px; }
.tr-month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-month div { background: var(--cream); border-radius: 14px; padding: 14px; }
.tr-month small { display: block; font-size: 14px; font-weight: 800; color: var(--text-2); }
.tr-month b { display: block; margin-top: 6px; font-size: 22px; }
.tr-month .up { color: var(--ok); } .tr-month .down { color: var(--risk); }
@container (max-width: 480px) { .tr-month { grid-template-columns: minmax(0, 1fr); } }
.pk { display: grid; gap: 8px; }
.pk h5 { margin: 0; font-size: 16px; font-weight: 800; }
.pk-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 16px; }

/* ---------- operatrici e cabine ---------- */
.tm-grid { display: grid; gap: 12px; padding: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); } /* colonne secondo lo spazio vero, anche nel pannello accanto al 3D */
.tm { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; background: #fff; }
.tm-top { display: flex; align-items: center; gap: 12px; }
.tm-top .av { width: 48px; height: 48px; font-size: 16px; background: var(--salvia); color: var(--salvia-ink); }
.tm-top b { display: block; font-size: 19px; }
.tm-top small { display: block; font-size: 14.5px; color: var(--text-2); }
.tm-state { margin-left: auto; }
.tm-bar { position: relative; height: 30px; border-radius: 8px; background: var(--salvia); overflow: hidden; }
.tm-bar i { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: #8a6b5c; }
.tm-bar i.done { background: #c9b4a8; }
.tm-bar .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--terra-btn); }
.tm-axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); font-weight: 700; }
.tm-free { font-size: 16px; }
.tm-free b { color: var(--salvia-ink); }
.tm-load { display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.tm-load .track { height: 10px; border-radius: 5px; background: var(--cream); overflow: hidden; }
.tm-load .track i { display: block; height: 100%; width: var(--w); background: var(--terra); }
.cab { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; background: #fff; position: relative; overflow: hidden; }
.cab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 6px; width: var(--w); background: var(--terra); }
.cab-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cab-top b { font-size: 20px; }
.cab-top .num { font-size: 32px; }
.cab p { margin: 0; font-size: 16px; color: var(--text-2); }
.cab p b { color: var(--text); }

.au { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.au { display: grid; gap: 0; }
@media (min-width: 1000px) { .au { grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); } }
.au-steps { padding: 16px; display: grid; gap: 6px; align-content: start; }
.au-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 60px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 16.5px; }
.au-step span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); }
.au-step small { display: block; font-weight: 600; font-size: 14px; color: var(--text-2); }
.au-step.auto span { background: var(--salvia); color: var(--salvia-ink); }
.au-step[aria-current="step"] { background: var(--cipria); border-color: var(--terra); }
.au-phone { justify-self: center; width: calc(100% - 32px); max-width: 300px; margin: 16px auto; aspect-ratio: 9 / 17; border-radius: 40px; padding: 10px; background: #3b3434; box-shadow: var(--shadow); }
.au-phone-in { height: 100%; border-radius: 31px; background: #f4ece6; display: flex; flex-direction: column; overflow: hidden; }
.au-phone-hd { padding: 26px 14px 10px; background: #fff; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.au-phone-hd b { display: block; font-size: 15px; }
.au-msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; background: #fff; animation: fadeUp .35s var(--ease) both; }
.msg.out { align-self: flex-end; background: #dcefd6; border-bottom-right-radius: 4px; }
.msg.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 700; color: var(--text-2); text-align: center; }
.au-side { padding: 16px; display: grid; gap: 12px; align-content: start; }
.au-now { padding: 16px; border-radius: 16px; background: var(--cream); }
.au-now .tag { display: inline-flex; font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--salvia); color: var(--salvia-ink); }
.au-now .tag.you { background: var(--nude); color: var(--nude-ink); }
.au-now h4 { margin-top: 10px; font-size: 24px; }
.au-now p { margin: 6px 0 0; color: var(--text-2); font-size: 16.5px; }
.au-list h5 { margin: 6px 0 8px; font-size: 17px; font-weight: 800; }
.au-li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.au-li b { display: block; font-size: 16px; }
.au-li small { display: block; font-size: 14px; color: var(--text-2); }
.au-li .chip-btn { min-height: 44px; font-size: 14px; padding: 8px 12px; }
.au-li .done { font-size: 13.5px; font-weight: 800; color: var(--salvia-ink); }

/* ---------- dashboard ---------- */
.db { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; }
.db-hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.db-hello h4 { font-size: clamp(26px, 2.8vw, 36px); }
.db-hello p { margin: 4px 0 0; color: var(--text-2); font-weight: 600; }
.db-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 720px) { .db-kpis { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.db-kpi { border-radius: 18px; padding: 16px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 4px; }
.db-kpi .num { font-size: clamp(32px, 3.2vw, 46px); }
.db-kpi span { font-size: 15.5px; font-weight: 700; color: var(--text-2); }
.db-kpi.main { background: var(--cipria); border-color: transparent; grid-column: 1 / -1; }
@container (min-width: 720px) { .db-kpi.main { grid-column: auto; } }
.db-kpi.main .num { color: var(--terra-ink); }
.db-two { display: grid; gap: 14px; }
@container (min-width: 820px) { .db-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.db-block { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.db-block h5 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.db-alert { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.db-alert:last-child { border-bottom: 0; }
.db-alert .num { font-size: 34px; text-align: center; color: var(--terra-ink); grid-row: span 2; }
.db-alert p { margin: 0; font-size: 16.5px; line-height: 1.35; }
.db-alert a { font-weight: 800; font-size: 15px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.db-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.db-chart-head .big { font-size: 15.5px; color: var(--text-2); font-weight: 700; }
.db-chart-head .big .num { display: block; font-size: 32px; color: var(--text); margin-bottom: 4px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font: 700 13px var(--font); fill: var(--text-2); }

/* ---------- report e contatto ---------- */
.report-teaser { margin-top: 18px; display: grid; gap: 14px; align-items: center; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
@media (min-width: 800px) { .report-teaser { grid-template-columns: minmax(0, 1fr) auto; } }
.report-teaser p { margin: 6px 0 0; color: var(--text-2); }
.contact { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 18px; font-weight: 600; }
.contact-points li { display: flex; gap: 10px; align-items: center; }
.contact-points li::before { content: '✓'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--salvia-ink); font-weight: 800; flex: none; }
.form { display: grid; gap: 14px; background: #fff; padding: clamp(18px, 3vw, 32px); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.f-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-size: 16px; font-weight: 800; }
.form .opt { font-weight: 600; color: var(--text-2); }
.form input:not([type="checkbox"]), .form textarea { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--white); padding: 12px 14px; font-size: 17px; font-weight: 500; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--terra); outline-offset: 0; border-color: transparent; }
.form [aria-invalid="true"] { border-color: var(--risk); }
.f-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; font-weight: 600 !important; font-size: 15.5px !important; color: var(--text-2); }
.f-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--terra-btn); flex: none; }
.form-msg { padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: 16px; }
.form-msg b { display: block; font-size: 18px; margin-bottom: 4px; }
.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot a { font-weight: 800; text-decoration: none; }
@media (max-width: 1023px) { .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }
.sticky-cta { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--terra-btn); color: #fff; font: 800 17px/1 var(--font); text-decoration: none; box-shadow: 0 16px 34px -14px rgba(120, 60, 50, .55); transform: translateY(160%); transition: transform .45s var(--ease); }
.sticky-cta.show { transform: none; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* cassetto per i dettagli su telefono */
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(48, 43, 43, .4); display: flex; align-items: flex-end; }
.drawer-in { position: relative; width: 100%; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px)); animation: drawerUp .35s var(--ease) both; }
@keyframes drawerUp { from { transform: translateY(40px); opacity: 0; } }
.drawer-x { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream); font-size: 26px; line-height: 1; }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--text); color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; white-space: nowrap; }
.tip.on { opacity: 1; }
.tip small { display: block; font-size: 12.5px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
.cc-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--cream); font-size: 16px; color: var(--text-2); } .cc-note b { color: var(--text); }

/* ======================================================================
   COMPLETO O SU MISURA · CONFIGURATORE
   ====================================================================== */
.ways { display: grid; gap: 18px; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.way-visual { background: linear-gradient(180deg, #fbf3ee, #f3e6de); aspect-ratio: 4 / 3; }
.way-visual img { width: 100%; height: 100%; object-fit: cover; }
.way-body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 3vw, 32px); }
.way-tag { justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--cipria); color: var(--cipria-ink); font-size: 14.5px; font-weight: 800; }
.way:nth-child(2) .way-tag { background: #F1E7DC; color: var(--nude-ink); }
.way:nth-child(3) .way-tag { background: var(--salvia); color: var(--salvia-ink); }
.way h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; }
.way p { margin: 0; color: var(--text-2); font-size: 18px; }
.way .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 559px) { .way .btn { justify-self: stretch; } }

/* modalità */
.cfg-mode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; max-width: 900px; }
@media (min-width: 640px) { .cfg-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cfg-mode button { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 14px 16px; text-align: left; border-radius: 20px; border: 2px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .25s, background-color .2s; }
.cfg-mode button b { display: block; font-size: 17px; line-height: 1.2; }
.cfg-mode button small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--text-2); }
.cm-dot { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; }
.cfg-mode button[aria-checked="true"] { border-color: var(--terra-btn); box-shadow: 0 0 0 4px rgba(201, 134, 120, .2); }
.cfg-mode button[aria-checked="true"] .cm-dot { border-color: var(--terra-btn); box-shadow: inset 0 0 0 4px #fff; background: var(--terra-btn); }
@media (max-width: 380px) { .cfg-mode button { padding: 12px; gap: 8px; } .cfg-mode button b { font-size: 16px; } }

.cfg { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1024px) { .cfg { grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 28px; } .cfg-side { position: sticky; top: 84px; } }

.cfg-full-note { margin-bottom: 16px; padding: 18px 20px; border-radius: 20px; background: var(--salvia); display: grid; gap: 8px; animation: fadeUp .4s var(--ease) both; }
.cfg-full-note b { font-size: 19px; }
.cfg-full-note p { margin: 0; font-size: 17px; color: var(--text); }
.cfg-full-note .btn { justify-self: start; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* card dei moduli */
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mod { position: relative; display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 22px; background: #fff; border: 2px solid var(--line); cursor: pointer; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease), background-color .3s; }
.mod:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mod.on { border-color: var(--terra-btn); background: #fffaf8; box-shadow: 0 0 0 4px rgba(201, 134, 120, .16), 0 18px 34px -26px rgba(120, 60, 50, .55); }
.is-full .mod.on { border-color: #9cbca5; background: #fbfdfb; box-shadow: 0 0 0 4px rgba(143, 179, 155, .2); cursor: default; }
.is-full .mod:hover { transform: none; }
.mod-top { display: flex; align-items: center; gap: 12px; }
.mod-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mc); transition: transform .3s var(--ease); }
.mod.on .mod-ic { transform: scale(1.06); }
.mod-ic svg { width: 24px; height: 24px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.mod-what { margin: 0; font-size: 17px; line-height: 1.5; }
.mod-ex { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 16px; line-height: 1.45; color: var(--text-2); }
.mod-ex b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--terra-ink); }
.mod-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 2px; }
.mod-pick { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px 10px 14px; border-radius: 999px; border: 2px solid var(--text); background: #fff; font: 800 16px/1 var(--font); color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.mod-box { position: relative; width: 22px; height: 22px; border-radius: 7px; border: 2px solid currentColor; transition: background-color .2s; }
.mod-pick[aria-pressed="true"] { background: var(--text); color: #fff; }
.mod-pick[aria-pressed="true"] .mod-box { background: #fff; border-color: #fff; }
.mod-pick[aria-pressed="true"] .mod-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mod-pick[aria-disabled="true"] { background: var(--salvia); border-color: transparent; color: var(--salvia-ink); cursor: default; }
.mod-pick[aria-disabled="true"] .mod-box { background: var(--salvia-ink); border-color: var(--salvia-ink); }
.mod-pick[aria-disabled="true"] .mod-box::after { border-color: #fff; }
.mod-demo { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15.5px; text-decoration: none; }
.mod-demo.none { color: var(--text-3); font-weight: 700; }

/* centro che si accende */
.cfg-stage { margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.cfg-canvas { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #fbf3ee, #f3e6de); }
.cfg-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.cfg-plan { display: none; width: 100%; height: auto; border-radius: 14px; background: #f6eee8; }
.cfg-stage.static .cfg-canvas { display: none; }
.cfg-stage.static .cfg-plan { display: block; }
.cfg-stage figcaption { padding: 10px 6px 2px; font-size: 15.5px; font-weight: 600; color: var(--text-2); }
.cfg-pins .pin { pointer-events: none; min-height: 0; gap: 6px; padding: 5px 10px 5px 7px; font-size: 13px; border-width: 1.5px; opacity: 0; transform: translate(-50%, -100%) scale(.9); transition: opacity .35s, transform .35s var(--ease); }
.cfg-pins .pin::before { width: 10px; height: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--zc); }
.cfg-pins .pin.on { opacity: 1; transform: translate(-50%, -100%); border-color: var(--terra-btn); }
.cap-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.cap-list li { display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.cap-list i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 2px var(--terra-btn); transform: translateY(1px); }
.cap-list b { font-weight: 800; }
.cap-list b::after { content: ':'; }
.pl-floor { fill: #efe4d8; }
.pl-zone rect { fill: var(--zc); stroke: rgba(48, 43, 43, .16); stroke-width: .05; transition: fill .35s, stroke .35s, stroke-width .35s; }
.pl-zone text { text-anchor: middle; font-family: var(--font); transition: fill .35s; }
.pl-name { font-size: .78px; font-weight: 800; fill: var(--text); }
.pl-mods { font-size: .56px; font-weight: 800; fill: var(--terra-ink); }
.pl-check { opacity: 0; transition: opacity .3s; }
.pl-check circle { fill: var(--terra-btn); }
.pl-check path { fill: none; stroke: #fff; stroke-width: .08; stroke-linecap: round; stroke-linejoin: round; }
.cfg-plan.any .pl-zone:not(.on) rect { fill: #e7e0da; }
.cfg-plan.any .pl-zone:not(.on) .pl-name { fill: var(--text-3); }
.pl-zone.on rect { stroke: var(--terra-btn); stroke-width: .16; }
.pl-zone.on .pl-check { opacity: 1; }

/* riepilogo */
.cfg-summary { margin-top: 14px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sum-kicker { margin: 0; font-size: 15px; font-weight: 800; color: var(--terra-ink); }
.cfg-summary h3 { margin: 4px 0 10px; font-size: 26px; letter-spacing: -.02em; }
.sum-list { list-style: none; margin: 0; padding: 0; }
.sum-list li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; animation: fadeUp .3s var(--ease) both; }
.sum-list .ok { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--salvia); color: var(--salvia-ink); font-weight: 800; font-size: 15px; }
.sum-list .rm { margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 22px; line-height: 1; color: var(--text-2); }
.sum-list .rm:hover { border-color: var(--text); color: var(--text); }
.sum-empty { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: 16.5px; color: var(--text-2); }
.sum-count { margin: 14px 0 0; font-size: 17px; color: var(--text-2); font-weight: 600; }
.sum-count b { font-size: 30px; color: var(--text); margin-right: 4px; }
.sum-text { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.sum-all { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--salvia); display: grid; gap: 10px; }
.sum-all p { margin: 0; font-weight: 700; }
.sum-all .btn { justify-self: start; }
.sum-cta { width: 100%; margin-top: 16px; }
.sum-cta.is-off { opacity: .5; }
.sum-note { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }

/* hai già un gestionale */
.cfg-existing { margin-top: 26px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ce-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--salvia); color: var(--salvia-ink); font-size: 24px; font-weight: 800; }
.cfg-existing h3 { margin: 4px 0 6px; font-size: 24px; }
.cfg-existing p { margin: 0; font-size: 18px; }
.cfg-existing ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 16.5px; }
@media (max-width: 480px) { .cfg-existing { grid-template-columns: minmax(0, 1fr); } }

/* barra del riepilogo su telefono */
.cfg-bar { position: fixed; z-index: 46; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); box-shadow: 0 16px 34px -14px rgba(90, 55, 45, .45); transform: translateY(170%); transition: transform .4s var(--ease); }
.cfg-bar.show { transform: none; }
.cb-txt { flex: 1; min-width: 0; display: grid; }
.cb-txt b { font-size: 16.5px; }
.cb-txt span { font-size: 14.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-bar-on .sticky-cta { transform: translateY(170%); }
@media (min-width: 1024px) { .cfg-bar { display: none; } }

/* modulo di richiesta */
.f-mode { margin: 0; padding: 0; border: 0; min-width: 0; }
.f-mode legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.f-mode-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form .f-radio { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; font-weight: 600; transition: border-color .2s, background-color .2s; }
.f-radio input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--terra-btn); flex: none; }
.f-radio b { display: block; font-size: 16px; line-height: 1.2; }
.f-radio small { display: block; font-size: 14.5px; color: var(--text-2); }
.f-radio:has(input:checked) { border-color: var(--terra-btn); background: #fffaf8; }
.f-mods { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 16px; }
.f-mods p { margin: 0; }
.f-mods-h { font-weight: 800; }
.f-mods ul { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; }
.f-mods a { font-weight: 800; }
.req-sum { padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); }
.rs-h { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.req-sum dl { margin: 0; display: grid; gap: 6px; }
.req-sum dl div { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
.req-sum dt { color: var(--text-2); font-weight: 600; }
.req-sum dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.rs-empty { color: var(--text-3); font-weight: 600; }
.privacy { border-radius: 14px; background: var(--cream); padding: 0 16px; }
.privacy summary { min-height: 48px; display: flex; align-items: center; font-size: 16px; font-weight: 800; cursor: pointer; }
.privacy p { margin: 0 0 12px; font-size: 15.5px; color: var(--text-2); }
.privacy .ph { padding: 1px 6px; border-radius: 6px; background: var(--cipria); color: var(--cipria-ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mod, .cfg-bar, .cfg-pins .pin, .sum-list li, .cfg-full-note { transition: none; animation: none; } }
.pl-zone.small .pl-mods { display: none; }

/* tre modalità: dipendenze, esempi a richiesta su telefono, riepilogo */
.mod-needs { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.mod-why { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--salvia); color: var(--salvia-ink); font-size: 15px; font-weight: 700; }
.mod.locked .mod-pick { background: var(--salvia); border-color: transparent; color: var(--salvia-ink); cursor: default; }
.mod.locked .mod-pick .mod-box { background: var(--salvia-ink); border-color: var(--salvia-ink); }
.mod.locked .mod-pick .mod-box::after { border-color: #fff; }
.mod-exbtn { display: none; }
@media (max-width: 699px) {
  .mod { padding: 18px; gap: 10px; }
  .mod-ex { display: none; }
  .mod.ex-open .mod-ex { display: block; }
  .mod-exbtn { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: 800 15.5px/1 var(--font); color: var(--terra-ink); }
}
.sl-name { display: grid; }
.sl-name small { font-size: 14px; font-weight: 600; color: var(--salvia-ink); }
.sum-pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sum-pills li { padding: 6px 10px; border-radius: 999px; background: var(--cream); font-size: 14.5px; font-weight: 700; }
.sum-removed { margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; background: var(--cipria); }
.sum-removed b { display: block; margin-bottom: 4px; font-size: 15px; }
.sum-removed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sum-removed li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.sum-removed .rm { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 18px; }
.sum-auto { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--salvia); font-size: 15px; color: var(--salvia-ink); }
.f-mode-opts { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 560px) { .f-mode-opts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.is-full .mod.on { border-color: #9cbca5; background: #fbfdfb; box-shadow: 0 0 0 4px rgba(143, 179, 155, .2); cursor: default; }
.is-full .mod:hover { transform: none; }

/* nota della modalità scelta */
.cfg-mode-note { margin-bottom: 16px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; }
.cfg-mode-note.full { background: var(--salvia); border-color: transparent; }
.cfg-mode-note b { font-size: 18px; }
.cfg-mode-note p { margin: 0; font-size: 16.5px; color: var(--text); }
.cfg-mode-note .btn { justify-self: start; margin-top: 4px; }
/* configuratore: messaggio «hai tolto anche…» con Annulla */
.cfg-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--cream, #f6efe9); border: 1px solid var(--line); font-size: 16px; }
.cfg-flash[hidden] { display: none; }
.cfg-flash span { flex: 1 1 260px; }

/* ---------- Autopilot: una giornata del centro ---------- */
.apl-play { justify-self: start; margin-bottom: 6px; }
.apl-day { display: grid; gap: 6px; }
.apl-step { grid-template-columns: 64px minmax(0, 1fr); }
.apl-step span { width: 64px; height: 36px; border-radius: 999px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.apl-step.msgk span { background: var(--cipria); color: var(--cipria-ink); }
.apl-step.off { opacity: .45; }
.apl-step.off small::after { content: ' · spenta'; }
.apl-logo { background: var(--text) !important; color: #fff !important; font-weight: 800; }
.apl-n { background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 18px -14px rgba(60, 40, 30, .5); animation: fadeUp .35s var(--ease) both; }
.apl-n b { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .04em; margin-bottom: 3px; }
.apl-n b small { font-weight: 700; color: var(--text-3); letter-spacing: 0; }
.apl-send { align-self: flex-end; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0; background: #2f8f57; color: #fff; font: 800 14px var(--font); }
.au-now .tag.msg { background: var(--cipria); color: var(--cipria-ink); }
.apl-ok { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--salvia); color: var(--salvia-ink); font-weight: 700; font-size: 16px; }
.apl-sw { border-top: 1px solid var(--line); padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 16px; }
.apl-sw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.apl-sw-head h4 { font-size: 22px; }
.apl-count { margin: 0; color: var(--text-2); font-size: 16px; }
.apl-sw-cols { display: grid; gap: 18px; }
@media (min-width: 820px) { .apl-sw-cols { grid-template-columns: 1fr 1fr; } }
.apl-sw-cols h5 { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.apl-toggle { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.apl-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apl-tr { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #d9d0cb; transition: background .2s; }
.apl-tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.apl-toggle input:checked + .apl-tr { background: var(--salvia-ink); }
.apl-toggle input:checked + .apl-tr::after { transform: translateX(20px); }
.apl-toggle input:focus-visible + .apl-tr { outline: 3px solid var(--terra-ink); outline-offset: 2px; }
.apl-toggle b { display: block; font-size: 16px; }
.apl-toggle small { display: block; font-size: 14px; color: var(--text-2); }
.apl-honest { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: 15.5px; color: var(--text-2); }
.apl-honest b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .apl-tr, .apl-tr::after { transition: none; } }
