:root{--navy:#102a4c;--navy2:#17395f;--ink:#19283b;--muted:#738195;--line:#e5eaf0;--bg:#f5f7fa;--white:#fff;--gold:#d89c37;--green:#218568;--green-bg:#e9f5f0;--blue:#3974b8;--blue-bg:#edf4fc;--amber:#a96d15;--amber-bg:#fff5e4;--red:#b64c4c;--shadow:0 10px 30px rgba(16,42,76,.06)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{width:248px;background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:26px 16px 18px;position:fixed;inset:0 auto 0 0;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 34px}.brand-mark{width:37px;height:37px;border:1px solid rgba(220,169,79,.65);border-radius:10px;display:grid;place-items:center;color:#e0b65e;font-weight:800;font-size:22px}.brand-name{font-size:17px;font-weight:800;letter-spacing:1.8px}.brand-sub{font-size:9px;letter-spacing:2.1px;color:#d9b56c;margin-top:3px}.workspace-label{font-size:9px;letter-spacing:1.8px;color:#879bb3;padding:0 12px 11px}.nav-list{display:grid;gap:5px}.nav-item{width:100%;border:0;background:transparent;color:#bdc9d7;border-radius:9px;text-align:left;padding:12px 12px;font:inherit;cursor:pointer;display:flex;align-items:center;gap:12px;transition:.15s}.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}.nav-item.active{background:#24476e;color:#fff;box-shadow:inset 3px 0 #d7a44d}.nav-icon{width:17px;text-align:center;font-size:17px;color:#d6b36f}.nav-count{margin-left:auto;background:#d39a3f;color:#102a4c;padding:2px 7px;border-radius:20px;font-size:10px;font-weight:800}.sidebar-bottom{margin-top:auto}.mode-card{display:flex;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px;margin:12px 3px 14px;color:#eaf0f7}.mode-dot,.demo-pill i{width:7px;height:7px;border-radius:50%;background:#56c49c;display:inline-block}.mode-card b{font-size:11px;display:block}.mode-card small{font-size:10px;color:#9fb0c3;display:block;margin-top:3px}.main-content{margin-left:248px;min-width:0;flex:1}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:4}.breadcrumb{font-size:12px;color:#8793a2;letter-spacing:.2px}.breadcrumb span{padding:0 9px;color:#c1c9d2}.breadcrumb b{color:#26364a;font-weight:650}.top-actions{display:flex;align-items:center;gap:17px}.demo-pill{font-size:9px;font-weight:800;letter-spacing:1px;color:#4d7d70;background:#edf7f3;border:1px solid #d9eee5;padding:7px 10px;border-radius:30px;display:flex;align-items:center;gap:7px}.avatar{border:0;background:#e9eef5;color:var(--navy);font-weight:800;border-radius:50%;width:32px;height:32px}.mobile-menu{display:none}.page-wrap{max-width:1450px;margin:0 auto;padding:32px 38px 58px}.page{display:none}.page.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#9a7b43;margin-bottom:8px}.page-heading h1{font-size:29px;line-height:1.15;margin:0;font-weight:700;letter-spacing:-.8px;color:#182b43}.subheading,.panel-head p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.primary-btn,.outline-btn,.danger-btn{border:1px solid transparent;border-radius:8px;padding:10px 15px;font-weight:650;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s;text-decoration:none}.primary-btn{background:var(--navy);color:white;box-shadow:0 3px 7px rgba(16,42,76,.12)}.primary-btn:hover{background:#1b426b;transform:translateY(-1px)}.outline-btn{background:#fff;color:#344960;border-color:#dbe2ea}.outline-btn:hover{border-color:#9aacc0;background:#f9fbfd}.danger-btn{background:#fff;color:#b34545;border-color:#f0d3d3;margin-top:18px}.text-btn{background:transparent;border:0;color:#416d9d;font-weight:650;font-size:11px;cursor:pointer}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 18px;box-shadow:0 3px 12px rgba(16,42,76,.025)}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#7e8c9d;font-size:11px}.stat-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#f0f4f8;color:#446a91;font-size:15px}.stat-value{font-size:26px;font-weight:750;letter-spacing:-.8px;margin:10px 0 3px;color:#1a2e47}.stat-note{font-size:10px;color:#98a3b1}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px;box-shadow:0 3px 12px rgba(16,42,76,.025);min-width:0;margin-bottom:16px}.span-2{grid-column:span 1}.span-3{grid-column:1/-1}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.panel-head h2,.panel h2{font-size:14px;margin:0;color:#1d3048;font-weight:720}.panel-head p{font-size:10px;margin-top:4px}.priority-list,.activity-list{display:grid;gap:0}.priority-item{display:grid;grid-template-columns:9px 1fr auto;gap:11px;align-items:center;padding:12px 0;border-top:1px solid #eff2f5}.priority-item:first-child{border-top:0;padding-top:2px}.priority-dot{width:7px;height:7px;border-radius:50%;background:#d8a348}.priority-title{font-size:11px;font-weight:700}.priority-desc{font-size:10px;color:var(--muted);margin-top:3px}.priority-tag{font-size:9px;border-radius:20px;background:#fff4df;color:#9b6b20;padding:5px 8px;white-space:nowrap}.activity-item{display:flex;gap:10px;padding:10px 0;border-top:1px solid #eff2f5}.activity-item:first-child{border-top:0;padding-top:0}.activity-symbol{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#eef3f8;color:#54718d;flex:none}.activity-main{font-size:10px;line-height:1.5}.activity-main b{font-size:10px}.activity-time{color:#9aa5b2;font-size:9px;margin-top:3px}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th{text-align:left;color:#8a97a5;font-size:9px;text-transform:uppercase;letter-spacing:.8px;font-weight:750;padding:10px 9px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 9px;border-bottom:1px solid #eff2f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.cell-title{font-weight:700;color:#263b54}.cell-sub{font-size:9px;color:#8d99a8;margin-top:4px}.status{font-size:9px;font-weight:700;border-radius:20px;padding:5px 8px;display:inline-block;white-space:nowrap}.status.new{color:#386caa;background:#edf4fd}.status.sourcing{color:#9b6b20;background:#fff4df}.status.sample{color:#7653a5;background:#f3effa}.status.quote{color:#287c65;background:#eaf5f0}.status.won{color:#21704f;background:#e2f4e9}.status.hold{color:#7e8792;background:#f0f2f4}.intake-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(265px,.8fr);gap:17px;align-items:start}.intake-panel{padding:22px}.step-tag{font-size:9px;font-weight:800;letter-spacing:1px;color:#8f9aa7}.field-label{display:block;font-size:11px;font-weight:700;color:#32475f;margin:17px 0 7px}.optional{color:#9ba6b2;font-weight:450}.control{width:100%;border:1px solid #dfe5ec;border-radius:8px;padding:11px 12px;background:#fff;color:#25374e;font:inherit;font-size:12px;outline:none;transition:.15s}.control:focus{border-color:#7396bc;box-shadow:0 0 0 3px rgba(57,116,184,.09)}.control::placeholder{color:#aab3bd}.note-toolbar{display:flex;align-items:center;justify-content:space-between}.helper{font-size:10px;color:#929eac;line-height:1.55}.mic-btn{padding:7px 10px;font-size:10px}.note-area{resize:vertical;min-height:125px;line-height:1.65}.upload-row{display:flex;align-items:center;gap:10px;margin-top:11px;flex-wrap:wrap}.upload-control{border:1px dashed #cbd6e1;background:#fafbfd;color:#52677f;border-radius:8px;padding:9px 12px;font-size:10px;font-weight:650;cursor:pointer}.upload-control input,.file-import-btn input{display:none}.file-name{font-size:10px;color:#91a0af}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #edf0f3;margin-top:21px;padding-top:17px}.capture-help{padding:23px}.help-icon{width:34px;height:34px;background:#f8f1e6;border-radius:10px;color:#ae7b28;display:grid;place-items:center;font-size:18px;margin-bottom:15px}.capture-help h2{font-size:15px}.capture-help>p{font-size:11px;line-height:1.7;color:#768497}.example{background:#f6f8fa;border-radius:9px;padding:13px;margin-top:16px}.example b{font-size:10px;color:#4d6987}.example p{font-size:10px;line-height:1.7;color:#65768a;margin:7px 0 0}.rule-list{display:grid;gap:10px;margin-top:17px;color:#4e9a7b;font-size:11px}.rule-list span{color:#687a8d;margin-left:5px}.warning-note{padding:11px 12px;border-radius:8px;background:#fff7e9;color:#8b692e;font-size:10px;line-height:1.6;margin-top:17px}.recent-captures{margin-top:1px}.filter-row{display:flex;gap:10px;margin-bottom:13px}.search-control{max-width:460px}.filter-control{max-width:180px}.compact-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:15px}.product-summary{font-size:11px;color:#60748a;margin:-8px 0 17px}.supplier-panel{margin-top:2px}.quote-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.result-card{background:#f1f6fb;border:1px solid #e2ebf4;border-radius:10px;padding:17px;margin:17px 0 12px}.result-card span,.result-card small{display:block;color:#73859a;font-size:10px}.result-card strong{display:block;font-size:29px;letter-spacing:-.8px;color:#193a5d;margin:7px 0}.check-list{display:grid;gap:15px;margin:22px 0 4px;color:#9b7a43}.check-list span{color:#5d6e81;margin-left:8px;font-size:11px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-grid .panel>p{margin-bottom:20px}.divider-line{height:1px;background:var(--line);margin:22px 0}.settings-row{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eff2f5;font-size:11px;color:#66778a}.settings-row b{font-size:10px;color:#34546f}.settings-row b.not-ready{color:#a27c3f}.file-import-btn{cursor:pointer}.footer{border-top:1px solid var(--line);padding:18px 38px;color:#9aa4b1;font-size:9px;display:flex;justify-content:space-between}.modal-backdrop{position:fixed;inset:0;background:rgba(12,28,48,.48);z-index:20;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal{width:min(560px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:14px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.18)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.modal-head h2{font-size:20px;margin:0}.close-btn{border:0;background:#f1f4f7;border-radius:50%;width:30px;height:30px;font-size:20px;cursor:pointer;color:#52677e}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;bottom:22px;right:24px;background:#163b5e;color:white;padding:12px 17px;border-radius:9px;font-size:11px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;z-index:30}.toast.show{opacity:1;transform:translateY(0)}.empty-state{text-align:center;padding:28px 15px;color:#8b99a9;font-size:11px}.empty-state b{display:block;color:#425a73;font-size:12px;margin-bottom:5px}.icon-btn{border:1px solid #e1e7ed;background:#fff;border-radius:7px;padding:6px 8px;color:#4e6782;cursor:pointer;font-size:10px}.status-select{max-width:145px;padding:7px 8px;font-size:10px}.settings-grid h2{margin-bottom:8px}.badge-lite{font-size:9px;background:#f0f3f6;color:#748397;padding:5px 8px;border-radius:20px}.mobile-only{display:none}
@media(max-width:1100px){.sidebar{width:220px}.main-content{margin-left:220px}.page-wrap{padding:27px 25px 45px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:1fr 1fr}.span-3{grid-column:1/-1}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.2s;width:250px}.sidebar.open{transform:translateX(0);box-shadow:20px 0 50px rgba(0,0,0,.2)}.main-content{margin-left:0}.mobile-menu{display:block;border:0;background:#f0f3f7;color:#314b68;border-radius:7px;width:32px;height:32px;font-size:16px}.topbar{padding:0 17px;gap:12px}.breadcrumb{margin-right:auto}.page-wrap{padding:24px 17px 40px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .primary-btn{align-self:flex-start}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.intake-layout,.quote-layout,.settings-grid{grid-template-columns:1fr}.span-3{grid-column:auto}.footer{padding:16px 17px}.top-actions{gap:8px}.demo-pill{font-size:8px}}
@media(max-width:540px){.page-heading h1{font-size:25px}.panel{padding:15px}.intake-panel{padding:16px}.field-grid{grid-template-columns:1fr}.form-footer{align-items:flex-start;flex-direction:column}.filter-row{flex-direction:column}.search-control,.filter-control{max-width:none}.data-table{min-width:640px}.table-wrap{overflow-x:auto}.topbar{height:58px}.avatar{width:29px;height:29px}.footer{gap:10px;flex-direction:column}.compact-stats{grid-template-columns:1fr 1fr}}

.product-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

/* Secure sign-in layer and shared-workspace controls */
.auth-gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:22px;background:linear-gradient(135deg,#eef2f7,#f8f9fb)}
.auth-gate[hidden]{display:none}
.auth-card{width:min(440px,100%);background:#fff;border:1px solid #e1e7ee;border-radius:18px;padding:34px;box-shadow:0 22px 70px rgba(18,42,68,.12)}
.auth-brand{margin-bottom:32px}.auth-card h1{font-size:27px;color:#182b43;margin:5px 0}.auth-submit{width:100%;margin-top:22px;padding:13px}.auth-error{color:#b33b3b;font-size:12px;min-height:16px;margin:12px 0 0}.auth-footnote{font-size:10px;color:#8b98a8;line-height:1.6;margin-top:24px}.logout-btn{padding:7px 10px;font-size:10px}.top-actions .demo-pill{letter-spacing:.4px}.mode-card .mode-dot{background:#219b70}
@media(max-width:520px){.auth-card{padding:25px 21px}.logout-btn{padding:7px 8px}.top-actions .demo-pill{display:none}}
.research-result{white-space:pre-wrap;max-height:420px;overflow:auto;background:#f5f7f9;border:1px solid #e4e9ef;border-radius:9px;padding:14px;font:11px/1.6 ui-monospace,monospace;color:#43566c;margin-top:14px}.settings-grid .panel{min-width:0}
.research-result{white-space:pre-wrap;max-height:420px;overflow:auto;background:#f5f7f9;border:1px solid #e4e9ef;border-radius:9px;padding:14px;font:11px/1.6 ui-monospace,monospace;color:#43566c;margin-top:14px}.settings-grid .panel{min-width:0}

/* Dense controls inside wide operational tables */
.data-table .control{min-width:148px;max-width:210px;padding:7px 9px;font-size:11px;height:auto}
.data-table td{vertical-align:top}

/* Permanent company password sign-in */
.auth-form{display:flex;flex-direction:column;gap:9px;margin-top:20px}
.auth-input{width:100%;min-height:47px;font-size:14px}
.auth-form .field-label{margin:9px 0 0}
.auth-form .auth-submit{margin-top:6px}
.auth-form .auth-error{margin:2px 0 0;min-height:0}
.auth-form .auth-error:empty{display:none}
.auth-submit:disabled{opacity:.65;cursor:wait}


/* ENFORD login refresh — branded, responsive and keyboard-friendly */
.auth-gate{
  background:
    radial-gradient(ellipse at 15% 12%,rgba(215,165,79,.11),transparent 34%),
    radial-gradient(ellipse at 88% 86%,rgba(16,42,76,.09),transparent 38%),
    linear-gradient(135deg,#f1f4f8 0%,#f8f9fb 52%,#edf1f6 100%);
  padding:32px 20px;
}
.auth-card{
  width:min(486px,100%);
  padding:42px 42px 28px;
  border-radius:22px;
  border:1px solid #e0e6ed;
  box-shadow:0 28px 90px rgba(16,42,76,.13),0 3px 12px rgba(16,42,76,.035);
  position:relative;
  overflow:hidden;
}
.auth-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,#102a4c 0%,#102a4c 70%,#f28b00 70%,#f28b00 100%);
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:15px;
  padding:0;
  margin:0 0 42px;
}
.auth-brand .brand-symbol{width:62px;height:48px;object-fit:contain;flex:0 0 auto}
.auth-brand .brand-copy{display:flex;flex-direction:column;gap:2px}
.auth-brand .brand-name{font-size:25px;line-height:1.05;letter-spacing:2.3px;color:#102a4c}
.auth-brand .brand-legal{font-size:8px;font-weight:700;letter-spacing:1.55px;color:#8793a2}
.auth-brand .auth-product-name{font-size:9px;letter-spacing:2.6px;color:#d18a23;margin-top:5px}
.auth-card>.eyebrow{font-size:10px;letter-spacing:2.2px;color:#a77a30;margin-bottom:10px}
.auth-card h1{font-size:34px;line-height:1.12;letter-spacing:-1.1px;margin:0;color:#152d4b}
.auth-card>.subheading{font-size:14px;line-height:1.65;margin:12px 0 27px;max-width:38ch;color:#738195}
.auth-form{gap:8px;margin-top:0}
.auth-form .field-label{font-size:12px;font-weight:700;color:#344960;margin:12px 0 2px}
.auth-input{min-height:52px;padding:0 15px;border:1px solid #dce4ec;border-radius:10px;background:#fbfcfe;color:#1a2e47;font-size:14px;transition:border-color .15s,box-shadow .15s,background .15s}
.auth-input:focus{outline:none;border-color:#c8943d;box-shadow:0 0 0 3px rgba(210,153,58,.13);background:#fff}
.auth-password-wrap{position:relative;display:flex;align-items:center}
.auth-password-wrap .auth-input{padding-right:76px}
.auth-password-toggle{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;border-radius:7px;padding:7px 9px;background:transparent;color:#718096;font-size:11px;font-weight:700;cursor:pointer}
.auth-password-toggle:hover{background:#f0f3f7;color:#102a4c}
.auth-password-toggle:focus-visible,.auth-submit:focus-visible{outline:3px solid rgba(210,153,58,.35);outline-offset:2px}
.auth-form .auth-error{font-size:12px;line-height:1.5;margin:5px 0 0}
.auth-submit{min-height:52px;border-radius:10px;margin-top:7px;font-size:13px;letter-spacing:.15px}
.auth-submit:disabled{opacity:.7;cursor:wait;transform:none}
.auth-footnote{font-size:10px;line-height:1.6;color:#8793a2;margin:22px 0 12px}
.auth-footer-mark{display:flex;align-items:center;gap:8px;color:#a0aab6;font-size:8px;font-weight:700;letter-spacing:1.3px}
.auth-footer-mark span{height:1px;flex:1;background:#e9edf2}
.brand-symbol{display:block;width:42px;height:34px;object-fit:contain}
.brand-legal{font-size:7px;line-height:1.2;letter-spacing:1.1px;color:#9fb0c3;margin-top:2px;font-weight:650}
@media(max-width:600px){
 .auth-gate{padding:18px 14px;align-items:center}
 .auth-card{padding:32px 24px 23px;border-radius:18px}
 .auth-brand{margin-bottom:34px}
 .auth-brand .brand-symbol{width:54px;height:42px}
 .auth-brand .brand-name{font-size:22px}
 .auth-card h1{font-size:30px}
 .auth-card>.subheading{font-size:13px}
}

.sidebar .brand{align-items:center;padding-bottom:34px}
.sidebar .sidebar-brand-symbol{width:39px;height:32px;flex:0 0 auto}
.sidebar .brand-legal{color:#9fb0c3;font-size:6px;letter-spacing:.85px}
.intake-header .brand-symbol{width:45px;height:36px}
.intake-header .brand-legal{color:#8793a2}


/* ENFORD installable phone app */
.install-app-btn{border:1px solid #e6c88f;border-radius:9px;background:#fffaf1;color:#102a4c;padding:9px 12px;font-size:11px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;white-space:nowrap}
.install-app-btn:hover{background:#fff1d6;border-color:#d5a34f}
.install-app-btn[hidden]{display:none!important}
.auth-install-btn{width:100%;margin-top:10px;min-height:42px}
.mobile-bottom-nav,.mobile-more-backdrop{display:none}
.mobile-more-backdrop[hidden]{display:none!important}
.mobile-more-sheet{display:none}
@media(max-width:820px){
  .mobile-bottom-nav{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;
    position:fixed;left:0;right:0;bottom:0;z-index:35;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97);border-top:1px solid #e3e8ef;
    box-shadow:0 -8px 26px rgba(16,42,76,.09);backdrop-filter:blur(16px);
  }
  .mobile-tab{
    min-width:0;border:0;background:transparent;color:#8290a0;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;padding:4px 2px;font:650 9px/1.2 Inter,system-ui,sans-serif;
    cursor:pointer;border-radius:10px;
  }
  .mobile-tab.active{color:#102a4c;background:#f1f4f8}
  .mobile-tab-icon{font-size:22px;line-height:23px;color:#ad843d}
  .mobile-tab.active .mobile-tab-icon{color:#102a4c}
  .mobile-more-backdrop{
    display:flex;position:fixed;inset:0;z-index:55;align-items:flex-end;
    padding:0;background:rgba(11,25,43,.38);backdrop-filter:blur(3px);
  }
  .mobile-more-sheet{
    display:block;width:100%;max-height:min(82dvh,720px);overflow:auto;
    padding:10px 18px calc(20px + env(safe-area-inset-bottom));
    background:#fff;border-radius:22px 22px 0 0;
    box-shadow:0 -16px 50px rgba(10,25,44,.2);
    animation:enford-sheet-in .18s ease-out;
  }
  @keyframes enford-sheet-in{from{transform:translateY(24px);opacity:.75}to{transform:translateY(0);opacity:1}}
  .mobile-sheet-grip{width:38px;height:4px;border-radius:5px;background:#d8dee6;margin:2px auto 16px}
  .mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
  .mobile-sheet-head h2{margin:0;font-size:20px;color:#142c49}
  .mobile-sheet-close{width:34px;height:34px;border:0;border-radius:50%;background:#f0f3f7;color:#263b54;font-size:22px}
  .mobile-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .mobile-more-grid button{
    min-height:66px;display:flex;align-items:center;gap:10px;padding:12px;
    border:1px solid #e5eaf0;border-radius:12px;background:#fbfcfd;
    color:#253b55;text-align:left;font:650 12px/1.3 Inter,system-ui,sans-serif;
  }
  .mobile-more-grid button span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf2f7;color:#a77b31;font-size:18px;flex:none}
  .mobile-sheet-install{width:100%;margin-top:13px;padding:13px;border:1px solid #e6c88f;border-radius:10px;background:#fff8eb;color:#102a4c;font-weight:750}
  .page-wrap{padding:19px 14px calc(104px + env(safe-area-inset-bottom))}
  .page-heading{gap:12px;margin-bottom:17px}
  .page-heading h1{font-size:25px;line-height:1.15}
  .page-heading .subheading{font-size:12px;max-width:50ch}
  .page-heading .primary-btn{width:100%;align-self:stretch;min-height:43px}
  .product-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .product-actions button{min-width:0}
  .stat-grid{gap:9px;margin-bottom:13px}
  .stat-card{padding:13px 12px;border-radius:11px}
  .stat-value{font-size:23px;margin:8px 0 3px}
  .stat-top{font-size:10px}
  .panel{margin-bottom:12px}
  .panel-head{align-items:flex-start;gap:8px}
  .data-table{min-width:620px}
  .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .control{font-size:16px;min-height:44px}
  input,select,textarea{font-size:16px}
  .modal-backdrop{align-items:flex-end;padding:0}
  .modal{width:100%;max-width:none;max-height:92dvh;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto}
  .modal .control{font-size:16px}
  .topbar{padding-left:12px;padding-right:12px;gap:8px}
  .breadcrumb{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-actions{gap:6px}
  .top-actions .install-app-btn{padding:8px 9px;font-size:10px}
  .top-actions .logout-btn{display:none}
  .avatar{width:30px;height:30px;flex:none}
  .sidebar{z-index:60;padding-top:calc(22px + env(safe-area-inset-top))}
}
@media(max-width:540px){
  .mobile-more-grid{gap:8px}
  .mobile-more-grid button{min-height:60px;padding:10px;font-size:11px}
  .page-wrap{padding-left:12px;padding-right:12px}
  .dashboard-grid{gap:11px}
  .panel{padding:13px}
  .page-heading h1{font-size:23px}
  .stat-value{font-size:21px}
  .topbar{height:56px}
  .top-actions .install-app-btn{max-width:108px;white-space:normal;line-height:1.15}
  .auth-card{width:min(450px,100%);max-height:calc(100svh - 28px);overflow:auto}
}
@media(min-width:821px){
  .mobile-bottom-nav,.mobile-more-backdrop{display:none!important}
}


/* ENFORD Enterprise CRM: task execution, readiness and online-only states */
:root{--navy:#001d4f;--navy2:#123865;--gold:#d98c11;--ink:#17283d;--muted:#718197;--line:#e2e8ef;--bg:#f3f6f9;--green:#238365}
body{background:#f3f6f9;color:#17283d}
.sidebar{background:#071f43}
.nav-item.active{background:#193c65;box-shadow:inset 3px 0 #d98c11}
.brand-sub{color:#e6b456}
.live-pill,.development-pill{display:inline-flex;align-items:center;gap:7px;border-radius:30px;padding:7px 10px;font-size:9px;font-weight:800;letter-spacing:1.1px;white-space:nowrap}
.live-pill{border:1px solid #cfe9df;background:#edf8f3;color:#23785f}
.live-pill i{width:7px;height:7px;border-radius:50%;background:#25a779}
.development-pill{border:1px solid #f0d9a9;background:#fff8e9;color:#93651e}
.ready{color:#238365!important}
.not-ready{color:#a66f22!important}
.voice-controls{display:flex;align-items:center;gap:8px}
.voice-language{min-width:142px;max-width:190px}
.task-create-panel form{display:grid;gap:7px}
.task-create-panel .field-grid{grid-template-columns:1fr 1fr 1.2fr;gap:12px}
.task-create-panel .form-footer{margin-top:8px}
.task-list,.voice-inbox-list,.development-list{display:grid;gap:10px}
.task-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.task-card:hover{border-color:#c8d4e1;box-shadow:0 8px 22px rgba(16,42,76,.055)}
.task-card-main{min-width:0;flex:1}
.task-card-title{font-size:13px;font-weight:750;color:#1b304a;line-height:1.45}
.task-card-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px;color:#7a8899;font-size:10px}
.task-card-main p{margin:8px 0 4px;color:#64758a;font-size:11px;line-height:1.55;white-space:pre-wrap}
.task-card-controls{width:150px;flex:0 0 150px}
.task-status-control{width:100%;font-size:11px!important;min-height:36px!important}
.priority-chip,.source-chip{display:inline-flex;align-items:center;border-radius:20px;padding:4px 7px;font-size:9px;font-weight:800;letter-spacing:.3px}
.priority-low{background:#f0f4f7;color:#718197}
.priority-normal{background:#edf3f8;color:#446483}
.priority-high{background:#fff2df;color:#9e681e}
.priority-urgent{background:#fff0ef;color:#b34f4d}
.source-chip{background:#edf2f8;color:#4c6782}
.task-overdue{color:#b34f4d!important;font-weight:800}
.task-source-warning{margin-top:8px;padding:8px 10px;border-left:3px solid #d5a14a;background:#fff8eb;color:#8b641f;font-size:10px;line-height:1.5}
.voice-inbox-card{padding:14px 15px;border:1px solid #e5eaf0;border-radius:11px;background:#fff}
.voice-inbox-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8995a4;font-size:9px}
.voice-inbox-source{margin-top:8px;font-size:11px;font-weight:750;color:#243c58}
.voice-inbox-card p{margin:7px 0;color:#5f7085;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.voice-inbox-card .cell-sub{margin-top:5px}
.task-filters{margin:11px 0 14px}
.development-card{border:1px solid #eee5d6;border-radius:11px;background:#fff;padding:15px 16px}
.development-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.development-card-head b{color:#253a53;font-size:12px}
.development-card p{margin:8px 0 0;color:#758397;font-size:11px;line-height:1.6;max-width:100ch}
.readiness-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.readiness-rules>div{display:grid;gap:6px;padding:14px;border:1px solid #e6ebf1;border-radius:10px;background:#fbfcfd}
.readiness-rules b{font-size:11px;color:#253a53}
.readiness-rules span{font-size:10px;color:#78879a;line-height:1.55}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.is-offline:before{content:"Connection required — ENFORD is online-only. Reconnect to continue.";position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;text-align:center;padding:32px;background:rgba(7,24,48,.94);color:#fff;font:700 15px/1.6 Inter,system-ui,sans-serif;letter-spacing:.2px}
@media(max-width:820px){
  .task-create-panel .field-grid{grid-template-columns:1fr 1fr}
  .task-create-panel .field-grid>div:last-child{grid-column:1/-1}
  .task-card{display:grid;gap:10px;padding:13px}
  .task-card-controls{width:100%;flex-basis:auto}
  .task-status-control{min-height:42px!important}
  .task-card-meta{gap:6px}
  .readiness-rules{grid-template-columns:1fr}
  .voice-controls{width:100%;justify-content:flex-end}
  .voice-language{flex:1;min-width:0}
  .task-filters{display:grid;grid-template-columns:1fr 1fr}
  .task-filters .control{max-width:none}
}
@media(max-width:540px){
  .task-create-panel .field-grid{grid-template-columns:1fr}
  .task-create-panel .field-grid>div:last-child{grid-column:auto}
  .task-card-title{font-size:12px}
  .voice-inbox-card{padding:12px}
  .task-filters{grid-template-columns:1fr}
  .development-card-head{align-items:flex-start;flex-direction:column}
  .development-card{padding:13px}
  .page-heading .live-pill,.page-heading .development-pill{align-self:flex-start}
}
