/* KlimApp Daily · v12 */
:root{--f-body:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;--f-display:var(--f-body);--f-mono:ui-monospace,Consolas,monospace;--r:18px;--bg:#f3f6f8;--surface:#fff;--surface-2:#f7f9fa;--line:#dce3e7;--line-2:#e9edef;--ink:#20343c;--ink-2:#4d626d;--ink-3:#647780;--accent:#147d78;--accent-ink:#fff;--accent-soft:#e5f3f2;--crit:#b83f46;--crit-soft:#fceced;--warn:#956018;--warn-soft:#fff3df;--carico:#147d78;--carico-soft:#e5f3f2;--shadow:0 6px 22px rgba(19,43,52,.045)}
:root[data-theme=dark]{--bg:#10191e;--surface:#19272d;--surface-2:#213139;--line:#34464f;--line-2:#2c3d45;--ink:#eef5f6;--ink-2:#b8cad2;--ink-3:#a0b4be;--accent:#7dd8d0;--accent-ink:#10322f;--accent-soft:#203f42;--crit:#ffa2a5;--crit-soft:#432a30;--warn:#f4c77d;--warn-soft:#3c3223;--carico:#7dd8d0;--carico-soft:#203f42;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#10191e;--surface:#19272d;--surface-2:#213139;--line:#34464f;--line-2:#2c3d45;--ink:#eef5f6;--ink-2:#b8cad2;--ink-3:#a0b4be;--accent:#7dd8d0;--accent-ink:#10322f;--accent-soft:#203f42;--crit:#ffa2a5;--crit-soft:#432a30;--warn:#f4c77d;--warn-soft:#3c3223;--carico:#7dd8d0;--carico-soft:#203f42;color-scheme:dark}}
body{font-size:14px;line-height:1.55}h1,h2,h3{letter-spacing:-.045em}button,a{-webkit-tap-highlight-color:transparent}button{transition:background .15s,border-color .15s,box-shadow .15s}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input,select,textarea{scroll-margin:100px 0}svg{flex-shrink:0}button svg{pointer-events:none}button{touch-action:manipulation}input[type=email],input[type=password]{background:var(--surface);border:1px solid var(--line)}
.topbar{border-bottom:1px solid var(--line-2);box-shadow:none}.topbar-in{max-width:1440px;min-height:78px;padding:16px 32px;gap:16px}.brand-logo{height:37px;max-width:90px;padding:0;border-radius:4px}.brand h1{font-size:24px;font-weight:750;line-height:1.05;letter-spacing:-1px}.brand-dot{color:var(--accent)}.brand small{font-size:11px;letter-spacing:.035em}.sync{border:1px solid var(--line-2);padding:7px 10px;border-radius:24px;font-size:11px;color:var(--ink-2)}.sync::before{width:6px;height:6px}.icon-btn{width:42px;height:42px;display:grid;place-items:center;border-radius:13px}.layout{max-width:1440px}.btn{font-weight:650;border-radius:12px;box-shadow:none}.btn.primary{box-shadow:0 3px 8px #147d7812}.btn.small{font-size:12px}.btn-new{min-height:42px;font-size:12px}.page-head{margin-bottom:25px;align-items:center}.page-head h2{font-size:32px;font-weight:750}.page-head p{max-width:none;font-size:13px;color:var(--ink-3);margin:8px 0 0}.eyebrow{color:var(--accent);font-size:10px;text-transform:uppercase;letter-spacing:.13em;font-weight:750;margin-bottom:10px}.section-title{text-transform:none;letter-spacing:-.03em}.nav-caption{font-size:9px;letter-spacing:.12em;color:var(--ink-3);font-weight:700;padding:0 16px 15px}.side-note{padding:24px 16px;font-size:12px;font-weight:700;color:var(--ink-2);margin-top:24px;border-top:1px solid var(--line)}.side-note span{font-size:11px;font-weight:400;color:var(--ink-3)}
.daily-hero{position:relative;background:#153e4a;color:#fff;border-radius:24px;padding:30px 34px;display:flex;justify-content:space-between;overflow:hidden;margin-bottom:20px;min-height:232px}.hero-content{position:relative;z-index:1;flex:1;min-width:0}.hero-date{font-size:11px;display:flex;align-items:center;gap:8px;color:#c6dfe5;text-transform:capitalize;letter-spacing:.015em}.live-mark{width:6px;height:6px;border-radius:50%;background:#7dd8d0}.daily-hero h2{font-size:38px;line-height:1.16;margin:20px 0 11px;letter-spacing:-1.6px;font-weight:720}.daily-hero h2>span{color:#7dd8d0}.daily-hero p{font-size:13px;color:#d0e3e8;margin:0;max-width:410px}.hero-cta{display:flex;align-items:center;gap:24px;background:#147d78;border:0;color:#ffffff;padding:12px 16px;border-radius:11px;font-size:12px;font-weight:750;margin-top:22px;min-height:44px}.hero-cta:hover{background:#106a66}.hero-cta span{font-size:20px;line-height:1}.hero-art{position:relative;min-width:190px;margin-left:25px;align-self:stretch;display:grid;place-items:center}.hero-art>svg{width:116px;height:116px;stroke-width:.75;color:#7cc9c5;transform:rotate(-8deg);position:relative;z-index:1}.hero-art:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:#ffffff08;border:1px solid #ffffff14}.hero-art:after{content:"";position:absolute;width:244px;height:244px;border-radius:50%;border:1px solid #ffffff0d}.art-window{position:absolute;width:142px;height:142px;border:1px solid #ffffff35;border-radius:24px;transform:rotate(-8deg);background:#ffffff09}.art-check{position:absolute;right:9px;bottom:20px;color:#153e4a;background:#7dd8d0;border:6px solid #153e4a;width:51px;height:51px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;z-index:2}.art-line{position:absolute;left:14px;top:35px;width:26px;height:3px;background:#7dd8d0;transform:rotate(-8deg)}
.daily-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px}.metric{text-align:left;background:var(--surface);border:1px solid var(--line-2);border-radius:16px;padding:17px 18px;min-width:0;box-shadow:var(--shadow)}.metric:hover{border-color:var(--accent)}.metric-label{display:flex;justify-content:space-between;align-items:center;gap:6px;color:var(--ink-2);font-size:11px;font-weight:550}.metric-label svg{width:17px;height:17px;color:var(--ink-3)}.metric strong{font-size:34px;line-height:1.2;display:block;letter-spacing:-1px;margin:10px 0;font-weight:700;font-variant-numeric:tabular-nums}.metric-foot{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:var(--ink-3)}.metric-foot>span{color:var(--accent)}.metric-danger{background:var(--crit-soft);border-color:transparent}.metric-danger strong,.metric-danger .metric-label svg{color:var(--crit)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.section-heading h3{font-size:16px;display:flex;align-items:center;gap:8px;font-weight:750;letter-spacing:-.035em}.section-heading>span{font-size:10px;color:var(--ink-3)}.text-link{background:none;border:0;font-size:11px;color:var(--accent);font-weight:700;padding:8px 0;min-height:36px;white-space:nowrap}.count-bubble{font-size:10px;padding:4px 7px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-weight:700;letter-spacing:0}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:8px}.quick-actions>button,.menu-links>button{display:flex;align-items:center;gap:12px;border:1px solid var(--line-2);background:var(--surface);border-radius:15px;padding:16px;text-align:left;min-width:0}.quick-actions>button:hover,.menu-links>button:hover{border-color:var(--accent)}.quick-icon{background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;width:42px;height:42px;border-radius:12px;flex:none}.quick-icon svg{width:20px;height:20px}.quick-icon.amber{background:var(--warn-soft);color:var(--warn)}.quick-icon.blue{background:var(--accent-soft);color:var(--accent)}.quick-actions b,.menu-links b{display:block;font-size:12px}.quick-actions small,.menu-links small{display:block;font-size:10px;color:var(--ink-3);margin-top:3px}.quick-actions>button>svg{width:14px;height:14px;margin-left:auto;color:var(--ink-3)}.daily-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.daily-columns section{min-width:0}.home-projects{display:grid;gap:12px}.priority-list{box-shadow:var(--shadow)}.lav{padding:18px 16px;gap:12px;align-items:flex-start}.spunta{width:44px;height:44px;border:1.5px solid var(--line);position:relative;font-size:18px}.spunta:not(.fatta){background:var(--surface);color:var(--ink-3)}.spunta:hover{border-color:var(--accent);color:var(--accent)}.lav-t{min-height:44px;padding-top:3px;gap:7px}.lav-t .t{font-size:13px;font-weight:650;overflow-wrap:anywhere}.lav-t .s{font-size:10px;gap:5px}.lav-t .pill{font-size:10px;padding:2px 7px}.pill{letter-spacing:0;font-weight:650}.list-group{font-size:10px;padding:12px 16px;color:var(--ink-2)}.empty{color:var(--ink-3);padding:32px 22px}.empty h3{font-size:17px;margin:0 0 8px}.empty p{font-size:12px;margin:8px auto 16px;max-width:300px}.empty-icon{margin:0 auto 15px;width:46px;height:46px;border-radius:15px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.empty-icon svg{width:24px;height:24px}
.project-card{background:var(--surface);border:1px solid var(--line-2);border-radius:18px;overflow:hidden;min-width:0;box-shadow:var(--shadow)}.project-card:hover{border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}.project-open{display:block;width:100%;border:0;background:none;text-align:left;padding:20px;min-width:0}.project-top{display:flex;align-items:center;gap:8px;margin-bottom:15px}.project-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--surface-2);color:var(--ink-2);margin-right:auto}.project-icon svg{width:19px;height:19px}.project-top .pill{font-size:10px}.arrow{font-size:19px;color:var(--ink-3);margin-left:5px}.project-name{display:block;font-size:17px;line-height:1.4;letter-spacing:-.035em;overflow-wrap:anywhere}.project-client{display:block;font-size:11px;color:var(--ink-3);margin:4px 0 20px;overflow-wrap:anywhere}.project-progress{display:flex;justify-content:space-between;font-size:10px;gap:10px;color:var(--ink-3)}.project-progress b{color:var(--accent)}.progress-track{display:block;background:var(--surface-2);height:5px;border-radius:3px;margin:8px 0 14px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--accent);border-radius:3px}.project-meta{display:flex;flex-wrap:wrap;gap:7px 14px;font-size:10px;color:var(--ink-2)}.text-danger{color:var(--crit)}.project-actions{border-top:1px solid var(--line-2);display:flex;padding:5px 12px;gap:6px}.project-actions .btn{flex:1;min-height:42px;font-size:11px}.project-actions .btn svg{width:15px;height:15px}.home-projects .project-open{padding:17px 20px}.home-projects .project-top{margin-bottom:10px}.home-projects .project-client{margin-bottom:14px}.home-projects .project-name{font-size:15px}.cantieri-list{gap:16px}.results-count{font-size:11px;color:var(--ink-3);margin:16px 0 12px}.chip{min-height:42px;padding:9px 14px;border-radius:11px;font-size:12px;display:inline-flex;align-items:center;gap:6px}.chip svg{width:15px;height:15px}.chip-count{font-size:10px;opacity:.8}.toolbar.chips{gap:7px}.search input[type=search]{padding:12px 42px 12px 40px;font-size:14px;border-radius:13px;min-height:49px}.search-clear{position:absolute;right:5px;top:4px;width:40px;height:40px;border:0;background:none;border-radius:10px}.search-clear svg{position:static;transform:none;width:15px;height:15px}.search input::-webkit-search-cancel-button{-webkit-appearance:none}.toolbar select{font-size:13px;min-height:49px}.order-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line-2);border-radius:16px;background:var(--surface);margin-bottom:22px;padding:17px 0}.order-summary>span{font-size:11px;text-align:center;color:var(--ink-3);border-right:1px solid var(--line-2)}.order-summary>span:last-child{border:0}.order-summary b{display:block;font-size:26px;color:var(--ink);letter-spacing:-1px;margin-bottom:3px}.order-card{border-color:var(--line-2);padding:20px}.order-card.is-urgent{border-left:4px solid var(--crit)}.order-card.is-ordered{border-left:4px solid var(--carico)}.order-top strong{font-size:16px;line-height:1.45}.order-top .pill{font-size:10px}.order-quantity{font-size:25px;letter-spacing:-.045em;margin:12px 0}.order-quantity .pill{letter-spacing:0;font-size:10px;vertical-align:middle;margin-left:8px}.order-card>.link{font-size:12px;min-height:32px}.order-note{font-size:12px;color:var(--ink-2);margin:7px 0}.order-meta{font-size:10px;margin:12px 0 16px;line-height:1.8}.order-card .actions{border-top:1px solid var(--line-2);padding-top:14px;justify-content:space-between}.order-card .actions .primary{margin-left:auto}.form-guide{padding:13px 15px;background:var(--accent-soft);border-radius:12px;color:var(--ink-2);font-size:12px;margin:0}.ordine-riga{counter-increment:materiale}.ordine-riga:before{content:"MATERIALE " counter(materiale);display:block;font-size:9px;letter-spacing:.1em;color:var(--accent);font-weight:750;margin-bottom:13px}#or-righe{counter-reset:materiale}.ordine-riga .fields{grid-template-columns:1fr 1fr}.ordine-riga .field label{text-transform:none;letter-spacing:0}.field label{text-transform:none;font-size:12px;letter-spacing:0}.sheet-head h2{font-size:22px}.sheet-head{padding:17px 20px}.sheet-body{padding:22px;gap:20px}.sheet-foot{padding:14px 22px calc(14px + env(safe-area-inset-bottom,0px));z-index:4}.sheet-foot .primary{flex:1.5}.sheet-tabs button{font-size:12px;padding:12px 15px}.toast{border-radius:13px;padding:14px 18px;font-size:13px;box-shadow:0 8px 30px #0002}.banner{font-size:12px}.banner .txt{font-size:12px}.profile-card{display:flex;gap:14px;align-items:center;background:var(--surface);padding:22px;border:1px solid var(--line-2);border-radius:18px;margin-bottom:20px}.avatar{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:15px;width:50px;height:50px;font-size:22px;font-weight:700;flex:none}.profile-card>div{min-width:0;flex:1}.profile-card b{display:block;font-size:15px;overflow-wrap:anywhere}.profile-card small{display:block;font-size:11px;color:var(--ink-3);overflow-wrap:anywhere}.profile-card>.pill{font-size:10px}.menu-links{display:grid;gap:12px}.menu-links>button>span:last-child{margin-left:auto;color:var(--ink-3)}.menu-links b{font-size:14px}.menu-links small{font-size:12px}.preferences{padding:23px;background:var(--surface);border:1px solid var(--line-2);border-radius:18px;margin-top:20px}.preferences h3{font-size:16px}.preferences p{font-size:12px;color:var(--ink-3);margin:8px 0 17px}.theme-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px;background:var(--surface-2);border-radius:12px}.theme-switch button{border:0;border-radius:9px;min-height:44px;font-size:12px;color:var(--ink-2);background:none}.theme-switch button[aria-pressed=true]{background:var(--surface);box-shadow:var(--shadow);color:var(--accent);font-weight:750}.daily-help p{margin:13px 0 0}.daily-help b{color:var(--ink-2)}.app-version{text-align:center;font-size:10px;color:var(--ink-3);margin-top:24px}.auth-card{border-radius:24px;padding:32px;gap:20px}.auth-card h2{font-size:28px;text-transform:none;letter-spacing:-1px}.auth-card p{font-size:13px}.password-wrap{position:relative}.password-wrap input{padding-right:96px}.password-wrap button{position:absolute;right:4px;top:3px;min-height:42px;font-size:11px;width:auto}.auth-card img{height:63px;max-width:180px;object-fit:contain}.loading-state{text-align:center;padding:90px 20px;color:var(--ink-3)}.loading-state h2{font-size:23px;color:var(--ink);margin:25px 0 12px}.loading-state p{font-size:13px}.loader{display:block;margin:auto;width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:900px){.layout{grid-template-columns:218px minmax(0,1fr)}.side{padding:33px 16px;gap:6px;top:78px;min-height:calc(100dvh - 78px);border-right:1px solid var(--line-2)}.nav-item{font-size:12px;min-height:47px;padding:12px 16px;gap:12px;color:var(--ink-2)}.nav-item svg{width:19px;height:19px}.nav-item[aria-current=page]{background:var(--accent-soft);color:var(--accent);box-shadow:none}.nav-item .badge{font-size:9px;height:17px;min-width:17px;padding:0 4px}main{padding:30px 32px 60px}.order-list:not(#or-righe){grid-template-columns:repeat(2,minmax(0,1fr))}.sheet .order-list{grid-template-columns:1fr!important}.sheet{width:min(600px,100%)}.preferences,.menu-links,.profile-card{max-width:780px}}
@media(min-width:1200px){main{padding:34px 40px 70px}.daily-hero{padding:30px 36px}.daily-columns{gap:24px}.cantieri-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:900px) and (max-width:1120px){.quick-actions small{display:none}.quick-actions>button>svg{display:none}.metric{padding:15px 12px}.metric-label{font-size:10px}.daily-hero h2{font-size:32px}.hero-art{min-width:140px}.daily-columns{grid-template-columns:1fr}.home-projects{grid-template-columns:repeat(2,minmax(0,1fr))}.home-projects>.project-card:last-child{display:none}}
@media(max-width:899px){main{padding:23px 18px calc(176px + env(safe-area-inset-bottom,0px))}.topbar-in{padding:12px 18px;min-height:70px;gap:12px;flex-wrap:nowrap}.brand-logo{height:29px;max-width:68px}.brand h1{font-size:22px}.brand small{font-size:9px}.brand{flex:1;gap:3px}.sync{font-size:0;border:0;padding:0;min-width:8px}.sync::before{width:7px;height:7px}.topbar .icon-btn{width:40px;height:40px}.spacer{display:none}.tabbar{left:0;right:0;bottom:0;border:0;border-top:1px solid var(--line);border-radius:20px 20px 0 0;padding:7px 8px calc(9px + env(safe-area-inset-bottom,0px));gap:4px;box-shadow:0 -5px 25px #182f3a08}.tab{font-size:10px;min-height:55px;gap:5px;border-radius:13px;font-weight:650;padding:8px 2px}.tab svg{width:20px;height:20px}.tab[aria-current=page]{background:var(--accent-soft)}.tab .badge{font-size:9px;min-width:15px;height:15px;top:3px;left:calc(50% + 7px);padding:0 3px}.fab{right:18px;bottom:calc(89px + env(safe-area-inset-bottom,0px));min-height:50px;padding:13px 18px;border-radius:16px;font-size:12px}.fab svg{width:18px;height:18px}.page-head h2{font-size:29px}.page-head .page-add{display:none}.page-head p{font-size:12px;max-width:300px}.page-head{margin-bottom:23px}.eyebrow{font-size:9px;margin-bottom:9px}.daily-hero{border-radius:21px;padding:24px;min-height:210px;margin-bottom:14px}.daily-hero h2{font-size:31px;margin-top:18px;letter-spacing:-1.1px}.daily-hero p{font-size:12px;max-width:270px;line-height:1.7}.hero-date{font-size:10px}.hero-art{min-width:130px}.hero-art>svg{width:90px;height:90px}.hero-art:before{width:150px;height:150px}.hero-art:after{width:190px;height:190px}.art-window{width:112px;height:112px}.art-check{right:0;bottom:26px;width:44px;height:44px;font-size:18px}.daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}.metric{padding:15px 17px;border-radius:15px}.metric-label{font-size:10px}.metric strong{font-size:31px;margin:8px 0}.metric-foot{font-size:9px}.quick-actions{grid-template-columns:1fr;gap:9px;margin-bottom:10px}.quick-actions>button{padding:13px 15px;border-radius:14px;gap:13px}.quick-icon{width:39px;height:39px;border-radius:11px}.quick-actions b{font-size:12px}.quick-actions small{font-size:10px}.quick-actions>button>svg{width:16px;height:16px}.daily-columns{grid-template-columns:1fr;gap:0}.section-heading{margin:22px 0 12px}.section-heading h3{font-size:16px}.section-heading>span{font-size:10px}.hero-cta{font-size:11px;margin-top:20px;gap:20px}.cantieri-list{grid-template-columns:1fr}.project-name{font-size:18px}.project-client{font-size:12px}.project-progress,.project-meta{font-size:11px}.project-actions .btn{font-size:12px}.project-card{border-radius:17px}.search input[type=search]{font-size:16px}.toolbar select{width:100%;font-size:14px}.sheet{margin-top:8px;height:calc(100dvh - 8px);border-radius:22px 22px 0 0}.sheet-body{padding:20px 18px 30px}.sheet-head{padding:15px 18px}.sheet-head h2{font-size:21px}.sheet-foot{padding-left:18px;padding-right:18px}.sheet-tabs{padding:0 10px}.sheet-tabs button{font-size:12px;padding:12px 14px}.lav-t .t{font-size:14px}.lav-t .s{font-size:11px}.auth main{margin:10px auto;padding:20px 18px 50px}.auth-card{padding:28px 22px;margin:10px auto}.auth-card h2{font-size:27px}.profile-card{padding:18px;gap:10px}.profile-card>.pill{display:none}.toast{bottom:calc(150px + env(safe-area-inset-bottom,0px));width:max-content;text-align:center;max-width:calc(100% - 36px)}}
@media(max-width:540px){.hero-art{display:none}.daily-hero{background:radial-gradient(circle at 110% -15%,#147d7822 0,transparent 65%),#153e4a}.daily-hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff10;border-radius:50%;right:-115px;top:-20px;box-shadow:0 0 0 28px #ffffff04,0 0 0 56px #ffffff03}.hero-content{width:100%}.daily-hero h2{max-width:100%;overflow-wrap:anywhere}.page-head>.btn{font-size:11px}.order-top{flex-wrap:wrap}.order-card .actions .btn{font-size:11px}.order-summary b{font-size:25px}.profile-card small{font-size:10px}}
@media(max-width:360px){main{padding-left:13px;padding-right:13px}.topbar-in{padding-left:13px;padding-right:13px}.daily-hero{padding:22px}.daily-hero h2{font-size:27px}.metric{padding:13px}.metric-label{font-size:9px}.metric-label svg{width:15px;height:15px}.metric-foot{font-size:9px}.section-heading h3{font-size:14px}.text-link{font-size:10px}.tab{font-size:9px}.brand-logo{max-width:57px}.brand h1{font-size:20px}.project-open{padding:17px}.preferences{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.daily-hero,.daily-metrics,.quick-actions,.side,.fab,.tabbar{display:none!important}.paper{font-family:Arial,sans-serif}.paper h1,.paper h3{font-family:Arial,sans-serif}.sheet{height:auto;overflow:visible}}
/* Final refinements after device QA */
.auth-card .password-wrap .btn{width:auto;min-width:80px;padding:10px;right:4px;color:var(--accent)}
.auth-card .password-wrap input{padding-right:100px}
.spunta:not(.fatta){color:transparent}
.spunta:not(.fatta):hover{color:var(--accent)}
@media(max-width:899px){.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick-actions>button{flex-direction:column;align-items:flex-start;gap:11px;padding:14px 11px}.quick-actions>button>svg,.quick-actions small{display:none}.quick-actions b{font-size:11px;line-height:1.45}.quick-actions .quick-icon{width:34px;height:34px}.quick-actions .quick-icon svg{width:18px;height:18px}}

/* KlimApp Daily · v13 — pagina Note + barra a 6 voci */
.note-composer{background:var(--surface);border:1px solid var(--line-2);border-top:3px solid var(--accent);border-radius:18px;padding:18px;margin-bottom:22px;box-shadow:var(--shadow)}
.note-composer-head{display:flex;align-items:center;gap:9px;font-weight:750;font-size:14px;letter-spacing:-.03em;margin-bottom:14px}
.note-composer-head svg{width:20px;height:20px;color:var(--accent)}
.note-composer select{width:100%;margin-bottom:10px}
.note-composer textarea{width:100%;min-height:84px;margin-bottom:12px;resize:vertical}
.note-composer .actions{display:flex}
.note-composer .actions .btn{width:100%}
.note-group{margin-bottom:20px}
.note-group-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;letter-spacing:-.02em;color:var(--ink-2);margin:0 2px 11px}
.note-group-head svg{width:16px;height:16px;color:var(--ink-3);flex:none}
.note-group-head span{margin-left:auto;font-size:10px;font-weight:700;color:var(--ink-3);background:var(--surface-2);border:1px solid var(--line-2);border-radius:8px;padding:3px 9px}
.note-list{display:grid;gap:10px}
.note-card{background:var(--surface);border:1px solid var(--line-2);border-radius:15px;padding:15px 16px;box-shadow:var(--shadow)}
.note-card.editing{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.note-text{margin:0 0 12px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.note-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.note-meta{flex:1;min-width:0;font-size:10.5px;line-height:1.5;color:var(--ink-3);overflow-wrap:anywhere}
.note-meta b{color:var(--ink-2);font-weight:700}
.note-meta i{font-style:italic}
.note-edit-btn{flex:none;min-height:36px}
.note-card .note-edit{width:100%;min-height:90px;margin-bottom:10px;resize:vertical}
.note-card.editing .actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media(min-width:900px){.note-composer{max-width:820px}.note-composer .actions{justify-content:flex-start}.note-composer .actions .btn{width:auto;min-width:200px}.note-list{grid-template-columns:repeat(2,minmax(0,1fr))}.note-group-head{margin-bottom:12px}}
/* Barra inferiore con 6 voci: più compatta su mobile */
@media(max-width:899px){.tabbar{gap:2px;padding-left:5px;padding-right:5px}.tab{min-height:54px;padding:8px 1px;gap:4px;font-size:9.5px;font-weight:650}.tab svg{width:19px;height:19px}.tab span{white-space:nowrap;letter-spacing:-.02em}.tab .badge{left:calc(50% + 6px)}}
@media(max-width:400px){.tab{font-size:9px;gap:3px}.tab svg{width:18px;height:18px}}

/* v14 · Palette petrolio e verde acqua */
:root{--petrol:#153e4a;--amber:#c78526;--red:#c65353;--scarico:#956018;--scarico-soft:#fff3df;--reso:#526d7a;--reso-soft:#edf2f5;--earth:#147d78}
.brand h1{color:var(--petrol)}
.metric-label svg{color:var(--accent)}
.metric[data-action="focus-ordini"] .metric-label svg,.metric[data-filter="oggi"] .metric-label svg{color:var(--amber)}
.metric-danger .metric-label svg{color:var(--red)}
.hero-cta{box-shadow:0 3px 10px #001b2020}
:root[data-theme=dark]{--petrol:#d5edf0;--scarico:#f4c77d;--scarico-soft:#3c3223;--reso:#b8cad2;--reso-soft:#213139;--earth:#7dd8d0}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--petrol:#d5edf0;--scarico:#f4c77d;--scarico-soft:#3c3223;--reso:#b8cad2;--reso-soft:#213139;--earth:#7dd8d0}}
