:root{
  --bg:#FFFFFF;--card:#F3F4F6;--surface:#F3F4F6;--surface2:#E9EAEE;--ink:#000000;--muted:#6E7079;--dim:#A6A9B1;--line:#E8E9EC;--line2:#D9DBE1;--soft:#F3F4F6;--soft2:#F3F4F6;
  --blue:#007BFB;--blue-d:#0062C9;--blue-l:#E6F0FF;--blue-ll:#F2F7FF;
  --accent:#007BFB;--accent-d:#0062C9;--accent-l:#E6F0FF;--accent-ll:#F2F7FF;--navy:#0062C9;--navy-l:#E6F0FF;
  --green:#118A4E;--green-l:#E4F5EC;--red:#D12C2C;--red-l:#FDE8E8;--amber:#B85C00;--amber-l:#FFF1DE;--violet:#5B4BB5;--violet-l:#ECE9F8;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
  --r:14px;--g:20px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Onest',system-ui,-apple-system,sans-serif;font-size:15px;letter-spacing:-.01em;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body{min-height:100dvh}
a{color:var(--blue)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
[hidden]{display:none!important}
.muted{color:var(--muted)}.dim{color:var(--dim)}
.num{font-variant-numeric:tabular-nums}
.blue{color:var(--blue)}.green{color:var(--green)}.red{color:var(--red)}.amber{color:var(--amber)}
#app{max-width:560px;margin:0 auto;min-height:100dvh}
.screen{padding:calc(12px + var(--safe-t)) var(--g) calc(104px + var(--safe-b));display:flex;flex-direction:column;gap:12px}
.loading{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
a.li:active,button.li:active,a.obj:active,.task .body:active,.chip:active,.act:active,.qa:active,.btn:active,.cb:active,.icon-btn:active,.phase-h:active,.step-h:active,.room:active{opacity:.55}
a.li,button.li,a.obj,.chip,.act,.qa,.btn,.cb,.icon-btn{transition:opacity .12s}

/* brand */
.mark{display:flex;align-items:center;flex:none;color:var(--ink)}
.mark svg{display:block}
.mark.big{margin-bottom:-4px}
.brand{display:flex;align-items:center;gap:10px}
.brand-name{font-size:16px;font-weight:700;letter-spacing:-.025em}
.top{display:flex;justify-content:space-between;align-items:center;gap:10px}
h1{margin:0;font-size:27px;font-weight:700;letter-spacing:-.025em;line-height:1.12}
h2{margin:0;font-size:19px;font-weight:700;letter-spacing:-.015em}
.sec{margin:16px 0 0;font-size:17px;font-weight:700;letter-spacing:-.015em;color:var(--ink);display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-height:28px}
.sec small{font-size:15px;font-weight:500;color:var(--dim);letter-spacing:0;margin-left:2px}
.sec .link{font-size:15px;font-weight:600;min-height:28px}
.sec.red{color:var(--red)}
.date{font-size:13px;color:var(--muted)}
.code-t{color:var(--muted);font-weight:500;margin-right:7px}

/* antet */
.hero{background:#fff;color:var(--ink);margin:calc(-12px - var(--safe-t)) calc(-1 * var(--g)) 0;padding:calc(14px + var(--safe-t)) var(--g) 6px;display:flex;flex-direction:column;gap:14px}
.hero h1{color:var(--ink)}
.hero .muted,.hero .date{color:var(--muted)}
.hero-stats{display:flex;gap:18px;flex-wrap:wrap}
.hero-stat{background:none;border-radius:0;padding:0;color:var(--ink);text-decoration:none;min-width:0;flex:1 1 0}
.hero-stat b{display:block;font-size:19px;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-stat span{font-size:12px;color:var(--muted);font-weight:500;line-height:1.3;display:block;margin-top:2px}
.hero .big{font-size:42px;font-weight:700;letter-spacing:-.035em;line-height:1.02}
.hero .l{font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
.hero .pill{color:var(--muted);font-weight:500}
.hero .icon-btn{background:var(--surface);border:0;color:var(--ink)}
.dark{background:var(--ink);color:#fff;border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px;text-decoration:none}
.dark .l{font-size:13px;font-weight:500;color:rgba(255,255,255,.7)}
.dark .big{font-size:36px;font-weight:700;letter-spacing:-.03em;line-height:1}
.dark .row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dark .row3 b{display:block;font-size:17px;font-weight:600;white-space:nowrap}
.dark .row3 span{font-size:12px;color:rgba(255,255,255,.7)}
.dark .pill{color:#fff}

/* grupuri și liste */
.card{background:var(--surface);border-radius:var(--r)}
.pad{padding:16px}
.card.list,.list{background:none;border-radius:0;padding:0}
.card.empty,.empty{background:none;padding:12px 0;font-size:15px;color:var(--muted);text-align:left;line-height:1.45}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.tiles.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.tiles.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.tile,.card.tile{padding:10px 12px 10px 0;background:none;border-radius:0;text-decoration:none;color:inherit;min-width:0;border:0;text-align:left;font:inherit}
.tiles .tile:not(:nth-child(2n+1)){border-left:1px solid var(--line);padding-left:14px}
.tiles.three .tile:not(:nth-child(2n+1)){border-left:0;padding-left:0}
.tiles.three .tile:not(:nth-child(3n+1)){border-left:1px solid var(--line);padding-left:14px}
.tiles.four .tile:not(:nth-child(2n+1)),.tiles.four .tile:not(:nth-child(3n+1)){border-left:0;padding-left:0}
.tiles.four .tile:not(:nth-child(4n+1)){border-left:1px solid var(--line);padding-left:12px}
.tile .l{font-size:12px;color:var(--muted);font-weight:500;line-height:1.3}
.tile .v{font-size:22px;font-weight:700;letter-spacing:-.025em;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .s{font-size:12px;color:var(--muted);margin-top:2px}
.tiles.four .tile{padding:8px 6px 8px 0;text-align:left}
.tiles.four .tile .v{font-size:20px}.tiles.four .tile .l{font-size:11px}

/* stări: text, nu etichete colorate */
.pill{display:inline;padding:0;border-radius:0;font-size:13px;font-weight:600;white-space:nowrap;background:none;color:var(--muted)}
.t-blue{color:var(--blue-d)}.t-green{color:var(--green)}.t-red{color:var(--red)}
.t-amber{color:var(--amber)}.t-gray{color:var(--muted)}.t-violet{color:var(--muted)}
.t-solid{color:var(--ink)}
.cover .pill,.cover .t-gray{display:inline-flex;align-items:center;padding:4px 9px;border-radius:8px;background:rgba(255,255,255,.94);color:var(--ink);font-size:12px}
.badge-pct{background:none;color:var(--ink);padding:0;font-weight:700;font-size:15px;font-variant-numeric:tabular-nums}
.badge-pct.red{color:var(--red)}.badge-pct.green{color:var(--green)}
.meta .pill{color:var(--muted);font-weight:500}

/* segmente, chip-uri, tab-uri */
.seg-wrap{display:flex;gap:2px;background:var(--surface);border-radius:12px;padding:3px;overflow-x:auto;scrollbar-width:none}
.seg-wrap::-webkit-scrollbar{display:none}
.seg{flex:1 0 auto;min-height:36px;border:0;border-radius:10px;background:transparent;font-weight:600;font-size:14px;color:var(--muted);display:flex;align-items:center;justify-content:center;text-decoration:none;padding:0 12px;white-space:nowrap}
.seg.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.1),0 0 0 .5px rgba(0,0,0,.04)}
.chips{display:flex;gap:6px;overflow-x:auto;margin:0 calc(-1 * var(--g));padding:0 var(--g) 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:36px;padding:0 14px;border-radius:999px;border:0;background:var(--surface);font-weight:600;font-size:14px;color:var(--ink)}
.chip.on{background:var(--ink);color:#fff}
.chip small{font-weight:500;opacity:.6;margin-left:3px}
.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);overflow-x:auto;margin:0 calc(-1 * var(--g));padding:0 var(--g);scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{min-height:44px;background:none;border:0;border-bottom:2px solid transparent;font-size:15px;font-weight:600;color:var(--muted);white-space:nowrap;padding:0;border-radius:0;margin-bottom:-1px}
.tabs button.on{color:var(--ink);border-bottom-color:var(--ink)}

/* butoane */
.btn{min-height:50px;padding:0 18px;border-radius:12px;border:0;background:var(--blue);color:#fff;font-weight:600;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.btn:disabled{opacity:.5}
.btn.light{background:var(--surface);color:var(--ink)}
.btn.white{background:#fff;color:var(--ink)}
.btn.ghost{background:var(--surface);border:0;color:var(--ink)}
.btn.small{min-height:36px;padding:0 13px;font-size:14px;border-radius:10px}
.btn.danger{background:var(--surface);color:var(--red)}
.btn.green{background:var(--blue);color:#fff}
.btn.amber{background:var(--ink);color:#fff}
.btn.block{width:100%}
.icon-btn{position:relative;width:40px;height:40px;border-radius:50%;border:0;background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center;flex:none;text-decoration:none}
.link{background:none;border:0;padding:0;color:var(--blue);font-weight:600;font-size:15px;min-height:36px;text-decoration:none;display:inline-flex;align-items:center;gap:2px}
.acts{display:flex;gap:6px}
.act{flex:1;min-height:0;padding:4px 0;border-radius:0;border:0;background:none;font-weight:500;font-size:12px;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;text-decoration:none}
.act svg{width:48px;height:48px;padding:13px;border-radius:50%;background:var(--surface);color:var(--ink);box-sizing:border-box}
.fab{position:fixed;right:var(--g);bottom:calc(92px + var(--safe-b));width:52px;height:52px;border-radius:50%;border:0;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.16);z-index:15;cursor:pointer}

/* sarcini */
.task{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.card.list .task:last-child{border-bottom:0}
.task input{width:22px;height:22px;margin:1px 0 0;accent-color:var(--blue);flex:none}
.task .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;background:none;border:0;padding:0;text-align:left}
.task .t{font-size:15px;font-weight:500;line-height:1.35}
.task.done .t{text-decoration:line-through;color:var(--dim)}
.meta{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:center;font-size:13px;color:var(--muted)}

/* obiecte */
.obj{display:flex;flex-direction:column;gap:10px;padding:0 0 6px;text-decoration:none;color:var(--ink)}
.cover{position:relative;height:168px;border-radius:var(--r);overflow:hidden;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--dim)}
.cover img{width:100%;height:100%;object-fit:cover}
.cover .tagl{position:absolute;left:10px;top:10px;display:flex;gap:6px;flex-wrap:wrap}
.cover .tagr{position:absolute;right:10px;top:10px}
.cover .code{position:absolute;left:12px;bottom:10px;font-weight:600;color:#fff;font-size:13px;background:rgba(0,0,0,.5);padding:3px 8px;border-radius:8px}
.cover.big{height:210px;border-radius:0;margin:calc(-12px - var(--safe-t)) calc(-1 * var(--g)) 0}
.obj .ttl{font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1.3;padding:0}
.loc{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);padding:0}
.kvs{display:flex;flex-direction:column;gap:6px;padding:0}
.kvr{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
.kvr span{color:var(--muted)}
.kvr b{font-weight:600}
.foot{display:flex;justify-content:space-between;align-items:center;padding:0}
.foot b{font-size:17px;font-weight:700}
.bar{display:block;height:5px;border-radius:3px;background:var(--surface2);overflow:hidden}
.card .bar{background:#DADCE2}
.bar>span{display:block;height:100%;background:var(--blue);border-radius:3px}
.bar.green>span{background:var(--green)}.bar.red>span{background:var(--red)}.bar.amber>span{background:#E0A020}
.alert{font-size:14px;color:var(--amber);background:none;border-radius:0;padding:0;font-weight:500;line-height:1.45}
.alert.red{color:var(--red);background:none}
.alert.green{color:var(--green);background:none}
.note{font-size:15px;line-height:1.5;padding:12px 14px;background:var(--surface);border-radius:12px;white-space:pre-line}

/* rânduri */
.li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left;color:var(--ink);text-decoration:none}
.li:last-child{border-bottom:0}
.card:not(.list) .li{padding:12px 16px}
.li .a{min-width:0;flex:1}
.li .a b{display:block;font-size:16px;font-weight:600;line-height:1.3}
.li .a small{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.35}
.li .z{text-align:right;white-space:nowrap;font-weight:600;font-size:16px}
.thumb{width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--surface);flex:none}
.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:var(--surface)}
.ico{width:36px;height:36px;border-radius:50%;flex:none;background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center}
.ico.red{background:var(--red-l);color:var(--red)}.ico.amber{background:var(--amber-l);color:var(--amber)}
.ava{width:44px;height:44px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;background:var(--surface2);color:var(--ink);letter-spacing:0}
.ring{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.ring>span{width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;font-variant-numeric:tabular-nums}
.card .ring>span{background:var(--surface)}
.kv{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px 12px;font-size:15px;margin:0}
.kv dt{margin:0;color:var(--muted)}.kv dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.kv.s{grid-template-columns:52px minmax(0,1fr);gap:4px 10px;font-size:13px}
.kv.s dt{font-weight:500}.kv.s dd{font-weight:500}
.sw{display:inline-block;width:26px;height:26px;border-radius:8px;border:1px solid rgba(0,0,0,.08);flex:none}
.pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}
.pillc{display:inline-flex;align-items:center;gap:8px;padding:6px 0;border-radius:0;font-size:14px;font-weight:500;background:none;color:var(--dim)}
.pillc.on{background:none;color:var(--ink)}
.pillc svg{color:var(--blue)}
.cur-row{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line2)}
.cur-row:last-child{border-bottom:0}
.cur-row .c{font-size:15px;font-weight:500;color:var(--muted)}
.cur-row b{font-size:20px;font-weight:700}
.cur-row small{font-size:13px;color:var(--muted);margin-left:5px}
.ditem{display:flex;gap:12px}
.ditem .ph{width:84px;height:84px;border-radius:12px;background:var(--surface);flex:none;display:flex;align-items:center;justify-content:center;color:var(--dim);overflow:hidden}
.ditem .ph img{width:100%;height:100%;object-fit:cover}
.item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.card:not(.list) .item{padding:12px 16px}
.chkbox{width:24px;height:24px;margin:2px 0 0;accent-color:var(--blue);flex:none}
.room{padding:12px 0;display:flex;flex-direction:column;gap:4px;width:100%}
.grp{padding:12px 0 2px;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
.card:not(.list) .grp{padding:12px 16px 2px}

/* etape */
.phase{padding:0}
.phase-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;background:none;border:0;width:100%;text-align:left}
.phase-h b{font-size:17px;font-weight:600}
.phase-h small{display:block;font-size:13px;color:var(--muted);font-weight:500;margin-top:2px}
.step{display:flex;gap:12px;align-items:flex-start;padding:10px 0;position:relative}
.step::before{content:"";position:absolute;left:13px;top:40px;bottom:-6px;width:2px;background:var(--line)}
.step:last-child::before{display:none}
.dot{width:28px;height:28px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:#fff;border:1.5px solid var(--line2);color:var(--muted);position:relative;z-index:1;font-variant-numeric:tabular-nums}
.dot.verificat{background:var(--green);border-color:var(--green);color:#fff}
.dot.gata{background:var(--amber-l);border-color:#E0A020;color:var(--amber)}
.dot.lucru{background:var(--blue);border-color:var(--blue);color:#fff}
.step-b{flex:1;min-width:0}
.step-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;background:none;border:0;padding:0;width:100%;text-align:left}
.step-h b{font-size:15px;font-weight:600;line-height:1.3}
.step-h small{display:block;font-size:13px;color:var(--muted);margin-top:2px}
.step-card{margin-top:10px;background:var(--surface);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.chk{display:flex;align-items:center;gap:10px;font-size:15px;min-height:36px;font-weight:500}
.chk input{width:22px;height:22px;accent-color:var(--blue);flex:none}
.chk.done span{color:var(--muted);text-decoration:line-through}
.timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:var(--surface);border-radius:var(--r);overflow:hidden}
.timeline>div{background:none;padding:12px 16px}
.timeline>div:nth-child(2n){border-left:1px solid var(--line2)}
.timeline>div:nth-child(n+3){border-top:1px solid var(--line2)}
.timeline .l{font-size:12px;color:var(--muted);font-weight:500}
.timeline .v{font-size:16px;font-weight:600;margin-top:2px}
.phase-dots{display:flex;gap:4px}
.phase-dots span{flex:1;height:5px;border-radius:3px;background:var(--surface2)}
.phase-dots span.done{background:var(--green)}.phase-dots span.cur{background:var(--blue)}
.people{display:flex;gap:8px;overflow-x:auto;margin:0 calc(-1 * var(--g));padding:0 var(--g);scrollbar-width:none}
.people::-webkit-scrollbar{display:none}
.person{flex:none;background:var(--surface);border-radius:12px;padding:8px 12px;font-size:14px}
.person small{display:block;font-size:11px;color:var(--muted);font-weight:500}
.person b{font-weight:600}

/* meniu jos */
.nav{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:4px 0 calc(6px + var(--safe-b));z-index:20}
.nav .in{max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center}
.nav a,.nav button{min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;font-weight:500;color:var(--dim);letter-spacing:0;text-decoration:none;background:none;border:0}
.nav a.on{color:var(--ink);font-weight:600}
.plus{width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:0;box-shadow:none}

/* foaie (sheet) */
.sheet-wrap{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.38);display:flex;align-items:flex-end;justify-content:center;animation:fade .18s ease-out}
.sheet{width:100%;max-width:560px;max-height:92dvh;overflow-y:auto;background:#fff;border-radius:18px 18px 0 0;padding:8px var(--g) calc(20px + var(--safe-b));display:flex;flex-direction:column;gap:14px;animation:up .24s cubic-bezier(.2,.8,.2,1)}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
.grab{width:36px;height:4px;border-radius:2px;background:var(--line2);align-self:center;flex:none}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sheet-h h2{font-size:20px}
.close{min-height:44px;background:none;border:0;color:var(--blue);font-weight:600;font-size:15px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qa{min-height:92px;border:0;border-radius:var(--r);background:var(--surface);color:var(--ink);padding:14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;text-decoration:none;gap:8px}
.qa b{display:block;font-size:15px;font-weight:600}
.qa small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.qa .ico{background:#fff}
.qa.main{background:var(--blue);color:#fff}
.qa.main small{color:rgba(255,255,255,.8)}
.qa.main .ico{background:rgba(255,255,255,.2);color:#fff}

/* formulare */
form{display:flex;flex-direction:column;gap:12px}
.fld{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500;color:var(--muted)}
.inp{min-height:50px;width:100%;border-radius:12px;border:0;background:var(--surface);color:var(--ink);font-size:16px;font-weight:500;padding:0 14px}
textarea.inp{min-height:90px;padding:12px 14px;resize:vertical;font-weight:500}
select.inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}
.inp:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--blue);background:#fff}
.sheet .inp,.sheet .qa,.sheet .card{background:var(--surface)}
.check{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink);font-weight:500;min-height:44px}
.check input{width:22px;height:22px;accent-color:var(--blue)}
.file{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;border:1.5px dashed var(--line2);background:none;border-radius:12px;color:var(--ink);font-weight:500;font-size:14px;cursor:pointer;text-align:center;padding:8px}
.file input{position:absolute;width:1px;height:1px;opacity:0}
.previews{display:flex;gap:6px;flex-wrap:wrap}
.previews img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.err{color:var(--red);font-size:13px;font-weight:600;margin:0}
.result{background:var(--ink);color:#fff;border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:4px}
.result .l{font-size:13px;font-weight:500;color:rgba(255,255,255,.7)}
.result .v{font-size:30px;font-weight:700;letter-spacing:-.025em}
.result.green{background:var(--green)}.result.red{background:var(--red)}.result.amber{background:var(--amber)}
.line{display:flex;justify-content:space-between;gap:10px;font-size:15px;padding:9px 0;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line span:first-child{color:var(--muted)}
.line.total{font-weight:700}
.line.total span:first-child{color:var(--ink)}

/* autentificare */
.auth{min-height:100dvh;padding:calc(56px + var(--safe-t)) 24px 40px;display:flex;flex-direction:column;align-items:center;gap:18px;max-width:420px;margin:0 auto;text-align:center}
.auth form{width:100%;text-align:left}
.who{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.who button{min-height:56px;border-radius:12px;border:1.5px solid transparent;background:var(--surface);color:var(--ink);font-weight:600;font-size:15px}
.who button.on{border-color:var(--ink);background:#fff}
.pin{letter-spacing:.5em;text-align:center;font-size:24px}

.toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:500;font-size:14px;padding:11px 16px;border-radius:12px;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw;text-align:center}
.toast.show{opacity:1}
.toast.bad{background:var(--red)}
/* contact: sună, Viber, WhatsApp */
.cbtns{display:flex;gap:6px;flex-wrap:wrap}
.cb{min-height:34px;padding:0 13px;border-radius:999px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:5px;text-decoration:none;color:var(--ink);background:var(--surface);flex:0 0 auto}
.cb.call{background:var(--ink);color:#fff}
.cbtns.g3{display:flex}
.cbtns.g3 .cb{min-height:36px}
.contact{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.contact:last-child{border-bottom:0}
.contact .ch{display:flex;flex-direction:column;gap:2px;background:none;border:0;padding:0;text-align:left;color:inherit;font:inherit}
.contact .ch b{font-size:16px;font-weight:600}.contact .ch small{font-size:13px;color:var(--muted)}
/* panou firmă */
.pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pgrid div{display:flex;flex-direction:column;gap:1px;min-width:0}
.pgrid small{font-size:12px;color:var(--muted);font-weight:500;letter-spacing:0;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrid b{font-size:16px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.cf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;height:124px}
.cfm{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.cfm small{font-size:11px;color:var(--dim);font-weight:500}
.cfb{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.cfb span{width:40%;max-width:14px;border-radius:3px 3px 0 0;min-height:2px}
.cfb .in,.dotk.in{background:var(--blue)}.cfb .out,.dotk.out{background:#D5D7DD}
.dotk{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:4px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.rows{display:flex;flex-direction:column}
.prow{display:flex;flex-direction:column;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.prow:last-child{border-bottom:0}
a.prow:active{opacity:.55}
.card.phase{background:none;border-radius:0;border-bottom:1px solid var(--line);padding:2px 0 6px}
.card.phase:last-of-type{border-bottom:0}
.card.obj{background:none;border-radius:0;padding:0 0 18px;border-bottom:1px solid var(--line)}
.card.obj:last-child{border-bottom:0;padding-bottom:4px}
.card .note{background:#fff}
/* pe fundal gri: elementele de formă devin albe */
.card .inp,.card .btn.light,.card .btn.ghost,.card .btn.danger,.card .cb,.card .ico,.card .thumb,.card .ph,.card .person,.card .chip{background:#fff}
.card .cb.call{background:var(--ink)}
.card .chip.on{background:var(--ink)}
.card .seg-wrap{background:#E3E4E9}
.card .inp:focus{background:#fff}
.card .file{border-color:#C9CBD3}
.sheet .qa.main{background:var(--blue)}
.result.green,.result.red,.result.amber{background:var(--ink)}
.result.green .v{color:#4CD27A}.result.red .v{color:#FF7A70}.result.amber .v{color:#FFB454}
