/* Approved stone-gray / greige presentation; business and status semantics stay intact. */
#app.dwShell{--dw-sidebar:244px;--dw-bottom:66px;--anth:#3d4244;--anth2:#505658;--anth3:#303638;--bg:#f3f2ee;--line:#dedfd9;--text:#252925;--muted:#606660;min-height:100vh;background:var(--bg);padding-left:var(--dw-sidebar)}
#app.dwShell [hidden]{display:none!important}
#app.dwShell>header{position:relative;top:auto;z-index:20;background:linear-gradient(115deg,#303638,#414749);color:#fff;box-shadow:none;border-bottom:1px solid #ffffff16}
#app.dwShell .headTop{height:auto;min-height:80px;max-width:none;margin:0;padding:12px 24px;gap:16px}
#app.dwShell .logoPlate{position:relative;display:block;width:fit-content;height:auto;padding:0;line-height:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#app.dwShell .logoPlate img{display:block;width:228px;height:auto;max-width:100%;max-height:60px;object-fit:contain}
#app.dwShell .logoPlate img[src$="/showroom-original.png"]{filter:brightness(0) invert(1);opacity:1;mask-image:linear-gradient(to bottom,#000 0 40%,transparent 40% 80%,#000 80% 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0 40%,transparent 40% 80%,#000 80% 100%)}
/* Non-overlapping artwork bands avoid a white antialiasing halo beneath red lettering.
   Block layout keeps image and overlay bounds identical (no inline baseline gap). */
