:root{--ink:#18201d;--muted:#69736e;--paper:#f5f6f2;--surface:#fff;--line:#dde2dd;--green:#224f3f;--green2:#dce9e1;--orange:#d86f3d;--red:#b74d4d;--shadow:0 18px 60px rgba(32,54,44,.12);font-family:Inter,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}.hidden{display:none!important}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.brand-panel{background:linear-gradient(145deg,#183d31,#2c654e);color:white;padding:9vh 10vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.brand-panel:after{content:"";position:absolute;width:420px;height:420px;border:80px solid rgba(255,255,255,.05);border-radius:50%;right:-180px;bottom:-180px}.brand-mark{width:66px;height:66px;border-radius:19px;background:#f2a36c;color:#183d31;display:grid;place-items:center;font-size:24px;font-weight:900;letter-spacing:-1px;margin-bottom:44px}.brand-mark.small{width:42px;height:42px;border-radius:13px;font-size:15px;margin:0}.brand-panel h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(38px,4vw,64px);line-height:1.06;max-width:680px;margin:12px 0 22px}.brand-panel>p:not(.eyebrow){color:#d4e0da;font-size:18px;line-height:1.6;max-width:580px}.security-note{margin-top:48px;display:flex;align-items:center;gap:10px;color:#deebe4}.security-note span{color:#8fcca9}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#87918c;margin:0 0 8px}.brand-panel .eyebrow{color:#a9c7b8}.login-panel{display:grid;place-items:center;padding:50px}.login-card{width:min(430px,100%)}.login-card h2{font-family:Georgia,serif;font-size:40px;font-weight:500;margin:4px 0}.muted{color:var(--muted)}label{display:grid;gap:8px;font-size:13px;font-weight:700;margin:22px 0 0}input,select,textarea{width:100%;border:1px solid var(--line);background:white;border-radius:10px;padding:12px 14px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#6a9581;box-shadow:0 0 0 3px rgba(70,117,95,.12)}textarea{min-height:92px;resize:vertical}.button{border:0;border-radius:10px;padding:11px 16px;font-weight:750;cursor:pointer}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#173c30}.button.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.button.danger{background:#f7e6e6;color:#8d3030}.button.small{padding:7px 10px;font-size:12px}.wide{width:100%;margin-top:26px}.form-message{min-height:22px;margin-top:14px;font-size:13px;color:var(--red)}details{font-size:13px;color:var(--muted);margin-top:18px}code{background:#ebeee9;padding:2px 5px;border-radius:4px}.app-shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:#193e32;color:white;padding:24px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo-row{display:flex;align-items:center;gap:12px;padding:0 8px 25px;border-bottom:1px solid rgba(255,255,255,.1)}.logo-row strong,.logo-row span{display:block}.logo-row span{color:#aac3b8;font-size:12px;margin-top:3px}.sidebar nav{display:grid;gap:5px;margin-top:22px}.sidebar nav button{background:transparent;color:#bcd0c7;border:0;text-align:left;border-radius:9px;padding:11px 13px;cursor:pointer;display:flex;justify-content:space-between}.sidebar nav button:hover,.sidebar nav button.active{background:rgba(255,255,255,.1);color:white}.badge{background:var(--orange);color:white;border-radius:20px;padding:1px 7px;font-size:11px}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:18px 8px 0}.sidebar-footer strong,.sidebar-footer span{display:block}.sidebar-footer span{color:#9db7ab;font-size:12px;margin-top:4px}.link-button{border:0;background:none;color:#f3aa7e;padding:12px 0 0;cursor:pointer}.workspace{min-width:0}.workspace>header{height:94px;background:white;border-bottom:1px solid var(--line);padding:20px 34px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5}.workspace header h2{font-family:Georgia,serif;font-size:28px;font-weight:500;margin:0}.header-actions{display:flex;align-items:center;gap:12px}.device-pill{background:var(--green2);color:var(--green);padding:7px 10px;border-radius:20px;font-size:12px;font-weight:700}.content{padding:30px 34px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:0 4px 16px rgba(33,52,43,.03)}.metric span{color:var(--muted);font-size:13px}.metric strong{display:block;font-family:Georgia,serif;font-size:34px;margin-top:9px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.section-head h3{font-family:Georgia,serif;font-size:22px;font-weight:500;margin:0}.table-wrap{background:white;border:1px solid var(--line);border-radius:14px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:780px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid #edf0ed;font-size:13px;vertical-align:top}th{background:#f8f9f6;color:#707a75;font-size:11px;text-transform:uppercase;letter-spacing:.07em}tr:last-child td{border-bottom:0}.status{display:inline-block;border-radius:20px;padding:5px 9px;background:#edf0ed;color:#515b56;font-size:11px;font-weight:800}.status.new,.status.drawings_ready{background:#fff1d7;color:#8b5a0c}.status.sketch_in_progress,.status.drawings_in_progress{background:#e5eef8;color:#315f8a}.status.sketch_review,.status.drawings_review{background:#f6e9df;color:#95522e}.status.completed,.status.active{background:#dfeee5;color:#276044}.status.pending{background:#fff1d7;color:#8b5a0c}.status.revoked,.status.disabled{background:#f5e2e2;color:#8d3b3b}.actions{display:flex;gap:7px;flex-wrap:wrap}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-grid .full{grid-column:1/-1}.empty{padding:50px;text-align:center;color:var(--muted)}dialog{border:0;border-radius:18px;padding:0;width:min(680px,calc(100vw - 32px));box-shadow:var(--shadow)}dialog::backdrop{background:rgba(15,28,22,.48)}dialog form{padding:24px}.modal-head,.modal-actions{display:flex;justify-content:space-between;align-items:center}.modal-head h3{font-family:Georgia,serif;font-size:27px;font-weight:500;margin:0}.modal-actions{justify-content:flex-end;gap:10px;margin-top:26px}.icon-button{border:0;background:#f0f2ef;border-radius:50%;font-size:25px;width:36px;height:36px;cursor:pointer}.toast{position:fixed;right:22px;bottom:22px;background:#1b4033;color:#fff;padding:13px 16px;border-radius:10px;box-shadow:var(--shadow);z-index:100;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#8c3b3b}.device-list{display:grid;gap:9px}.device-row{border:1px solid var(--line);padding:12px;border-radius:10px;display:flex;justify-content:space-between;gap:12px}.device-row small{display:block;color:var(--muted);margin-top:4px}.tabs{display:flex;gap:6px;margin-bottom:15px;overflow:auto}.tabs button{white-space:nowrap;border:1px solid var(--line);background:white;padding:8px 11px;border-radius:20px;cursor:pointer}.tabs button.active{background:var(--green);color:white;border-color:var(--green)}@media(max-width:950px){.cards{grid-template-columns:1fr 1fr}.app-shell{grid-template-columns:200px 1fr}.content{padding:24px 20px}.workspace>header{padding:18px 20px}}@media(max-width:700px){.login-shell{grid-template-columns:1fr}.brand-panel{display:none}.app-shell{display:block}.sidebar{height:auto;position:static}.sidebar nav{grid-template-columns:repeat(2,1fr)}.workspace>header{position:static}.cards{grid-template-columns:1fr}.header-actions .device-pill{display:none}.order-grid{grid-template-columns:1fr}.order-grid .full{grid-column:auto}}
