:root{
  --g950:#0d1c14;--g900:#163025;--g800:#1f4a36;--g700:#276142;--g500:#2f6f50;--g400:#3e8a63;--g100:#c3e8cd;--g50:#e8f6eb;
  --o800:#6e3200;--o700:#9a4b0b;--o500:#f28328;--o200:#fad6a7;--o100:#fdedd5;
  --r700:#8a1611;--r600:#c52b25;--r300:#f99592;--r50:#fddddc;
  --b800:#004c86;--b700:#0068b3;--b100:#e0f2ff;
  --t900:#0e0f13;--t700:#2b2c33;--t400:#585b68;--t300:#6c6f7e;--t200:#8a8e9c;
  --ground:#ECE9E3;--surface:#fff;--inset:#F6F4F0;--line:#E0DBD3;--line-strong:#C9C2B8;--stone:#E3DFD8;
  --ease:cubic-bezier(.22,.8,.24,1);
  /* aliasuri pentru ce a rămas din paginile mai vechi și pentru grafic */
  --background:var(--ground);--foreground:var(--t700);--muted-foreground:var(--t400);--border:var(--line);
  --input:var(--line-strong);--ring:var(--g500);--destructive:var(--r600);--accent:var(--inset);
  --popover:var(--surface);--popover-foreground:var(--t900);--chart-1:var(--o500);
  --shadow-bar:0 1px 2px rgba(43,44,51,.08),0 12px 32px rgba(43,44,51,.14);
  --shadow-dialog:0 24px 60px rgba(14,15,19,.28);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--t700);
  font-family:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,p,dl,dd,ul{margin:0}
ul{padding:0;list-style:none}
button,input,select{font:inherit;color:inherit}
svg.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
svg.i3{width:12px;height:12px}
svg.i35{width:14px;height:14px}
svg.i20{width:20px;height:20px}
[hidden]{display:none !important}
:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--g500)}
.muted{color:var(--t400)}
.num,.tn{font-variant-numeric:tabular-nums}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@keyframes ss-spin{to{transform:rotate(360deg)}}
.spin{animation:ss-spin 900ms linear infinite;transform-origin:50% 50%}
@keyframes ss-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}

/* ---- cadrul: bara laterală (desktop) și bara de jos (telefon) ------------------------- */
.cadru{display:flex;min-height:100vh;min-height:100svh}
.sb{width:16rem;flex:none;position:sticky;top:0;align-self:flex-start;height:calc(100svh - 52px);padding:12px;
  display:flex;flex-direction:column;gap:8px;background:var(--surface);border-right:1px solid var(--line);color:var(--t700)}
