:root{--bg: #eceef1;--surface: #ffffff;--surface-2: #f4f5f7;--line: #d9dce2;--line-strong: #b9bec8;--text: #15171b;--muted: #596070;--red: #e5141c;--red-ink: #c40f17;--steel: #9aa0ab;--link: #0a58ca;--link-hover: #c40f17;--focus: #e5141c;--row-hover: #f6f7f9;--danger-text: #b00a12;--danger-bg: #fdeceb;--st-open: #1d6fd1;--st-progress: #a85f00;--st-parts: #c4501b;--st-review: #7345d0;--st-done: #178a58;--st-cancelled: #6b7280;--carbon: #0e0f11;--carbon-2: #16181b;--carbon-line: #272a2f;--carbon-text: #eceef1;--carbon-muted: #8e939e;--weave: rgba(255, 255, 255, .035);--overlay: rgba(12, 13, 16, .6);--radius: 8px;--radius-lg: 12px;--sidebar: 252px;--font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;--font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;color-scheme:light}:root[data-theme=dark]{--bg: #0f1012;--surface: #17191d;--surface-2: #1e2126;--line: #2a2e35;--line-strong: #444a55;--text: #eceef1;--muted: #959aa6;--red: #ee1c24;--red-ink: #ff4a50;--steel: #7c828e;--link: #6cb2ff;--link-hover: #ff6b70;--focus: #ff4a50;--row-hover: #1b1e23;--danger-text: #ff8f94;--danger-bg: rgba(238, 28, 36, .12);--st-open: #5aa9ff;--st-progress: #f5a524;--st-parts: #ff7a45;--st-review: #b18cff;--st-done: #3ecf8e;--st-cancelled: #8f95a0;--overlay: rgba(0, 0, 0, .72);color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;color:var(--text);background:var(--bg);font:400 16px/1.5 var(--font-body);-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.1;margin:0}a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--link-hover);text-decoration-thickness:2px}button,select,summary,[role=button]{cursor:pointer}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.skip{position:absolute;left:-999px;top:8px;z-index:100;padding:8px 14px;border:0;border-radius:var(--radius);background:var(--red);color:#fff;font:inherit;font-weight:600}.skip:focus{left:8px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand{display:flex;align-items:center;gap:12px;color:inherit;min-width:0}.brand-mark{position:relative;flex:none;width:24px;height:32px}.brand-mark:before,.brand-mark:after{content:"";position:absolute;top:0;bottom:0;transform:skew(-18deg)}.brand-mark:before{left:6px;width:9px;background:var(--red)}.brand-mark:after{left:17px;width:4px;background:var(--steel)}.brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.1}.brand-text strong{font:700 22px/1 var(--font-display);letter-spacing:.02em;overflow-wrap:anywhere}.brand-text small{margin-top:3px;font-size:13px;opacity:.7;overflow-wrap:anywhere}.app{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:28px;padding:24px 14px 18px;color:var(--carbon-text);background:linear-gradient(45deg,var(--weave) 25%,transparent 25%,transparent 75%,var(--weave) 75%) 0 0 / 8px 8px,linear-gradient(45deg,var(--weave) 25%,transparent 25%,transparent 75%,var(--weave) 75%) 4px 4px / 8px 8px,var(--carbon);border-right:1px solid var(--carbon-line)}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px}.nav-toggle{display:none;padding:8px 14px;font:inherit;font-weight:600;color:var(--carbon-text);background:var(--carbon-2);border:1px solid var(--carbon-line);border-radius:var(--radius)}nav{display:flex;flex-direction:column;gap:2px}nav a{position:relative;display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:var(--radius);color:var(--carbon-muted);text-decoration:none;font-weight:500;font-size:16px}nav a svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}nav a:hover{color:var(--carbon-text);background:#ffffff0d}nav a[aria-current=page]{color:#fff;background:#ffffff12;font-weight:600}nav a[aria-current=page]:before{content:"";position:absolute;left:-14px;top:8px;bottom:8px;width:5px;background:var(--red);transform:skew(-18deg)}.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--carbon-line)}.whoami{margin:0 0 4px;padding:0 4px;font-size:14px;color:var(--carbon-muted);overflow-wrap:anywhere}.whoami strong{display:block;color:var(--carbon-text);font-weight:600;font-size:16px}.sidebar .btn{color:var(--carbon-text);background:transparent;border-color:var(--carbon-line);text-align:left}.sidebar .btn:hover{background:#ffffff0f;border-color:#3a3e45;color:#fff}main{padding:40px clamp(20px,4vw,56px) 80px;min-width:0;max-width:1280px;width:100%}main:focus{outline:none}.stack{display:flex;flex-direction:column;gap:28px}.grid{display:grid;gap:20px}.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.grid.stats{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px}.page-head h1{font-size:clamp(32px,4vw,44px);font-weight:700;text-transform:uppercase;letter-spacing:.01em}.page-head h1:after{content:"";display:block;width:64px;height:5px;margin-top:12px;background:linear-gradient(90deg,var(--red) 0 70%,transparent 70% 76%,var(--steel) 76%);transform:skew(-18deg);transform-origin:left}.page-head p{margin:10px 0 0;color:var(--muted)}.page-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.actions select{width:auto;min-width:210px}h2.muted{font-size:22px;font-weight:600;color:var(--text)}.muted{color:var(--muted)}.hint{margin:0 0 12px;color:var(--muted);font-size:15px}.btn,.btn:hover{text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;font:600 15px/1.2 var(--font-body);color:var(--text);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius)}.btn:hover{color:var(--text);background:var(--surface-2);border-color:var(--steel)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary,.btn-primary:hover{color:#fff}.btn-primary{background:var(--red);border-color:var(--red)}.btn-primary:hover{background:var(--red-ink);border-color:var(--red-ink)}.btn-block{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;color:var(--link);background:transparent;border:1px solid var(--line-strong);border-radius:var(--radius)}.icon-btn:hover{color:var(--link-hover);border-color:var(--link-hover);background:var(--surface-2)}.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}input,select,textarea{width:100%;min-height:44px;padding:10px 12px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius)}:root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{background:#101215}textarea{resize:vertical;line-height:1.45}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 22%,transparent)}input[type=checkbox]{width:18px;min-height:0;height:18px;accent-color:var(--red)}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field label{font-size:14px;font-weight:600;color:var(--text)}.field-error{color:var(--danger-text);font-size:14px}.form-error{margin:0 0 16px;padding:12px 14px;color:var(--danger-text);background:var(--danger-bg);border:1px solid color-mix(in srgb,var(--red) 40%,transparent);border-radius:var(--radius)}.check{display:flex;align-items:center;gap:10px;margin-bottom:16px;cursor:pointer}.fieldset{margin:0 0 18px;padding:16px 16px 2px;border:1px solid var(--line);border-radius:var(--radius)}.fieldset legend{padding:0 8px;font:600 18px/1 var(--font-display);color:var(--text)}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form select{flex:1;min-width:170px}.status-actions{display:flex;flex-wrap:wrap;gap:10px}.card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.card h2{margin:0 0 16px;font-size:22px;font-weight:600}.kv{display:grid;grid-template-columns:140px 1fr;gap:10px 20px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0;overflow-wrap:anywhere}.stat{position:relative;display:block;padding:20px 22px 18px;overflow:hidden;color:var(--text);text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--stat-color, var(--red))}.stat:hover{color:var(--text);border-color:var(--stat-color, var(--red));background:var(--surface-2)}.stat span{display:block;color:var(--muted);font-size:15px;font-weight:500}.stat strong{display:block;margin-top:2px;font:700 56px/1 var(--font-display);font-variant-numeric:tabular-nums}.stat[data-status=OPEN]{--stat-color: var(--st-open)}.stat[data-status=IN_PROGRESS]{--stat-color: var(--st-progress)}.stat[data-status=WAITING_PARTS]{--stat-color: var(--st-parts)}.stat[data-status=COMPLETED]{--stat-color: var(--st-done)}.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}table{width:100%;border-collapse:collapse}th,td{padding:14px 18px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}th{font-size:14px;font-weight:600;color:var(--muted);background:var(--surface-2);white-space:nowrap}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:var(--row-hover)}tbody tr:hover td:first-child{box-shadow:inset 4px 0 0 var(--red)}td a{font-weight:600}td.num,th.num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}th.actions-col,td.actions-cell{text-align:center;width:1%}td.wrap-text{white-space:pre-wrap;overflow-wrap:anywhere;min-width:240px}.total-line{display:flex;justify-content:flex-end;align-items:baseline;gap:18px;padding:4px 6px 0}.total-line strong{font:700 34px/1 var(--font-display)}.empty{padding:44px 20px;text-align:center;color:var(--muted);background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--radius-lg)}.loading,.error-box{padding:40px 0;color:var(--muted)}.error-box{color:var(--danger-text)}.badge{display:inline-flex;align-items:center;gap:7px;padding:3px 12px 3px 10px;font-size:14px;font-weight:600;white-space:nowrap;color:var(--st-color, var(--muted));border-radius:999px;background:color-mix(in srgb,var(--st-color, var(--muted)) 13%,transparent)}.badge:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}.badge[data-status=OPEN],.badge[data-status=WAITING_EXECUTION]{--st-color: var(--st-open)}.badge[data-status=IN_PROGRESS]{--st-color: var(--st-progress)}.badge[data-status=WAITING_PARTS]{--st-color: var(--st-parts)}.badge[data-status=UNDER_REVIEW]{--st-color: var(--st-review)}.badge[data-status=COMPLETED],.badge[data-status=DELIVERED]{--st-color: var(--st-done)}.badge[data-status=CANCELLED]{--st-color: var(--st-cancelled)}.page-title .badge{font-size:15px;padding:5px 14px 5px 12px}.history{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--line)}.history li{position:relative;padding:0 0 18px 18px;font-weight:500}.history li:last-child{padding-bottom:0}.history li:before{content:"";position:absolute;left:-27px;top:6px;width:9px;height:14px;background:var(--red);transform:skew(-18deg)}.history small{display:block;color:var(--muted);font-weight:400}.modal{width:min(540px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.modal::backdrop{background:var(--overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-body{padding:26px}.modal h2{margin:0 0 20px;font-size:28px;font-weight:700;text-transform:uppercase}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.toasts{position:fixed;right:16px;bottom:16px;z-index:50;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 32px))}.toast{padding:12px 16px;font-weight:500;color:var(--text);background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--st-open);border-radius:var(--radius);box-shadow:0 10px 30px #0a0c1040}.toast.success{border-left-color:var(--st-done)}.toast.error{border-left-color:var(--red)}.stage-hero,.auth-aside{position:relative;overflow:hidden;color:var(--carbon-text);background:linear-gradient(45deg,var(--weave) 25%,transparent 25%,transparent 75%,var(--weave) 75%) 0 0 / 8px 8px,linear-gradient(45deg,var(--weave) 25%,transparent 25%,transparent 75%,var(--weave) 75%) 4px 4px / 8px 8px,var(--carbon)}.stage-hero:before,.stage-hero:after,.auth-aside:before,.auth-aside:after{content:"";position:absolute;top:-10%;bottom:-10%;transform:skew(-18deg);animation:slash-in .7s cubic-bezier(.2,.8,.2,1) both}.stage-hero:before,.auth-aside:before{right:14%;width:clamp(40px,8vw,110px);background:var(--red)}.stage-hero:after,.auth-aside:after{right:calc(14% - clamp(18px,3vw,42px));width:clamp(8px,1.4vw,18px);background:var(--steel);animation-delay:.08s}@keyframes slash-in{0%{transform:translate(60%) skew(-18deg);opacity:0}}@media(prefers-reduced-motion:reduce){.stage-hero:before,.stage-hero:after,.auth-aside:before,.auth-aside:after{animation:none}}.stage-bar,.auth-bar{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px}.stage-bar .icon-btn,.auth-bar .icon-btn{color:var(--carbon-text);background:var(--carbon);border-color:#3a3e45}.stage-bar .icon-btn:hover,.auth-bar .icon-btn:hover{color:#fff;background:var(--carbon-2);border-color:var(--steel)}.stage{min-height:100vh;background:var(--bg)}.stage-hero{padding:22px clamp(20px,5vw,72px) 120px}.stage-intro{position:relative;z-index:1;max-width:640px;padding-top:clamp(32px,7vw,76px)}.stage-intro h1{font-size:clamp(48px,8vw,88px);font-weight:700;text-transform:uppercase;line-height:.95}.stage-intro p{max-width:46ch;margin:18px 0 0;font-size:18px;color:#c9ccd3}.flow{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:14px 32px;margin:34px 0 0;padding:0;list-style:none;counter-reset:step}.flow li{display:flex;align-items:center;gap:12px;color:#c9ccd3;font-weight:500;counter-increment:step}.flow li:before{content:counter(step);display:grid;place-items:center;width:30px;height:30px;font:700 18px/1 var(--font-display);color:#fff;background:var(--red);transform:skew(-18deg)}.flow li span{display:inline-block}.stage-sheet{position:relative;z-index:2;width:min(860px,calc(100% - 32px));margin:-72px auto 0;padding:clamp(22px,4vw,40px);border-radius:var(--radius-lg);box-shadow:0 24px 60px -24px #0a0c1073}.stage-sheet h2{font-size:24px;margin:0 0 18px}.sheet-grid{display:grid;grid-template-columns:1fr;gap:0 36px}.sheet-section h3{margin:0 0 16px;padding-bottom:10px;font-size:22px;border-bottom:1px solid var(--line)}.sheet-section .row-2{display:grid;grid-template-columns:1fr 120px;gap:0 14px}.sheet-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:6px}.sheet-foot p{flex:1 1 260px;margin:0;color:var(--muted);font-size:15px}.sheet-foot .btn{min-width:200px;min-height:48px;font-size:17px}.stage-foot{padding:28px 16px 48px;text-align:center;color:var(--muted);font-size:14px}.sent{text-align:left}.sent h2{font:700 40px/1 var(--font-display);text-transform:uppercase;margin-bottom:14px}.sent p{max-width:52ch;margin:0 0 22px}.sent-mark{display:grid;place-items:center;width:56px;height:56px;margin-bottom:20px;color:#fff;background:var(--st-done);border-radius:50%}.sent-mark svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}@media(min-width:760px){.sheet-grid{grid-template-columns:1fr 1fr}}.auth-layout{display:grid;grid-template-columns:minmax(320px,5fr) 6fr;min-height:100vh;background:var(--bg)}.auth-aside{display:flex;flex-direction:column;padding:28px clamp(24px,4vw,56px)}.auth-aside .auth-copy{position:relative;z-index:1;margin:auto 0;max-width:420px}.auth-aside h1{font-size:clamp(44px,5.5vw,72px);font-weight:700;text-transform:uppercase;line-height:.95}.auth-aside p{margin:16px 0 0;font-size:18px;color:#c9ccd3;max-width:36ch}.auth-main{display:flex;align-items:center;justify-content:center;padding:40px 20px}.auth-card{width:min(420px,100%)}.auth-card h2{font:700 34px/1 var(--font-display);text-transform:uppercase;margin-bottom:8px}.auth-card .hint{margin:0 0 22px}.auth-switch{margin:22px 0 0;color:var(--muted);font-size:15px}@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-aside{padding:20px 20px 28px}.auth-aside .auth-copy{margin:28px 0 0}.auth-aside:before{right:8%}.auth-aside:after{right:calc(8% - 22px)}}@media(max-width:640px){.stage-hero:before{right:-10%;width:34px}.stage-hero:after{right:calc(-10% - 20px);width:8px}.stage-intro p{max-width:80%}}@media(max-width:860px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:14px 16px;gap:14px}.sidebar-top{padding:0}.nav-toggle{display:inline-block}nav{display:none}nav.open{display:flex}nav a[aria-current=page]:before{left:-16px}.sidebar-foot{display:none}nav.open~.sidebar-foot{display:flex}main{padding-top:28px}.kv{grid-template-columns:1fr;gap:2px 0}.kv dd{margin-bottom:12px}.stage-hero{padding-bottom:104px}}
