:root{color-scheme:light;--ink:#203633;--muted:#7a8583;--line:#e6eae7;--paper:#f5f6f2;--green:#236653;--dark:#172e2a;--gold:#c9a66b;--red:#ad4e45;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
button{color:inherit}
button:focus-visible,a:focus-visible{outline:3px solid #c5a563;outline-offset:4px}
input:focus,select:focus,textarea:focus{outline:2px solid #79a68f;outline-offset:1px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1{font-size:30px;font-weight:650;letter-spacing:-1px}
h2{font-size:19px;letter-spacing:-.4px}
h3{font-size:15px}
.muted{color:var(--muted);font-size:13px;line-height:1.7}
.risk-badge{display:inline-block;border:1px solid #dce2dd;border-radius:4px;padding:3px 7px;font-size:11px;white-space:nowrap}
.risk-low{color:#236653;background:#edf5ef;border-color:#cbded0}
.risk-medium{color:#8a6725;background:#fbf4df;border-color:#ead8a7}
.risk-high{color:#9b3e38;background:#faece9;border-color:#ebc9c4}
.risk-unknown{color:#727c78;background:#f2f3f1}
 .risk-reasons{margin:12px 0 0;padding-left:20px;color:#6f7875;font-size:12px;line-height:1.8}
.eyebrow,.section-kicker{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--green)}
.eyebrow{margin-bottom:12px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:7px;min-height:40px;padding:10px 18px;font-weight:600;font-size:13px;white-space:nowrap;transition:background .15s}
.primary{background:var(--green);color:#fff}
.primary:hover{background:#174e3e}
.secondary{background:#fff;border-color:#dce2dd}
.secondary:hover{background:#f3f6f2}
.danger{background:#a44840;color:#fff}
.danger:hover{background:#893931}
.text-button{background:none;border:0;color:var(--green);padding:8px;font-size:12px;font-weight:600}
.text-button:hover{text-decoration:underline}
.boot{display:flex;min-height:100vh;align-items:center;justify-content:center;color:var(--muted)}
.dashboard{min-height:100vh}
.sidebar{width:224px;background:var(--dark);color:#fff;position:fixed;inset:0 auto 0 0;padding:37px 22px;display:flex;flex-direction:column;z-index:1}
.wordmark{display:flex;align-items:center;gap:12px;font-weight:700;font-size:27px;letter-spacing:2px}
.wordmark span{font-size:8px;font-weight:500;letter-spacing:1.8px;line-height:1.6;border-left:1px solid #ffffff35;padding-left:12px}
.workspace-label{font-size:10px;letter-spacing:2px;color:#819a92;margin:59px 14px 17px}
.sidebar nav{display:grid;gap:8px}
.side-link{border:0;background:transparent;color:#9cb0a9;display:flex;gap:13px;align-items:center;padding:14px;border-radius:7px;text-align:left;font-size:13px}
.side-link>span{font-size:20px;width:22px;font-weight:400}
.side-link.active{background:#2d4940;color:#e9ead4;box-shadow:inset 3px 0 #c5bd7f}
.side-link:hover{background:#294239;color:#fff}
.sidebar-bottom{margin-top:auto;padding:20px 10px 0;color:#b5c4bd;font-size:11px;line-height:1.9}
.sidebar-bottom p{color:#6f9284;font-size:10px;margin:4px 0 20px}
.sidebar-bottom a{color:#d2d8c8}
.environment-dot{display:inline-block;width:6px;height:6px;background:#afc99b;border-radius:50%;margin-right:7px}
.main-shell{margin-left:224px}
.topbar{height:78px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 40px;font-size:12px}
.breadcrumb{color:#8b9690}
.breadcrumb-separator{margin:0 16px;color:#c4ccc7}
.topbar strong{font-weight:500}
.topbar-actions{display:flex;gap:25px;align-items:center}
.session-indicator{color:#687b70;border-right:1px solid var(--line);padding-right:25px}
.session-indicator:before{content:"";display:inline-block;background:#669177;width:6px;height:6px;border-radius:50%;margin-right:7px}
main{max-width:1650px;margin:0 auto;padding:37px 40px 20px}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.page-heading .muted{margin-top:10px}
.sample-notice{display:flex;gap:12px;align-items:center;font-size:11px;line-height:1.8;color:#7d6c44;background:#f0ede1;border:1px solid #e9e2ce;border-radius:6px;padding:10px 15px;margin-bottom:24px}
.notice-tag{border:1px solid #cfc29c;padding:0 6px;border-radius:3px;white-space:nowrap;font-size:10px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}
.metric{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;position:relative;overflow:hidden}
.metric:first-child{background:#e7eee6;border-color:#d7e2d5}
.metric-label{color:#77827a;font-size:12px}
.metric-value{font-family:Inter,"Arial",sans-serif;font-weight:600;font-size:34px;line-height:1;margin:19px 0 12px;letter-spacing:-1px}
.metric-caption{color:#8c968d;font-size:10px}
.orders-panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 26px 22px}
.panel-heading h2{font-size:17px}
.panel-heading p{font-size:10px;margin-top:7px}
.count{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;background:#edf1ea;color:#657c61;margin-left:8px;border-radius:4px;min-width:24px;height:21px;padding:0 6px;vertical-align:middle}
.panel-caption{font-size:9px;letter-spacing:1.6px;color:#9da79e}
.filter-tabs{display:flex;padding:0 26px;gap:28px;border-bottom:1px solid var(--line);overflow-x:auto}
.filter-tab{padding:0 1px 15px;background:none;border:0;border-bottom:2px solid transparent;white-space:nowrap;font-size:12px;color:#889189}
.filter-tab.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}
.filter-bar{display:flex;align-items:center;gap:15px;padding:20px 26px}
.search-field{display:flex;align-items:center;gap:10px;flex:1;max-width:360px;background:#f9faf7;border:1px solid var(--line);border-radius:6px;padding:0 12px}
.search-field>span{font-size:23px;color:#859287}
.search-field input{background:none;border:0;width:100%;padding:10px 0;font-size:11px;min-width:0}
.status-field{display:flex;gap:9px;align-items:center;color:#889188;font-size:11px;margin-left:auto;white-space:nowrap}
select{border:1px solid var(--line);background:#fff;padding:9px 28px 9px 11px;border-radius:5px;color:#445549;font-size:11px;max-width:190px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
thead{background:#f8f9f6;color:#8a948b;font-size:10px}
th{font-weight:500;padding:13px 16px;border-block:1px solid var(--line)}
td{padding:20px 16px;border-bottom:1px solid #f0f2ee;font-size:12px}
th:first-child,td:first-child{padding-left:26px}
th:last-child,td:last-child{padding-right:26px}
tr:hover td{background:#fafbf8}
.numeric{text-align:right;font-variant-numeric:tabular-nums}
.order-id{font-weight:600;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.cell-secondary{font-size:10px;color:#9aa297;display:block;margin-top:8px}
.device-name{font-size:12px;font-weight:600}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:5px 8px;background:#edf0ed;color:#758074;font-size:10px;line-height:1.4}
.badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.badge-review{background:#f7efdc;color:#aa843a}
.badge-active{background:#e8efee;color:#4a7c75}
.badge-complete{background:#eaf1e6;color:#64854d}
.badge-ended{background:#f3e9e5;color:#aa7267}
.row-detail{border:0;background:none;color:var(--green);font-size:11px;font-weight:600;padding:8px 0}
.row-detail:hover{text-decoration:underline}
.table-footer{display:flex;justify-content:space-between;padding:17px 26px;font-size:10px;color:#97a08f}
.list-message{font-size:12px;color:#9b573e;padding:0 26px 14px;line-height:1.7}
.list-message:empty{display:none}
.empty-state{text-align:center;padding:55px 20px;color:#8c9688}
.empty-state>span{font-size:38px;color:#b7c3af}
.empty-state h3{margin:15px 0 8px;font-weight:500}
.empty-state p{font-size:12px}
.workspace-footer{display:flex;justify-content:space-between;color:#a5ad9d;font-size:10px;margin-top:23px;letter-spacing:.5px}
.workspace-footer span{letter-spacing:2px}
dialog{border:0;color:var(--ink);background:#fff;padding:0;box-shadow:0 25px 100px #10291d30}
dialog::backdrop{background:#152d29a6;backdrop-filter:blur(3px)}
.detail-dialog{width:min(720px,calc(100% - 30px));max-height:90vh;border-radius:12px}
.detail-header{display:flex;align-items:center;justify-content:space-between;padding:25px 28px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:1}
.detail-header h2{margin-top:8px}
.icon-button{border:1px solid var(--line);background:#fff;width:32px;height:32px;border-radius:50%;font-size:23px;color:#78887c}
.detail-content{padding:26px 28px}
.detail-summary{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px;align-items:center}
.detail-summary h3{font-size:22px}
.detail-summary p{font-size:12px;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}
.detail-section{padding-top:23px;border-top:1px solid var(--line);margin-top:23px}
.detail-section h3{margin-bottom:16px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0}
.detail-grid dt{font-size:11px;color:#8b958a;margin-bottom:7px}
.detail-grid dd{font-size:13px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6}
.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}
.detail-caution{font-size:11px;line-height:1.8;color:#9b8458;background:#f6f2e8;padding:11px 13px;border-radius:5px;margin-top:15px}
.history{list-style:none;margin:0;padding:0}
.history li{padding:0 0 22px 20px;border-left:1px solid #dce5d9;position:relative;margin-left:4px}
.history li:before{content:"";position:absolute;left:-4px;top:4px;background:#8ca57f;width:7px;height:7px;border-radius:50%}
.history li:last-child{padding-bottom:0;border-color:transparent}
.history strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.history p{font-size:11px;color:#84917f;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}
.confirm-dialog{border-radius:12px;padding:28px;width:min(470px,calc(100% - 30px));max-height:90vh}
.confirm-dialog h2{margin:10px 0 15px}
.confirm-dialog p{font-size:13px;line-height:1.8}
.confirm-dialog label,.login-form label{display:block;font-size:12px;margin:20px 0 9px}
.confirm-dialog input,.confirm-dialog textarea,.login-form input{border:1px solid #dce3d8;background:#fbfcf9;border-radius:6px;padding:12px;width:100%;color:var(--ink)}
textarea{resize:vertical}
.confirm-dialog .field-help{font-size:11px;color:#8b967f;margin-top:8px}
.confirm-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.form-error{font-size:12px;color:#ac493f;line-height:1.6;margin-top:10px;min-height:16px}
.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#193b30;color:white;border:1px solid #ffffff30;border-radius:7px;box-shadow:0 8px 30px #0f2b3420;padding:14px 23px;font-size:13px;z-index:10;max-width:90%;line-height:1.6}
.login-view{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.login-story{background:var(--dark);color:#e9eedf;padding:50px 11%;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start}
.login-story:after{content:"↻";position:absolute;font-size:520px;line-height:1;right:-140px;bottom:0;color:#b4c29e0a;pointer-events:none}
.login-story .eyebrow{margin-top:auto;padding-top:100px;color:#a9b994;font-size:10px;line-height:2}
.login-story h1{margin-top:auto;padding-top:100px;font-size:clamp(28px,3.6vw,52px);line-height:1.6;letter-spacing:-1.5px;font-weight:500}
.login-story>p:not(.eyebrow){font-size:14px;line-height:2.1;color:#95ad9f;margin-top:25px}
.story-footer{margin-top:auto;padding-top:120px;font-size:11px;color:#789384;letter-spacing:1px}
.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}
.login-form{max-width:350px;width:100%}
.login-form h2{font-size:28px;margin:18px 0 14px}
.login-form>p{font-size:13px;line-height:1.8;color:#84917d}
.login-form label{margin-top:36px}
.login-form .button{width:100%;margin-top:10px;justify-content:space-between;min-height:46px}
.login-form .login-note{font-size:10px;margin-top:25px;color:#9aa48e}
.login-form .form-error{color:#ac493f}
@media(min-width:1600px){.sidebar{width:250px}
.main-shell{margin-left:250px}
main{padding-top:44px}
.metric{padding:26px}
.metric-value{font-size:39px}
td{padding-top:24px;padding-bottom:24px}
}
@media(max-width:1100px){.sidebar{width:190px;padding-inline:16px}
.main-shell{margin-left:190px}
main{padding:28px 24px}
.topbar{padding-inline:24px}
.metrics{gap:12px}
.metric{padding:18px}
.filter-tabs{gap:21px}
.filter-bar{flex-wrap:wrap;gap:10px}
.search-field{max-width:none;min-width:200px}
.status-field{margin-left:0}
.panel-caption{display:none}
}
@media(max-width:760px){.sidebar{width:100%;position:static;padding:18px 20px;display:block}
.sidebar .wordmark{font-size:23px}
.workspace-label,.sidebar-bottom{display:none}
.sidebar nav{display:flex;margin-top:17px;gap:8px}
.side-link{flex:1;justify-content:center;padding:9px 5px;font-size:11px}
.side-link>span{font-size:16px;width:auto}
.side-link.active{box-shadow:inset 0 -2px #c5bd7f}
.main-shell{margin-left:0}
.topbar{height:56px;padding:0 20px;font-size:11px}
.topbar-actions{gap:7px}
.session-indicator{padding-right:10px;font-size:10px}
.breadcrumb-separator{margin-inline:8px}
main{padding:26px 16px}
.page-heading h1{font-size:25px}
.page-heading .muted{font-size:11px}
.page-heading .button{font-size:11px;padding:9px 11px}
.eyebrow{font-size:8px;letter-spacing:1.5px}
.sample-notice{font-size:10px;padding:10px;align-items:flex-start}
.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.metric{padding:17px}
.metric-value{font-size:30px;margin-block:15px 10px}
.metric-label{font-size:11px}
.metric-caption{font-size:9px}
.panel-heading{padding:20px}
.filter-tabs{padding:0 20px;gap:24px}
.filter-bar{padding:17px 20px}
.search-field{flex-basis:100%;max-width:100%}
.status-field{flex:1}
.status-field select{flex:1;max-width:none}
td{padding-block:18px}
.table-footer{padding:15px 20px;flex-wrap:wrap;gap:10px}
.workspace-footer span{letter-spacing:0}
.login-view{grid-template-columns:1fr}
.login-story{padding:25px 30px 30px}
.login-story .eyebrow{padding-top:32px;margin-top:0}
.login-story h1{font-size:30px;margin-top:32px;padding-top:0}
.login-story>p:not(.eyebrow),.story-footer{display:none}
.login-form-wrap{padding:38px 28px 50px}
.login-form h2{font-size:25px}
.detail-header{padding:20px}
.detail-content{padding:20px}
.detail-summary{align-items:flex-start}
.detail-summary h3{font-size:20px}
.detail-grid{gap:17px}
.confirm-dialog{padding:24px}
.detail-actions .button{flex:1}
.workspace-footer{font-size:9px}
.filter-tab{font-size:11px}
}


/* Shared enterprise workspace: keep existing class and state semantics. */
:root {
  --ink: #25344b;
  --muted: #718096;
  --line: #e4eaf2;
  --paper: #f3f5f9;
  --green: #2563eb;
  --dark: #12233f;
  --gold: #d59b32;
  --red: #cf3e49;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
body { background: var(--paper); line-height: 1.5; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: 0; }
h2 { font-size: 17px; letter-spacing: 0; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #93b8ff; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93b8ff; outline-offset: 1px; border-color: #5688ec; }
button:disabled { cursor: not-allowed; opacity: .5; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 224px; padding: 28px 16px 20px;
  display: flex; flex-direction: column; gap: 0; overflow-y: auto;
  background: var(--dark); color: #fff; z-index: 3;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.wordmark span { margin-left: 0; padding-left: 9px; border-left: 1px solid #ffffff30; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #b4c4df; }
.sidebar .wordmark { padding: 0 10px 24px; border-bottom: 1px solid #ffffff12; }
.workspace-label, .nav-caption { margin: 25px 12px 12px; font-size: 11px; letter-spacing: 1px; color: #849bbd; }
.sidebar nav { display: grid; gap: 6px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 11px 14px; border: 0; border-radius: 6px; color: #c0cee4; background: transparent; text-align: left; font-size: 13px; line-height: 1.6; text-decoration: none; }
.side-link > span { width: 20px; font-size: 18px; }
.side-link:hover { color: #fff; background: #1d3558; text-decoration: none; }
.side-link.active { color: #fff; background: #2563eb; font-weight: 600; box-shadow: none; }
.sidebar-bottom, .sidebar-foot { margin-top: auto; padding: 30px 12px 0; color: #b4c4df; font-size: 11px; line-height: 1.9; }
.sidebar-bottom p, .sidebar-foot p { color: #849bbd; font-size: 11px; margin: 5px 0 14px; }
.sidebar-bottom a, .sidebar-foot a { display: inline-block; margin-top: 0; color: #d5e3fb; }
.environment-dot, .dot { background: #5bdbb3; }
.main-shell { margin-left: 224px; min-width: 0; }
.topbar { height: 68px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; gap: 16px; }
.topbar strong { color: var(--ink); font-weight: 600; }
.topbar a, .text-button { color: var(--green); }
.topbar-actions { gap: 18px; }
.session-indicator { color: #62748f; padding-right: 18px; }
.session-indicator:before { background: #22a47d; }
.breadcrumb { color: var(--muted); }
.breadcrumb-separator { color: #c5cfdd; }
main { max-width: 1680px; margin: 0 auto; padding: 28px 32px 24px; }
.page-heading { margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-heading .muted { margin-top: 7px; font-size: 13px; }
.eyebrow, .section-kicker { color: #5275aa; letter-spacing: 1px; }
.button { min-height: 36px; padding: 8px 15px; border-radius: 5px; font-size: 13px; gap: 8px; transition: background .15s, border-color .15s; }
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.secondary { background: #fff; border-color: #d6dfeb; color: #405370; }
.secondary:hover { background: #edf4ff; border-color: #b9cef2; }
.danger { background: var(--red); border-color: var(--red); color: #fff; }
.danger:hover { background: #b72f3a; }
.notice, .sample-notice { margin-bottom: 20px; padding: 11px 15px; border: 1px solid #d8e6fc; border-radius: 6px; background: #edf4ff; color: #526c93; font-size: 12px; line-height: 1.8; }
.notice strong { color: #315f9f; }
.notice-tag { border-color: #b9cff1; color: #315f9f; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric, .metric:first-child { position: relative; overflow: hidden; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 5px #19365f03; }
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #3478f6; }
.metric:nth-child(2)::before { background: #e3a240; }
.metric:nth-child(3)::before { background: #6b7ee8; }
.metric:nth-child(4)::before { background: #27a786; }
.metric-label { color: #64748b; font-size: 13px; }
.metric-value { color: #233957; font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; margin: 15px 0 9px; letter-spacing: -.5px; }
.metric-caption { color: #8190a5; font-size: 11px; }
.orders-panel, .panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 2px 5px #19365f03; }
.panel-heading { padding: 20px; gap: 16px; flex-wrap: wrap; }
.panel-heading h2 { font-size: 17px; }
.panel-heading p { font-size: 12px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; margin-left: 6px; background: #edf3ff; color: #356ac6; font-size: 11px; font-weight: 500; border-radius: 4px; }
.filter-tabs { padding: 0 20px; gap: 25px; scrollbar-width: thin; }
.filter-tab { padding-bottom: 13px; font-size: 13px; color: #75839a; }
.filter-tab.active { color: var(--green); border-bottom-color: var(--green); }
.filter-bar { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
.search-field { background: #fff; border-color: #d6dfeb; }
.search-field > span { color: #899bb4; }
.search-field input { font-size: 12px; padding: 9px 0; }
.status-field { color: #64748b; font-size: 12px; }
input, select, textarea { border-color: #d6dfeb; border-radius: 5px; color: var(--ink); }
select { color: #405370; font-size: 12px; }
.confirm-dialog input, .confirm-dialog textarea, .login-form input { background: #fff; border-color: #d6dfeb; }
.table-scroll { max-width: 100%; overflow: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
thead, th { background: #f5f7fb; color: #65758f; }
th { padding: 12px 16px; font-size: 12px; font-weight: 600; border-block: 1px solid var(--line); }
td { padding: 13px 16px; border-bottom: 1px solid #edf0f5; color: #40516b; font-size: 12px; line-height: 1.65; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tr:hover td { background: #f7faff; }
.numeric { font-variant-numeric: tabular-nums; }
.order-id, .device-name, td strong { color: #2e4261; font-size: 12px; }
.cell-secondary, td small { margin-top: 5px; color: #8190a5; font-size: 11px; }
.row-detail { color: var(--green); font-size: 12px; }
.badge, .risk-badge { border-radius: 4px; font-size: 11px; padding: 3px 7px; white-space: nowrap; line-height: 1.5; }
.badge { background: #edf3fd; color: #346cbd; }
.badge-review, .badge.pending, .badge.open, .risk-medium { background: #fff5df; color: #956411; border-color: #f0d79e; }
.badge-active { background: #edf3ff; color: #356ac6; }
.badge-complete, .badge.paid, .badge.replied, .risk-low { background: #e8f7f0; color: #18815d; border-color: #bce5d2; }
.badge-ended, .badge.rejected, .risk-high { background: #fff0f0; color: #bd3e4b; border-color: #f0c5ca; }
.risk-unknown { background: #f1f4f8; color: #748398; border-color: #dce3ed; }
.table-footer { padding: 15px 20px; gap: 12px; flex-wrap: wrap; color: #8190a5; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fff; color: #718096; font-size: 12px; }
.pagination button, .pagination a { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 32px; padding: 5px 10px; border: 1px solid #d6dfeb; border-radius: 4px; background: #fff; color: #405370; font-size: 12px; text-decoration: none; }
.pagination button:hover:not(:disabled), .pagination a:hover { background: #edf4ff; border-color: #8db3f5; color: #2563eb; }
.pagination .active, .pagination [aria-current="page"] { color: #fff; background: #2563eb; border-color: #2563eb; }
.pagination select { width: auto; min-width: 80px; min-height: 32px; margin: 0; padding: 5px 8px; }
.pagination input { width: 58px; min-height: 32px; margin: 0; padding: 5px 8px; }
#export-orders { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 15px; border: 1px solid #b9cff1; border-radius: 5px; background: #edf4ff; color: #2563eb; font-size: 13px; font-weight: 600; white-space: nowrap; }
#export-orders:hover:not(:disabled) { background: #dfeaff; border-color: #8db3f5; }
.empty, .empty-state { padding: 48px 20px; color: #8190a5; }
.empty-state > span { color: #adbed8; }
.workspace-footer, .page-footer { color: #8a98ad; font-size: 11px; }
.catalog-row, .ticket-context { background: #f6f8fc; border-color: var(--line); }
.ticket-reply { background: #edf4ff; }
.config-section { padding: 22px; }
.save-bar { background: #fff; border-color: #d8e3f2; box-shadow: 0 -4px 20px #142f5510; }
.detail-caution { background: #fff7e7; color: #8b6c35; }
.detail-grid dt, .history p, .risk-reasons { color: #75839a; }
.history li { border-left-color: #d6e2f3; }
.history li:before { background: #5f91e3; }
dialog { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 90px #0f254a33; }
dialog::backdrop { background: #10213f99; backdrop-filter: blur(2px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 5px; background: #f5f7fb; color: #6c7d96; }
.toast { background: #17365f; border-color: #ffffff20; box-shadow: 0 8px 30px #112d5426; }
.login-story { background: linear-gradient(145deg, #12233f, #173f7b); color: #fff; }
.login-story > p:not(.eyebrow), .story-footer { color: #adbfdd; }
.login-form-wrap { background: #fff; }
.login-form > p, .login-form .login-note { color: #7a89a0; }
.login-form .form-error, .form-error { color: var(--red); }
@media (min-width: 1600px) {
  .sidebar { width: 224px; }
  .main-shell { margin-left: 224px; }
  main { padding-top: 32px; }
  .metric { padding: 22px; }
  .metric-value { font-size: 34px; }
  td { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 1100px) {
  .sidebar { width: 200px; padding-inline: 12px; }
  .main-shell { margin-left: 200px; }
  main { padding: 24px; }
  .topbar { padding-inline: 24px; }
  .metrics { gap: 12px; }
  .metric { padding: 17px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 18px 16px 12px; overflow: visible; display: flex; }
  .sidebar .wordmark { padding: 0 0 14px; font-size: 23px; }
  .workspace-label, .nav-caption { display: block; margin: 13px 0 8px; font-size: 10px; }
  .sidebar nav { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; margin-top: 0; padding-bottom: 4px; }
  .side-link { flex: 0 0 auto; width: auto; min-height: 40px; justify-content: center; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
  .side-link.active { box-shadow: none; }
  .side-link > span { width: auto; }
  .sidebar-bottom, .sidebar-foot { display: block; margin-top: 10px; padding: 8px 0 0; border-top: 1px solid #ffffff12; font-size: 10px; }
  .sidebar-bottom p, .sidebar-foot p { display: inline; margin: 0 10px; font-size: 10px; }
  .sidebar-bottom a, .sidebar-foot a { display: inline-block; padding: 4px 0; }
  .main-shell { margin-left: 0; }
  .topbar { height: auto; min-height: 56px; padding: 12px 16px; flex-wrap: wrap; font-size: 11px; gap: 8px; }
  .topbar-actions { gap: 8px; }
  .session-indicator { padding-right: 10px; font-size: 11px; }
  main { padding: 22px 14px; }
  h1, .page-heading h1 { font-size: 23px; }
  .page-heading { gap: 12px; }
  .page-heading .muted { font-size: 12px; }
  .page-heading .button, #export-orders { min-height: 36px; font-size: 12px; padding: 8px 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 16px; }
  .metric-label { font-size: 12px; }
  .metric-value { font-size: 28px; margin-block: 13px 8px; }
  .metric-caption { font-size: 10px; }
  .panel-heading, .config-section { padding: 16px; }
  .filter-tabs { padding-inline: 16px; gap: 22px; }
  .filter-tab { font-size: 12px; }
  .filter-bar { padding: 14px 16px; }
  .status-field { flex: 1; }
  .search-field { min-width: 0; flex-basis: 100%; }
  .table-footer, .pagination { padding: 13px 16px; }
  .pagination { justify-content: flex-start; }
  .pagination button, .pagination a { min-height: 36px; min-width: 36px; }
  .search-label { min-width: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .full { grid-column: 1 / -1; }
  .catalog-row { grid-template-columns: 1fr 1fr; }
  .save-bar { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .detail-summary { flex-wrap: wrap; }
  .detail-actions .button { min-width: 120px; }
  .detail-header, .detail-content { padding: 18px; }
  .login-story > p:not(.eyebrow), .story-footer { display: block; }
  .login-story > p:not(.eyebrow) { margin-top: 12px; font-size: 13px; }
  .story-footer { padding-top: 22px; font-size: 10px; }
}
@media (max-width: 420px) {
  .catalog-row, .detail-grid { grid-template-columns: 1fr; }
  .catalog-row .remove-model { grid-column: 1; }
  .confirm-buttons, .dialog-buttons { flex-wrap: wrap; }
  .confirm-buttons .button, .dialog-buttons .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
