:root {
  --ink: #19343b;
  --ink-soft: #516970;
  --line: #dce6e3;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --deep: #12383d;
  --deep-2: #0b2c32;
  --teal: #147c75;
  --teal-dark: #0d655f;
  --mint: #def3e7;
  --amber: #e9a953;
  --shadow: 0 12px 36px rgba(20, 60, 56, .065);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8bd5ae; outline-offset: 2px; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 10; display: flex; flex-direction: column; padding: 26px 15px 19px; color: #dbeae5; background: radial-gradient(circle at 4% 4%, #1c5051, transparent 44%), linear-gradient(160deg, var(--deep), var(--deep-2)); }
.brand { display: flex; gap: 11px; align-items: center; padding: 3px 14px 28px; text-decoration: none; color: white; }
.brand-mark { flex: none; width: 39px; height: 39px; border-radius: 12px; background: #dff7e8; display: grid; place-items: center; color: var(--deep); box-shadow: 0 8px 20px #051d2240; }
.brand-mark svg { width: 25px; height: 25px; }
.brand strong { display: block; font-size: 22px; line-height: 1; letter-spacing: -.055em; }
.brand small { display: block; color: #aecac6; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; font-weight: 700; }
.nav-label { color: #83aaa6; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 18px 17px 9px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar nav a { display: flex; gap: 11px; align-items: center; min-height: 42px; padding: 9px 13px; border-radius: 10px; color: #c9dedb; text-decoration: none; font-weight: 650; font-size: 13px; }
.sidebar nav a svg { width: 18px; height: 18px; stroke-width: 1.8; opacity: .78; flex: none; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: #ffffff1b; }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--amber); }
.sidebar-bottom { margin-top: auto; padding: 16px; border: 1px solid #ffffff21; border-radius: 14px; background: #ffffff0b; }
.sidebar-bottom strong { color: white; font-size: 13px; }
.mobile-toggle { display: none; }
.sidebar-bottom p { margin: 5px 0 0; color: #a9c4bf; font-size: 11px; }
.main-shell { min-height: 100vh; margin-left: 258px; }
.topbar { height: 72px; padding: 0 clamp(20px,4vw,56px); display: flex; align-items: center; justify-content: space-between; background: #ffffffd9; border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: 12px; color: #75908d; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.breadcrumbs strong { color: var(--teal-dark); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #4e6c69; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #62b784; }
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: var(--deep); background: #eff5f1; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.bell svg { width: 18px; height: 18px; }
.badge { position: absolute; top: -6px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 20px; background: #e4964b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; }
.badge[hidden] { display: none; }
main { max-width: 1380px; margin: 0 auto; padding: 35px clamp(20px,4vw,56px) 72px; }
.page-intro { margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 850; color: var(--teal); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(29px,3vw,39px); line-height: 1.13; letter-spacing: -.045em; font-weight: 800; }
h2 { margin: 0 0 15px; font-size: 19px; letter-spacing: -.025em; }
h3 { margin: 0 0 9px; font-size: 15px; }
p.sub { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; }
p { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 17px 0; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 12px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--teal); font-weight: 750; text-decoration: none; font-size: 13px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; position: relative; overflow: hidden; padding: clamp(26px,3vw,42px); border-radius: 22px; background: linear-gradient(118deg,#174c4d 0%,#0d3038 74%); color: #fff; box-shadow: 0 20px 40px #123c3a21; }
.hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: -180px; border: 1px solid #ffffff30; border-radius: 50%; }
.hero .eyebrow { color: #b5e3cf; }
.hero h2 { font-size: clamp(27px,3.2vw,43px); max-width: 630px; line-height: 1.11; letter-spacing: -.055em; margin-bottom: 12px; }
.hero p { max-width: 550px; color: #d0e4df; margin-bottom: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .button { background: #dcf2df; color: #123d3c; }
.hero .button.ghost { border-color: #9ec4bc; background: #ffffff17; color: #fff; }
.hero-art { position: relative; min-height: 205px; display: grid; place-items: center; }
.plate { position: relative; width: 188px; height: 188px; border-radius: 50%; border: 2px solid #bedad178; box-shadow: inset 0 0 0 21px #ffffff12, inset 0 0 0 23px #ffffff50, 0 18px 40px #031c2735; transform: rotate(-12deg); }
.plate::before { content: ""; position: absolute; inset: 45px; border-radius: 50%; background: #d6efdb; box-shadow: inset -10px -12px 0 #99ceba; }
.plate::after { content: ""; position: absolute; width: 51px; height: 51px; left: 68px; top: 68px; border-radius: 55% 25% 55% 35%; background: var(--amber); transform: rotate(-35deg); box-shadow: 33px 24px 0 -12px #8dbf84; }
.hero-art .orb { position: absolute; border-radius: 50%; width: 15px; height: 15px; background: #e5ad5b; left: 8px; top: 15px; box-shadow: 220px 162px 0 #b9e5d1; }
.stat-card { min-height: 125px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card .stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #e5f4ea; color: var(--teal); }
.stat-card .stat-icon svg { width: 17px; height: 17px; }
.stat-card span.label { color: #60777c; font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -.045em; color: #143c40; margin-top: 8px; }
.stat-card { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.stat-card:hover, .stat-card:focus-visible { border-color: #6bad97; box-shadow: 0 15px 32px #123c3a20; transform: translateY(-2px); }
.stat-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.stat-open { margin-top: 12px; color: var(--teal-dark); font-size: 12px; font-weight: 750; }
.two-col { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 18px; align-items: start; }
.two-col .card { margin: 0; }
.alert-list { list-style: none; padding: 0; margin: 0; }
.alert-list li { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.alert-list li:last-child { border: 0; padding-bottom: 0; }
.alert-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-top: 6px; }
.alert-list strong { display: block; font-size: 13px; }
.alert-list small { display: block; color: var(--ink-soft); font-size: 12px; }
.alert-list a { margin-left: auto; color: var(--teal); font-weight: 800; font-size: 12px; text-decoration: none; white-space: nowrap; }
.quick-link { display: block; text-decoration: none; padding: 16px 17px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; background: #f9fbf9; }
.quick-link strong { display: block; color: var(--ink); }
.quick-link small { color: var(--ink-soft); }
.quick-link:hover { border-color: #95c7b5; background: #eff8f1; }
.form-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; color: #466066; font-size: 12px; font-weight: 760; min-width: 150px; flex: 1; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #c8d7d4; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 14px; }
textarea { font: inherit; resize: vertical; }
.full-width { flex-basis: 100%; }
.week-list, .day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.week-list a, .day-tabs a { flex: none; white-space: nowrap; }
.day-tabs a { display: flex; flex-direction: column; padding: 10px 15px; border-radius: 11px; text-decoration: none; background: white; border: 1px solid var(--line); font-weight: 760; }
.day-tabs a small { font-size: 11px; color: var(--ink-soft); }
.day-tabs a.selected { color: white; background: var(--deep); border-color: var(--deep); }
.day-tabs a.selected small { color: #c5ded9; }
.dish-list, .cycle-meal ul { list-style: none; padding: 0; margin: 0 0 20px; }
.dish-list li { display: flex; align-items: baseline; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dish-list li span { flex: 1; min-width: 0; }
.dish-list li small { color: var(--ink-soft); font-size: 11px; }
.dish-list li a { color: var(--teal); font-size: 12px; font-weight: 750; white-space: nowrap; }
details { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 13px; }
summary { color: var(--teal-dark); cursor: pointer; font-weight: 760; }
details .form-grid { margin-top: 14px; }
.checkbox-field { display: flex; flex-direction: row; align-items: center; font-weight: 600; }
.checkbox-field input { width: auto; min-height: 0; }
.ocr-preview { max-height: 280px; overflow: auto; padding: 12px; white-space: pre-wrap; background: #f5f7f5; border-radius: 10px; font-size: 12px; }
.cycle-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.cycle-meal { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cycle-meal h4 { margin: 0 0 8px; font-size: 13px; }
.cycle-meal p { color: var(--ink-soft); font-size: 12px; margin: 0; }
.cycle-meal li { border-top: 1px solid var(--line); padding: 8px 0; }
.cycle-meal li:first-child { border-top: 0; }
.cycle-meal li > a { font-weight: 730; color: var(--teal-dark); }
.cycle-meal li small { color: var(--ink-soft); }
.cycle-meal li .warn { display: block; margin-top: 5px; }
.portion-field { max-width: 120px; min-width: 0; flex: none; margin-top: 5px; }
.portion-field input { min-height: 36px; }
input::placeholder { color: #94a6a7; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 10px; padding: 10px 15px; min-height: 42px; font-weight: 780; font-size: 13px; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.94); }
.button.ghost, button.ghost { background: #eef6f1; border-color: #daece2; color: var(--teal-dark); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid #e6eeea; vertical-align: middle; }
th { color: #72898b; font-size: 10px; text-transform: uppercase; letter-spacing: .10em; font-weight: 850; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf9; }
td form { margin: 0; }
td .form-grid label { min-width: 120px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--ink-soft); font-size: 14px; }
.hint, .warn, .error { padding: 14px 16px; border-radius: 12px; font-size: 13px; }
.hint { background: #e7f5ed; color: #245950; }
.version-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.version-banner button { flex: none; }
.warn { background: #fff3e0; color: #805122; }
.error { background: #ffede8; color: #9b4538; }
.pill { display: inline-block; border-radius: 30px; background: #e2f3e9; color: #226c57; padding: 4px 9px; font-size: 11px; font-weight: 790; vertical-align: middle; }
.inline { display: inline; }
.inline button { padding: 6px 9px; min-height: 30px; font-size: 11px; }
.menu-toolbar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.day-tab { flex: 1 0 100px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; }
.day-tab span { font-size: 11px; color: var(--ink-soft); }
.day-tab strong { font-size: 17px; }
.day-tab.active { background: var(--deep); color: #fff; border-color: var(--deep); box-shadow: 0 8px 20px #0b33372c; }
.day-tab.active span { color: #b5d6cd; }
.menu-card { overflow: hidden; padding: 0; }
.menu-card-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 18px; background: linear-gradient(110deg,#edf7ed,#f9fcfa); }
.menu-card-head .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; color: var(--teal); }
.menu-card-head h2 { margin: 5px 0 0; }
.menu-card-head .circle { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: var(--deep); background: #d4efda; font-size: 21px; }
.menu-card-body { padding: 20px 24px 24px; }
.menu-dish { padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-dish:last-of-type { border: 0; }
.menu-dish small { display: block; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 780; }
.menu-dish strong { display: block; font-size: 15px; margin-top: 3px; }
.menu-details { border-top: 1px solid var(--line); margin: 8px 0 14px; padding: 13px 0; }
.menu-details summary { cursor: pointer; color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.option-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; padding-top: 15px; }
.option-group { padding: 13px; border-radius: 11px; background: #f7faf7; }
.option-group h3 { color: #456b65; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.option-group ul { margin: 0; padding-left: 17px; color: var(--ink); font-size: 12px; }
.option-group li { padding: 3px 0; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px; }
.source-card { display: flex; flex-direction: column; min-height: 205px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.source-card .file-icon { width: 39px; height: 39px; border-radius: 10px; background: #e5f4eb; display: grid; place-items: center; margin-bottom: 17px; color: var(--teal-dark); }
.source-card h3 { font-size: 17px; margin-bottom: 5px; }
.source-card p { color: var(--ink-soft); font-size: 12px; }
.source-card a { margin-top: auto; color: var(--teal); font-size: 13px; font-weight: 800; text-decoration: none; }
.notice-panel { border: 1px solid #eadfbf; background: #fff8e9; border-radius: 14px; padding: 17px 19px; color: #685335; font-size: 13px; }
.notice-panel strong { color: #654b23; display: block; margin-bottom: 4px; }
.notify-toggle { margin-top: 8px; }
.footnote { color: #839694; font-size: 11px; margin-top: 28px; }
.feature-list { padding-left: 20px; margin: 12px 0; color: var(--ink-soft); }
.feature-list li { margin: 9px 0; }
.feature-list small { display: block; color: var(--ink-soft); }
.release-hero { padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(120deg,#144b49,#23766a); }
.release-hero h2 { margin: 11px 0 6px; font-size: 30px; color: #fff; }
.release-hero p { margin: 0; color: #e3f3ec; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 20%, #267363,#0e3036 72%); }
.login-wrap { width: min(100%, 500px); padding: 24px; }
.login-card { padding: clamp(26px,5vw,46px); border-radius: 23px; background: #fff; box-shadow: 0 30px 60px #071d2045; }
.login-card .brand-mark { margin-bottom: 28px; font-size: 25px; font-weight: 800; }
.login-card h1 { margin-bottom: 13px; }
.login-card p { color: var(--ink-soft); }
.login-card button { width: 100%; margin: 16px 0 6px; font-size: 15px; min-height: 50px; }
.login-card small { color: var(--ink-soft); }
#passkey-status.error { margin-top: 14px; }

@media (max-width: 960px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: 100%; padding: 10px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 2px 5px; }
  .mobile-toggle { display: inline-flex; margin-left: auto; min-height: 39px; color: #fff; border-color: #ffffff55; background: #ffffff18; }
  .sidebar nav { display: none; flex-basis: 100%; max-height: min(70vh, 540px); overflow-y: auto; padding: 12px 0 3px; }
  .sidebar.menu-open nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .sidebar nav a { min-height: 42px; padding: 8px 11px; }
  .nav-label, .sidebar-bottom { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 54px; }
}
@media (max-width: 700px) {
  main { padding: 25px 16px 55px; }
  .topbar { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .status { display: none; }
  .card { padding: 18px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .cycle-days { grid-template-columns: 1fr; }
  .stat-card { min-height: 120px; }
}
@media (max-width: 430px) {
  .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card strong { font-size: 26px; }
  .hero { padding: 25px 20px; }
  .form-grid { display: block; }
  .form-grid label, .form-grid button { width: 100%; margin-bottom: 11px; }
  .option-groups { grid-template-columns: 1fr; }
  .login-wrap { padding: 14px; }
  .release-hero { padding: 22px; }
}
@media print {
  .sidebar, .topbar, .hero-actions, .form-grid, button, .button, .footnote { display: none !important; }
  .main-shell { margin: 0; }
  body { background: white; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* Quantità, ricerca nel catalogo e ripartizione del servizio. */
.ingredient-picker { min-width: 230px; flex: 1 1 340px; display: grid; gap: 8px; }
.ingredient-picker label { min-width: 0; width: 100%; }
.ingredient-picker select { width: 100%; min-height: 142px; max-width: 100%; padding: 5px; }
.ingredient-picker option { padding: 8px; white-space: normal; }
.ingredient-picker small { color: var(--ink-soft); font-weight: 400; }
.quantity-field { display: flex; flex: 1 1 290px; gap: 10px; align-items: end; }
.quantity-field label { flex: 1 1 120px; min-width: 90px; }
.quantity-field input, .quantity-field select { width: 100%; }
.distribution { margin: 12px 0 26px; padding: 16px; background: #f2f8f5; border-radius: 12px; }
.distribution summary { font-weight: 700; cursor: pointer; }
.distribution table { min-width: 360px; }
.distribution td:first-child { min-width: 120px; }
.distribution input { max-width: 220px; }
.share-input { min-width: 85px; }
.share-portions { font-weight: 750; font-size: 18px; }
.share-status { font-weight: 700; }
button:disabled { opacity: .5; cursor: not-allowed; }
.bag-delivery { border-top: 1px solid #dce6e3; margin-top: 20px; padding-top: 20px; }
.card { min-width: 0; }
.menu-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.menu-columns .dish-list li { flex-wrap: wrap; }
.menu-columns .dish-list li span { flex-basis: 100%; }
.sidebar { overflow-y: auto; }
@media(max-width: 1200px) {
  .menu-columns { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
  .quantity-field { flex-wrap: wrap; }
  .distribution { padding: 10px; }
  .ingredient-picker { min-width: 0; }
}

/* Percorso guidato e correzioni. */
.guide-return { display: inline-block; margin-top: 12px; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.guide-focus { border-color: #a7d6c1; background: linear-gradient(120deg,#edf8f0,#fff); padding: 28px; }
.guide-focus h2 { font-size: clamp(22px,2.5vw,30px); max-width: 800px; line-height: 1.2; }
.guide-focus > p { max-width: 800px; }
.guide-focus .eyebrow { color: var(--teal); }
.guide-progress { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin: 20px 0; font-size: 13px; }
.guide-progress progress { width: min(260px,100%); height: 9px; appearance: none; border: 0; border-radius: 10px; background: #dcebe1; }
.guide-progress progress::-webkit-progress-bar { background: #dcebe1; border-radius: 10px; }
.guide-progress progress::-webkit-progress-value { background: var(--teal); border-radius: 10px; }
.guide-progress progress::-moz-progress-bar { background: var(--teal); border-radius: 10px; }
.guide-back { display: inline-block; margin: 10px 0 0 18px; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.guide-week { margin-top: 20px; }
.guide-steps { list-style: none; padding: 0; margin: 15px 0 28px; display: grid; gap: 12px; }
.guide-step { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; scroll-margin-top: 20px; }
.guide-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; background: #edf2ef; color: var(--ink-soft); }
.guide-step.is-current { border: 2px solid var(--teal); }
.guide-step.is-current .guide-number { background: var(--teal); color: white; }
.guide-step.is-done .guide-number { background: var(--mint); color: var(--teal-dark); }
.guide-step.is-locked { background: #f3f6f3; }
.guide-step.is-locked .pill { background: #e5eae7; color: #5c6e67; }
.guide-period { font-size: 13px; font-weight: 700; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.guide-heading h3 { margin: 0; font-size: 17px; }
.guide-step p { color: var(--ink-soft); margin-bottom: 12px; }
.guide-step .guide-detail { color: var(--ink); font-weight: 650; }
.guide-step .guide-locked { margin-bottom: 0; font-size: 13px; }
.guide-step details { margin: 12px 0; }
.guide-step summary, .guide-repairs summary { cursor: pointer; font-weight: 700; }
.guide-step form { margin-top: 16px; }
.guide-step .checkbox-field { display: flex; flex: 1 1 100%; gap: 10px; align-items: flex-start; font-weight: 500; }
.guide-step .checkbox-field input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; }
.guide-repairs[open] summary { margin-bottom: 16px; }
.guide-repair-links, .guide-daily { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.guide-repair-links { margin-bottom: 16px; }
.guide-repair-links a { background: #f0f6f2; border-radius: 9px; padding: 13px; color: var(--teal-dark); font-size: 13px; font-weight: 700; }
.recipe-undo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 15px; margin: 16px 0; border: 1px solid #d2e4d8; border-radius: 12px; background: #f0f7f2; }
.recipe-undo p, .recipe-undo form { margin: 0; }
.recipe-undo button { background: white; border: 1px solid var(--teal); color: var(--teal-dark); }
@media(max-width: 600px) {
  .guide-focus { padding: 20px; }
  .guide-back { display: block; margin-left: 0; }
  .guide-step { padding: 16px 12px; grid-template-columns: 29px minmax(0,1fr); gap: 10px; }
  .guide-number { width: 29px; height: 29px; }
  .guide-heading h3 { font-size: 16px; }
  .guide-step .button, .guide-step button { max-width: 100%; white-space: normal; }
  .guide-repair-links, .guide-daily { grid-template-columns: 1fr; }
  .recipe-undo { align-items: stretch; }
  .recipe-components table { min-width: 0; }
  .recipe-components thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .recipe-components tbody, .recipe-components tr, .recipe-components td { display: block; width: 100%; }
  .recipe-components tr { border-bottom: 1px solid var(--line); padding: 10px 0 16px; }
  .recipe-components td { padding: 8px 0; border: 0; }
  .recipe-components td:nth-child(1)::before, .recipe-components td:nth-child(2)::before { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 700; margin-bottom: 5px; }
  .recipe-components td:nth-child(1)::before { content: "Materia prima"; }
  .recipe-components td:nth-child(2)::before { content: "Quantità per porzione"; }
  .recipe-components .quantity-field { flex-basis: 100%; }
}
