@font-face {
  font-family: "Oswald";
  src: url("/demo/fonts/oswald-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
:root {
  --bg: #0c0d0f;
  --surface: #15171b;
  --surface-2: #1d2026;
  --ink: #f4f5f6;
  --muted: #a3a8b2;
  --line: rgba(255, 255, 255, .1);
  --accent: #c6f432;
  --accent-ink: #0c0d0f;
  --danger: #ff6b5e;
  --warn: #ffc24a;
  --radius: 18px;
  --head: "Oswald", Impact, sans-serif;
  --safe-b: env(safe-area-inset-bottom);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Striscia demo */
.demo-strip {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px calc(7px);
  background: var(--accent); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 700;
}
.demo-strip a { color: inherit; }
.demo-strip button { border: 0; background: rgba(0,0,0,.12); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: inherit; }

/* ================= APP ISCRITTO ================= */
.app { max-width: 480px; margin: 0 auto; min-height: 100svh; padding-bottom: calc(92px + var(--safe-b)); }
.app-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(12, 13, 15, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.app-top.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.brand i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 20px; }
.round-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.dot { position: absolute; top: 6px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

.view { padding: 8px 20px 0; animation: viewIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.hello { margin: 10px 0 18px; }
.hello p { color: var(--muted); }
.hello h1 { font-size: 34px; margin-top: 2px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 18px; }
.section-title button { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; padding: 0; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.pass-card {
  position: relative; overflow: hidden;
  border: 0; background: linear-gradient(135deg, #20232a 0%, #121418 100%);
}
.pass-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(198,244,50,.35), transparent 70%); }
.pass-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--head); font-size: 26px; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(198,244,50,.14); color: var(--accent); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.warn { background: rgba(255,194,74,.14); color: var(--warn); }
.bar { height: 6px; margin: 16px 0 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pass-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.next {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
}
.next .when { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--accent-ink); color: var(--accent); text-align: center; }
.next .when b { font-family: var(--head); font-size: 22px; line-height: 1; }
.next .when small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.next h3 { font-size: 20px; }
.next p { font-size: 13.5px; font-weight: 600; opacity: .75; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty button { margin-top: 10px; }

.mini-stamps { display: flex; align-items: center; gap: 14px; }
.ring { --p: 70; position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ring::after { content: attr(data-v); position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-family: var(--head); font-size: 17px; }
.mini-stamps p { font-size: 14px; }
.mini-stamps b { color: var(--accent); }

.promo { position: relative; overflow: hidden; height: 168px; border-radius: var(--radius); }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(180deg, transparent 20%, rgba(12,13,15,.92)); }
.promo h3 { font-size: 22px; }
.promo p { font-size: 13.5px; color: #d6d9de; }

.note { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note .ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.note.unread .ic { background: var(--accent); color: var(--accent-ink); }
.note h3 { font-family: inherit; text-transform: none; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.note p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.note time { display: block; margin-top: 4px; font-size: 12px; color: #6f7480; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14.5px; text-decoration: none; transition: transform .15s; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .45; }

/* Corsi */
.days { display: flex; gap: 8px; margin: 6px -20px 16px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; display: grid; justify-items: center; gap: 2px; width: 56px; padding: 10px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); }
.days button b { font-family: var(--head); font-size: 20px; color: var(--ink); }
.days button small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.days button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.days button[aria-pressed="true"] b { color: var(--accent-ink); }
.days button.has::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.days button[aria-pressed="true"].has::after { background: var(--accent-ink); }
.class { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s, background .25s; }
.class.mine { border-color: rgba(198,244,50,.5); background: linear-gradient(90deg, rgba(198,244,50,.08), var(--surface)); }
.class.past { opacity: .45; }
.class .t { font-family: var(--head); font-size: 20px; }
.class .t small { display: block; font-family: system-ui, sans-serif; font-size: 11.5px; color: var(--muted); }
.class h3 { font-size: 18px; }
.class p { font-size: 13px; color: var(--muted); }
.spots { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.spots i { flex: 1; max-width: 90px; height: 4px; border-radius: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.spots i span { display: block; height: 100%; background: var(--accent); }
.spots.low { color: var(--warn); }
.spots.low i span { background: var(--warn); }
.closed { padding: 40px 10px; text-align: center; color: var(--muted); }

/* Scheda di allenamento */
.coach { display: flex; gap: 12px; padding: 14px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.avatar-c { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--head); font-size: 20px; }
.coach b { display: block; font-size: 15px; }
.coach small { display: block; color: #6f7480; font-size: 12px; margin-bottom: 4px; }
.coach p { font-size: 14px; color: #d6d9de; }
.plan-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.plan-tabs button { display: grid; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.plan-tabs b { font-family: var(--head); font-size: 16px; font-weight: 600; text-transform: uppercase; }
.plan-tabs small { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.plan-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plan-tabs button[aria-pressed="true"] small { color: rgba(12,13,15,.7); }
.ex-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ex-head .bar { flex: 1; margin: 0; }
.ex { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; transition: background .2s, border-color .2s; }
.ex .tick { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; color: transparent; transition: all .2s; }
.ex .tick .icon { width: 16px; height: 16px; stroke-width: 3; }
.ex.ok { border-color: rgba(198,244,50,.4); background: linear-gradient(90deg, rgba(198,244,50,.08), var(--surface)); }
.ex.ok .tick { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); animation: tickIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.ex.ok b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
@keyframes tickIn { from { transform: scale(.5); } }
.ex-txt { flex: 1; min-width: 0; }
.ex-txt b { display: block; font-size: 15px; }
.ex-txt small { display: block; color: var(--muted); font-size: 13px; }
.kg { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* Editor scheda nel pannello */
.ex-edit { display: grid; grid-template-columns: 1fr 64px 110px 90px 36px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ex-edit input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; }
.ex-edit button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 18px; }
.ex-edit.head { padding: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 0; }
@media (max-width: 640px) {
  .ex-edit { grid-template-columns: 1fr 52px 36px; }
  .ex-edit .opt { display: none; }
}

/* Barra in basso */
.tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 25; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; max-width: 480px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(18, 20, 24, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: #7c818c; font-size: 11px; font-weight: 700; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar .dot { top: 0; right: calc(50% - 22px); }

/* Avvisi in arrivo */
.toast {
  position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 60;
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 456px; margin: 0 auto; padding: 14px;
  border-radius: 20px; background: rgba(32, 35, 42, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  animation: toastIn .55s cubic-bezier(.2, 1.3, .4, 1) both;
}
.toast.out { animation: toastOut .35s ease-in both; }
.toast .ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--head); font-size: 20px; }
.toast b { display: block; font-size: 14.5px; }
.toast p { font-size: 13.5px; color: #c9ccd3; }
.toast small { color: #8b909b; font-size: 11.5px; }
@keyframes toastIn { from { transform: translateY(-120%); } }
@keyframes toastOut { to { transform: translateY(-130%); opacity: 0; } }

.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); animation: fade .2s both; }
.sheet > div { width: 100%; max-width: 480px; padding: 24px 22px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0; background: var(--surface); animation: up .35s cubic-bezier(.2, .8, .2, 1) both; }
.sheet h3 { font-size: 22px; margin-bottom: 8px; }
.sheet p { color: var(--muted); margin-bottom: 18px; }
.sheet ol { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.sheet li { margin: 8px 0; }
.sheet li b { color: var(--ink); }
.sheet .row { display: flex; gap: 10px; }
.sheet .row .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

.install {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 12px 12px 14px;
  border-radius: 18px; background: var(--surface-2); border: 1px solid rgba(198,244,50,.3);
}
.install img { width: 42px; height: 42px; border-radius: 11px; }
.install div { flex: 1; font-size: 13px; color: var(--muted); }
.install b { display: block; color: var(--ink); font-size: 14.5px; }

/* App dentro il pannello */
.embed .demo-strip, .embed .install, .embed .live, .embed .side-foot { display: none !important; }
.embed .adm { grid-template-columns: 1fr; }
@media (min-width: 900px) { .embed .adm { grid-template-columns: 220px 1fr; } }

/* ================= PANNELLO TITOLARE ================= */
.admin { --bg: #f4f5f7; --surface: #fff; --surface-2: #f0f1f4; --ink: #121418; --muted: #636a77; --line: #e3e5ea; color-scheme: light; background: var(--bg); color: var(--ink); }
.admin .accent-bg { background: var(--accent); color: var(--accent-ink); }
.adm { display: grid; min-height: 100svh; }
@media (min-width: 900px) { .adm { grid-template-columns: 250px 1fr; } }
.side { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #0c0d0f; color: #fff; overflow-x: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side .brand { margin-right: 10px; font-size: 18px; white-space: nowrap; }
.side .brand small { display: block; font-family: system-ui, sans-serif; font-size: 10.5px; letter-spacing: .12em; color: #8b909b; }
.side nav { display: flex; gap: 4px; }
.side nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: #a3a8b2; font-weight: 600; font-size: 14px; white-space: nowrap; }
.side nav button[aria-current="page"] { background: rgba(198,244,50,.14); color: var(--accent); }
@media (min-width: 900px) {
  .side { flex-direction: column; align-items: stretch; height: 100svh; padding: 22px 16px; }
  .side .brand { margin: 0 0 26px 6px; }
  .side nav { flex-direction: column; }
  .side nav button { padding: 11px 12px; }
  .side .side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8b909b; }
  .side .side-foot a { color: var(--accent); }
}
@media (max-width: 899px) { .side nav button span.lbl-long { display: none; } .side .side-foot { display: none; } }
.main { padding: 26px 20px 60px; max-width: 1100px; width: 100%; }
@media (min-width: 900px) { .main { padding: 36px 40px 60px; } }
.main h1 { font-size: 30px; }
.main .sub { color: var(--muted); margin: 4px 0 24px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.kpi { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.kpi b { display: block; font-family: var(--head); font-size: 32px; font-weight: 600; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.dark { background: #0c0d0f; color: #fff; border-color: #0c0d0f; }
.kpi.dark b { color: var(--accent); }
.kpi.dark span { color: #a3a8b2; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.2fr 1fr; gap: 20px; } }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.panel h2 { font-size: 17px; margin-bottom: 14px; }
.admin .btn.ghost { background: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: #0c0d0f; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }
.chips button:hover { border-color: #0c0d0f; }
.phone-prev { position: relative; padding: 22px 16px 26px; border-radius: 28px; background: linear-gradient(160deg, #3b4a6b, #1b2133 60%, #121418); }
.phone-prev .clock { color: #fff; text-align: center; font-family: var(--head); font-size: 44px; font-weight: 300; }
.phone-prev .date { color: #cfd5e2; text-align: center; font-size: 13px; margin-bottom: 18px; }
.phone-prev .toast { position: static; animation: none; max-width: none; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: none; }
.phone-prev .toast b { color: #121418; }
.phone-prev .toast p { color: #3c414b; }
.phone-prev .toast small { color: #6b7180; }
.list { display: grid; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #0c0d0f; color: var(--accent); font-family: var(--head); font-size: 15px; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item b { display: block; font-size: 14.5px; }
.row-item small { color: var(--muted); font-size: 12.5px; }
.tag { padding: 4px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.red { background: #ffe9e6; color: #c0392b; }
.tag.amber { background: #fff4dc; color: #9a6400; }
.tag.green { background: #eefbd0; color: #4a6b00; }
.dots10 { display: flex; gap: 3px; }
.dots10 i { width: 8px; height: 8px; border-radius: 50%; background: #e3e5ea; }
.dots10 i.on { background: #0c0d0f; }
.scan { display: flex; gap: 16px; align-items: center; padding: 18px; margin-bottom: 16px; border-radius: 18px; background: #0c0d0f; color: #fff; }
.scan .vf { position: relative; width: 74px; height: 74px; flex: none; border-radius: 14px; background: #1d2026; overflow: hidden; }
.scan .vf::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--accent); border-radius: 6px; }
.scan .vf::after { content: ""; position: absolute; left: 10px; right: 10px; top: 14px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scanLine 1.6s ease-in-out infinite alternate; }
@keyframes scanLine { to { top: 58px; } }
.scan p { color: #a3a8b2; font-size: 13.5px; }
.scan b { font-size: 16px; }
.cls-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cls-row:last-child { border-bottom: 0; }
.cls-row .t { font-family: var(--head); font-size: 19px; }
.meter { height: 6px; margin-top: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: #0c0d0f; }
.meter.full span { background: #c0392b; }
.sent-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-top: 14px; border-radius: 12px; background: #eefbd0; color: #344d00; font-size: 14px; font-weight: 600; animation: viewIn .4s both; }
.admin .toast { color: #fff; }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Telefono in diretta accanto al pannello */
.live { display: none; }
@media (min-width: 1280px) {
  .adm { grid-template-columns: 240px 1fr 400px; }
  .live { position: sticky; top: 0; display: grid; align-content: center; justify-items: center; gap: 14px; height: 100svh; padding: 20px 24px 20px 0; }
  .live-frame { width: 360px; height: min(740px, calc(100svh - 90px)); padding: 12px; border-radius: 48px; background: #0c0d0f; box-shadow: 0 30px 70px rgba(12,13,15,.35), inset 0 0 0 2px #2a2d33; }
  .live-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: #0c0d0f; }
  .live p { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
  .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,.6); animation: livePulse 1.8s infinite; }
  .side-foot { display: none; }
}
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); } 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); } }
@media (min-width: 900px) { .wide-left { grid-template-columns: 1.8fr 1fr; } }
.row-item.pick { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; border-radius: 12px; padding: 12px 8px; }
.row-item.pick:hover { background: var(--surface-2); }
.row-item.pick[aria-current="true"] { background: #eefbd0; }
.x-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 17px; line-height: 1; }
.x-btn:hover { background: #ffe9e6; color: #c0392b; }
.people { display: flex; gap: 10px; margin: 0 0 16px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.person { display: flex; align-items: center; gap: 10px; flex: none; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-align: left; }
.person b { display: block; font-size: 14px; white-space: nowrap; }
.person .tag { display: inline-block; margin-top: 2px; padding: 1px 7px; font-size: 11px; }
.person .avatar { width: 36px; height: 36px; font-size: 13px; }
.person[aria-pressed="true"] { border-color: #0c0d0f; background: #0c0d0f; color: #fff; }
.admin .ex-edit { grid-template-columns: minmax(160px, 1fr) 64px 120px 100px 36px; }
@media (max-width: 640px) { .admin .ex-edit { grid-template-columns: 1fr 52px 36px; } }
.main { min-width: 0; }
.chip-add { padding: 7px 12px; border: 1px dashed #9aa0ab; border-radius: 999px; background: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip-add:hover { border-color: #0c0d0f; color: #0c0d0f; }
.day-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.plan-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tabs button { flex: 1 0 30%; min-width: 96px; }
.list-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.search { flex: 1; max-width: 320px; min-width: 180px; padding: 10px 14px 10px 36px; border: 1px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636a77' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 12px 50% / 16px no-repeat; font-size: 14px; }
.search:focus { outline: 2px solid var(--accent); border-color: #0c0d0f; }
