/**
 * Anthilla Booking Heatmap, canonical CSS
 * Mobile-first responsive
 */

:root {
  --anth-bk-primary: #1a1a1a;
  --anth-bk-accent: #16899A;
  --anth-bk-bg: #ffffff;
  --anth-bk-text: #1a1a1a;
  --anth-bk-text-muted: #5f7285;
  --anth-bk-border: #e8ecf0;
  --anth-bk-radius: 12px;
  --anth-bk-radius-sm: 8px;
  --anth-bk-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --anth-bk-shadow-hover: 0 6px 16px rgba(0,0,0,0.15);

  /* Heatmap saturation gradient */
  --anth-cell-h-free: 145;       /* greenish */
  --anth-cell-h-full: 5;         /* reddish */
}

#anth-booking-app {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--anth-bk-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.anth-reviews-badge {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #fff7e6 0%, #fff 100%);
  border-left: 4px solid #f0a500;
  border-radius: var(--anth-bk-radius-sm);
  font-size: 13.5px;
}
.anth-reviews-badge a { color: var(--anth-bk-text); text-decoration: none; }
.anth-reviews-badge strong { color: #f0a500; }

.anth-booking-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--anth-bk-primary);
}
.anth-booking-hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--anth-bk-text-muted);
}

.anth-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f8fafb;
  border-radius: var(--anth-bk-radius-sm);
}
.anth-week-nav button {
  background: var(--anth-bk-bg);
  border: 1px solid var(--anth-bk-border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.anth-week-nav button:hover { background: var(--anth-bk-accent); color: #fff; border-color: var(--anth-bk-accent); }
.anth-current-range { font-weight: 600; font-size: 14px; }

.anth-heatmap-container {
  background: var(--anth-bk-bg);
  border: 1px solid var(--anth-bk-border);
  border-radius: var(--anth-bk-radius);
  overflow: hidden;
}
.anth-loading {
  padding: 32px;
  text-align: center;
  color: var(--anth-bk-text-muted);
  font-size: 14px;
}

/* Grid: desktop = 7 columns × N rows */
.anth-heatmap-grid {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 4px;
  padding: 12px;
}
.anth-heatmap-header {
  display: contents;
}
.anth-heatmap-header > div {
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--anth-bk-text-muted);
  border-bottom: 1px solid var(--anth-bk-border);
}
.anth-heatmap-header > div.is-today {
  color: var(--anth-bk-accent);
  font-weight: 700;
}

.anth-time-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  color: var(--anth-bk-text-muted);
}

.anth-heatmap-cell {
  --saturation: 0;
  /* Semaforo discreto — i colori cella == campioni legenda (R63e) */
  background-color: hsl(142, 70%, 45%);
  border-radius: var(--anth-bk-radius-sm);
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anth-heatmap-cell:hover {
  transform: scale(1.04);
  box-shadow: var(--anth-bk-shadow-hover);
  z-index: 1;
}
.anth-heatmap-cell[data-state="free"]    { background: hsl(142, 70%, 45%); }
.anth-heatmap-cell[data-state="partial"] { background: hsl(48, 95%, 50%); }
.anth-heatmap-cell[data-state="full"]    { background: hsl(4, 75%, 52%); cursor: not-allowed; opacity: .75; }
.anth-heatmap-cell[data-state="blocked"] {
  background: repeating-linear-gradient(45deg, #d4d4d4 0 6px, #b8b8b8 6px 12px);
  cursor: not-allowed;
  color: #fff;
}
.anth-heatmap-cell[data-state="closed"]  { background: #e5e7eb; cursor: default; }
.anth-heatmap-cell[data-state="free"]::after { content: "○"; font-size: 14px; color: #fff; }
.anth-heatmap-cell[data-state="partial"]::after { content: "◐"; font-size: 14px; color: #3a3000; }
.anth-heatmap-cell[data-state="full"]::after { content: "●"; font-size: 14px; color: #fff; }

.anth-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px;
  font-size: 12px;
  color: var(--anth-bk-text-muted);
  border-top: 1px solid var(--anth-bk-border);
}
.anth-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.anth-legend-item::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--anth-bk-border);
}
.anth-legend-item[data-state="free"]::before { background: hsl(142, 70%, 45%); }
.anth-legend-item[data-state="partial"]::before { background: hsl(48, 95%, 50%); }
.anth-legend-item[data-state="full"]::before { background: hsl(4, 75%, 52%); }
.anth-legend-item[data-state="blocked"]::before { background: repeating-linear-gradient(45deg, #d4d4d4 0 4px, #b8b8b8 4px 8px); }

/* Modal */
.anth-modal {
  border: none;
  border-radius: var(--anth-bk-radius);
  padding: 0;
  max-width: 480px;
  width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.anth-modal::backdrop { background: rgba(0,0,0,0.45); }
.anth-booking-form {
  padding: 20px;
}
.anth-booking-form header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.anth-booking-form header h3 { margin: 0; font-size: 18px; }
.anth-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
}
.anth-slot-info {
  background: #f8fafb;
  padding: 10px 12px;
  border-radius: var(--anth-bk-radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.anth-field {
  display: block;
  margin-bottom: 12px;
}
.anth-field > span {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--anth-bk-text-muted);
  font-weight: 600;
}
.anth-field input, .anth-field select, .anth-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--anth-bk-border);
  border-radius: var(--anth-bk-radius-sm);
  font-size: 14px;
  background: var(--anth-bk-bg);
  box-sizing: border-box;
}
.anth-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--anth-bk-text-muted);
}
.anth-consent input { margin-top: 3px; }
.anth-btn-primary {
  background: var(--anth-bk-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--anth-bk-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.anth-btn-primary:hover { background: #126e7d; }
.anth-btn-secondary {
  background: transparent;
  color: var(--anth-bk-text-muted);
  border: 1px solid var(--anth-bk-border);
  padding: 12px 24px;
  border-radius: var(--anth-bk-radius-sm);
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
}
.anth-modal-result {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--anth-bk-radius-sm);
  font-size: 13px;
}
.anth-modal-result.success { background: #d4f4dd; color: #1b6b35; }
.anth-modal-result.error { background: #f9d6d6; color: #8a1f1f; }

/* Push prompt, hero prominente (R53): suggerimento attivazione con motivi */
.anth-push-prompt {
  margin-top: 20px;
  border-radius: var(--anth-bk-radius);
  text-align: center;
  animation: anthPushIn .4s ease-out;
}
@keyframes anthPushIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.anth-push-hero {
  padding: 22px 20px;
  background: linear-gradient(160deg, #f0f7fb 0%, #e4f0ea 100%);
  border: 2px solid #7fb3d5;
  border-radius: var(--anth-bk-radius);
  box-shadow: 0 4px 18px rgba(30, 90, 140, .14);
}
.anth-push-hero-icon { color: #2c6e9b; display: inline-block; margin-bottom: 6px; }
.anth-push-hero-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #173f56;
}
.anth-push-hero-reasons {
  margin: 0 auto 16px;
  padding: 0;
  list-style: none;
  max-width: 480px;
  text-align: left;
  font-size: .92rem;
  color: #2a4756;
}
.anth-push-hero-reasons li { padding: 4px 0 4px 26px; position: relative; }
.anth-push-hero-reasons li::before {
  content: "✓";
  position: absolute; left: 4px;
  color: #1a7f37; font-weight: 700;
}
.anth-push-hero-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.anth-push-hero-actions .anth-btn-primary { font-size: 1rem; padding: 12px 22px; }
.anth-push-hero-note {
  margin: 10px 0 0; font-size: .76rem; color: #5b7180;
}

/* MOBILE FIRST: ≤ 768px → day-swipe layout */
@media (max-width: 768px) {
  .anth-heatmap-grid {
    grid-template-columns: 1fr 1fr;
    padding: 8px;
  }
  .anth-heatmap-header {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--anth-bk-border);
    margin-bottom: 8px;
  }
  .anth-heatmap-header > div {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid var(--anth-bk-border);
    border-radius: 20px;
    border-bottom: 1px solid var(--anth-bk-border);
    cursor: pointer;
  }
  .anth-heatmap-header > div.is-active {
    background: var(--anth-bk-accent);
    color: #fff;
    border-color: var(--anth-bk-accent);
  }
  .anth-time-label {
    grid-column: 1;
    justify-content: flex-start;
    padding-left: 8px;
    font-size: 12px;
    background: #f8fafb;
    border-radius: var(--anth-bk-radius-sm);
  }
  .anth-heatmap-cell {
    grid-column: 2;
    min-height: 44px;
    font-size: 13px;
  }
  /* Hide all day columns except active */
  .anth-heatmap-cell:not([data-day-active="1"]) { display: none; }
  .anth-time-label:not([data-day-active="1"]) { display: none; }
}

/* ≤ 380px (small mobile) */
@media (max-width: 380px) {
  #anth-booking-app { padding: 8px; }
  .anth-booking-header h2 { font-size: 18px; }
  .anth-heatmap-cell { min-height: 40px; padding: 6px 2px; }
}

/* ── S45-41c: schede negozi (multi-location) ─────────────────── */
#anth-booking-app .anth-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
#anth-booking-app .anth-loc-card {
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#anth-booking-app .anth-loc-card.is-selected {
  border-color: #0E7490;
  box-shadow: 0 0 0 2px rgba(14,116,144,.18);
}
#anth-booking-app .anth-loc-name { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
#anth-booking-app .anth-loc-addr { font-size: .82rem; color: #444; margin-bottom: 2px; }
#anth-booking-app .anth-loc-closed { font-size: .74rem; color: #8a6d3b; margin-bottom: 6px; }
/* R52: badge apertura futura location (es. Duomo 20 ottobre) */
#anth-booking-app .anth-loc-opens {
  font-size: .78rem; font-weight: 700; color: #7c3aed;
  background: rgba(124,58,237,.09); border: 1px solid rgba(124,58,237,.25);
  border-radius: 6px; padding: 3px 8px; margin: 4px 0 6px; display: inline-block;
}
#anth-booking-app .anth-loc-maps { display: flex; gap: 8px; flex-wrap: wrap; }
#anth-booking-app .anth-loc-maps a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 600; text-decoration: none;
  padding: 6px 10px; border-radius: 8px; border: 1px solid #e2e6ea;
  background: #f8fafb; color: #111;
}
#anth-booking-app .anth-loc-maps a:hover { background: #eef2f5; }

/* ── S45-41c + R61: blocco notifiche/aggiornamenti SEMPRE fucsia traslucido,
   raggruppato (prompt updates subito sotto la barra), testo NERO sopra il
   fucsia. is-on/is-off non cambiano più il colore di fondo. ──────────── */
#anth-booking-app .anth-notify-bar,
#anth-booking-app .anth-updates-prompt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 0; padding: 12px 14px;
  border: 1.5px solid rgba(255, 43, 214, .55); border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 43, 214, .18), rgba(150, 0, 140, .26));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .84rem;
}
#anth-booking-app .anth-updates-prompt { margin: 8px 0 14px; }
#anth-booking-app .anth-updates-prompt p { margin: 0; flex: 1 1 220px; }
#anth-booking-app .anth-notify-bar { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-width: 0; }
#anth-booking-app .anth-notify-bar + .anth-updates-prompt { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
#anth-booking-app .anth-notify-bar .anth-notify-icon { font-size: 1.1rem; color: #000; }
#anth-booking-app .anth-notify-bar .anth-notify-text,
#anth-booking-app .anth-updates-prompt p { flex: 1 1 200px; color: #000 !important; font-weight: 700; }
#anth-booking-app .anth-notify-bar.is-on,
#anth-booking-app .anth-notify-bar.is-off {
  border-color: rgba(255, 43, 214, .55);
  background: linear-gradient(120deg, rgba(255, 43, 214, .18), rgba(150, 0, 140, .26));
}
#anth-booking-app .anth-notify-toggle { white-space: nowrap; color: #000 !important; }
#anth-booking-app .anth-updates-yes {
  color: #000 !important; text-shadow: none;
  background: linear-gradient(135deg, rgba(255,43,214,.95), rgba(214,0,170,.9)) !important;
  border: 2px solid rgba(255,150,240,.9) !important;
}
#anth-booking-app .anth-updates-no {
  color: #000 !important;
  background: rgba(255,255,255,.55) !important;
  border: 1.5px solid rgba(0,0,0,.55) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   R56, Tipografia WCAG: testi più grandi, peso deciso, contrasto alto.
   Target: corpo ≥14px (mai <12px), input ≥16px (no zoom iOS al focus),
   label ≥14px/700, celle ≥14px/600, legenda ≥14px.
   ═══════════════════════════════════════════════════════════════════ */
