/* ER NEXUS • Work-first UI / typography and navigation (Wave 33) */
:root{
  --work-accent:#f7c35e;
  --work-ink:#eaf1fa;
  --work-muted:#a7b7cb;
  --work-surface:#0c1726;
}
.ernexus-app{font-size:14px;line-height:1.5}
.ernexus-workbar{
  margin:16px 18px 4px;
  padding:18px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0,rgba(246,183,60,.09),transparent 35%),
    linear-gradient(120deg,#111e30,#0b1421);
  box-shadow:0 15px 40px rgba(0,0,0,.16);
  color:var(--work-ink);
  min-width:0;
}
.ernexus-workbar-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ernexus-workbar-intro{min-width:0}
.ernexus-workbar-eyebrow{color:var(--work-accent);font-size:10px;font-weight:900;
  letter-spacing:.13em}
.ernexus-workbar-intro h2{margin:4px 0 1px;color:#fff;font-size:clamp(19px,1.65vw,25px);
  letter-spacing:-.025em;line-height:1.25}
.ernexus-workbar-intro p{margin:4px 0 0;color:var(--work-muted);font-size:12px;line-height:1.5}
.ernexus-workbar.has-pending-work .ernexus-workbar-intro p{color:#f3c984}
.ernexus-workbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.ernexus-workbar-actions button{
  min-height:42px;padding:8px 12px;border-radius:11px;
  font:750 12px/1.3 Inter,ui-sans-serif,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;white-space:nowrap;
}
.ernexus-workbar-search{background:linear-gradient(130deg,#f6b73c,#ffe29b);
  color:#101a28;border:0;box-shadow:0 5px 20px rgba(246,183,60,.12)}
.ernexus-workbar-collapse{background:#18283d;color:#cbd8e7;
  border:1px solid rgba(148,163,184,.2)}
.ernexus-workbar-actions button:hover{filter:brightness(1.08)}
.ernexus-workbar-body[hidden]{display:none!important}
.ernexus-workbar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;margin-top:17px}
.ernexus-workbar-tile{
  min-width:0;min-height:74px;
  display:flex;align-items:center;gap:12px;
  text-align:left;padding:12px;border-radius:14px;
  background:rgba(8,19,33,.88);
  border:1px solid rgba(148,163,184,.16);
  color:#e7f0fa;cursor:pointer;transition:border-color .15s,background .15s,transform .15s;
}
.ernexus-workbar-tile:hover,.ernexus-workbar-tile.is-current{
  border-color:rgba(246,183,60,.48);background:rgba(246,183,60,.07)
}
.ernexus-workbar-tile:hover{transform:translateY(-1px)}
.ernexus-workbar-tile-icon{flex:0 0 38px;width:38px;height:38px;
  display:grid;place-items:center;border-radius:11px;
  background:#172840;color:#f8c45c;font-size:22px}
.ernexus-workbar-tile-text{display:block;min-width:0;flex:1}
.ernexus-workbar-tile-text strong{display:block;color:#f2f6fd;font-size:13px;
  font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.ernexus-workbar-tile-text small{display:block;margin-top:4px;
  color:#8ea3bb;font-size:11px;font-weight:600}
.ernexus-workbar-arrow{color:#f2bf5b;font-size:17px;align-self:flex-start}
.ernexus-workbar-bottom{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;
  gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(148,163,184,.12)}
.ernexus-workbar-current{color:#f2cd89;font-size:12px;font-weight:750}
.ernexus-workbar-recents{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.ernexus-workbar-recents>span{font-size:11px;color:#8398b1}
.ernexus-workbar-recent-list{display:flex;gap:6px;flex-wrap:wrap}
.ernexus-workbar-recent{padding:6px 10px;min-height:34px;border:1px solid #2c4058;
  border-radius:999px;background:#172639;color:#d5e2f0;font-size:11px;
  font-weight:700;cursor:pointer}
.ernexus-workbar-recent:hover{border-color:#f6b73c}
.ernexus-workbar-recent-empty{font-size:11px;color:#657d98}

/* Practical type scale: replace former 6–9px operational text with readable sizes. */
.ernexus-app .ernexus-nav-group{font-size:11px!important;min-height:37px!important}
.ernexus-app .ernexus-nav-item{min-height:44px}
.ernexus-app .ernexus-nav-item>b{font-size:12px!important;line-height:1.4}
.ernexus-app .ernexus-nav-item>span{font-size:17px}
.ernexus-app .ernexus-sidebar-foot strong{font-size:11px}
.ernexus-app .ernexus-sidebar-foot small{font-size:10px}
.ernexus-app .ernexus-breadcrumb{font-size:11px}
.ernexus-app .ernexus-workspace-title h1{font-size:clamp(16px,1.35vw,21px)}
.ernexus-app .ernexus-command b,.ernexus-app .ernexus-quick-create b{font-size:12px}
.ernexus-app .ernexus-user>b{font-size:12px}
.ernexus-app .ernexus-user small{font-size:10px}
.ernexus-app .ernexus-live-strip>span{font-size:11px!important;gap:8px}
.ernexus-app .ernexus-live-strip b{font-weight:700}
.ernexus-app .ernexus-exec-kicker{font-size:11px;letter-spacing:.09em}
.ernexus-app .ernexus-exec-copy h2{font-size:clamp(30px,3vw,46px);line-height:1.1}
.ernexus-app .ernexus-exec-copy>p{font-size:14px;max-width:620px;line-height:1.6}
.ernexus-app .ernexus-exec-actions button{min-height:46px;font-size:12px;
  padding:10px 15px}
.ernexus-app .ernexus-exec-health-meta small{font-size:11px}
.ernexus-app .ernexus-exec-health-meta b{font-size:18px}
.ernexus-app .ernexus-kpis-v2 article{min-height:112px;padding:16px}
.ernexus-app .ernexus-kpis-v2 article>div span{font-size:12px}
.ernexus-app .ernexus-kpis-v2 article small{display:block;font-size:10.5px}
.ernexus-app .ernexus-kpis-v2 article>strong{font-size:clamp(26px,2vw,34px)}
.ernexus-app .ernexus-panel-head{padding:16px}
.ernexus-app .ernexus-panel-head span{font-size:10px}
.ernexus-app .ernexus-panel-head h3{font-size:16px;line-height:1.3}
.ernexus-app .ernexus-panel-head button{font-size:12px;min-height:38px;padding:6px}
.ernexus-app .ernexus-action-item,.ernexus-app .ernexus-readiness-row{min-height:57px}
.ernexus-app .ernexus-action-item b,.ernexus-app .ernexus-readiness-row b{font-size:13px}
.ernexus-app .ernexus-action-item p,.ernexus-app .ernexus-readiness-row small{font-size:11px}
.ernexus-app .ernexus-floor-metric span{font-size:11px}
.ernexus-app .ernexus-floor-metric strong{font-size:22px}
.ernexus-app .ernexus-floor-bars>div{font-size:11px}
.ernexus-app .ernexus-activity-item b{font-size:12px}
.ernexus-app .ernexus-activity-item p,.ernexus-app .ernexus-activity-item small{font-size:11px}
.ernexus-app .ernexus-stage-head>div>p:last-child{font-size:14px;max-width:780px}
.ernexus-app .ernexus-stage-head h2{font-size:clamp(24px,2vw,30px)}
.ernexus-app .ernexus-stage-loading,.ernexus-app .ernexus-empty-module{font-size:14px}
.ernexus-app .ernexus-data-card h3{font-size:16px}
.ernexus-app .ernexus-data-card>p{font-size:12px;white-space:normal}
.ernexus-app .ernexus-data-card dt{font-size:11px}
.ernexus-app .ernexus-data-card dd{font-size:13px}
.ernexus-app .ernexus-command-results button{min-height:48px}
.ernexus-app .ernexus-command-results button>b{font-size:13px}
.ernexus-app .ernexus-command-results button>small{font-size:11px}
.ernexus-app .ernexus-command-input-wrap input{font-size:16px!important}
.ernexus-app .ernexus-record-table td{font-size:12px}
.ernexus-app .ernexus-record-table th{font-size:11px}
.ernexus-app .ernexus-record-toolbar input{font-size:15px}
.ernexus-app .ernexus-record-toolbar>div:first-child span{font-size:11px}
.ernexus-app .ernexus-record-toolbar>div:first-child b{font-size:15px}
.ernexus-app .ernexus-record-count{font-size:11px}
.ernexus-app .ernexus-record-table button,.ernexus-app .ernexus-record-pagination button{
  font-size:12px;min-height:36px;padding:7px 10px}
.ernexus-app .ernexus-quick-actions b{font-size:13px}
.ernexus-app .ernexus-quick-actions small{font-size:11px}
.ernexus-login-card{width:min(460px,100%);padding:clamp(24px,5vw,38px)}
.ernexus-login-card h1{font-size:30px}
.ernexus-login-card>p:not(.ernexus-eyebrow){font-size:13px}
.ernexus-login-card label{font-size:13px}
.ernexus-login-card input[type=text],.ernexus-login-card input[type=password]{
  min-height:50px;font-size:16px}
.ernexus-login-card .login-remember{font-size:12px}
.ernexus-login-card input[type=submit]{min-height:50px;font-size:15px}
.ernexus-login-help a{font-size:12px}

.ernexus-app .ernexus-workbar button:focus-visible{outline:2px solid #ffd879;outline-offset:3px}
.ernexus-app .ernexus-mobile-dock button.is-current{
  background:rgba(246,183,60,.14);color:#ffda8a}
.ernexus-app .ernexus-mobile-dock button b{font-size:11px;line-height:1.2}
.ernexus-app .ernexus-mobile-dock button span{font-size:19px}
@media(max-width:1250px){
  .ernexus-workbar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .ernexus-workbar{margin:12px 12px 5px;padding:16px}
  .ernexus-app .ernexus-mobile-dock button{min-height:56px!important}
  .ernexus-app .ernexus-main{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
}
@media(max-width:720px){
  .ernexus-workbar-head{align-items:flex-start;flex-wrap:wrap}
  .ernexus-workbar-actions{width:100%;justify-content:flex-start}
  .ernexus-workbar-actions button{min-height:44px}
  .ernexus-workbar-grid{gap:8px;margin-top:13px}
  .ernexus-workbar-tile{min-height:76px;gap:8px;padding:11px}
  .ernexus-workbar-tile-icon{width:34px;height:34px;flex-basis:34px;font-size:20px}
  .ernexus-workbar-tile-text strong{font-size:12px}
  .ernexus-workbar-tile-text small{font-size:10px}
  .ernexus-workbar-arrow{display:none}
  .ernexus-workbar-bottom{align-items:flex-start}
  .ernexus-workbar-recents{width:100%}
  .ernexus-app .ernexus-exec-hero{padding:20px}
  .ernexus-app .ernexus-exec-copy h2{font-size:clamp(28px,7vw,37px)}
  .ernexus-app .ernexus-exec-copy>p{font-size:13px}
  .ernexus-app .ernexus-kpis-v2 article{min-height:100px;padding:13px}
  .ernexus-app .ernexus-kpis-v2 article small{display:block!important}
  .ernexus-app .ernexus-live-strip>span{font-size:11px!important}
  .ernexus-app .ernexus-record-table-wrap{overflow-x:auto}
  .ernexus-app .ernexus-module-stage{border-radius:16px}
  .ernexus-app .ernexus-stage-content{padding:12px}
}
@media(max-width:380px){
  .ernexus-workbar{padding:13px;margin:10px 8px 5px}
  .ernexus-workbar-tile{gap:6px;padding:9px}
  .ernexus-workbar-tile-icon{width:31px;height:31px;flex-basis:31px}
  .ernexus-workbar-tile-text strong{font-size:11.5px}
  .ernexus-workbar-actions .ernexus-workbar-search{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .ernexus-workbar-tile{transition:none!important;transform:none!important}
}

/* Desktop shell: one grid column per region; never add a second sidebar offset. */
@media(min-width:1101px){
  .ernexus-app:has(> .ernexus-sidebar){grid-template-columns:300px minmax(0,1fr)!important;max-width:100vw;overflow-x:clip}
  .ernexus-app:has(> .ernexus-sidebar) .ernexus-sidebar{width:300px!important}
  .ernexus-app:has(> .ernexus-sidebar) .ernexus-main{margin-left:0!important;width:auto!important;min-width:0!important}
}

.ernexus-workbar-due[hidden]{display:none!important}
.ernexus-workbar-due{display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  padding:8px 14px;border:1px solid rgba(246,183,60,.5);border-radius:10px;
  background:rgba(246,183,60,.14);color:#ffe2a3;font-size:12px;font-weight:900;
  line-height:1.4;cursor:pointer}
.ernexus-workbar-due:hover{background:rgba(246,183,60,.22)}
