
body{background:#f1f4f6;--bg:#f1f4f6;--paper:#ffffff;--line:#dce3e9;--ink:#283b4b;--muted:#647485}.system-top{background:#fff;border-bottom:1px solid #dce3e9;padding:10px 3%;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:11px}.system-top a{color:var(--accent)}.system-layout{display:grid;grid-template-columns:225px 1fr;min-height:calc(100vh - 42px)}.system-sidebar{background:#183342;color:#eaf1f4;padding:25px 17px;display:flex;flex-direction:column;gap:22px}.system-brand{padding:0 12px;font-size:20px;font-weight:700}.system-brand small{display:block;font-size:9px;letter-spacing:2px;color:#a9c0cc;font-weight:400;margin-top:4px}.system-switch{background:#254655;color:#eaf1f4;border-color:#42616f;font-size:11px;padding:10px}.module-nav{display:grid;gap:6px}.module-tab{display:flex;align-items:center;gap:12px;background:transparent;border:0;color:#bfd0d8;padding:13px;text-align:left;border-radius:6px;font-size:13px}.module-tab[aria-selected=true]{background:#f4f7f9;color:#203c4b;font-weight:700}.module-tab span:first-child{font-size:10px;opacity:.7}.sidebar-note{margin-top:auto;font-size:10px;color:#b6cbd4;padding:12px;line-height:1.9}.system-main{min-width:0;padding:27px 32px 36px;max-width:1540px;width:100%}.system-header{display:flex;justify-content:space-between;gap:25px;align-items:start}.system-header h1{font-size:27px;margin:6px 0 9px;letter-spacing:-.5px;line-height:1.5}.system-header p{font-size:12px;color:var(--muted);max-width:740px;margin:0}.system-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;min-width:190px}.system-actions .btn{padding:8px 12px;font-size:11px;background:white}.system-actions .role{width:150px;font-size:11px;padding:8px}.system-limits{margin:20px 0;background:#e9eef3;border-left:3px solid var(--accent);padding:11px 14px;font-size:11px;color:#566b7a}.system-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.metric{border:1px solid var(--line);border-radius:9px;background:#fff;padding:17px 20px}.metric span{font-size:11px;color:var(--muted);display:block}.metric b{font-size:25px;display:block;margin-top:5px;font-weight:650;line-height:1.5;color:var(--accent);overflow-wrap:anywhere}.metric small{font-size:10px;color:var(--muted)}.system-feedback{font-size:12px;padding:12px 15px;border-radius:6px;margin:15px 0;background:#e6f1e7;color:#375e3b;border:1px solid #bed5c1}.system-feedback.error{background:#f9e8eb;border-color:#e4b9c1;color:#973e4a}.module-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:25px 0 16px}.module-heading h2{font-size:21px;margin:0}.module-heading span{font-size:10px;color:var(--muted)}.system-content{display:grid;grid-template-columns:1fr;gap:18px}.system-two{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.3fr);gap:18px;align-items:start}.sys-panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.sys-panel-head{padding:14px 19px;border-bottom:1px solid var(--line);font-size:13px;font-weight:700;display:flex;justify-content:space-between;gap:15px;align-items:center}.sys-panel-head small{font-size:10px;color:var(--muted);font-weight:400}.sys-panel-body{padding:19px}.sys-panel-body form{margin-bottom:5px}.sys-panel-body .field{margin-bottom:13px}.sys-panel-body .field label{font-size:11px}.sys-panel-body .field input,.sys-panel-body .field select{font-size:12px;padding:10px;background:#f8fafb}.sys-panel-body form .btn{font-size:12px;margin-top:6px}.sys-panel-body p{font-size:12px;color:var(--muted)}.sys-table{width:100%;border-collapse:collapse;font-size:12px}.sys-table th{font-size:10px;color:var(--muted);background:#f6f8fa;white-space:nowrap}.sys-table td,.sys-table th{padding:12px 13px;text-align:left;border-bottom:1px solid #e5eaef}.sys-table td{white-space:pre-line;line-height:1.7}.sys-table tbody tr:last-child td{border-bottom:0}.sys-table .low{color:#a34a3b;font-weight:650}.sys-empty{padding:28px 20px;color:var(--muted);font-size:12px;text-align:center}.sys-tag{font-size:10px;padding:3px 8px;border-radius:20px;background:var(--soft);color:var(--accent);display:inline-block}.sys-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.sys-card{border:1px solid #d7e1e8;border-radius:7px;background:#f7fafb;padding:15px}.sys-card strong{display:block;font-size:14px;margin-bottom:7px}.sys-card p{font-size:11px;color:var(--muted);margin:5px 0}.sys-card .occupied{color:#9d5347}.sys-chart{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}.sys-stage{flex:1;min-width:120px;border:1px solid var(--line);border-radius:7px;padding:14px;background:#f7f9fb;font-size:12px}.sys-stage.active{background:var(--soft);border-color:var(--accent)}.sys-stage small{font-size:10px;display:block;color:var(--muted);margin-top:6px}.sys-report{white-space:pre-line;font-size:13px;line-height:2;background:var(--soft);border-left:3px solid var(--accent);padding:16px 18px;border-radius:4px}.sys-tasks{display:flex;gap:7px;flex-wrap:wrap;padding:14px 0 3px}.sys-tasks span{font-size:10px;padding:3px 8px;background:white;border:1px solid var(--line);border-radius:20px;color:var(--muted)}.sys-footer{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:18px;margin-top:30px}.sys-footer a{color:var(--accent)}.vision-stage{position:relative;height:210px;display:grid;place-items:center;background:#e5eaf0;border-radius:7px;overflow:hidden;margin-bottom:16px}.vision-stage .part{height:130px;width:55px;border-radius:8px;background:repeating-linear-gradient(#7d8b98 0 5px,#a7b3be 6px 10px);transform:rotate(30deg)}.vision-stage .bbox{position:absolute;left:37%;top:15%;width:26%;height:72%;border:2px solid #aa5b47}.vision-stage small{position:absolute;bottom:8px;left:12px;font-size:10px;color:#4d6274}.system-theme-warm{--accent:#86644a}.system-theme-warm .system-sidebar{background:#3d3934}.system-theme-green .system-sidebar{background:#253d34}.system-theme-plum .system-sidebar{background:#3b3040}@media(max-width:1150px){.system-layout{grid-template-columns:190px 1fr}.system-main{padding:23px}.system-two{grid-template-columns:1fr}.system-header{flex-direction:column;gap:14px}.system-actions{justify-content:flex-start}.metric b{font-size:23px}}@media(max-width:720px){.system-layout{grid-template-columns:1fr}.system-sidebar{padding:17px;gap:14px}.system-brand{padding:0;font-size:18px}.system-brand small{display:inline;margin-left:12px}.sidebar-note{display:none}.system-switch{max-width:100%}.module-nav{display:flex;overflow-x:auto;gap:5px}.module-tab{white-space:nowrap;padding:10px;font-size:11px;gap:6px}.system-main{padding:20px 4%}.system-top{font-size:9px;gap:8px}.system-header h1{font-size:24px}.system-metrics{gap:9px}.metric{padding:12px}.metric b{font-size:20px}.metric span{font-size:10px}.sys-card-grid{grid-template-columns:1fr 1fr}.sys-panel-body{padding:17px}.sys-footer{flex-direction:column;gap:5px}}@media(max-width:430px){.system-metrics{grid-template-columns:1fr}.metric{display:flex;align-items:center;justify-content:space-between;gap:15px}.metric b{margin:0;font-size:22px}.sys-card-grid{grid-template-columns:1fr}}@media print{.system-top,.system-sidebar,.system-actions,.system-limits,.system-metrics,.sys-tasks,.sys-footer,.sys-panel:has(form){display:none!important}.system-layout{display:block}.system-main{padding:0}.system-header h1{font-size:20px}body{background:white}.sys-panel{break-inside:avoid}.sys-table td{padding:6px}.system-feedback{display:none}}

/* T0046 B4: grid item min-width:auto let the nowrap module tabs widen the sidebar past 375px on phones (sys-vision/assistant/leasing/receipts/manufacturing). */
.system-sidebar{min-width:0}