.sb-cap{display:flex;align-items:center;gap:10px;height:48px;padding:6px;border-radius:12px}
.sb-cap:hover{background:var(--inset)}
.logo{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--g950);color:#fff}
.logo svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.8;stroke-linecap:round}
.sb-nume{font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--t900);white-space:nowrap}
.sb-nume small{font-size:12px;font-weight:500;color:var(--t400);margin-left:6px}
.sb-grup{padding:0}
.sb-et{height:32px;display:flex;align-items:center;padding:0 10px;font-size:12px;font-weight:500;color:var(--t300)}
.sb-meniu{display:flex;flex-direction:column;gap:2px}
.sb-meniu a{display:flex;align-items:center;gap:10px;height:44px;padding:0 12px;border-radius:12px;font-size:14px;font-weight:500;white-space:nowrap}
.sb-meniu a:hover{background:var(--inset);color:var(--t900)}
.sb-meniu a[aria-current]{background:var(--g50);color:var(--g800);font-weight:600}
.sb-jos{margin-top:auto}
.sb-user{display:flex;align-items:center;gap:10px;width:100%;height:52px;padding:6px;border:0;background:none;border-radius:12px;text-align:left;cursor:pointer}
.sb-user:hover{background:var(--inset)}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--inset);display:grid;place-items:center;font-size:12px;font-weight:600;flex:none;color:var(--t700)}
.sb-user .t{min-width:0;flex:1;display:grid;line-height:1.25}
.sb-user .t b{font-size:14px;font-weight:600;color:var(--t900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-user .t span{font-size:12px;color:var(--t400);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.in{flex:1;min-width:0;background:var(--ground);position:relative;display:flex;flex-direction:column}
.hd{height:56px;display:flex;align-items:center;gap:8px;padding:0 16px;flex:none}
.declansator{width:40px;height:40px;margin-left:-8px;display:grid;place-items:center;border:0;background:none;border-radius:50%;cursor:pointer;color:var(--t700)}
.declansator:hover{background:var(--surface)}
.firimituri{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--t400);min-width:0;flex-wrap:wrap}
.firimituri .aici{color:var(--t900);font-weight:500}
.firimituri a:hover{color:var(--t900)}
.restrans .sb{width:calc(3rem + 1.5rem + 2px)}
.restrans .sb-nume,.restrans .sb-et,.restrans .sb-meniu span,.restrans .sb-user .t,.restrans .sb-user>svg{display:none}
.ov{display:none}
/* conținutul paginii; loc dedesubt pentru bara fixă a vitrinei (~51 px) */
.pg{display:flex;flex-direction:column;gap:16px;padding:8px 16px 96px}
.pg.ingust{max-width:48rem}
.pg.larg{max-width:64rem}

/* bara de jos: pe telefon, cu patru intrări; pe desktop rămâne bara laterală */
.bn{display:none}
@media (max-width:767.98px){
  .d-only{display:none !important}
  .sb,.hd{display:none}
  .in{margin:0}
  .pg,.pg.ingust,.pg.larg{max-width:480px;width:100%;margin:0 auto;padding:16px 16px calc(150px + env(safe-area-inset-bottom))}
  /* ~51 px de bară a vitrinei + 14 px aer, ca bara de jos a produsului să nu stea pe ea */
  .bn{display:block;position:fixed;left:0;right:0;bottom:calc(65px + env(safe-area-inset-bottom));z-index:40;padding:0 16px}
}
.bn-bara{display:flex;align-items:center;justify-content:space-between;max-width:448px;margin:0 auto;height:64px;padding:8px;
  border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-bar)}
.bn a{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;min-width:56px;padding:0;
  border-radius:999px;color:var(--t700);font-size:14px;font-weight:600}
.bn a[aria-current]{background:var(--g500);color:#fff;padding:0 18px}
.bn a svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bn .et{display:none}
.bn a[aria-current] .et{display:inline}
.bn .bul{position:absolute;top:5px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--r600);color:#fff;
  font-size:11px;font-weight:700;display:grid;place-items:center;font-variant-numeric:tabular-nums}

/* ---- tipografie de pagină -------------------------------------------------------------- */
.heading h2,.h-ecran{font-size:32px;line-height:1.1;font-weight:600;letter-spacing:-.02em;color:var(--t900)}
.heading p,.p-ecran{font-size:15px;color:var(--t400);margin-top:4px}
.heading{margin:0;padding:8px 4px 0}
.titlu{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px}
.inapoi{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%;font-size:14px;font-weight:500;color:var(--t400);
  height:44px;padding:0 14px 0 8px;border-radius:999px;background:var(--surface)}
.inapoi:hover{color:var(--t900)}
h2.sect{font-size:20px;line-height:1.3;font-weight:600;color:var(--t900)}
.stiva{display:grid;grid-template-columns:minmax(0,1fr)}
.sect-r{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 4px 0}
.sect-r h2{font-size:20px;font-weight:600;color:var(--t900)}
.sect-r span{font-size:13px;color:var(--t400)}

/* ---- buton: pastilă; lg 56, md 48 (implicit), sm 44 ------------------------------------ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;flex:none;height:48px;padding:0 20px;
  border:1px solid transparent;border-radius:999px;background:var(--g500);color:#fff;font-size:15px;font-weight:600;cursor:pointer;
  width:fit-content;transition:background-color 150ms var(--ease)}
.btn:hover{background:var(--g700)}
.btn.lg{height:56px;padding:0 22px;font-size:16px}
.btn.sm{height:44px;padding:0 16px;font-size:14px}
.btn.block{width:100%}
.btn.out{background:var(--surface);color:var(--t700);border-color:var(--line-strong)}
.btn.out:hover{background:var(--inset)}
.btn.soft{background:var(--o200);color:var(--t900)}
.btn.soft:hover{background:#f6c98b}
.btn.quiet{background:transparent;color:var(--t400)}
.btn.quiet:hover{background:var(--surface);color:var(--t900)}
.btn.dst{background:var(--r600);color:#fff}
.btn.dst:hover{background:var(--r700)}
.btn:disabled,.btn[aria-busy="true"]{background:var(--stone);color:var(--t400);border-color:transparent;cursor:not-allowed}
.btn[aria-busy="true"]{cursor:progress}
.btn svg.i{width:18px;height:18px;stroke-width:2.2}

/* ---- chip (stare spusă cu un cuvânt și un semn) ---------------------------------------- */
.chip,.badge{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:600;line-height:1;
  white-space:nowrap;flex:none;font-variant-numeric:tabular-nums;background:var(--g50);color:var(--g800)}
.chip.sm,.badge{height:24px;padding:0 9px;font-size:12px}
.chip i,.badge i{width:7px;height:7px;border-radius:50%;flex:none;background:var(--g500)}
.chip svg.i,.badge svg.i{width:13px;height:13px;stroke-width:2.2}
.chip.sm svg.i,.badge svg.i{width:11px;height:11px}
.t-ok{background:var(--g50);color:var(--g800)}.t-ok i{background:var(--g500)}
.t-heat,.t-warn{background:var(--o100);color:var(--o800)}.t-heat i,.t-warn i{background:var(--o500)}
.t-info{background:var(--b100);color:var(--b800)}.t-info i{background:var(--b700)}
.t-crit,.badge.dst{background:var(--r50);color:var(--r700)}.t-crit i{background:var(--r600)}
.t-neu,.badge.sec{background:var(--stone);color:var(--t400)}.t-neu i{background:var(--t200)}
.t-white{background:#fff;color:var(--g800)}.t-white i{background:var(--g500)}
.t-price{background:#fff;color:var(--t700);box-shadow:inset 0 0 0 1px var(--line-strong)}
.badge.out{background:var(--surface);color:var(--t700);box-shadow:inset 0 0 0 1px var(--line-strong)}

/* ---- control segmentat ---------------------------------------------------------------- */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;width:100%;padding:4px;border-radius:999px;background:var(--stone)}
.seg.sm{display:inline-grid;width:auto;padding:3px;gap:2px}
.seg button{height:40px;min-width:0;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--t400);font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap}
.seg.sm button{height:38px;min-width:48px;font-size:13px}
.seg button:hover{color:var(--t900)}
.seg [aria-selected="true"],.seg [aria-checked="true"],.seg [aria-pressed="true"]{background:#fff;color:var(--t900);box-shadow:0 1px 2px rgba(43,44,51,.12)}
@media (max-width:767.98px){.seg button{min-height:44px}}

/* ---- carduri --------------------------------------------------------------------------- */
.card{background:var(--surface);color:var(--t700);display:flex;flex-direction:column;gap:12px;border-radius:24px;padding:18px;min-width:0}
.card-h{display:grid;gap:4px}
.card-t{font-size:18px;line-height:1.3;font-weight:600;color:var(--t900);min-width:0}
.card-t.rand{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.card-t .nm{min-width:0;overflow-wrap:anywhere}
.card-d{font-size:14px;line-height:1.45;color:var(--t400)}
.card-c{display:flex;flex-direction:column;gap:12px;min-width:0}
.card-c.g2{gap:8px}
.mic{font-size:13px;line-height:1.4;color:var(--t400)}
.nota{font-size:13px;line-height:1.45;color:var(--t400);border-left:2px solid var(--line-strong);padding-left:10px}
.actiuni{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.rand-b{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;background:var(--inset);border-radius:16px;padding:12px 14px;font-size:14px}
.rand-b .fw{font-weight:600;color:var(--t900)}
.rand-b>div:first-child{min-width:0}
.alerta{display:flex;flex-direction:column;gap:8px;background:var(--inset);border-radius:16px;padding:14px}
.alerta .sus{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.alerta .sus b{font-weight:600}

/* ---- ecranul Vila ---------------------------------------------------------------------- */
.pbar{display:flex;align-items:center;justify-content:space-between;height:48px}
.pbar-v{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px 0 6px;border-radius:999px;background:var(--surface);min-width:0}
.pbar-v .logo{width:36px;height:36px;border-radius:50%}
.pbar-v .logo svg{width:18px;height:18px}
.pbar-t{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.pbar-t small{font-size:11px;font-weight:500;color:var(--t300)}
.pbar-t b{font-size:15px;font-weight:600;color:var(--t900);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pbar-v>svg{color:var(--t400);width:16px;height:16px;flex:none}
.clopot{position:relative;width:48px;height:48px;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--t700);flex:none}
.clopot svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.clopot .bul{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--r600);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.salut{display:flex;flex-direction:column;gap:4px;padding:4px 4px 0}
.salut h1{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;color:var(--t900)}
.salut p{font-size:15px;color:var(--t400)}
.hubst{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border-radius:999px;background:var(--surface);font-size:13px}
.hubst b{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--g800);white-space:nowrap}
.hubst b i{width:8px;height:8px;border-radius:50%;background:var(--g500)}
.hubst span{color:var(--t300);text-align:right}
.notice{display:flex;gap:12px;padding:16px;border-radius:20px;background:var(--o100);color:var(--o800)}
.notice svg.i{width:22px;height:22px;stroke-width:1.8;margin-top:1px}
.notice .nt{display:flex;flex-direction:column;gap:4px;min-width:0}
.notice b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.notice span{font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums}
.notice.n-ok{background:var(--g50);color:var(--g800)}
.notice.n-crit{background:var(--r50);color:var(--r700)}
.notice.n-info{background:var(--b100);color:var(--b800)}
.notice.n-neu{background:var(--stone);color:var(--t700)}.notice.n-neu b{color:var(--t900)}.notice.n-neu span{color:var(--t400)}
.erou{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:28px;background:var(--surface);padding:16px 18px 18px}
.erou>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.erou small{font-size:12px;font-weight:500;color:var(--t300)}
.erou b{font-size:18px;font-weight:600;color:var(--t900)}
.erou em{font-style:normal;font-size:14px;color:var(--t400);font-variant-numeric:tabular-nums}
.cerc{flex:none;width:44px;height:44px;border-radius:50%;background:var(--inset);display:grid;place-items:center;color:var(--t700)}
.cerc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat{display:flex;align-items:center;gap:12px;padding:16px;border-radius:20px;background:var(--surface);min-width:0}
.ic40{width:40px;height:40px;border-radius:50%;background:var(--inset);display:grid;place-items:center;flex:none;color:var(--t700)}
.ic40 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.stat .v{display:flex;flex-direction:column;min-width:0}
.stat b{font-size:22px;font-weight:500;letter-spacing:-.02em;color:var(--t900);font-variant-numeric:tabular-nums}
.stat small{font-size:12px;color:var(--t300)}
.grila{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:768px){.grila{grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:172px;padding:16px;border-radius:24px;background:var(--surface);color:var(--t700);
  text-align:left;border:0;font:inherit;cursor:pointer;width:100%}
.tile:hover{box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.tile .tr{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}
.tile .ic40{background:var(--inset)}
.tile .tx{display:flex;flex-direction:column;gap:3px}
.tile b{font-size:15px;font-weight:600;color:var(--t900)}
.tile .sb2{font-size:13px;line-height:1.35;color:var(--t300);font-variant-numeric:tabular-nums}
.tile .nt{font-size:12px;font-weight:500;color:var(--t400)}
.tile.s-active{background:var(--g50)}.tile.s-active .ic40{background:var(--g500);color:#fff}.tile.s-active .sb2{color:var(--g800)}
.tile.s-failed{box-shadow:inset 0 0 0 1.5px var(--r300)}
.tile.s-read_only{background:var(--inset);box-shadow:none;outline:1.5px dashed var(--line-strong);outline-offset:-1.5px}
.tile.s-read_only .ic40{background:#fff;color:var(--t400)}.tile.s-read_only .sb2{color:var(--t400)}
.tile.s-offline .ic40{color:var(--t400)}
.nota-sauna{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:20px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--line)}
.nota-sauna .ic40{width:40px;height:40px;background:#fff;color:var(--t400)}
.nota-sauna span.tx{display:flex;flex-direction:column;gap:2px}
.nota-sauna b{font-size:15px;font-weight:600;color:var(--t900)}
.nota-sauna small{font-size:13px;line-height:1.35;color:var(--t400)}
.sosire{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:24px;background:var(--surface)}
.sosire small{font-size:12px;font-weight:500;color:var(--t300)}
.sosire .rd{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sosire .rd>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.sosire b{font-size:18px;font-weight:600;color:var(--t900)}
.sosire em{font-style:normal;font-size:14px;color:var(--t400);font-variant-numeric:tabular-nums}

/* ---- foaia canalului: pe telefon tot ecranul, pe desktop un panou în dreapta ------------ */
.foaie-fund{display:none}
.foaie{position:fixed;inset:0;z-index:9990;overflow-y:auto;overscroll-behavior:contain;background:var(--ground);animation:ss-in 240ms var(--ease)}
.foaie:focus{outline:none}
.foaie-c{display:flex;flex-direction:column;gap:16px;padding:16px 16px calc(120px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto}
@media (min-width:768px){
  .foaie-fund{display:block;position:fixed;inset:0;z-index:9989;background:rgba(14,15,19,.55)}
  .foaie{left:auto;width:480px;border-left:1px solid var(--line)}
  .foaie-c{max-width:none;margin:0}
}
.shead{display:flex;justify-content:space-between;align-items:center;height:48px}
.shead .cerc{width:48px;height:48px;background:var(--surface);border:0;cursor:pointer}
.shead span.l{font-size:14px;font-weight:500;color:var(--t400)}
.shead .sp{width:48px}
.ftitlu{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 4px}
.ftitlu>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.ftitlu h1{font-size:32px;line-height:1.1;font-weight:600;letter-spacing:-.02em;color:var(--t900);overflow-wrap:anywhere}
.ftitlu small{font-size:14px;color:var(--t400)}
.dialc{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 16px;border-radius:28px;background:var(--surface)}
.dial{position:relative;width:300px;height:190px;max-width:100%;margin-bottom:20px}
.dial svg{overflow:visible}
.dial .mid{position:absolute;left:0;right:0;top:70px;display:flex;flex-direction:column;align-items:center;gap:2px}
.dial .big{font-size:56px;line-height:1;font-weight:500;letter-spacing:-.035em;color:var(--t900);font-variant-numeric:tabular-nums}
.dial .big sup{font-size:24px;letter-spacing:0;vertical-align:top;margin-left:2px;line-height:1}
.dial .cap{font-size:13px;color:var(--t300)}
/* etichetele scalei stau SUB capetele arcului: în referință cădeau peste liniuțele de la 20 și 41 °C */
.dial .mn,.dial .mx{position:absolute;bottom:-20px;font-size:12px;color:var(--t300);font-variant-numeric:tabular-nums}
.dial .mn{left:14px}.dial .mx{right:14px}
.tinta{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:var(--inset);font-size:14px;color:var(--t700)}
.tinta i{width:9px;height:9px;border-radius:50%;background:var(--g500)}
.tinta b{font-weight:600;color:var(--t900);font-variant-numeric:tabular-nums}
.comanda{display:flex;flex-direction:column;gap:12px}
.comanda .motiv,.comanda .indic{font-size:13px;line-height:1.45;color:var(--t400);text-align:center;padding:0 8px}
.prog{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:18px;background:var(--b100);color:var(--b800)}
.prog div{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500}
.prog div.cur{font-weight:600}
.prog div.pend{opacity:.7}
.prog .ok{width:22px;height:22px;border-radius:50%;background:var(--b800);color:#fff;display:grid;place-items:center;flex:none}
.prog .ok svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.prog .sp22{width:22px;height:22px;display:grid;place-items:center;flex:none}
.prog .sp22 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.prog .gol22{width:22px;height:22px;border-radius:50%;border:2px solid rgba(0,76,134,.35);flex:none}
.fcard{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:24px;background:var(--surface)}
.fcard h2{font-size:18px;line-height:1.3;font-weight:600;color:var(--t900)}
.fcard p{font-size:15px;line-height:1.45;color:var(--t400)}
.fcard .rs{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.fcard .rs span{font-size:13px;color:var(--t300);font-variant-numeric:tabular-nums}
.fcard .eroare{font-size:14px}
.jr{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.jr:first-child{border-top:0}
.jr .l{display:flex;flex-direction:column;gap:2px;min-width:0}
.jr .l b{font-size:14px;font-weight:600;color:var(--t900)}
.jr .l span{font-size:13px;color:var(--t300)}
.jr .r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.jr .r span{font-size:13px;color:var(--t400);font-variant-numeric:tabular-nums}

/* ---- alerte ---------------------------------------------------------------------------- */
.acard{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:24px;background:var(--surface);box-shadow:0 1px 2px rgba(43,44,51,.06);transition:background-color 240ms var(--ease)}
.acard.liniste{background:var(--inset);box-shadow:inset 0 0 0 1px var(--line)}
.acard .sus{display:flex;justify-content:space-between;align-items:center;gap:8px}
.acard .sus span{font-size:13px;color:var(--t300);font-variant-numeric:tabular-nums}
.acard h2{font-size:17px;font-weight:600;color:var(--t900)}
.acard.rez h2{font-size:16px}
.acard .ctx{font-size:13px;font-weight:600;color:var(--t700)}
.acard p{font-size:14px;line-height:1.45;color:var(--t400)}
.acard .nr{align-self:flex-start;display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:var(--inset);font-size:12px;font-weight:600;color:var(--t400)}
.acard .vz{display:inline-flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:600;color:var(--g800)}
.acard .vz svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.acard .acts{display:flex;gap:8px}
.acard .acts>*{flex:1 1 0;min-width:0}
.push{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:20px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--line)}
.push b{font-size:15px;font-weight:600;color:var(--t900)}
.push p{font-size:13px;line-height:1.45;color:var(--t400)}

/* ---- formulare ------------------------------------------------------------------------- */
.camp{display:grid;gap:6px;min-width:0}
.camp label,.lab{font-size:14px;line-height:1.2;font-weight:500;color:var(--t700)}
.inp{height:48px;width:100%;min-width:0;border-radius:14px;border:1px solid var(--line-strong);background:#fff;padding:0 14px;font-size:16px;color:var(--t900)}
select.inp{padding:0 10px}
.inp:disabled{background:var(--stone);color:var(--t400)}
.inp:focus-visible{outline:none;border-color:var(--g500);box-shadow:0 0 0 4px rgba(47,111,80,.2)}
.inp[aria-invalid="true"]{border-color:var(--r600)}
.form{display:grid;gap:18px}
.g2c{display:grid;gap:16px}
.g3c,.g4c{display:grid;gap:12px}
@media (min-width:768px){.g2c{grid-template-columns:1fr 1fr}.g3c{grid-template-columns:repeat(3,1fr)}.g4c{grid-template-columns:repeat(4,1fr)}.s2{grid-column:span 2}.s4{grid-column:1/-1}}
.cutie{border-radius:16px;background:var(--inset);padding:14px;display:grid;gap:12px}
.eroare{font-size:14px;color:var(--r700)}
.bifa{display:flex;align-items:center;gap:10px;font-size:15px;min-height:44px}
.bifa input{width:22px;height:22px;margin:0;accent-color:var(--g500)}
.rand-f{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rand-f>b{font-size:15px;font-weight:600;color:var(--t900)}
.pas2{display:grid;grid-template-columns:3fr 2fr;gap:8px}
.stepper{display:inline-flex;align-items:center;gap:6px}
.stepper button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line-strong);background:#fff;font-size:20px;line-height:1;cursor:pointer;color:var(--t700)}
.stepper button:disabled{background:var(--stone);color:var(--t200);cursor:not-allowed}
.stepper output{min-width:34px;text-align:center;font-size:18px;font-weight:600;color:var(--t900);font-variant-numeric:tabular-nums}
.sw{position:relative;width:52px;height:32px;flex:none}
.sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.sw span{position:absolute;inset:0;border-radius:999px;background:var(--line-strong);transition:background-color 150ms var(--ease)}
.sw span::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform 150ms var(--ease)}
.sw input:checked+span{background:var(--g500)}
.sw input:checked+span::after{transform:translateX(20px)}
.sw input:focus-visible+span{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--g500)}
.copiere{padding:12px 14px;border-radius:14px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--line);font-size:14px;word-break:break-all;color:var(--t400)}
.sedere{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:24px;background:var(--surface)}
.sedere .ts{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.sedere .ts>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.sedere .ts b{font-size:16px;font-weight:600;color:var(--t900)}
.sedere .ts em{font-style:normal;font-size:14px;color:var(--t400);font-variant-numeric:tabular-nums}
.sedere p{font-size:14px;line-height:1.4;color:var(--t700)}

/* ---- tabel (consola operatorului) --------------------------------------------------------- */
.tab{overflow-x:auto;border-radius:16px;background:var(--surface)}
table{width:100%;font-size:14px;border-collapse:collapse}
thead{background:var(--inset);text-align:left}
th{padding:10px 12px;font-weight:600;color:var(--t400);white-space:nowrap;font-size:13px}
td{padding:10px 12px;border-top:1px solid var(--line);vertical-align:top}
td .muted{display:block}
.lk{font-weight:600;color:var(--g700)}
.lk:hover{text-decoration:underline;text-underline-offset:4px}
.dst-t{color:var(--r600)}
.nw{white-space:nowrap}
@media (max-width:767.98px){.firimituri a,.lk{display:inline-flex;align-items:center;min-height:44px;min-width:44px}}
dl.fisa{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14px;max-width:36rem}
dl.fisa dt{color:var(--t400)}
dl.fisa dd{overflow-wrap:anywhere;min-width:0}

/* ---- plan pe zile (card al demonstrației) ------------------------------------------------- */
.zi-plan{display:grid;gap:6px}
.zi-plan h4{margin:0;font-size:13px;font-weight:600;color:var(--t400)}
.pas{display:grid;grid-template-columns:3.2rem 1fr;gap:2px 10px;align-items:baseline;font-size:14px;background:var(--inset);border-radius:14px;padding:10px 14px}
.pas .ora{font-variant-numeric:tabular-nums;font-weight:600;color:var(--t900)}
.pas .ce{min-width:0}
.pas .de{grid-column:2;font-size:13px;line-height:1.4;color:var(--t400)}
.pas.nou{box-shadow:inset 0 0 0 1.5px var(--g500);background:var(--g50)}

/* ---- notificări --------------------------------------------------------------------------- */
.toasturi{position:fixed;z-index:9991;right:24px;bottom:76px;width:356px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;gap:8px;pointer-events:none}
@media (max-width:767.98px){.toasturi{left:16px;right:16px;top:16px;bottom:auto;width:auto;max-width:none}}
.toast{pointer-events:auto;display:flex;gap:10px;align-items:flex-start;background:var(--surface);color:var(--t900);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow-dialog);
  font-size:14px;line-height:1.45;animation:ss-in 240ms var(--ease)}
.toast svg{width:18px;height:18px;flex:none;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.toast b{display:block;font-weight:600}
.toast span{color:var(--t400)}
@media (prefers-reduced-motion:reduce){.toast,.foaie{animation:none}}

/* ---- istoric de temperatură (GraficTemperatura) ---------------------------------------------- */
.gol{padding:24px 0;text-align:center;font-size:14px;color:var(--t400)}
.graf{position:relative}
.graf svg{display:block;width:100%;height:auto;touch-action:none;user-select:none;-webkit-user-select:none}
.graf svg:focus{outline:none}
.graf svg:focus-visible{outline:2px solid var(--g500);outline-offset:2px;border-radius:4px}
.graf .ax{color:var(--t300)}
.graf .ax line{stroke:var(--line);stroke-width:1}
.graf .ax text{fill:currentColor;font-size:12px}
.graf .banda{fill:var(--o500);fill-opacity:.18}
.graf .linie{fill:none;stroke:var(--o500);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.graf .activ line{stroke:var(--t300);stroke-width:1}
.graf .activ circle{fill:var(--o500);stroke:#fff;stroke-width:2}
.graf-tip{position:absolute;top:0;pointer-events:none;border-radius:12px;background:#fff;color:var(--t900);padding:6px 10px;font-size:12px;line-height:16px;
  box-shadow:0 4px 16px rgba(14,15,19,.16);white-space:nowrap;display:grid}
.graf-tip[hidden]{display:none}
.graf-tip.st{transform:translateX(-100%)}
.graf-tip span{color:var(--t400)}
.spark{display:block;width:100%;height:auto}
.spark .b{stroke:var(--line);stroke-width:1;fill:none}
.spark .l{fill:none;stroke:var(--o500);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.spark .p{fill:var(--o500);stroke:#fff;stroke-width:2}
.valori{font-size:14px}
.valori summary{cursor:pointer;color:var(--t400);min-height:44px;display:flex;align-items:center}
.valori-c{margin-top:4px;max-height:15rem;overflow:auto}
.valori table{font-variant-numeric:tabular-nums}
.valori thead{background:none}
.valori th{font-size:12px;color:var(--t400);padding:4px 8px 4px 0}
.valori td{padding:4px 8px 4px 0;white-space:nowrap}

/* ---- pagina oaspetelui ------------------------------------------------------------------------ */
.oaspete{min-height:100vh;min-height:100svh;background:var(--ground)}
.oaspete main{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:16px 16px calc(120px + env(safe-area-inset-bottom))}
.oaspete header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px}
.oaspete header .loc{display:flex;flex-direction:column;gap:2px;padding-left:4px;min-width:0}
.oaspete header .loc span{font-size:12px;line-height:1.2;color:var(--t400);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oaspete header .loc span:first-child{font-weight:500}
.og{display:flex;flex-direction:column;gap:6px;border-radius:28px;background:var(--surface);padding:18px 18px 20px}
.og small{font-size:13px;font-weight:600;color:var(--g700);overflow-wrap:anywhere}
.og h1{font-size:28px;line-height:1.15;font-weight:600;letter-spacing:-.02em;color:var(--t900);overflow-wrap:anywhere}
.og span{font-size:15px;color:var(--t400);font-variant-numeric:tabular-nums}
.ore2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ore2>div{display:flex;flex-direction:column;gap:4px;border-radius:20px;background:var(--surface);padding:16px}
.ore2 small{font-size:13px;color:var(--t300)}
.ore2 b{font-size:18px;font-weight:600;color:var(--t900);font-variant-numeric:tabular-nums}
.ciubar-o{display:flex;flex-direction:column;gap:14px;border-radius:24px;background:var(--surface);padding:18px}
.ciubar-o .th{display:flex;align-items:center;gap:10px}
.ciubar-o h2{font-size:18px;font-weight:600;color:var(--t900)}
.ciubar-o p{font-size:14px;line-height:1.45;color:var(--t400);font-variant-numeric:tabular-nums}
.oaspete footer{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 8px 0}
.oaspete footer p{text-align:center;font-size:13px;color:var(--t400)}
.oaspete footer .mk{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--t400)}
.oaspete footer .mk .logo{width:18px;height:18px;border-radius:6px}
.oaspete footer .mk .logo svg{width:11px;height:11px}
.cont-rand{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 16px;border-top:1px solid var(--line);width:100%;border-left:0;border-right:0;border-bottom:0;background:none;text-align:left;cursor:pointer}
.cont-rand:first-child{border-top:0}
.cont-rand .t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cont-rand .t b{font-size:15px;font-weight:600;color:var(--t900)}
.cont-rand .t span{font-size:12px;color:var(--t400)}
.cont-rand>svg:last-child{width:18px;height:18px;flex:none;color:var(--t400);fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.lista-c{border-radius:24px;background:var(--surface);overflow:hidden}

/* ---- dialog (Dialog din produs): fundal negru 80%, cutie centrată; pe telefon stă jos, ca foaie ---------- */
.dlg-fund{position:fixed;inset:0;z-index:9992;background:rgba(0,0,0,.8)}
.dlg{position:fixed;z-index:9993;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:32rem;display:grid;gap:18px;
  padding:24px;border-radius:28px;background:var(--surface);box-shadow:var(--shadow-dialog);animation:ss-in 420ms var(--ease)}
.dlg-h{display:flex;flex-direction:column;gap:8px}
.dlg-t{font-size:20px;line-height:1.2;font-weight:600;color:var(--t900)}
.dlg-d{font-size:15px;line-height:1.45;color:var(--t400)}
@media (max-width:767.98px){.dlg{left:0;right:0;top:auto;bottom:0;transform:none;width:auto;max-width:none;border-radius:28px 28px 0 0;
  padding:24px 20px calc(72px + env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){.dlg{animation:none}}
