/* AS Surface OS Build 086 — refined visual system
   Intent: simple premium login + modern low-noise factory workspace. */

:root{
  --w86-bg:#f4f5f7;
  --w86-surface:#ffffff;
  --w86-surface-soft:#f8f9fb;
  --w86-line:#e3e6ea;
  --w86-line-strong:#cbd1d8;
  --w86-text:#18202a;
  --w86-muted:#6d7682;
  --w86-soft:#98a1ac;
  --w86-accent:#3157d5;
  --w86-accent-dark:#2445b7;
  --w86-accent-soft:#edf1ff;
  --w86-success:#167c56;
  --w86-success-soft:#e8f6ef;
  --w86-warning:#a66012;
  --w86-warning-soft:#fff4df;
  --w86-danger:#b83a3a;
  --w86-danger-soft:#fdecec;
  --w86-ink:#20252c;
  --w86-shadow:0 10px 30px rgba(28,36,48,.07);
  --w86-shadow-lg:0 24px 65px rgba(22,29,39,.13);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body{background:var(--w86-bg);color:var(--w86-text)}
button,input,select,textarea{font:inherit}

/* ---------- LOGIN: deliberately simple ---------- */
.login86-shell{
  min-height:100vh;
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:40px 20px;
  background:
    radial-gradient(circle at 16% 10%,rgba(49,87,213,.055),transparent 29%),
    linear-gradient(180deg,#f8f8f6 0%,#f1f2f4 100%);
  color:var(--w86-text);
}
.login86-card{
  width:min(100%,480px);
  padding:34px 36px 24px;
  background:#fff;
  border:1px solid #e1e3e6;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(25,31,40,.11);
}
.login86-brand{display:flex;align-items:center;gap:14px;padding-bottom:26px;border-bottom:1px solid #eceef0}
.login86-brand .company-logo-frame{width:66px!important;height:54px!important;min-width:66px;border:0!important;border-radius:10px!important;padding:2px!important;box-shadow:none!important;background:#fff!important}
.login86-brand .company-logo-frame img{object-fit:contain!important}
.login86-brand>div:last-child{display:grid;gap:3px}
.login86-brand strong{font-size:17px;letter-spacing:-.02em;color:#181d23}
.login86-brand span{font-size:11px;color:#7b838d;letter-spacing:.035em}
.login86-copy{padding:32px 0 23px}
.login86-copy small{display:block;margin-bottom:10px;font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--w86-accent)}
.login86-copy h1{margin:0;font-size:36px;line-height:1.08;letter-spacing:-.045em;color:#171c22}
.login86-copy p{margin:10px 0 0;color:#737c87;font-size:14px;line-height:1.55}
.login86-form{display:grid;gap:17px}
.login86-field{display:grid;gap:7px}
.login86-field>span{font-size:12px;font-weight:700;color:#414a55}
.login86-field>div{height:50px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #d9dde2;border-radius:12px;background:#fff;transition:.16s ease}
.login86-field>div:focus-within{border-color:var(--w86-accent);box-shadow:0 0 0 3px rgba(49,87,213,.11)}
.login86-field svg{width:19px;height:19px;fill:none;stroke:#8a939e;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.login86-field input{min-width:0;flex:1;border:0!important;outline:0!important;background:transparent!important;color:#1e252d!important;padding:0!important;height:auto!important;box-shadow:none!important}
.login86-field input::placeholder{color:#a3aab3}
.login86-show{border:0;background:transparent;color:var(--w86-accent);font-size:12px;font-weight:750;cursor:pointer;padding:6px}
.login86-remember{position:relative;display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;cursor:pointer;padding:2px 0}
.login86-remember>input{position:absolute;opacity:0;pointer-events:none}
.login86-check{width:19px;height:19px;border:1.5px solid #b9c0c8;border-radius:5px;background:#fff;display:grid;place-items:center;margin-top:1px;transition:.14s ease}
.login86-remember>input:checked+.login86-check{background:var(--w86-accent);border-color:var(--w86-accent)}
.login86-remember>input:checked+.login86-check:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.login86-remember>span:last-child{display:grid;gap:2px}
.login86-remember strong{font-size:12px;color:#3c4651}
.login86-remember small{font-size:11px;color:#8b949f;line-height:1.35}
.login86-submit{height:50px;margin-top:2px;border:0;border-radius:12px;background:#20252c;color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:800;cursor:pointer;box-shadow:none;transition:.17s ease}
.login86-submit:hover{background:#11151a;transform:translateY(-1px)}
.login86-submit span{font-size:17px;font-weight:500}
.login86-error{min-height:18px;color:var(--w86-danger);font-size:12px;text-align:center}
.login86-footer{margin-top:23px;padding-top:18px;border-top:1px solid #eceef0;display:flex;justify-content:space-between;gap:12px;color:#9aa1aa;font-size:10px}

/* ---------- APP SHELL ---------- */
.workspace86{min-height:100vh;background:var(--w86-bg);color:var(--w86-text);display:block!important}
.workspace86 .main{margin:0!important;width:100%!important;min-width:0!important;background:transparent!important}
.workspace86 .content{width:min(100% - 48px,1580px);margin:0 auto;padding:28px 0 60px!important}
.workspace86-topbar{
  position:sticky!important;top:0!important;z-index:90!important;
  height:72px!important;min-height:72px!important;
  padding:0 24px!important;
  display:grid!important;grid-template-columns:auto minmax(180px,1fr) minmax(260px,520px) auto!important;
  align-items:center!important;gap:20px!important;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--w86-line)!important;
  box-shadow:none!important;
}
.workspace86-left{display:flex;align-items:center;gap:13px;min-width:0}
.workspace86-logo{width:54px!important;height:40px!important;border:0!important;border-radius:8px!important;padding:2px!important;box-shadow:none!important;background:#fff!important}
.workspace86-logo img{object-fit:contain!important}
.workspace86-route{min-width:0;display:grid;gap:2px;padding-left:4px}
.workspace86-route small{font-size:10px;font-weight:800;color:#9aa1aa;text-transform:uppercase;letter-spacing:.12em}
.workspace86-route strong{font-size:15px;line-height:1.2;color:#222832;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace86-search{display:block!important;position:relative!important;width:100%!important;max-width:none!important;margin:0!important}
.workspace86-search input{height:40px!important;width:100%!important;padding:0 14px 0 38px!important;border:1px solid #e0e4e8!important;border-radius:10px!important;background:#f7f8fa!important;color:#28313c!important;box-shadow:none!important;outline:0!important}
.workspace86-search:before{content:"⌕";position:absolute;left:14px;top:7px;color:#9099a4;font-size:18px;z-index:1}
.workspace86-search input:focus{border-color:#b9c4eb!important;background:#fff!important;box-shadow:0 0 0 3px rgba(49,87,213,.08)!important}
.workspace86-user{display:flex!important;align-items:center!important;gap:9px!important;min-width:0}
.workspace86-user .avatar{width:36px!important;height:36px!important;border-radius:50%!important;background:#edf1ff!important;color:#3157d5!important;border:1px solid #dce3ff!important;font-weight:800!important;box-shadow:none!important}
.workspace86-user .user-text{display:grid!important;gap:1px!important;line-height:1.2!important;max-width:140px}
.workspace86-user .user-text strong{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace86-user .user-text small{font-size:10px!important;color:#88919b!important}
.workspace86-logout{height:34px;padding:0 10px;border:1px solid #e0e3e6;background:#fff;color:#5c6570;border-radius:8px;font-size:11px;font-weight:700;cursor:pointer}
.workspace86 .live-sync-chip{height:34px!important;border-radius:9px!important;border:1px solid #e2e6e9!important;background:#f8f9fa!important;color:#6e7782!important;padding:0 10px!important;box-shadow:none!important}
.workspace86 .live-sync-chip.connected{background:#edf8f3!important;color:#167c56!important;border-color:#d8eee4!important}
.workspace86 .install-app-btn{height:34px!important;border-radius:9px!important;background:#fff!important;color:#3157d5!important;border:1px solid #d9e1ff!important;padding:0 10px!important}

/* one launcher instead of permanent navigation */
.workspace86-launcher{position:relative}
.workspace86-launcher>summary{list-style:none;height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dfe3e7;border-radius:10px;background:#fff;color:#323a45;cursor:pointer;font-size:12px;user-select:none}
.workspace86-launcher>summary::-webkit-details-marker{display:none}
.workspace86-launcher[open]>summary{border-color:#bcc8ee;background:#f8faff;color:#2649bb}
.workspace86-gridicon{font-size:9px;line-height:6px;letter-spacing:1px;color:#59626e}
.workspace86-launcher summary i{font-style:normal;color:#9aa1aa;font-size:11px}
.workspace86-launcher-panel{position:absolute;top:50px;left:0;width:min(900px,calc(100vw - 48px));max-height:calc(100vh - 100px);overflow:auto;padding:22px;border:1px solid #dfe3e7;border-radius:16px;background:#fff;box-shadow:var(--w86-shadow-lg);z-index:130}
.workspace86-launcher-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:0 2px 17px;border-bottom:1px solid #eceef0}
.workspace86-launcher-head small{font-size:9px;letter-spacing:.15em;color:var(--w86-accent);font-weight:850}
.workspace86-launcher-head h2{margin:3px 0 0;font-size:21px;letter-spacing:-.025em}
.workspace86-launcher-head>span{font-size:11px;color:#959da6}
.workspace86-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-top:20px}
.workspace86-launch-group{display:grid;align-content:start;gap:5px}
.workspace86-launch-group h3{margin:0 0 7px;font-size:10px;text-transform:uppercase;letter-spacing:.11em;color:#8e97a2}
.workspace86-launch-group button{display:grid;grid-template-columns:35px 1fr;gap:10px;align-items:center;width:100%;padding:9px;border:0;border-radius:10px;background:transparent;color:#333c47;text-align:left;cursor:pointer}
.workspace86-launch-group button:hover{background:#f5f7fb}
.workspace86-launch-group button.active{background:#eef2ff;color:#2749bb}
.workspace86-launch-group button>span{width:35px;height:35px;border:1px solid #e1e5ea;border-radius:9px;background:#fff;display:grid;place-items:center}
.workspace86-launch-group button.active>span{border-color:#d6dfff;background:#fff}
.workspace86-launch-group svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workspace86-launch-group button>div{min-width:0;display:grid;gap:2px}
.workspace86-launch-group strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace86-launch-group small{font-size:9px;color:#9aa2ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* desktop drawer hidden */
@media(min-width:801px){
  .workspace86-mobile-drawer,.workspace86>.sidebar-backdrop,.workspace86 .mobile-menu-toggle{display:none!important}
}

/* ---------- CORE CONTENT SYSTEM ---------- */
.workspace86 .page-head{margin:0 0 20px!important;padding:0!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:20px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.workspace86 .page-head h1{margin:3px 0 4px!important;font-size:28px!important;line-height:1.12!important;letter-spacing:-.035em!important;color:#1c232c!important}
.workspace86 .page-head p{margin:0!important;color:#7b8490!important;font-size:12px!important;line-height:1.5!important;max-width:760px}
.workspace86 .page-head small,.workspace86 .command-eyebrow{font-size:9px!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#3157d5!important;font-weight:850!important}
.workspace86 .card,.workspace86 .section,.workspace86 .planner-toolbar,.workspace86 .module-search-bar{
  background:#fff!important;border:1px solid var(--w86-line)!important;border-radius:14px!important;box-shadow:none!important;color:var(--w86-text)!important
}
.workspace86 .card:hover{box-shadow:none!important}
.workspace86 .section{padding:18px!important}
.workspace86 .section-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin-bottom:15px!important}
.workspace86 .section-title h2,.workspace86 .section-title h3{margin:0!important;color:#202832!important;letter-spacing:-.02em!important}
.workspace86 .section-title h2{font-size:17px!important}.workspace86 .section-title h3{font-size:14px!important}
.workspace86 .section-title small,.workspace86 .muted-line{color:#8b949f!important;font-size:10px!important;line-height:1.45!important}

/* Buttons */
.workspace86 .primary-btn,.workspace86 button.primary-btn{border:1px solid #3157d5!important;background:#3157d5!important;color:#fff!important;border-radius:9px!important;min-height:36px!important;padding:8px 13px!important;font-size:11px!important;font-weight:750!important;box-shadow:none!important}
.workspace86 .primary-btn:hover{background:#284bc0!important;border-color:#284bc0!important;transform:none!important}
.workspace86 .secondary-btn,.workspace86 button.secondary-btn{border:1px solid #dfe3e7!important;background:#fff!important;color:#4d5662!important;border-radius:9px!important;min-height:36px!important;padding:8px 13px!important;font-size:11px!important;font-weight:700!important;box-shadow:none!important}
.workspace86 .secondary-btn:hover{border-color:#cbd1d8!important;background:#f7f8fa!important;transform:none!important}
.workspace86 .danger-btn{border:1px solid #f1d5d5!important;background:#fff7f7!important;color:#b83a3a!important;border-radius:9px!important;min-height:36px!important;padding:8px 13px!important;box-shadow:none!important}
.workspace86 .link-btn{color:#3157d5!important}

/* Forms */
.workspace86 input,.workspace86 select,.workspace86 textarea{border:1px solid #dce1e6!important;border-radius:9px!important;background:#fff!important;color:#27303a!important;box-shadow:none!important;outline:0!important}
.workspace86 input,.workspace86 select{min-height:39px!important;padding:8px 10px!important}
.workspace86 textarea{padding:10px!important}
.workspace86 input:focus,.workspace86 select:focus,.workspace86 textarea:focus{border-color:#9fb0ed!important;box-shadow:0 0 0 3px rgba(49,87,213,.08)!important}
.workspace86 label{color:#5f6873!important;font-size:10px!important;font-weight:700!important}

/* Tables */
.workspace86 .table-wrap{border:1px solid #e4e7ea!important;border-radius:12px!important;background:#fff!important;overflow:auto!important}
.workspace86 .data-table{border-collapse:separate!important;border-spacing:0!important;width:100%!important;background:#fff!important}
.workspace86 .data-table th{position:sticky;top:0;z-index:2;background:#f7f8fa!important;color:#7b8490!important;text-transform:uppercase!important;letter-spacing:.075em!important;font-size:9px!important;font-weight:850!important;border-bottom:1px solid #e1e5e9!important;padding:11px 12px!important}
.workspace86 .data-table td{background:#fff!important;color:#3b4550!important;font-size:11px!important;border-bottom:1px solid #edf0f2!important;padding:11px 12px!important}
.workspace86 .data-table tbody tr:hover td{background:#fafbfc!important}
.workspace86 .data-table tr:last-child td{border-bottom:0!important}
.workspace86 .data-table small{color:#929aa4!important}

/* pills, chips, status */
.workspace86 .status-pill,.workspace86 .status-badge,.workspace86 .risk-pill,.workspace86 .health-chip{border-radius:999px!important;padding:5px 8px!important;font-size:9px!important;font-weight:800!important;box-shadow:none!important}
.workspace86 .health-chip{background:#f7f8fa!important;border:1px solid #e1e5e9!important;color:#65707b!important}
.workspace86 .risk-pill.info{background:#edf1ff!important;color:#3157d5!important}.workspace86 .risk-pill.warning{background:#fff4df!important;color:#9d5c0c!important}.workspace86 .risk-pill.critical{background:#fdecec!important;color:#ad3737!important}

/* Statistics */
.workspace86 .stats{gap:12px!important}
.workspace86 .stat{position:relative!important;padding:15px!important;min-height:108px!important;border:1px solid #e3e6ea!important;border-radius:13px!important;background:#fff!important;overflow:hidden!important}
.workspace86 .stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent,#3157d5);opacity:.85}
.workspace86 .stat .label{font-size:9px!important;letter-spacing:.075em!important;color:#8c949e!important;text-transform:uppercase!important;font-weight:850!important}
.workspace86 .stat .value{font-size:26px!important;letter-spacing:-.035em!important;color:#202731!important;font-weight:760!important}
.workspace86 .stat .meta{font-size:10px!important;color:#9099a3!important}

/* Command center: remove previous dramatic hero */
.workspace86 .as-command-center{display:grid!important;gap:14px!important}
.workspace86 .as-command-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:20px!important;align-items:center!important;padding:20px 22px!important;margin:0!important;border:1px solid #e1e5e9!important;border-radius:15px!important;background:#fff!important;color:#202731!important;box-shadow:none!important;overflow:visible!important}
.workspace86 .as-command-hero:before,.workspace86 .as-command-hero:after{display:none!important}
.workspace86 .as-command-hero-copy{position:static!important}
.workspace86 .as-command-hero-copy h1{margin:3px 0 5px!important;font-size:27px!important;line-height:1.1!important;letter-spacing:-.035em!important;color:#1e252e!important}
.workspace86 .as-command-hero-copy p{max-width:700px!important;margin:0!important;color:#7d8691!important;font-size:11px!important}
.workspace86 .as-command-live-line{margin-top:10px!important;color:#8a939d!important;font-size:10px!important}
.workspace86 .as-command-live-line>span{width:7px!important;height:7px!important;background:#b4bbc3!important;box-shadow:none!important}.workspace86 .as-command-live-line>span.online{background:#1c9a6d!important}
.workspace86 .as-command-hero-side{display:flex!important;align-items:center!important;gap:10px!important;position:static!important}
.workspace86 .as-health-card{width:135px!important;min-height:76px!important;padding:10px 12px!important;background:#f8f9fa!important;border:1px solid #e2e5e8!important;border-radius:11px!important;color:#252d36!important;text-align:left!important;box-shadow:none!important}
.workspace86 .as-health-card small{font-size:8px!important;color:#8d96a0!important}.workspace86 .as-health-card>div strong{font-size:23px!important}.workspace86 .as-health-card p{font-size:8px!important;margin:1px 0 0!important;color:#8d96a0!important}
.workspace86 .as-command-clock{padding:0 8px!important}.workspace86 .as-command-clock strong{font-size:17px!important;color:#28313b!important}.workspace86 .as-command-clock small{font-size:8px!important;color:#9aa2ab!important}
.workspace86 .as-command-hero-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
.workspace86 .as-quick-actions{display:flex!important;gap:8px!important;overflow:auto!important;padding:0!important}
.workspace86 .as-quick-actions>button{min-width:150px!important;padding:12px!important;display:grid!important;grid-template-columns:31px 1fr!important;grid-template-rows:auto auto!important;column-gap:9px!important;text-align:left!important;background:#fff!important;border:1px solid #e2e6ea!important;border-radius:12px!important;color:#3c4651!important;box-shadow:none!important}
.workspace86 .as-quick-actions>button:hover{border-color:#cdd5ec!important;background:#fbfcff!important;transform:none!important}
.workspace86 .as-quick-actions>button>span{grid-row:1/3;width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#f1f4ff!important;color:#3157d5!important;font-size:14px!important}
.workspace86 .as-quick-actions strong{font-size:11px!important}.workspace86 .as-quick-actions small{font-size:9px!important;color:#969ea8!important}
.workspace86 .as-command-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.workspace86 .as-kpi-card{padding:14px!important;min-height:100px!important;background:#fff!important;border:1px solid #e2e6ea!important;border-radius:12px!important;color:#303945!important;text-align:left!important;box-shadow:none!important}
.workspace86 .as-kpi-card:hover{border-color:#cbd4ed!important;transform:none!important}.workspace86 .as-kpi-card small{font-size:8px!important;color:#8c95a0!important}.workspace86 .as-kpi-card strong{font-size:26px!important;letter-spacing:-.035em!important;color:#202832!important}.workspace86 .as-kpi-card>span{font-size:9px!important;color:#939ba5!important}
.workspace86 .as-kpi-card.warning{background:#fffaf1!important;border-color:#f0dfbc!important}.workspace86 .as-kpi-card.critical{background:#fff7f7!important;border-color:#efd3d3!important}
.workspace86 .as-flow-step,.workspace86 .command-stage-card,.workspace86 .order-timeline-card,.workspace86 .operator-performance-row,.workspace86 .command-action-row{background:#fff!important;border:1px solid #e3e6ea!important;border-radius:11px!important;box-shadow:none!important;color:#3b4550!important}
.workspace86 .as-flow-step:hover,.workspace86 .command-stage-card:hover,.workspace86 .order-timeline-card:hover{border-color:#cbd4ed!important;background:#fbfcff!important;transform:none!important}

/* planners and production boards */
.workspace86 .planner-toolbar{padding:10px 12px!important;box-shadow:none!important;position:static!important}
.workspace86 .planner-view-tabs{background:#f5f6f8!important;border-radius:9px!important;padding:3px!important;gap:2px!important}
.workspace86 .planner-view-tabs button{border:0!important;background:transparent!important;color:#6f7883!important;border-radius:7px!important;padding:8px 10px!important;font-size:10px!important}
.workspace86 .planner-view-tabs button.active{background:#fff!important;color:#2749bb!important;box-shadow:0 1px 3px rgba(20,26,34,.08)!important}
.workspace86 .today-floor-lane,.workspace86 .planner-day-column,.workspace86 .planner-backlog,.workspace86 .planner-stage-panel,.workspace86 .production-card,.workspace86 .job-card,.workspace86 .material-card,.workspace86 .product-card{background:#fff!important;border:1px solid #e2e6ea!important;border-radius:12px!important;box-shadow:none!important}

/* Modals */
.workspace86 .modal-backdrop{background:rgba(24,29,36,.45)!important;backdrop-filter:blur(4px)!important}
.workspace86 .modal-card{border:1px solid #dfe3e7!important;background:#fff!important;color:#27303a!important;border-radius:16px!important;box-shadow:0 28px 90px rgba(20,26,34,.22)!important}
.workspace86 .modal-head{border-bottom:1px solid #eceef0!important;padding-bottom:14px!important;margin-bottom:16px!important}
.workspace86 .modal-head h2{color:#202731!important;letter-spacing:-.025em!important}.workspace86 .modal-head p,.workspace86 .modal-head small{color:#858e99!important}

/* Search bars and list cards */
.workspace86 .module-search-bar{padding:10px 12px!important;margin-bottom:14px!important;display:flex!important;align-items:center!important;gap:12px!important}
.workspace86 .module-search-field{flex:1!important;background:#f7f8fa!important;border:1px solid #e1e5e9!important;border-radius:9px!important;min-height:38px!important;padding:0 10px!important}
.workspace86 .module-search-field input{border:0!important;background:transparent!important;box-shadow:none!important;min-height:36px!important}

/* mobile */
@media(max-width:1100px){
  .workspace86-topbar{grid-template-columns:auto 1fr auto!important}.workspace86-route{display:none}.workspace86-search{grid-column:2}.workspace86-user .user-text{display:none!important}.workspace86-user .install-app-btn{display:none!important}.workspace86 .as-command-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.workspace86-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .login86-shell{padding:16px}.login86-card{padding:25px 20px 20px;border-radius:18px}.login86-copy{padding:27px 0 20px}.login86-copy h1{font-size:31px}.login86-footer{flex-direction:column;gap:4px}
  .workspace86-topbar{height:60px!important;min-height:60px!important;padding:0 12px!important;grid-template-columns:auto 1fr auto!important;gap:9px!important}.workspace86-left{gap:6px}.workspace86-logo{width:45px!important;height:34px!important}.workspace86-launcher{display:none!important}.workspace86-search{grid-column:auto!important}.workspace86-search input{height:36px!important;padding-left:32px!important;font-size:11px!important}.workspace86-search:before{left:11px;top:6px;font-size:16px}.workspace86-user .live-sync-chip span{display:none!important}.workspace86-user .live-sync-chip{width:32px!important;padding:0!important;justify-content:center!important}.workspace86-user .avatar{width:32px!important;height:32px!important}.workspace86-logout{display:none!important}.workspace86 .content{width:calc(100% - 20px);padding:16px 0 82px!important}.workspace86 .page-head{flex-direction:column!important;gap:10px!important}.workspace86 .page-head h1{font-size:23px!important}.workspace86 .page-head>div:last-child,.workspace86 .planner-head-actions{width:100%!important;display:flex!important;overflow:auto!important;gap:7px!important}.workspace86 .as-command-hero{grid-template-columns:1fr!important;padding:16px!important}.workspace86 .as-command-hero-side{align-items:stretch!important;flex-wrap:wrap!important}.workspace86 .as-health-card{flex:1!important}.workspace86 .as-command-clock{display:none!important}.workspace86 .as-command-kpis{grid-template-columns:1fr 1fr!important}.workspace86 .as-kpi-card{min-height:88px!important}.workspace86 .as-kpi-card strong{font-size:23px!important}.workspace86 .stats{grid-template-columns:1fr 1fr!important}.workspace86 .grid-2,.workspace86 .grid-3{grid-template-columns:1fr!important}.workspace86 .section{padding:14px!important}
  .workspace86-mobile-drawer{display:flex!important;position:fixed!important;inset:0 auto 0 0!important;width:min(88vw,330px)!important;height:100dvh!important;z-index:170!important;transform:translateX(-102%);transition:.2s ease;background:#fff!important;border-right:1px solid #e1e5e9!important;color:#303944!important;box-shadow:0 20px 60px rgba(20,26,34,.18)!important}
  html[data-mobile-sidebar="open"] .workspace86-mobile-drawer{transform:translateX(0)}
  .workspace86-mobile-drawer .sidebar-head{border-bottom:1px solid #eceef0!important}.workspace86-mobile-drawer .nav-group-label{color:#8b949f!important}.workspace86-mobile-drawer .nav-group-items button{color:#525c68!important;background:transparent!important;border:0!important}.workspace86-mobile-drawer .nav-group-items button.active{background:#edf1ff!important;color:#294bbb!important}.workspace86-mobile-drawer svg{stroke:currentColor!important}.workspace86-mobile-drawer .sidebar-footer{background:#f7f8fa!important;color:#7f8994!important;border-top:1px solid #e5e8eb!important}
  .workspace86>.sidebar-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:160!important;background:rgba(24,29,36,.32)!important;opacity:0;pointer-events:none;transition:.2s ease}.workspace86 .mobile-menu-toggle{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border:1px solid #e0e4e8!important;border-radius:9px!important;background:#fff!important;color:#4f5964!important}.workspace86 .mobile-work-nav{background:rgba(255,255,255,.96)!important;border-top:1px solid #dfe3e7!important;box-shadow:0 -8px 24px rgba(24,31,40,.06)!important}.workspace86 .mobile-work-nav button{color:#78818c!important}.workspace86 .mobile-work-nav button.active{color:#3157d5!important}.workspace86 .mobile-work-nav svg{stroke:currentColor!important}
}
@media(max-width:520px){
  .workspace86-user .avatar{display:none!important}.workspace86-topbar{grid-template-columns:auto 1fr auto!important}.workspace86 .as-command-kpis,.workspace86 .stats{grid-template-columns:1fr 1fr!important}.workspace86 .as-command-hero-actions{width:100%!important}.workspace86 .as-command-hero-actions button{flex:1!important}.workspace86 .data-table th,.workspace86 .data-table td{padding:9px 10px!important;font-size:10px!important}.workspace86 .form-grid{grid-template-columns:1fr!important}.workspace86 .form-grid .span-2,.workspace86 .form-grid .full{grid-column:auto!important}
}
.workspace86 .as-quick-actions>button>span svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}


/* =============================================================
   BUILD 088 BASE — PREMIUM LOGIN + RESPONSIVE PHONE SHELL
   This layer intentionally owns the final visual rules.
   ============================================================= */
:root{
  --w87-ink:#17202a;--w87-ink-2:#243141;--w87-paper:#f4f6f8;--w87-card:#ffffff;
  --w87-line:#dfe5ea;--w87-soft:#eaf0f4;--w87-accent:#3456d1;--w87-accent-soft:#eef1ff;
  --w87-warm:#c6a36a;--w87-success:#13835f;--w87-warning:#b66d14;--w87-danger:#b94242
}
html,body{max-width:100%;overflow-x:hidden}

/* Premium split login — intentionally unrelated to the old login layouts */
.login87-shell{min-height:100dvh;display:grid;place-items:center;padding:clamp(18px,3vw,44px);background:#e9ecef;color:#1d2530;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.login87-frame{width:min(1180px,100%);min-height:min(760px,calc(100dvh - 48px));display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);overflow:hidden;border:1px solid #d8dde2;border-radius:28px;background:#fff;box-shadow:0 32px 90px rgba(25,31,39,.16)}
.login87-identity{position:relative;display:flex;flex-direction:column;min-width:0;padding:42px 46px;color:#f7f4ee;background:linear-gradient(150deg,#171b21 0%,#202833 56%,#171c23 100%);overflow:hidden}
.login87-identity:before{content:"";position:absolute;inset:-20% -35% auto auto;width:520px;height:520px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.login87-identity:after{content:"AS";position:absolute;right:-34px;bottom:-80px;font-size:310px;line-height:1;font-weight:900;letter-spacing:-.09em;color:rgba(255,255,255,.035);pointer-events:none}
.login87-brandline{position:relative;z-index:1;display:flex;align-items:center;gap:15px}.login87-logo{width:88px!important;height:58px!important;padding:5px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.15)!important;background:#fff!important;box-shadow:none!important}.login87-brandline>div{display:grid;gap:3px}.login87-brandline strong{font-size:15px;letter-spacing:.22em}.login87-brandline span{font-size:10px;color:#b7c0ca;letter-spacing:.08em;text-transform:uppercase}
.login87-hero{position:relative;z-index:1;margin:auto 0;max-width:590px}.login87-kicker{display:inline-flex;padding:7px 10px;border:1px solid rgba(198,163,106,.42);border-radius:999px;color:#dcc498;font-size:9px;font-weight:850;letter-spacing:.17em}.login87-hero h1{margin:22px 0 15px;font-size:clamp(42px,5vw,68px);line-height:.98;letter-spacing:-.055em;font-weight:780}.login87-hero p{max-width:510px;margin:0;color:#b9c1ca;font-size:14px;line-height:1.7}
.login87-flow{position:relative;z-index:1;display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto;align-items:center;gap:12px;padding:18px 0 20px;border-top:1px solid rgba(255,255,255,.11);border-bottom:1px solid rgba(255,255,255,.11)}.login87-flow>div{display:grid;gap:4px}.login87-flow b{font-size:9px;color:#d8bd8b;letter-spacing:.1em}.login87-flow span{font-size:11px;font-weight:800}.login87-flow i{height:1px;background:linear-gradient(90deg,rgba(198,163,106,.2),rgba(198,163,106,.75),rgba(198,163,106,.2))}
.login87-signature{position:relative;z-index:1;display:flex;justify-content:space-between;gap:20px;padding-top:20px;color:#89939e;font-size:10px}.login87-signature span{color:#d8bd8b;font-weight:750}
.login87-access{display:grid;place-items:center;padding:38px;background:linear-gradient(180deg,#fbfbfc,#f4f6f8)}
.login87-card{width:min(430px,100%);padding:32px;border:1px solid #e0e4e8;border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(29,36,45,.08)}
.login87-cardtop{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.login87-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#1b222b;color:#fff;font-weight:900;font-size:14px;letter-spacing:-.04em}.login87-live{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #e3e7eb;border-radius:999px;color:#68727e;font-size:10px;font-weight:750}.login87-live i{width:7px;height:7px;border-radius:50%;background:#1b9a6d;box-shadow:0 0 0 4px rgba(27,154,109,.09)}
.login87-title{margin-bottom:27px}.login87-title small{display:block;margin-bottom:7px;color:#3456d1;font-size:9px;font-weight:900;letter-spacing:.16em}.login87-title h2{margin:0 0 7px;color:#1d2530;font-size:27px;line-height:1.15;letter-spacing:-.035em}.login87-title p{margin:0;color:#87909a;font-size:12px}
.login87-field{display:grid;gap:7px;margin-bottom:16px}.login87-field>span{color:#525c67;font-size:10px;font-weight:800}.login87-field>div{display:flex;align-items:center;min-height:50px;padding:0 12px;border:1px solid #dce1e6;border-radius:12px;background:#fafbfc;transition:.15s ease}.login87-field>div:focus-within{border-color:#9cacdf;background:#fff;box-shadow:0 0 0 3px rgba(52,86,209,.08)}.login87-field svg{width:18px;height:18px;margin-right:10px;fill:none;stroke:#8b949e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.login87-field input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#202832!important;padding:0!important;height:auto!important;box-shadow:none!important;font-size:13px}.login87-field input::placeholder{color:#a7afb8}.login87-show{border:0;background:transparent;color:#3456d1;font-size:10px;font-weight:850;cursor:pointer;padding:8px}
.login87-remember{position:relative;display:grid;grid-template-columns:21px 1fr;gap:10px;align-items:start;margin:2px 0 20px;cursor:pointer}.login87-remember>input{position:absolute;opacity:0;pointer-events:none}.login87-check{width:20px;height:20px;border:1.5px solid #b8c0c8;border-radius:6px;background:#fff;display:grid;place-items:center;margin-top:1px}.login87-remember>input:checked+.login87-check{background:#3456d1;border-color:#3456d1}.login87-remember>input:checked+.login87-check:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}.login87-remember>span:last-child{display:grid;gap:2px}.login87-remember strong{font-size:11px;color:#3d4651}.login87-remember small{font-size:9px;color:#929aa4}
.login87-submit{width:100%;height:52px;border:0;border-radius:12px;background:#1d2530;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-weight:850;cursor:pointer;box-shadow:0 9px 22px rgba(29,37,48,.16);transition:.16s ease}.login87-submit:hover{background:#11171e;transform:translateY(-1px)}.login87-submit b{font-size:19px;font-weight:500}.login87-error{min-height:18px;margin-top:8px;color:#b94242;font-size:11px;text-align:center}.login87-security{display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:10px 11px;border-radius:10px;background:#f6f8fa;color:#7f8893}.login87-security>span{color:#16855f;font-size:8px;margin-top:3px}.login87-security small{font-size:9px;line-height:1.4}.login87-card footer{display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:16px;border-top:1px solid #eceff2;color:#a0a7af;font-size:9px}

/* Desktop: slim command rail + cleaner work canvas */
.workspace87{background:#f1f4f6!important}
.workspace87-rail{position:fixed;inset:0 auto 0 0;z-index:120;width:76px;display:flex;flex-direction:column;align-items:center;padding:14px 9px;background:#17202a;border-right:1px solid #273442;color:#d9e0e7}
.workspace87-rail-mark{width:46px;height:46px;display:grid;place-items:center;margin-bottom:20px;border-radius:13px;background:#fff;color:#17202a;font-weight:950;font-size:13px;letter-spacing:-.05em}
.workspace87-rail-items{width:100%;display:grid;gap:7px}.workspace87-rail button{width:100%;min-height:56px;display:grid;place-items:center;align-content:center;gap:4px;border:0;border-radius:11px;background:transparent;color:#8190a0;cursor:pointer}.workspace87-rail button span{height:22px;display:grid;place-items:center}.workspace87-rail button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.workspace87-rail button small{max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;font-weight:750}.workspace87-rail button:hover{background:#202c39;color:#dce5ed}.workspace87-rail button.active{background:#2c4fc4;color:#fff}.workspace87-rail-more{margin-top:auto!important;color:#9ba8b6!important}.workspace87-rail-more>span{font-size:18px;letter-spacing:2px}
.workspace87 .workspace86-topbar{margin-left:76px!important;width:calc(100% - 76px)!important;background:rgba(255,255,255,.95)!important;box-shadow:0 1px 0 #e0e5e9!important}.workspace87 .workspace86-main{margin-left:76px!important;width:calc(100% - 76px)!important}.workspace87 .content{width:min(100% - 54px,1580px)!important}.workspace87 .workspace86-launcher>summary{background:#17202a!important;border-color:#17202a!important;color:#fff!important}.workspace87 .workspace86-launcher[open]>summary{background:#243141!important;border-color:#243141!important;color:#fff!important}.workspace87 .workspace86-route small{color:#7f8b98!important}.workspace87 .workspace86-route strong{font-size:14px!important}.workspace87 .page-head{padding-top:4px!important}.workspace87 .page-head h1{font-size:30px!important}.workspace87 .card,.workspace87 .section,.workspace87 .planner-toolbar,.workspace87 .module-search-bar{border-color:#dde4e9!important;border-radius:15px!important;box-shadow:0 1px 2px rgba(22,30,39,.025)!important}.workspace87 .primary-btn{background:#2f54cb!important;border-color:#2f54cb!important}.workspace87 .primary-btn:hover{background:#2847aa!important;border-color:#2847aa!important}.workspace87 .as-kpi-card{border-radius:14px!important}.workspace87 .table-wrap{border-radius:13px!important}.workspace87 .data-table th{background:#f3f6f8!important}

/* PHONE OS: one authoritative mobile layer; removes old conflicting shell rules */
@media(max-width:800px){
  html[data-mobile-sidebar="open"],html[data-mobile-sidebar="open"] body{overflow:hidden!important;overscroll-behavior:none}
  .login87-shell{padding:0;background:#f2f4f6;display:block}.login87-frame{width:100%;min-height:100dvh;border:0;border-radius:0;grid-template-columns:1fr;box-shadow:none;overflow:visible}.login87-identity{min-height:252px;padding:22px 20px 26px;border-radius:0 0 28px 28px}.login87-brandline{gap:10px}.login87-logo{width:72px!important;height:48px!important}.login87-brandline strong{font-size:12px}.login87-hero{margin:28px 0 22px}.login87-kicker{font-size:8px}.login87-hero h1{margin:15px 0 10px;font-size:36px;line-height:1.02}.login87-hero p{font-size:11px;line-height:1.55;max-width:420px}.login87-flow{display:none}.login87-signature{padding-top:0;font-size:8px}.login87-access{padding:18px 14px 28px;background:#f2f4f6}.login87-card{margin-top:-42px;padding:23px 18px 20px;border-radius:20px;box-shadow:0 14px 40px rgba(25,31,39,.13)}.login87-cardtop{margin-bottom:22px}.login87-title{margin-bottom:20px}.login87-title h2{font-size:24px}.login87-field>div{min-height:48px}.login87-card footer{margin-top:16px}

  .workspace87-rail{display:none!important}
  .workspace87,.workspace87 .main,.workspace87 .workspace86-main{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;min-width:0!important}
  .workspace87 .workspace86-topbar{position:sticky!important;top:0!important;z-index:700!important;width:100%!important;margin:0!important;height:auto!important;min-height:62px!important;padding:10px 11px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:42px auto!important;gap:8px 9px!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #dfe5ea!important;box-shadow:0 4px 18px rgba(20,28,37,.05)!important;backdrop-filter:blur(14px)!important}
  .workspace87 .workspace86-left{grid-column:1/3;grid-row:1;min-width:0!important;gap:8px!important}.workspace87 .mobile-menu-toggle{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;border:1px solid #dbe2e8!important;border-radius:11px!important;background:#f7f9fa!important;color:#243140!important;font-size:19px!important}.workspace87 .workspace86-logo{width:74px!important;height:38px!important;min-width:74px!important;border-radius:7px!important}.workspace87 .workspace86-launcher,.workspace87 .workspace86-route{display:none!important}
  .workspace87 .workspace86-user{grid-column:3;grid-row:1;justify-self:end!important;gap:5px!important}.workspace87 .workspace86-user .install-app-btn,.workspace87 .workspace86-user .user-text,.workspace87 .workspace86-user .avatar,.workspace87 .workspace86-logout{display:none!important}.workspace87 .workspace86-user .live-sync-chip{width:42px!important;height:42px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:11px!important}.workspace87 .workspace86-user .live-sync-chip span{display:none!important}
  .workspace87 .workspace86-search{grid-column:1/-1!important;grid-row:2!important;width:100%!important;display:block!important;margin:0!important}.workspace87 .workspace86-search input{width:100%!important;height:40px!important;min-height:40px!important;padding:0 12px 0 37px!important;border-radius:11px!important;background:#f4f6f8!important;font-size:12px!important}.workspace87 .workspace86-search:before{left:13px!important;top:7px!important}

  .workspace87 .content{width:100%!important;max-width:100%!important;margin:0!important;padding:15px 11px calc(92px + env(safe-area-inset-bottom,0px))!important;overflow-x:hidden!important}.workspace87 .content>*{max-width:100%!important;min-width:0!important}.workspace87 .page-head{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-bottom:13px!important}.workspace87 .page-head h1{font-size:23px!important;line-height:1.15!important}.workspace87 .page-head p{font-size:11px!important}.workspace87 .page-head>div,.workspace87 .page-head .quick-actions,.workspace87 .page-head .planner-head-actions{min-width:0!important;max-width:100%!important}.workspace87 .page-head .quick-actions,.workspace87 .page-head .planner-head-actions{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;gap:7px!important;padding-bottom:3px!important;-webkit-overflow-scrolling:touch}.workspace87 .page-head .quick-actions>* ,.workspace87 .page-head .planner-head-actions>*{flex:0 0 auto!important}

  .workspace87 .workspace86-mobile-drawer{display:flex!important;flex-direction:column!important;position:fixed!important;top:0!important;bottom:0!important;left:0!important;right:auto!important;width:min(91vw,360px)!important;max-width:360px!important;height:100dvh!important;min-height:100dvh!important;padding:0!important;z-index:1000!important;transform:translate3d(-103%,0,0)!important;visibility:hidden!important;overflow:hidden!important;background:#fff!important;border:0!important;border-right:1px solid #dbe2e8!important;box-shadow:24px 0 60px rgba(18,26,35,.24)!important;transition:transform .2s ease,visibility .2s ease!important;will-change:transform}
  html[data-mobile-sidebar="open"] .workspace87 .workspace86-mobile-drawer{transform:translate3d(0,0,0)!important;visibility:visible!important}
  .workspace87 .workspace86-mobile-drawer .sidebar-head{display:flex!important;align-items:center!important;flex:0 0 auto!important;width:100%!important;min-height:74px!important;padding:12px 14px!important;border-bottom:1px solid #e7ebee!important;background:#fff!important}.workspace87 .workspace86-mobile-drawer .workspace-brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1!important}.workspace87 .workspace86-mobile-drawer .workspace-brand>span{display:grid!important;gap:2px!important;min-width:0!important}.workspace87 .workspace86-mobile-drawer .workspace-brand strong{font-size:12px!important;color:#202a35!important}.workspace87 .workspace86-mobile-drawer .workspace-brand small{font-size:8px!important;color:#8b96a1!important}.workspace87 .workspace86-mobile-drawer .mobile-sidebar-close{width:40px!important;height:40px!important;min-width:40px!important;border:1px solid #e0e5e9!important;border-radius:10px!important;background:#f7f9fa!important;color:#3c4855!important;font-size:22px!important}
  .workspace87 .workspace86-mobile-drawer .nav{display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px 10px 22px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}.workspace87 .workspace86-mobile-drawer .nav-group{display:block!important;margin:0 0 14px!important}.workspace87 .workspace86-mobile-drawer .nav-group-label{display:flex!important;padding:4px 8px 6px!important;color:#8a95a0!important;font-size:8px!important;font-weight:900!important;letter-spacing:.13em!important;text-transform:uppercase!important}.workspace87 .workspace86-mobile-drawer .nav-group-items{display:grid!important;gap:3px!important}.workspace87 .workspace86-mobile-drawer .nav-group-items button{display:flex!important;align-items:center!important;width:100%!important;min-height:47px!important;padding:8px 10px!important;gap:11px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#4d5966!important;text-align:left!important}.workspace87 .workspace86-mobile-drawer .nav-group-items button .icon{display:grid!important;place-items:center!important;width:31px!important;height:31px!important;min-width:31px!important;border-radius:8px!important;background:#f2f5f7!important;color:#637180!important}.workspace87 .workspace86-mobile-drawer .nav-group-items button svg{width:17px!important;height:17px!important}.workspace87 .workspace86-mobile-drawer .nav-group-items button.active{background:#eef2ff!important;color:#2849ba!important;font-weight:800!important}.workspace87 .workspace86-mobile-drawer .nav-group-items button.active .icon{background:#fff!important;color:#2849ba!important}.workspace87 .workspace86-mobile-drawer .nav-label{display:block!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important}.workspace87 .workspace86-mobile-drawer .sidebar-footer{display:block!important;position:static!important;flex:0 0 auto!important;width:100%!important;margin:0!important;padding:12px 15px calc(12px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid #e7ebee!important;border-radius:0!important;background:#f7f9fa!important;color:#83909c!important;font-size:9px!important;box-shadow:none!important}
  .workspace87>.sidebar-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:990!important;border:0!important;background:rgba(17,24,32,.48)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .2s ease,visibility .2s ease!important}.workspace87 .sidebar-backdrop{display:block!important}html[data-mobile-sidebar="open"] .workspace87>.sidebar-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}

  .workspace87 .mobile-work-nav{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;z-index:650!important;height:64px!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:5px!important;border:1px solid #dfe5ea!important;border-radius:17px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 12px 32px rgba(18,26,35,.15)!important;backdrop-filter:blur(16px)!important;overflow:hidden!important}.workspace87 .mobile-work-nav button{min-width:0!important;height:52px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:2px!important;padding:3px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#7d8995!important}.workspace87 .mobile-work-nav button.active{background:#eef2ff!important;color:#2c4dc1!important}.workspace87 .mobile-work-nav svg{width:19px!important;height:19px!important}.workspace87 .mobile-work-nav small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:7.5px!important;font-weight:800!important}

  .workspace87 .stats,.workspace87 .stats.four,.workspace87 .stats.three,.workspace87 .as-command-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.workspace87 .grid-2,.workspace87 .grid-3,.workspace87 .finance-control-grid,.workspace87 .planner-layout,.workspace87 .material-master-grid{grid-template-columns:1fr!important}.workspace87 .section{padding:13px!important}.workspace87 .card{max-width:100%!important;min-width:0!important}.workspace87 .table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.workspace87 .data-table{width:max-content!important;min-width:680px!important;max-width:none!important}.workspace87 .data-table th,.workspace87 .data-table td{white-space:nowrap!important;padding:9px 10px!important;font-size:9.5px!important}.workspace87 .form-grid,.workspace87 .appearance-form,.workspace87 .brand-fields,.workspace87 .drill-rule-main,.workspace87 .drill-config-inputs{grid-template-columns:1fr!important}.workspace87 .modal-card{width:min(94vw,760px)!important;max-width:94vw!important;max-height:88dvh!important;overflow:auto!important;padding:16px!important;border-radius:16px!important}.workspace87 .modal-backdrop{padding:10px!important}.workspace87 .as-command-hero{grid-template-columns:1fr!important;padding:14px!important}.workspace87 .as-command-hero-side{align-items:stretch!important;flex-wrap:wrap!important}.workspace87 .as-command-clock{display:none!important}.workspace87 .as-quick-actions{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.workspace87 .as-quick-actions>button{min-width:142px!important}.workspace87 .planner-toolbar{position:static!important;max-width:100%!important;overflow:hidden!important}.workspace87 .planner-view-tabs{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important}.workspace87 .today-floor-lane,.workspace87 .planner-day-column,.workspace87 .planner-backlog,.workspace87 .planner-stage-panel{min-width:0!important;max-width:100%!important}
}
@media(max-width:420px){
  .login87-hero h1{font-size:32px}.login87-identity{min-height:238px}.login87-card{padding:20px 15px}.login87-title h2{font-size:22px}
  .workspace87 .content{padding-inline:9px!important}.workspace87 .stats,.workspace87 .stats.four,.workspace87 .stats.three,.workspace87 .as-command-kpis{grid-template-columns:1fr 1fr!important}.workspace87 .as-kpi-card{padding:11px!important;min-height:82px!important}.workspace87 .as-kpi-card strong{font-size:21px!important}.workspace87 .workspace86-mobile-drawer{width:94vw!important}
}

/* ======================================================================
   BUILD 088 — DARK WORKSPACE + IPHONE / SAFARI-FIRST EXPERIENCE
   This layer intentionally sits last so it is authoritative.
   ====================================================================== */

:root{
  --ws-bg:#f2f4f7;
  --ws-surface:#ffffff;
  --ws-surface-2:#f7f9fb;
  --ws-surface-3:#edf1f5;
  --ws-line:#dde3e8;
  --ws-line-strong:#c5ced7;
  --ws-text:#1b2530;
  --ws-muted:#74808c;
  --ws-soft:#94a0ab;
  --ws-nav:#15202a;
  --ws-nav-2:#1d2a36;
  --ws-accent:#3157d5;
  --ws-accent-soft:#eef2ff;
  --ws-shadow:0 10px 30px rgba(24,34,45,.08);
  --as-visual-height:100dvh;
}
html[data-theme="graphite"]{
  --ws-bg:#090d12;
  --ws-surface:#10161d;
  --ws-surface-2:#151c24;
  --ws-surface-3:#1b242e;
  --ws-line:#27323d;
  --ws-line-strong:#3a4856;
  --ws-text:#edf2f7;
  --ws-muted:#99a6b4;
  --ws-soft:#748292;
  --ws-nav:#070a0e;
  --ws-nav-2:#111820;
  --ws-accent:#6f8fff;
  --ws-accent-soft:#17233f;
  --ws-shadow:0 12px 34px rgba(0,0,0,.28);
}

html[data-theme="graphite"] body{background:var(--ws-bg)!important;color:var(--ws-text)!important}
html[data-theme="graphite"] .workspace87{background:var(--ws-bg)!important;color:var(--ws-text)!important}
html[data-theme="graphite"] .workspace87 .workspace86-main{background:var(--ws-bg)!important}
html[data-theme="graphite"] .workspace87 .workspace86-topbar{background:rgba(12,17,23,.96)!important;box-shadow:0 1px 0 var(--ws-line)!important;color:var(--ws-text)!important}
html[data-theme="graphite"] .workspace87-rail{background:#06090d!important;border-color:#1e2832!important;color:#dce5ed!important}
html[data-theme="graphite"] .workspace87-rail-mark{background:#edf2f7!important;color:#0b1016!important}
html[data-theme="graphite"] .workspace87-rail button{color:#708093!important}
html[data-theme="graphite"] .workspace87-rail button:hover{background:#111923!important;color:#e4ebf2!important}
html[data-theme="graphite"] .workspace87-rail button.active{background:#4569e8!important;color:#fff!important}
html[data-theme="graphite"] .workspace87 .workspace86-route small{color:#718091!important}
html[data-theme="graphite"] .workspace87 .workspace86-route strong{color:#eef3f8!important}
html[data-theme="graphite"] .workspace87 .workspace86-search input{background:#141b23!important;border-color:#26313c!important;color:#edf2f7!important}
html[data-theme="graphite"] .workspace87 .workspace86-search input::placeholder{color:#6f7d8c!important}
html[data-theme="graphite"] .workspace87 .workspace86-search:before{color:#8391a0!important}
html[data-theme="graphite"] .workspace87 .workspace86-launcher>summary{background:#1a232d!important;border-color:#2a3744!important;color:#f1f5f9!important}
html[data-theme="graphite"] .workspace87 .workspace86-launcher-panel{background:#10161d!important;border-color:#2b3743!important;box-shadow:0 28px 80px rgba(0,0,0,.48)!important;color:#edf2f7!important}
html[data-theme="graphite"] .workspace87 .workspace86-launcher-head{border-color:#26323d!important}
html[data-theme="graphite"] .workspace87 .workspace86-launcher-head span,html[data-theme="graphite"] .workspace87 .workspace86-launch-group h3{color:#7f8d9b!important}
html[data-theme="graphite"] .workspace87 .workspace86-launch-group button{background:#141b23!important;border-color:#26323d!important;color:#d9e1e9!important}
html[data-theme="graphite"] .workspace87 .workspace86-launch-group button:hover{background:#1a2430!important;border-color:#405065!important}
html[data-theme="graphite"] .workspace87 .workspace86-launch-group button.active{background:#17233f!important;border-color:#526ed2!important;color:#f4f7fb!important}
html[data-theme="graphite"] .workspace87 .workspace86-launch-group button>span{background:#1d2732!important;color:#8ba3ff!important}
html[data-theme="graphite"] .workspace87 .workspace86-user{color:#dfe7ef!important}
html[data-theme="graphite"] .workspace87 .workspace86-user .avatar{background:#1d2a37!important;color:#f0f5fa!important;border:1px solid #334150!important}
html[data-theme="graphite"] .workspace87 .workspace86-user .user-text small{color:#7f8d9b!important}
html[data-theme="graphite"] .workspace87 .workspace86-logout{background:#151d25!important;border-color:#2a3642!important;color:#c8d2dc!important}
html[data-theme="graphite"] .workspace87 .live-sync-chip{background:#111820!important;border-color:#27333f!important;color:#b8c3ce!important}

.workspace-theme-toggle{width:38px;height:38px;min-width:38px;display:grid;place-items:center;border:1px solid #dce2e7;border-radius:11px;background:#fff;color:#35414d;cursor:pointer;font-size:18px;line-height:1;transition:.15s ease}
.workspace-theme-toggle:hover{border-color:#b9c5cf;background:#f5f7f9}
html[data-theme="graphite"] .workspace-theme-toggle{background:#151d25;border-color:#2b3743;color:#eef3f8}
html[data-theme="graphite"] .workspace-theme-toggle:hover{background:#1d2731;border-color:#465565}

html[data-theme="graphite"] .workspace87 .page-head h1,html[data-theme="graphite"] .workspace87 h1,html[data-theme="graphite"] .workspace87 h2,html[data-theme="graphite"] .workspace87 h3,html[data-theme="graphite"] .workspace87 strong{color:var(--ws-text)}
html[data-theme="graphite"] .workspace87 .page-head p,html[data-theme="graphite"] .workspace87 small,html[data-theme="graphite"] .workspace87 .muted-line{color:var(--ws-muted)!important}
html[data-theme="graphite"] .workspace87 .card,html[data-theme="graphite"] .workspace87 .section,html[data-theme="graphite"] .workspace87 .planner-toolbar,html[data-theme="graphite"] .workspace87 .module-search-bar,html[data-theme="graphite"] .workspace87 .today-floor-lane,html[data-theme="graphite"] .workspace87 .planner-day-column,html[data-theme="graphite"] .workspace87 .planner-backlog,html[data-theme="graphite"] .workspace87 .planner-stage-panel,html[data-theme="graphite"] .workspace87 .production-card,html[data-theme="graphite"] .workspace87 .job-card,html[data-theme="graphite"] .workspace87 .material-card,html[data-theme="graphite"] .workspace87 .product-card{background:var(--ws-surface)!important;border-color:var(--ws-line)!important;color:var(--ws-text)!important;box-shadow:none!important}
html[data-theme="graphite"] .workspace87 .panel,html[data-theme="graphite"] .workspace87 .panel2,html[data-theme="graphite"] .workspace87 .material-result-count,html[data-theme="graphite"] .workspace87 .finance-panel,html[data-theme="graphite"] .workspace87 .finance-profit-table{background:var(--ws-surface-2)!important;border-color:var(--ws-line)!important;color:var(--ws-text)!important}
html[data-theme="graphite"] .workspace87 input,html[data-theme="graphite"] .workspace87 select,html[data-theme="graphite"] .workspace87 textarea{background:#0d1319!important;border-color:#2b3742!important;color:#edf3f8!important}
html[data-theme="graphite"] .workspace87 input::placeholder,html[data-theme="graphite"] .workspace87 textarea::placeholder{color:#687685!important}
html[data-theme="graphite"] .workspace87 input:focus,html[data-theme="graphite"] .workspace87 select:focus,html[data-theme="graphite"] .workspace87 textarea:focus{border-color:#607de8!important;box-shadow:0 0 0 3px rgba(91,121,231,.16)!important}
html[data-theme="graphite"] .workspace87 .secondary-btn,html[data-theme="graphite"] .workspace87 .upload-btn,html[data-theme="graphite"] .workspace87 .camera-btn{background:#151d25!important;border-color:#2d3945!important;color:#dbe4ec!important}
html[data-theme="graphite"] .workspace87 .secondary-btn:hover,html[data-theme="graphite"] .workspace87 .upload-btn:hover{background:#1c2630!important;border-color:#465564!important}
html[data-theme="graphite"] .workspace87 .primary-btn{background:#5475ed!important;border-color:#5475ed!important;color:#fff!important}
html[data-theme="graphite"] .workspace87 .primary-btn:hover{background:#6582ec!important;border-color:#6582ec!important}
html[data-theme="graphite"] .workspace87 .table-wrap{border-color:#27323d!important;background:#0e141b!important}
html[data-theme="graphite"] .workspace87 .data-table{color:#dbe3eb!important;background:#10161d!important}
html[data-theme="graphite"] .workspace87 .data-table th{background:#151d25!important;color:#8e9ba9!important;border-color:#27323d!important}
html[data-theme="graphite"] .workspace87 .data-table td{background:#10161d!important;color:#d7e0e8!important;border-color:#222d37!important}
html[data-theme="graphite"] .workspace87 .data-table tbody tr:hover td{background:#151f29!important}
html[data-theme="graphite"] .workspace87 .as-kpi-card{background:#10161d!important;border-color:#27323d!important;color:#cbd5df!important}
html[data-theme="graphite"] .workspace87 .as-kpi-card strong{color:#f1f5f9!important}
html[data-theme="graphite"] .workspace87 .as-kpi-card.warning{background:#211a10!important;border-color:#4d3b1d!important}
html[data-theme="graphite"] .workspace87 .as-kpi-card.critical{background:#241315!important;border-color:#553034!important}
html[data-theme="graphite"] .workspace87 .as-flow-step,html[data-theme="graphite"] .workspace87 .command-stage-card,html[data-theme="graphite"] .workspace87 .order-timeline-card,html[data-theme="graphite"] .workspace87 .operator-performance-row,html[data-theme="graphite"] .workspace87 .command-action-row{background:#111820!important;border-color:#293541!important;color:#d6dfe8!important}
html[data-theme="graphite"] .workspace87 .planner-view-tabs{background:#0d1319!important}
html[data-theme="graphite"] .workspace87 .planner-view-tabs button{color:#84919f!important}
html[data-theme="graphite"] .workspace87 .planner-view-tabs button.active{background:#1d2732!important;color:#91a7ff!important;box-shadow:none!important}
html[data-theme="graphite"] .workspace87 .module-search-field{background:#0d1319!important;border-color:#293541!important;color:#dfe7ef!important}
html[data-theme="graphite"] .workspace87 .modal-backdrop{background:rgba(0,0,0,.66)!important}
html[data-theme="graphite"] .workspace87 .modal-card{background:#10161d!important;border-color:#2b3743!important;color:#e9eff5!important;box-shadow:0 30px 100px rgba(0,0,0,.55)!important}
html[data-theme="graphite"] .workspace87 .modal-head{border-color:#26323d!important}
html[data-theme="graphite"] .workspace87 .modal-head h2{color:#f0f4f8!important}
html[data-theme="graphite"] .workspace87 .status-pill,html[data-theme="graphite"] .workspace87 .status-badge{border-color:#34414e!important}
html[data-theme="graphite"] .workspace87 .health-chip{background:#111820!important;border-color:#2d3945!important;color:#99a8b6!important}
html[data-theme="graphite"] .workspace87 .tabs button,html[data-theme="graphite"] .workspace87 .billing-tabs button{background:#151d25!important;border-color:#2a3642!important;color:#8e9ba9!important}
html[data-theme="graphite"] .workspace87 .tabs button.active,html[data-theme="graphite"] .workspace87 .billing-tabs button.active{background:#526fe0!important;border-color:#526fe0!important;color:#fff!important}

/* Dark login follows the saved dark choice without changing the composition. */
html[data-theme="graphite"] .login87-shell{background:#070b10;color:#eef3f8}
html[data-theme="graphite"] .login87-frame{background:#0d1319;border-color:#252f39;box-shadow:0 34px 100px rgba(0,0,0,.5)}
html[data-theme="graphite"] .login87-access{background:linear-gradient(180deg,#0d1319,#090e13)}
html[data-theme="graphite"] .login87-card{background:#111820;border-color:#293541;box-shadow:0 22px 64px rgba(0,0,0,.34)}
html[data-theme="graphite"] .login87-title h2{color:#eef3f8}
html[data-theme="graphite"] .login87-title p{color:#8997a5}
html[data-theme="graphite"] .login87-field>span{color:#aab5c0}
html[data-theme="graphite"] .login87-field>div{background:#0b1117;border-color:#2b3742}
html[data-theme="graphite"] .login87-field>div:focus-within{background:#0d141c;border-color:#6682eb;box-shadow:0 0 0 3px rgba(86,116,225,.16)}
html[data-theme="graphite"] .login87-field input{color:#eef3f8!important}
html[data-theme="graphite"] .login87-field input::placeholder{color:#637180}
html[data-theme="graphite"] .login87-remember strong{color:#cdd6df}
html[data-theme="graphite"] .login87-remember small{color:#758291}
html[data-theme="graphite"] .login87-check{background:#0b1117;border-color:#4b5865}
html[data-theme="graphite"] .login87-security{background:#0b1117;color:#8492a0}
html[data-theme="graphite"] .login87-card footer{border-color:#27323d;color:#667483}
html[data-theme="graphite"] .login87-live{border-color:#2d3945;color:#9aa7b5}
html[data-theme="graphite"] .login87-mark{background:#eef3f8;color:#111820}

/* iPhone install help */
.ios-install-note{display:grid;gap:4px;margin:0 0 12px;padding:12px 14px;border:1px solid #dfe5ea;border-radius:12px;background:#f7f9fb}.ios-install-note strong{font-size:12px}.ios-install-note span{font-size:10px;color:#74808c;line-height:1.45}.ios-install-note.good{border-color:#cfe9de;background:#f0faf5}.ios-install-note.warning{border-color:#eeddbd;background:#fff9ed}.ios-install-steps{display:grid;gap:9px;margin:15px 0}.ios-install-steps article{display:grid;grid-template-columns:34px 1fr;gap:11px;align-items:start;padding:12px;border:1px solid #e1e6ea;border-radius:12px;background:#fff}.ios-install-steps b{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eef2ff;color:#3157d5}.ios-install-steps article>div{display:grid;gap:3px}.ios-install-steps strong{font-size:12px}.ios-install-steps span{font-size:10px;color:#74808c;line-height:1.45}.ios-install-foot{display:flex;gap:10px;padding:12px;border-radius:11px;background:#f3f6f8;color:#65717d;font-size:10px;line-height:1.45}.ios-install-foot strong{color:#26323d}.ios-install-foot code{font-size:9px}
html[data-theme="graphite"] .ios-install-note,html[data-theme="graphite"] .ios-install-steps article,html[data-theme="graphite"] .ios-install-foot{background:#151d25;border-color:#2b3743;color:#dfe7ef}html[data-theme="graphite"] .ios-install-note span,html[data-theme="graphite"] .ios-install-steps span{color:#8c99a6}html[data-theme="graphite"] .ios-install-note.good{background:#102019;border-color:#214837}html[data-theme="graphite"] .ios-install-note.warning{background:#211b10;border-color:#4b3b20}html[data-theme="graphite"] .ios-install-steps b{background:#17233f;color:#91a7ff}

/* Safari / iPhone behavior */
html[data-ios="true"],html[data-ios="true"] body{-webkit-text-size-adjust:100%;text-size-adjust:100%;min-height:100%;background:var(--ws-bg)}
html[data-ios="true"] body{min-height:var(--as-visual-height);overscroll-behavior-y:none}
html[data-ios="true"] button,html[data-ios="true"] a,html[data-ios="true"] summary,html[data-ios="true"] label{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html[data-ios="true"] input,html[data-ios="true"] textarea,html[data-ios="true"] select{-webkit-appearance:none;appearance:none}
html[data-ios="true"] .login87-shell{padding-top:max(0px,env(safe-area-inset-top));padding-bottom:max(0px,env(safe-area-inset-bottom));min-height:var(--as-visual-height)}

@media(max-width:800px){
  html[data-ios="true"] .workspace87 .workspace86-topbar{padding-top:env(safe-area-inset-top)!important;height:calc(60px + env(safe-area-inset-top))!important;min-height:calc(60px + env(safe-area-inset-top))!important}
  html[data-ios="true"] .workspace87 .workspace86-mobile-drawer{height:var(--as-visual-height)!important;min-height:var(--as-visual-height)!important;padding-top:env(safe-area-inset-top)!important}
  html[data-ios="true"] .workspace87 .content{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
  html[data-ios="true"] .workspace87 input,html[data-ios="true"] .workspace87 textarea,html[data-ios="true"] .workspace87 select,html[data-ios="true"] .login87-field input{font-size:16px!important}
  html[data-ios="true"] .workspace87 button,html[data-ios="true"] .workspace87 .primary-btn,html[data-ios="true"] .workspace87 .secondary-btn,html[data-ios="true"] .workspace87 select,html[data-ios="true"] .workspace87 input:not([type="checkbox"]):not([type="radio"]){min-height:44px}
  html[data-ios="true"] .workspace87 .workspace-theme-toggle{min-height:38px!important}
  html[data-ios="true"] .workspace87 .table-wrap{scrollbar-width:none}.workspace87 .table-wrap::-webkit-scrollbar{display:none}
  html[data-ios="true"] .workspace87 .modal-backdrop{align-items:flex-end!important;padding:0!important;padding-top:env(safe-area-inset-top)!important}
  html[data-ios="true"] .workspace87 .modal-card{width:100%!important;max-width:100%!important;max-height:calc(var(--as-visual-height) - env(safe-area-inset-top))!important;margin:0!important;border-radius:20px 20px 0 0!important;padding-bottom:calc(18px + env(safe-area-inset-bottom))!important;-webkit-overflow-scrolling:touch!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer{background:#0c1218!important;border-color:#26313c!important;color:#e5ecf2!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .sidebar-head{background:#0c1218!important;border-color:#25313c!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .workspace-brand strong{color:#eef3f7!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .workspace-brand small{color:#778594!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .mobile-sidebar-close{background:#151d25!important;border-color:#2c3844!important;color:#dfe7ef!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .nav-group-label{color:#677687!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .nav-group-items button{color:#aab6c1!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .nav-group-items button .icon{background:#141c24!important;color:#8292a2!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .nav-group-items button.active{background:#17233f!important;color:#a9b9ff!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .nav-group-items button.active .icon{background:#1d2a43!important;color:#a9b9ff!important}
  html[data-theme="graphite"] .workspace87 .workspace86-mobile-drawer .sidebar-footer{background:#0a1016!important;border-color:#25313c!important;color:#677585!important}
  html[data-theme="graphite"] .workspace87 .mobile-work-nav{background:rgba(13,19,25,.96)!important;border-color:#293541!important;box-shadow:0 12px 36px rgba(0,0,0,.38)!important}
  html[data-theme="graphite"] .workspace87 .mobile-work-nav button{color:#778696!important}
  html[data-theme="graphite"] .workspace87 .mobile-work-nav button.active{background:#17233f!important;color:#a5b6ff!important}
  html[data-theme="graphite"] .workspace87 .mobile-menu-toggle{background:#151d25!important;border-color:#2c3844!important;color:#dfe7ef!important}
  html[data-theme="graphite"] .workspace87 .workspace86-search input{background:#0d1319!important;border-color:#2b3743!important;color:#eaf0f5!important}
}

/* Hide bottom work bar while Safari keyboard is open so controls are not covered. */
html[data-keyboard="open"] .workspace87 .mobile-work-nav{transform:translateY(130%)!important;opacity:0!important;pointer-events:none!important}
html[data-keyboard="open"] .workspace87 .content{padding-bottom:24px!important}
html[data-keyboard="open"] .workspace87 .workspace86-topbar{position:absolute!important}

/* Standalone iPhone: slightly more app-like and stable. */
@media(display-mode:standalone){
  html[data-ios="true"] .workspace87 .workspace86-topbar{position:sticky!important;top:0!important}
  html[data-ios="true"] .workspace87 .mobile-work-nav{bottom:calc(6px + env(safe-area-inset-bottom))!important}
}

.ios-drawer-install{width:100%;min-height:44px;margin:0 0 10px;padding:9px 12px;border:1px solid #cdd7e2;border-radius:10px;background:#fff;color:#3157d5;font-size:11px;font-weight:850;text-align:center}
html[data-theme="graphite"] .ios-drawer-install{background:#151d25;border-color:#31404d;color:#9fb0ff}
@media(max-width:800px){
  .workspace87 .workspace86-user .workspace-theme-toggle{display:grid!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:11px!important}
}

/* AS Surface OS Build 089 — readability + Appearance Studio reliability layer
   Loaded last. This file intentionally corrects contrast without changing ERP logic. */

:root{
  --as89-text:#1c2530;
  --as89-text-2:#44505c;
  --as89-muted:#66727e;
  --as89-soft:#7a8691;
  --as89-line:#d9e0e6;
  --as89-surface:#ffffff;
  --as89-surface-2:#f5f7f9;
  --as89-number:#111923;
}

/* ---------- GLOBAL READABILITY ---------- */
.workspace87{font-size:14px!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.workspace87 .content{color:var(--as89-text)!important}
.workspace87 .page-head h1,
.workspace87 .section-title h2,
.workspace87 .section-title h3,
.workspace87 .card h2,
.workspace87 .card h3,
.workspace87 .modal-card h2,
.workspace87 .modal-card h3{color:var(--as89-text)!important;font-weight:800!important}
.workspace87 .page-head p,
.workspace87 .section-title small,
.workspace87 .muted-line,
.workspace87 .card p,
.workspace87 .card small{color:var(--as89-muted)!important}

/* Numbers / values must never wash out. */
.workspace87 .stat .value,
.workspace87 .as-kpi-card strong,
.workspace87 .as-health-card strong,
.workspace87 .command-stage-head strong,
.workspace87 .readiness-ring strong,
.workspace87 .material-result-count strong,
.workspace87 .stock-numbers strong,
.workspace87 .finance-kpi strong,
.workspace87 .cash-control-card strong,
.workspace87 .payment-balance-preview strong,
.workspace87 .nesting-summary strong,
.workspace87 .planner-stage-summary strong,
.workspace87 .planner-day-summary strong,
.workspace87 .summary-card strong,
.workspace87 [class*="total"] strong,
.workspace87 [class*="summary"] .value{
  color:var(--as89-number)!important;
  font-weight:800!important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.015em;
}
.workspace87 .stat .label{color:#53606d!important;font-weight:750!important}
.workspace87 .stat .meta{color:#707c88!important}

/* Tables: explicit colors for every cell and numeric content. */
.workspace87 .table-wrap{background:#fff!important;border-color:var(--as89-line)!important}
.workspace87 .data-table{background:#fff!important;color:var(--as89-text)!important}
.workspace87 .data-table th{background:#f3f6f8!important;color:#52606d!important;font-size:10px!important;font-weight:850!important}
.workspace87 .data-table td{background:#fff!important;color:#293541!important;font-size:12px!important;font-weight:520!important}
.workspace87 .data-table td strong{color:#18212b!important;font-weight:780!important}
.workspace87 .data-table td small{color:#687582!important;font-size:10.5px!important}
.workspace87 .data-table tbody tr:hover td{background:#f7f9fb!important}
.workspace87 .data-table td,
.workspace87 .data-table th{font-variant-numeric:tabular-nums}

/* Form content must remain legible, including Safari native select values. */
.workspace87 label{color:#475460!important;font-size:11px!important;font-weight:750!important}
.workspace87 input,
.workspace87 select,
.workspace87 textarea{background:#fff!important;border-color:#cfd7df!important;color:#18232e!important;font-size:13px!important;font-weight:600!important;opacity:1!important;-webkit-text-fill-color:#18232e!important}
.workspace87 input::placeholder,
.workspace87 textarea::placeholder{color:#7f8b96!important;-webkit-text-fill-color:#7f8b96!important;opacity:1!important}
.workspace87 select option{background:#fff!important;color:#17212b!important}
.workspace87 input:disabled,
.workspace87 select:disabled,
.workspace87 textarea:disabled{background:#eef2f5!important;color:#66727e!important;-webkit-text-fill-color:#66727e!important;opacity:1!important}

/* Buttons keep readable labels regardless of inherited styles. */
.workspace87 .primary-btn{color:#fff!important;-webkit-text-fill-color:#fff!important}
.workspace87 .secondary-btn{color:#36424e!important;-webkit-text-fill-color:#36424e!important}
.workspace87 .danger-btn{color:#a92f38!important;-webkit-text-fill-color:#a92f38!important}

/* ---------- MIDNIGHT DARK: EXPLICIT CONTRAST ---------- */
html[data-theme="graphite"]{
  --as89-text:#f3f6f9;
  --as89-text-2:#d6dee6;
  --as89-muted:#a4b0bb;
  --as89-soft:#8f9da9;
  --as89-line:#34414d;
  --as89-surface:#111820;
  --as89-surface-2:#172029;
  --as89-number:#ffffff;
}
html[data-theme="graphite"] .workspace87,
html[data-theme="graphite"] .workspace87 .content{color:#eef3f7!important;background:#0b1016!important}
html[data-theme="graphite"] .workspace87 .page-head h1,
html[data-theme="graphite"] .workspace87 .section-title h2,
html[data-theme="graphite"] .workspace87 .section-title h3,
html[data-theme="graphite"] .workspace87 .card h2,
html[data-theme="graphite"] .workspace87 .card h3,
html[data-theme="graphite"] .workspace87 .modal-card h2,
html[data-theme="graphite"] .workspace87 .modal-card h3{color:#f5f8fb!important}
html[data-theme="graphite"] .workspace87 .page-head p,
html[data-theme="graphite"] .workspace87 .section-title small,
html[data-theme="graphite"] .workspace87 .muted-line,
html[data-theme="graphite"] .workspace87 .card p,
html[data-theme="graphite"] .workspace87 .card small{color:#a4b0bc!important}
html[data-theme="graphite"] .workspace87 .card,
html[data-theme="graphite"] .workspace87 .section{background:#111820!important;border-color:#303d49!important;color:#eaf0f5!important}
html[data-theme="graphite"] .workspace87 .stat .label{color:#b5c0ca!important}
html[data-theme="graphite"] .workspace87 .stat .meta{color:#95a3af!important}
html[data-theme="graphite"] .workspace87 .stat .value,
html[data-theme="graphite"] .workspace87 .as-kpi-card strong,
html[data-theme="graphite"] .workspace87 .as-health-card strong,
html[data-theme="graphite"] .workspace87 .command-stage-head strong,
html[data-theme="graphite"] .workspace87 .readiness-ring strong,
html[data-theme="graphite"] .workspace87 .material-result-count strong,
html[data-theme="graphite"] .workspace87 .stock-numbers strong,
html[data-theme="graphite"] .workspace87 .finance-kpi strong,
html[data-theme="graphite"] .workspace87 .cash-control-card strong,
html[data-theme="graphite"] .workspace87 .payment-balance-preview strong,
html[data-theme="graphite"] .workspace87 .nesting-summary strong,
html[data-theme="graphite"] .workspace87 .planner-stage-summary strong,
html[data-theme="graphite"] .workspace87 .planner-day-summary strong,
html[data-theme="graphite"] .workspace87 .summary-card strong,
html[data-theme="graphite"] .workspace87 [class*="total"] strong,
html[data-theme="graphite"] .workspace87 [class*="summary"] .value{color:#fff!important;text-shadow:none!important}

html[data-theme="graphite"] .workspace87 .table-wrap{background:#0f161d!important;border-color:#303d49!important}
html[data-theme="graphite"] .workspace87 .data-table{background:#111820!important;color:#edf2f6!important}
html[data-theme="graphite"] .workspace87 .data-table th{background:#1a242e!important;color:#bac5cf!important;border-color:#33414d!important}
html[data-theme="graphite"] .workspace87 .data-table td{background:#111820!important;color:#e5ebf0!important;border-color:#2a3742!important}
html[data-theme="graphite"] .workspace87 .data-table td strong{color:#fff!important}
html[data-theme="graphite"] .workspace87 .data-table td small{color:#a0acb7!important}
html[data-theme="graphite"] .workspace87 .data-table tbody tr:hover td{background:#18232d!important}

html[data-theme="graphite"] .workspace87 label{color:#c0cad3!important}
html[data-theme="graphite"] .workspace87 input,
html[data-theme="graphite"] .workspace87 select,
html[data-theme="graphite"] .workspace87 textarea{background:#0d141b!important;border-color:#3b4956!important;color:#f0f4f7!important;-webkit-text-fill-color:#f0f4f7!important}
html[data-theme="graphite"] .workspace87 input::placeholder,
html[data-theme="graphite"] .workspace87 textarea::placeholder{color:#8795a2!important;-webkit-text-fill-color:#8795a2!important}
html[data-theme="graphite"] .workspace87 select option{background:#111820!important;color:#f1f5f8!important}
html[data-theme="graphite"] .workspace87 input:disabled,
html[data-theme="graphite"] .workspace87 select:disabled,
html[data-theme="graphite"] .workspace87 textarea:disabled{background:#18212a!important;color:#99a7b3!important;-webkit-text-fill-color:#99a7b3!important}
html[data-theme="graphite"] .workspace87 .secondary-btn{background:#1b252f!important;border-color:#3a4855!important;color:#e2e8ee!important;-webkit-text-fill-color:#e2e8ee!important}
html[data-theme="graphite"] .workspace87 .danger-btn{background:#26181a!important;border-color:#5e3338!important;color:#ff9da6!important;-webkit-text-fill-color:#ff9da6!important}

/* ---------- APPEARANCE STUDIO: RELIABLE, OBVIOUS SELECTION ---------- */
.workspace87 .route-appearance .appearance-layout{position:relative;z-index:1;overflow:visible!important}
.workspace87 .route-appearance .appearance-controls,
.workspace87 .route-appearance .appearance-live{position:relative!important;z-index:1!important;overflow:visible!important}
.workspace87 .route-appearance .theme-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.workspace87 .route-appearance .theme-option,
.workspace87 .route-appearance .accent-option{
  position:relative!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  cursor:pointer!important;
  opacity:1!important;
}
.workspace87 .route-appearance .theme-option{
  min-height:118px!important;
  padding:14px!important;
  border:2px solid #d6dde4!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#1d2732!important;
  box-shadow:none!important;
}
.workspace87 .route-appearance .theme-option strong{color:#17212b!important;font-size:13px!important}
.workspace87 .route-appearance .theme-option small{color:#687582!important;font-size:10.5px!important;line-height:1.45!important}
.workspace87 .route-appearance .theme-option:hover{border-color:#9eb0db!important;background:#f8faff!important}
.workspace87 .route-appearance .theme-option.selected{
  border-color:var(--blue)!important;
  background:color-mix(in srgb,var(--blue) 7%,#fff)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 16%,transparent)!important;
}
.workspace87 .route-appearance .theme-option.selected:after{
  content:"✓";position:absolute;right:12px;bottom:12px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:900;font-size:13px
}
.workspace87 .route-appearance .theme-selected{color:var(--blue)!important;font-weight:900!important}
.workspace87 .route-appearance .accent-picker{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.workspace87 .route-appearance .accent-option{min-height:42px!important;padding:9px 12px!important;border:2px solid #d6dde4!important;background:#fff!important;color:#25313c!important;font-size:11px!important;font-weight:750!important}
.workspace87 .route-appearance .accent-option.selected{border-color:var(--blue)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 14%,transparent)!important}
.workspace87 .route-appearance .appearance-form select{cursor:pointer!important}
.workspace87 .route-appearance #appearance-error{min-height:18px;margin-top:10px;color:#52606d!important;font-size:10.5px!important;font-weight:650!important}

html[data-theme="graphite"] .workspace87 .route-appearance .theme-option,
html[data-theme="graphite"] .workspace87 .route-appearance .accent-option{background:#151e27!important;border-color:#3a4855!important;color:#eef3f7!important}
html[data-theme="graphite"] .workspace87 .route-appearance .theme-option strong{color:#fff!important}
html[data-theme="graphite"] .workspace87 .route-appearance .theme-option small{color:#a9b5c0!important}
html[data-theme="graphite"] .workspace87 .route-appearance .theme-option:hover{background:#1a2530!important;border-color:#667887!important}
html[data-theme="graphite"] .workspace87 .route-appearance .theme-option.selected{background:color-mix(in srgb,var(--blue) 18%,#151e27)!important;border-color:#7f9aff!important}
html[data-theme="graphite"] .workspace87 .route-appearance .accent-option.selected{border-color:#7f9aff!important}
html[data-theme="graphite"] .workspace87 .route-appearance #appearance-error{color:#aab6c1!important}

/* Improve theme thumbnails so choices are visually distinguishable. */
.workspace87 .theme-preview-graphite{background:#0d1319!important;border-color:#34414d!important}
.workspace87 .theme-preview-graphite i{background:#1d2934!important}.workspace87 .theme-preview-graphite i:first-child{background:#6f8cff!important}
.workspace87 .theme-preview-timber{background:#ebe7e0!important;border-color:#cfc7bc!important}.workspace87 .theme-preview-timber i{background:#d8d1c6!important}.workspace87 .theme-preview-timber i:first-child{background:#57534e!important}
.workspace87 .theme-preview-studio{background:#f7f9fb!important;border-color:#dce3e9!important}.workspace87 .theme-preview-studio i{background:#e8edf2!important}.workspace87 .theme-preview-studio i:first-child{background:#356ae6!important}
.workspace87 .theme-preview-contrast{background:#000!important;border-color:#fff!important}.workspace87 .theme-preview-contrast i{background:#fff!important}.workspace87 .theme-preview-contrast i:first-child{background:#ffd400!important}

/* ---------- iPHONE / SAFARI READABILITY ---------- */
@media(max-width:800px){
  .workspace87{font-size:15px!important}
  .workspace87 .page-head h1{font-size:25px!important}
  .workspace87 .page-head p{font-size:12.5px!important;line-height:1.55!important}
  .workspace87 .data-table th{font-size:10px!important}
  .workspace87 .data-table td{font-size:11.5px!important}
  .workspace87 .data-table td small{font-size:10px!important}
  .workspace87 input,.workspace87 select,.workspace87 textarea{font-size:16px!important;font-weight:600!important;min-height:44px!important}
  .workspace87 .route-appearance .theme-picker{grid-template-columns:1fr!important}
  .workspace87 .route-appearance .theme-option{min-height:108px!important}
  .workspace87 .route-appearance .accent-option{min-height:46px!important}
  .workspace87 .route-appearance .appearance-form{grid-template-columns:1fr!important}
}

/* AS Surface OS Build 091 — consolidated stability + interaction safety layer */
[hidden]{display:none!important}
html,body,#app,.app-shell,.main,.content{min-width:0;max-width:100%}
body{overflow-x:hidden}
.content>*{min-width:0}
button,input,select,textarea{min-width:0}
button{touch-action:manipulation}
button:disabled,input:disabled,select:disabled,textarea:disabled{opacity:.58;cursor:not-allowed}
.module-error-card{border:1px solid color-mix(in srgb,var(--red) 38%,var(--theme-line));background:color-mix(in srgb,var(--red) 5%,var(--theme-panel));max-width:780px}
.module-error-card h2{margin-top:0}
.module-error-card p{color:var(--theme-muted);line-height:1.55;overflow-wrap:anywhere}
.workspace-load-warning{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--amber) 45%,var(--theme-line));background:color-mix(in srgb,var(--amber) 8%,var(--theme-panel));color:var(--theme-text);font-size:11px;font-weight:800;white-space:nowrap}
.workspace-load-warning i{width:7px;height:7px;border-radius:50%;background:var(--amber)}
.table-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.data-table{width:100%}.data-table th,.data-table td{vertical-align:top}
.modal-card{max-height:min(92dvh,var(--as-visual-height,92dvh));overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.workspace86-launcher-panel{max-height:min(78dvh,760px);overflow:auto;overscroll-behavior:contain}
.theme-option,.accent-option,.appearance-option{pointer-events:auto!important;position:relative;z-index:1}
.theme-option *,.accent-option *,.appearance-option *{pointer-events:none}
input,select,textarea{color:var(--theme-text);background:var(--theme-input)}
select option{color:#111;background:#fff}
html[data-theme="graphite"] select option{color:#f7f8fb;background:#191d24}
.toast{z-index:100000;max-width:min(460px,calc(100vw - 28px));overflow-wrap:anywhere}

@media(max-width:800px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  .workspace87-rail{display:none!important}
  .workspace86-topbar{left:0!important;right:0!important;width:auto!important;max-width:100vw!important;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .workspace86-main{margin-left:0!important;width:100%!important;max-width:100vw!important}
  .content{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .workspace86-mobile-drawer{position:fixed!important;display:flex!important;top:0!important;bottom:0!important;left:0!important;width:min(88vw,360px)!important;max-width:360px!important;height:var(--as-visual-height,100dvh)!important;z-index:99990!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;overflow:hidden!important;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
  html[data-mobile-sidebar="open"] .workspace86-mobile-drawer{transform:translateX(0)!important}
  .workspace86-mobile-drawer .nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
  .sidebar-backdrop{position:fixed!important;inset:0!important;z-index:99980!important;background:rgba(0,0,0,.52)!important;opacity:0!important;pointer-events:none!important;display:block!important}
  html[data-mobile-sidebar="open"] .sidebar-backdrop{opacity:1!important;pointer-events:auto!important}
  .mobile-work-nav{z-index:99960!important;padding-bottom:max(8px,env(safe-area-inset-bottom));min-height:calc(64px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html[data-keyboard="open"] .mobile-work-nav{display:none!important}
  .mobile-work-nav button{min-width:0!important;min-height:54px!important;padding:7px 3px!important}
  .mobile-work-nav small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important}
  .page-head{gap:12px}.page-head>.quick-actions,.page-head>.planner-head-actions{width:100%;overflow-x:auto;display:flex;flex-wrap:nowrap;padding-bottom:3px;-webkit-overflow-scrolling:touch}
  .page-head>.quick-actions button,.page-head>.planner-head-actions button{flex:0 0 auto;min-height:44px}
  input,select,textarea{font-size:16px!important;min-height:44px}
  textarea{min-height:88px}
  .form-grid,.brand-fields,.appearance-form{grid-template-columns:1fr!important}
  .span-2{grid-column:auto!important}
  .modal-backdrop{padding:0!important;align-items:flex-end!important}
  .modal-card,.modal-card.wide{width:100%!important;max-width:100%!important;max-height:calc(var(--as-visual-height,100dvh) - env(safe-area-inset-top))!important;border-radius:20px 20px 0 0!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
  .data-table{min-width:680px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:480px){
  .stats{grid-template-columns:1fr 1fr!important}
  .stat{min-height:92px!important}
  .page-head h1{font-size:clamp(23px,8vw,31px)}
  .content{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
}
\n\n/* AS Surface OS Build 091 — deterministic final stability layer */
:root{--as-tap:44px}
html{scroll-behavior:auto}
body{min-height:100vh;min-height:100dvh}
button,a,[role="button"],summary{touch-action:manipulation}
button{min-height:36px}
input,select,textarea{max-width:100%}
input[type="checkbox"],input[type="radio"]{min-height:0}
.workspace87 .content{min-width:0}
.workspace87 .card,.workspace87 .section{min-width:0;overflow-wrap:anywhere}
.workspace87 .data-table{border-collapse:separate;border-spacing:0}
.workspace87 .data-table th,.workspace87 .data-table td{overflow-wrap:normal;word-break:normal}
.workspace87 .data-table td strong,.workspace87 .data-table td b{color:inherit}
.workspace87 .quick-actions{min-width:0}
.workspace87 .quick-actions>*{max-width:100%}
.workspace87 .empty-state{min-height:54px}
/* deterministic readable controls */
.workspace87 input,.workspace87 select,.workspace87 textarea{opacity:1!important;-webkit-text-fill-color:currentColor}
.workspace87 input:disabled,.workspace87 select:disabled,.workspace87 textarea:disabled{opacity:.64!important}
.workspace87 button:focus-visible,.workspace87 input:focus-visible,.workspace87 select:focus-visible,.workspace87 textarea:focus-visible,.workspace87 summary:focus-visible{outline:3px solid color-mix(in srgb,var(--blue) 28%,transparent)!important;outline-offset:2px!important}
html[data-theme="graphite"] .workspace87 input,html[data-theme="graphite"] .workspace87 select,html[data-theme="graphite"] .workspace87 textarea{color:#f3f6f9!important;-webkit-text-fill-color:#f3f6f9!important}
html[data-theme="graphite"] .workspace87 input::placeholder,html[data-theme="graphite"] .workspace87 textarea::placeholder{color:#7f8b96!important;-webkit-text-fill-color:#7f8b96!important}
/* launcher remains above every scrolling table/card */
.workspace86-launcher{z-index:950!important}.workspace86-launcher-panel{z-index:99950!important}
/* prevent desktop-only drag affordances from interfering with touch Safari */
@media (pointer:coarse){[draggable="true"]{-webkit-user-drag:none!important}.planner-entry-card,.planner-unscheduled-card,.job{cursor:pointer!important}}
@media(max-width:800px){
  html,body,#app,.app-shell,.main,.content{width:100%;max-width:100%;min-width:0}
  .workspace87 .content{overflow-x:hidden}
  .workspace87 .table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .workspace87 .data-table{width:max-content;min-width:680px;max-width:none!important}
  .workspace87 .page-head{min-width:0}
  .workspace87 .page-head>div{min-width:0;max-width:100%}
  .workspace87 .page-head h1,.workspace87 .page-head p{overflow-wrap:anywhere}
  .workspace87 button,.workspace87 summary{min-height:var(--as-tap)}
  .workspace87 .mobile-work-nav button{min-height:54px}
  .workspace86-mobile-drawer{overscroll-behavior:contain}
  .workspace86-mobile-drawer .nav{padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
  html[data-keyboard="open"] .workspace86-mobile-drawer{height:var(--as-visual-height,100dvh)!important}
}
@media(max-width:430px){
  .workspace87 .stats{grid-template-columns:1fr 1fr!important}
  .workspace87 .stat .value{font-size:clamp(19px,7vw,28px)!important;line-height:1.05!important}
  .workspace87 .stat .label,.workspace87 .stat .meta{overflow-wrap:anywhere}
}

.build-mismatch-banner{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--red) 45%,var(--theme-line));border-radius:12px;background:color-mix(in srgb,var(--red) 8%,var(--theme-panel));color:var(--theme-text)}.build-mismatch-banner strong{white-space:nowrap;color:var(--red)}.build-mismatch-banner span{font-size:12px;line-height:1.5;color:var(--theme-muted)}@media(max-width:700px){.build-mismatch-banner{display:grid}.build-mismatch-banner strong{white-space:normal}}

/* Build 091 — login/server build mismatch guard */
.login-build-warning{display:grid;gap:4px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--red,#d94452) 50%,#d7dbe1);border-radius:12px;background:color-mix(in srgb,var(--red,#d94452) 8%,#fff);color:#7b1520;font-size:12px;line-height:1.45}.login-build-warning strong{font-size:13px}.login-build-warning span{color:inherit;opacity:.9}
html[data-theme="graphite"] .login-build-warning{background:rgba(217,68,82,.12);border-color:rgba(255,110,124,.45);color:#ffd8dc}

/* Build 091 Appearance interaction hotfix — Safari-safe direct choices */
.workspace87 .route-appearance .appearance-choice-form{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
.workspace87 .route-appearance .appearance-choice-card{display:grid;gap:9px;padding:14px;border:1px solid var(--theme-line);border-radius:14px;background:var(--theme-row)}
.workspace87 .route-appearance .appearance-choice-label{font-size:11px;font-weight:850;letter-spacing:.035em;color:var(--theme-muted)}
.workspace87 .route-appearance .appearance-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.workspace87 .route-appearance .appearance-choice-buttons.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace87 .route-appearance .appearance-choice-btn{appearance:none;-webkit-appearance:none;min-height:66px;padding:11px 12px;border:1.5px solid var(--theme-line);border-radius:11px;background:var(--theme-panel);color:var(--theme-text);display:grid;gap:3px;text-align:left;cursor:pointer;touch-action:manipulation;position:relative}
.workspace87 .route-appearance .appearance-choice-btn strong{font-size:12px;color:inherit}
.workspace87 .route-appearance .appearance-choice-btn small{font-size:10px;line-height:1.35;color:var(--theme-muted)}
.workspace87 .route-appearance .appearance-choice-btn.selected{border-color:var(--blue)!important;background:color-mix(in srgb,var(--blue) 8%,var(--theme-panel))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 13%,transparent)!important}
.workspace87 .route-appearance .appearance-choice-btn.selected:after{content:'✓';position:absolute;right:9px;top:9px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:10px;font-weight:900}
html[data-ios="true"] .workspace87 .route-appearance select{-webkit-appearance:menulist!important;appearance:auto!important}
@media(max-width:800px){.workspace87 .route-appearance .appearance-choice-buttons,.workspace87 .route-appearance .appearance-choice-buttons.three{grid-template-columns:1fr!important}.workspace87 .route-appearance .appearance-choice-btn{min-height:58px;font-size:16px}}


/* ============================================================
   BUILD 093 — ONE FULL LEFT MENU
   Single navigation system on desktop and iPhone.
   ============================================================ */
.workspace91c .workspace87-rail,
.workspace91c .workspace86-launcher,
.workspace91c .mobile-work-nav,
.workspace91c .workspace86-logo{display:none!important}

.workspace91c{--as-menu-w:264px;min-height:100dvh!important}
.workspace91c .workspace91c-sidebar{
  position:fixed!important;inset:0 auto 0 0!important;z-index:980!important;
  width:var(--as-menu-w)!important;height:100dvh!important;min-height:100dvh!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  background:#111821!important;color:#dbe4ee!important;border:0!important;border-right:1px solid #202c39!important;
  box-shadow:none!important;transform:none!important;
}
.workspace91c .workspace91c-sidebar-head{height:76px!important;min-height:76px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:12px 14px!important;border-bottom:1px solid #22303d!important;background:#111821!important}
.workspace91c .workspace91c-brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1!important}
.workspace91c .workspace91c-logo{width:48px!important;height:40px!important;min-width:48px!important;border:0!important;border-radius:9px!important;padding:3px!important;background:#fff!important;box-shadow:none!important}
.workspace91c .workspace91c-logo img{object-fit:contain!important}
.workspace91c .workspace91c-brand>span{display:grid!important;gap:1px!important;min-width:0!important}
.workspace91c .workspace91c-brand strong{font-size:13px!important;color:#f3f7fb!important;white-space:nowrap!important}
.workspace91c .workspace91c-brand small{font-size:9px!important;color:#7f91a2!important;white-space:nowrap!important}
.workspace91c .workspace91c-sidebar .mobile-sidebar-close{display:none!important}
.workspace91c .workspace91c-menu{flex:1 1 auto!important;min-height:0!important;display:block!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 9px 18px!important;scrollbar-width:thin!important;scrollbar-color:#344657 transparent!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}
.workspace91c .workspace91c-menu-item{width:100%!important;min-height:43px!important;display:flex!important;align-items:center!important;gap:11px!important;margin:1px 0!important;padding:7px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#9eacba!important;text-align:left!important;cursor:pointer!important;transition:background .14s ease,color .14s ease!important}
.workspace91c .workspace91c-menu-item:hover{background:#192430!important;color:#eef4fa!important}
.workspace91c .workspace91c-menu-item.active{background:#253a67!important;color:#fff!important;font-weight:800!important}
.workspace91c .workspace91c-menu-icon{width:29px!important;height:29px!important;min-width:29px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#18232e!important;color:#8295a7!important}
.workspace91c .workspace91c-menu-item.active .workspace91c-menu-icon{background:#31518d!important;color:#fff!important}
.workspace91c .workspace91c-menu-icon svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.workspace91c .workspace91c-menu-label{display:block!important;min-width:0!important;font-size:11.5px!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.workspace91c .workspace91c-sidebar-foot{flex:0 0 auto!important;display:grid!important;gap:8px!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #22303d!important;background:#0e151d!important;color:#75889a!important}
.workspace91c .workspace91c-sidebar-foot>span{display:grid!important;gap:2px!important}
.workspace91c .workspace91c-sidebar-foot strong{font-size:10px!important;color:#b9c6d2!important}.workspace91c .workspace91c-sidebar-foot small{font-size:8.5px!important;color:#718394!important}
.workspace91c .workspace91c-sidebar-foot .ios-drawer-install{width:100%!important;min-height:38px!important;border:1px solid #33465a!important;border-radius:8px!important;background:#17222d!important;color:#d9e5ef!important;font-size:10px!important;font-weight:800!important}

.workspace91c .workspace91c-topbar{left:var(--as-menu-w)!important;width:calc(100% - var(--as-menu-w))!important;grid-template-columns:minmax(180px,.6fr) minmax(260px,1fr) auto!important;padding-left:20px!important}
.workspace91c .workspace91c-main{margin-left:var(--as-menu-w)!important;width:calc(100% - var(--as-menu-w))!important;min-width:0!important}
.workspace91c .workspace86-main{margin-left:var(--as-menu-w)!important;width:calc(100% - var(--as-menu-w))!important}
.workspace91c .workspace91c-main>.content{width:min(100% - 40px,1580px)!important;margin:0 auto!important;padding:26px 0 60px!important}
.workspace91c>.sidebar-backdrop{display:none!important}
.workspace91c .workspace91c-top-left .mobile-menu-toggle{display:none!important}
.workspace91c .workspace86-route{padding-left:0!important}
.workspace91c .workspace86-route small{color:#8b96a1!important}
.workspace91c .workspace86-route strong{font-size:16px!important}
.workspace91c .appearance-fixed-choice{min-height:78px;display:grid;align-content:center;gap:5px;padding:13px 14px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--theme-row)}
.workspace91c .appearance-fixed-choice strong{font-size:13px}.workspace91c .appearance-fixed-choice small{color:var(--muted);line-height:1.4}

html[data-theme="graphite"] .workspace91c .workspace91c-sidebar{background:#080d12!important;border-color:#1f2933!important}
html[data-theme="graphite"] .workspace91c .workspace91c-sidebar-head{background:#080d12!important;border-color:#1f2933!important}
html[data-theme="graphite"] .workspace91c .workspace91c-sidebar-foot{background:#070b0f!important;border-color:#1f2933!important}
html[data-theme="graphite"] .workspace91c .workspace91c-menu-item{color:#8f9dac!important}
html[data-theme="graphite"] .workspace91c .workspace91c-menu-item:hover{background:#111a23!important;color:#eef4fa!important}
html[data-theme="graphite"] .workspace91c .workspace91c-menu-item.active{background:#1b315d!important;color:#fff!important}
html[data-theme="graphite"] .workspace91c .workspace91c-menu-icon{background:#101821!important;color:#8090a0!important}
html[data-theme="graphite"] .workspace91c .workspace91c-menu-item.active .workspace91c-menu-icon{background:#28477e!important;color:#fff!important}

@media(max-width:1100px) and (min-width:801px){
  .workspace91c{--as-menu-w:238px}
  .workspace91c .workspace91c-menu-label{font-size:11px!important}
  .workspace91c .workspace91c-topbar{grid-template-columns:minmax(150px,.55fr) minmax(220px,1fr) auto!important;gap:12px!important;padding-right:14px!important}
  .workspace91c .workspace86-user .user-text{display:none!important}
}

@media(max-width:800px){
  .workspace91c{--as-menu-w:min(88vw,330px)}
  .workspace91c .workspace91c-sidebar{inset:0 auto 0 0!important;width:var(--as-menu-w)!important;height:var(--as-visual-height,100dvh)!important;min-height:0!important;z-index:100000!important;transform:translateX(-104%)!important;transition:transform .2s ease!important;box-shadow:0 24px 70px rgba(0,0,0,.28)!important;padding-top:env(safe-area-inset-top,0px)!important}
  html[data-mobile-sidebar="open"] .workspace91c .workspace91c-sidebar{transform:translateX(0)!important}
  .workspace91c .workspace91c-sidebar .mobile-sidebar-close{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;border:1px solid #30404e!important;border-radius:9px!important;background:#17222c!important;color:#e8eef4!important;font-size:22px!important}
  .workspace91c .workspace91c-sidebar-head{height:calc(66px + env(safe-area-inset-top,0px))!important;min-height:66px!important;padding:10px 12px!important}
  .workspace91c .workspace91c-menu{padding:8px 9px 22px!important}
  .workspace91c .workspace91c-menu-item{min-height:49px!important;padding:8px 10px!important}
  .workspace91c .workspace91c-menu-icon{width:32px!important;height:32px!important;min-width:32px!important}
  .workspace91c .workspace91c-menu-label{font-size:13px!important}
  .workspace91c .workspace91c-topbar{left:0!important;width:100%!important;grid-template-columns:minmax(130px,1fr) auto!important;height:auto!important;min-height:62px!important;padding:calc(8px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px))!important;gap:8px!important}
  .workspace91c .workspace91c-top-left .mobile-menu-toggle{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important}
  .workspace91c .workspace91c-top-left{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
  .workspace91c .workspace86-route small{font-size:8px!important}.workspace91c .workspace86-route strong{font-size:13px!important}
  .workspace91c .workspace86-search{grid-column:1/-1!important;grid-row:2!important}
  .workspace91c .workspace86-user{grid-column:2!important;grid-row:1!important}
  .workspace91c .workspace91c-main,.workspace91c .workspace86-main{margin-left:0!important;width:100%!important}
  .workspace91c .workspace91c-main>.content{width:100%!important;margin:0!important;padding:16px 10px calc(26px + env(safe-area-inset-bottom,0px))!important}
  .workspace91c>.sidebar-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:99990!important;background:rgba(4,9,14,.58)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility .18s ease!important}
  html[data-mobile-sidebar="open"] .workspace91c>.sidebar-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  .workspace91c .workspace86-user .user-text,.workspace91c .workspace86-user .install-app-btn,.workspace91c .workspace86-user .workspace86-logout{display:none!important}
  .workspace91c .workspace86-user{gap:5px!important}
}
@media(min-width:801px){.workspace91c .workspace91c-topbar{margin-left:var(--as-menu-w)!important}}
@media(max-width:800px){.workspace91c .workspace91c-topbar{margin-left:0!important}}
