/*
 * Event Configurator — foglio di stile del pannello (sostituisce globals.css; le classi esistenti restano valide).
 * Sistema: token di colore e spaziatura, navigazione laterale con menu a scomparsa su telefono, moduli e tabelle,
 * configuratore a due colonne con riepilogo fisso (calc-app) e barra inferiore su telefono.
 */
:root {
  --bg: #fbfbf9;
  --panel: #ffffff;
  --panel-2: #f6f6f3;
  --ink: #1a1a18;
  --muted: #5e5d58;
  --muted-2: #8e8d87;
  --line: #e4e2dc;
  --line-2: #cfccc4;
  --accent: #2449a8;
  --accent-hover: #1b3a8a;
  --accent-soft: #e9eefb;
  --accent-ink: #ffffff;
  --block: #b3261e;
  --block-bg: #fbe7e5;
  --approve: #9a5b00;
  --approve-bg: #fbf0d9;
  --warn: #3a5f8a;
  --warn-bg: #e8f0fa;
  --ok: #1e7a4f;
  --ok-bg: #e4f3ea;
  --info: #1d4f7a;
  --info-bg: #e2eef8;
  --chip: #eeede8;
  --nav-bg: #fbfbf9;
  --nav-ink: #5e5d58;
  --nav-ink-strong: #1a1a18;
  --nav-hover: #f0efea;
  --nav-line: #e4e2dc;
  --radius: 10px;
  --radius-s: 7px;
  --shadow: 0 1px 2px rgba(26, 26, 24, 0.04), 0 6px 20px rgba(26, 26, 24, 0.05);
  --shadow-lg: 0 12px 40px rgba(26, 26, 24, 0.16);
  --nav-w: 240px;
  --topbar-h: 56px;
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
/* Next Generation D, release 4 (18/11/2026): tema scuro — automatico dal sistema, oppure scelto nel menù (data-theme) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #161614; --panel: #1e1e1b; --panel-2: #232320; --ink: #f0efea; --muted: #b5b3ab; --muted-2: #817f77; --line: #2e2e2a; --line-2: #45453f; --accent: #8fa6f2; --accent-hover: #a9bbf6; --accent-soft: #1e2740; --accent-ink: #0f1526; --block: #f08c85; --block-bg: #3a1a18; --approve: #e2a94c; --approve-bg: #33280f; --warn: #8fb4e0; --warn-bg: #152233; --ok: #6cc59a; --ok-bg: #15291f; --info: #8fb4e0; --info-bg: #152233; --chip: #2a2a27; --nav-bg: #1a1a18; --nav-ink: #b5b3ab; --nav-ink-strong: #f0efea; --nav-hover: #262623; --nav-line: #2e2e2a; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #161614; --panel: #1e1e1b; --panel-2: #232320; --ink: #f0efea; --muted: #b5b3ab; --muted-2: #817f77; --line: #2e2e2a; --line-2: #45453f; --accent: #8fa6f2; --accent-hover: #a9bbf6; --accent-soft: #1e2740; --accent-ink: #0f1526; --block: #f08c85; --block-bg: #3a1a18; --approve: #e2a94c; --approve-bg: #33280f; --warn: #8fb4e0; --warn-bg: #152233; --ok: #6cc59a; --ok-bg: #15291f; --info: #8fb4e0; --info-bg: #152233; --chip: #2a2a27; --nav-bg: #1a1a18; --nav-ink: #b5b3ab; --nav-ink-strong: #f0efea; --nav-hover: #262623; --nav-line: #2e2e2a; --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5); color-scheme: dark; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; letter-spacing: -0.005em; }
h3 { font-size: 1rem; margin: 1rem 0 0.4rem; }
h4 { font-size: 0.92rem; margin: 0.8rem 0 0.3rem; }
.lede { color: var(--muted); margin: 0 0 1rem; max-width: 70ch; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Struttura: barra superiore (telefono), navigazione a categorie, contenuto ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.topbar { display: none; }
.nav-backdrop { display: none; }
.nav { background: var(--nav-bg); color: var(--nav-ink); border-right: 1px solid var(--nav-line); padding: 1rem 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.nav-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin: 0 0.35rem 0.75rem; }
.nav .brand { color: var(--nav-ink-strong); font-weight: 700; letter-spacing: 0.01em; font-size: 1rem; line-height: 1.2; }
.nav .brand small { display: block; color: var(--muted-2); font-weight: 400; font-size: 0.74rem; margin-top: 0.15rem; }
.nav-close { display: none; }
.nav-search input { width: 100%; padding: 0.5rem 0.65rem; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: inherit; font-size: 0.88rem; margin-bottom: 0.5rem; }
.nav-search input::placeholder { color: var(--muted-2); }
.nav-cta { display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-s); padding: 0.55rem 0.8rem; font-weight: 600; font-size: 0.9rem; margin: 0 0 0.6rem; }
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }
.nav .ico { flex: none; opacity: 0.85; }
.nav-link { display: flex; align-items: center; gap: 0.6rem; color: var(--nav-ink); padding: 0.45rem 0.65rem; border-radius: var(--radius-s); font-size: 0.92rem; line-height: 1.25; }
.nav-link:hover { background: var(--nav-hover); color: var(--nav-ink-strong); text-decoration: none; }
.nav-link.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav-link.top { font-weight: 500; }
.nav-group { margin: 0; }
.nav-group summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.65rem; border-radius: var(--radius-s); cursor: pointer; list-style: none; color: var(--nav-ink); font-weight: 600; font-size: 0.92rem; user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--nav-hover); color: var(--nav-ink-strong); }
.nav-group summary .chev { margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid var(--muted-2); border-bottom: 1.6px solid var(--muted-2); transform: rotate(-45deg); transition: transform 0.15s ease; }
.nav-group[open] summary .chev { transform: rotate(45deg); }
.nav-group.current summary { color: var(--nav-ink-strong); }
.nav-group.current summary .ico { color: var(--accent); opacity: 1; }
.nav-links { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.15rem 0 0.4rem 1.05rem; position: relative; }
.nav-links::before { content: ''; position: absolute; left: 0.95rem; top: 0.2rem; bottom: 0.5rem; width: 1px; background: var(--nav-line); }
.nav-links .nav-link { padding: 0.38rem 0.6rem 0.38rem 0.95rem; font-size: 0.88rem; color: var(--nav-ink); }
.nav-links .nav-link.active { color: var(--accent-ink); }
.nav .user { margin-top: auto; font-size: 0.78rem; color: var(--muted-2); padding: 0.75rem 0.5rem 0; border-top: 1px solid var(--nav-line); display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; align-items: center; }
.nav .user strong { color: var(--nav-ink-strong); display: block; font-size: 0.85rem; }
.nav .user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .user form { grid-column: 2; grid-row: 1 / span 2; }
.nav .user button { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.main { padding: 1.6rem 2rem 4rem; max-width: 1320px; width: 100%; min-width: 0; }

/* ---------- Superfici, griglie, tabelle, badge ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; }
.kpi .label { color: var(--muted); font-size: 0.8rem; }
.kpi .value { font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
tr.muted td { color: var(--muted); }
.badge { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge.block { color: var(--block); background: var(--block-bg); }
.badge.approve { color: var(--approve); background: var(--approve-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.suggest { color: var(--muted); background: var(--chip); }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.neutral { color: var(--muted); background: var(--chip); }
.badge.info { color: var(--info); background: var(--info-bg); }
.status { padding: 0.85rem 1.05rem; border-radius: var(--radius-s); font-weight: 600; margin-bottom: 1rem; border: 1px solid transparent; }
.status.blocked { background: var(--block-bg); color: var(--block); border-color: #f1c4bf; }
.status.needs_approval { background: var(--approve-bg); color: var(--approve); border-color: #f0dcae; }
.status.ready { background: var(--ok-bg); color: var(--ok); border-color: #bfe0c8; }
.diag { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.diag li { display: grid; grid-template-columns: 118px 1fr; gap: 0.75rem; align-items: start; padding: 0.55rem 0.65rem; border-radius: var(--radius-s); background: var(--panel-2); border: 1px solid var(--line); }
.diag li .msg small { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 0.15rem; }
.error { color: var(--block); background: var(--block-bg); padding: 0.65rem 0.85rem; border-radius: var(--radius-s); margin-bottom: 0.8rem; border: 1px solid #f1c4bf; }
.note { color: var(--muted); font-size: 0.85rem; }
details.json summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
pre.json { background: var(--nav-bg); color: var(--nav-ink); padding: 0.75rem; border-radius: var(--radius-s); overflow: auto; font-size: 0.78rem; }
.when { font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; color: #3e3a33; white-space: pre-wrap; }

/* ---------- Pulsanti e moduli ---------- */
button, .btn, a.button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-s); padding: 0.6rem 1.05rem; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; display: inline-flex; align-items: center; gap: 0.4rem; justify-content: center; transition: background 0.12s ease, transform 0.06s ease; }
button:hover, .btn:hover, a.button:hover { background: var(--accent-hover); text-decoration: none; }
button:active { transform: translateY(1px); }
button.secondary, .btn.secondary, a.button.secondary { background: var(--chip); color: var(--ink); }
button.secondary:hover, .btn.secondary:hover, a.button.secondary:hover { background: #e1ddd2; }
button.ghost { background: transparent; color: var(--accent); padding-inline: 0.5rem; }
button.ghost:hover { background: var(--accent-soft); }
button:disabled, .button:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.login { max-width: 400px; margin: 10vh auto; }
.login input { width: 100%; padding: 0.6rem 0.65rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); font: inherit; margin: 0.2rem 0 0.8rem; }
form.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem 1rem; margin: 0 0 1rem; background: var(--panel); min-width: 0; }
form.calc legend { font-weight: 600; padding: 0 0.4rem; }
form.calc label, .field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
form.calc input[type='number'], form.calc input[type='text'], form.calc input[type='date'], form.calc input[type='email'], form.calc input[type='search'], form.calc select,
.field input[type='number'], .field input[type='text'], .field input[type='date'], .field input[type='email'], .field input[type='search'], .field select, .field textarea {
  width: 100%; min-height: 40px; padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); font: inherit; background: var(--panel); color: var(--ink); }
