/* "Analisi di bilancio con AI" demo: only what the kit does not have
   (the PDF under the reading line, the reclassified statement with drag & drop, the checks, the report and its cover). */

:root{--bd-neg:#E9A59C;--bd-sub:color-mix(in srgb,var(--blue) 45%,var(--fill));--bd-c2:color-mix(in srgb,var(--blue) 40%,var(--fill));--bd-c3:#C7C7CC;--bd-yel:#F5C400}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bd-neg:#9A4F47;--bd-c3:#545458;--bd-yel:#FFD60A}}
:root[data-theme="dark"]{--bd-neg:#9A4F47;--bd-c3:#545458;--bd-yel:#FFD60A}

/* ---------- shared pieces ---------- */
.why{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:15px;font-weight:500;color:var(--ink-2);max-width:72ch}
.why svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--blue)}
.foot-note{display:flex;gap:8px;align-items:flex-start;margin-top:18px;color:var(--muted);font-size:12.5px;max-width:84ch}
.foot-note svg{width:14px;height:14px;flex:none;margin-top:2px;color:var(--blue)}
.kpi .v .cur{font-size:.6em;font-weight:650;color:var(--ink-2);margin-right:.16em;letter-spacing:0}
.kpi .v small.of{font-size:.46em;font-weight:600;color:var(--muted);letter-spacing:-.01em}
.kpi .s .pill{vertical-align:1px}
.kpi.hl{box-shadow:var(--sh-card),inset 0 0 0 1.5px color-mix(in srgb,var(--green-dot) 50%,transparent)}
.kpis.k6{grid-template-columns:repeat(3,minmax(0,1fr))}
.side .logo{padding-right:0}
.side .logo b{font-size:14px;letter-spacing:-.015em;text-wrap:balance}
.chk p>b{display:block}
.chk p>.muted{display:block;margin-top:2px}
.stack>.card{flex:none}
.pill.ex{background:var(--fill);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--sep)}
.l-short{display:none}
.note-s{display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:12.5px}
.note-s svg{width:14px;height:14px;flex:none;margin-top:2px;color:var(--blue)}
.empty-s{color:var(--muted);font-size:13px}
.green-row small{margin-left:auto;text-align:right}
.ai{font:600 10px/1 var(--mono);font-style:normal;color:var(--blue);background:var(--blue-bg);padding:2px 5px;border-radius:5px;margin-left:4px;vertical-align:1px;letter-spacing:.02em}
.cg3{display:flex;flex-direction:column;gap:16px}
.cg-r{display:flex;gap:12px}
.cg-r .ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--blue-bg);color:var(--blue);flex:none}
.cg-r .ic svg{width:16px;height:16px}
.cg-r b{display:block;font-size:13.5px;font-weight:650}
.cg-r p{color:var(--ink-2);font-size:13px;margin-top:2px}
.tl{list-style:none;display:flex;flex-direction:column}
.tl li{display:flex;gap:12px;padding:0 0 14px;position:relative}
.tl li:last-child{padding-bottom:0}
.tl li:before{content:"";position:absolute;left:11px;top:26px;bottom:2px;width:1.5px;border-radius:1px;background:var(--sep)}
.tl li:last-child:before{display:none}
.tl .d{width:24px;height:24px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--fill);color:var(--muted);font-size:12px;font-weight:700}
.tl b{display:block;font-size:13.5px;font-weight:600}
.tl small{display:block;color:var(--muted);font-size:12.5px;margin-top:1px}

/* ---------- Panoramica ---------- */
.path{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;counter-reset:p}
.path li{position:relative;min-width:0}
.path li+li:before{content:"";position:absolute;left:-10px;top:34px;width:10px;height:1.5px;background:var(--sep)}
.path a{display:flex;flex-direction:column;gap:6px;height:100%;padding:14px;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);transition:background .15s,box-shadow .15s}
.path a:hover{background:var(--blue-bg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 35%,transparent)}
.pn{display:flex;align-items:center;gap:8px;color:var(--blue)}
.pn svg{width:22px;height:22px;padding:7px;box-sizing:content-box;border-radius:10px;background:var(--blue-bg)}
.pn i{font:600 11px var(--mono);font-style:normal;color:var(--muted);margin-left:auto}
.path b{font-size:14px;font-weight:650;margin-top:4px}
.path small{color:var(--muted);font-size:12.5px}
#pan-path{margin-bottom:14px}
.ags{display:flex;flex-direction:column}
.ag{display:flex;align-items:center;gap:12px;padding:10px 0}
.ag+.ag{border-top:.5px solid var(--sep)}
.ag .ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--blue-bg);color:var(--blue);flex:none}
.ag .ic svg{width:16px;height:16px}
.ag .tx{flex:1;min-width:0}
.ag .tx b{display:block;font-size:13.5px;font-weight:650}
.ag .tx small{display:block;color:var(--muted);font-size:12.5px}
.ag .pill{flex:none}
.qd{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:14px}
.qd>div{padding:12px 14px;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);min-width:0}
.qd small{display:block;color:var(--muted);font-size:12px}
.qd b{display:block;font-size:24px;font-weight:700;letter-spacing:-.025em;margin-top:2px}
.qd .eq{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--green-bg);color:var(--green);font-weight:700;font-size:17px;justify-self:center}
#pan-quadra .note-s{margin-top:12px}