.anth-booking-header h2 { font-size: 26px; font-weight: 800; }
.anth-booking-hint { font-size: 15px; font-weight: 500; color: #334155; }

.anth-current-range { font-size: 16px; font-weight: 700; color: #0f172a; }
.anth-week-nav button { font-size: 20px; font-weight: 700; min-width: 44px; min-height: 44px; }

.anth-heatmap-header > div { font-size: 13.5px; font-weight: 700; color: #334155; }
.anth-time-label { font-size: 12.5px; font-weight: 700; color: #475569; }
.anth-heatmap-cell { font-size: 13.5px; font-weight: 600; min-height: 42px; padding: 10px 4px; }
.anth-heatmap-cell[data-state="free"]::after,
.anth-heatmap-cell[data-state="partial"]::after,
.anth-heatmap-cell[data-state="full"]::after { font-size: 17px; font-weight: 700; }

.anth-legend { font-size: 14px; font-weight: 600; color: #334155; }
.anth-loading { font-size: 15px; }

/* form, WCAG: label decise, input ≥16px */
.anth-booking-form header h3 { font-size: 21px; font-weight: 800; }
.anth-field > span { font-size: 14px; font-weight: 700; color: #1e293b; }
.anth-field input, .anth-field select, .anth-field textarea {
  font-size: 16px; font-weight: 500; color: #0f172a;
  padding: 12px 14px; line-height: 1.4;
}
.anth-field input:focus-visible, .anth-field select:focus-visible,
.anth-field textarea:focus-visible {
  outline: 3px solid var(--anth-bk-accent); outline-offset: 1px;
}
.anth-booking-form small, .anth-booking small,
.anth-booking-form .anth-note { font-size: 13.5px; font-weight: 500; color: #475569; }

/* bottoni/CTA, più grandi e decisi */
.anth-btn-primary, .anth-booking-form button[type="submit"],
.anth-notify-bar button, .anth-updates button {
  font-size: 16px; font-weight: 800; min-height: 48px;
  padding: 13px 20px;
}
.anth-btn-secondary { font-size: 15px; font-weight: 700; min-height: 44px; }

/* push hero + update prompts, più leggibili */
.anth-push-hero-title, .anth-push-hero h2, .anth-push-hero h3 { font-size: 22px; font-weight: 800; }
.anth-push-hero p, .anth-push-hero li, .anth-updates p { font-size: 15px; font-weight: 500; }
.anth-notify-bar { font-size: 15px; }
.anth-notify-bar p { font-weight: 600; }

/* toast / messaggi */
.anth-toast { font-size: 15px; font-weight: 600; }

/* focus globale della pagina booking, WCAG 2.4.7 */
.anth-booking a:focus-visible, .anth-booking button:focus-visible,
.anth-heatmap-cell:focus-visible, .anth-week-nav button:focus-visible {
  outline: 3px solid var(--anth-bk-accent); outline-offset: 2px;
}
@media (max-width: 680px) {
  .anth-heatmap-cell { font-size: 12.5px; min-height: 40px; }
  .anth-time-label { font-size: 11.5px; }
}

/* ═══════════════════════════════════════════════════════════════════
   R56-bis, Pulsante notifiche NEON FUCSIA: brillante, traslucido,
   glow lampeggiante lento (safe WCAG 2.3.1, <3 flash/sec).
   Si applica solo quando le notifiche NON sono attive (data-mode=on)
   e al CTA del prompt hero. Testo bianco extrabold su fucsia profondo
   (contrasto > 4.5:1) + glow esterno brillante.
   ═══════════════════════════════════════════════════════════════════ */
@keyframes anthNeonPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(255, 43, 214, .45),
                0 0 34px rgba(255, 43, 214, .22),
                inset 0 0 10px rgba(255, 255, 255, .18);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 43, 214, .9),
                0 0 80px rgba(255, 43, 214, .5),
                inset 0 0 18px rgba(255, 255, 255, .42);
    filter: brightness(1.22);
  }
}
.anth-notify-toggle[data-mode="on"],
.anth-push-enable {
  background: linear-gradient(135deg,
    rgba(255, 43, 214, .92) 0%,
    rgba(214, 0, 170, .88) 55%,
    rgba(160, 0, 130, .9) 100%) !important;
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(90, 0, 70, .55);
  border: 2px solid rgba(255, 150, 240, .95) !important;
  border-radius: 14px !important;
  animation: anthNeonPulse 1.7s ease-in-out infinite;
}
.anth-notify-toggle[data-mode="on"]:hover,
.anth-push-enable:hover {
  filter: brightness(1.3);
  transform: translateY(-1px);
}
/* R61: barra notifiche SEMPRE fucsia traslucida (non solo off), testo NERO.
   Le regole sopra bastano, qui rinforziamo il colore testo perché il neon
   sul toggle ha ancora il suo stile pulsante. */
.anth-notify-bar .anth-notify-text,
.anth-notify-bar p,
.anth-updates-prompt p {
  color: #000 !important;
  font-weight: 700 !important;
}
.anth-notify-toggle[data-mode="on"],
.anth-push-enable { color: #000 !important; text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .anth-notify-toggle[data-mode="on"],
  .anth-push-enable { animation: none; }
}

/* R56-bis: titolo/didascalia form feedback nel markup (abfb-title/abfb-sub)
  , chiarisce che NON è la prenotazione (quella si fa dal calendario sopra). */

/* ── R77: anti-CLS + skeleton loading + fix pill vuota mobile ───── */
.anth-heatmap-container { min-height: 340px; } /* spazio riservato: niente salto pagina al load */
.anth-loading {
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  color: var(--anth-bk-text-muted); font-weight: 600;
  background: linear-gradient(100deg, #f4f6f8 40%, #eef1f3 50%, #f4f6f8 60%);
  background-size: 200% 100%; animation: anthShimmer 1.4s infinite linear;
  border-radius: 12px;
}
@keyframes anthShimmer { to { background-position: -200% 0; } }

@media (max-width: 768px) {
  /* la cella vuota d'angolo non deve diventare una pill cliccabile */
  .anth-heatmap-header > div:empty { display: none; }
  .anth-heatmap-header > div { min-height: 40px; } /* tap target WCAG */
}

/* ── R63b: heatmap granulare a tick 15min — bande continue per durata ───── */
.anth-heatmap-ticks { gap: 1px; padding: 8px; grid-template-columns: 52px repeat(7, 1fr); }
.anth-heatmap-ticks .anth-heatmap-cell {
  min-height: 13px; height: 13px; padding: 0; border-radius: 2px; font-size: 0;
}
.anth-heatmap-ticks .anth-heatmap-cell::after { display: none; }
.anth-heatmap-ticks .anth-heatmap-cell:hover { transform: scaleY(1.6); }
.anth-heatmap-ticks .anth-time-label { font-size: 9.5px; height: 13px; align-items: flex-start; padding-right: 6px; margin-top: -4px; }
.anth-heatmap-ticks .anth-time-label.is-minor { border-top: 0; }
.anth-heatmap-cell[data-state="closed"] {
  background: #f1f1f1; cursor: default;
}
.anth-heatmap-cell[data-state="closed"]:hover { transform: none; box-shadow: none; }
.anth-legend-item[data-state="closed"]::before { background: #f1f1f1; }
.anth-legend-note { width: 100%; font-size: 11.5px; color: var(--anth-bk-accent, #b26a00); font-weight: 600; margin-top: 4px; }
.anth-legend-note a { color: inherit; }
@media (max-width: 720px) {
  .anth-heatmap-ticks { grid-template-columns: 44px repeat(7, 1fr); }
  .anth-heatmap-ticks .anth-heatmap-cell { min-height: 16px; height: 16px; }
  .anth-heatmap-ticks .anth-time-label { height: 16px; }
}

/* ── R63c: in modalità tick il colore è DISCRETO per stato = identico ai
   campioni legenda (il gradiente continuo su --saturation produceva colori
   intermedi non elencati). */
.anth-heatmap-ticks .anth-heatmap-cell[data-state="free"]    { background: hsl(142, 70%, 45%); }
.anth-heatmap-ticks .anth-heatmap-cell[data-state="partial"] { background: hsl(48, 95%, 50%); }
.anth-heatmap-ticks .anth-heatmap-cell[data-state="full"]    { background: hsl(4, 75%, 52%); opacity: .75; }
.anth-heatmap-ticks .anth-heatmap-cell[data-state="blocked"] { background: repeating-linear-gradient(45deg, #d4d4d4 0 4px, #b8b8b8 4px 8px); }
.anth-heatmap-ticks .anth-heatmap-cell[data-state="closed"]  { background: #e5e7eb; }
/* allinea i campioni legenda agli stessi valori */
.anth-legend-item[data-state="free"]::before    { background: hsl(142, 70%, 45%); }
.anth-legend-item[data-state="partial"]::before { background: hsl(48, 95%, 50%); }
.anth-legend-item[data-state="full"]::before    { background: hsl(4, 75%, 52%); }

/* ── R63c: barra notifiche UNICA compatta (updates-prompt rimosso) ── */
#anth-booking-app .anth-notify-bar {
  margin-bottom: 12px;
  border-bottom-left-radius: var(--anth-bk-radius, 10px);
  border-bottom-right-radius: var(--anth-bk-radius, 10px);
  border-bottom-width: 1px;
  flex-wrap: wrap;
}
#anth-booking-app .anth-notify-bar .anth-notify-text { flex: 1 1 180px; }
#anth-booking-app .anth-notify-bar .anth-feed-link {
  color: inherit; font-size: .8em; text-decoration: underline; opacity: .8; white-space: nowrap;
}
#anth-booking-app .anth-notify-bar.is-on .anth-feed-link { display: inline; }

/* R63: magic-link manage panel */
.anth-manage-box { background:#fff;border:1px solid var(--anth-bk-border,#e2e2e2);border-radius:12px;padding:16px;margin:10px 0;font-size:.92rem }
.anth-manage-box h3 { margin:0 0 8px;font-size:1rem }
.anth-manage-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:10px }
.anth-btn-danger { background:#b32d2e;color:#fff;border:0;border-radius:8px;padding:8px 14px;cursor:pointer }
.anth-manage-sub { margin-top:12px;padding-top:10px;border-top:1px solid #eee }
.anth-freepick { display:flex;flex-wrap:wrap;gap:6px;max-height:200px;overflow:auto }

/* R63d: bottone notifiche ATTIVE — fondo scuro richiede testo bianco */
#anth-booking-app .anth-notify-bar.is-on .anth-notify-toggle { color:#fff !important; background:#2b2b2b !important; }