form.calc select, .field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2365706b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2rem; }
form.calc input:focus, form.calc select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
form.calc .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
form.calc .check, .check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--ink); margin: 0.25rem 0; }
form.calc .check input, .check input { width: auto; min-height: 0; accent-color: var(--accent); }
form.calc select option[data-guide='blocked'] { color: #9a9a90; font-style: italic; }
form.calc select option[data-guide='approval'] { color: var(--approve); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); }
.autosave-status { font-size: 0.8rem; color: var(--muted); margin-left: 0.6rem; }
.autosave-status.saving { color: var(--approve); }
.autosave-status.saved { color: var(--ok); }
.autosave-status.error { color: var(--block); }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8em; padding: 0.05rem 0.35rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); }
.shortcuts { position: fixed; inset: 0; background: rgba(22, 33, 31, 0.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.shortcuts .box { background: var(--panel); border-radius: var(--radius); padding: 1.2rem 1.5rem; max-width: 460px; width: 90%; box-shadow: var(--shadow-lg); }
.shortcuts table td { padding: 0.25rem 0.5rem; }

/* vecchio ricalcolo a pagina intera (moduli diversi dal configuratore) */
.components { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.components .slot { border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 0.5rem 0.75rem; }
.components .slot h4 { margin: 0 0 0.4rem; font-size: 0.85rem; }
.components .slot h4 small { color: var(--muted); font-weight: 400; }
.components .opt { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.88rem; padding: 0.15rem 0; }
.components .opt .price { color: var(--muted); font-variant-numeric: tabular-nums; }
.components .opt input[type='number'] { width: 110px; padding: 0.2rem 0.4rem; }
.calc-summary { position: sticky; top: 0; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.9rem; margin: 0 0 0.9rem; box-shadow: var(--shadow); }
.calc-summary .cs-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.calc-summary .cs-total { font-size: 1.35rem; }
.calc-summary .cs-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.85rem; margin-top: 0.25rem; }
.calc-summary .cs-time { margin-left: auto; }

/* ---------- Configuratore (calc-app): due colonne, passi, scelte a schede, riepilogo fisso ---------- */
.calc-app { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 1.5rem; align-items: start; }
.calc-main { min-width: 0; }
.page-head { margin-bottom: 1rem; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.84rem; font-weight: 500; }
.chip.neutral { background: var(--chip); color: var(--ink); }
.chip a { color: inherit; text-decoration: underline; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0 0 1rem; box-shadow: var(--shadow); min-width: 0; }
.step-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.9rem; }
.step-head .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-2px); }
.step-head h2 { margin: 0; font-size: 1.08rem; }
.step-head .hint { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
/* B3 (LR-C4): intestazione a due righe (titolo + sintesi delle scelte), stato del passo; sul telefono i passi si chiudono */
.step-title { display: flex; flex-direction: column; min-width: 0; }
.step-sum { color: var(--muted); font-size: 0.82rem; margin-top: 0.1rem; }
.step-state { display: none; }
.step-head .chev { display: none; }
.fix-list { display: none; }
.net-notice { background: #fff4e5; border: 1px solid #f0c48a; color: #6b4a12; border-radius: var(--radius-s); padding: 0.6rem 0.8rem; margin-bottom: 0.8rem; font-size: 0.9rem; }
.net-notice[hidden] { display: none; }
.bar-action { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem 1rem; }
.field-grid.narrow { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field-grid.evento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-grid.evento .span-2 { grid-column: span 2; }
.exp-current { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 0.9rem; border: 1px solid var(--accent); box-shadow: inset 0 0 0 1px var(--accent); border-radius: var(--radius-s); background: var(--accent-soft); }
.exp-current-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.exp-current-body strong { font-size: 1rem; }
.exp-current .desc, .exp-card .desc { color: var(--muted); font-size: 0.82rem; }
.exp-current button { flex: none; padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.exp-picker.chosen:not(.open) .exp-groups { display: none; }
.exp-picker.open .exp-current { display: none; }
.exp-group-title { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin: 0.8rem 0 0.4rem; }
.exp-group-title:first-child { margin-top: 0.2rem; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.6rem; }
form.calc label.exp-card, .exp-card { position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 2.1rem 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); cursor: pointer; color: var(--ink); font-size: 0.9rem; margin: 0; min-width: 0; transition: border-color 0.12s ease, background 0.12s ease; }
.exp-card:hover { border-color: var(--line-2); }
.exp-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.exp-card input { position: absolute; top: 0.75rem; right: 0.75rem; width: 16px; height: 16px; margin: 0; }
.exp-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.exp-card .name { font-weight: 600; line-height: 1.25; }
.exp-card .occ { color: var(--accent); font-size: 0.76rem; }
.readonly { min-height: 40px; display: flex; align-items: center; padding: 0.45rem 0.6rem; border: 1px dashed var(--line-2); border-radius: var(--radius-s); color: var(--muted); font-size: 0.9rem; background: var(--panel-2); }
.seg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem 1rem; margin-top: 0.9rem; }
.segmented { display: inline-flex; width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--panel); padding: 3px; gap: 2px; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label { flex: 1; text-align: center; padding: 0.4rem 0.5rem; border-radius: 6px; font-size: 0.88rem; color: var(--muted); cursor: pointer; margin: 0; user-select: none; }
.segmented input:checked + label { background: var(--ink); color: var(--bg); font-weight: 600; }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
form.calc .segmented label { display: block; }
.field .help { color: var(--muted); font-size: 0.76rem; margin-top: 0.25rem; }
.toggles { display: flex; flex-wrap: wrap; gap: 0.35rem 1.3rem; margin-top: 0.9rem; }
.toggles .check { margin: 0; }
/* contatore ospiti */
.stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; background: var(--panel); }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 600; font-size: 1.05rem; min-height: 42px !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none !important; }
.stepper button { background: var(--panel-2); color: var(--ink); border-radius: 0; padding: 0; font-size: 1.15rem; font-weight: 500; min-height: 42px; border-inline: 1px solid var(--line); }
.stepper button:first-child { border-left: 0; }
.stepper button:last-child { border-right: 0; }
.stepper button:hover { background: var(--chip); }
/* scelte a schede */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; }
.slot-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem 0.6rem; background: var(--panel-2); min-width: 0; }
.slot-card.required { border-color: #cfdedb; background: var(--panel-2); }
.slot-card h4 { margin: 0 0 0.55rem; font-size: 0.9rem; display: flex; align-items: baseline; gap: 0.45rem; }
.slot-card h4 small { color: var(--muted); font-weight: 500; font-size: 0.74rem; }
form.calc label.choice, .choice { display: grid; color: var(--ink); font-size: 0.9rem; margin-bottom: 0.4rem; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0.65rem; margin: 0 0 0.4rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease; }
.choice:hover { border-color: var(--line-2); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input[type='radio'], .choice input[type='checkbox'] { width: 18px; height: 18px; margin: 0; }
.choice .name { font-size: 0.9rem; line-height: 1.3; min-width: 0; }
.choice .price { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.choice.none .name { color: var(--muted); }
.choice-extra { display: none; grid-column: 1 / -1; gap: 0.4rem; flex-wrap: wrap; padding-top: 0.2rem; }
.choice:has(input:checked) .choice-extra, .choice-extra.always { display: flex; }
.choice-extra input { min-height: 34px !important; padding: 0.3rem 0.5rem !important; width: auto !important; max-width: 160px; font-size: 0.85rem; }
.choice-extra input[type='text'] { max-width: 100%; flex: 1 1 160px; }
.auto-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.82rem; }
/* riepilogo fisso */
.calc-side { position: sticky; top: 1.25rem; min-width: 0; }
.summary-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.05rem 1.2rem 1.1rem; }
.summary-card .status { margin: 0 0 0.7rem; padding: 0.55rem 0.8rem; font-size: 0.84rem; }
.summary-card .status.neutral { background: var(--chip); color: var(--muted); border-color: transparent; }
.summary-card .total { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-card .empty { color: var(--muted); font-size: 0.9rem; padding: 0.4rem 0 0.2rem; }
.summary-card .total small { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 0.2rem; }
.summary-card .kv { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.86rem; padding: 0.42rem 0; border-top: 1px solid var(--line); }
.summary-card .kv:first-of-type { border-top: 0; }
.summary-card .kv .k { color: var(--muted); }
.summary-card .kv .v { font-variant-numeric: tabular-nums; text-align: right; }
.summary-card .section-title { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0.9rem 0 0.3rem; font-weight: 600; }
.progress { height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 0.2rem; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.progress.done i { background: var(--ok); }
.summary-card .cta { margin-top: 1rem; display: grid; gap: 0.5rem; }
.summary-card .cta button { width: 100%; min-height: 44px; font-size: 0.95rem; }
.live-status { font-size: 0.8rem; color: var(--muted); min-height: 1.2em; transition: opacity 0.2s ease; }
.live-status.busy { color: var(--approve); }
.live-status.error { color: var(--block); }
.calc-app.updating .summary-card .total, .calc-app.updating .summary-card .kv, .calc-app.updating .calc-detail { opacity: 0.55; transition: opacity 0.15s ease 0.15s; }
.lines-mini { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.lines-mini li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; border-top: 1px dashed var(--line); }
.lines-mini li:first-child { border-top: 0; }
.lines-mini .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines-mini .muted { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; font-size: 0.85rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-s); background: var(--panel-2); border: 1px solid var(--line); }
.checks li .badge { margin-top: 0.1rem; }
.checks li small { display: block; color: var(--muted); font-size: 0.74rem; }
.goto { display: inline-block; margin-left: 0.35rem; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
:target { scroll-margin-top: 5rem; }
.field-flash { animation: field-flash 1.6s ease; }
@keyframes field-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } 100% { box-shadow: none; } }
.calc-detail { margin-top: 1rem; }
.calc-detail > details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; margin-bottom: 0.7rem; }
.calc-detail > details > summary { cursor: pointer; padding: 0.85rem 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.calc-detail > details > summary::-webkit-details-marker { display: none; }
.calc-detail > details > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; transition: transform 0.15s ease; }
.calc-detail > details[open] > summary::after { transform: rotate(-135deg); }
.calc-detail > details > .body { padding: 0 0 1rem; }
.calc-detail .panel { box-shadow: none; }
.bottom-bar { display: none; }
.side-toggle { display: none; }
.tabbar { display: none; }