/* ---------- Carica ---------- */
.up{display:flex;flex-direction:column;gap:20px;padding-top:20px}
.up-s{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px}
.up-n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--blue-bg);color:var(--blue);font-weight:700;font-size:13px}
.up-b{min-width:0}
.up-b h3{font-size:15px;font-weight:650;margin:3px 0 10px}
.up .drop{padding:22px 18px;gap:10px}
.up .drop b{display:block;font-size:14px;font-weight:650}
.up .drop p{font-size:13px;margin:2px auto 0}
.up .drop .big-ic{width:46px;height:46px;border-radius:14px}
.up .drop .big-ic svg{width:23px;height:23px}
.file{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);animation:rowin .35s ease both}
.file .fi{width:38px;height:38px;border-radius:10px;flex:none}
.file .fi svg{width:19px;height:19px}
.file .tx{flex:1;min-width:0}
.file .tx b{display:block;font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .tx small{display:block;color:var(--muted);font-size:12.5px}
.up .kv{font-size:13.5px}
.up .kv dt,.up .kv dd{padding:8px 0}
.up-h{color:var(--muted);font-size:12.5px;margin-top:8px}
.sw-r{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13.5px;font-weight:500;text-align:left}
.sw{width:38px;height:22px;border-radius:11px;background:var(--fill-2);position:relative;transition:background .25s;flex:none}
.sw i{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .25s cubic-bezier(.3,.7,.2,1)}
.sw.on{background:var(--green-dot)}
.sw.on i{transform:translateX(16px)}
.up-go{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding-top:16px;border-top:.5px solid var(--sep)}
.up-go small{color:var(--muted);font-size:12.5px}

/* ---------- the analysis (flow) ---------- */
.bd-flow .stage{min-height:0}
.s-main{display:flex;flex-direction:column;gap:14px}
.ctr{display:flex;flex-direction:column;gap:8px}
.ctr-n{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ctr-n b{font-size:36px;font-weight:700;letter-spacing:-.03em;line-height:1}
.ctr-n span{color:var(--muted);font-size:13.5px}
.bar-p.g i{background:var(--green-dot)}
.btn.autofill{position:relative;overflow:hidden;isolation:isolate}
.btn.autofill:after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(255,255,255,.3);transform-origin:left;animation:bdfill var(--hold,1s) linear both}
@keyframes bdfill{from{transform:scaleX(0)}to{transform:none}}
@keyframes bdgrow{from{transform:scaleY(0)}to{transform:none}}
@keyframes bdpop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}

