:root {
  --ink:#f1edf7; --muted:#ada6bd; --soft:#161622; --panel:#1d1b2a;
  --line:#3a3548; --plum:#d6b8ff; --background:#12111a;
  color-scheme:dark; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--background); color:var(--ink); font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0; min-height:100vh; display:flex; flex-direction:column}
a{color:var(--plum)}
button,input,select{font:inherit; color:inherit}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--plum);outline-offset:3px}
.site-header{padding:20px clamp(20px,6vw,88px);display:flex;gap:20px;justify-content:space-between;align-items:center;border-bottom:1px solid #302a3d;background:#171521}
.brand{display:flex;gap:12px;align-items:center}
.brand-icon{width:43px;height:43px;display:grid;place-items:center;background:linear-gradient(135deg,#d7b7ff,#9372c2);color:#2c1b3e;font-size:22px;font-weight:800;border-radius:13px}
.brand-copy{display:flex;flex-direction:column;letter-spacing:-.03em}
.brand-copy strong{font-family:Georgia,serif;font-size:24px;font-weight:650}
.brand-copy small{font-size:10px;color:var(--muted);letter-spacing:.22em;font-weight:700;margin-top:1px}
.header-label{font-size:12px;color:#cbc3d8;display:flex;align-items:center;gap:9px}
.online-dot{width:7px;height:7px;border-radius:50%;background:#bda1dc;box-shadow:0 0 0 3px #bda1dc22}
.main{width:min(1380px,100%);margin:0 auto;padding:56px clamp(18px,4vw,62px) 80px;flex:1}
.hero{max-width:710px;margin:0 0 50px}
.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#bfa3dc}
h1{font-family:Georgia,serif;font-size:clamp(34px,5vw,60px);line-height:1.14;letter-spacing:-.055em;font-weight:450;margin:13px 0 17px}
.sparkle{color:#b69bde}
.hero p{font-size:16px;color:#c4bccc;line-height:1.7;max-width:610px;margin:0}
.toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;flex-wrap:wrap;margin:0 0 22px}
.section-heading{display:flex;align-items:baseline;gap:13px}
.section-heading h2{font-size:20px;letter-spacing:-.03em;margin:0}
.count{color:var(--muted);font-size:12px}
.controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
input,select,button{height:39px;border:1px solid #575066;border-radius:9px;background:#211f2d;padding:0 13px}
input{width:min(260px,75vw)}select{min-width:155px}button{min-width:43px;font-size:23px;cursor:pointer}
button:hover{background:#332b45}
.visually-hidden{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
.products{display:grid;gap:17px}
.product{border-radius:15px;background:linear-gradient(160deg,#252133,#1d1b29 70%);border:1px solid #433c51;padding:22px 24px 17px;min-width:0;box-shadow:0 12px 24px #00000014}
.product-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.product h3{margin:0;font-size:18px;line-height:1.3;font-weight:660}
.product-note{font-size:12px;margin-top:5px;color:var(--muted)}
.product-state{font-size:12px;padding:6px 12px;border-radius:100px;background:#393047;color:#dfc4ff;white-space:nowrap}
.product-state[data-state="attention"]{background:#493036;color:#ffbcc2}
.product-state[data-state="waiting"]{background:#4e3c2e;color:#f6d39c}
.product-state[data-state="done"]{background:#294539;color:#b7eed0}
.stages{display:flex;gap:6px;align-items:stretch;overflow-x:auto;padding:2px 1px 13px;scrollbar-color:#655876 transparent;scrollbar-width:thin}
.stage{flex:1 0 105px;min-width:105px;min-height:77px;max-width:180px;border-radius:9px;border:1px solid #454051;padding:9px 10px;display:flex;gap:8px;align-items:center;justify-content:center;flex-direction:column;background:#2b2936;color:#b5aebe;text-align:center}
.stage[data-state="done"]{background:#263d34;border-color:#3e6551;color:#b2ebcb}
.stage[data-state="active"]{background:#342c43;border-color:#7b6596;color:#e2cefb}
.stage[data-state="waiting"]{background:#463829;border-color:#866747;color:#f4d2a0}
.stage[data-state="attention"]{background:#492f37;border-color:#835462;color:#ffc0cb}
.stage[data-state="not_applicable"]{opacity:.42}
.stage .symbol{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid currentColor;font-size:15px;font-weight:750}
.stage .name{font-size:11px;line-height:1.3;font-weight:650}
.arrow{display:flex;flex:0 0 12px;align-items:center;justify-content:center;color:#83748f;font-size:14px}
.product-bottom{border-top:1px solid #3d3648;display:flex;align-items:center;gap:13px;padding-top:16px}
.meter{height:6px;width:150px;max-width:30vw;border-radius:10px;background:#493f56;overflow:hidden}
.meter-fill{height:100%;background:#c1a0eb;border-radius:10px;transition:width .2s}
.fraction{font-size:12px;color:var(--muted)}
.legend{display:flex;flex-wrap:wrap;gap:17px;font-size:12px;color:var(--muted);margin:25px 0 10px}
.legend>span{display:flex;align-items:center;gap:7px}
.legend-icon{width:20px;height:20px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center}
.legend-icon.done{color:#b2ebcb}.legend-icon.active{color:#e2cefb}
.legend-icon.waiting{color:#f4d2a0}.legend-icon.pending{color:#b5aebe}
.legend-icon.attention{color:#ffc0cb}
.last-updated{color:#8e879e;font-size:12px;text-align:right}
.empty,.error{border-radius:13px;border:1px dashed #585067;color:var(--muted);padding:38px 25px;text-align:center}
.error{color:#ffbcc2;border-color:#774b57}
.footer{border-top:1px solid #302a3d;padding:24px clamp(20px,6vw,88px);color:#948ca3;font-size:12px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
@media(max-width:900px){.main{padding-top:40px}.stages .stage{flex:0 0 125px}.toolbar{align-items:stretch}}
@media(max-width:600px){.site-header{padding:16px 18px}.brand-icon{width:37px;height:37px}.brand-copy strong{font-size:20px}.header-label{font-size:11px}.main{padding:35px 16px 60px}.hero{margin-bottom:35px}.hero p{font-size:14px}.controls{width:100%}.controls input{flex:1;min-width:160px}.controls select{flex:1}.product{padding:18px 17px 15px}.stage{flex-basis:118px}.stages{gap:4px}.footer{padding:20px 16px}}