#app.dwShell .logoPlate:has(img[src$="/showroom-original.png"])::after{content:"";position:absolute;inset:0;background:url('./showroom-original.png') center/100% 100% no-repeat;clip-path:inset(40% 0 20% 0);pointer-events:none}
#app.dwShell .headTop .mode{display:none}
#app.dwShell .headTop .user{min-width:0;max-width:340px;overflow:visible;text-align:left;color:#d1d7db;flex:none}
#app.dwShell .headTop .profileMenu{margin:0;font-size:13px}
#app.dwShell .headTop .profileMenu summary{display:flex;align-items:center;gap:11px;min-height:48px;padding:6px 12px 6px 7px;border:1px solid transparent;border-radius:12px;background:transparent;list-style:none;text-decoration:none;color:#f2f4f5}
#app.dwShell .headTop .profileMenu summary::-webkit-details-marker{display:none}
#app.dwShell .headTop .profileMenu summary:hover,#app.dwShell .headTop .profileMenu[open] summary{background:#ffffff12}
#app.dwShell .headTop .profileMenu summary:focus-visible{outline:3px solid #d7bb82;outline-offset:3px}
#app.dwShell .headTop .user .memberAvatar{float:none;margin:0;width:40px;height:40px;font-size:12px;background:#f2f1eb;color:#303630;border-color:#ffffff40}
.dwAccountName{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.dwAccountChevron{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 1px 4px 3px;flex:none}
.profileMenu[open] .dwAccountChevron{transform:rotate(225deg);margin-bottom:0}
#app.dwShell .headTop .dwAccountMenu{position:absolute;right:0;top:calc(100% + 9px);z-index:80;width:246px;max-width:calc(100vw - 32px);padding:8px;border:1px solid #dbe1e4;border-radius:13px;background:#fff;color:#252d32;box-shadow:0 12px 36px #0c12152b}
.dwAccountMenu>strong{display:block;padding:9px 10px 2px;font-size:13px;overflow-wrap:anywhere}
.dwAccountEmail{display:block;margin-bottom:5px;padding:0 10px 12px;border-bottom:1px solid #e8ecee;color:#657078;font-size:11px;overflow-wrap:anywhere}
#app.dwShell .headTop .profileMenu .dwAccountMenu button{position:static;display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:11px 10px;border:0;border-radius:7px;box-shadow:none;background:transparent;color:#252d32;font-size:13px}
#app.dwShell .headTop .profileMenu .dwAccountMenu button:hover{background:#f0f3f4}
#app.dwShell .mobileNav{display:none}
.dwSidebar{position:fixed;left:0;top:0;bottom:0;width:var(--dw-sidebar);height:100vh;height:100dvh;overflow:auto;overscroll-behavior:contain;background:var(--anth);color:#fff;z-index:35;display:flex;flex-direction:column;padding:0 12px max(16px,env(safe-area-inset-bottom));border-right:1px solid #ffffff14}
.dwProduct{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:94px;padding:22px 13px 16px;flex:none}
.dwProduct strong{display:block;color:#fff;font-size:18px;letter-spacing:.09em;line-height:1.3;font-weight:800}
.dwVersion{display:block;color:#cbd0d3;font-size:11px;margin-top:7px}
.dwNavClose{display:none}
.dwPlan{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 12px);gap:10px;margin:0 6px 8px;min-height:62px;text-align:left;padding:12px 13px;border:1px solid #737a7f;border-radius:10px;background:var(--anth2);color:#fff;flex:none}
.dwPlan small{display:block;color:#d7dadd;font-size:10px;letter-spacing:.12em;margin-bottom:5px;font-weight:600}
.dwPlan strong{font-size:13px;color:#fff}
.dwPlan>span:last-child{font-size:23px}
.dwSidebar .nav{display:block;max-width:none;margin:0;padding:0;border:0;background:none;overflow:visible;white-space:normal;flex:1}
.dwNavGroup{margin:17px 0 0}
.dwNavLabel{color:#c8cdd1;font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;padding:0 13px;margin:0 0 7px}
.dwSidebar .nav button{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:10px 13px;margin:2px 0;text-align:left;white-space:normal;border:0;border-radius:9px;font-size:13px;font-weight:700;line-height:1.4;color:#e6e8ea;background:transparent}
.dwSidebar .nav button:hover{background:var(--anth2)}
.dwSidebar .nav button.on{background:#50585b;box-shadow:inset 3px 0 0 var(--red);color:#fff}
.dwSidebar svg,.dwBottomNav svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.dwSidebarFooter{padding:20px 10px 0}
.dwSidebarFooter button{width:100%;padding:11px;border:1px solid #7b8287;border-radius:9px;background:none;color:#e6e8ea;font:inherit;font-size:12px;min-height:44px}
.dwBottomNav,.dwNavShade{display:none}
.dwPlanDialog{width:min(440px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:15px;background:#f6f7f8;color:var(--text);box-shadow:0 20px 70px #0004}
.dwPlanDialog::backdrop{background:#1215179e}
.dwPlanHead{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.dwPlanHead button{font-size:23px;width:44px;height:44px;border:0;border-radius:10px;background:#e9edef;color:#32373b}
.dwPlanDialog p{font-size:14px;line-height:1.6;color:var(--muted)}
.dwPlanDialog dl{margin:18px 0 24px;font-size:13px}
.dwPlanDialog dl>div{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}
.dwPlanDialog dd{margin:0;font-weight:700}
.dwPlanDone{min-height:44px}
.dwSidebar button:focus-visible,.dwBottomNav button:focus-visible,.dwPlanDialog button:focus-visible{outline:3px solid #d7bb82;outline-offset:2px}
@media(max-width:1100px) and (min-width:821px){#app.dwShell{--dw-sidebar:210px}.dwProduct strong{font-size:16px}.dwSidebar .nav button{padding-left:11px;padding-right:9px;font-size:12px}#app.dwShell .main{padding-left:22px;padding-right:22px}}
@media(max-width:820px){
  #app.dwShell{padding-left:0}
  #app.dwShell .headTop{min-height:76px;padding:12px 16px;gap:12px}
  #app.dwShell .brandWrap{max-width:calc(100% - 92px)}
  #app.dwShell .logoPlate{max-width:200px}
  #app.dwShell .logoPlate img{width:clamp(164px,48vw,200px);height:auto;max-height:48px}
  #app.dwShell .headTop .user{font-size:11px;line-height:1.5}
  .dwAccountName{max-width:145px}
  #app.dwShell .main{padding-bottom:calc(var(--dw-bottom) + env(safe-area-inset-bottom,0px) + 28px)}
  #app.dwShell .main :is(button,input,select,textarea){scroll-margin-bottom:calc(var(--dw-bottom) + env(safe-area-inset-bottom,0px) + 20px)}
  .dwSidebar{width:min(286px,calc(100vw - 44px));z-index:45;transform:translateX(-105%);visibility:hidden;pointer-events:none;box-shadow:12px 0 36px #0003}
  .dwMenuOpen .dwSidebar{transform:translateX(0);visibility:visible;pointer-events:auto}
  .dwProduct{min-height:92px;padding-left:13px;padding-right:5px}
  .dwProduct strong{font-size:17px}
  .dwNavClose{display:block;min-width:40px;height:40px;border:1px solid #7b8287;border-radius:9px;background:none;color:#fff;font-size:24px}
  .dwSidebar .nav button{min-height:46px;font-size:14px}
  .dwNavLabel{font-size:11px}
  .dwNavShade{display:block;position:fixed;inset:0;z-index:40;background:#12151780;touch-action:none}
  html.dw-menu-open,html.dw-menu-open body{overflow:hidden}
  .dwBottomNav{display:flex;align-items:stretch;position:fixed;left:0;right:0;bottom:0;z-index:30;min-height:var(--dw-bottom);padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);background:var(--anth);border-top:1px solid #70777c;box-shadow:0 -3px 12px #20242814}
  .dwBottomItem{flex:1 1 0;min-width:0;min-height:var(--dw-bottom);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 2px 8px;border:0;border-radius:0;background:transparent;color:#e6e8ea;font-size:11px;font-weight:700;line-height:1.2}
  .dwBottomItem svg{width:21px;height:21px}
  .dwBottomItem.on{background:#50585b;box-shadow:inset 0 3px 0 var(--red);color:#fff}
  .dwBottomItem:disabled{opacity:.6}
  .dwOverlayOpen .dwBottomNav,.dwKeyboardOpen .dwBottomNav{visibility:hidden;pointer-events:none}
}
@media(max-width:600px){#app.dwShell .headTop .dwAccountName{display:none}#app.dwShell .headTop .profileMenu summary{gap:8px;padding-right:10px}}

/* Quiet hierarchy: decorative red is reduced, warnings retain their semantic colors. */
#app.dwShell .main{background:var(--bg)}
#app.dwShell .title .ey,#app.dwShell .r20SalesPrimary>.ey,#app.dwShell .r23CockpitIntel .ey{color:var(--muted)}
#app.dwShell .card,#app.dwShell .r20SalesPrimary,#app.dwShell .r20SalesFacts article{border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px #25292505;background:#fff}
#app.dwShell .r20SalesPrimary::after{display:none}
#app.dwShell .r19CockpitHero{background:#60665f;border-radius:12px;box-shadow:none}
#app.dwShell .r19CockpitHero .ey{color:#fff}
#app.dwShell .r23CockpitIntel{background:#fff;border-color:var(--line);border-radius:12px;box-shadow:none}
#app.dwShell .r23CockpitIntel[data-tone="critical"]{border-left:3px solid var(--danger)}
#app.dwShell .r23CockpitIntel[data-tone="warning"]{border-left:3px solid var(--warn)}
#app.dwShell .r23CockpitIntel[data-tone="ok"]{border-left:3px solid var(--ok)}
#app.dwShell .dwVersion,#app.dwShell .dwNavLabel{color:#f0f1ed}
#app.dwShell .dwPlan{background:#ffffff13;border-color:#ffffff30}
#app.dwShell .dwPlan small{color:#f0f1ed}
#app.dwShell .dwSidebar .nav button{font-weight:600}
.dwHeaderMenu{display:none}
@media(max-width:820px){
 #app.dwShell .headTop{min-height:72px;padding:10px 12px;gap:8px}
 .dwHeaderMenu{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:0;background:transparent;color:#fff;border-radius:8px}
 .dwHeaderMenu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}
 #app.dwShell .brandWrap{flex:1;min-width:0;max-width:none}
 #app.dwShell .logoPlate{width:min(180px,100%);max-width:180px}
 #app.dwShell .logoPlate img{display:block;width:100%;max-height:none}
 #app.dwShell .headTop .dwAccountName,#app.dwShell .headTop .dwAccountChevron{display:none}
 #app.dwShell .headTop .profileMenu summary{padding:2px;min-height:44px;min-width:44px}
 .dwBottomNav{background:#3d4244;padding-top:4px;padding-left:4px;padding-right:4px;border-color:#ffffff30}
 .dwBottomItem{position:relative;min-height:62px;border-radius:8px;padding-bottom:10px}
 .dwBottomItem.on{background:#ffffff17;box-shadow:none;color:#fff}
 .dwBottomItem.on svg{color:#ff767b}
 .dwBottomItem.on::after{content:"";position:absolute;bottom:3px;width:24px;height:3px;border-radius:2px;background:#ff767b}
 .dwHeaderMenu:focus-visible{outline:3px solid #fff;outline-offset:2px}
}

/* A permanent desktop rail frames the workspace; mobile keeps the drawer. */
@media(min-width:821px){
 #app.dwShell .main{max-width:1480px;padding:24px 28px 28px}
 #app.dwShell .main :is(button,input,select,textarea){scroll-margin-bottom:24px}
 #app.dwShell .headTop{min-height:80px;justify-content:space-between}
 #app.dwShell .headTop .user{margin-left:auto}
 .dwSidebar{background:linear-gradient(165deg,#3d4244,#303638);border-right:1px solid #ffffff1c}
 .dwProduct{min-height:80px;padding-top:17px;padding-bottom:14px;border-bottom:1px solid #ffffff18;margin-bottom:14px}
 .dwProduct strong{font-size:17px;letter-spacing:.08em}
 .dwNavGroup{margin-top:19px}
 .dwSidebar .nav button{min-height:43px;border-radius:7px}
 #app.dwShell .dwSidebar .nav button.on{background:#ffffff14;box-shadow:inset 3px 0 0 #f1444c;font-weight:750}
 .dwBottomNav{display:none}
 #app.dwShell .title{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #d6d8d1}
 #app.dwShell .title h1{font-size:34px;font-weight:850;letter-spacing:-1.1px}
 #app.dwShell .title p{margin-bottom:0;line-height:1.5}
 #app.dwShell .r19CockpitHero{padding:18px 20px;gap:18px;align-items:center;border-left:4px solid #e4313a;border-radius:9px}
 #app.dwShell .r19CockpitHero h2{font-size:23px;letter-spacing:-.5px}
 #app.dwShell .r19HeroActions{max-width:48%}
 #app.dwShell .r19HeroActions>span{max-width:100%;border-radius:5px;line-height:1.5}
 #app.dwShell .panel{padding:18px}
 #app.dwShell .r20SalesPrimary{padding:18px 20px}
 #app.dwShell .r20SalesFacts article{min-height:96px;padding:13px 16px}
 #app.dwShell .r20SalesFacts .r20DeliveryFact{min-height:76px}
 #app.dwShell .r20SalesScore strong{font-size:48px;font-weight:850;font-variant-numeric:tabular-nums}
 #app.dwShell .r20SalesFacts b{font-size:30px;font-variant-numeric:tabular-nums}
}
/* Crisp cards and restrained automotive red, without changing status colors. */
#app.dwShell .card,#app.dwShell .r20SalesPrimary,#app.dwShell .r20SalesFacts article{border-radius:9px;border-color:#d6d8d1;box-shadow:0 2px 5px #25292508}
#app.dwShell .title>.ey,#app.dwShell .title .ey{font-weight:800;letter-spacing:1.6px}
#app.dwShell .btn.primary{border-radius:7px;font-weight:750;box-shadow:0 2px 3px #b11b2320}
#app.dwShell .r19Priority strong,#app.dwShell .r19AgendaItem strong,#app.dwShell .r19DocRow strong{font-size:12px}
#app.dwShell .r19Priority small,#app.dwShell .r19AgendaItem small,#app.dwShell .r19DocRow small{font-size:10px}
@media(min-width:821px) and (max-width:1180px){
 #app.dwShell .r20SalesPerformance,#app.dwShell .r19CockpitGrid{grid-template-columns:minmax(0,1fr)}
 #app.dwShell .r20SalesFacts{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app.dwShell .r19CockpitHero{flex-wrap:wrap}
 #app.dwShell .r19HeroActions{max-width:100%;justify-content:flex-start}
}
/* Compact cockpit: one title, one action row, then the working figures. */
.dwSidebar{scrollbar-width:thin;scrollbar-color:#747d80 #353b3d}
.dwSidebar::-webkit-scrollbar{width:6px}
.dwSidebar::-webkit-scrollbar-track{background:#353b3d}
.dwSidebar::-webkit-scrollbar-thumb{background:#747d80;border:1px solid #353b3d;border-radius:6px}
#app.dwShell .main:has(#cockpit:not(.hide)) .title{margin-bottom:14px;padding-bottom:12px}
#app.dwShell .main:has(#cockpit:not(.hide)) #pageSub{display:none}
#app.dwShell .dwCockpitToolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin:0 0 18px}
#app.dwShell .dwCockpitToolbar .visitQuickActions{margin:0;display:flex;flex-wrap:wrap;gap:8px}
#app.dwShell .dwCockpitToolbar .r19CockpitHero{display:contents}
#app.dwShell .dwCockpitToolbar .r19CockpitHero>div:first-child,#app.dwShell #cockpitRoleScope{display:none}
#app.dwShell .dwCockpitToolbar .r19HeroActions{max-width:none;width:auto;gap:8px;justify-content:flex-start}
#app.dwShell .dwCockpitToolbar .r19HeroActions .btn{margin:0;border:1px solid #d6d8d1;background:#fff;color:#333b34;border-radius:7px}
#app.dwShell .dwCockpitToolbar .btn{font-size:12px;min-height:42px;padding:10px 14px}
.dwAccountScope{display:block;margin:0 10px 8px;padding:8px 0;border-bottom:1px solid #e8ecee;font-size:11px;line-height:1.5;color:#536056;overflow-wrap:anywhere}
#app.dwShell #cockpit :is(.r20SalesFacts span,.r19MetricTop span){color:#596359;font-size:11px;letter-spacing:.06em}
#app.dwShell #cockpit :is(.r20SalesFacts small,.r19Metric small,.r19Area small){color:#596359;font-size:11px;line-height:1.5}
#app.dwShell #cockpit .r19Priority small,#app.dwShell #cockpit .r19AgendaItem small,#app.dwShell #cockpit .r19DocRow small{color:#596359;font-size:11px;line-height:1.45}
#app.dwShell #cockpit .r20SalesPrimary p{color:#596359;font-size:12px;line-height:1.55}
@media(max-width:600px){
 #app.dwShell .dwCockpitToolbar{gap:8px;margin-bottom:14px}
 #app.dwShell .dwCockpitToolbar .visitQuickActions{width:100%}
 #app.dwShell .dwCockpitToolbar .visitQuickActions .btn{flex:1;min-width:0;padding:10px 8px}
 #app.dwShell .dwCockpitToolbar .r19HeroActions{width:100%}
 #app.dwShell .dwCockpitToolbar .r19HeroActions .btn{flex:1}
}
@media print{#app.dwShell{padding-left:0}.dwSidebar,.dwBottomNav,.dwNavShade,.dwPlanDialog{display:none!important}}