/* ---------- Scheda trattativa (22/10): testata, prossimo passo, sezioni ancorate ---------- */
.deal-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.2rem; margin-bottom: 0.9rem; }
.deal-head-top { display: flex; gap: 1.25rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.deal-id { min-width: 0; flex: 1 1 320px; }
.eyebrow { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.3rem; font-weight: 600; }
.deal-id h1 { margin-bottom: 0.45rem; overflow-wrap: anywhere; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; align-items: center; color: var(--muted); font-size: 0.86rem; margin: 0; }
.deal-meta .badge { font-size: 0.8rem; }
.deal-next { flex: 0 1 380px; min-width: 260px; border-radius: var(--radius); padding: 0.85rem 1rem 0.95rem; background: var(--ok-bg); border: 1px solid #bfe0c8; display: grid; gap: 0.25rem; align-content: start; }
.deal-next .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--ok); }
.deal-next strong { font-size: 1rem; line-height: 1.3; }
.deal-next .note { color: var(--muted); }
.deal-next .button { justify-self: start; margin-top: 0.35rem; padding: 0.45rem 0.9rem; font-size: 0.86rem; }
.deal-next.approve { background: var(--approve-bg); border-color: #f0dcae; } .deal-next.approve .k { color: var(--approve); }
.deal-next.block { background: var(--block-bg); border-color: #f1c4bf; } .deal-next.block .k { color: var(--block); }
.deal-next.neutral { background: var(--panel-2); border-color: var(--line); } .deal-next.neutral .k { color: var(--muted); }
.deal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.fact { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.55rem 0.75rem; min-width: 0; }
.fact .k { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.fact .v { font-weight: 600; font-size: 0.98rem; margin-top: 0.15rem; overflow-wrap: anywhere; line-height: 1.35; }
.fact .v small { color: var(--muted); font-weight: 400; font-size: 0.8rem; display: block; }
.fact .v .badge { font-size: 0.72rem; white-space: normal; }
.deal-nav { position: sticky; top: 0; z-index: 30; display: flex; gap: 0.2rem; overflow-x: auto; background: var(--bg); padding: 0.45rem 0; margin: 0 0 0.9rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.deal-nav::-webkit-scrollbar { display: none; }
.deal-nav a { white-space: nowrap; padding: 0.4rem 0.8rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.deal-nav a:hover { background: var(--chip); text-decoration: none; color: var(--ink); }
.deal-nav .cnt { background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.68rem; font-weight: 700; padding: 0 0.42rem; line-height: 1.5; }
.section { scroll-margin-top: 58px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin: 0 0 0.7rem; }
.section-head h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.section-head h2 small { font-weight: 500; font-size: 0.82rem; }
.line-status { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0.6rem; }
.line-status .badge { font-size: 0.78rem; }
.subcard { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.85rem 1rem; background: var(--panel-2); margin-top: 0.9rem; min-width: 0; }
.subcard h4 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.subcard h4 small { font-weight: 500; }
.subcard.outcome { background: var(--panel); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.two-col .subcard { margin-top: 0.9rem; }
/* B1 (UXH-010): i codici tecnici dei controlli stanno in un «dettaglio tecnico» chiudibile, non nel testo operativo */
details.tech { display: inline-block; margin-left: 0.35rem; vertical-align: baseline; }
details.tech > summary { cursor: pointer; color: var(--muted); font-size: 0.78rem; list-style: none; display: inline; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech[open] > summary { display: none; }
details.tech > code { font-size: 0.78rem; color: var(--muted); }
/* B4 (LR-D6): «Altre azioni» — elenco delle azioni disponibili, con collegamento alla sezione dove si eseguono (stessa conferma) */
.other-actions { display: none; margin: -0.3rem 0 0.9rem; }
.other-actions > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 0.88rem; }
.other-actions > summary::-webkit-details-marker { display: none; }
.other-actions > summary::before { content: '⋯'; font-size: 1.1rem; line-height: 1; }
.other-actions .sheet-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-top: 0.5rem; box-shadow: var(--shadow-lg); }
.other-actions ul { list-style: none; margin: 0; padding: 0; }
.other-actions li a { display: flex; align-items: center; min-height: 44px; padding: 0.3rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.other-actions li:last-child a { border-bottom: 0; }
.other-actions ul.state li a { color: var(--block); }
.other-actions .note { margin: 0.6rem 0 0.1rem; }
details.sub { margin-top: 0.8rem; }
details.sub > summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
details.sub > summary::-webkit-details-marker { display: none; }
details.sub > summary::before { content: ''; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
details.sub[open] > summary::before { transform: rotate(45deg); }
details.sub > :not(summary) { margin-top: 0.5rem; }
.ops-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; }
.ops-tiles a { display: block; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.85rem; color: var(--ink); font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.ops-tiles a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-top: 0.15rem; }
.ops-tiles a:hover { border-color: var(--accent); text-decoration: none; background: var(--panel); }
.form-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; align-items: flex-end; margin: 0.8rem 0 0; }
.form-row label.f, .stack label.f { display: grid; gap: 0.2rem; font-size: 0.76rem; color: var(--muted); font-weight: 600; min-width: 0; }
.form-row label.f small, .stack label.f small { font-weight: 400; }
.form-row label.f input, .form-row label.f select, .stack label.f input { font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--panel); min-height: 38px; width: 100%; }
.form-row label.f input:focus, .form-row label.f select:focus, .stack label.f input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-row .w-s { width: 7.5rem; } .form-row .w-m { width: 14rem; } .form-row .w-l { min-width: 16rem; flex: 1 1 18rem; }
.form-row button { min-height: 38px; }
.form-row .note { flex-basis: 100%; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.82rem; min-height: 0; }
.actions.compact { margin: 0; gap: 0.4rem; }
form.inline { display: inline; }
.stack { display: grid; gap: 0.4rem; justify-items: start; min-width: 10rem; }
.stack label.f { width: 100%; }
.stack.revoke { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--line-2); }
/* B2 (UXH-005): le tabelle larghe scorrono dentro il proprio riquadro con un'ombra sui bordi come indizio, raggiungibile
   da tastiera (tabindex=0 nel markup); il resto della pagina non scorre mai in orizzontale */
.table-wrap { overflow-x: auto; margin-top: 0.4rem; max-width: 100%; background: linear-gradient(to right, var(--panel) 30%, rgba(255,255,255,0)), linear-gradient(to right, rgba(255,255,255,0), var(--panel) 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(23,32,30,0.18), rgba(23,32,30,0)), radial-gradient(farthest-side at 100% 50%, rgba(23,32,30,0.18), rgba(23,32,30,0)) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table-wrap table { min-width: 100%; }
code, .mono { overflow-wrap: anywhere; }
tr.self td { font-weight: 600; background: var(--panel-2); }
.link-token { font-size: 0.75rem; word-break: break-all; }
.send-cell { min-width: 12rem; }
table.proposals { min-width: 100%; }
table.proposals .badge { white-space: normal; }
table.proposals td:nth-child(6) { min-width: 12rem; }
.issue-row { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel-2); }
.issue-row .previews .k { font-weight: 600; }
.issue-row .actions.issue { margin: 0; }
.diag li.block { border-left: 3px solid var(--block); }
.diag li.warn { border-left: 3px solid var(--warn); }
.diag.warnings { margin-top: 0.5rem; }
.status.followup { display: grid; gap: 0.4rem; }
.status.followup .form-row { margin: 0; }
.kpis { margin-bottom: 0.6rem; }
.version-title { margin-top: 1.6rem; }
.version-title small { font-weight: 400; font-size: 0.82rem; }
label.check.block { display: block; }

/* ---------- Riepilogo: «cosa devo fare adesso» (22/10) ---------- */
.h-section { margin-top: 1.6rem; }
.agenda { margin-bottom: 1rem; }
.agenda-empty { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.agenda-empty .button { margin-left: auto; }
.agenda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.9rem; }
.agenda-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 0.9rem 1rem 0.8rem; display: flex; flex-direction: column; min-width: 0; }
.agenda-card.approve { border-left-color: var(--approve); }
.agenda-card.block { border-left-color: var(--block); }
.agenda-card.ok { border-left-color: var(--ok); }
.agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.agenda-head h2 { margin: 0; font-size: 0.98rem; }
.agenda-head .cnt { background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.74rem; font-weight: 700; padding: 0.05rem 0.5rem; }
.agenda-card.approve .cnt { background: var(--approve); } .agenda-card.block .cnt { background: var(--block); } .agenda-card.ok .cnt { background: var(--ok); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.agenda-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 0.5rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-s); color: var(--ink); background: var(--panel-2); border: 1px solid transparent; }
.agenda-list a:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel); }
.agenda-list .l { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-list .d { grid-column: 1; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.agenda-list .b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.72rem; font-weight: 600; color: var(--approve); background: var(--approve-bg); border-radius: 999px; padding: 0.1rem 0.5rem; white-space: nowrap; }
.agenda-card.block .agenda-list .b { color: var(--block); background: var(--block-bg); }
.agenda-card.ok .agenda-list .b { color: var(--ok); background: var(--ok-bg); }
.agenda-card .more { margin-top: auto; padding-top: 0.6rem; font-size: 0.84rem; font-weight: 600; }

/* ---------- Elenco trattative: filtri, vista tabella/pipeline (22/10) ---------- */
.list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.list-head .lede { margin-bottom: 0.5rem; }
.view-switch { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 0.2rem; flex: none; }
.view-switch a { padding: 0.35rem 0.9rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.86rem; }
.view-switch a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.view-switch a:hover { text-decoration: none; color: var(--ink); }
.filters { margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.filters .chips { margin: 0; }
.chip strong { font-weight: 700; }
.form-row.compact { margin: 0; }
th a.sort { color: inherit; }
th a.sort.on::after { content: ' \2193'; }
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; align-items: start; }
.stage { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.7rem 0.6rem; min-width: 0; }
.stage.empty { opacity: 0.6; }
.stage header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.stage h2 { margin: 0; font-size: 0.86rem; line-height: 1.25; }
.stage-meta { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.stage-meta .cnt { background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.7rem; font-weight: 700; padding: 0.05rem 0.5rem; }
.stage-meta .tot { color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; margin-top: 0.15rem; white-space: nowrap; }
.deal-card { display: grid; gap: 0.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.6rem 0.7rem; margin-bottom: 0.5rem; color: var(--ink); box-shadow: var(--shadow); }
.deal-card:hover { text-decoration: none; border-color: var(--accent); }
.deal-card .num { color: var(--muted); font-size: 0.74rem; }
.deal-card strong { font-size: 0.95rem; line-height: 1.25; }
.deal-card .meta { color: var(--muted); font-size: 0.78rem; display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; }
.deal-card .meta .warn { color: var(--block); font-weight: 600; }
.deal-card .total { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 0.15rem; }

/* ---------- Griglie modificabili (ospiti, scaletta, checklist, scheda di servizio) (22/10) ---------- */
table.grid-edit td { padding: 0.3rem 0.3rem; vertical-align: top; }
table.grid-edit th.w-s, table.grid-edit td.w-s { width: 6.5rem; }
table.grid-edit th.w-m { width: 11rem; }
table.grid-edit th.w-l { min-width: 14rem; }
form.calc table.grid-edit input[type='text'], form.calc table.grid-edit input[type='number'], form.calc table.grid-edit input[type='date'], form.calc table.grid-edit input[type='time'], form.calc table.grid-edit select,
table.grid-edit input[type='text'], table.grid-edit input[type='number'], table.grid-edit input[type='date'], table.grid-edit input[type='time'], table.grid-edit select { width: 100%; min-width: 5rem; font: inherit; font-size: 0.9rem; color: var(--ink); padding: 0.42rem 0.5rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--panel); min-height: 36px; }
table.grid-edit select { min-width: 7.5rem; }
table.grid-edit input:focus, table.grid-edit select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
table.grid-edit input:disabled, table.grid-edit select:disabled { background: var(--panel-2); color: var(--muted); }
table.grid-edit input.flag { border-color: var(--block); background: var(--block-bg); font-weight: 600; }
table.grid-edit td.chk { text-align: center; }
table.grid-edit td.chk input { width: 1.1rem; height: 1.1rem; min-height: 0; margin-top: 0.6rem; }
table.grid-edit label.check { display: flex; gap: 0.3rem; align-items: center; font-size: 0.82rem; margin-bottom: 0.25rem; }
table.grid-edit td .note { font-size: 0.74rem; margin-top: 0.15rem; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
label.f.block { display: grid; gap: 0.2rem; font-size: 0.76rem; color: var(--muted); font-weight: 600; margin: 0.6rem 0; }
label.f.block textarea { width: 100%; font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.45rem 0.6rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--panel); }
.change-list { margin: 0.3rem 0 0 1.2rem; padding: 0; }
.kpi .value.small { font-size: 1.05rem; }
.page-head .eyebrow a { color: var(--accent); }

/* ---------- Diario della trattativa: note e attività (22/10) ---------- */
.note-form { margin-bottom: 1rem; padding: 0.8rem 1rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); }
.note-form label.f.block { margin: 0 0 0.5rem; }
.feed { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.feed li { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 0.45rem 0 0.45rem 1.1rem; }
.feed li::before { content: ''; position: absolute; left: -6px; top: 0.8rem; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); border: 2px solid #fff; }
.feed li.note::before { background: var(--accent); }
.feed li.event::before { background: var(--warn); }
.feed .when { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; padding-top: 0.1rem; white-space: nowrap; }
.feed .what { font-size: 0.9rem; min-width: 0; }
.feed .who { font-weight: 600; }
.feed .ref { color: var(--muted); font-size: 0.76rem; }
.feed .body { margin-top: 0.25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.feed li.note .body { background: var(--accent-soft); border-radius: var(--radius-s); padding: 0.5rem 0.7rem; }
.feed li.audit .body { color: var(--muted); font-size: 0.84rem; }

/* ---------- Calendario spazi (22/10): griglia su desktop, lista per giorno sul telefono ---------- */
.month-nav { display: flex; gap: 0.5rem; flex: none; }
.month-nav .button { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
.filters .legend { margin: 0; }
.cal-wrap { margin-top: 0.4rem; }
table.cal { font-size: 0.78rem; border-collapse: collapse; }
table.cal th.sticky, table.cal td.sticky { position: sticky; left: 0; background: var(--panel); white-space: nowrap; z-index: 1; box-shadow: 1px 0 0 var(--line); }
table.cal th.day { text-align: center; padding: 0.2rem 0.15rem; min-width: 1.7rem; line-height: 1.15; }
table.cal th.day.we { color: var(--block); }
table.cal th.today, table.cal td.today { background: var(--approve-bg); }
table.cal td.cell { text-align: center; padding: 0.15rem; vertical-align: top; border-left: 1px solid var(--line); }
table.cal .mark { display: block; border-radius: 4px; padding: 0.1rem 0.2rem; margin-bottom: 1px; text-decoration: none; font-size: 0.72rem; line-height: 1.3; }
table.cal .mark small { font-size: 0.62rem; font-weight: 500; margin-left: 1px; }
.cal-list { display: none; }
.cal-day { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.cal-day.today { background: var(--approve-bg); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: var(--radius-s); }
.cal-date { text-align: center; line-height: 1.1; }
.cal-date .wd { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; }
.cal-date .dn { display: block; font-size: 1.3rem; font-weight: 700; }
.cal-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.cal-day li a { display: block; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.45rem 0.6rem; font-size: 0.88rem; line-height: 1.35; }
.cal-day li a:hover { text-decoration: none; border-color: var(--accent); }
.cal-day li .note { display: block; }

/* ---------- Telefono e tablet ---------- */
@media (max-width: 1100px) {
  .calc-app { grid-template-columns: 1fr; }
  .field-grid.evento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-side { position: static; }
}
@media (max-width: 900px) {
  /* B2 (UXH-006, 008): campi a 16 px, bersagli di tocco di almeno 44 px (riga di etichetta o spaziatura, non grafica) */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } /* !important: vince sulle regole specifiche dei campi (segmented, stepper, grid-edit…); solo sotto 900 px */
  button, .btn, .button, .actions a, .tabbar a, .topbar-cta, .side-toggle { min-height: 44px; }
  label.check, .toggles label, .choice, .segmented label, label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height: 44px; }
  label.check, .toggles label { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0; }
  .exp-card { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 1.25rem; height: 1.25rem; flex: none; }
  .grid-edit td input[type=checkbox], td > input[type=checkbox] { margin: 0.75rem; }
  td select, td input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
  .shell { grid-template-columns: 1fr; align-content: start; } /* 6/11: con poco contenuto le righe non si distribuivano in altezza e la pagina partiva a metà schermo */
  .topbar { display: flex; position: sticky; top: 0; z-index: 40; height: var(--topbar-h); align-items: center; gap: 0.75rem; padding: 0 0.75rem 0 0.5rem; background: var(--nav-bg); color: var(--nav-ink-strong); border-bottom: 1px solid var(--nav-line); }
  .topbar .brand { font-weight: 700; font-size: 1rem; line-height: 1.15; min-width: 0; display: flex; flex-direction: column; }
  .topbar .brand .where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .brand small { color: var(--muted-2); font-weight: 400; font-size: 0.7rem; }
  .nav-toggle { background: transparent; border: 0; color: var(--nav-ink-strong); padding: 0.5rem 0.55rem; border-radius: var(--radius-s); font-weight: 500; font-size: 0.8rem; display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; line-height: 1; }
  .nav-toggle .burger { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; margin: 6px 0; }
  .topbar-cta { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.4rem 0.8rem; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
  .topbar-cta:hover { text-decoration: none; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 330px); height: 100vh; z-index: 60; transform: translateX(-104%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); padding-top: 0.9rem; }
  .shell.nav-open .nav { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(23, 32, 30, 0.45); z-index: 55; display: none; }
  .shell.nav-open .nav-backdrop { display: block; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-2); color: var(--nav-ink-strong); width: 34px; height: 34px; padding: 0; font-size: 0.95rem; flex: none; }
  .nav-link, .nav-group summary { padding-top: 0.6rem; padding-bottom: 0.6rem; font-size: 0.98rem; }
  .nav-links .nav-link { font-size: 0.93rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .main { padding: 1rem 1rem 6.5rem; overflow-x: hidden; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--panel); border-top: 1px solid var(--line); padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(23, 32, 30, 0.08); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; color: var(--muted); font-size: 0.68rem; font-weight: 500; padding: 0.3rem 0.2rem; border-radius: var(--radius-s); background: transparent; border: 0; font-family: inherit; line-height: 1.1; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar .active { color: var(--accent); }
  .tabbar .new .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: -8px; box-shadow: 0 4px 12px rgba(15, 92, 90, 0.35); }
  .tabbar .new { color: var(--accent); }
  .tabbar .burger-s { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; margin: 10px 0; }
  .shell:has(.calc-side) .tabbar { display: none; }
  .topbar-cta { display: none; }
  .panel { overflow-x: auto; }
  .deal-head { padding: 0.9rem 1rem 1rem; }
  .deal-head-top { flex-direction: column; gap: 0.8rem; }
  .deal-id, .deal-next { flex: 0 0 auto; }
  .hide-sm { display: none; }
  .deal-next { flex-basis: auto; width: 100%; min-width: 0; }
  .deal-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-nav { top: var(--topbar-h); margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .section { scroll-margin-top: calc(var(--topbar-h) + 52px); }
  .two-col { grid-template-columns: 1fr; }
  .form-row .w-s, .form-row .w-m { width: 100%; }
  .form-row label.f { flex: 1 1 100%; }
  .form-row button { flex: 1 1 auto; min-height: 44px; } /* A2c-5: la regola generale .form-row button (38 px) vinceva per specificità */
  .issue-row { flex-direction: column; align-items: stretch; }
  .issue-row .actions.issue { display: grid; }
  .ops-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .stage.empty { display: none; }
  .list-head { flex-direction: column; }
  /* tabelle a schede: ogni riga diventa una scheda con etichetta per cella */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody { display: block; }
  .table-cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.4rem 0.75rem; margin-bottom: 0.6rem; background: var(--panel); }
  .table-cards tr.self { background: var(--panel-2); }
  .table-cards td { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; }
  .table-cards td:last-child { border-bottom: 0; }
  .table-cards td::before { content: attr(data-l); display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 0.15rem; }
  .table-cards td[data-l='']::before { content: none; }
  .table-cards td.num { text-align: left; }
  .table-cards .send-cell { min-width: 0; }
  .table-cards .stack { width: 100%; }
  .cal-wrap, .cal-hint { display: none; }
  .cal-list { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 1rem; margin-bottom: 1rem; }
  .cal-day:first-child { border-top: 0; }
  .month-nav { width: 100%; }
  .month-nav .button { flex: 1; }
  .feed li { grid-template-columns: 1fr; gap: 0.1rem; }
  .table-cards.grid-edit td.chk { text-align: left; }
  .table-cards.grid-edit td.chk input { margin-top: 0; }
  table.grid-edit th.w-s, table.grid-edit td.w-s, table.grid-edit th.w-m, table.grid-edit th.w-l { width: auto; min-width: 0; }
  .kpi .value { font-size: 1.2rem; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .grid.cols-4 .kpi { padding: 0.7rem 0.8rem; }
  .diag li { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .step { padding: 0.95rem 1rem 1.05rem; scroll-margin-top: calc(var(--topbar-h) + 8px); }
  .step-head .hint { display: none; }
  .slots { grid-template-columns: 1fr; }
  /* riepilogo come barra inferiore che si apre */
  .calc-side { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 45; }
  .calc-side .summary-card { border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 30px rgba(23, 32, 30, 0.18); padding: 0.7rem 1rem 0.9rem; max-height: 84vh; overflow-y: auto; }
  .calc-side:not(.open) .summary-card > :not(.bar) { display: none; }
  .bottom-bar { display: flex; align-items: center; gap: 0.75rem; }
  .bottom-bar .total { font-size: 1.3rem; }
  .bottom-bar .total small { display: inline; margin-left: 0.3rem; }
  .bottom-bar .status { margin: 0; padding: 0.3rem 0.6rem; font-size: 0.74rem; }
  .side-toggle { display: inline-flex; margin-left: auto; background: var(--chip); color: var(--ink); padding: 0.45rem 0.75rem; font-size: 0.85rem; }
  .calc-side.open .summary-card { padding-top: 0.9rem; }
  .calc-side .cta button { min-height: 46px; }
  /* B3: passi comprimibili, elenco «Da correggere», azione primaria nella barra, totale apribile, stato «non aggiornato» */
  .step-head { cursor: pointer; align-items: center; margin-bottom: 0; user-select: none; }
  .step-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-s); }
  .step-head .hint { display: none; }
  .step-state { display: inline-block; margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
  .step-state.done { background: #dff1e8; color: #16603f; }
  .step-head .chev { display: block; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin: 0 0.2rem 0.2rem 0.3rem; transition: transform 0.15s ease; }
  .step.collapsed .step-head .chev { transform: rotate(-45deg); margin-bottom: 0; }
  .step:not(.collapsed) .step-head { margin-bottom: 0.9rem; }
  .step.collapsed > :not(.step-head) { display: none; }
  .calc-detail.step { padding-top: 0.6rem; }
  .calc-detail .step-head h2 { margin-top: 0 !important; }
  .fix-list { display: block; background: #fdecec; border: 1px solid #f0b4b4; border-radius: var(--radius-s); padding: 0.6rem 0.8rem; margin-bottom: 0.8rem; font-size: 0.9rem; }
  .fix-list ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
  .fix-list li { margin: 0.15rem 0; }
  .bar-total { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; min-height: 44px; }
  .bar-action { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 44px; padding: 0.45rem 0.9rem; border-radius: var(--radius-s); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.88rem; border: 0; text-decoration: none; white-space: nowrap; }
  .bar-action[hidden] { display: none; }
  .bar-action + .side-toggle, .side-toggle:has(+ .bar-action) { margin-left: 0; }
  .calc-side.stale .bar-total::after { content: 'non aggiornato'; display: block; font-size: 0.7rem; color: #a3451b; font-weight: 600; }
  .calc-side.stale .bar-total { opacity: 0.75; }
  /* B4 (LR-D4/D6): sezioni della trattativa comprimibili (chiuse tranne quella della prossima azione) e foglio «Altre azioni» */
  .section[data-step] > .section-head { cursor: pointer; user-select: none; position: relative; padding-right: 1.6rem; }
  .section[data-step] > .section-head::after { content: ''; position: absolute; right: 0.35rem; top: 0.55rem; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s ease; }
  .section[data-step].collapsed > .section-head::after { transform: rotate(-45deg); }
  .section[data-step].collapsed > :not(.section-head) { display: none; }
  .section[data-step].collapsed > .section-head { margin-bottom: 0; }
  .section[data-step] > .section-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-s); }
  .version-detail > .section-head h2 { margin: 0; }
  .other-actions { display: block; }

  /* 4/11/2026 — U-05: bersagli di tocco di almeno 44 px su menu, filtri, schede, link d'azione (solo spaziatura) */
  .nav-link, .nav-group summary, .nav-links .nav-link { min-height: 44px; display: flex; align-items: center; }
  .nav-close { width: 44px; height: 44px; }
  .chip, .view-switch a, .deal-nav a, .tabs a, .tabbar a { min-height: 44px; display: inline-flex; align-items: center; }
  .chips { gap: 0.4rem 0.5rem; }
  .main p.note a, .main .lede a, .main .eyebrow a, .main .fact a, .main h3 a, .main .section-head a, .main .status a, .tile a, .home a.more { display: inline-block; padding: 0.7rem 0.15rem; margin: -0.7rem -0.15rem; }
  .pager a { min-height: 44px; padding: 0 0.3rem; }
}
/* ===== 4/11/2026 — PR «tabelle e telefono» (registro difetti U-01, U-07, D-09) ===== */
.nowrap { white-space: nowrap; }
table.deals td:first-child a.mono, table.deals td[data-l="Numero"] a, table.proposals td.mono { white-space: nowrap; }
table.deals td[data-l="Creata"] { white-space: nowrap; }
table.deals td.outlet-cell span { display: inline-block; max-width: 7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; cursor: help; }
table.deals abbr { text-decoration: none; cursor: help; border-bottom: 0; }
table.deals { font-size: 0.86rem; }
table.deals th, table.deals td { padding-left: 0.45rem; padding-right: 0.45rem; }
table.deals .badge { white-space: normal; line-height: 1.3; }
table.deals td[data-l="Cliente"] { min-width: 9rem; }
table.deals td[data-l="Stato trattativa"], table.deals td[data-l="Ultimo calcolo"] { max-width: 15rem; }
th a.sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; }
th a.sort::after { content: '↕'; color: var(--muted-2); font-size: 0.8em; }
th a.sort.on::after { content: '↓'; color: var(--accent); }
th a.sort:hover { color: var(--ink); text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0.9rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.pager a { font-weight: 600; display: inline-flex; align-items: center; min-height: 40px; }
.deal-id .badge, .deal-head .badge { white-space: normal; line-height: 1.35; }
table.proposals tr.send-row td { padding: 0 0 1rem; border-bottom: 2px solid var(--line-2); }
.send-block { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.75rem 0.9rem 0.9rem; }
.send-block .send-title { flex: 1 0 100%; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.send-block .stack { min-width: 14rem; flex: 1 1 18rem; }
.send-block .stack.revoke { flex: 0 1 16rem; }
.link-details { margin-top: 0.3rem; }
.link-details > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 28px; }
.link-details > summary::before { content: ''; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.link-details[open] > summary::before { transform: rotate(45deg); }
.link-token { word-break: break-all; }

@media (max-width: 480px) {
  /* B3: nella barra stretta vince l'azione primaria: via «IVA incl.» e, se c'è l'azione, il distintivo di stato (lo dice il foglio) */
  .bar-total small { display: none !important; }
  .bottom-bar:has(.bar-action:not([hidden])) > .badge { display: none; }
  .bar-action { padding: 0.45rem 0.7rem; }
  .side-toggle { padding: 0.45rem 0.6rem; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid.evento { grid-template-columns: 1fr 1fr; }
  .field-grid.evento .span-2 { grid-column: 1 / -1; }
  .field-grid .field.wide, .field-grid .field.full-sm { grid-column: 1 / -1; }
  .choice { grid-template-columns: auto minmax(0, 1fr); }
  .choice .price { grid-column: 2; text-align: left; }
}

/* ===== 4/11/2026 — PR «silenzio e gerarchia» (revisione UX/UI, P2 P3 P4 P5 P7 P10) ===== */
/* P5: i moduli stanno dietro un «+» (details.module); «Apri tutti i moduli» li tiene aperti (cookie ec_moduli) */
details.module { margin-top: 0.7rem; }
details.module > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.3rem 0.85rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 0.86rem; }
details.module > summary::-webkit-details-marker { display: none; }
details.module > summary:hover { background: var(--chip); }
details.module[open] > summary { background: var(--chip); margin-bottom: 0.6rem; }
details.module > :not(summary) { margin-top: 0.4rem; }
.deal-nav .nav-pref { margin-left: auto; white-space: nowrap; border: 0; background: transparent; color: var(--muted); font-size: 0.8rem; font-weight: 500; padding: 0.4rem 0.6rem; border-radius: 999px; cursor: pointer; min-height: 0; }
.deal-nav .nav-pref:hover { background: var(--chip); color: var(--ink); }
.deal-nav .nav-pref[aria-pressed="true"] { color: var(--ink); }
/* P2: un solo pulsante pieno per schermata; l'esito della trattativa inviata è l'azione attesa */
.subcard.outcome.primary-step { border-color: var(--ok); background: var(--ok-bg); }
.subcard.outcome.primary-step h4 { color: var(--ok); }
button.secondary.danger, .btn.secondary.danger { color: var(--block); }
button.secondary.danger:hover { background: var(--block-bg); }
.calc-actions button { opacity: 0.85; }
/* P3: le tessere a zero si attenuano; «Dettaglio del calcolo» e margine chiusi */
.kpi.zero { opacity: 0.55; }
.kpi .note { font-size: 0.74rem; margin-top: 0.15rem; }
details.sub.margin > summary { font-size: 0.95rem; color: var(--ink); }
details.sub.margin > summary .note { font-weight: 500; }
details.sub.how { margin: -0.3rem 0 0.9rem; }
details.sub[data-testid="totals-detail"] table { font-size: 0.86rem; color: var(--muted); }
/* P10: le date non hanno colore; il colore resta solo dove dice urgenza (scade oggi: rosso) */
.agenda-list .b { color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.agenda-card.ok .agenda-list .b { color: var(--muted); background: var(--panel); }
.agenda-list .l { white-space: normal; overflow-wrap: anywhere; }
/* configuratore: aiuto breve accanto alle caselle gergali */
.toggles .check .hint { color: var(--muted); font-size: 0.76rem; font-weight: 400; }
.search-row { margin-bottom: 0.9rem; }
.nowrap { white-space: nowrap; }

/* ===== 4/11/2026 — PR «parole e formati» (P1 P6 P8 P9): una riga per numeri, date e importi ===== */
.grid.cols-2 table .num, table.versions .num, table.proposals .num { white-space: nowrap; }
.grid.cols-2 table td:first-child { overflow-wrap: anywhere; }
td.mono, .mono.ref { white-space: nowrap; }

/* ===== 4/11/2026 — PR «decidere in fretta»: calendario a celle colorate, approvazioni con il perché ===== */
table.cal td.cell.has-confirmed { background: var(--ok-bg); }
table.cal td.cell.has-option { background: var(--approve-bg); }
table.cal td.cell.has-other { background: var(--panel-2); }
table.cal .mark { background: transparent; color: inherit; padding: 0.05rem 0.1rem; }
table.cal .mark .mk { font-weight: 700; }
table.cal .mark .who { display: block; font-size: 0.6rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
table.cal td.cell.has-confirmed .mark.ok .mk { color: var(--ok); }
table.cal td.cell.has-option .mark.approve .mk { color: var(--approve); }
table.cal th.day { min-width: 2.1rem; }
table.approvals .why { margin: 0.1rem 0; }
table.approvals .why .note { display: block; }
table.approvals td { vertical-align: top; }

/* ===== 4/11/2026 — PR «area intermediari» ===== */
.link-btn { border: 0; background: transparent; color: var(--accent); font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }
.link-btn[data-copied] { color: var(--ok); text-decoration: none; }
table.partners td { vertical-align: top; }
/* ===== 6/11/2026 — pacchetti A «il minimo raccontato bene» e D «una sola verità» ===== */
.summary-card .room { margin: 0.45rem 0 0; font-size: 0.86rem; line-height: 1.4; color: var(--ink); }
.summary-card .room strong { color: #16603f; }
details.module.calc-detail { margin-top: 1rem; }
details.module.calc-detail > summary .note { font-weight: 400; }
details.module.calc-detail .grid.cols-2 { grid-template-columns: 1fr; } /* la tabella delle righe ha tutta la larghezza: i nomi non vanno a capo lettera per lettera */
details.module.calc-detail .grid.cols-2 table td:first-child { overflow-wrap: normal; }
details.module.calc-detail[open] > summary { margin-bottom: 0.6rem; }
.calc-actions { margin-top: 0.6rem; justify-content: space-between; }
.calc-actions .note { font-size: 0.82rem; }
/* ===== 6/11/2026 — pacchetti B «menu leggero» e C «l'ordine della telefonata» ===== */
.slots:has(details.slot-card.optional) { grid-template-columns: 1fr; gap: 0.5rem; } /* B: una colonna di righe, l'obbligatorio in testa */
.slots .slot-card.required { margin-bottom: 0.4rem; }
details.slot-card.optional { padding: 0; background: var(--panel); }
details.slot-card.optional > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; min-height: 44px; }
details.slot-card.optional > summary::-webkit-details-marker { display: none; }
details.slot-card.optional > summary h4 { margin: 0; flex: 0 1 auto; }
details.slot-card.optional > summary .slot-sum { margin-left: auto; font-size: 0.84rem; color: var(--ink); text-align: right; min-width: 0; }
details.slot-card.optional > summary .slot-sum .add { color: var(--accent); font-weight: 600; }
details.slot-card.optional > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: 0 0 auto; margin-left: 0.2rem; transition: transform 0.15s ease; }
details.slot-card.optional[open] > summary::after { transform: rotate(-135deg); }
details.slot-card.optional.has-choice { border-color: #cfdedb; }
details.slot-card.optional > .choice { margin: 0 0.9rem 0.45rem; }
details.slot-card.optional > .choice:last-child { margin-bottom: 0.9rem; }
details.slot-card.optional > .choice.none:has(input:checked) { border-color: var(--line); box-shadow: none; background: transparent; } /* «nessuno» è lo stato normale, non una scelta evidenziata */
details.slot-card.optional > summary:hover { background: #f4f2ec; }
.exp-card .fit { color: #a3451b; font-size: 0.76rem; font-weight: 600; }
.exp-card.unfit { opacity: 0.8; }
.help.when-month { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.help.when-month label { font-size: inherit; color: inherit; margin: 0; }
.help.when-month select { min-height: 32px !important; padding: 0.2rem 0.5rem !important; width: auto !important; font-size: 0.85rem; }
.empty { color: var(--muted); margin: 0.2rem 0 0.4rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== 6/11/2026 — rifinitura: pulsanti, campi, tabelle, superfici (solo aspetto, nessun comportamento) ===== */
:root { --btn-shadow: 0 1px 1px rgba(23, 32, 30, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.12); --ring: 0 0 0 3px var(--accent-soft); }

/* Pulsanti: tre livelli chiari — primario (azione della pagina), secondario (bianco con bordo), link. */
button, .btn, a.button {
  min-height: 40px; padding: 0.5rem 1.05rem; border-radius: 9px; font-weight: 600; letter-spacing: 0.005em;
  box-shadow: var(--btn-shadow); transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease, color 0.14s ease;
}
button:hover, .btn:hover, a.button:hover { box-shadow: 0 2px 6px rgba(23, 32, 30, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.12); transform: translateY(-1px); }
button:active, .btn:active, a.button:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16); }
button:focus-visible, .btn:focus-visible, a.button:focus-visible { outline: none; box-shadow: var(--ring), var(--btn-shadow); }
button.secondary, .btn.secondary, a.button.secondary, button.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 1px 1px rgba(23, 32, 30, 0.05); }
button.secondary:hover, .btn.secondary:hover, a.button.secondary:hover { background: var(--panel-2); border-color: #b9b4a6; color: var(--ink); box-shadow: 0 2px 6px rgba(23, 32, 30, 0.1); }
button.ghost { border-color: transparent; color: var(--accent); box-shadow: none; }
button.ghost:hover { background: var(--accent-soft); border-color: transparent; box-shadow: none; transform: none; }
button.secondary.danger, .btn.secondary.danger { color: var(--block); }
button.secondary.danger:hover, .btn.secondary.danger:hover { background: var(--block-bg); border-color: #e6a9a3; }
button:disabled, .button:disabled, button[disabled]:hover { opacity: 0.5; box-shadow: none; transform: none; cursor: not-allowed; }
.btn-sm, button.btn-sm { min-height: 32px; padding: 0.3rem 0.7rem; font-size: 0.82rem; border-radius: 8px; }
.link-btn, .link-btn:hover, .link-btn:active { box-shadow: none; transform: none; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.nav .user button { min-height: 30px; box-shadow: none; background: #22312e; color: var(--nav-ink-strong); border: 1px solid #34423e; }
.nav .user button:hover { background: #2c3b37; transform: none; box-shadow: none; }
/* I moduli «+ Nota», «+ Pagamento»… sono pulsanti secondari a tutti gli effetti */
details.module > summary { min-height: 38px; border-radius: 9px; background: var(--panel); font-weight: 600; box-shadow: 0 1px 1px rgba(23, 32, 30, 0.05); transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }
details.module > summary:hover { background: var(--panel-2); border-color: #b9b4a6; box-shadow: 0 2px 6px rgba(23, 32, 30, 0.1); }
details.module[open] > summary { background: var(--accent-soft); border-color: #bcd8d4; color: var(--accent-hover); }
details.module > summary:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-cta { box-shadow: var(--btn-shadow); border-radius: 9px; transition: background 0.14s ease, transform 0.08s ease, box-shadow 0.14s ease; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.summary-card .cta button { border-radius: 10px; font-size: 0.98rem; }

/* Campi: bordo più deciso al passaggio, anello di fuoco uniforme, testo segnaposto discreto */
form.calc input:not([type=checkbox]):not([type=radio]):hover, form.calc select:hover, .field input:hover, .field select:hover, .field textarea:hover, .login input:hover { border-color: #b9b4a6; }
form.calc input:focus, form.calc select:focus, .field input:focus, .field select:focus, .field textarea:focus, .login input:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.login input { min-height: 44px; padding: 0.55rem 0.7rem; }
.login input:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.segmented { padding: 3px; }
.segmented label { border-radius: 7px; transition: background 0.12s ease, color 0.12s ease; }
.segmented label:hover { background: var(--panel-2); color: var(--ink); }
.segmented input:checked + label { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.stepper button { box-shadow: none; }
.stepper button:hover { transform: none; }

/* Badge: più leggeri, con un filo di bordo tono su tono */
.badge { padding: 0.14rem 0.6rem; letter-spacing: 0.01em; line-height: 1.5; }
.badge.ok { border-color: #c7e3cf; }
.badge.approve { border-color: #f0dcae; }
.badge.block { border-color: #f1c4bf; }
.badge.warn { border-color: #cfdcec; }
.badge.info { border-color: #c9dced; }
.badge.neutral, .badge.suggest { border-color: #e1ddd2; }

/* Tabelle: righe che rispondono al mouse, intestazioni più ariose, ultima riga senza linea dentro le superfici */
th { letter-spacing: 0.06em; padding-top: 0.6rem; padding-bottom: 0.55rem; }
td { padding-top: 0.6rem; padding-bottom: 0.6rem; }
table:not(.cal):not(.grid-edit) > tbody > tr:hover > td { background: var(--panel-2); }
.panel > table:not(.cal) > tbody > tr:last-child > td, .panel > .table-wrap > table:not(.cal) > tbody > tr:last-child > td, .card > .table-wrap > table:not(.cal) > tbody > tr:last-child > td { border-bottom: 0; }
table.versions td, table.versions th { white-space: nowrap; }
/* profilo e motore sono dati tecnici (restano nel documento e nel dettaglio): sotto i 1500 px la tabella respira senza scorrere */
@media (max-width: 1500px) { table.versions th:nth-child(4), table.versions td:nth-child(4), table.versions th:nth-child(5), table.versions td:nth-child(5) { display: none; } }
table.versions td.mono, table.versions td .mono { font-size: 0.78rem; }
table.versions td:nth-child(9) { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; }
table.versions td:last-child a { white-space: nowrap; }
tr.self > td { background: var(--accent-soft); }

/* Superfici e messaggi di stato: bordo colorato a sinistra, testo in peso normale (il colore basta) */
.status { font-weight: 500; border-left-width: 4px; padding-left: 0.95rem; }
.status strong { font-weight: 700; }
.status.ready { border-left-color: var(--ok); }
.status.needs_approval { border-left-color: var(--approve); }
.status.blocked { border-left-color: var(--block); }
.kpi { transition: box-shadow 0.14s ease; }
.kpi .label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; font-weight: 600; }
.kpi .value { font-size: 1.5rem; letter-spacing: -0.01em; }
.panel, .card { box-shadow: 0 1px 2px rgba(23, 32, 30, 0.04); }
h1 { letter-spacing: -0.015em; }
.section-head h2 { letter-spacing: -0.005em; }

/* Accesso: una scheda centrata con il marchio */
.login { max-width: 420px; margin: 9vh auto; }
.login .brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 0.8rem; box-shadow: var(--btn-shadow); }
.login .panel { padding: 1.4rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.login label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.login button[type=submit] { width: 100%; min-height: 44px; margin-top: 0.3rem; font-size: 0.98rem; }
.login .note { margin-top: 1rem; }

/* Pulsanti con una veste propria (contatori, barra del telefono, menu, schede): nessuna ombra né scatto */
.stepper button, .bar-total, .tabbar button, .nav-toggle, .nav-close, .side-toggle, .step-head button, .exp-current button.secondary, .choice button, [data-moduli-toggle] { box-shadow: none; }
.stepper button:hover, .bar-total:hover, .tabbar button:hover, .nav-toggle:hover, .nav-close:hover, .side-toggle:hover, [data-moduli-toggle]:hover { transform: none; box-shadow: none; }
.stepper button { border-radius: 0; }
.bar-total, .bar-total:hover { background: none; }
.nav-toggle, .nav-toggle:hover { background: transparent; }

/* Telefono: i pulsanti restano a 44 px; niente spostamento al passaggio (non c'è passaggio) */
@media (hover: none) { button:hover, .btn:hover, a.button:hover, details.module > summary:hover, .nav-cta:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { button, .btn, a.button, details.module > summary, .nav-cta, .segmented label { transition: none; } button:hover, .btn:hover, a.button:hover, .nav-cta:hover { transform: none; } }

/* ===== 6/11/2026 — «che cosa comprende» sotto ogni voce di menu e servizi ===== */
details.what { margin: -0.2rem 0 0.55rem 0.3rem; font-size: 0.82rem; }
details.what > summary { cursor: pointer; list-style: none; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.3rem; border-radius: 6px; min-height: 0; }
details.what > summary::-webkit-details-marker { display: none; }
details.what > summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s ease; }
details.what[open] > summary::before { transform: rotate(45deg); }
details.what > summary:hover { background: var(--accent-soft); }
details.what.missing > summary { color: var(--muted); }
details.what .what-body { margin: 0.3rem 0 0 0.3rem; padding: 0.55rem 0.8rem; border-left: 2px solid var(--line-2); color: var(--ink); }
details.what .what-body p { margin: 0 0 0.35rem; line-height: 1.45; }
details.what .what-body .what-list { margin: 0 0 0.4rem; padding-left: 1.1rem; columns: 2; column-gap: 1.2rem; }
details.what .what-body .what-list li { break-inside: avoid; margin-bottom: 0.1rem; }
details.what .what-body .facts { color: var(--muted); font-size: 0.78rem; margin: 0.2rem 0 0; }
details.slot-card.optional > details.what { margin-left: 1.2rem; }
details.slot-card.optional > details.what:last-of-type { margin-bottom: 0.9rem; }
@media (max-width: 640px) { details.what .what-body .what-list { columns: 1; } details.what > summary { min-height: 36px; } }

/* ===== 7/11/2026 — prezzo di lancio del matrimonio in esclusiva ===== */
.launch-box { border-left: 4px solid var(--line); }
.launch-box.on { border-left-color: var(--ok); background: var(--ok-bg); }
.launch-box .launch-toggle { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.launch-box .launch-toggle input { margin-top: 0.3rem; width: auto; }
.launch-box .launch-toggle .note { font-weight: normal; }
.launch-table { width: 100%; margin: 0.6rem 0 0.3rem; border-collapse: collapse; font-size: 0.9rem; }
.launch-table td { padding: 0.25rem 0.4rem; border-top: 1px dashed var(--line); vertical-align: top; }
.launch-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-card [data-testid="calc-summary-launch"] .note { margin-top: 0.2rem; }
@media (max-width: 640px) { .launch-table { font-size: 0.85rem; } }

/* ---------- Next Generation D «Combinata» — configuratore (18/11/2026) ----------
   Tre colonne: passi a sinistra (fissi), modulo al centro, scontrino fisso a destra. Stessi campi e stessi data-testid della
   pagina di prima: cambiano la disposizione e la lettura dei numeri. Sotto 1100 px i passi diventano una striscia in testa;
   sotto 900 px il riepilogo resta la barra in basso (B3). */
.calc-app.calc-d { grid-template-columns: minmax(0, 1fr) 330px; gap: 1.25rem; }
.calc-d .calc-main { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
.calc-d .calc-main > * { grid-column: 2; min-width: 0; }
.calc-d .calc-steps { grid-column: 1; grid-row: 2 / span 40; position: sticky; top: 1rem; align-self: start; }
.calc-d .calc-head { margin-bottom: 0.9rem; }
.calc-d .calc-head-row { display: flex; align-items: center; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.calc-d .calc-head-row h1 { margin: 0; font-size: 1.45rem; }
.calc-d .calc-head .lede { font-size: 0.86rem; margin: 0.35rem 0 0; }
.passi { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; display: grid; gap: 2px; }
.passi li a { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 0.6rem; align-items: center; padding: 0.42rem 0.5rem; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; }
.passi li a:hover { background: var(--panel); color: var(--ink); text-decoration: none; }
.passi li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-grid; place-items: center; font-size: 0.72rem; font-style: normal; font-weight: 600; color: var(--muted); background: var(--panel); }
.passi li .l { font-weight: 500; line-height: 1.25; }
.passi li .s { grid-column: 2; font-size: 0.74rem; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passi li.corrente a { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.passi li.corrente i { border-color: var(--ink); color: var(--ink); }
.passi li.fatto i { background: var(--ok); border-color: var(--ok); color: #fff; }
.passi li.attenzione i { border-color: var(--approve); color: var(--approve); background: var(--approve-bg); }
.passi li.attenzione .l { color: var(--approve); }
/* i passi come gruppi di campi: intestazione con riga sotto, riepilogo del passo a destra */
.calc-d .step { padding: 0 1.1rem 1.1rem; box-shadow: none; }
.calc-d .step-head { margin: 0 -1.1rem 1rem; padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); align-items: center; gap: 0.6rem; }
.calc-d .step-head .n { width: 22px; height: 22px; font-size: 0.74rem; transform: none; background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.calc-d .step-head h2 { font-size: 0.98rem; }
.calc-d .step-title { flex: 1; min-width: 0; flex-direction: row; align-items: baseline; gap: 0.6rem; }
.calc-d .step-title h2 { white-space: nowrap; }
.calc-d .step-sum { margin: 0; margin-left: auto; text-align: right; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.calc-d .step-head .hint { display: none; }
.calc-d .slots { grid-template-columns: 1fr; gap: 0.7rem; }
.calc-d .slot-card { background: var(--panel); }
.calc-d .slot-card.required { background: var(--panel); border-color: var(--line); }
.calc-d .choice { grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.calc-d .choice .name { display: flex; flex-direction: column; gap: 0.05rem; font-weight: 500; }
.calc-d .choice .name .basis { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.calc-d .choice .price { font-weight: 500; color: var(--ink); grid-column: 3; text-align: right; }
.calc-d .step.collapsed { padding-bottom: 0; }
.calc-d .step.collapsed .step-head { margin-bottom: 0; border-bottom: 0; }
.calc-d .choice:has(input:checked) { background: var(--accent-soft); }
/* lo scontrino */
.calc-d .summary-card { padding: 0; overflow: hidden; }
.calc-d .summary-card > .status { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); font-size: 0.78rem; padding: 0.5rem 1rem; }
.calc-d .summary-card .empty { padding: 0.6rem 1rem 0.9rem; }
.calc-d .totale { padding: 0.9rem 1rem 0.75rem; border-bottom: 1px solid var(--line); }
.calc-d .totale .t-k { display: block; color: var(--muted); font-size: 0.8rem; }
.calc-d .totale .total { font-size: 1.9rem; margin: 0.1rem 0 0.15rem; }
.calc-d .totale .total small { font-size: 0.8rem; margin-top: 0.1rem; }
.calc-d .totale .t-min { font-size: 0.8rem; margin-top: 0.45rem; }
.calc-d .totale .t-min .note { display: block; }
.calc-d .totale .room { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.calc-d .t-launch { padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.calc-d .summary-card .voci { list-style: none; margin: 0; padding: 0.45rem 1rem; border-bottom: 1px solid var(--line); }
.calc-d .summary-card .voci li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.28rem 0; font-size: 0.84rem; color: var(--muted); border: 0; }
.calc-d .summary-card .voci li > span:first-child { min-width: 0; }
.calc-d .summary-card .voci li .v { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.calc-d .summary-card .voci li.tot { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.55rem; color: var(--ink); font-weight: 600; }
.calc-d .summary-card .voci li.tot .v { font-weight: 700; }
.calc-d .summary-card .voci li.iva { font-size: 0.78rem; padding: 0.15rem 0; }
.calc-d .summary-card .voci li.iva .v { color: var(--muted); }
.calc-d .controlli { list-style: none; margin: 0; padding: 0.5rem 1rem 0.4rem; display: grid; gap: 0.3rem; font-size: 0.82rem; }
.calc-d .controlli li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: start; color: var(--muted); }
.calc-d .controlli li.sum { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); padding-bottom: 0.1rem; }
.calc-d .controlli li b { font-weight: 600; color: var(--ink); }
.calc-d .controlli li small { color: var(--muted-2); }
.calc-d .controlli .goto { display: inline-block; margin-left: 0.35rem; font-weight: 500; white-space: nowrap; }
.calc-d .stato { display: inline-flex; align-items: center; min-height: 20px; padding: 0 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; background: var(--chip); color: var(--muted); margin-top: 1px; }
.calc-d .stato.ok { background: var(--ok-bg); color: var(--ok); }
.calc-d .stato.block { background: var(--block-bg); color: var(--block); }
.calc-d .stato.approve { background: var(--approve-bg); color: var(--approve); }
.calc-d .stato.warn { background: var(--warn-bg); color: var(--warn); }
.calc-d .stato.suggest, .calc-d .stato.neutral { background: var(--chip); color: var(--muted); }
.calc-d .summary-card > .note { padding: 0 1rem; font-size: 0.76rem; }
.calc-d .summary-card .cta { margin: 0.75rem 0 0; padding: 0.75rem 1rem 1rem; border-top: 1px solid var(--line); }
.calc-d .summary-card .cta .note { margin: 0; }
@media (max-width: 1100px) {
  .calc-app.calc-d { grid-template-columns: 1fr; }
  .calc-d .calc-main { grid-template-columns: 1fr; }
  .calc-d .calc-main > *, .calc-d .calc-steps { grid-column: 1; }
  .calc-d .calc-steps { grid-row: auto; position: static; margin-bottom: 0.9rem; }
  .passi { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .passi li { flex: none; }
  .passi li a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; min-height: 40px; padding: 0.3rem 0.7rem 0.3rem 0.5rem; background: var(--panel); border: 1px solid var(--line); }
  .passi li.corrente a { box-shadow: inset 0 0 0 1px var(--ink); }
  .passi li .s { display: none; }
}
@media (max-width: 900px) {
  .calc-d .summary-card { padding: 0.7rem 1rem 0.9rem; }
  .calc-d .summary-card > .status, .calc-d .totale, .calc-d .summary-card .voci, .calc-d .controlli, .calc-d .t-launch { padding-left: 0; padding-right: 0; }
  .calc-d .summary-card > .status { border-bottom: 0; }
  .calc-d .summary-card .cta { padding-left: 0; padding-right: 0; }
  .calc-d .summary-card > .note { padding: 0; }
}

/* ---------- Next Generation D «Combinata» — trattativa (release 2, 18/11/2026) ----------
   Record: testata con stato e azioni, attributi, schede = ancore delle sezioni, colonna destra fissa (pagamenti, controlli di
   emissione, economia, dati). Stesse sezioni e stessi data-testid; sotto 1100 px una colonna, colonna destra in fondo. */
.record-testa { padding: 1rem 1.25rem 1.1rem; }
.record-testa h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.7rem; margin: 0 0 0.35rem; font-size: 1.5rem; }
.record-testa h1 .mono { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.record-testa .eyebrow { margin: 0 0 0.2rem; }
.deal-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex: 0 1 420px; min-width: 260px; }
.deal-actions .deal-next { flex: none; width: 100%; }
.deal-buttons { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.deal-buttons .button.secondary { padding: 0.45rem 0.9rem; font-size: 0.86rem; }
.deal-buttons .other-actions { display: block; margin: 0; position: relative; }
.deal-buttons .other-actions > summary { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-s); min-height: 38px; padding: 0.35rem 0.8rem; font-size: 0.86rem; font-weight: 500; }
.deal-buttons .other-actions > summary::before { content: none; }
.deal-buttons .other-actions > summary::after { content: '▾'; margin-left: 0.3rem; }
.deal-buttons .other-actions .sheet-body { position: absolute; right: 0; z-index: 35; min-width: 280px; box-shadow: var(--shadow-lg); }
.deal-facts.attributi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.deal-facts.attributi .fact { border: 0; border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); padding: 0.55rem 0.8rem; }
.deal-facts.attributi .fact:nth-child(4n) { border-right: 0; }
.deal-facts.attributi.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deal-facts.attributi.compact .fact:nth-child(4n) { border-right: 1px solid var(--line); }
.deal-facts.attributi.compact .fact:nth-child(3n) { border-right: 0; }
.deal-nav.schede { background: transparent; border-bottom: 1px solid var(--line); padding: 0; margin: 0 0 1rem; gap: 0; border-radius: 0; }
.deal-nav.schede a { border-radius: 0; padding: 0.6rem 0.9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.deal-nav.schede a:hover { background: transparent; border-bottom-color: var(--line-2); }
.deal-nav.schede .nav-pref { margin-left: auto; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.record-main { min-width: 0; }
.deal-side { position: sticky; top: 3.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.84rem; min-width: 0; }
.deal-side h3 { margin: 0; padding: 0.7rem 0.9rem 0.45rem; font-size: 0.82rem; font-weight: 700; border-top: 1px solid var(--line); }
.deal-side .side-open { display: none; }
.deal-side .side-open + h3 { border-top: 0; }
.deal-side h3 small { font-weight: 400; }
.deal-side dl { margin: 0; padding: 0 0 0.45rem; }
.deal-side dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0.5rem; padding: 0.3rem 0.9rem; align-items: start; }
.deal-side dt { color: var(--muted-2); margin: 0; }
.deal-side dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.deal-side .checks-dl > div { grid-template-columns: auto minmax(0, 1fr); }
.deal-side .stato { display: inline-flex; align-items: center; min-height: 20px; padding: 0 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: var(--chip); color: var(--muted); }
.deal-side .stato.ok { background: var(--ok-bg); color: var(--ok); } .deal-side .stato.block { background: var(--block-bg); color: var(--block); } .deal-side .stato.approve { background: var(--approve-bg); color: var(--approve); } .deal-side .stato.warn { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 1100px) {
  .record { grid-template-columns: 1fr; }
  .deal-side { position: static; }
  .deal-side .side-open { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--panel); color: var(--ink); border: 0; border-radius: var(--radius); padding: 0.75rem 0.9rem; font: inherit; font-weight: 600; min-height: 44px; box-shadow: none; }
  .deal-side .side-open::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin-right: 0.3rem; }
  .deal-side.open .side-open::after { transform: rotate(-135deg); }
  .deal-side:not(.open) > :not(.side-open) { display: none; }
  .deal-facts.attributi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-facts.attributi .fact:nth-child(4n) { border-right: 1px solid var(--line); }
  .deal-facts.attributi .fact:nth-child(2n) { border-right: 0; }
  .deal-facts.attributi.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-facts.attributi.compact .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .deal-facts.attributi.compact .fact:nth-child(2n) { border-right: 0; }
  .deal-actions { align-items: stretch; flex-basis: 100%; }
  .deal-buttons { justify-content: flex-start; }
  .deal-buttons .other-actions .sheet-body { position: static; min-width: 0; box-shadow: none; }
  .deal-buttons .other-actions > summary, .deal-buttons .button.secondary { min-height: 44px; }
}

/* D: nella colonna del record (con la colonna destra accanto) le tabelle larghe delle proposte e delle versioni diventano schede già sotto i 1500 px */
@media (max-width: 1500px) {
  .record-main .table-cards thead { display: none; }
  .record-main .table-cards, .record-main .table-cards tbody { display: block; }
  .record-main .table-cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.4rem 0.75rem; margin-bottom: 0.6rem; background: var(--panel); }
  .record-main .table-cards tr.self { background: var(--panel-2); }
  .record-main .table-cards td { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; }
  .record-main .table-cards td:last-child { border-bottom: 0; }
  .record-main .table-cards td::before { content: attr(data-l); display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 0.15rem; }
  .record-main .table-cards td[data-l='']::before { content: none; }
  .record-main .table-cards td.num { text-align: left; }
  .record-main .table-cards .send-cell { min-width: 0; }
}

/* ---------- Next Generation D «Combinata» — cruscotto (release 3, 18/11/2026) ----------
   Tre indicatori (da C) e il tabellone delle trattative per fase (da B); sotto, «cosa devo fare adesso» con prossimi eventi
   e scorciatoie a lato. Sola lettura. Sul telefono il tabellone scorre in orizzontale, una fase per schermata. */
.indicatori { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 0 0 1.2rem; }
.indicatore { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; min-width: 0; }
.indicatore .label { color: var(--muted); font-size: 0.82rem; }
.indicatore .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0.15rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.indicatore .sub { color: var(--muted); font-size: 0.78rem; }
.indicatore.approve .value { color: var(--approve); }
.h-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 0.5rem; }
.h-row .h-section { margin: 0; }
.tabellone { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.4rem; align-items: start; }
.fase { min-width: 0; }
.fase header { display: flex; align-items: baseline; gap: 0.4rem; padding: 0 0.1rem 0.45rem; font-size: 0.86rem; }
.fase header h3 { margin: 0; font-size: 0.92rem; }
.fase header .hint { color: var(--muted-2); font-size: 0.76rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fase header .cnt { margin-left: auto; font-weight: 700; color: var(--muted); }
.fase .vuota { color: var(--muted-2); text-align: center; margin: 0.4rem 0; }
.carta { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.65rem 0.75rem; margin-bottom: 0.55rem; color: var(--ink); text-decoration: none; min-width: 0; }
.carta:hover { border-color: var(--accent); text-decoration: none; }
.carta strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.carta .d { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.carta .riga { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; margin-top: 0.45rem; }
.carta .riga .badge { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carta .euro { font-weight: 600; font-size: 0.86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.carta .prossima { display: block; margin-top: 0.4rem; padding-top: 0.35rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); }
.carta .prossima::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--approve); margin-right: 0.4rem; vertical-align: middle; }
.fase .altre { display: block; text-align: center; font-size: 0.8rem; padding: 0.3rem; }
.oggi { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; margin-bottom: 0.4rem; }
.oggi .agenda { min-width: 0; }
.lato .blocco { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.95rem; margin-bottom: 0.9rem; font-size: 0.86rem; }
.lato .blocco h3 { margin: 0 0 0.45rem; font-size: 0.9rem; }
.lato .blocco ul { list-style: none; margin: 0; padding: 0; }
.lato .blocco li a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0.5rem; padding: 0.4rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lato .blocco li:first-child a { border-top: 0; }
.lato .blocco .quando { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.lato .blocco .note { display: block; font-size: 0.78rem; }
.lato .blocco ul.link li a { display: block; padding: 0.4rem 0; }
@media (max-width: 1100px) {
  .indicatori { grid-template-columns: 1fr; gap: 0.6rem; }
  .tabellone { display: flex; overflow-x: auto; gap: 0.6rem; padding-bottom: 0.4rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .fase { flex: 0 0 min(82vw, 300px); scroll-snap-align: start; }
  .fase .carta:nth-of-type(n+4) { display: none; } /* sul telefono tre carte per fase, poi «tutte» */
  .oggi { grid-template-columns: 1fr; }
}

/* ---------- Next Generation D «Combinata» — guscio (release 4, 18/11/2026) ----------
   Barra laterale chiara (A) con contatori, «Cerca o esegui» (⌘K), tema chiaro/scuro, carattere e palette del prototipo. */
.nav-palette { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; margin: 0 0 0.6rem; padding: 0.5rem 0.65rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--panel); color: var(--muted); font: inherit; font-size: 0.86rem; cursor: pointer; box-shadow: none; }
.nav-palette:hover { color: var(--ink); border-color: var(--accent); transform: none; }
.nav-palette kbd, .palette kbd { font: inherit; font-size: 0.7rem; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 0.3rem; background: var(--panel-2); }
.nav-search { display: none; } /* la ricerca a pagina resta raggiungibile (⌘K → pagina «Cerca»); sul telefono torna in vista */
.nav-link .cnt { margin-left: auto; min-width: 1.4em; text-align: center; background: var(--chip); color: var(--muted); border-radius: 999px; font-size: 0.7rem; font-weight: 600; padding: 0.05rem 0.4rem; line-height: 1.5; }
.nav-link.active .cnt { background: rgba(255, 255, 255, 0.22); color: var(--accent-ink); }
.nav .tema { display: flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; color: var(--muted-2); padding: 0.5rem 0.5rem 0; margin-top: auto; }
.nav .tema span { margin-right: 0.2rem; }
.nav .tema button { background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 0.74rem; padding: 0.15rem 0.45rem; border-radius: 999px; min-height: 0; box-shadow: none; }
.nav .tema button[aria-pressed="true"] { border-color: var(--line-2); color: var(--ink); background: var(--panel); }
.nav .tema button:hover { transform: none; color: var(--ink); }
.nav .user { margin-top: 0.3rem; }
.palette { position: fixed; inset: 0; z-index: 90; background: rgba(26, 26, 24, 0.42); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
.palette[hidden] { display: none; }
.palette .scatola { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 0.9rem 1rem; outline: 0; }
.palette ul { list-style: none; margin: 0; padding: 0.35rem 0; max-height: min(52vh, 420px); overflow-y: auto; }
.palette .gruppo { padding: 0.5rem 1rem 0.2rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.palette .voce { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.92rem; color: var(--ink); }
.palette .voce small { color: var(--muted); }
.palette .voce[aria-selected="true"], .palette .voce:hover { background: var(--accent-soft); }
.palette .icona-tipo { width: 24px; height: 24px; border-radius: 6px; background: var(--chip); color: var(--muted); display: inline-grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.palette footer { display: flex; gap: 1rem; padding: 0.45rem 1rem; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--muted-2); }
@media (max-width: 900px) {
  .nav-search { display: block; }
  .nav-palette { display: none; }
  .palette { padding-top: 4vh; }
}
