:root{--verde:#005c24;--verde-scuro:#00451b;--arancio:#f09400;--rosso:#b3261e;--testo:#1c1f1d;--testo-tenue:#5b625e;--fondo:#f4f6f4;--superficie:#fff;--bordo:#d9dfda;color:var(--testo);background:var(--fondo);-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:18px;line-height:1.45}*{box-sizing:border-box}body{background:var(--fondo);margin:0}.app{flex-direction:column;min-height:100dvh;display:flex}.testata{background:var(--superficie);border-bottom:4px solid var(--verde);align-items:center;gap:20px;padding:12px 24px;display:flex}.testata-logo{width:auto;height:48px}.testata-titolo{color:var(--verde);margin:0;font-size:1.4rem;font-weight:650}.contenuto{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:24px}.nota{color:var(--testo-tenue);margin:0 0 20px}.griglia{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;display:grid}.riquadro{background:var(--superficie);border:1px solid var(--bordo);border-radius:14px;padding:20px 24px}.riquadro h2{color:var(--testo-tenue);margin:0 0 12px;font-size:1.1rem;font-weight:600}.stato{margin:0 0 12px;font-size:1.5rem;font-weight:700}.stato-ok{color:var(--verde)}.stato-errore{color:var(--rosso)}.stato-attesa{color:var(--testo-tenue)}.dati{grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 16px;display:grid}.dati dt{color:var(--testo-tenue)}.dati dd{overflow-wrap:anywhere;margin:0;font-weight:550}.pulsante{background:var(--verde);color:#fff;min-height:52px;font:inherit;cursor:pointer;border:none;border-radius:10px;padding:0 28px;font-weight:650}.pulsante:active{background:var(--verde-scuro)}.pulsante:disabled{opacity:.5}.pulsante-chiaro{color:var(--verde);background:#fff}.avviso-aggiornamento{background:var(--verde);color:#fff;justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;font-weight:600;display:flex;position:sticky;bottom:0}.contenuto-stretto{max-width:640px}.testata-titolo{flex:1}.riga-titolo{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.titolo-pagina{margin:0;font-size:1.3rem}.riga-pulsanti{flex-wrap:wrap;gap:12px;display:flex}.pulsante-secondario{background:var(--superficie);color:var(--verde);border:2px solid var(--verde)}.pulsante-secondario:active{background:var(--fondo)}.dati-riga{display:contents}.messaggio-errore,.messaggio-avviso{border-radius:8px;padding:10px 14px;font-weight:550}.messaggio-errore{color:var(--rosso);background:#fbe9e7}.messaggio-avviso{color:#7a4a00;background:#fff3df}.campo{flex-direction:column;gap:6px;margin:0 0 16px;display:flex}.campo span{color:var(--testo-tenue);font-weight:600}.campo input{border:2px solid var(--bordo);min-height:52px;font:inherit;border-radius:10px;padding:0 14px;font-family:ui-monospace,SF Mono,Menlo,monospace}.campo input:focus{border-color:var(--verde);outline:none}.stato-coda{border:1px solid var(--bordo);background:var(--superficie);min-height:44px;color:var(--testo);font:inherit;cursor:pointer;border-radius:22px;align-items:center;gap:10px;padding:0 16px;font-size:.9rem;font-weight:600;display:flex}.stato-coda-punto{background:var(--testo-tenue);border-radius:50%;width:12px;height:12px}.stato-coda-ok .stato-coda-punto{background:var(--verde)}.stato-coda-avviso{border-color:var(--arancio);background:#fff3df}.stato-coda-avviso .stato-coda-punto{background:var(--arancio)}.stato-coda-errore{border-color:var(--rosso);color:var(--rosso);background:#fbe9e7}.stato-coda-errore .stato-coda-punto{background:var(--rosso)}.turno{background:var(--superficie);border:1px solid var(--bordo);border-left:8px solid var(--verde);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;padding:16px 24px;display:flex}.turno-vuoto{border-left-color:var(--arancio)}.turno-scaduto{border-left-color:var(--rosso);background:#fbe9e7}.turno-testo{flex-direction:column;gap:2px;display:flex}.turno-nome{font-size:1.4rem}.turno-avviso{color:var(--rosso);font-weight:650}.turno-pulsanti{gap:12px;display:flex}.velo{z-index:10;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.tastierino{background:var(--superficie);text-align:center;border-radius:18px;width:100%;max-width:380px;padding:24px}.tastierino-titolo{margin:0 0 16px;font-size:1.25rem}.tastierino-punti{justify-content:center;gap:18px;display:flex}.punto{border:2px solid var(--verde);border-radius:50%;width:20px;height:20px}.punto.pieno{background:var(--verde)}.tastierino-errore{min-height:1.5em;color:var(--rosso);margin:12px 0;font-weight:600}.tastierino-tasti{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.tasto{border:1px solid var(--bordo);background:var(--fondo);min-height:72px;color:var(--testo);font:inherit;cursor:pointer;border-radius:12px;font-size:1.8rem;font-weight:600}.tasto:active{background:var(--bordo)}.tasto-testo{color:var(--testo-tenue);font-size:1rem}.riquadro .macchina-sigla{color:var(--verde);margin:0;font-size:2rem}.macchina-nome{color:var(--testo-tenue);margin:0 0 12px}.macchina .nota{margin:0;font-size:.9rem}.fase{letter-spacing:.02em;border-radius:8px;align-items:center;gap:10px;margin:0 0 14px;padding:6px 14px;font-weight:750;display:inline-flex}.fase-ferma{background:var(--fondo);color:var(--testo-tenue)}.fase-preparazione{color:#8a5300;background:#fff3df}.fase-distillazione{color:var(--verde);background:#e3f1e8}.fase-lavaggio{color:#1d4f80;background:#e4eef8}.etichetta-prova{background:var(--rosso);color:#fff;border-radius:6px;padding:2px 8px;font-size:.8rem}.pulsante-largo{width:100%}.pulsante-conferma{background:var(--arancio);color:#1c1f1d}.pulsante-pericolo{background:var(--rosso)}.pulsante-testo{min-height:44px;color:var(--testo-tenue);font:inherit;cursor:pointer;background:0 0;border:none;padding:0 4px;text-decoration:underline}.conferma{gap:10px;display:flex}.azioni-macchina{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.dialogo{background:var(--superficie);border-radius:18px;width:100%;max-width:520px;padding:24px}.dialogo h2{margin:0 0 8px;font-size:1.25rem}.campo textarea{border:2px solid var(--bordo);font:inherit;resize:vertical;border-radius:10px;padding:10px 14px}.campo textarea:focus{border-color:var(--verde);outline:none}.campo em{font-style:normal;font-weight:500}.titolo-nota{color:var(--testo-tenue);font-weight:500}.passo{margin-bottom:22px}.passo h3{color:var(--testo-tenue);margin:0 0 10px;font-size:1rem}.scelte{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.scelte-agrumi{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.scelta,.agrume{border:2px solid var(--bordo);background:var(--superficie);min-height:60px;color:var(--testo);font:inherit;text-align:left;cursor:pointer;border-radius:12px;padding:10px 14px}.agrume{text-align:center;flex-direction:column;align-items:center;gap:6px;min-height:116px;font-weight:650;display:flex}.icona-agrume{object-fit:contain;display:block}.icona-vuota{border:2px dashed var(--bordo);color:var(--testo-tenue);border-radius:50%;justify-content:center;align-items:center;font-size:1.6rem;display:flex}.scelta.scelto,.agrume.scelto{border-color:var(--verde);box-shadow:inset 0 0 0 1px var(--verde);background:#e3f1e8}.griglia-campi{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 20px;display:grid}.griglia-campi input{font-family:inherit;font-size:1.2rem}.avvisi{color:#7a4a00;background:#fff3df;border-radius:8px;margin:0 0 12px;padding:12px 16px 12px 36px;font-weight:550}.note-macchina{background:var(--fondo);border-radius:8px;margin:0 0 14px;padding:10px 14px 10px 30px;font-size:.95rem}.nota-ora{color:var(--testo-tenue);font-weight:650}.azioni-secondarie{flex-wrap:wrap;gap:4px 18px;display:flex}.riepilogo{background:var(--superficie);border:1px solid var(--bordo);border-radius:10px;margin:0 0 20px;padding:12px 16px;font-weight:550}.uscita{border:1px solid var(--bordo);background:var(--superficie);border-radius:12px;margin-bottom:14px;padding:14px 18px 4px}.uscita-testa{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.scelte-strette{grid-template-columns:repeat(2,minmax(0,1fr))}.scelte-strette .scelta{text-align:center;min-height:52px}.campo select{border:2px solid var(--bordo);background:var(--superficie);min-height:52px;font:inherit;border-radius:10px;padding:0 10px}.totale{margin:14px 0 0;font-weight:650}.da-completare{background:var(--fondo);border:1px dashed var(--bordo);color:var(--testo-tenue);border-radius:8px;margin:0 0 12px;padding:12px 16px}.da-completare ul{margin:6px 0 0;padding-left:20px}
