@font-face{font-family:Morabba;src:url('/MorabbaVF.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--ink:#17383d;--muted:#738388;--accent:#19796e;--accent-light:#e5f3ee;--paper:#f5f7f7;--line:#e3e9e8;--sidebar:#102b30;--danger:#b74c4c;--gold:#ac813e;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Morabba,Tahoma,sans-serif;font-size:14px;line-height:1.8}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #78c7b4;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.skip-link{position:fixed;top:-100px;right:20px;z-index:999;background:white;padding:10px}.skip-link:focus{top:10px}.erp-shell{min-height:100vh}.erp-sidebar{position:fixed;right:0;top:0;bottom:0;width:248px;background:var(--sidebar);color:#e7efed;padding:30px 18px 0;display:flex;flex-direction:column;z-index:60;overflow-y:auto}.erp-brand{display:flex;align-items:center;gap:11px;margin:0 14px 35px;font-size:25px;font-weight:800;line-height:1.3}.erp-brand svg{width:37px;height:37px;color:#79c8ad;stroke:none}.erp-brand small{display:block;font-size:10px;font-weight:400;color:#94abae;letter-spacing:.15px;margin-top:7px}.sidebar-caption,.nav-label{font-size:10px;letter-spacing:.2px;color:#789498;padding:0 14px;margin-bottom:8px}.nav-label{margin-top:23px}.erp-sidebar nav{padding-bottom:24px}.erp-sidebar nav button{display:flex;align-items:center;gap:11px;background:none;border:0;color:#b7cbcd;width:100%;text-align:right;padding:11px 14px;border-radius:8px;font-size:12px;min-height:43px;margin:3px 0;transition:background .18s,color .18s}.erp-sidebar nav button:hover{background:#1b3b40;color:white}.erp-sidebar nav button.active{background:#274c4d;color:#c2f1d9;box-shadow:inset -3px 0 #91d9b8}.erp-sidebar nav button svg{width:18px;height:18px;opacity:.9}.sidebar-bottom{margin-top:auto;padding:20px 5px;border-top:1px solid #294248;display:flex;gap:10px;align-items:center;font-size:10px}.sidebar-bottom small{display:block;color:#7f9ba0;font-size:8px}.workspace-avatar,.profile-avatar{display:grid;place-items:center;background:#27494d;border-radius:10px;width:34px;height:34px;font-weight:700;flex-shrink:0}.connection-dot,.live-dot{display:inline-block;width:6px;height:6px;background:#80c7a6;border-radius:50%;flex-shrink:0}.connection-dot{margin-right:auto}.erp-main{margin-right:248px}.erp-header{height:85px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;gap:20px;background:#ffffffa8}.header-start,.header-end{display:flex;align-items:center;gap:20px}.breadcrumb{font-size:11px;color:var(--muted);display:flex;gap:13px;white-space:nowrap}.breadcrumb strong{font-weight:500;color:var(--ink)}.erp-search{display:flex;align-items:center;gap:9px;color:#8b999c;max-width:240px}.erp-search svg{width:17px}.erp-search input{width:100%;border:none;background:transparent;font-size:11px;outline:none;color:var(--ink);padding:8px 0}.demo-label{font-size:9px;padding:3px 9px;border:1px solid #d6e2dc;border-radius:4px;color:#658277;white-space:nowrap}.profile-avatar{background:#e3ede8;color:#3a7461;border-radius:50%}.erp-page-heading{padding:37px 40px 27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:10px;color:var(--accent);margin:0 0 8px}h1{font-size:28px;font-weight:750;line-height:1.4;letter-spacing:-.9px;margin:0}#erp-page-subtitle{font-size:12px;color:var(--muted);margin:10px 0 0}.page-heading-meta{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;white-space:nowrap}#erp-view{padding:0 40px 35px;min-height:65vh;outline:none}.erp-footer{border-top:1px solid var(--line);margin:0 40px;padding:18px 0 24px;display:flex;justify-content:space-between;gap:16px;font-size:9px;color:#93a0a1}.erp-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.erp-card h2,.erp-card h3{margin:0 0 12px;font-size:16px;font-weight:650}.erp-grid{display:grid;gap:20px}.erp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.erp-stat{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}.erp-stat>span,.stat-label,.erp-stat-label{font-size:11px;color:var(--muted)}.erp-stat strong,.stat-value,.erp-stat-value{display:block;font-size:28px;line-height:1.4;margin:14px 0 9px;font-weight:700;letter-spacing:-1px}.erp-stat small,.stat-note{font-size:10px;color:var(--muted)}.erp-stat .positive,.positive{color:var(--accent)}.negative{color:var(--danger)}.stat-icon{width:32px;height:32px;display:grid;place-items:center;background:#f1f7f3;border-radius:8px;color:var(--accent)}.erp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;flex-wrap:wrap}.erp-toolbar h2{margin:0}.erp-toolbar-actions,.erp-actions,.form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.erp-button,button.primary,button.subtle{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbe4e1;padding:8px 15px;min-height:39px;color:var(--ink);background:white;border-radius:7px;font-size:11px;font-weight:550;line-height:1.6}.erp-button:hover{background:#f1f5f3}.erp-button.primary,button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.erp-button.primary:hover{background:#126257}.erp-button.subtle,button.subtle{background:transparent;border-color:transparent;color:var(--accent)}.erp-button.danger{color:var(--danger);border-color:#eed5d5}.erp-button.small{font-size:10px;min-height:30px;padding:5px 10px}.erp-button svg{width:16px;height:16px}.icon-button{border:0;background:transparent;color:inherit;display:grid;place-items:center;width:36px;height:36px;border-radius:6px}.icon-button:hover{background:#e5eeea}.menu-toggle{display:none}.erp-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.erp-card .erp-table-wrap{border:0;border-radius:0;margin-top:8px}.erp-table{border-collapse:collapse;width:100%;text-align:right;white-space:nowrap;font-size:11px}.erp-table th{background:#f8faf9;color:#7c8c8d;font-size:10px;font-weight:500;padding:14px 16px;border-bottom:1px solid var(--line)}.erp-table td{padding:17px 16px;border-bottom:1px solid #eff2f1}.erp-table tr:last-child td{border-bottom:0}.erp-table tbody tr:hover{background:#fafcfb}.erp-table td small{display:block;font-size:9px;color:var(--muted)}.erp-table td strong{font-weight:600}.erp-badge,.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:5px;font-size:9px;line-height:1.7;background:#eff2f2;color:#657a7e;white-space:nowrap}.erp-badge.success,.erp-badge.approved,.erp-badge.active,.badge.success,.status-success{color:#28785d;background:#e9f5ee}.erp-badge.warning,.erp-badge.pending,.badge.warning,.status-warning{color:#9b722b;background:#faf2e1}.erp-badge.danger,.erp-badge.failed,.badge.danger,.status-danger{color:#b25252;background:#faeceb}.erp-badge.info,.erp-badge.progress,.badge.info{color:#42799c;background:#eaf3f9}.erp-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-size:11px}.erp-field label{color:#556f71}.erp-field input,.erp-field select,.erp-field textarea,.erp-form input,.erp-form select,.erp-form textarea{border:1px solid #dce5e2;border-radius:7px;padding:10px 12px;width:100%;background:white;color:var(--ink);min-height:42px}.erp-field textarea{min-height:100px;resize:vertical}.erp-field small{color:var(--muted);font-size:10px}.erp-form{margin-top:20px}.erp-form .form-actions{border-top:1px solid var(--line);padding-top:20px;margin-top:10px}.erp-modal{border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);max-width:600px;width:calc(100% - 32px);padding:28px;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #102b3033}.erp-modal::backdrop{background:#102b3077;backdrop-filter:blur(4px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;gap:15px}.modal-heading h2{font-size:19px;margin:0}.erp-toast{position:fixed;bottom:24px;left:24px;z-index:100;background:var(--sidebar);color:white;padding:12px 22px;border-radius:9px;box-shadow:0 5px 25px #17383d20;max-width:calc(100% - 48px);font-size:12px;display:none}.erp-toast.show{display:block}.muted,.text-muted{color:var(--muted)}.text-small{font-size:11px}.section-gap{margin-top:24px}.mt-20{margin-top:20px}.empty-state{text-align:center;padding:50px 20px;color:var(--muted)}.loading-state{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.loading-line{height:3px;width:120px;background:linear-gradient(90deg,#e6ede9,#19796e,#e6ede9);border-radius:4px}.erp-chart{height:210px;display:flex;align-items:end;gap:14px;padding:20px 5px 0;border-bottom:1px solid var(--line)}.chart-bar{flex:1;background:#2d8577;border-radius:5px 5px 0 0;min-height:4px}.progress-track{height:6px;background:#edf2ef;overflow:hidden;border-radius:4px}.progress-fill{height:100%;background:#448f7e;border-radius:4px}.activity-item{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:12px}.activity-item:last-child{border-bottom:0}.activity-item small{display:block;color:var(--muted);font-size:10px}.erp-note{padding:13px 16px;background:#eff5f1;border-right:3px solid #75a58d;color:#638071;font-size:11px;margin:20px 0}.chart-legend{display:flex;gap:16px;font-size:10px;color:var(--muted)}.chart-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#19796e;margin-left:5px}[hidden]{display:none!important}
@media(min-width:1600px){#erp-view,.erp-page-heading,.erp-header{padding-right:60px;padding-left:60px}.erp-footer{margin-right:60px;margin-left:60px}.erp-grid{gap:24px}.erp-stat{padding:28px}}
@media(max-width:1150px){.erp-sidebar{width:220px;padding-left:12px;padding-right:12px}.erp-main{margin-right:220px}.erp-header{padding:0 25px}.erp-page-heading{padding:30px 25px 25px}#erp-view{padding:0 25px 30px}.erp-footer{margin:0 25px}.erp-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.header-end{gap:12px}.breadcrumb strong{display:none}.erp-search{max-width:190px}}
@media(max-width:800px){.erp-sidebar{transform:translateX(100%);transition:transform .25s ease;width:248px;box-shadow:-10px 0 60px #102b3040}.erp-sidebar.mobile-open{transform:translateX(0)}.erp-main{margin-right:0}.erp-header{height:70px;padding:0 20px;position:sticky;top:0;z-index:40;background:#f8faf9f5;backdrop-filter:blur(12px)}.menu-toggle{display:grid}.header-start{gap:8px}.erp-search{max-width:190px}.breadcrumb{display:none}.erp-page-heading{padding:28px 20px 24px}#erp-view{padding:0 20px 28px}.erp-footer{margin:0 20px}.erp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading-meta{display:none}h1{font-size:25px}.erp-modal{padding:20px}}
@media(max-width:520px){.erp-grid-2,.erp-grid-3{grid-template-columns:1fr}.erp-grid{gap:12px}.erp-grid-4{gap:10px}.erp-stat{padding:16px}.erp-stat strong,.stat-value,.erp-stat-value{font-size:23px}.erp-stat>span,.stat-label{font-size:10px}.erp-card{padding:18px;border-radius:10px}.erp-header{padding:0 14px;gap:8px}.header-end{gap:10px;flex:1;justify-content:flex-end}.erp-search{max-width:160px}.erp-search input{font-size:10px}.demo-label{font-size:8px;padding:2px 6px}.profile-avatar{display:none}.erp-page-heading{padding:25px 16px 22px}#erp-view{padding:0 16px 25px}.erp-footer{margin:0 16px;flex-direction:column;gap:3px;font-size:8px}.erp-toolbar{gap:12px;align-items:flex-start}.erp-toolbar-actions{width:100%}.erp-table td,.erp-table th{padding:12px}.erp-toolbar h2{font-size:15px}#erp-page-subtitle{font-size:11px}.erp-button{min-height:40px}.erp-toast{left:16px;bottom:16px}.erp-field input,.erp-field select,.erp-field textarea{font-size:16px}.erp-grid-4 .erp-stat small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{.erp-sidebar,.erp-header,.erp-toolbar-actions,.erp-footer{display:none}.erp-main{margin:0}body{background:white}.erp-card{break-inside:avoid}#erp-view{padding:0}.erp-page-heading{padding:0 0 20px}}
#erp-view{display:grid;gap:20px}.erp-bars{display:grid;gap:12px}.erp-bars>div{display:grid;grid-template-columns:minmax(58px,auto) minmax(60px,1fr) auto;align-items:center;gap:10px;font-size:12px}.erp-bars progress{width:100%;height:10px;accent-color:#138a80}.erp-events{list-style:none;padding:0;margin:0}.erp-events li{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #d7e5e3;padding:10px 0}.erp-events small{margin-inline-start:auto}.erp-detail-list{display:grid;grid-template-columns:auto 1fr;gap:8px 16px}.erp-detail-list dd{margin:0}.erp-toolbar{flex-wrap:wrap}
/* Isatis executive workspace — second edition */
:root{--ink:#182e2b;--muted:#82908a;--accent:#2b6653;--accent-light:#e6eee4;--paper:#f3f3ed;--line:#e3e5dc;--sidebar:#172c27;--gold:#af9261;--radius:17px}
body{background:var(--paper);-webkit-font-smoothing:antialiased}.erp-sidebar{width:258px;padding:34px 20px 0;background:linear-gradient(170deg,#20372f 0%,#152b26 65%,#142721 100%);color:#f0f2dc;border-left:1px solid #32453b;scrollbar-width:thin;scrollbar-color:#395047 transparent}.erp-brand{margin:0 10px 28px;gap:13px;font-size:28px;letter-spacing:-.6px}.erp-brand svg{color:#d2e3a4;width:39px;height:39px}.erp-brand small{color:#a1b2a4;font-size:9px;letter-spacing:.1px}.workspace-selector{display:flex;align-items:center;gap:10px;padding:13px 10px;margin:0 1px 28px;border:1px solid #ffffff16;border-radius:9px;background:#ffffff04;font-size:11px}.workspace-selector small{display:block;font-size:8px;color:#91a49a;margin-top:2px}.workspace-selector>svg{margin-right:auto;width:15px;color:#91a49a}.workspace-monogram{width:31px;height:34px;display:grid;place-items:center;background:#d9e3bd;color:#2c4c3a;border-radius:6px;font-size:17px;font-weight:650}.sidebar-caption,.nav-label{color:#80978a;font-size:9px;letter-spacing:.4px}.nav-label{margin-top:26px}.erp-sidebar nav button{color:#b8c6b9;min-height:44px;border-radius:7px;font-size:11px;gap:12px;margin:4px 0;padding:11px 13px;transition:background .18s,transform .18s}.erp-sidebar nav button:hover{background:#ffffff09;color:#f2f8e2;transform:translateX(-2px)}.erp-sidebar nav button.active{color:#e4edc6;background:#ffffff0c;box-shadow:inset -2px 0 #d3e3a3}.erp-sidebar nav button.active svg{color:#d3e3a3}.erp-sidebar nav button svg{width:17px;height:17px;stroke-width:1.45}.sidebar-bottom{margin-top:20px;border-color:#ffffff14;padding:20px 2px}.sidebar-bottom small{color:#81958a}.workspace-avatar{background:#ffffff0c;color:#d8e6b9;width:30px;height:32px;border-radius:5px}.erp-main{margin-right:258px}.erp-header{height:87px;background:transparent;border-color:#dfe3d9;padding:0 43px}.breadcrumb{font-size:10px;gap:17px}.breadcrumb strong{font-weight:500;color:#5a6b60}.header-end{gap:19px}.erp-search{padding:0 13px;background:#eaece4;border:1px solid #e1e5da;border-radius:7px;min-height:35px;max-width:245px}.erp-search input{font-size:10px;min-width:0}.erp-search:focus-within{border-color:#8baf8d;background:#fff}.erp-search input:disabled{opacity:.6}.demo-label{border:0;background:#e6e9dc;color:#6c7c58;font-size:9px;padding:4px 9px;letter-spacing:.1px}.profile-avatar{background:#2e4e3d;color:#e1e8be;width:33px;height:33px;font-size:15px}.erp-page-heading{padding:41px 43px 32px;align-items:flex-end}.eyebrow{font-size:9px;letter-spacing:.2px;margin-bottom:11px;color:#5b8065;display:flex;align-items:center;gap:7px}.eyebrow:before{content:'';width:17px;height:1px;background:#78955c}h1{font-size:33px;line-height:1.45;font-weight:720;letter-spacing:-1.3px}#erp-page-subtitle{font-size:11px;color:#849084;margin-top:9px}.page-heading-meta{font-size:13px;font-weight:600;align-items:flex-start;text-align:left;gap:9px;color:#536d58;padding-bottom:3px}.page-heading-meta small{display:block;font-size:9px;color:#8b9687;font-weight:400;margin-top:2px}.page-heading-meta .live-dot{margin-top:9px;background:#84a571;box-shadow:0 0 0 4px #e7eadf}#erp-view{padding:0 43px 38px;display:grid;gap:25px}.erp-grid{gap:23px}.erp-card{border:1px solid #e4e7dc;background:#fcfcf8;border-radius:15px;padding:27px;box-shadow:0 2px 2px #293d2802}.erp-card h2{font-size:15px;font-weight:650;letter-spacing:-.25px;margin-bottom:25px}.erp-card h3{font-size:13px}.erp-stat{padding:24px 23px;border-color:transparent;box-shadow:0 2px 6px #17382b03;overflow:hidden;border-radius:12px;min-height:154px}.erp-stat:after{content:'';position:absolute;left:23px;top:25px;width:7px;height:7px;border:1.5px solid #adbd92;border-radius:1px;transform:rotate(-45deg)}.erp-stat>span{font-size:10px;color:#788b77}.erp-stat strong{font-size:28px;letter-spacing:-1px;line-height:1.3;margin:20px 0 10px;font-weight:680;font-variant-numeric:tabular-nums}.erp-stat small{font-size:9px;color:#8a9985}.erp-grid-4 .erp-stat:first-child{background:#264b3c;color:#f1f5df;border-color:#264b3c}.erp-grid-4 .erp-stat:first-child>span{color:#c2d0b5}.erp-grid-4 .erp-stat:first-child strong{color:#f4f6de}.erp-grid-4 .erp-stat:first-child small{color:#9fbaa3}.erp-grid-4 .erp-stat:first-child:after{border-color:#cfdfa2;background:#cfdfa2}.erp-grid-4 .erp-stat:nth-child(2){background:#e9eddd}.erp-grid-4 .erp-stat:nth-child(3){background:#f9faf5}.erp-grid-4 .erp-stat:nth-child(4){background:#eeede5}.erp-grid-2>.erp-card:first-child{background:#fdfdf9}.erp-grid-2>.erp-card:nth-child(2){background:#edf0e7}.erp-table-wrap{border:0;background:transparent;border-radius:8px}.erp-table{font-size:11px}.erp-table th{background:#f0f2e9;color:#84917c;border-bottom:0;font-size:9px;font-weight:500;padding:14px 15px}.erp-table th:first-child{border-radius:0 6px 6px 0}.erp-table th:last-child{border-radius:6px 0 0 6px}.erp-table td{padding:19px 15px;border-color:#edf0e7;font-size:10px;color:#526651}.erp-table td:first-child{color:#8a9882;font-size:9px}.erp-table td:nth-child(2){font-weight:580;color:#2d4736}.erp-table tbody tr:hover{background:#f4f7ee}.erp-badge,.badge{font-size:9px;padding:3px 9px;border-radius:4px;background:#eff1e9;color:#6f8169}.erp-badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.erp-badge.success,.badge.success{background:#e8f0e3;color:#537a47}.erp-badge.warning,.badge.warning{background:#f4ecda;color:#a08548}.erp-badge.info{background:#e6eef0;color:#5d7f8b}.erp-badge.neutral{background:#e9ede5;color:#728569}.erp-button,button.primary,button.subtle{border-radius:6px;font-size:10px;min-height:39px;padding:9px 15px;transition:background .18s,box-shadow .18s;color:#4e6855;border-color:#d8e1d2;background:transparent}.erp-button:hover{background:#e8eee1}.erp-button.primary,button.primary{background:#2b5d46;border-color:#2b5d46;color:#f6f9eb;box-shadow:0 3px 7px #27492b12}.erp-button.primary:hover{background:#214c39;box-shadow:0 3px 10px #27492b25}.erp-button.subtle,button.subtle{color:#698957;font-weight:500;background:transparent}.erp-button.subtle:hover{background:#eaf0e2}.erp-table .erp-button.subtle{min-height:29px;padding:4px 9px;font-size:9px;border-color:#e4eadc}.erp-toolbar{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #e8ece0;justify-content:flex-start}.erp-toolbar .erp-field{margin:0;min-width:165px;font-size:9px;gap:5px}.erp-toolbar .erp-button.primary{margin-right:auto}.erp-toolbar .erp-field select{min-height:37px;padding:5px 11px;font-size:10px}.erp-field input,.erp-field select,.erp-field textarea,.erp-form input,.erp-form select,.erp-form textarea{background:#fafbf7;border-color:#dbe2d4;border-radius:6px}.erp-field label,.erp-field{color:#71856a}.erp-footer{margin:0 43px;padding:20px 0 26px;border-color:#e0e5d8;font-size:8px;color:#95a18c;letter-spacing:.1px}.erp-bars{display:flex;flex-direction:column;gap:22px;padding:4px 0 12px}.erp-bars>div{display:grid;grid-template-columns:70px minmax(30px,1fr) 75px;align-items:center;gap:16px;font-size:10px}.erp-bars>div span{color:#8a9983;font-size:10px}.erp-bars>div b{text-align:left;font-weight:550;color:#4f6c4b;font-size:10px}.erp-bars progress{height:9px;width:100%;border:0;appearance:none;-webkit-appearance:none;border-radius:3px;overflow:hidden;background:#e7ebdf}.erp-bars progress::-webkit-progress-bar{background:#e7ebdf;border-radius:3px}.erp-bars progress::-webkit-progress-value{background:linear-gradient(90deg,#a5bc7d,#4a7754);border-radius:3px}.erp-bars progress::-moz-progress-bar{background:#5c855b;border-radius:3px}.erp-grid-2>.erp-card:nth-child(2) .erp-bars progress::-webkit-progress-value{background:linear-gradient(90deg,#becd9e,#849d69)}.erp-events{list-style:none;margin:0;padding:0}.erp-events li{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 70px;align-items:center;gap:15px;border-bottom:1px solid #e8ede0;padding:14px 0}.erp-events li:last-child{border:0;padding-bottom:0}.erp-events li .erp-button{text-align:right;justify-content:flex-start;font-size:10px;color:#345a3b;padding:4px 0}.erp-events li>span{font-size:10px;color:#899780}.erp-events li small{font-size:9px;color:#9aa58f;text-align:left}.erp-detail-list{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:25px 0;font-size:12px}.erp-detail-list dt{color:#85957d}.erp-detail-list dd{margin:0}.erp-modal{background:#fcfdf7;border:1px solid #dfe5d7;border-radius:15px;box-shadow:0 30px 110px #18362340}.erp-modal::backdrop{background:#122c257d;backdrop-filter:blur(7px)}.modal-heading{border-color:#e2e8d9}.modal-heading h2{font-size:21px}.erp-toast{background:#264b3c;color:#eff4df;border:1px solid #4d6c4c;border-radius:8px}.icon-button:hover{background:#e3e9da}.erp-note{background:#e7ecde;border-color:#9bae83;color:#718364}.loading-state{background:#fcfcf8}.loading-line{background:linear-gradient(90deg,#e9eddc,#688b58,#e9eddc)}
@media(min-width:1550px){.erp-main{max-width:1900px}.erp-header{padding-right:60px;padding-left:60px}.erp-page-heading{padding:48px 60px 35px}#erp-view{padding:0 60px 40px;gap:28px}.erp-stat{padding:28px 27px;min-height:170px}.erp-stat strong{font-size:33px}.erp-footer{margin:0 60px}}
@media(max-width:1200px){.erp-sidebar{width:230px;padding:28px 14px 0}.erp-main{margin-right:230px}.erp-header{padding:0 28px}.erp-page-heading{padding:34px 28px 28px}#erp-view{padding:0 28px 32px}.erp-footer{margin:0 28px}.erp-grid{gap:16px}.erp-card{padding:22px}.erp-bars>div{grid-template-columns:60px minmax(20px,1fr) 60px;gap:8px}.erp-stat strong{font-size:25px}.erp-stat:after{left:19px;top:25px}.erp-search{max-width:190px}.workspace-selector{margin-bottom:25px}}
@media(max-width:1050px){.erp-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-grid-2{grid-template-columns:1fr}.erp-bars>div{grid-template-columns:75px minmax(20px,1fr) 80px}.erp-stat{min-height:145px}.erp-stat strong{font-size:29px}.erp-search{max-width:165px}.erp-events li{grid-template-columns:1fr 2fr 60px}.page-heading-meta{display:none}}
@media(max-width:800px){.erp-main{margin-right:0}.erp-sidebar{width:258px;padding:30px 20px 0;box-shadow:-20px 0 90px #14272155}.erp-header{height:72px;padding:0 24px;background:#f3f3edf2;border-color:#dde3d5}.erp-page-heading{padding:32px 24px 28px}#erp-view{padding:0 24px 30px;gap:20px}.erp-footer{margin:0 24px}.erp-search{max-width:230px}.erp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-bars>div{grid-template-columns:55px minmax(20px,1fr) 55px;gap:8px}.erp-brand{margin-bottom:22px}.workspace-selector{margin-bottom:20px}h1{font-size:30px}}
@media(max-width:650px){.erp-grid-2,.erp-grid-3{grid-template-columns:1fr}.erp-card{padding:22px}.erp-events li{grid-template-columns:1fr 65px;gap:3px 12px;padding:13px 0}.erp-events li .erp-button{grid-column:1;grid-row:1}.erp-events li>span{grid-column:1;grid-row:2;font-size:9px}.erp-events li small{grid-column:2;grid-row:1/3}.erp-bars>div{grid-template-columns:65px minmax(20px,1fr) 65px;gap:14px}.erp-toolbar{gap:10px}.erp-toolbar .erp-field{min-width:145px}.erp-toolbar .erp-button.primary{margin-right:auto}.erp-toolbar>.erp-button.subtle{padding-right:0;padding-left:0}.erp-table td,.erp-table th{padding:14px 12px}}
@media(max-width:420px){.erp-header{padding:0 16px;height:67px}.header-end{gap:9px}.erp-search{max-width:165px;min-height:32px;padding:0 9px}.erp-search input{font-size:9px}.erp-search svg{width:15px}.demo-label{font-size:8px;padding:3px 6px}.erp-page-heading{padding:29px 17px 25px}h1{font-size:27px;letter-spacing:-1px}.eyebrow{font-size:8px}#erp-page-subtitle{font-size:10px;line-height:1.9}#erp-view{padding:0 17px 25px;gap:18px}.erp-grid-4{gap:10px}.erp-grid-4 .erp-stat{padding:18px 15px;min-height:137px;border-radius:9px}.erp-stat>span{font-size:9px}.erp-stat strong{font-size:24px;margin:19px 0 9px}.erp-stat small{font-size:8px}.erp-stat:after{left:13px;top:23px;width:5px;height:5px}.erp-card{padding:19px;border-radius:11px}.erp-card h2{font-size:14px;margin-bottom:20px}.erp-bars{gap:20px}.erp-bars>div{gap:10px;font-size:9px}.erp-footer{margin:0 17px;font-size:7px}.erp-toolbar .erp-field{width:100%;min-width:0}.erp-toolbar .erp-button.primary{margin-right:0;flex:1}.erp-toolbar>.erp-button.subtle{flex:1}.erp-field input,.erp-field select,.erp-field textarea{font-size:16px}.erp-toolbar .erp-field select{font-size:16px;min-height:42px}.erp-modal{padding:20px}.erp-detail-list{font-size:11px}}
@media print{.erp-main{margin:0;max-width:none}.erp-stat,.erp-grid-4 .erp-stat:first-child{color:#222;background:white;border:1px solid #ccc}.erp-stat strong,.erp-grid-4 .erp-stat:first-child strong{color:#222}.workspace-selector{display:none}}
/* Mobile containment and finger-sized controls */
.erp-main,#erp-view,.erp-grid,.erp-table-wrap{min-width:0;max-width:100%}.erp-table-wrap{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b4c1a4 #f0f3e9}.erp-table-wrap::-webkit-scrollbar{height:5px}.erp-table-wrap::-webkit-scrollbar-thumb{background:#b4c1a4;border-radius:5px}.erp-table-wrap::-webkit-scrollbar-track{background:#f0f3e9}
@media(max-width:650px){.icon-button{width:44px;height:44px}.erp-sidebar nav button{min-height:46px}.erp-button,button.primary,button.subtle,.erp-table .erp-button.subtle{min-height:44px}.erp-events .erp-button{min-height:35px}.erp-table{min-width:630px}.erp-card .erp-table-wrap{width:100%;max-width:100%}.erp-table td:last-child{background:inherit}.erp-grid-4 .erp-stat{overflow-wrap:anywhere}.erp-stat strong{font-size:clamp(21px,6.4vw,29px)}.erp-modal .icon-button{min-width:44px}.erp-search input{font-size:16px;transform:scale(.7);transform-origin:right;width:138%;margin-left:-38%}.erp-search input::placeholder{font-size:14px}}
/* Approved Isatis blue operations concept */
:root{--ink:#ecf5fc;--muted:#7f9db6;--accent:#14d6e9;--accent-light:#093447;--paper:#03111e;--line:#17364b;--sidebar:#03111e;--gold:#16e5c4;--radius:14px}body{background:radial-gradient(ellipse at 40% 20%,#061c30 0%,#03111e 65%);color:#eaf4fc}button,a,input,select{touch-action:manipulation}.erp-sidebar{background:linear-gradient(160deg,#071b2d,#03101c);border-color:#14364a;color:#e1f3fc;box-shadow:none}.erp-brand{color:#f2faff}.erp-brand svg{color:#12cdeb}.erp-brand small,.sidebar-caption,.nav-label{color:#607f97}.workspace-selector{border-color:#153c51;background:#071d2c}.workspace-selector small{color:#668da6}.workspace-monogram{background:#063a4f;color:#2fdbef}.erp-sidebar nav button{color:#8aa6bd}.erp-sidebar nav button:hover{background:#0c2e43;color:#ecfcff}.erp-sidebar nav button.active{color:#d8fcff;background:linear-gradient(90deg,#10334b,#07547277);box-shadow:inset -2px 0 #23e5ef}.erp-sidebar nav button.active svg{color:#29e4f4}.sidebar-bottom{border-color:#17334a}.sidebar-bottom small{color:#668ba2}.workspace-avatar{background:#07354a;color:#40ddec}.erp-header{background:#04132190;border-color:#15455d;position:relative;height:83px}.erp-header:after{content:'';position:absolute;bottom:-1px;left:0;width:40%;height:1px;background:linear-gradient(90deg,transparent,#18def1)}.header-start{gap:15px;flex-direction:row-reverse}.blue-wordmark{display:flex;gap:13px;align-items:center;direction:ltr}.blue-wordmark>svg{height:28px;width:36px;stroke:none;color:#17bce7}.blue-wordmark>span{font-family:Arial,sans-serif;font-size:27px;font-weight:650;letter-spacing:4px;color:#f5f9ff}.blue-health{display:grid;place-items:center;border:1px solid #13efd0;width:32px;height:32px;border-radius:50%;box-shadow:0 0 15px #05f1cf22;color:#64ffdc}.blue-health svg{width:20px;height:20px;stroke-width:2.3}.erp-search{background:#0a2233;border-color:#173c52;color:#79a1b8}.erp-search input{color:#d8edf5}.erp-search:focus-within{background:#0d2a3e;border-color:#12b8d9}.demo-label{background:#092435;color:#67b4c6;border:1px solid #17495c}.erp-page-heading{padding-top:35px;padding-bottom:20px}.eyebrow{color:#5588a4}.eyebrow:before{background:#16b8d9}h1{color:#f5f8ff;font-weight:750;font-size:34px}.page-heading-meta{color:#78c7d7}.page-heading-meta small{color:#568298}.page-heading-meta .live-dot{background:#26e8c8;box-shadow:0 0 10px #18eec5}#erp-page-subtitle{color:#6589a2}.erp-footer{border-color:#143145;color:#3e657c}.erp-card{background:linear-gradient(135deg,#072237b8,#041524);border-color:#16445f;box-shadow:inset 0 1px #ffffff03;color:#d8eaf5}.erp-card h2,.erp-card h3{color:#f0f7ff}.erp-grid-2>.erp-card:first-child,.erp-grid-2>.erp-card:nth-child(2){background:linear-gradient(135deg,#082439,#041524)}.erp-stat,.erp-grid-4 .erp-stat:nth-child(n){background:linear-gradient(135deg,#0a2b40,#061a2b);border:1px solid #174860;color:#ebfaff}.erp-grid-4 .erp-stat:first-child{background:linear-gradient(135deg,#07506a,#06273e)}.erp-stat>span,.erp-grid-4 .erp-stat:first-child>span{color:#85b4c7}.erp-stat strong,.erp-grid-4 .erp-stat:first-child strong{color:#f2fcff}.erp-stat small,.erp-grid-4 .erp-stat:first-child small{color:#58899f}.erp-stat:after,.erp-grid-4 .erp-stat:first-child:after{border-color:#17dcdf;background:#17dcdf}.erp-table th{background:#082638;color:#6e9bb4}.erp-table td{border-color:#123045;color:#a0bfd1}.erp-table td:first-child{color:#5f8ba3}.erp-table td:nth-child(2){color:#d2e6f1}.erp-table tbody tr:hover{background:#08263a}.erp-table-wrap{background:transparent;scrollbar-color:#1c657d #072033}.erp-badge,.erp-badge.neutral{background:#113044;color:#86b0c9}.erp-badge.success{background:#093d3c;color:#54e2ba}.erp-badge.warning{background:#403723;color:#e0bd6c}.erp-badge.danger{background:#402936;color:#ec92a9}.erp-button,button.primary,button.subtle{color:#a1d7e4;border-color:#1c4c65;background:#082335}.erp-button:hover{background:#0d3b52}.erp-button.primary,button.primary{background:linear-gradient(125deg,#087fa1,#04536e);border-color:#12a1c2;color:#f1fcff;box-shadow:0 0 15px #13dbe50c}.erp-button.primary:hover{background:#0983a4}.erp-button.subtle,button.subtle{color:#36cfe3;background:transparent}.erp-button.subtle:hover{background:#08354a}.erp-table .erp-button.subtle{border-color:#1b435a}.erp-toolbar{border-color:#15364a}.erp-field,.erp-field label{color:#79a5ba}.erp-field input,.erp-field select,.erp-field textarea,.erp-form input,.erp-form select,.erp-form textarea{background:#051a2b;border-color:#224a61;color:#d5edf8;color-scheme:dark}.erp-modal{background:#071e30;border-color:#1e5972;color:#d7edf6}.erp-modal::backdrop{background:#000c18bb}.modal-heading{border-color:#18475e}.erp-toast{background:#083349;color:#d5f8ff;border-color:#1c94b0}.icon-button{color:#66bdd1}.icon-button:hover{background:#0b3248}.erp-note{background:#082f3a;border-color:#18acbb;color:#6bb6bf}.erp-bars progress{background:#11384a}.erp-bars progress::-webkit-progress-bar{background:#11384a}.erp-bars progress::-webkit-progress-value,.erp-grid-2>.erp-card:nth-child(2) .erp-bars progress::-webkit-progress-value{background:linear-gradient(90deg,#158ccd,#16dfce)}.erp-bars>div span,.erp-bars>div b{color:#7cabc1}.erp-events li{border-color:#18374a}.erp-events li .erp-button{color:#80d5e7}.erp-events li>span,.erp-events li small{color:#648da4}.erp-detail-list dt{color:#648ea5}.loading-state{background:#061b2c}.mobile-menu-close{display:none}.bottom-nav{display:flex;justify-content:center;gap:8px;margin:0 43px 25px;border:1px solid #16425a;border-radius:24px;background:linear-gradient(120deg,#071e31,#04121e);padding:11px;box-shadow:0 -10px 35px #010b1433}.bottom-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;border:1px solid transparent;border-radius:16px;background:transparent;color:#9ab4c9;font-size:11px;min-height:75px;flex:1;max-width:200px;padding:10px 8px}.bottom-nav button svg{height:27px;width:27px;stroke-width:1.5}.bottom-nav button.active{background:linear-gradient(140deg,#05628266,#052238);color:#f1fbff;border-color:#12d7ef;box-shadow:inset 0 0 18px #06a5ca22,0 0 16px #11d8ea0c}.bottom-nav button.active svg{color:#c5f8ff}.bottom-nav button:hover{color:#b4f9ff;background:#0b344a}.operations-overview{margin-top:-24px}.factory-scene{position:relative;height:490px;margin:0 -43px;isolation:isolate;overflow:hidden}.factory-visual{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:center 59%;z-index:-2}.scene-vignette{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#03111e 0%,#03111e08 28%,#03111e00 78%,#03111e 100%)}.factory-hud{position:absolute;display:flex;direction:rtl;align-items:center;justify-content:center;gap:13px;color:#e8f6ff;border:1px solid #1680a5;background:linear-gradient(135deg,#082c40e8,#031422f2);border-radius:10px;padding:13px 18px;min-width:145px;box-shadow:inset 0 1px 10px #1fa9cf12;transform:translateX(50%);font-size:17px;line-height:1.5}.factory-hud>svg{width:34px;height:34px;order:1;color:#edf9ff;stroke-width:1.3}.factory-hud strong{display:flex;gap:9px;align-items:center;justify-content:center;direction:ltr;font-size:25px;line-height:1.3;font-weight:650}.factory-hud i{display:block;width:26px;height:26px;border-radius:50%;background:conic-gradient(#18e6c8 var(--ring),#16485c 0);position:relative}.factory-hud i:before{content:'';position:absolute;inset:4px;border-radius:50%;background:#082133}.factory-hud:hover{border-color:#60f4f7;box-shadow:0 0 20px #05e4ed33}.hud-production{right:77%;top:110px}.hud-efficiency{right:48%;top:35px}.hud-inventory{right:20%;top:145px}.hud-stem{position:absolute;top:100%;left:50%;width:1px;height:110px;background:linear-gradient(#0ee0f0,#43fbff);box-shadow:0 0 8px #00e5ff}.hud-stem:after{content:'';position:absolute;bottom:0;left:-5px;width:10px;height:10px;border:2px solid #8ffcff;border-radius:50%;background:#18d6ed;box-shadow:0 0 0 4px #1af3ff22,0 0 17px #00e7ff}.hud-efficiency .hud-stem{height:100px}.hud-inventory .hud-stem{height:120px}.scene-note{position:absolute;bottom:13px;left:43px;font-size:9px;color:#3c718a}.operations-flow{position:relative;margin:0 -10px 24px;border-top:1px solid #174762;border-radius:25px 25px 0 0;padding:26px 24px 0;background:linear-gradient(#061b2da8,transparent)}.flow-track{display:flex;justify-content:space-between;position:relative}.flow-track:before{position:absolute;content:'';right:10%;left:10%;top:15px;height:2px;background:linear-gradient(270deg,#21efb3 0%,#11d8ea 50%,#244d6f 50%)}.flow-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:12px;flex:1;border:0;background:transparent;color:#7193b0;font-size:16px;padding:0 4px;min-height:68px}.flow-node{width:27px;height:27px;border-radius:50%;background:#0b263d;border:2px solid #365e7d;display:grid;place-items:center;margin-top:2px}.flow-node svg{width:16px;height:16px;stroke-width:2.5}.flow-step.complete{color:#d0e3ed}.flow-step.complete .flow-node{background:#28e8aa;border-color:#7df8c8;color:#05352b}.flow-step.selected{color:#f2faff;font-weight:700}.flow-step.selected .flow-node{background:#0ec5df;border:3px solid #06546d;outline:2px solid #28e8f6;box-shadow:0 0 0 6px #0c738b44,0 0 25px #0fe7ee88}.flow-step:hover{color:#7ff4ff}.flow-detail{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px;padding-top:8px;min-height:54px}.flow-detail p{color:#5a849e;font-size:10px;margin:0}.flow-detail button{white-space:nowrap;font-size:9px;padding:5px 10px}.production-chart{padding:22px 27px 14px;border:1px solid #1d5477;background:linear-gradient(140deg,#08263c99,#031321);border-radius:18px}.chart-heading{display:flex;align-items:center;justify-content:space-between}.chart-heading h2{font-size:24px;font-weight:700;position:relative;margin-bottom:25px}.chart-heading h2:after{content:'';position:absolute;right:0;bottom:-11px;width:51px;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,#14ded5)}.chart-heading>span{font-size:9px;color:#40738e}.trend-svg{width:100%;height:auto;display:block;overflow:visible}.trend-svg text{fill:#b3cbdf;font-family:Morabba,Tahoma,sans-serif;font-size:13px;stroke:none;letter-spacing:0}.trend-svg .chart-tip{font-size:22px;font-weight:700;fill:#efffff}.trend-svg .chart-grid{stroke:#164363;stroke-width:1;stroke-dasharray:4 4;fill:none}.trend-svg circle{filter:drop-shadow(0 0 4px #13d8ff77)}body[data-page=dashboard] .erp-page-heading{position:relative;z-index:2}body[data-page=dashboard] .erp-page-heading h1{font-size:40px;position:relative}body[data-page=dashboard] .erp-page-heading h1:after{content:'';position:absolute;right:0;bottom:-13px;width:50px;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,#1ff2d8)}body[data-page=dashboard] .eyebrow,body[data-page=dashboard] #erp-page-subtitle,body[data-page=dashboard] .page-heading-meta{display:none}
@media(min-width:1550px){.factory-scene{margin-right:-60px;margin-left:-60px;height:600px}.factory-hud{min-width:180px;font-size:20px}.factory-hud strong{font-size:29px}.hud-production{top:160px}.hud-efficiency{top:70px}.hud-inventory{top:190px}.bottom-nav{margin-left:60px;margin-right:60px}.operations-overview{max-width:1500px}.production-chart{max-width:1100px;margin:auto}.factory-hud .hud-stem{height:150px}}
@media(max-width:1200px){.factory-scene{margin-right:-28px;margin-left:-28px;height:450px}.factory-hud{min-width:125px;font-size:15px;padding:11px 13px;gap:10px}.factory-hud strong{font-size:22px}.factory-hud>svg{width:27px;height:27px}.hud-production{top:95px}.hud-efficiency{top:30px}.hud-inventory{top:135px}.bottom-nav{margin-right:28px;margin-left:28px}}
@media(max-width:800px){.erp-header{position:relative;background:transparent;flex-direction:row-reverse;padding:0 24px;height:77px}.header-start{flex-direction:row;gap:12px}.header-end{flex:none}.header-start .menu-toggle{order:2;width:30px}.blue-wordmark{gap:9px}.blue-wordmark>span{font-size:24px;letter-spacing:3px}.blue-wordmark>svg{width:29px;height:25px}.erp-header .erp-search,.erp-header .demo-label{display:none}.erp-page-heading{padding:25px 24px 20px}.factory-scene{margin-right:-24px;margin-left:-24px;height:510px}.factory-visual{object-position:center 60%}.hud-efficiency{top:30px}.hud-production{top:95px}.hud-inventory{top:140px}.factory-hud{font-size:18px;min-width:145px;gap:10px;padding:13px 17px}.factory-hud strong{font-size:25px}.factory-hud>svg{width:32px;height:32px}.hud-production .hud-stem{height:125px}.hud-inventory .hud-stem{height:145px}.bottom-nav{position:sticky;bottom:8px;z-index:35;margin:0 16px 20px;padding:7px;backdrop-filter:blur(18px);background:#041726ee;border-radius:21px;box-shadow:0 -5px 24px #010b14bb}.bottom-nav button{min-height:68px;padding:7px 4px;font-size:10px;gap:5px;border-radius:14px}.bottom-nav button svg{width:25px;height:25px}.erp-footer{padding-bottom:18px}.mobile-menu-close{display:grid;position:absolute;top:13px;left:8px}.erp-sidebar{box-shadow:-20px 0 60px #000c}.erp-sidebar .erp-brand{padding-left:25px}.erp-sidebar .mobile-menu-close{z-index:3}body[data-page=dashboard] .erp-page-heading h1{font-size:37px}.operations-overview{margin-top:-12px}.scene-note{left:24px}}
@media(max-width:600px){.factory-scene{height:400px}.factory-hud{font-size:14px;min-width:112px;padding:10px 11px;gap:8px;border-radius:8px}.factory-hud>svg{width:25px;height:25px}.factory-hud strong{font-size:21px;gap:6px}.factory-hud i{width:22px;height:22px}.factory-hud i:before{inset:3px}.hud-efficiency{top:22px;right:49%}.hud-production{top:82px;right:79%}.hud-inventory{top:113px;right:20%}.hud-stem{height:90px}.hud-production .hud-stem{height:90px}.hud-efficiency .hud-stem{height:90px}.hud-inventory .hud-stem{height:95px}.operations-flow{padding:20px 8px 0;margin:0 -5px 17px}.flow-step{font-size:13px;gap:10px;min-height:63px}.flow-node{width:21px;height:21px;border-width:2px;margin-top:3px}.flow-track:before{top:13px}.flow-node svg{width:13px;height:13px}.flow-step.selected .flow-node{border-width:2px;box-shadow:0 0 0 5px #0c738b44,0 0 18px #0fe7ee55}.flow-detail{gap:5px;align-items:center;margin-top:2px}.flow-detail p{font-size:8px;line-height:1.9;max-width:70%}.flow-detail button{font-size:8px;padding:5px;min-height:44px}.production-chart{padding:19px 12px 8px;border-radius:13px}.chart-heading{padding:0 7px}.chart-heading h2{font-size:23px;margin-bottom:18px}.chart-heading>span{font-size:7px}.trend-svg text{font-size:17px}.trend-svg .chart-tip{font-size:22px}.erp-page-heading h1{font-size:28px}.erp-header{height:68px;padding:0 18px}.blue-wordmark>span{font-size:22px;letter-spacing:2.5px}.blue-wordmark>svg{width:25px;height:23px}.blue-health{height:28px;width:28px}.blue-health svg{height:17px;width:17px}.erp-header .menu-toggle{width:28px}.erp-header .menu-toggle svg{width:17px}.header-start{gap:11px}.erp-table{min-width:630px}.erp-field input,.erp-field select,.erp-field textarea{font-size:16px}.bottom-nav{margin:0 10px 15px;padding:5px;gap:2px;bottom:7px;border-radius:18px}.bottom-nav button{font-size:9px;min-height:65px;padding:6px 2px;gap:5px}.bottom-nav button svg{width:24px;height:24px}.bottom-nav button.active{font-weight:650}.erp-footer{font-size:7px}body[data-page=dashboard] .erp-page-heading{padding-top:22px;padding-bottom:19px}body[data-page=dashboard] .erp-page-heading h1{font-size:33px}.scene-note{font-size:7px;left:22px;bottom:10px}.erp-page-heading .eyebrow{font-size:8px}}
@media(max-width:420px){.factory-scene{margin-right:-17px;margin-left:-17px;height:337px}.factory-hud{min-width:98px;font-size:12px;padding:9px 8px;gap:7px}.factory-hud>svg{width:23px;height:23px}.factory-hud strong{font-size:19px;gap:5px}.factory-hud i{width:19px;height:19px}.hud-production{right:79%;top:70px}.hud-efficiency{top:16px}.hud-inventory{right:19%;top:97px}.hud-stem,.hud-production .hud-stem,.hud-efficiency .hud-stem,.hud-inventory .hud-stem{height:75px}.hud-stem:after{width:7px;height:7px;left:-4px;border-width:1.5px}.scene-note{font-size:6px}.production-chart{padding:16px 7px 5px}.chart-heading h2{font-size:21px}.flow-step{font-size:12px}.flow-detail p{font-size:7px}.flow-detail button{font-size:7px}.bottom-nav button{font-size:8px;min-height:60px}.bottom-nav button svg{width:22px;height:22px}.bottom-nav{margin-right:8px;margin-left:8px}.erp-page-heading{padding-right:17px;padding-left:17px}.erp-header{padding-right:14px;padding-left:14px}.blue-wordmark>span{font-size:20px;letter-spacing:2px}.blue-wordmark>svg{width:23px}.blue-wordmark{gap:8px}.header-start{gap:6px}body[data-page=dashboard] .erp-page-heading h1{font-size:31px}}
@media(prefers-reduced-motion:no-preference){.flow-node,.factory-hud{transition:box-shadow .2s,border-color .2s}.factory-hud:hover .hud-stem:after{box-shadow:0 0 0 5px #19ebff33,0 0 25px #00dfff}.bottom-nav button{transition:background .2s,border-color .2s}}
/* Preserve the full factory silhouette rather than cropping its buildings. */
.factory-visual{object-fit:contain;object-position:center bottom}.factory-scene{background:#03111e}@media(max-width:800px){.factory-visual{height:82%;top:auto;bottom:0;object-position:center bottom}.scene-vignette{background:linear-gradient(180deg,#03111e 0%,#03111e00 28%,#03111e00 88%,#03111e 100%)}}@media(max-width:420px){.factory-visual{height:78%}}
.workflow-panel{margin-top:24px}.workflow-panel .erp-toolbar{align-items:center}.workflow-panel .erp-toolbar h2{margin-bottom:6px}.workflow-help{font-size:10px;line-height:1.9;color:#729db3;margin:6px 0 12px}.workflow-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-bottom:1px solid #163c50;margin-bottom:18px;padding-bottom:19px}.workflow-summary>span{font-size:10px;color:#7bacc2}.workflow-summary strong{display:block;color:#55e5df;font-size:23px;margin-top:5px}.workflow-empty{font-size:11px;color:#87b4c7;padding:12px 0;line-height:2}.workflow-log-title{margin-top:25px!important}.workflow-log{padding:0;margin:0;list-style:none}.workflow-log li{padding:12px 0;border-top:1px solid #123548;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#a0c7d8}.workflow-log small{font-size:8px;color:#517c95}.workflow-review{padding-top:15px}.bottom-nav .bottom-more{display:none}.workflow-panel .erp-table .erp-button{white-space:normal;min-width:120px;font-size:9px}.workflow-panel .erp-table td{white-space:normal}
@media(max-width:800px){.header-start .menu-toggle{display:none}.bottom-nav .bottom-more{display:flex;flex:0 0 41px;align-self:center;min-height:41px;height:41px;border-radius:50%;border:1px solid #17617b;background:#082b40;padding:7px}.bottom-more svg{width:20px!important;height:20px!important}.bottom-nav button{font-size:8px}.workflow-summary{gap:7px}.workflow-log li{flex-direction:column;gap:4px}.workflow-panel .erp-toolbar .erp-button{width:100%;margin-right:0}.workflow-summary>span{font-size:9px}.workflow-panel{margin-top:20px}}@media(max-width:420px){.bottom-nav .bottom-more{flex-basis:34px;min-height:34px;height:34px;padding:5px}.bottom-nav button{font-size:7px}.bottom-nav button svg{height:21px;width:21px}.workflow-panel .erp-card{padding:16px}}
.menu-tools{margin:0 5px 18px}.menu-tools h2,.sheet-handle{display:none}.menu-search-label{font-size:9px;color:#77a6bb;display:flex;flex-direction:column;gap:5px}.menu-search-label input{background:#082638;border:1px solid #1e485e;color:#d9f4ff;border-radius:7px;padding:9px 10px;font-size:11px;min-width:0;width:100%}.menu-tools p{font-size:8px;color:#537e95;margin:8px 0}.menu-search-result{font-size:10px;color:#b4d2e0}.nav-item{display:flex;align-items:center;gap:3px;min-width:0}.erp-sidebar nav .nav-item>[data-page]{flex:1;min-width:0}.erp-sidebar nav .menu-pin{width:29px;min-height:35px;padding:5px;justify-content:center;color:#486d85;background:none;border-radius:5px}.menu-pin svg{width:15px!important;height:15px!important}.erp-sidebar nav .menu-pin[aria-pressed=true]{color:#31d8df;background:#0b3c4e}.menu-scrim{display:none}
@media(max-width:800px){.erp-sidebar{top:auto;bottom:0;right:0;left:0;width:100%;max-height:86dvh;padding:0 20px 24px;border-radius:24px 24px 0 0;border:1px solid #1f586e;transform:translateY(110%);z-index:90;box-shadow:0 -25px 80px #0009;overscroll-behavior:contain;overflow-y:auto;background:linear-gradient(145deg,#0a273a,#041524)}.erp-sidebar.mobile-open{transform:translateY(0)}.erp-sidebar .erp-brand,.erp-sidebar .workspace-selector,.erp-sidebar .sidebar-caption,.erp-sidebar .sidebar-bottom{display:none}.menu-tools{padding-top:15px;position:sticky;top:0;background:#082234f5;backdrop-filter:blur(14px);z-index:3;margin:0 -4px 9px;padding-bottom:10px}.menu-tools h2{display:block;font-size:19px;color:#ddf4ff;margin:14px 0 15px}.sheet-handle{display:block;width:39px;height:4px;border-radius:9px;background:#35677f;margin:0 auto}.mobile-menu-close{top:28px;left:18px;position:sticky;float:left;margin-top:25px;margin-bottom:-69px;z-index:5!important}.menu-search-label{font-size:10px}.menu-search-label input{font-size:16px;min-height:45px}.menu-tools p{font-size:10px;margin-bottom:0}.erp-sidebar nav{padding-bottom:5px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}.erp-sidebar nav .nav-label{grid-column:1/-1;margin:12px 0 0;padding:0 8px}.erp-sidebar nav .nav-item>[data-page]{font-size:10px;gap:7px;padding:10px 7px;min-height:46px}.erp-sidebar nav .menu-pin{width:34px;min-width:34px;min-height:44px}.nav-item{border-bottom:1px solid #14364b}.menu-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:85;border:0;background:#000a;backdrop-filter:blur(4px);width:100%;height:100%;padding:0}.erp-menu-open{overflow:hidden}}@media(max-width:390px){.erp-sidebar{padding-right:14px;padding-left:14px}.erp-sidebar nav{gap:5px 8px}.erp-sidebar nav .nav-item>[data-page]{font-size:9px;gap:5px}.erp-sidebar nav .nav-item>[data-page] svg{width:15px;height:15px}.erp-sidebar nav .menu-pin{width:30px;min-width:30px}}

/* Pearl / Graphite — append after erp.css. Artwork and workflow mechanics unchanged. */
:root,html[data-theme="light"]{
 color-scheme:light;--ink:#24262b;--muted:#737781;--accent:#3b5f85;--accent-light:#e7edf4;--paper:#f1f2f4;--line:#dfe1e6;--sidebar:#f5f6f8;--gold:#8c7859;
 --p-surface:#fafbfc;--p-raised:#fff;--p-soft:#e9ebef;--p-glass:rgba(250,251,253,.88);--p-dock:linear-gradient(145deg,rgba(255,255,255,.96),rgba(228,231,237,.91));--p-shadow:0 12px 35px #252a3812,0 1px 3px #252a3808;--p-edge:#ffffffd9;--p-ring:#8396ac;--p-onaccent:#fff;--p-success:#386f59;--p-successbg:#e6f0eb;--p-warning:#8b672b;--p-warningbg:#f4ecdd;--p-danger:#a5414c;--p-dangerbg:#f6e8e9;--p-scrim:#1d202a55;
}
html[data-theme="dark"]{
 color-scheme:dark;--ink:#ebedf1;--muted:#a0a4ae;--accent:#b8cbe1;--accent-light:#343d49;--paper:#17191d;--line:#35383f;--sidebar:#22252b;--gold:#c4b79d;
 --p-surface:#22252b;--p-raised:#2a2d34;--p-soft:#2d3037;--p-glass:rgba(37,40,47,.9);--p-dock:linear-gradient(145deg,rgba(63,67,77,.94),rgba(35,38,45,.94));--p-shadow:0 14px 38px #0005,0 1px 3px #0003;--p-edge:#ffffff18;--p-ring:#93a8c0;--p-onaccent:#1b2531;--p-success:#9acbb5;--p-successbg:#263d33;--p-warning:#e0c38b;--p-warningbg:#443b2b;--p-danger:#ecabb2;--p-dangerbg:#442e34;--p-scrim:#05060988;
}
@media(prefers-color-scheme:dark){html:not([data-theme]),html[data-theme="system"]{
 color-scheme:dark;--ink:#ebedf1;--muted:#a0a4ae;--accent:#b8cbe1;--accent-light:#343d49;--paper:#17191d;--line:#35383f;--sidebar:#22252b;--gold:#c4b79d;
 --p-surface:#22252b;--p-raised:#2a2d34;--p-soft:#2d3037;--p-glass:rgba(37,40,47,.9);--p-dock:linear-gradient(145deg,rgba(63,67,77,.94),rgba(35,38,45,.94));--p-shadow:0 14px 38px #0005,0 1px 3px #0003;--p-edge:#ffffff18;--p-ring:#93a8c0;--p-onaccent:#1b2531;--p-success:#9acbb5;--p-successbg:#263d33;--p-warning:#e0c38b;--p-warningbg:#443b2b;--p-danger:#ecabb2;--p-dangerbg:#442e34;--p-scrim:#05060988;
}}
body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--p-ring);outline-offset:3px}
.erp-header{background:var(--p-glass);border-color:var(--line);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.erp-header:after,.chart-heading h2:after{display:none}
.erp-brand,.blue-wordmark>span,.erp-page-heading h1,.erp-card h2,.erp-card h3{color:var(--ink)}
.blue-wordmark>svg,.erp-brand svg{color:var(--accent)}
.blue-wordmark>span{font-size:25px;letter-spacing:3px}
.erp-brand small,.sidebar-caption,.nav-label,.workspace-selector small,.sidebar-bottom small,.erp-footer,.breadcrumb,.page-heading-meta,.page-heading-meta small,#erp-page-subtitle,.workflow-help,.workflow-empty,.workflow-log small,.menu-tools p,.menu-search-label,.menu-search-result{color:var(--muted)}
.eyebrow{color:var(--accent)}
.erp-search,.workspace-selector,.profile-avatar,.workspace-avatar,.workspace-monogram{background:var(--p-soft);border-color:var(--line);color:var(--ink)}
.erp-search input{color:var(--ink)}.erp-search:focus-within{background:var(--p-raised);border-color:var(--p-ring)}
.demo-label{background:transparent;border-color:var(--line);color:var(--muted)}
.blue-health{background:var(--p-successbg);color:var(--p-success);border-color:transparent;box-shadow:none}
.connection-dot,.live-dot{background:var(--p-success);box-shadow:none}
.erp-footer,.sidebar-bottom{border-color:var(--line)}
.erp-card,.erp-grid-2>.erp-card:first-child,.erp-grid-2>.erp-card:nth-child(2),.production-chart{background:var(--p-surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 1px 0 var(--p-edge);border-radius:20px}
.erp-stat,.erp-grid-4 .erp-stat:nth-child(n){background:var(--p-surface);color:var(--ink);border:1px solid var(--line);box-shadow:none;border-radius:16px}
.erp-grid-4 .erp-stat:first-child{background:var(--p-soft);border-color:var(--line)}
.erp-stat>span,.erp-grid-4 .erp-stat:first-child>span,.erp-stat small,.erp-grid-4 .erp-stat:first-child small{color:var(--muted)}
.erp-stat strong,.erp-grid-4 .erp-stat:first-child strong{color:var(--ink)}
.erp-stat:after,.erp-grid-4 .erp-stat:first-child:after{background:var(--p-ring);border-color:var(--p-ring);border-radius:50%;transform:none}
.erp-button,button.primary,button.subtle{background:var(--p-raised);border-color:var(--line);color:var(--ink);border-radius:10px;box-shadow:none;min-height:44px}
.erp-button:hover{background:var(--p-soft)}
.erp-button.primary,button.primary{background:var(--accent);border-color:transparent;color:var(--p-onaccent);box-shadow:none}
.erp-button.primary:hover,button.primary:hover{background:var(--accent);filter:brightness(.95);box-shadow:none}
.erp-button.subtle,button.subtle,.erp-events li .erp-button{color:var(--accent);background:transparent}
.erp-button.subtle:hover,button.subtle:hover{background:var(--p-soft)}
.erp-table .erp-button.subtle{border-color:var(--line);min-height:40px}
.erp-button.danger{color:var(--p-danger);border-color:var(--p-dangerbg)}
.icon-button{background:transparent;border-color:var(--line);color:var(--ink);box-shadow:none;min-width:44px;min-height:44px}
.erp-table-wrap{background:transparent;scrollbar-color:var(--p-ring) transparent}
.erp-table th{background:var(--p-soft);color:var(--muted)}
.erp-table td,.erp-table td:nth-child(2){color:var(--ink);border-color:var(--line)}
.erp-table td:first-child,.erp-table td small{color:var(--muted)}
.erp-table tbody tr:hover{background:var(--p-soft)}
.erp-badge,.badge,.erp-badge.neutral{background:var(--p-soft);color:var(--muted);border-radius:6px}
.erp-badge.success,.erp-badge.approved,.erp-badge.active,.badge.success,.status-success{background:var(--p-successbg);color:var(--p-success)}
.erp-badge.warning,.erp-badge.pending,.badge.warning,.status-warning{background:var(--p-warningbg);color:var(--p-warning)}
.erp-badge.danger,.erp-badge.failed,.badge.danger,.status-danger{background:var(--p-dangerbg);color:var(--p-danger)}
.erp-badge.info,.erp-badge.progress,.badge.info{background:var(--accent-light);color:var(--accent)}
.erp-field input,.erp-field select,.erp-field textarea,.erp-form input,.erp-form select,.erp-form textarea,.menu-search-label input,.theme-control select{background:var(--p-raised);color:var(--ink);border:1px solid var(--line);border-radius:10px;color-scheme:inherit}
.erp-modal{background:var(--p-surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;box-shadow:var(--p-shadow)}
.erp-modal .modal-heading{border-color:var(--line)}
.erp-modal::backdrop{background:var(--p-scrim);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.erp-toast{background:var(--p-glass);color:var(--ink);border-color:var(--line);box-shadow:var(--p-shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.workflow-summary,.workflow-log li{border-color:var(--line)}
.workflow-summary>span{color:var(--muted)}.workflow-summary strong{color:var(--ink)}.workflow-log li{color:var(--ink)}
.positive{color:var(--p-success)}
.erp-bars progress,.erp-bars progress::-webkit-progress-bar,.progress-track{background:var(--p-soft)}
.erp-bars progress::-webkit-progress-value,.erp-grid-2>.erp-card:nth-child(2) .erp-bars progress::-webkit-progress-value{background:var(--p-ring)}
.erp-bars progress::-moz-progress-bar,.progress-fill{background:var(--p-ring)}
/* The factory remains a cinematic dark scene in both themes; do not recolour the artwork. */
.factory-scene{background:#03111e}
.factory-visual{filter:none;object-fit:contain}
.factory-hud{background:linear-gradient(145deg,#353c46eb,#171d28ed);border:1px solid #b4c4d944;color:#f1f5fa;border-radius:16px;box-shadow:0 10px 28px #0003,inset 0 1px #ffffff19;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.factory-hud:hover{border-color:#ccd8e28c;box-shadow:0 12px 30px #0004}
.factory-hud>svg{color:#dce4ed}.factory-hud i{background:conic-gradient(#b7cbd8 var(--ring),#47515c 0)}.factory-hud i:before{background:#272f3a}
.hud-stem{background:linear-gradient(#bdceda99,#a4bacf33);box-shadow:none}
.hud-stem:after{background:#dce5ed;border-color:#f4f7fb;box-shadow:0 0 0 4px #adc9e51a}
.factory-hud:hover .hud-stem:after{box-shadow:0 0 0 5px #adc9e526}
.scene-note{color:#b1bfcd}
/* Real tabs, not a decorative connected stepper. Status remains visible within each tab. */
.flow-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:5px;background:var(--p-soft);border:1px solid var(--line);border-radius:16px;align-items:stretch}
.flow-track:before{display:none}
.flow-step{display:flex;flex-direction:row;gap:7px;justify-content:center;align-items:center;min-height:50px;padding:10px 7px;color:var(--muted);font-size:13px;border:1px solid transparent;border-radius:11px;background:transparent;transition:background .18s,color .18s,box-shadow .18s}
.flow-step.complete{color:var(--ink)}
.flow-step.selected,.flow-step[aria-selected="true"]{color:var(--ink);background:var(--p-raised);border-color:var(--line);box-shadow:0 2px 6px #0000000a;font-weight:700}
.flow-step:hover{color:var(--ink);background:var(--p-surface)}
.flow-node,.flow-step.selected .flow-node{flex:none;width:16px;height:16px;margin:0;border:1px solid var(--p-ring);border-radius:50%;background:transparent;outline:none;box-shadow:none;color:var(--accent)}
.flow-step.complete .flow-node{background:var(--p-successbg);color:var(--p-success);border-color:transparent}
.flow-node svg{width:11px;height:11px}
.flow-detail{margin-top:14px;padding:0 4px 12px;min-height:65px;gap:16px;align-items:center}
.flow-detail p{color:var(--muted);font-size:12px;line-height:1.9;max-width:none}
.flow-detail button{font-size:11px;padding:9px 13px;min-height:44px}
.production-chart{padding:26px 25px 18px}
.chart-heading h2{color:var(--ink);font-size:23px;margin-bottom:20px;letter-spacing:-.5px}
.chart-heading>span,.chart-legend{color:var(--muted);font-size:11px}
.trend-svg text{fill:var(--muted)}.trend-svg .chart-tip{fill:var(--ink)}.trend-svg .chart-grid{stroke:var(--line);stroke-dasharray:3 7}.trend-svg circle{filter:none}
/* Neutral sidebar: no bright side stripe, no separate boxed pin tiles. */
.erp-sidebar{background:var(--sidebar);border-color:var(--line);color:var(--ink);box-shadow:none;scrollbar-color:var(--p-ring) transparent}
.erp-sidebar nav button,.erp-sidebar nav .nav-item>[data-page]{color:var(--muted);background:transparent;border:0;box-shadow:none;transform:none;border-radius:10px}
.erp-sidebar nav button:hover,.erp-sidebar nav .nav-item>[data-page]:hover{background:var(--p-soft);color:var(--ink);transform:none}
.erp-sidebar nav button.active,.erp-sidebar nav .nav-item>[data-page].active{color:var(--ink);background:var(--p-soft);box-shadow:none}
.erp-sidebar nav button.active svg{color:var(--ink)}
.nav-item{border-color:var(--line);gap:4px;align-items:center}
.erp-sidebar nav .menu-pin,.erp-sidebar nav .menu-pin[aria-pressed="true"]{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;min-width:40px;min-height:44px;padding:8px;margin:0;border:0;background:transparent;box-shadow:none;color:var(--muted)}
.erp-sidebar nav .menu-pin[aria-pressed="true"]{color:var(--accent)}
.erp-sidebar nav .menu-pin:hover{background:var(--p-soft);color:var(--ink)}
.menu-pin svg{width:16px!important;height:16px!important}
.menu-tools h2{color:var(--ink)}
.theme-control{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin:14px 0 10px}
.theme-control select{min-height:44px;padding:8px 12px;font:inherit;min-width:112px;cursor:pointer}
/* Independent floating surfaces: dock on the right, circular More on the left. */
.bottom-dock{display:flex;direction:rtl;align-items:center;gap:12px;margin:24px 43px;position:relative;isolation:isolate;background:none;border:0;box-shadow:none}
.bottom-dock .bottom-nav{position:static;display:flex;flex:1;min-width:0;gap:4px;margin:0;padding:7px;border:1px solid var(--p-edge);outline:1px solid var(--line);border-radius:25px;background:var(--p-dock);box-shadow:var(--p-shadow);-webkit-backdrop-filter:blur(24px) saturate(1.2);backdrop-filter:blur(24px) saturate(1.2)}
.bottom-dock .bottom-nav button{min-width:0;min-height:65px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:18px;font-size:10px;gap:5px;box-shadow:none;max-width:none;padding:8px 4px}
.bottom-dock .bottom-nav button svg{width:23px;height:23px;color:inherit;stroke-width:1.6}
.bottom-dock .bottom-nav button.active{background:var(--p-raised);color:var(--ink);border-color:var(--line);box-shadow:0 2px 7px #00000008}
.bottom-dock .bottom-nav button.active svg{color:var(--ink)}
.bottom-dock .bottom-nav button:hover{background:var(--p-soft);color:var(--ink)}
.bottom-dock>.bottom-more{display:none}
@media(max-width:800px){
 .erp-header{height:76px;padding-left:22px;padding-right:22px}.blue-wordmark>span{font-size:22px}.blue-wordmark>svg{width:30px;height:26px}
 .erp-page-heading{padding-top:27px;padding-bottom:24px}#erp-page-title{font-size:25px}
 .factory-scene{margin-bottom:20px}.factory-hud{border-radius:13px}.scene-note{font-size:9px}
 .flow-track{gap:3px;padding:4px;border-radius:14px}.flow-step{flex-direction:column;font-size:12px;gap:7px;min-height:66px;padding:9px 2px;border-radius:10px}
 .flow-node,.flow-step.selected .flow-node{width:15px;height:15px;margin:0;border-width:1px;box-shadow:none;outline:none}
 .flow-detail p{font-size:11px}.flow-detail button{font-size:10px;padding:8px 10px}.flow-detail{gap:10px;margin-top:12px}
 .production-chart{padding:21px 16px 12px;border-radius:20px}.chart-heading h2{font-size:23px}.chart-heading>span{font-size:10px}
 .bottom-dock{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:35;gap:10px;margin:22px 16px 20px}
 .bottom-dock .bottom-nav{border-radius:23px;padding:6px;gap:2px}
 .bottom-dock .bottom-nav button{min-height:62px;font-size:9px;border-radius:17px;padding:6px 2px;gap:5px}
 .bottom-dock .bottom-nav button svg{width:22px;height:22px}
 .bottom-dock>.bottom-more{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;min-width:52px;min-height:52px;padding:13px;border:1px solid var(--p-edge);outline:1px solid var(--line);border-radius:50%;background:var(--p-dock);box-shadow:var(--p-shadow);color:var(--ink);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
 .bottom-dock>.bottom-more:hover,.bottom-dock>.bottom-more[aria-expanded="true"]{background:var(--p-raised)}
 .bottom-dock>.bottom-more svg{width:23px!important;height:23px!important}
 .erp-sidebar{padding:0 22px calc(24px + env(safe-area-inset-bottom,0px));max-height:86vh;max-height:86dvh;border-radius:29px 29px 0 0;border:1px solid var(--p-edge);background:var(--p-glass);box-shadow:0 -15px 65px #0002;-webkit-backdrop-filter:blur(35px) saturate(1.3);backdrop-filter:blur(35px) saturate(1.3)}
 .menu-tools{position:sticky;top:0;z-index:4;padding:15px 2px 13px;margin:0 -2px 8px;background:var(--p-glass);-webkit-backdrop-filter:blur(25px);backdrop-filter:blur(25px);border-bottom:1px solid var(--line)}
 .sheet-handle{background:var(--p-ring);width:34px;height:4px;opacity:.65}
 .menu-tools h2{font-size:23px;line-height:44px;padding-left:55px;margin:10px 0 13px;color:var(--ink)}
 .erp-sidebar .mobile-menu-close{position:absolute;top:32px;left:0;right:auto;float:none;margin:0;width:44px;height:44px;min-width:44px;padding:11px;border:0;border-radius:50%;background:var(--p-soft);color:var(--ink);box-shadow:none;z-index:5!important}
 .menu-search-label{font-size:11px;color:var(--muted);gap:6px}.menu-search-label input{font-size:16px;min-height:46px;padding:10px 13px}
 .menu-tools p{font-size:10px;margin:9px 0 0;line-height:1.8}.theme-control{margin-top:10px;margin-bottom:0}
 .erp-sidebar nav{display:grid;grid-template-columns:1fr;gap:1px;padding:0 0 8px}
 .erp-sidebar nav .nav-label{font-size:10px;margin:17px 0 6px;padding:0 10px;color:var(--muted)}
 .erp-sidebar nav .nav-item{border-bottom:1px solid var(--line);gap:8px;min-height:53px}
 .erp-sidebar nav .nav-item>[data-page]{font-size:13px;gap:12px;padding:11px 12px;min-height:48px;margin:2px 0}
 .erp-sidebar nav .nav-item>[data-page] svg{width:19px;height:19px;stroke-width:1.6}
 .erp-sidebar nav .menu-pin{flex-basis:44px;width:44px;min-width:44px;min-height:44px}
 .menu-scrim:not([hidden]){background:var(--p-scrim);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
 .erp-toast{bottom:calc(108px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){
 .bottom-dock{gap:8px;margin-left:11px;margin-right:11px}.bottom-dock .bottom-nav{padding:4px}.bottom-dock .bottom-nav button{font-size:8px;min-height:60px;gap:4px}.bottom-dock .bottom-nav button svg{width:21px;height:21px}.bottom-dock>.bottom-more{width:46px;height:46px;flex-basis:46px;min-width:46px;min-height:46px;padding:11px}
 .flow-step{font-size:11px}.flow-detail{flex-wrap:wrap}.flow-detail p{flex:1 1 160px;font-size:10px}.chart-heading h2{font-size:21px}.chart-heading>span{font-size:9px}
 .erp-sidebar{padding-left:16px;padding-right:16px}.erp-sidebar nav .nav-item>[data-page]{font-size:12px}
}
@media(prefers-reduced-transparency:reduce){.erp-sidebar,.menu-tools,.erp-header{background:var(--p-surface);backdrop-filter:none;-webkit-backdrop-filter:none}.bottom-dock .bottom-nav,.bottom-dock>.bottom-more{background:var(--p-raised)}}
@media(prefers-reduced-motion:reduce){.flow-step,.erp-sidebar,.bottom-dock button{transition:none}}
@media print{body{background:#fff;color:#111}.bottom-dock,.theme-control{display:none}.erp-card,.erp-stat,.production-chart{background:#fff;color:#111;box-shadow:none}}
/* Chart paint uses theme tokens rather than hard-coded neon SVG attributes. */
.trend-svg #chart-fill stop{stop-color:var(--p-ring)}
.trend-svg #chart-fill stop:first-child{stop-opacity:.3}
.trend-svg #chart-stroke stop{stop-color:var(--accent)}
.trend-svg circle{fill:var(--p-raised);stroke:var(--accent)}
.trend-svg rect{fill:var(--p-raised);stroke:var(--line)}
.chart-disclaimer{font-size:10px;line-height:1.8;color:var(--muted);margin:8px 4px 0}
.erp-events li{border-color:var(--line)}
.erp-events li>span,.erp-events li small{color:var(--muted)}
body[data-page="dashboard"] .erp-page-heading h1:after{background:var(--p-ring);height:2px;width:32px}
.operations-flow{background:transparent;border-color:var(--line);border-radius:0}
h1{color:var(--ink)}.eyebrow:before{background:var(--p-ring)}
.erp-toolbar{border-color:var(--line)}.erp-field,.erp-field label,.erp-detail-list dt{color:var(--muted)}
.icon-button:hover{background:var(--p-soft)}
.erp-note{background:var(--accent-light);border-color:var(--line);color:var(--accent)}
.erp-bars>div span,.erp-bars>div b{color:var(--muted)}.loading-state{background:var(--p-surface)}
.page-heading-meta .live-dot{background:var(--p-success);box-shadow:none}

/* Dashboard masthead follows the approved Isatis visual reference. */
.erp-header .header-trace{display:none}
body[data-page="dashboard"] .erp-header{
  position:relative;direction:ltr;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;
  isolation:isolate;padding:14px clamp(18px,4.7vw,42px) 0;min-height:58px;height:58px;
  border:0;box-shadow:none;background:transparent;z-index:2
}
body[data-page="dashboard"] .erp-header:before,body[data-page="dashboard"] .erp-header:after{display:none}
body[data-page="dashboard"] .erp-header .header-trace{
  display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:#179ad2;z-index:-1;
  fill:none;stroke-width:1
}
body[data-page="dashboard"] .erp-header .header-start,
body[data-page="dashboard"] .erp-header .header-end{direction:ltr;display:flex;align-items:center;justify-content:flex-start;gap:0;flex:none}
body[data-page="dashboard"] .erp-header .menu-toggle,
body[data-page="dashboard"] .erp-header .erp-search,
body[data-page="dashboard"] .erp-header .demo-label{display:none}
body[data-page="dashboard"] .blue-wordmark{
  display:inline-flex;direction:ltr;align-items:center;gap:10px;margin:0;padding:0;min-height:27px;
  color:var(--ink,#1d1d1f);line-height:1
}
body[data-page="dashboard"] .blue-wordmark>svg{width:33px;height:25px;color:#19c4f2}
body[data-page="dashboard"] .blue-wordmark>span{
  font:700 clamp(20px,5vw,28px)/1 Arial,sans-serif;letter-spacing:.09em;transform:scaleX(1.11);transform-origin:left center
}
body[data-page="dashboard"] .blue-health{
  display:grid;place-items:center;width:24px;height:24px;margin:0;border-radius:50%;
  color:#007c7a;border:1px solid currentColor;background:transparent;box-shadow:0 0 10px rgba(0,169,171,.17)
}
body[data-page="dashboard"] .blue-health svg{width:16px;height:16px;stroke-width:1.9}
html[data-theme="dark"] body[data-page="dashboard"] .blue-wordmark{color:#f9fafc}
html[data-theme="dark"] body[data-page="dashboard"] .blue-health{color:#11eddc;box-shadow:0 0 12px #0ae7d64d}
@media(max-width:800px){
  body[data-page="dashboard"] .erp-page-heading{padding:7px clamp(14px,3.7vw,27px) 13px;min-height:0}
  body[data-page="dashboard"] .erp-page-heading h1{font-size:clamp(27px,7.2vw,42px);line-height:1.25;margin:0}
  body[data-page="dashboard"] .erp-page-heading h1:after{width:53px;height:2px;margin-top:10px}
}
/* Blend the dark masthead into the unchanged cinematic scene. */
html[data-theme="dark"] body[data-page="dashboard"] .erp-header{background:#06101e}
html[data-theme="dark"] body[data-page="dashboard"] .erp-page-heading{
  background:linear-gradient(180deg,#06101e 0%,#03111e 100%)
}
html[data-theme="dark"] body[data-page="dashboard"] .erp-page-heading h1:after{
  background:linear-gradient(90deg,transparent,#16eddf)
}
@media(max-width:800px){
  body[data-page="dashboard"] .erp-page-heading{padding-top:7px;padding-bottom:21px}
  body[data-page="dashboard"] .erp-page-heading h1{font-size:clamp(29px,8.2vw,43px);letter-spacing:0}
  body[data-page="dashboard"] .erp-page-heading h1:after{bottom:-12px;width:53px}
}

/* Read-only local demo assistant. Uses the Pearl theme tokens. */
.erp-copilot{position:relative;margin:4px 0 24px;padding:24px;background:var(--p-glass,var(--p-surface));border:1px solid var(--line);border-radius:20px;box-shadow:var(--p-shadow);color:var(--ink);isolation:isolate}.copilot-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.copilot-heading-start{display:flex;align-items:center;gap:12px}.copilot-mark{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:var(--p-soft);color:var(--accent);border:1px solid var(--p-edge)}.copilot-mark svg{width:25px;height:25px;stroke-width:1.4}.copilot-heading h2{margin:0;font-size:19px;letter-spacing:-.4px;color:var(--ink);font-weight:650}.copilot-heading p{margin:3px 0 0;font-size:10px;color:var(--muted)}.copilot-label{white-space:nowrap;border:1px solid var(--line);padding:4px 9px;border-radius:5px;color:var(--muted);font-size:9px;background:var(--p-raised)}.copilot-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.copilot-suggestions button{border:1px solid var(--line);border-radius:8px;background:var(--p-raised);color:var(--ink);font-size:10px;padding:8px 12px;min-height:38px;transition:background .16s,border-color .16s}.copilot-suggestions button:hover{background:var(--p-soft);border-color:var(--p-ring)}.copilot-form{display:flex;gap:8px;align-items:center;margin:0 0 17px;padding:6px;background:var(--p-raised);border:1px solid var(--line);border-radius:12px}.copilot-form:focus-within{border-color:var(--p-ring);box-shadow:0 0 0 2px var(--p-soft)}.copilot-form input{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);padding:9px 10px;outline:none;font-size:12px}.copilot-form input::placeholder{color:var(--muted);opacity:.85}.copilot-form input:focus-visible{outline:none}.copilot-form button{border:0;width:40px;height:40px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:var(--accent);color:var(--p-onaccent)}.copilot-form button:hover{filter:brightness(1.1)}.copilot-form button svg{width:20px;height:20px}.copilot-answer{padding:19px 20px;background:var(--p-soft);border-radius:12px;border:1px solid var(--line)}.copilot-answer-heading{display:flex;gap:8px;align-items:center}.copilot-answer h3{font-size:13px;font-weight:650;margin:0;color:var(--ink)}.copilot-answer-dot{width:6px;height:6px;border-radius:50%;background:var(--p-success);flex-shrink:0}.copilot-answer p{font-size:11px;line-height:2.1;color:var(--ink);margin:9px 0 10px}.copilot-answer ul{padding:0 16px 0 0;margin:0 0 10px;color:var(--muted);font-size:10px;line-height:2.1}.copilot-answer li{padding:2px 0}.copilot-answer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:9px;margin-top:12px}.copilot-answer-footer .erp-button{font-size:10px;min-height:36px;padding:6px 0;background:transparent;border:0;color:var(--accent);gap:8px}.copilot-answer-footer small{font-size:8px;color:var(--muted)}.copilot-disclaimer{font-size:8px;color:var(--muted);margin:12px 2px 0;line-height:1.9}.erp-copilot .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:650px){.erp-copilot{padding:18px;margin:4px 0 20px;border-radius:17px}.copilot-heading{gap:8px;margin-bottom:17px}.copilot-heading-start{gap:9px}.copilot-mark{width:35px;height:35px;border-radius:10px}.copilot-mark svg{width:21px;height:21px}.copilot-heading h2{font-size:16px}.copilot-heading p{font-size:9px}.copilot-label{font-size:8px;padding:3px 6px}.copilot-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.copilot-suggestions button{min-height:44px;text-align:center;font-size:9px;padding:7px 5px;line-height:1.7}.copilot-form input{font-size:16px;padding:9px 6px}.copilot-form input::placeholder{font-size:12px}.copilot-form button{width:44px;height:44px}.copilot-answer{padding:16px 14px;border-radius:10px}.copilot-answer p{font-size:11px}.copilot-answer ul{font-size:10px}.copilot-answer-footer{flex-wrap:wrap;gap:0}.copilot-answer-footer .erp-button{min-height:44px}.copilot-answer-footer small{font-size:8px}.copilot-disclaimer{font-size:8px}.copilot-heading h2{letter-spacing:-.3px}}@media(max-width:380px){.erp-copilot{padding:15px}.copilot-heading-start{gap:7px}.copilot-heading h2{font-size:14px}.copilot-heading p{font-size:8px}.copilot-mark{width:31px;height:31px}.copilot-label{font-size:7px;padding:3px 5px}.copilot-answer-footer{flex-direction:column;align-items:flex-start}.copilot-suggestions button{font-size:8px}}@media(prefers-reduced-motion:reduce){.copilot-suggestions button{transition:none}}@media print{.copilot-form,.copilot-suggestions{display:none}.erp-copilot{break-inside:avoid}}

/* Sales chart: typography stays in CSS pixels, never shrinks with the SVG. */
.production-chart.sales-polished{padding:28px 30px 19px;overflow:hidden;background:var(--p-surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:0 1px 0 var(--p-edge)}
.sales-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.sales-title-row h2{font-size:19px;line-height:1.5;letter-spacing:-.4px;font-weight:700;margin:0;color:var(--ink)}
.sales-period{font-size:11px;color:var(--muted);white-space:nowrap}
.sales-metric-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:25px;border-bottom:1px solid var(--line);margin-bottom:19px}
.sales-current-label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.sales-current{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;line-height:1.25}
.sales-current strong{font-size:55px;letter-spacing:-2px;font-weight:700;line-height:1.15;color:var(--ink);font-variant-numeric:tabular-nums}
.sales-current>span{font-size:12px;color:var(--muted)}
.sales-growth{text-align:left;flex:none;padding-bottom:4px}
.sales-growth>span{display:flex;align-items:center;gap:5px;justify-content:flex-end;color:var(--p-success);font-size:19px;line-height:1.4;direction:ltr}
.sales-growth svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;fill:none}
.sales-growth b{font-weight:600;font-variant-numeric:tabular-nums}.sales-growth small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.sales-growth.is-negative>span{color:var(--p-danger)}.sales-growth.is-negative svg{transform:rotate(90deg)}
.sales-plot-label{font-size:10px;color:var(--muted);text-align:left;margin-bottom:4px}
.sales-chart-grid{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;row-gap:3px;direction:ltr;min-width:0;width:100%}
.sales-axis{height:220px;position:relative;color:var(--muted);font-size:11px;line-height:1;direction:rtl;font-variant-numeric:tabular-nums}
.sales-axis>span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.sales-plot{height:220px;min-width:0;width:100%}
.sales-svg{width:100%;height:100%;display:block;overflow:visible;fill:none;stroke:none}
.sales-grid-line{fill:none;stroke:var(--line);stroke-width:1;stroke-dasharray:3 6;vector-effect:non-scaling-stroke}
#sales-pearl-area stop:first-child{stop-color:var(--accent);stop-opacity:.17}#sales-pearl-area stop:last-child{stop-color:var(--accent);stop-opacity:.015}
.sales-area{fill:url(#sales-pearl-area);stroke:none}
.sales-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.sales-point{fill:var(--p-surface);stroke:var(--accent);stroke-width:1.7;vector-effect:non-scaling-stroke;filter:none}
.sales-point-current{fill:var(--accent);stroke:var(--p-surface);stroke-width:2.5}
.sales-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;min-width:0;font-size:11px;line-height:1.8;color:var(--muted);text-align:center;direction:ltr}
.sales-months>span{direction:rtl;white-space:nowrap}.sales-months .is-current{color:var(--ink);font-weight:700}
.sales-polished .chart-disclaimer{font-size:10px;line-height:1.9;color:var(--muted);margin:23px 0 0;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:800px){
 .production-chart.sales-polished{padding:22px 20px 16px;border-radius:22px}.sales-title-row{margin-bottom:22px}.sales-title-row h2{font-size:19px}.sales-current strong{font-size:49px}.sales-metric-row{padding-bottom:21px;margin-bottom:16px}.sales-current{gap:8px}.sales-current>span{font-size:11px}.sales-growth>span{font-size:18px}.sales-chart-grid{grid-template-columns:36px minmax(0,1fr);column-gap:8px}.sales-plot,.sales-axis{height:200px}.sales-months,.sales-axis{font-size:11px}.sales-polished .chart-disclaimer{margin-top:19px}
}
@media(max-width:390px){
 .production-chart.sales-polished{padding:19px 13px 14px}.sales-title-row{margin-bottom:20px}.sales-current strong{font-size:42px}.sales-current{gap:6px}.sales-current>span{font-size:10px}.sales-growth>span{font-size:16px}.sales-growth small{font-size:9px}.sales-metric-row{gap:8px}.sales-chart-grid{grid-template-columns:34px minmax(0,1fr);column-gap:5px}.sales-months{font-size:10px}.sales-axis{font-size:10px}.sales-period{font-size:10px}.sales-plot,.sales-axis{height:190px}
}

/* Transparent factory cutout sits on the same surface as the dashboard. */
html body[data-page="dashboard"] .erp-header,html body[data-page="dashboard"] .erp-page-heading{background:transparent}
.operations-overview .factory-scene{background:transparent}
.operations-overview .factory-scene .scene-vignette{display:none}
.operations-overview .factory-visual{inset:auto 0 20px;height:81%;object-fit:contain;object-position:center bottom}
.operations-overview .factory-scene .scene-note{color:var(--muted);font-size:10px;bottom:3px}
html[data-theme="light"] .operations-overview .factory-scene .hud-stem{
  background:linear-gradient(180deg,#4b6683aa,#296ca4dd)
}
@media(max-width:800px){
 .operations-overview .factory-scene{height:clamp(298px,75vw,490px);margin-bottom:20px}
 .operations-overview .factory-visual{height:78%;bottom:20px}
}
@media(max-width:370px){
 .operations-overview .factory-scene{height:288px}
 .operations-overview .factory-scene .factory-hud{min-width:86px;gap:4px}
}

/* Navigation edition 7. Append after the complete copilot-release stylesheet.
   Dashboard artwork, chart, assistant and data components are intentionally untouched. */
.erp-header .header-end,body[data-page="dashboard"] .erp-header .header-end{display:flex;align-items:center;gap:8px;direction:ltr;flex:none}
.header-end .blue-health{order:0;flex:none}
.header-end .header-theme{order:1}
.header-end .sidebar-toggle{order:2}
.erp-header .header-theme{position:relative;display:grid;place-items:center;width:40px;height:40px;min-width:40px;margin:-8px 0 0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--p-glass);color:var(--ink);box-shadow:inset 0 1px var(--p-edge);cursor:pointer}
.erp-header .header-theme>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;pointer-events:none}
.erp-header .header-theme>span,.erp-header .header-theme .theme-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.erp-header .header-theme select{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;font-size:16px;border:0;border-radius:50%}
.erp-header .header-theme:hover{background:var(--p-raised)}
.erp-header .header-theme:focus-within{outline:2px solid var(--p-ring);outline-offset:3px}
.erp-header .sidebar-toggle{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:10px;margin:-8px 0 0;border:1px solid var(--line);border-radius:50%;background:var(--p-glass);color:var(--ink);box-shadow:inset 0 1px var(--p-edge)}
.erp-header .sidebar-toggle svg{width:19px;height:19px}
.erp-header .sidebar-toggle:hover{background:var(--p-raised)}
.erp-header .sidebar-toggle:focus-visible,.erp-sidebar button:focus-visible,.bottom-dock button:focus-visible{outline:2px solid var(--p-ring);outline-offset:3px}
/* Brand consistency: same drawn mark as the masthead, not an alternate pictogram. */
.erp-sidebar .erp-brand{gap:11px;color:var(--ink);margin:0;padding:0;line-height:1.25;font-size:23px}
.erp-sidebar .erp-brand .brand-mark{width:34px;height:29px;flex:none;stroke:none;fill:none}
.erp-sidebar .erp-brand small{font-size:9px;line-height:1.7;color:var(--muted);margin-top:6px;font-weight:400}
/* Flat, aligned rows. Pin remains a real, separate 44px touch target. */
.erp-sidebar nav .nav-item{display:flex;gap:4px;align-items:center;border:0;border-bottom:1px solid var(--line);border-radius:0;min-width:0;padding:2px 0}
.erp-sidebar nav .nav-item>[data-page]{flex:1;min-width:0;min-height:46px;margin:0;padding:11px 12px;gap:11px;font-size:12px;color:var(--muted);border:0;border-radius:11px;box-shadow:none;background:none;transform:none;text-align:right}
.erp-sidebar nav .nav-item>[data-page] svg{width:19px;height:19px;flex:none}
.erp-sidebar nav .nav-item>[data-page].active{background:var(--p-soft);color:var(--ink);box-shadow:none}
.erp-sidebar nav .nav-item>[data-page]:hover{background:var(--p-soft);color:var(--ink);transform:none}
.erp-sidebar nav .menu-pin,.erp-sidebar nav .menu-pin[aria-pressed="true"]{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:12px;margin:0;border:0;border-radius:50%;box-shadow:none;background:none;color:var(--muted);opacity:.75}
.erp-sidebar nav .menu-pin[aria-pressed="true"]{color:var(--accent);opacity:1}
.erp-sidebar nav .menu-pin:hover{opacity:1;background:var(--p-soft)}
.erp-sidebar nav .menu-pin svg{width:16px!important;height:16px!important;stroke-width:1.6}
.erp-sidebar nav .nav-label{color:var(--muted);font-size:10px;padding:0 12px;margin:18px 0 7px;letter-spacing:0}
/* A tidy, self-contained sheet toolbar; the theme selector now lives in the header. */
.erp-sidebar .menu-tools{position:sticky;top:0;z-index:4;background:var(--p-glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);padding:15px 0 14px;margin:0 0 9px;border-bottom:1px solid var(--line)}
.erp-sidebar .menu-tools h2{display:block;font-size:21px;font-weight:650;line-height:44px;padding:0 55px 0 0;margin:8px 0 13px;color:var(--ink);text-align:right}
.erp-sidebar .mobile-menu-close{display:grid;place-items:center;position:absolute;top:29px;right:0;left:auto;float:none;margin:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border:0;border-radius:50%;color:var(--muted);background:var(--p-soft);box-shadow:none;z-index:5!important}
.erp-sidebar .mobile-menu-close:hover{color:var(--ink);background:var(--p-raised)}
.erp-sidebar .mobile-menu-close svg{width:19px;height:19px}
.erp-sidebar .menu-search-label{display:flex;gap:7px;margin:0;color:var(--muted);font-size:10px;line-height:1.8}
.erp-sidebar .menu-search-label input{width:100%;min-width:0;min-height:45px;font-size:14px;border:1px solid var(--line);border-radius:12px;background:var(--p-surface);color:var(--ink);padding:10px 13px;box-shadow:inset 0 1px var(--p-edge)}
.erp-sidebar .menu-tools p{font-size:10px;line-height:1.8;margin:9px 0 0;color:var(--muted)}
.erp-sidebar .menu-search-result{font-size:11px;margin:8px 0 0;line-height:1.8}
@media(min-width:801px){
 .erp-sidebar{position:fixed;inset:16px 16px 16px auto;width:258px;max-height:none;padding:24px 16px 14px;border:1px solid var(--p-edge);outline:1px solid var(--line);border-radius:26px;background:var(--p-glass);color:var(--ink);box-shadow:0 15px 42px #1218230a;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);transform:none;visibility:visible;transition:transform .24s ease,visibility .24s;scrollbar-width:thin;scrollbar-color:var(--p-ring) transparent;overflow-y:auto}
 .erp-main{margin-right:290px;margin-left:0;min-width:0;transition:margin-right .24s ease}
 body.sidebar-collapsed .erp-sidebar{transform:translateX(calc(100% + 24px));visibility:hidden;pointer-events:none}
 body.sidebar-collapsed .erp-main{margin-right:0}
 .erp-sidebar .erp-brand{margin:0 5px 23px;padding:0}
 .erp-sidebar .workspace-selector{margin-bottom:15px;padding:10px;border-radius:12px}
 .erp-sidebar .sidebar-caption{display:none}
 .erp-sidebar .menu-tools{padding-top:0;margin-top:0}
 .erp-sidebar .menu-tools h2{font-size:17px;margin:0 0 10px;padding-right:48px;line-height:40px}
 .erp-sidebar .mobile-menu-close{top:0;right:0;width:40px;height:40px;min-width:40px;min-height:40px;padding:10px}
 .erp-sidebar .menu-tools .sheet-handle{display:none}
 .erp-sidebar .menu-search-label input{min-height:42px;font-size:12px}
 .erp-sidebar nav{padding-bottom:8px;display:block}
 .erp-sidebar .sidebar-bottom{margin-top:20px;padding:16px 3px 0;border-color:var(--line)}
 /* Physically moved just after header in HTML; remains in normal page flow. */
 .erp-main>.bottom-dock{position:relative;inset:auto;z-index:3;width:auto;max-width:100%;margin:18px clamp(24px,3.2vw,43px) 0;padding:0;gap:10px;border:0;background:none;box-shadow:none}
 .erp-main>.bottom-dock .bottom-nav{justify-content:flex-start;gap:4px;width:100%;padding:5px;border-radius:18px;box-shadow:0 4px 15px #00000005;background:var(--p-glass);border-color:var(--p-edge);outline-color:var(--line)}
 .erp-main>.bottom-dock .bottom-nav button{display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:43px;font-size:11px;gap:8px;padding:9px 10px;border-radius:13px;flex:1;white-space:nowrap}
 .erp-main>.bottom-dock .bottom-nav button svg{width:18px;height:18px}
 .erp-main>.bottom-dock .bottom-more{display:none}
}
@media(min-width:801px) and (max-width:1080px){
 .erp-sidebar{width:234px;right:12px;top:12px;bottom:12px;padding-right:12px;padding-left:12px;border-radius:23px}.erp-main{margin-right:258px}
 .erp-main>.bottom-dock{margin-left:22px;margin-right:22px}.erp-main>.bottom-dock .bottom-nav button{font-size:10px;padding:8px 5px;gap:5px}.erp-main>.bottom-dock .bottom-nav button svg{width:17px;height:17px}
}
@media(max-width:800px){
 .erp-header .sidebar-toggle{display:none}
 .erp-header .header-theme{width:40px;height:40px;min-width:40px;margin-top:-8px}
 .erp-header .header-end,body[data-page="dashboard"] .erp-header .header-end{gap:10px}
 .erp-main{margin-right:0!important;margin-left:0;min-width:0;padding-bottom:calc(103px + env(safe-area-inset-bottom,0px))}
 .erp-sidebar{position:fixed;inset:auto 0 0;width:100%;max-height:88vh;max-height:88dvh;padding:0 22px calc(23px + env(safe-area-inset-bottom,0px));border:1px solid var(--p-edge);border-bottom:0;border-radius:28px 28px 0 0;background:var(--p-glass);-webkit-backdrop-filter:blur(30px) saturate(1.15);backdrop-filter:blur(30px) saturate(1.15);transform:translateY(110%);visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility .25s;box-shadow:0 -15px 65px #0002;z-index:90;overflow-y:auto;overscroll-behavior:contain}
 .erp-sidebar.mobile-open{transform:translateY(0);visibility:visible;pointer-events:auto}
 .erp-sidebar .menu-tools{padding-top:15px;padding-bottom:15px}
 .erp-sidebar .sheet-handle{height:4px;width:32px;margin:0 auto 7px;background:var(--p-ring);opacity:.55}
 .erp-sidebar .menu-tools h2{padding-right:0;padding-left:54px;margin-top:10px;margin-bottom:15px;font-size:22px;line-height:44px}
 .erp-sidebar .mobile-menu-close{right:auto;left:0;top:29px}
 .erp-sidebar .menu-search-label input{font-size:16px;min-height:46px;padding:10px 14px}
 .erp-sidebar nav{display:grid;grid-template-columns:1fr;gap:2px;padding:0 0 8px}
 .erp-sidebar nav .nav-item>[data-page]{font-size:13px;min-height:48px}
 .erp-sidebar .erp-brand{display:none}
 /* Fixed at the viewport, not sticky at the old document position. */
 .erp-main>.bottom-dock{position:fixed;right:16px;left:16px;bottom:calc(12px + env(safe-area-inset-bottom,0px));top:auto;z-index:35;width:auto;max-width:620px;margin:0 auto;padding:0;display:flex;align-items:center;gap:10px;direction:rtl;border:0;background:none;box-shadow:none}
 .erp-main>.bottom-dock .bottom-nav{position:static;min-width:0;flex:1;margin:0;padding:6px;gap:2px;border-radius:23px;background:var(--p-dock);border:1px solid var(--p-edge);outline:1px solid var(--line);box-shadow:var(--p-shadow)}
 .erp-main>.bottom-dock .bottom-nav button{flex:1;min-width:0;font-size:9px;min-height:62px;padding:6px 2px;gap:5px;border-radius:17px;white-space:nowrap}
 .erp-main>.bottom-dock>.bottom-more{display:grid;place-items:center;width:52px;height:52px;min-width:52px;min-height:52px;flex:0 0 52px;margin:0;padding:13px;border-radius:50%;background:var(--p-dock);border:1px solid var(--p-edge);outline:1px solid var(--line);box-shadow:var(--p-shadow);color:var(--ink)}
 .erp-main>.bottom-dock>.bottom-more:focus-visible{outline:2px solid var(--p-ring);outline-offset:4px}
 .erp-toast{bottom:calc(105px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:390px){
 .erp-main>.bottom-dock{right:11px;left:11px;gap:8px}.erp-main>.bottom-dock .bottom-nav{padding:4px}.erp-main>.bottom-dock .bottom-nav button{font-size:8px;min-height:60px}.erp-main>.bottom-dock>.bottom-more{width:46px;height:46px;min-width:46px;min-height:46px;flex-basis:46px;padding:11px}
 .erp-sidebar{padding-left:16px;padding-right:16px}.erp-sidebar nav .nav-item>[data-page]{font-size:12px}.erp-header .header-end,body[data-page="dashboard"] .erp-header .header-end{gap:8px}
}
@media(prefers-reduced-motion:reduce){.erp-sidebar,.erp-main{transition:none}}
@media print{.erp-main>.bottom-dock,.header-theme,.sidebar-toggle,.erp-sidebar{display:none!important}.erp-main{margin:0!important;padding-bottom:0}}
/* One graphite surface family in dark mode; the brand trace/status stay turquoise. */
html[data-theme="dark"]{
 --paper:#191b20;--sidebar:#22252b;--p-surface:#24272e;--p-raised:#2d3139;--p-soft:#30343d;
 --line:#3a3e47;--p-glass:rgba(36,39,46,.94);--p-edge:#ffffff14;
 --p-dock:linear-gradient(145deg,rgba(54,58,68,.97),rgba(36,39,46,.97));
 --ink:#eef0f4;--muted:#a5aab5;--p-shadow:0 12px 35px #0004,0 1px 3px #0002;
}
html[data-theme="dark"] body,html[data-theme="dark"] .erp-main{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] body .erp-header,html[data-theme="dark"] body[data-page="dashboard"] .erp-header,
html[data-theme="dark"] body .erp-page-heading,html[data-theme="dark"] body[data-page="dashboard"] .erp-page-heading{background:var(--paper);color:var(--ink);box-shadow:none}
html[data-theme="dark"] .erp-sidebar,html[data-theme="dark"] .erp-sidebar .menu-tools{background:var(--p-glass);border-color:var(--line)}
html[data-theme="dark"] .erp-main>.bottom-dock{background:none;border:0;box-shadow:none}
html[data-theme="dark"] .erp-main>.bottom-dock .bottom-nav,html[data-theme="dark"] .erp-main>.bottom-dock>.bottom-more{background:var(--p-dock)}
html[data-theme="dark"] .operations-overview .factory-scene{background:transparent}

.erp-copilot .copilot-answer{background:var(--p-surface);border:1px solid var(--line);box-shadow:inset 0 1px 0 var(--p-edge);padding:clamp(15px,2.8vw,26px);border-radius:16px}
.copilot-answer h3{font-size:clamp(15px,2vw,18px);font-weight:680}
.copilot-answer p{font-size:13px;line-height:1.9;color:var(--ink);margin:12px 0 10px}
.copilot-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:15px 0 8px;padding-block:10px;border-block:1px solid var(--line)}
.copilot-metrics>div{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:2px;padding-inline:clamp(6px,2vw,18px);border-inline-start:1px solid var(--line)}
.copilot-metrics>div:first-child{border:0;padding-inline-start:0}
.copilot-metrics dt{margin:0;color:var(--muted);font-size:clamp(10px,1.4vw,12px);line-height:1.5}
.copilot-metrics dd{margin:0;color:var(--ink);font-size:clamp(22px,3vw,31px);font-weight:650;line-height:1.2}
.copilot-answer .copilot-insights{list-style:none;margin:8px 0 0;padding:0;color:var(--muted);font-size:12px;line-height:1.65}
.copilot-insights>li{position:relative;padding:7px 16px 7px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.copilot-insights>li:last-child{border-bottom:0}
.copilot-insights>li:before{content:"";position:absolute;top:13px;right:3px;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.copilot-answer-footer .erp-button{font-size:12px}
.copilot-answer-footer small,.copilot-disclaimer{font-size:10px}
.copilot-form input::placeholder{font-size:clamp(12px,2vw,14px);opacity:1}


/* Same animated moon-to-sun control as the Amid Clinic portal. */
.header-end .clinic-theme-switch{display:grid;place-items:center;order:1;flex:none;width:44px;height:44px;margin:-8px -3px 0;cursor:pointer;border-radius:50%;line-height:1;--light-text:var(--ink)}
.clinic-theme-switch:focus-within{outline:2px solid var(--p-ring);outline-offset:1px}
.clinic-theme-switch input{background:none;border:0;margin:0;padding:0;flex:none;touch-action:manipulation}
.clinic-theme-switch input{--size: 24px !important;appearance:none;-webkit-appearance:none;outline:none;cursor:pointer;width:var(--size)!important;height:var(--size)!important;box-shadow:inset calc(var(--size) * .33) calc(var(--size) * -.25) 0!important;border-radius:999px!important;color:var(--light-text)!important;transition:all .5s!important}
.clinic-theme-switch input:checked{--ray-size: calc(var(--size) * -.42) !important;--offset-orthogonal: calc(var(--size) * .8) !important;--offset-diagonal: calc(var(--size) * .55) !important;transform:scale(.6)!important;color:#efbf0f!important;box-shadow:inset 0 0 0 var(--size),calc(var(--offset-orthogonal) * -1) 0 0 var(--ray-size),var(--offset-orthogonal) 0 0 var(--ray-size),0 calc(var(--offset-orthogonal) * -1) 0 var(--ray-size),0 var(--offset-orthogonal) 0 var(--ray-size),calc(var(--offset-diagonal) * -1) calc(var(--offset-diagonal) * -1) 0 var(--ray-size),var(--offset-diagonal) var(--offset-diagonal) 0 var(--ray-size),calc(var(--offset-diagonal) * -1) var(--offset-diagonal) 0 var(--ray-size),var(--offset-diagonal) calc(var(--offset-diagonal) * -1) 0 var(--ray-size)!important}
@media(prefers-reduced-motion:reduce){.clinic-theme-switch input{transition:none!important}}
@media print{.clinic-theme-switch{display:none!important}}

/* ERP navigation v9 — append to switch8-release only. */
/* Consistent masthead remains in view; neither content nor theme moves its identity. */
html{scroll-padding-top:90px;scrollbar-gutter:stable}
html body .erp-header,html body[data-page="dashboard"] .erp-header{
 position:sticky;top:0;z-index:50;isolation:isolate;display:flex;direction:ltr;flex-direction:row;align-items:center;justify-content:space-between;
 height:72px;min-height:72px;padding:10px clamp(20px,3vw,42px) 15px;gap:20px;
 background:var(--paper);border:0;box-shadow:0 7px 20px #00000003;backdrop-filter:none;-webkit-backdrop-filter:none;
}
html[data-theme="dark"] body .erp-header,html[data-theme="dark"] body[data-page="dashboard"] .erp-header{background:var(--paper)}
html body .erp-header:before,html body .erp-header:after{display:none}
html body .erp-header .header-trace,html body[data-page="dashboard"] .erp-header .header-trace{display:block;position:absolute;inset:0;width:100%;height:72px;pointer-events:none;color:#179ad2;z-index:-1;fill:none;stroke-width:1}
html body .erp-header .header-start,html body .erp-header .header-end{display:flex;direction:ltr;align-items:center;flex:none;gap:10px;min-width:0}
html body .erp-header .menu-toggle,html body .erp-header .demo-label{display:none}
html body .erp-header .blue-wordmark{display:inline-flex;direction:ltr;align-items:center;gap:10px;min-height:27px;margin:0;padding:0;color:var(--ink);line-height:1;flex:none}
html body .erp-header .blue-wordmark>svg{width:33px;height:25px;color:#19c4f2;flex:none}
html body .erp-header .blue-wordmark>span{font:700 clamp(20px,2vw,28px)/1 Arial,sans-serif;letter-spacing:.09em;transform:scaleX(1.11);transform-origin:left center;color:var(--ink)}
html body .erp-header .erp-search{display:flex;direction:rtl;gap:8px;width:clamp(145px,15vw,225px);max-width:225px;min-width:0;min-height:42px;margin:0;padding:7px 11px;border:1px solid var(--line);border-radius:11px;background:var(--p-surface);color:var(--muted)}
html body[data-page="dashboard"] .erp-header .erp-search{display:none}
html body .erp-header .erp-search input{width:100%;min-width:0;font-size:12px;line-height:1.5;color:var(--ink);padding:0;background:none;outline:none}
html body .erp-header .erp-search svg{width:17px;height:17px;flex:none}
html body .erp-header .erp-search:focus-within{outline:2px solid var(--p-ring);outline-offset:2px}
/* Preserve the exact checked moon/sun geometry, but eliminate wrapper chrome. */
html body .header-end .clinic-theme-switch,html body .header-end .clinic-theme-switch:hover,
html body .header-end .clinic-theme-switch:active,html body .header-end .clinic-theme-switch:focus-within{
 display:grid;place-items:center;width:44px;height:44px;min-width:44px;flex:none;margin:0;padding:0;
 background:none!important;border:0!important;box-shadow:none!important;border-radius:6px!important;outline:none;
}
html body .clinic-theme-switch:before,html body .clinic-theme-switch:after{display:none!important}
html body .header-end .clinic-theme-switch:has(input:focus-visible){outline:2px solid var(--p-ring);outline-offset:2px}
@supports not selector(:has(*)){html body .header-end .clinic-theme-switch:focus-within{outline:2px solid var(--p-ring);outline-offset:2px}}
html body .erp-header .ai-shortcut{display:grid;place-items:center;order:0;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:10px;background:none;color:var(--accent);box-shadow:none;cursor:pointer}
html body .erp-header .ai-shortcut svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.55}
html body .erp-header .ai-shortcut:hover{background:var(--p-soft)}
html body .erp-header .ai-shortcut:focus-visible{outline:2px solid var(--p-ring);outline-offset:2px}
/* Dock editor is an independent actionable pencil, not another navigation slot. */
.erp-main>.bottom-dock{isolation:isolate}
.erp-main>.bottom-dock>.dock-edit{position:absolute;top:-13px;left:-10px;z-index:3;display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:7px;background:var(--p-raised);border:1px solid var(--line);border-radius:10px;color:var(--muted);box-shadow:0 3px 9px #0000000a;cursor:pointer}
.erp-main>.bottom-dock>.dock-edit svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
.erp-main>.bottom-dock>.dock-edit:hover{color:var(--ink);background:var(--p-soft)}
.erp-main>.bottom-dock>.dock-edit:focus-visible{outline:2px solid var(--p-ring);outline-offset:3px}
/* Native scrolling, a usable coloured thumb, and no artificial wheel capture. */
:root{--nav-scroll-thumb:#5688ab}html[data-theme="dark"]{--nav-scroll-thumb:#76b4d6}
html,.erp-sidebar,.erp-table-wrap,.erp-modal{scrollbar-width:auto;scrollbar-color:var(--nav-scroll-thumb) var(--p-soft)}
html::-webkit-scrollbar,.erp-sidebar::-webkit-scrollbar,.erp-modal::-webkit-scrollbar{width:12px;height:12px}
html::-webkit-scrollbar-track,.erp-sidebar::-webkit-scrollbar-track,.erp-modal::-webkit-scrollbar-track{background:var(--p-soft);border-radius:12px}
html::-webkit-scrollbar-thumb,.erp-sidebar::-webkit-scrollbar-thumb,.erp-modal::-webkit-scrollbar-thumb{background:var(--nav-scroll-thumb);border:3px solid var(--p-soft);border-radius:12px;min-height:46px}
html::-webkit-scrollbar-thumb:hover,.erp-sidebar::-webkit-scrollbar-thumb:hover,.erp-modal::-webkit-scrollbar-thumb:hover{background:var(--accent)}
.erp-table-wrap::-webkit-scrollbar{height:12px}.erp-table-wrap::-webkit-scrollbar-track{background:var(--p-soft)}.erp-table-wrap::-webkit-scrollbar-thumb{background:var(--nav-scroll-thumb);border:3px solid var(--p-soft);border-radius:10px}
/* Hide the unnecessary menu heading visually while retaining its accessible label. */
.erp-sidebar .menu-tools h2{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:-1px;padding:0;border:0}
.erp-sidebar .menu-tools{padding-top:12px}
@media(min-width:801px){
 .erp-shell>.erp-sidebar{position:fixed;top:16px;right:16px;bottom:16px;width:258px;z-index:60;overflow:visible;transition:width .24s ease}
 .erp-shell>.erp-sidebar{position:fixed;inset:16px 16px 16px auto;width:258px;max-height:none;padding:23px 14px 14px;border-radius:26px;overflow-y:scroll;overflow-x:hidden;transform:none!important;visibility:visible!important;pointer-events:auto!important;scrollbar-gutter:stable;transition:none}
 .erp-shell>.sidebar-toggle{display:grid;place-items:center;position:fixed;left:auto;right:255px;top:88px;width:38px;height:38px;min-width:38px;min-height:38px;margin:0;padding:9px;z-index:65;border:1px solid var(--line);border-radius:50%;background:var(--p-raised);color:var(--ink);box-shadow:0 3px 12px #00000012;cursor:pointer}
 .erp-shell>.sidebar-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .2s}
 .erp-shell>.sidebar-toggle:hover{background:var(--p-soft)}
 .erp-shell>.sidebar-toggle:focus-visible{outline:2px solid var(--p-ring);outline-offset:3px}
 .erp-main{margin-right:290px;transition:margin-right .24s ease}
 .erp-sidebar .menu-tools{padding-top:0}
 .erp-sidebar .mobile-menu-close{display:none}
 .erp-sidebar .menu-tools .menu-search-label{margin-top:0}
 .erp-sidebar nav .nav-item>[data-page]{overflow:visible}
 .erp-sidebar nav .nav-text{min-width:0;white-space:normal}
 body.sidebar-collapsed .erp-shell>.erp-sidebar{width:76px}
 body.sidebar-collapsed .erp-shell>.erp-sidebar{width:76px;padding:21px 7px 12px;transform:none;visibility:visible;pointer-events:auto;border-radius:24px;scrollbar-gutter:stable}
 body.sidebar-collapsed .erp-main{margin-right:108px}
 body.sidebar-collapsed .erp-shell>.sidebar-toggle{right:73px}
 body.sidebar-collapsed .erp-shell>.sidebar-toggle svg{transform:rotate(180deg)}
 body.sidebar-collapsed .erp-sidebar .erp-brand{justify-content:center;gap:0;margin:0 0 19px;padding:0;min-width:0}
 body.sidebar-collapsed .erp-sidebar .erp-brand .brand-mark{width:30px;height:27px;flex:none}
 body.sidebar-collapsed .erp-sidebar .erp-brand>span,body.sidebar-collapsed .erp-sidebar .brand-copy,
 body.sidebar-collapsed .erp-sidebar .workspace-selector,body.sidebar-collapsed .erp-sidebar .sidebar-caption,
 body.sidebar-collapsed .erp-sidebar .menu-tools,body.sidebar-collapsed .erp-sidebar .sidebar-bottom,
 body.sidebar-collapsed .erp-sidebar .nav-label,body.sidebar-collapsed .erp-sidebar .menu-pin{display:none!important}
 body.sidebar-collapsed .erp-sidebar nav{display:flex;flex-direction:column;gap:5px;padding:0;margin:0}
 body.sidebar-collapsed .erp-sidebar nav .nav-item{display:flex;justify-content:center;border:0;padding:0;gap:0;min-height:44px}
 body.sidebar-collapsed .erp-sidebar nav .nav-item>[data-page]{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;height:44px;padding:11px;margin:0;border-radius:12px;gap:0;font-size:0}
 body.sidebar-collapsed .erp-sidebar nav .nav-item>[data-page]>svg{display:block;width:21px;height:21px;margin:0;opacity:1}
 body.sidebar-collapsed .erp-sidebar .nav-text{display:none}
 body.sidebar-collapsed .erp-sidebar nav .nav-item>[data-page]:focus-visible{outline:2px solid var(--p-ring);outline-offset:1px}
 .erp-main>.bottom-dock{margin-top:20px}
}
@media(min-width:801px) and (max-width:1080px){
 .erp-shell>.erp-sidebar{width:234px;right:12px;top:12px;bottom:12px}.erp-main{margin-right:258px}
 .erp-shell>.sidebar-toggle{right:227px;top:84px}body.sidebar-collapsed .erp-shell>.sidebar-toggle{right:69px}
 body.sidebar-collapsed .erp-shell>.erp-sidebar{width:76px}body.sidebar-collapsed .erp-main{margin-right:104px}
 html body .erp-header,html body[data-page="dashboard"] .erp-header{padding-left:22px;padding-right:22px;gap:10px}
 html body .erp-header .header-end{gap:4px}.erp-header .erp-search{width:145px}
}
@media(max-width:800px){
 .erp-shell>.sidebar-toggle{display:none}
 html{scroll-padding-top:140px}
 html body .erp-header,html body[data-page="dashboard"] .erp-header{position:sticky;top:0;height:66px;min-height:66px;padding:8px 18px 14px;gap:10px}
 html body .erp-header .header-trace,html body[data-page="dashboard"] .erp-header .header-trace{height:66px}
 html body .erp-header .blue-wordmark>span{font-size:clamp(20px,5vw,25px)}
 html body .erp-header .blue-wordmark>svg{width:30px;height:24px}
 html body .erp-header .header-end{gap:4px}
 html body:not([data-page="dashboard"]) .erp-header{height:120px;min-height:120px;padding-bottom:68px}
 html body:not([data-page="dashboard"]) .erp-header .erp-search{display:flex;position:absolute;top:67px;right:18px;left:18px;width:auto;max-width:none;min-height:42px;margin:0;padding:8px 12px}
 html body .erp-header .erp-search input{font-size:16px}
 .erp-sidebar .menu-tools{padding-top:15px;padding-bottom:14px}
 .erp-sidebar .sheet-handle{margin-bottom:16px}
 .erp-sidebar .mobile-menu-close{display:grid;position:absolute;left:0;right:auto;top:26px;width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border-radius:11px;background:var(--p-soft);color:var(--ink)}
 .erp-sidebar .menu-search-label{padding-left:54px;min-height:54px;justify-content:center}
 .erp-sidebar .menu-search-label input{font-size:16px;min-height:44px}
 .erp-sidebar .menu-tools p{padding-left:0;margin-top:9px;font-size:10px;line-height:1.8}
 .erp-main>.bottom-dock>.dock-edit{top:-17px;left:65px;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border-radius:11px}
 .erp-main>.bottom-dock>.dock-edit svg{width:18px;height:18px}
}
@media(max-width:390px){
 html body .erp-header,html body[data-page="dashboard"] .erp-header{padding-left:14px;padding-right:14px}
 html body .erp-header .blue-wordmark{gap:8px}html body .erp-header .header-end{gap:0}
 html body:not([data-page="dashboard"]) .erp-header .erp-search{left:14px;right:14px}
 .erp-main>.bottom-dock>.dock-edit{left:57px}
}
@media(prefers-reduced-motion:reduce){.erp-shell>.erp-sidebar,.erp-main,.erp-shell>.sidebar-toggle svg{transition:none}}
@media print{.erp-shell>.erp-sidebar,.erp-header,.dock-edit{display:none!important}.erp-main{margin:0!important}}
/* Pin picker: genuine choices with a readable selected state in both themes. */
.pin-picker-help{font-size:12px;line-height:1.9;color:var(--muted);margin:18px 0}
.pin-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pin-picker-item{display:flex;align-items:center;gap:9px;min-width:0;min-height:58px;text-align:right;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--p-surface);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.pin-picker-item>svg{width:19px;height:19px;flex:none;color:var(--accent)}
.pin-picker-item>span:not(.pin-picker-state){min-width:0;flex:1}
.pin-picker-state{flex:none;font-size:9px;color:var(--muted)}
.pin-picker-item[aria-pressed="true"]{border-color:var(--p-ring);background:var(--accent-light)}
.pin-picker-item[aria-pressed="true"] .pin-picker-state{color:var(--accent);font-weight:650}
.pin-picker-item:hover{background:var(--p-soft)}
.pin-picker-item:focus-visible{outline:2px solid var(--p-ring);outline-offset:2px}
.pin-picker-status{font-size:11px;color:var(--muted);margin:17px 0 12px;line-height:1.8}
@media(max-width:560px){.pin-picker-grid{grid-template-columns:1fr}.pin-picker-item{min-height:54px;font-size:13px}.pin-picker-state{font-size:10px}}

/* Chat edition 10 — additive to the exact nav9 release. */
/* The pencil is circular at every breakpoint and in every state. */
.erp-main>.bottom-dock>.dock-edit,.erp-main>.bottom-dock>.dock-edit:hover,.erp-main>.bottom-dock>.dock-edit:focus-visible{border-radius:50%;aspect-ratio:1}
/* Pins live exclusively in the shortcut editor; navigation uses the entire row. */
.erp-sidebar nav .menu-pin{display:none!important}
.erp-sidebar nav .nav-item{gap:0;padding:3px 0}
.erp-sidebar nav .nav-item>[data-page]{width:100%;flex:1;padding:12px 13px;gap:12px;min-height:48px}
/* Launch: generous typography and one input, not boxes nested inside boxes. */
.erp-copilot.assistant-launch{position:relative;isolation:isolate;display:block;margin:36px 0 28px;padding:40px 8px 32px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;overflow:visible;color:var(--ink)}
.assistant-launch-copy{max-width:700px;margin-bottom:26px}
.assistant-launch-kicker{display:flex;align-items:center;gap:9px;margin:0 0 15px;font-size:12px;line-height:1.5;color:var(--accent);font-weight:550}
.assistant-launch-kicker svg{width:23px;height:23px;stroke-width:1.5}
.assistant-launch-copy h2,.assistant-launch h2{font-size:clamp(29px,3.6vw,44px);font-weight:700;line-height:1.35;letter-spacing:-1.1px;margin:0 0 14px;color:var(--ink)}
.assistant-launch-copy>p:not(.assistant-launch-kicker){font-size:15px;line-height:1.95;max-width:560px;margin:0;color:var(--muted)}
.assistant-launch .copilot-heading{display:block;margin:0 0 25px}
.assistant-launch .copilot-heading-start{display:flex;align-items:flex-start;gap:16px}
.assistant-launch .copilot-mark{width:39px;height:39px;margin:3px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--accent)}
.assistant-launch .copilot-mark svg{width:32px;height:32px}
.assistant-launch .copilot-label{display:inline-block;margin-top:15px;border:0;background:none;padding:0;font-size:10px;color:var(--muted)}
.assistant-launch .copilot-form{display:flex;align-items:center;gap:12px;max-width:820px;margin:0 0 17px;padding:9px 10px 9px 17px;border:1px solid var(--line);border-radius:19px;background:var(--p-raised);box-shadow:0 6px 22px #00000005}
.assistant-launch .copilot-form:focus-within{border-color:var(--p-ring);outline:2px solid var(--p-soft);outline-offset:2px;box-shadow:none}
.assistant-launch .copilot-form input{flex:1;min-width:0;padding:12px 6px;border:0;outline:none;background:none;color:var(--ink);font-size:16px;line-height:1.7}
.assistant-launch .copilot-form input::placeholder{font-size:14px;color:var(--muted);opacity:1}
.assistant-launch .copilot-form button{width:46px;height:46px;min-width:46px;min-height:46px;display:grid;place-items:center;padding:12px;border:0;border-radius:50%;background:var(--accent);color:var(--p-onaccent);box-shadow:none}
.assistant-launch .copilot-form button svg{width:22px;height:22px}
.assistant-launch .copilot-suggestions{display:flex;flex-wrap:wrap;gap:5px 20px;margin:0;max-width:820px}
.assistant-launch .copilot-suggestions button{min-height:44px;padding:8px 0;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:12px;line-height:1.8;text-align:right;box-shadow:none}
.assistant-launch .copilot-suggestions button:hover{color:var(--ink);border-color:var(--p-ring);background:none}
.assistant-launch .copilot-disclaimer{font-size:10px;color:var(--muted);line-height:1.9;margin:19px 0 0;max-width:710px}
/* Standalone conversation: one readable surface, two message treatments. */
body[data-page="assistant"] .erp-page-heading,body[data-page="assistant"] .erp-footer{display:none}
body[data-page="assistant"] #erp-view{padding-top:22px;padding-bottom:24px;min-height:0}
.chat-workspace{display:flex;flex-direction:column;width:100%;max-width:1040px;margin:0 auto;height:calc(100vh - 203px);height:calc(100dvh - 203px);min-height:350px;border:1px solid var(--line);border-radius:25px;background:var(--p-surface);box-shadow:0 1px 0 var(--p-edge);overflow:hidden;color:var(--ink)}
.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:21px 26px 18px;border-bottom:1px solid var(--line);background:transparent}
.chat-toolbar h1,.chat-toolbar h2{font-size:21px;line-height:1.4;font-weight:700;letter-spacing:-.4px;color:var(--ink);margin:0}
.chat-toolbar p,.chat-toolbar small{font-size:11px;line-height:1.8;color:var(--muted);margin:4px 0 0}
.chat-toolbar button,.chat-back{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:transparent;color:var(--muted);font:inherit;font-size:11px;flex:none}
.chat-toolbar button:hover,.chat-back:hover{background:var(--p-soft);color:var(--ink)}
.chat-toolbar button svg,.chat-back svg{width:18px;height:18px}
.chat-thread{display:flex;flex-direction:column;align-items:stretch;flex:1;min-height:0;gap:25px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:28px clamp(22px,4vw,49px) 30px;scroll-padding:20px;color:var(--ink);scrollbar-color:var(--nav-scroll-thumb) var(--p-soft);scrollbar-width:auto}
.chat-thread::-webkit-scrollbar{width:10px}.chat-thread::-webkit-scrollbar-track{background:var(--p-soft)}.chat-thread::-webkit-scrollbar-thumb{background:var(--nav-scroll-thumb);border:3px solid var(--p-soft);border-radius:10px}
.chat-message{max-width:86%;min-width:0;flex:none;animation:chat-arrive .28s ease both;overflow-wrap:anywhere;word-break:normal}
.chat-message.is-user{align-self:flex-start;background:var(--accent-light);color:var(--ink);border:1px solid var(--line);border-radius:19px 19px 5px 19px;padding:14px 19px;max-width:77%}
.chat-message.is-assistant{align-self:flex-end;background:transparent;border:0;border-radius:0;padding:0;max-width:92%;width:92%;box-shadow:none}
.chat-message-body{font-size:15px;line-height:2;color:var(--ink)}
.chat-message-body p{font-size:15px;line-height:2;margin:0 0 12px;color:var(--ink)}
.chat-message-body p:last-child{margin-bottom:0}
.chat-message-body h3{font-size:18px;line-height:1.55;letter-spacing:-.3px;font-weight:650;color:var(--ink);margin:0 0 12px}
.chat-message-body ul,.chat-message-body ol{margin:12px 0;padding-right:19px;color:var(--muted);font-size:14px;line-height:1.9}
.chat-message-body li{padding:4px 0}
.chat-message>header,.chat-message-meta,.chat-role{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin-bottom:8px;line-height:1.8}
.chat-message>header svg{width:18px;height:18px;color:var(--accent)}
.chat-message-body .copilot-answer{padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.chat-message-body .copilot-answer-heading{margin-bottom:10px}
.chat-message-body .copilot-metrics{margin:15px 0;padding-block:13px;border-color:var(--line)}
.chat-message-body .copilot-metrics dd{font-size:26px;line-height:1.3}
.chat-message-body .copilot-metrics dt{font-size:11px}
.chat-message-body .copilot-answer-footer{border-color:var(--line);margin-top:17px;padding-top:10px}
.chat-message-body .copilot-answer-footer .erp-button{font-size:12px;min-height:44px;background:none;border:0;color:var(--accent);padding-right:0}
.chat-message-body .copilot-answer-footer small{font-size:10px;line-height:1.8}
.chat-message-body .copilot-insights{font-size:13px;line-height:1.9}
.chat-composer{display:flex;align-items:flex-end;gap:12px;flex:none;margin:0 24px;padding:10px 11px 10px 16px;border:1px solid var(--line);border-radius:19px;background:var(--p-raised);box-shadow:0 3px 15px #00000003}
.chat-composer:focus-within{border-color:var(--p-ring);outline:2px solid var(--p-soft);outline-offset:2px}
.chat-composer textarea{display:block;flex:1;min-width:0;min-height:46px;max-height:130px;resize:vertical;font:inherit;font-size:16px;line-height:1.7;padding:9px 5px;border:0;border-radius:0;background:none;color:var(--ink);outline:none;box-shadow:none;overflow-y:auto}
.chat-composer textarea:focus-visible{outline:none}.chat-composer textarea::placeholder{color:var(--muted);opacity:1}
.chat-composer button[type="submit"]{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:11px;margin-bottom:1px;border:0;border-radius:50%;background:var(--accent);color:var(--p-onaccent);box-shadow:none}
.chat-composer button[type="submit"] svg{width:21px;height:21px;fill:none;stroke:currentColor}
.chat-composer button[type="submit"]:disabled{opacity:.45;cursor:default}
.chat-disclaimer{flex:none;margin:10px 26px 17px;font-size:10px;line-height:1.8;text-align:center;color:var(--muted)}
.chat-empty{margin:auto;padding:30px 10px;text-align:center;color:var(--muted);font-size:14px;line-height:1.9}
.chat-empty h2{font-size:27px;color:var(--ink);line-height:1.5;margin:0 0 10px}
.chat-workspace .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}
@keyframes chat-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){
 .erp-copilot.assistant-launch{margin:28px 0 24px;padding:31px 2px 26px}.assistant-launch-copy{margin-bottom:22px}.assistant-launch-copy h2,.assistant-launch h2{font-size:clamp(28px,6.7vw,37px);letter-spacing:-.6px;line-height:1.4}.assistant-launch-copy>p:not(.assistant-launch-kicker){font-size:14px;line-height:1.9}.assistant-launch-kicker{font-size:11px;margin-bottom:13px}.assistant-launch .copilot-form{padding:7px 8px 7px 12px;gap:7px;border-radius:17px}.assistant-launch .copilot-form input{padding:10px 4px;font-size:16px}.assistant-launch .copilot-form input::placeholder{font-size:12px}.assistant-launch .copilot-suggestions{display:flex;gap:2px 17px}.assistant-launch .copilot-suggestions button{font-size:11px;min-height:44px}.assistant-launch .copilot-disclaimer{font-size:10px;margin-top:16px}
 body[data-page="assistant"] #erp-view{padding:15px 14px 10px}
 body[data-page="assistant"] .erp-main{padding-bottom:calc(103px + env(safe-area-inset-bottom,0px))}
 .chat-workspace{height:calc(100vh - 250px - env(safe-area-inset-bottom,0px));height:calc(100dvh - 250px - env(safe-area-inset-bottom,0px));min-height:300px;border-radius:21px}
 .chat-toolbar{padding:14px 16px 12px;gap:10px}.chat-toolbar h1,.chat-toolbar h2{font-size:18px}.chat-toolbar p,.chat-toolbar small{font-size:10px}.chat-toolbar button,.chat-back{font-size:10px;min-width:44px;padding:7px 9px}
 .chat-thread{gap:24px;padding:22px 16px 25px;scrollbar-gutter:auto}.chat-message{max-width:96%}.chat-message.is-user{max-width:89%;padding:12px 15px;border-radius:17px 17px 5px 17px}.chat-message.is-assistant{width:96%;max-width:96%}.chat-message-body,.chat-message-body p{font-size:14px;line-height:1.95}.chat-message-body h3{font-size:17px}.chat-message-body ul,.chat-message-body ol{font-size:13px}.chat-message-body .copilot-metrics dd{font-size:23px}.chat-message-body .copilot-answer-footer{gap:7px}
 .chat-composer{margin:0 12px;gap:8px;padding:7px 8px 7px 10px;border-radius:16px}.chat-composer textarea{min-height:44px;max-height:100px;padding:8px 3px;font-size:16px;line-height:1.65;resize:none}.chat-composer textarea::placeholder{font-size:13px}.chat-disclaimer{font-size:9px;margin:8px 15px 12px;line-height:1.7}
 /* Composer and fixed dock retain separate reserved spaces on focus. */
 body[data-page="assistant"]:has(#assistant-chat-input:focus) .bottom-dock{display:flex}
 body[data-page="assistant"]:has(#assistant-chat-input:focus) .erp-main{padding-bottom:calc(103px + env(safe-area-inset-bottom,0px))}
 body[data-page="assistant"]:has(#assistant-chat-input:focus) .chat-workspace{height:calc(100dvh - 250px - env(safe-area-inset-bottom,0px));min-height:300px}
}
@media(max-width:390px){
 .assistant-launch .copilot-form input::placeholder{font-size:11px}.assistant-launch .copilot-suggestions{gap:1px 13px}.assistant-launch .copilot-suggestions button{font-size:10px}.assistant-launch-copy h2,.assistant-launch h2{font-size:28px}
 body[data-page="assistant"] #erp-view{padding-left:9px;padding-right:9px}.chat-toolbar{padding:12px}.chat-thread{padding-right:12px;padding-left:12px}.chat-message-body,.chat-message-body p{font-size:13px}.chat-message-body h3{font-size:16px}.chat-composer{margin-left:9px;margin-right:9px}.chat-disclaimer{margin-left:12px;margin-right:12px}
}
@media(prefers-reduced-motion:reduce){.chat-message{animation:none}.assistant-launch button{transition:none}}
@media print{.chat-workspace{height:auto;min-height:0;overflow:visible}.chat-thread{overflow:visible}.chat-composer{display:none}}
/* Current sample counters, set directly in the section rather than inside cards. */
.assistant-launch-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:640px;margin:25px 0 0;padding:22px 0 0;border-top:1px solid var(--line)}
.assistant-launch-stats>div{display:flex;flex-direction:column-reverse;gap:5px;padding:0;min-width:0;background:none;border:0}
.assistant-launch-stats dt{font-size:11px;line-height:1.8;color:var(--muted);margin:0}
.assistant-launch-stats dd{font-size:30px;line-height:1.3;font-weight:650;color:var(--ink);margin:0;font-variant-numeric:tabular-nums}
.chat-toolbar>span{font-size:11px;line-height:1.8;color:var(--muted);text-align:left}
.chat-message-author{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-bottom:9px}
.chat-welcome{max-width:600px;margin:auto;align-self:center;padding:22px 0;text-align:center}
.chat-welcome h2{font-size:clamp(24px,3vw,34px);line-height:1.5;letter-spacing:-.6px;color:var(--ink);margin:0 0 13px}
.chat-welcome p{font-size:14px;line-height:1.95;color:var(--muted);margin:0 0 20px}
.chat-welcome .copilot-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.chat-welcome .copilot-suggestions button{font-size:12px;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink)}
.chat-welcome .copilot-suggestions button:hover{background:var(--p-soft)}
@media(max-width:800px){.assistant-launch-stats{gap:13px;margin-top:20px;padding-top:20px}.assistant-launch-stats dd{font-size:27px}.assistant-launch-stats dt{font-size:10px}.chat-toolbar>span{font-size:10px;max-width:145px}.chat-welcome p{font-size:13px}.chat-welcome .copilot-suggestions button{font-size:11px}}

@media(min-width:801px){
 .erp-shell>.erp-sidebar,body.sidebar-collapsed .erp-shell>.erp-sidebar{padding:0;overflow:hidden;scrollbar-gutter:auto}
 .erp-sidebar-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:14px 0 14px 11px;padding:9px 14px 4px 5px;overflow:hidden auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--nav-scroll-thumb) transparent}
 .erp-sidebar-scroll>*{flex-shrink:0}
 .erp-sidebar-scroll::-webkit-scrollbar{width:8px}
 .erp-sidebar-scroll::-webkit-scrollbar-thumb{background:var(--nav-scroll-thumb);border-radius:999px}
 body.sidebar-collapsed .erp-sidebar-scroll{margin:14px 0 12px;padding:7px 7px 0;scrollbar-width:none}
 body.sidebar-collapsed .erp-sidebar-scroll::-webkit-scrollbar{display:none}
}
@media(max-width:800px){.erp-sidebar-scroll{display:contents}}

.erp-sidebar-rail{display:none}
@media(min-width:801px){
 .erp-sidebar-scroll{padding-left:10px;scrollbar-width:none;scrollbar-gutter:auto}
 .erp-sidebar-scroll::-webkit-scrollbar{display:none}
 body:not(.sidebar-collapsed) .erp-sidebar-rail{display:block;position:absolute;top:18px;bottom:18px;left:4px;width:15px;border-radius:999px;touch-action:none;cursor:pointer}
 .erp-sidebar-rail::before{content:"";position:absolute;inset:0 5px;border-radius:999px;background:var(--p-soft);pointer-events:none}
 .erp-sidebar-rail-thumb{position:absolute;left:4px;right:4px;top:var(--rail-y,0px);height:var(--rail-h,100%);border-radius:999px;background:var(--nav-scroll-thumb);pointer-events:none}
 .erp-sidebar-rail:hover .erp-sidebar-rail-thumb,.erp-sidebar-rail:focus-visible .erp-sidebar-rail-thumb{background:var(--accent)}
 .erp-sidebar-rail:focus-visible{outline:2px solid var(--p-ring);outline-offset:1px}
 .erp-sidebar-rail[aria-disabled="true"] .erp-sidebar-rail-thumb{opacity:.45}
}

/* Factory artwork and HUD share one 1180 × 664 coordinate system.
   Append AFTER baseline CSS. Requires the matching factory-canvas wrapper. */
.operations-overview .factory-scene{height:auto;min-height:0;width:100%;max-width:100%;margin:0 0 24px;padding:100px 6px 0;overflow:visible;background:transparent;isolation:isolate;box-sizing:border-box}
.operations-overview .factory-canvas{position:relative;width:100%;max-width:1180px;margin:0 auto;aspect-ratio:1180 / 664;isolation:isolate;container-type:inline-size}
.operations-overview .factory-canvas .factory-visual{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center;z-index:0;pointer-events:none}
.operations-overview .factory-canvas .scene-vignette{display:none}
.operations-overview .factory-canvas .factory-hud{position:absolute;right:auto;bottom:auto;left:var(--anchor-x);top:var(--anchor-y);transform:translate(-50%,calc(-100% - var(--leader)));z-index:2;box-sizing:border-box;min-width:0;width:clamp(100px,13vw,155px);min-height:60px;padding:10px 12px;gap:9px;line-height:1.45;touch-action:manipulation;overflow:visible}
.operations-overview .factory-canvas .hud-production{--anchor-x:24%;--anchor-y:43%;--leader:64px}
.operations-overview .factory-canvas .hud-efficiency{--anchor-x:51%;--anchor-y:30%;--leader:108px}
.operations-overview .factory-canvas .hud-inventory{--anchor-x:80%;--anchor-y:49%;--leader:58px}
.operations-overview .factory-canvas .factory-hud>svg{flex-shrink:0;width:28px;height:28px}
.operations-overview .factory-canvas .factory-hud>span:not(.hud-stem){font-size:15px;min-width:0}
.operations-overview .factory-canvas .factory-hud strong{font-size:23px;gap:7px;line-height:1.25}
.operations-overview .factory-canvas .factory-hud i{width:23px;height:23px;flex-shrink:0}
.operations-overview .factory-canvas .factory-hud .hud-stem{position:absolute;top:100%;left:50%;right:auto;bottom:auto;height:var(--leader);width:1px;pointer-events:none}
.operations-overview .factory-canvas .factory-hud .hud-stem:after{width:9px;height:9px;left:50%;right:auto;bottom:0;transform:translate(-50%,50%);box-sizing:border-box;pointer-events:none}
.operations-overview .factory-scene .scene-note{display:block;position:static;margin:10px 0 0;text-align:left;font-size:9px;line-height:1.8;color:var(--muted)}
@supports(width:1cqw){.operations-overview .factory-canvas .factory-hud{width:clamp(96px,15cqw,155px)}.operations-overview .factory-canvas .hud-production{--leader:clamp(42px,7cqw,82px)}.operations-overview .factory-canvas .hud-efficiency{--leader:clamp(82px,12cqw,120px)}.operations-overview .factory-canvas .hud-inventory{--leader:clamp(36px,6cqw,72px)}}
@media(max-width:800px){.operations-overview .factory-scene{padding:100px 2px 0;margin:0 0 22px}.operations-overview .factory-canvas .factory-hud{width:108px;min-height:56px;padding:8px 9px;gap:7px;border-radius:12px}.operations-overview .factory-canvas .hud-production{--leader:46px}.operations-overview .factory-canvas .hud-efficiency{--leader:88px}.operations-overview .factory-canvas .hud-inventory{--leader:40px}.operations-overview .factory-canvas .factory-hud>svg{width:24px;height:24px}.operations-overview .factory-canvas .factory-hud>span:not(.hud-stem){font-size:12px}.operations-overview .factory-canvas .factory-hud strong{font-size:20px;gap:5px}.operations-overview .factory-canvas .factory-hud i{width:20px;height:20px}.operations-overview .factory-scene .scene-note{font-size:8px;margin-top:8px}}
@media(max-width:440px){.operations-overview .factory-scene{padding-top:108px}.operations-overview .factory-canvas .factory-hud{width:96px;min-height:54px;padding:8px 7px;gap:5px}.operations-overview .factory-canvas .factory-hud>svg{width:21px;height:21px}.operations-overview .factory-canvas .factory-hud>span:not(.hud-stem){font-size:11px}.operations-overview .factory-canvas .factory-hud strong{font-size:18px}.operations-overview .factory-canvas .factory-hud i{width:18px;height:18px}.operations-overview .factory-canvas .factory-hud i:before{inset:3px}.operations-overview .factory-canvas .hud-production{--leader:42px}.operations-overview .factory-canvas .hud-efficiency{--leader:86px}.operations-overview .factory-canvas .hud-inventory{--leader:36px}}
@media(max-width:340px){.operations-overview .factory-canvas .factory-hud{width:90px;gap:4px;padding-inline:5px}.operations-overview .factory-canvas .factory-hud>svg{width:19px;height:19px}}

/* Clean, color-coded navigation in both rail and full menu. */
.erp-sidebar nav .nav-item,.erp-sidebar .menu-tools,.erp-sidebar .sidebar-bottom{border-block-width:0}
.erp-sidebar nav [data-page] svg{color:var(--side-icon,#16869a);stroke:currentColor;opacity:1}
.erp-sidebar nav [data-page="website"]{--side-icon:#286add}
.erp-sidebar nav [data-page="crm"]{--side-icon:#8252d1}
.erp-sidebar nav [data-page="sales"]{--side-icon:#0c8265}
.erp-sidebar nav [data-page="purchases"]{--side-icon:#b46a11}
.erp-sidebar nav [data-page="inventory"]{--side-icon:#3473c0}
.erp-sidebar nav [data-page="production"]{--side-icon:#137a8e}
.erp-sidebar nav [data-page="quality"]{--side-icon:#25814f}
.erp-sidebar nav [data-page="finance"]{--side-icon:#92701d}
.erp-sidebar nav [data-page="hr"]{--side-icon:#b23d78}
.erp-sidebar nav [data-page="reports"]{--side-icon:#6958c8}
.erp-sidebar nav [data-page="settings"]{--side-icon:#476b88}
html[data-theme="dark"] .erp-sidebar nav [data-page] svg{color:var(--side-icon,#47bad1);color:color-mix(in srgb,var(--side-icon,#47bad1) 57%,#eef6ff)}
@media(min-width:801px){
 .erp-shell{--erp-side-size:258px;--erp-side-inset:16px;--erp-side-motion:270ms cubic-bezier(.22,.7,.2,1)}
 body.sidebar-collapsed .erp-shell{--erp-side-size:76px}
 .erp-shell>.erp-sidebar,body.sidebar-collapsed .erp-shell>.erp-sidebar{width:var(--erp-side-size);transition:width var(--erp-side-motion)!important}
 .erp-shell>.sidebar-toggle,body.sidebar-collapsed .erp-shell>.sidebar-toggle{right:calc(var(--erp-side-inset) + var(--erp-side-size) - 16px);top:calc(var(--erp-side-inset) + 14px);transition:right var(--erp-side-motion),background-color .18s,color .18s;box-shadow:0 2px 10px #0002;color:#127687}
 html[data-theme="dark"] .erp-shell>.sidebar-toggle{color:#76d9eb}
 .erp-shell>.sidebar-toggle svg .switch-arrow{transform-origin:center;transition:transform var(--erp-side-motion);stroke:currentColor}
 .erp-shell>.sidebar-toggle svg .switch-panel{fill:currentColor;fill-opacity:.14;stroke:currentColor}
 body.sidebar-collapsed .erp-shell>.sidebar-toggle svg{transform:none}
 body.sidebar-collapsed .erp-shell>.sidebar-toggle svg .switch-arrow{transform:scaleX(-1)}
 body:not(.sidebar-collapsed) .erp-sidebar-rail{top:67px}
 .erp-main{transition:margin-right var(--erp-side-motion)}
 .erp-sidebar nav [data-page] svg{flex-shrink:0;transition:color .18s,transform var(--erp-side-motion)}
 .erp-sidebar nav [data-page]:hover svg{transform:translateY(-1px)}
 body:not(.sidebar-collapsed) .erp-sidebar .nav-text{animation:erp-sidebar-reveal var(--erp-side-motion) both}
 @keyframes erp-sidebar-reveal{0%,35%{opacity:0;transform:translateX(5px)}100%{opacity:1;transform:none}}
}
@media(min-width:801px) and (max-width:1080px){.erp-shell{--erp-side-size:234px;--erp-side-inset:12px}}
@media(prefers-reduced-motion:reduce){
 .erp-shell>.erp-sidebar,body.sidebar-collapsed .erp-shell>.erp-sidebar,.erp-shell>.sidebar-toggle,body.sidebar-collapsed .erp-shell>.sidebar-toggle,.erp-main,.erp-shell>.sidebar-toggle svg .switch-arrow,.erp-sidebar nav [data-page] svg{transition:none!important}
 body:not(.sidebar-collapsed) .erp-sidebar .nav-text{animation:none}
}

/* Genuine feature fallback: Safari before 15 has no aspect-ratio.
   Absolute artwork/HUD otherwise gives the canvas zero layout height. */
@supports not (aspect-ratio:1 / 1){
 .operations-overview .factory-canvas::before{content:"";display:block;padding-top:56.27118644%}
}
/* Match scrolling behaviour of the inset sidebar across older iOS WebKit. */
.erp-sidebar-scroll{-webkit-overflow-scrolling:touch}
/* The moon-to-sun transform remains untouched. Without :has(), use the already
   implemented focus-within fallback. Do not add a circular wrapper border. */

/* Showroom-style factory stage. All coordinates belong to the artwork plane. */
.operations-overview .factory-scene{
 --factory-glow:#3584b51c;--factory-chip:#f4f8fdee;--factory-chip-edge:#a5bbce8c;--factory-chip-text:#142c43;
 position:relative;padding:84px 8px 0;margin-bottom:38px;
}
html[data-theme="dark"] .operations-overview .factory-scene{
 --factory-glow:#2c91d829;--factory-chip:#242c38f2;--factory-chip-edge:#9ebad44f;--factory-chip-text:#edf5ff;
}
.operations-overview .factory-scene::before{
 content:"";position:absolute;z-index:-1;inset:13% 5% 8%;pointer-events:none;
 background:radial-gradient(ellipse at 51% 67%,var(--factory-glow),transparent 69%);
}
.operations-overview .factory-canvas{width:100%;max-width:850px}
.operations-overview .factory-canvas .factory-visual{
 filter:drop-shadow(0 18px 19px #0f263f29);
}
.operations-overview .factory-canvas .factory-hud{
 color:var(--factory-chip-text);background:var(--factory-chip);border:1px solid var(--factory-chip-edge);
 border-radius:14px;min-height:60px;width:132px;padding:9px 11px;gap:8px;
 box-shadow:0 9px 24px #12264118,inset 0 1px #ffffff22;
 -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
.operations-overview .factory-canvas .factory-hud>svg{width:23px;height:23px;color:#39789c}
html[data-theme="dark"] .operations-overview .factory-canvas .factory-hud>svg{color:#a1cce7}
.operations-overview .factory-canvas .factory-hud>span:not(.hud-stem){font-size:13px}
.operations-overview .factory-canvas .factory-hud strong{font-size:22px}
.operations-overview .factory-canvas .factory-hud i{width:19px;height:19px;background:conic-gradient(#3497b8 var(--ring),#42678536 0)}
.operations-overview .factory-canvas .factory-hud i::before{inset:3px;background:var(--factory-chip)}
html[data-theme="dark"] .operations-overview .factory-canvas .factory-hud i{background:conic-gradient(#9bcbed var(--ring),#92b5cf40 0)}
.operations-overview .factory-canvas .factory-hud:hover,
.operations-overview .factory-canvas .factory-hud:focus-visible{border-color:#57a2c9;box-shadow:0 10px 28px #183e6129}
.operations-overview .factory-canvas .factory-hud:focus-visible{outline:2px solid #4c9cc7;outline-offset:3px}
.operations-overview .factory-scene .scene-note{
 display:table;margin:14px 0 0 auto;padding:3px 9px;border-radius:99px;
 font-size:10px;background:var(--p-soft);color:var(--muted);
}
@media(max-width:800px){
 .operations-overview .factory-scene{padding:100px 3px 0;margin-bottom:23px}
 .operations-overview .factory-canvas .factory-hud{width:100px;min-height:54px;border-radius:12px;padding:7px 8px;gap:6px}
 .operations-overview .factory-canvas .factory-hud>svg{width:21px;height:21px}
 .operations-overview .factory-canvas .factory-hud>span:not(.hud-stem){font-size:11px}
 .operations-overview .factory-canvas .factory-hud strong{font-size:19px}
 .operations-overview .factory-scene .scene-note{font-size:9px;margin-top:12px}
}
@media(max-width:420px){
 .operations-overview .factory-scene{padding-top:102px}
 .operations-overview .factory-canvas .factory-hud{width:86px;min-height:48px;padding:6px;gap:4px}
 .operations-overview .factory-canvas .factory-hud>svg{width:18px;height:18px}
 .operations-overview .factory-canvas .factory-hud strong{font-size:17px}
 .operations-overview .factory-canvas .factory-hud i{width:15px;height:15px}
}
@media(min-width:801px) and (max-width:1000px){
 .operations-overview .factory-scene{padding-top:92px}
 .operations-overview .factory-canvas .factory-hud{width:113px;min-height:55px}
}

/* Isatis conversation polish. Append last; local demo behavior unchanged. */
.chat-premium{--chat-wash:rgba(100,126,160,.055);--chat-user:#e9eef5;--chat-glow:rgba(130,151,181,.17);background:var(--p-surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 18px 65px #24344c0a;overflow:hidden;position:relative;isolation:isolate;display:flex;flex-direction:column;gap:0}
html[data-theme=dark] .chat-premium{--chat-wash:rgba(140,167,205,.045);--chat-user:#303b4c;--chat-glow:rgba(124,149,189,.12);box-shadow:0 22px 65px #0003}
.chat-premium .chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 28px 18px;margin:0;background:var(--p-surface);border-bottom:0;flex-shrink:0}.chat-identity{display:flex;gap:11px;align-items:center}.chat-brand-mark{height:40px;width:40px;border-radius:12px;background:linear-gradient(140deg,var(--p-raised),var(--p-soft));border:1px solid var(--line);box-shadow:inset 0 1px var(--p-edge);display:grid;place-items:center;color:var(--accent)}.chat-brand-mark svg{height:23px;width:23px;stroke-width:1.35}.chat-premium .chat-identity h2{font-size:17px;font-weight:700;color:var(--ink);margin:0;letter-spacing:-.4px}.chat-premium .chat-identity p{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);margin:3px 0 0}.chat-identity p i{height:4px;width:4px;border-radius:50%;background:var(--p-success)}.chat-premium .chat-back{min-height:40px;gap:8px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--p-raised);color:var(--muted);font-size:10px}.chat-back svg{width:15px;height:15px}.chat-premium .chat-context{display:flex;align-items:center;gap:18px;border-block:1px solid var(--line);padding:11px 28px;background:var(--chat-wash);font-size:9px;color:var(--muted);flex-shrink:0}.chat-context>span{white-space:nowrap;display:flex;gap:5px;align-items:center}.chat-context b{font-size:12px;color:var(--ink);font-weight:650}.chat-context .chat-context-local{margin-inline-start:auto;color:var(--accent);font-size:8px}.chat-premium .chat-thread{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:27px;padding:28px 7%;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior:contain;background:radial-gradient(ellipse at 65% 5%,var(--chat-wash),transparent 65%)}.chat-premium .chat-welcome{width:100%;max-width:650px;margin:auto;padding:15px 0 20px;text-align:center;align-self:center}.chat-welcome-mark{width:55px;height:55px;margin:0 auto 18px;display:grid;place-items:center;border:1px solid var(--line);border-radius:17px;transform:rotate(-5deg);color:var(--accent);background:linear-gradient(135deg,var(--p-raised),var(--p-soft));box-shadow:0 12px 32px var(--chat-glow),inset 0 1px var(--p-edge)}.chat-welcome-mark svg{height:29px;width:29px;transform:rotate(5deg);stroke-width:1.2}.chat-welcome-kicker{font-size:9px;color:var(--muted);letter-spacing:.2px}.chat-premium .chat-welcome h2{font-size:32px;letter-spacing:-1px;line-height:1.6;color:var(--ink);font-weight:720;margin:10px 0}.chat-welcome h2 span{color:var(--accent)}.chat-premium .chat-welcome>p{font-size:11px;line-height:1.9;color:var(--muted);margin:8px 0 25px}.chat-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;text-align:right}.chat-prompt-grid button{display:grid;grid-template-columns:32px minmax(0,1fr) 15px;grid-template-rows:auto auto;align-items:center;gap:3px 10px;text-align:right;padding:15px;background:var(--p-raised);border:1px solid var(--line);border-radius:12px;color:var(--ink);min-height:76px;transition:background .18s,border-color .18s,transform .18s}.chat-prompt-grid button:hover{background:var(--p-soft);border-color:var(--p-ring);transform:translateY(-2px)}.chat-prompt-icon{grid-row:1/3;display:grid;place-items:center;height:32px;width:32px;border-radius:8px;background:var(--chat-wash);color:var(--accent)}.chat-prompt-icon svg{width:19px;height:19px;stroke-width:1.35}.chat-prompt-grid strong{font-size:11px;font-weight:550}.chat-prompt-grid small{grid-column:2;font-size:8px;color:var(--muted)}.chat-prompt-arrow{width:14px;height:14px;grid-column:3;grid-row:1/3;color:var(--muted)}.chat-premium .chat-message{width:auto;max-width:92%;margin:0;padding:0;border:0;box-shadow:none;background:transparent;animation:none}.chat-premium .chat-message.is-user{align-self:flex-start;width:auto;max-width:80%;border-radius:0}.chat-premium .chat-message.is-assistant{align-self:flex-end;width:92%;max-width:92%;border-radius:0}.chat-message-header{display:flex;align-items:center;gap:7px;margin-bottom:8px}.chat-avatar{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--p-soft);border:1px solid var(--line);color:var(--accent)}.chat-avatar svg{width:15px;height:15px;stroke-width:1.4}.chat-premium .chat-message-author{font-size:9px;font-weight:550;line-height:1.5;color:var(--ink);margin:0}.chat-message-header small{font-size:8px;color:var(--muted);margin-inline-start:auto}.chat-premium .is-user .chat-message-body{padding:13px 17px;border-radius:15px 4px 15px 15px;background:var(--chat-user);border:1px solid var(--line);color:var(--ink)}.chat-premium .is-assistant .chat-message-body{padding:20px 22px;background:var(--p-raised);border:1px solid var(--line);border-radius:4px 15px 15px 15px;box-shadow:0 3px 12px #192c4503}.chat-premium .chat-message-body h3{font-size:16px;letter-spacing:-.3px;line-height:1.65;margin:0 0 12px;color:var(--ink);font-weight:650}.chat-premium .chat-message-body p{font-size:12px;line-height:2;white-space:pre-wrap;margin:0 0 9px;color:var(--ink)}.chat-premium .is-user .chat-message-body p{margin:0;font-size:12px}.chat-premium .chat-message-body ul{padding:0 16px 0 0;margin:13px 0;font-size:11px;line-height:2.1;color:var(--muted)}.chat-premium .chat-message-body li{margin-bottom:5px}.chat-premium .chat-message-body .erp-button{font-size:10px;min-height:38px;padding:7px 0;color:var(--accent);border:0;background:transparent;gap:8px}.chat-premium .copilot-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-block:1px solid var(--line);margin:15px 0;padding:15px 0;background:transparent}.chat-premium .copilot-metrics>div{padding:0;border:0;background:transparent}.chat-premium .copilot-metrics dt{font-size:9px;color:var(--muted)}.chat-premium .copilot-metrics dd{font-size:25px;font-weight:650;color:var(--ink);margin:3px 0 0}.chat-followups{display:flex;gap:7px;align-items:center;flex-wrap:wrap;align-self:flex-end;max-width:92%;margin-top:-10px}.chat-followups>span{font-size:8px;color:var(--muted);margin-inline-end:3px}.chat-followups button{display:flex;gap:8px;align-items:center;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--p-surface);color:var(--muted);padding:5px 10px;font-size:9px}.chat-followups button:hover{background:var(--p-soft);color:var(--ink)}.chat-followups button svg{height:12px;width:12px}.chat-compose-zone{flex-shrink:0;padding:13px 6% 14px;background:linear-gradient(180deg,transparent,var(--p-surface) 25%)}.chat-premium .chat-composer{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:end;gap:4px 12px;margin:0;border:1px solid var(--line);border-radius:16px;padding:12px 12px 8px 12px;background:var(--p-raised);box-shadow:0 8px 25px #24394d09}.chat-premium .chat-composer:focus-within{border-color:var(--p-ring);box-shadow:0 0 0 3px var(--chat-wash),0 8px 25px #24394d09}.chat-premium .chat-composer textarea{width:100%;min-width:0;min-height:42px;max-height:112px;padding:10px 5px;font-size:13px;line-height:1.7;background:transparent;color:var(--ink);border:0;outline:0;resize:none;overflow-y:auto}.chat-premium .chat-composer textarea::placeholder{color:var(--muted);font-size:12px}.chat-premium .chat-composer button[type=submit]{width:42px;height:42px;min-width:42px;min-height:42px;border-radius:12px;margin:0;background:var(--accent);color:var(--p-onaccent);transition:opacity .18s,transform .18s}.chat-premium .chat-composer button[type=submit]:disabled{opacity:.3}.chat-premium .chat-composer button[type=submit]:not(:disabled):hover{transform:translateX(-2px)}.chat-composer-meta{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;padding:5px 5px 0;font-size:8px;color:var(--muted);direction:rtl}.chat-composer-meta i{font-style:normal;padding:0 5px;opacity:.5}.chat-composer-meta output{font-size:8px;font-variant-numeric:tabular-nums}.chat-premium .chat-disclaimer{display:flex;align-items:center;justify-content:center;gap:5px;padding:0;margin:10px 0 0;font-size:8px;line-height:1.7;color:var(--muted);text-align:center}.chat-disclaimer svg{width:12px;height:12px;flex-shrink:0;stroke-width:1.4}
@media(max-width:800px){.chat-premium{border-radius:20px}.chat-premium .chat-toolbar{padding:15px 17px 13px;gap:10px}.chat-premium .chat-identity h2{font-size:16px}.chat-brand-mark{width:35px;height:35px;border-radius:10px}.chat-brand-mark svg{width:21px;height:21px}.chat-premium .chat-back{min-width:40px;min-height:40px;padding:9px}.chat-back>span{display:none}.chat-back svg{width:18px;height:18px}.chat-premium .chat-context{gap:12px;padding:10px 17px;font-size:8px;overflow-x:auto;scrollbar-width:none}.chat-context b{font-size:11px}.chat-context .chat-context-local{display:none}.chat-premium .chat-thread{padding:22px 17px;gap:23px}.chat-premium .chat-welcome{padding:8px 0 16px}.chat-welcome-mark{width:45px;height:45px;border-radius:14px;margin-bottom:15px}.chat-welcome-mark svg{width:25px;height:25px}.chat-premium .chat-welcome h2{font-size:27px;margin:9px 0;line-height:1.65}.chat-premium .chat-welcome>p{font-size:10px;margin:8px 10px 20px}.chat-welcome-kicker{font-size:8px}.chat-prompt-grid{gap:8px}.chat-prompt-grid button{grid-template-columns:25px minmax(0,1fr);gap:5px 7px;padding:12px 10px;min-height:80px}.chat-prompt-icon{width:25px;height:25px;border-radius:6px;grid-row:1}.chat-prompt-icon svg{width:17px;height:17px}.chat-prompt-grid strong{font-size:10px;line-height:1.6}.chat-prompt-grid small{grid-column:1/-1;font-size:8px;line-height:1.7}.chat-prompt-arrow{display:none}.chat-premium .chat-message.is-user{max-width:88%}.chat-premium .chat-message.is-assistant{width:100%;max-width:100%}.chat-premium .is-user .chat-message-body{padding:12px 14px}.chat-premium .is-assistant .chat-message-body{padding:16px}.chat-premium .chat-message-body h3{font-size:15px}.chat-premium .chat-message-body p,.chat-premium .is-user .chat-message-body p{font-size:12px}.chat-premium .chat-message-body ul{font-size:11px}.chat-premium .chat-message-body .erp-button{min-height:44px}.chat-premium .copilot-metrics dd{font-size:23px}.chat-premium .copilot-metrics dt{font-size:8px}.chat-followups{max-width:100%;gap:6px}.chat-followups button{min-height:40px;font-size:9px}.chat-compose-zone{padding:10px 12px 12px}.chat-premium .chat-composer{padding:8px 8px 7px;grid-template-columns:minmax(0,1fr) 44px;gap:2px 7px;border-radius:14px}.chat-premium .chat-composer textarea{font-size:16px;min-height:44px;padding:8px 4px}.chat-premium .chat-composer textarea::placeholder{font-size:12px}.chat-premium .chat-composer button[type=submit]{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:11px}.chat-composer-meta{font-size:7px;padding-top:3px}.chat-composer-meta>span{visibility:hidden}.chat-premium .chat-disclaimer{font-size:7px;margin-top:9px;gap:4px}.chat-disclaimer svg{height:11px;width:11px}}
@media(max-width:370px){.chat-premium .chat-toolbar{padding:13px}.chat-premium .chat-thread{padding-inline:12px}.chat-premium .chat-context{padding-inline:13px;gap:8px;font-size:7px}.chat-premium .chat-welcome h2{font-size:24px}.chat-prompt-grid strong{font-size:9px}.chat-prompt-grid small{font-size:7px}.chat-prompt-grid button{padding:10px 8px;gap:5px}.chat-compose-zone{padding-inline:9px}.chat-premium .chat-message-body p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.chat-premium *{transition:none!important;animation:none!important}}@media print{.chat-compose-zone,.chat-context,.chat-followups{display:none}.chat-premium,.chat-premium .chat-thread{height:auto;overflow:visible}.chat-premium .chat-message{break-inside:avoid}}