/* 1. reading: a sheet of the PDF under a reading line */
.rd{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
.paper{position:relative;height:340px;overflow:hidden;border-radius:10px;background:var(--paper);color:#1D1D1F;box-shadow:0 0 0 .5px rgba(0,0,0,.12),0 12px 28px -16px rgba(0,0,0,.4)}
.paper:after{content:"";position:absolute;inset:auto 0 0;height:28px;background:linear-gradient(transparent,var(--paper));pointer-events:none}
.pp-in{position:relative;padding:14px 16px 30px;font:500 10.5px/1.25 var(--mono);will-change:transform}
.pr-top{display:flex;justify-content:space-between;gap:10px;padding-bottom:8px;margin-bottom:6px;border-bottom:1px solid #D2D2D7;font:600 10.5px var(--ui)}
.pr-top span{color:#6E6E73;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-r{display:flex;justify-content:space-between;gap:12px;padding:2px 5px;border-radius:3px;white-space:nowrap;color:#6E6E73;transition:background .25s,color .25s}
.pr-r span:first-child{overflow:hidden;text-overflow:ellipsis}
.pr-h{font-weight:700;color:#1D1D1F;padding-top:7px}
.pr-g{color:#424245}
.pr-i{padding-left:16px}
.pr-i.on{background:rgba(0,113,227,.1);color:#1D1D1F}
.pr-t{font-weight:700;color:#1D1D1F}
.pr-t.on{background:rgba(52,199,89,.18)}
.pr-pg{display:flex;align-items:center;gap:8px;margin:8px 0 4px;color:#AEAEB2;font:500 9.5px var(--ui)}
.pr-pg:before,.pr-pg:after{content:"";flex:1;border-top:1px dashed #D2D2D7}
.beam{position:absolute;left:8px;right:8px;top:0;height:2px;border-radius:1px;background:var(--blue);box-shadow:0 0 14px 3px rgba(0,113,227,.35);transition:opacity .3s}
.beam.off{opacity:0}
.rd-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.tots{display:flex;flex-direction:column;gap:2px}
.tt{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 8px;border-radius:8px;font-size:12.5px;opacity:.3;transition:opacity .3s,background .3s}
.tt svg{width:13px;height:13px;color:var(--green)}
.tt span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}
.tt b{font-weight:600}
.tt.on{opacity:1;background:color-mix(in srgb,var(--green-bg) 60%,transparent)}

/* 2. reclassification */
.tick{display:flex;align-items:center;gap:10px;height:36px;padding:0 6px 0 12px;border-radius:10px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);font-size:13px;min-width:0}
.tick .tk-d{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.tick>svg{width:14px;height:14px;color:var(--faint);flex:none}
.tick .pill{flex:none}
.rcl{display:flex;flex-direction:column}
.rc-r{display:grid;grid-template-columns:minmax(0,1fr) 72px 118px;gap:12px;align-items:baseline;padding:7px 10px;border-radius:8px;font-size:13.5px;transition:background .3s}
.rc-r+.rc-r{box-shadow:0 -.5px 0 var(--sep)}
.rc-r .n{color:var(--muted);font-size:12px;text-align:right;white-space:nowrap}
.rc-r .v{text-align:right;font-weight:600;white-space:nowrap}
.rc-r.rs{background:var(--surface-2);margin:3px 0}
.rc-r.rs,.rc-r.rs+.rc-r{box-shadow:none}
.rc-r.rs .nm,.rc-r.rs .v{font-weight:700}
.rc-r.tot{background:var(--blue-bg);margin-bottom:0}
.rc-r.tot .nm,.rc-r.tot .v{color:var(--blue)}
.rc-r.hit{animation:bdhit .7s ease-out}
@keyframes bdhit{from{background:var(--blue-bg)}to{background:transparent}}
.contra{opacity:0;transition:opacity .4s}
.contra.on{opacity:1}

/* 3. verification: confidence per item */
.conf{position:relative;display:flex;align-items:flex-end;gap:3px;height:104px;padding:0 0 0 38px;border-bottom:.5px solid var(--sep)}
.cf{flex:1;min-width:0;height:calc(var(--h) * 1%);border-radius:3px 3px 0 0;background:var(--green-dot);transform-origin:bottom;animation:bdgrow .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 24ms)}
.cf.b{background:var(--blue)} .cf.o{background:var(--orange-dot)}
.thr{position:absolute;left:38px;right:0;border-top:1.5px dashed var(--orange);z-index:1;pointer-events:none}
.thr small{position:absolute;left:-38px;top:-9px;font:600 11px var(--ui);color:var(--orange)}
.cchips{opacity:0;transform:translateY(4px);transition:opacity .35s,transform .35s}
.cchips.on{opacity:1;transform:none}
.low{display:flex;flex-direction:column;gap:8px}
.lw{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 12px;border-radius:12px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);opacity:0;transform:translateX(-6px);transition:opacity .3s,transform .3s}
.lw.on{opacity:1;transform:none}
.lw .pcn{font-size:17px;font-weight:700;letter-spacing:-.02em}
.lw.o{background:color-mix(in srgb,var(--orange-bg) 70%,var(--surface-2));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orange-dot) 40%,transparent)}
.lw.o .pcn{color:var(--orange)} .lw.b .pcn{color:var(--blue)}
.lw .tx b{display:block;font-size:13.5px;font-weight:600}
.lw .tx small{display:block;color:var(--muted);font-size:12.5px}

/* 4. reconciliation: printed and reclassified, side by side */
.rq-h{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:8px;padding:0 14px;font-size:12px;font-weight:600;color:var(--muted)}
.rq-h span:last-child{text-align:right}
.rq{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:8px;align-items:center;padding:9px 14px;border-radius:12px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep);opacity:.4;transition:opacity .3s,box-shadow .3s}
.rq small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rq b{display:block;font-size:15px;font-weight:650;white-space:nowrap}
.rq .b{text-align:right;min-width:0}
.rq .a{min-width:0}
.rq .eq{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;justify-self:center;background:var(--fill);color:var(--muted);font-weight:700}
.rq .eq svg{width:14px;height:14px;stroke-width:2.6}
.rq.on{opacity:1}
.rq.on .eq{background:var(--green-bg);color:var(--green)}
.rq.last.on{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--green-dot) 55%,transparent)}
.stamp{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:var(--green-bg);color:var(--green);font-weight:700;font-size:14px;animation:bdpop .4s cubic-bezier(.2,.8,.2,1.3) both}
.stamp svg{width:16px;height:16px;stroke-width:2.4}

/* 5. the nine checks */
.c9 .chk{align-items:center;padding:8px 0}
.c9 .chk .d{width:24px;height:24px}
.c9 .chk p{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.c9 .chk p>.muted{display:inline;margin:0;font-size:12.5px}
.dz{margin-left:auto;min-width:46px;height:24px;padding:0 9px;border-radius:12px;background:var(--green-bg);color:var(--green);font-weight:700;font-size:12.5px;display:grid;place-items:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.dz.r{background:var(--red-bg);color:var(--red)}

/* 6. the report goes out */
.rep-fin{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;align-items:center}
.mini-cov{animation:bdpop .45s cubic-bezier(.2,.8,.2,1) both}
#fin .big-ok{padding:0}

/* ---------- report cover: three styles, sized in em ---------- */
.cov{--cf:11px;--cv-a:#1D1D1F;--cv-n:#E9A59C;--cv-s:#9DB8E8;font-size:var(--cf);width:100%;aspect-ratio:1/1.36;display:flex;flex-direction:column;gap:1.3em;padding:1.8em 1.7em 1.4em;border-radius:8px;background:#fff;color:#1D1D1F;box-shadow:0 0 0 .5px rgba(0,0,0,.12),0 14px 32px -14px rgba(0,0,0,.35);font-family:var(--ui)}
.mini-cov{container-type:inline-size}
.cov.cv-mini{--cf:2.72cqi}
.cv-top{display:flex;justify-content:space-between;align-items:center;gap:1em;font-size:.95em;color:#6E6E73}
.cv-logo{display:flex;align-items:center;gap:.6em;font-weight:600;color:#1D1D1F;white-space:nowrap}
.cv-logo i{width:2.2em;height:2.2em;border-radius:.6em;display:grid;place-items:center;background:#1D1D1F;color:#fff;font:700 .8em/1 var(--ui);font-style:normal;letter-spacing:.02em}
.cv-ex{font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:.8em;padding:.3em .7em;border-radius:99em;background:#F2F2F4}
.cv-t small{display:block;font-size:1em;letter-spacing:.06em;text-transform:uppercase;color:#86868B}
.cv-t h2{font-size:2.6em;line-height:1.05;font-weight:700;letter-spacing:-.025em;margin-top:.25em}
.cv-t p{color:#6E6E73;margin-top:.3em}
.cv-ks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7em}
.cv-k{border:1px solid #E5E5EA;border-radius:.7em;padding:.7em .8em;min-width:0}
.cv-k small{display:block;color:#6E6E73;font-size:.85em}
.cv-k b{display:block;font-size:1.3em;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.cv-sec small{display:block;font-size:.8em;letter-spacing:.06em;text-transform:uppercase;color:#86868B;margin-bottom:.7em}
.cv-c{font-size:1.05em;line-height:1.45;color:#424245}
.cv-wf{position:relative;height:8.5em;border-bottom:1px solid #E5E5EA}
.cv-wf i{position:absolute;width:9%;border-radius:.2em .2em 0 0;background:var(--cv-n)}
.cv-wf i.t{background:var(--cv-a)} .cv-wf i.s{background:var(--cv-s)}
.cv-sem{display:flex;flex-wrap:wrap;gap:.5em 1.1em;font-size:.85em;color:#6E6E73}
.cv-sem span{display:inline-flex;align-items:center;gap:.4em;white-space:nowrap}
.cv-sem i{width:.75em;height:.75em;border-radius:50%;background:#34C759}
.cv-sem i.y{background:#F5C400} .cv-sem i.r{background:#FF3B30}
.cv-f{color:#AEAEB2;font-size:.85em;text-align:center;margin-top:auto}
.cov.st-classico{background:#FBF8F2;font-family:Georgia,"Times New Roman",serif;--cv-a:#5B3A1E;--cv-n:#DDBFA6;--cv-s:#B08D6E}
.cov.st-classico .cv-t h2{color:#5B3A1E;font-weight:400;letter-spacing:-.01em}
.cov.st-classico .cv-t small,.cov.st-classico .cv-ex{color:#8C6A4A}
.cov.st-classico .cv-ex{background:#F1E9DC}
.cov.st-classico .cv-logo i{background:#5B3A1E}
.cov.st-classico .cv-k{border-color:#E7DCCB;background:#FFFDF8}
.cov.st-essenziale{--cv-a:#1D1D1F;--cv-n:#C7C7CC;--cv-s:#8E8E93}
.cov.st-essenziale .cv-t h2{font-weight:300;letter-spacing:-.03em}
.cov.st-essenziale .cv-k{border:0;border-top:1.5px solid #1D1D1F;border-radius:0;padding:.6em 0 0}
.cov.st-essenziale .cv-ex{background:none;box-shadow:inset 0 0 0 1px #D2D2D7}
.cov.st-moderno{padding-top:0;--cv-a:#0B3B8C;--cv-n:#F2A39A;--cv-s:#7FA4E6}
.cov.st-moderno .cv-top{margin:0 -1.7em;padding:1.2em 1.7em;background:#0B3B8C;color:#fff;border-radius:8px 8px 0 0}
.cov.st-moderno .cv-logo{color:#fff}
.cov.st-moderno .cv-logo i{background:#fff;color:#0B3B8C}
.cov.st-moderno .cv-ex{background:rgba(255,255,255,.16);color:#fff}
.cov.st-moderno .cv-t h2{color:#0B3B8C;font-size:2.9em}
.cov.st-moderno .cv-k{border:0;background:#EEF3FC}
.cov.st-moderno .cv-k b{font-size:1.55em;color:#0B3B8C}
.pdfm{display:flex;justify-content:center;container-type:inline-size}
.pdfm .cov{--cf:min(12px,2.72cqi);max-width:440px}

/* ---------- Voci ---------- */
.ce{display:flex;flex-direction:column;gap:4px;padding:10px 8px 12px}
.grp{padding:2px 6px 6px;border-radius:14px;transition:background .15s,box-shadow .15s}
.grp.over{background:var(--blue-bg);box-shadow:inset 0 0 0 1.5px var(--blue)}
.grp-h{display:flex;align-items:baseline;gap:10px;padding:10px 8px 6px}
.grp-h>b:first-child{font-size:14px;font-weight:650}
.grp-h .c{color:var(--muted);font-size:12px}
.grp-h .t{margin-left:auto;font-weight:650;font-size:13.5px}
.grp-e{color:var(--faint);font-size:12.5px;padding:8px 10px 6px}
.vr{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 10px 5px 2px;border-radius:10px;transition:background .2s,opacity .2s}
.vr+.vr{box-shadow:0 -.5px 0 var(--sep-2)}
.vr:hover{background:var(--surface-2)}
.vr .tx{min-width:0}
.vr .tx b{display:block;font-weight:550;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vr .tx small{display:block;color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vr .amt{text-align:right;font-weight:600;white-space:nowrap;padding-left:8px}
.vr.open{background:color-mix(in srgb,var(--orange-bg) 65%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orange-dot) 40%,transparent)}
.vr.dragging{opacity:.3}
.vr.ghost{position:fixed;left:0;top:0;z-index:95;pointer-events:none;background:var(--surface);box-shadow:var(--sh-float);opacity:.97}
.vr.flash{animation:bdflash 1.8s ease}
@keyframes bdflash{0%,40%{background:var(--blue-bg)}100%{background:transparent}}
.tg{font-weight:600;color:var(--ink-2)}
.tg.b{color:var(--blue)} .tg.g{color:var(--green)} .tg.o{color:var(--orange)}
.grip{width:28px;height:32px;display:grid;place-items:center;color:var(--faint);cursor:grab;touch-action:none;border-radius:8px}
.grip:hover{color:var(--ink-2);background:var(--fill)}
.grip svg{width:18px;height:18px}
body.bd-drag,body.bd-drag *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}
.subt{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;margin:2px 0;border-radius:10px;background:var(--surface-2);font-weight:650;font-size:13.5px}
.subt b{font-weight:700;white-space:nowrap}
.subt.tot{background:var(--blue-bg)}
.subt.tot span,.subt.tot b{color:var(--blue);font-size:15px}
.rv{display:flex;flex-direction:column;gap:12px}
.rv-top{display:flex;align-items:center;gap:14px}
.rv-top .tx{min-width:0}
.rv-top .tx b{display:block;font-size:15px;font-weight:650}
.rv-top .tx small{display:block;color:var(--muted);font-size:12.5px}
.meter{--p:50;width:54px;height:54px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--orange-dot) calc(var(--p) * 1%),var(--fill) 0);position:relative}
.meter:before{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--surface)}
.meter b{position:relative;font-size:13.5px;font-weight:700;color:var(--orange)}
.rv-why{font-size:13px;color:var(--ink-2)}
.rv-acts{display:flex;flex-wrap:wrap;gap:8px}
.rv-ch{margin-top:10px}
.fx{display:flex;flex-direction:column;margin-bottom:12px}
.fx-r{display:grid;grid-template-columns:minmax(0,1fr) auto auto 84px;gap:12px;align-items:baseline;padding:8px 0;font-size:13px}
.fx-r+.fx-r{border-top:.5px solid var(--sep)}
.fx-r s{color:var(--faint);text-decoration:line-through;white-space:nowrap}
.fx-r b{font-weight:650;white-space:nowrap}
.fx-r .dl{text-align:right;color:var(--blue);font-weight:600;font-size:12px;white-space:nowrap}
.rb-box{display:flex;gap:12px;padding:12px 14px;border-radius:12px;background:var(--red-bg);color:var(--ink-2);font-size:13px}
.rb-box>svg{width:18px;height:18px;flex:none;color:var(--red);margin-top:1px}
.rb-box b{display:block;color:var(--red);font-weight:650;margin-bottom:2px}
.rules{display:flex;flex-direction:column;margin-bottom:12px}
.rule{display:flex;align-items:center;gap:10px;padding:8px 0}
.rule+.rule{border-top:.5px solid var(--sep)}
.rule>svg{width:17px;height:17px;color:var(--green);flex:none}
.rule .tx{flex:1;min-width:0}
.rule .tx b{display:block;font-size:13px;font-weight:600}
.rule .tx small{display:block;color:var(--muted);font-size:12px}
.tryit{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:.5px solid var(--sep);color:var(--ink-2);font-size:12.5px}
.tryit svg{width:14px;height:14px;flex:none;margin-top:2px;color:var(--blue)}
.mv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mv-o{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:12px;background:var(--fill);text-align:left;transition:background .15s,box-shadow .15s}
.mv-o:hover{background:var(--blue-bg);box-shadow:inset 0 0 0 1.5px var(--blue)}
.mv-o b{font-size:13.5px;font-weight:600}
.mv-o small{color:var(--muted);font-size:11.5px;min-height:1.3em}
.mv-o.on{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--sep);opacity:.7;cursor:default}

/* ---------- Controlli ---------- */
.bd-chk{margin-bottom:14px}
.c9p{padding-top:6px}
.lab{display:flex;flex-direction:column;gap:14px}
.lab .seg{align-self:flex-start}
.lab-q{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap}
.lab-q p{color:var(--ink-2);font-size:13.5px;max-width:64ch;flex:1 1 300px}
.lab-out{display:flex;flex-direction:column;gap:10px}
.lab-out:empty{display:none}
.lab-s{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--surface-2);box-shadow:inset 0 0 0 .5px var(--sep)}
.lab-s .d{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center}
.lab-s .d svg{width:14px;height:14px;stroke-width:2.2}
.lab-s .d.r{background:var(--red-bg);color:var(--red)} .lab-s .d.b{background:var(--blue-bg);color:var(--blue)} .lab-s .d.o{background:var(--orange-bg);color:var(--orange)}
.lab-s b{display:block;font-size:13.5px;font-weight:650}
.lab-s small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.fails{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.decl{display:flex;gap:12px;padding:12px 14px;border-radius:12px;background:var(--orange-bg);color:var(--ink-2);font-size:13px}
.decl>svg{width:18px;height:18px;flex:none;color:var(--orange);margin-top:1px}
.decl b{display:block;color:var(--orange);font-weight:650;margin-bottom:2px}

/* ---------- Report ---------- */
.verdict{margin-bottom:14px}
.vt{font-size:15px;line-height:1.55;color:var(--ink);max-width:90ch}
.money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.money>div{display:flex;gap:10px;align-items:flex-start;padding:11px 14px;border-radius:12px;background:var(--green-bg);font-size:13.5px;color:var(--ink-2)}
.money svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--green)}
.money b{color:var(--ink)}
.bd-rep{margin-bottom:14px}
.chart.wf .wfb{fill:var(--bd-neg);transform-box:fill-box;transform-origin:50% 100%;animation:bdgrow .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 70ms);transition:opacity .15s}
.chart.wf .wfb.tot{fill:var(--blue)} .chart.wf .wfb.sub{fill:var(--bd-sub)} .chart.wf .wfb.pos{fill:var(--green-dot)}
.chart.wf .wfb.dim{opacity:.4}
.chart.wf .lk line{stroke:var(--faint);stroke-dasharray:2 3}
.chart.wf .base{stroke:var(--sep)}
.chart.wf .bv{font:600 11px var(--ui);fill:var(--muted);paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round}
.chart.wf .bv.k{fill:var(--ink)}
.chart .tk text.strong{fill:var(--ink-2);font-weight:600}
.lts{display:flex;flex-direction:column}
.lt{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0}
.lt+.lt{border-top:.5px solid var(--sep)}
.ld{width:12px;height:12px;border-radius:50%}
.ld.g{background:var(--green-dot);box-shadow:0 0 0 3px color-mix(in srgb,var(--green-dot) 22%,transparent)}
.ld.y{background:var(--bd-yel);box-shadow:0 0 0 3px color-mix(in srgb,var(--bd-yel) 28%,transparent)}
.ld.r{background:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 22%,transparent)}
.lt .tx{min-width:0}
.lt .tx b{display:block;font-size:13.5px;font-weight:600}
.lt .tx small{display:block;color:var(--muted);font-size:12px}
.lt>b{font-weight:650;white-space:nowrap}
.sus{display:flex;flex-direction:column;gap:18px}
.su-l{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13.5px}
.su-l b{font-weight:650}
.su-bar{display:flex;height:14px;border-radius:7px;overflow:hidden;gap:2px;background:var(--fill)}
.su-bar i{display:block;height:100%;transform-origin:left;animation:bdwide .8s cubic-bezier(.2,.8,.2,1) both}
.su-bar .c1,.lgd.c1{background:var(--blue)} .su-bar .c2,.lgd.c2{background:var(--bd-c2)} .su-bar .c3,.lgd.c3{background:var(--bd-c3)}
@keyframes bdwide{from{transform:scaleX(0)}to{transform:none}}
.su-lg{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;color:var(--muted);font-size:12.5px}
.su-lg span{display:inline-flex;align-items:center;gap:6px}
.su-lg b{color:var(--ink-2);font-weight:600}
.lgd{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.del{display:flex;flex-direction:column;gap:14px}
.del-r{display:flex;gap:12px}
.del-r .docic{width:34px;height:34px;border-radius:10px;flex:none}
.del-r .docic svg{width:17px;height:17px}
.del-r .docic.ok{background:var(--green-bg);color:var(--green)}
.del-r>div{min-width:0}
.del-r b{display:block;font-weight:600;overflow-wrap:anywhere}
.del-r small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}

/* ---------- home iframe: tighter, so the pointed parts fit 1160x640 and 326x620 ---------- */
html.kit-embed .page{padding-top:20px}
html.kit-embed .ph{margin-bottom:16px}
html.kit-embed .ph .why{display:none}
html.kit-embed .stage{padding:18px 20px;gap:12px}
html.kit-embed .stage h2{font-size:21px}
html.kit-embed .stage .lead{font-size:13.5px}
html.kit-embed .paper{height:226px}
html.kit-embed .big-ok{gap:6px}
html.kit-embed .big-ok .c{width:50px;height:50px}
html.kit-embed .big-ok h3{font-size:19px}
html.kit-embed .foot-act{padding-top:2px}
html.kit-embed .conf{height:84px}
/* in the home frame the analysis starts at the top: no page title, no list of totals, tighter rows */
html.kit-embed .bd-ph,html.kit-embed .tots{display:none}
html.kit-embed .rc-r{padding-top:4px;padding-bottom:4px}
html.kit-embed .rq{padding-top:6px;padding-bottom:6px}

/* ---------- responsive ---------- */
@media (min-width:1181px) and (min-height:760px){
  .bd-voci .side-col{position:sticky;top:76px}
}
@media (max-width:1180px){
  /* the item to review and what changes come first, the firm's rules after the statement */
  .bd-voci .side-col{display:contents}
  .bd-voci #rv-card{order:-2} .bd-voci #fx-card{order:-1} .bd-voci #rules-card{order:1}
  .path{grid-template-columns:repeat(2,minmax(0,1fr))}
  .path li:nth-child(3):before{display:none}
}
@media (min-width:861px) and (max-width:1180px){
  .bd-flow{grid-template-columns:200px minmax(0,1fr)}
  .bd-flow .rail{position:sticky;top:72px}
  .bd-flow .rail ol{flex-direction:column;overflow:visible;gap:2px}
  .bd-flow .rail li{flex:initial}
  .bd-flow .rail li small{display:block}
  .grid2.bd2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rd{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
}
@media (max-width:860px){
  .why{font-size:14px}
  .kpis.k6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .k6 .kpi .v{font-size:min(26px,5.6vw)}
  .kpis .kpi .v{font-size:min(26px,6.4vw)}
  .l-long{display:none} .l-short{display:inline}
  .path{grid-template-columns:minmax(0,1fr);gap:8px}
  .path li+li:before{display:none}
  .path a{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;padding:12px}
  .path .pn{grid-row:1/3}
  .path .pn i{display:none}
  .path b{margin-top:0}
  .qd b{font-size:20px}
  .up-s{grid-template-columns:24px minmax(0,1fr);gap:10px}
  .up-n{width:24px;height:24px;font-size:12px}
  .file{flex-wrap:wrap}
  .file .tx{flex:1 1 160px}
  .ctr-n b{font-size:30px}
  .rd{grid-template-columns:minmax(0,1fr);gap:14px}
  .paper{height:150px}
  html.kit-embed .paper{height:132px}
  .rd-side{gap:12px}
  .tots{display:none}
  .rc-r{grid-template-columns:minmax(0,1fr) 56px 96px;gap:8px;padding:6px 8px;font-size:13px}
  .conf{gap:2px;padding-left:34px}
  .thr{left:34px}
  .thr small{left:-34px}
  .lw{grid-template-columns:44px minmax(0,1fr);row-gap:6px}
  .lw .pill{grid-column:2;justify-self:start}
  .rq-h{display:none}
  .rq{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:6px;padding:8px 10px}
  .rq b{font-size:14px}
  .rq small{white-space:normal;overflow:visible}
  .c9 .chk p>.muted{display:none}
  .rep-fin{grid-template-columns:110px minmax(0,1fr);gap:16px}
  #fin .big-ok{align-items:flex-start;text-align:left}
  #fin .big-ok h3{font-size:18px}
  .bd-flow .rail{position:sticky;top:calc(54px + env(safe-area-inset-top,0px));z-index:6;margin:0 -16px;padding:8px 16px;background:var(--glass);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
  .bd-flow .rail .ai{display:none}
  .vr{padding-right:6px}
  .vr .amt{font-size:13px}
  .fx-r{grid-template-columns:minmax(0,1fr) auto 70px;gap:8px}
  .fx-r s{display:none}
  .mv-list{grid-template-columns:minmax(0,1fr)}
  .money{grid-template-columns:minmax(0,1fr)}
  .vt{font-size:14.5px}
  .lab .seg{align-self:stretch}
  .lab .seg button{flex:1}
  html.kit-embed .stage .lead,html.kit-embed .stage .note-s{display:none}
  .bd-voci #fx-card:has(.fx-0){display:none}
}
@media (max-width:420px){
  .rep-fin{grid-template-columns:minmax(0,1fr)}
  .mini-cov{width:120px}
  .qd{grid-template-columns:minmax(0,1fr)}
  .qd .eq{transform:rotate(90deg)}
}
@media (prefers-reduced-motion:reduce){
  .cf,.chart.wf .wfb,.su-bar i,.mini-cov,.stamp,.file{animation:none!important}
}
/* phones: the logo switch and the drag grips at least 40 px to tap, same layout */
@media (max-width:860px){
  html:not(.kit-embed) .sw-r{padding:9px 0;margin:3px 0 -9px}
  html:not(.kit-embed) .grip{position:relative}
  html:not(.kit-embed) .grip::after{content:"";position:absolute;inset:-4px -8px -4px -4px;touch-action:none}
}
