/* V310 Home/header navigation. These scoped rules supersede older positioning-only patches.
   Data, canvases, account records, permissions and profile-loading are unchanged. */
html body:not(.employee-mode) .shell > .main{
  display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;
  height:100%!important;position:relative!important;overflow:hidden!important;
  width:auto!important;max-width:100%!important;
}
html body:not(.employee-mode) .main > .stage{
  position:relative!important;flex:1 1 0%!important;height:auto!important;min-height:0!important;
  width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
}
html body:not(.employee-mode) .topbar.v309-app-header{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
  width:100%!important;max-width:none!important;min-height:68px!important;height:auto!important;
  flex:0 0 auto!important;margin:0!important;padding:8px 12px!important;box-sizing:border-box!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(170px,1fr)!important;
  grid-template-rows:auto!important;align-items:center!important;column-gap:12px!important;row-gap:8px!important;
  background:rgba(4,12,19,.97)!important;border:0!important;border-bottom:1px solid #645022!important;
  border-radius:0!important;box-shadow:0 6px 22px rgba(0,0,0,.2)!important;
  z-index:55!important;overflow:visible!important;transform:none!important;
}
html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-start{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  grid-column:1!important;grid-row:1!important;position:static!important;min-width:0!important;
  width:auto!important;height:auto!important;padding:0!important;margin:0!important;
}
html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-end{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;
  grid-column:3!important;grid-row:1!important;position:static!important;min-width:0!important;
}
html body:not(.employee-mode) .topbar.v309-app-header > .topbar-titleblock{display:none!important}
html body:not(.employee-mode) .topbar.v309-app-header .v309-header-profile-slot{
  display:flex;min-width:0;flex:1 1 auto;max-width:205px;
}
html body:not(.employee-mode) .topbar.v309-app-header #dashboardUserProfile{
  position:static!important;inset:auto!important;transform:none!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;max-width:205px!important;min-width:0!important;min-height:46px!important;height:46px!important;
  padding:3px 8px!important;margin:0!important;gap:8px!important;border:1px solid #756020!important;border-radius:12px!important;
  background:rgba(6,15,22,.88)!important;overflow:hidden!important;box-shadow:none!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #dashboardUserProfile .dashboard-profile-meta{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;order:1!important;
  min-width:0!important;flex:1 1 auto!important;margin:0!important;padding:0!important;gap:2px!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #dashboardProfileName{
  display:block!important;font-size:12px!important;line-height:1.25!important;color:#fff!important;
  font-weight:800!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;max-width:100%!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #dashboardProfileDesignation{
  display:block!important;font-size:9px!important;line-height:1.25!important;color:#f0c54e!important;
  font-weight:700!important;text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;max-width:100%!important;
}
html body.workspace-landing .v309-header-profile-slot{display:none!important}
html body:not(.employee-mode) .topbar.v309-app-header .mobile-menu-btn{display:none!important}
html body:not(.employee-mode) .topbar.v309-app-header .datachip{
  grid-column:2!important;grid-row:1!important;display:flex!important;position:static!important;
  inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;
  align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:6px!important;
  padding:0!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #homeLiveSummary{
  display:flex!important;position:static!important;inset:auto!important;align-items:center!important;gap:6px!important;
  flex:0 0 auto!important;min-width:0!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-item{
  position:static!important;display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;
  column-gap:8px!important;row-gap:3px!important;align-items:center!important;flex:0 0 auto!important;
  padding:6px 9px!important;border:1px solid #655124!important;border-radius:9px!important;background:#06111a!important;
  height:46px!important;min-height:46px!important;box-sizing:border-box!important;white-space:nowrap!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-label{
  grid-column:1 / -1!important;grid-row:1!important;display:block!important;font-size:8px!important;line-height:1.1!important;color:#eaca7b!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-number{
  grid-row:2!important;display:block!important;color:#f1ca4e!important;font-size:20px!important;line-height:1!important;margin:0!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-date{
  grid-column:1!important;grid-row:2!important;display:block!important;width:106px!important;max-width:106px!important;
  min-width:0!important;height:22px!important;min-height:22px!important;margin:0!important;padding:1px 5px!important;
  font-size:10px!important;border:1px solid #655124!important;border-radius:5px!important;background:#08131c!important;color:#fff!important;color-scheme:dark;
}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-printed .dashboard-live-number{grid-column:2!important}
html body:not(.employee-mode) .topbar.v309-app-header .dashboard-refresh-btn{
  position:static!important;flex:0 0 34px!important;display:grid!important;place-items:center!important;inset:auto!important;
  width:34px!important;height:34px!important;min-width:34px!important;padding:7px!important;border-radius:50%!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .chip{
  flex:0 0 auto!important;padding:6px 8px!important;font-size:9px!important;line-height:1.2!important;
  max-width:215px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #v305TopClock{
  position:static!important;display:flex!important;align-items:center!important;inset:auto!important;transform:none!important;
  width:auto!important;min-width:83px!important;padding:2px 8px!important;margin:0!important;flex:0 0 auto!important;
  border:0!important;border-right:1px solid rgba(230,198,117,.2)!important;
}
html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-icon{display:none!important}
html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-copy{display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important}
html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-copy strong{font-size:12px!important;color:white!important}
html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-copy small{font-size:8px!important;color:#eaca7b!important}

html body:not(.employee-mode) .topbar.v309-app-header .mobile-user-actions{
  position:static!important;display:flex!important;inset:auto!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #authUser{display:none!important}
html body:not(.employee-mode) .topbar.v309-app-header #authSignOut{
  position:static!important;inset:auto!important;transform:none!important;width:auto!important;min-width:68px!important;min-height:40px!important;height:40px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  margin:0!important;padding:0 12px!important;font-size:11px!important;font-weight:800!important;color:#f1ca4e!important;
  border:1px solid #aa882c!important;border-radius:20px!important;background:#08121a!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #authSignOut:after{content:none!important}
html body:not(.employee-mode) .topbar.v309-app-header #authSignOut span{display:inline!important}
html body:not(.employee-mode) .topbar.v309-app-header #authSignOut svg{display:none!important}

/* Home contains only the company welcome and user profile; date/time stays in the shared header. */
html body.workspace-landing .shell{background:#07131d!important}
html body.workspace-landing .stage{background:#07131d!important}
html body #welcomeHome{padding:0!important;background:#07131d!important;color:#f4f7f9!important;overflow:auto!important;isolation:isolate}
html body #welcomeHome:not(.active){display:none!important}
html body #welcomeHome.active{display:block!important}
#welcomeHome .v309-home-photo{position:absolute;inset:0;width:100%;height:100%;min-height:100%;display:block;object-fit:cover;object-position:50% 50%;z-index:-2}
#welcomeHome .v309-home-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(3,9,16,.02),rgba(3,9,16,.04) 38%,rgba(3,9,16,.38) 65%,rgba(3,9,16,.70)),linear-gradient(0deg,rgba(3,9,16,.46),transparent 48%)}
#welcomeHome .v309-home-layout{position:relative;min-height:100%;width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,440px);gap:32px;padding:clamp(24px,3.5vw,58px);align-items:center}
#welcomeHome .v309-home-welcome{grid-column:2;grid-row:1;width:100%;min-width:0;text-align:right;justify-self:end;align-self:center}
#welcomeHome .v309-home-profile-slot{display:flex;justify-content:flex-end;margin:0 0 24px}
html body #welcomeHome #dashboardUserProfile{position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;max-width:100%!important;min-height:62px!important;height:auto!important;border:0!important;background:none!important;border-radius:0!important;box-shadow:none!important}
html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{display:grid!important;place-items:center!important;width:62px!important;height:62px!important;min-width:62px!important;flex:0 0 62px!important;border:2px solid #f1c54a!important;border-radius:50%!important;overflow:hidden!important;position:relative!important;padding:0!important;margin:0!important;background:#0a1720!important;box-shadow:0 4px 18px rgba(0,0,0,.25)}
html body #welcomeHome #dashboardProfileAvatar,html body #welcomeHome #dashboardProfileFallback{grid-area:1/1!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;transform:none!important;background:#0a1720!important;box-shadow:none!important;object-fit:cover!important;object-position:center!important}
html body #welcomeHome #dashboardProfileAvatar{display:none!important}
html body #welcomeHome #dashboardProfileFallback{display:flex!important;align-items:center!important;justify-content:center!important;font-size:27px!important;font-weight:800!important;color:#f6cc57!important}
html body #welcomeHome #dashboardUserProfile[data-avatar-state="photo"] #dashboardProfileAvatar{display:block!important}
html body #welcomeHome #dashboardUserProfile[data-avatar-state="photo"] #dashboardProfileFallback,html body #welcomeHome #dashboardUserProfile [hidden]{display:none!important}
html body #welcomeHome #dashboardUserProfile .dashboard-profile-meta{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:flex-end!important;order:1!important;min-width:0!important}
html body #welcomeHome #dashboardProfileName{display:block!important;color:#fff!important;font-size:19px!important;line-height:1.2!important;font-weight:800!important;max-width:280px!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;text-shadow:0 2px 10px rgba(0,0,0,.6)}
html body #welcomeHome #dashboardProfileDesignation{display:block!important;color:#f0c84f!important;font-size:12px!important;line-height:1.3!important;font-weight:700!important;text-shadow:0 2px 10px rgba(0,0,0,.6)}
html body #welcomeHome .v309-welcome-copy{position:static!important;inset:auto!important;width:100%!important;transform:none!important;text-align:right!important;display:block!important}
html body #welcomeHome #rajDashboardGreeting{margin:0 0 24px!important;padding:16px 18px!important;width:100%!important;max-width:none!important;background:rgba(6,15,23,.76)!important;border:1px solid rgba(239,198,81,.40)!important;border-radius:12px!important;color:#f4f7fa!important;backdrop-filter:blur(10px);text-shadow:none!important;box-shadow:0 8px 26px rgba(0,0,0,.12)}
#welcomeHome #rajDashboardGreetingTitle{display:block;font-size:13px;font-weight:800;line-height:1.4;margin-bottom:4px}
#welcomeHome #rajDashboardGreetingText{display:block;font-size:12px;line-height:1.6}
html body #welcomeHome .v213-kicker{font-size:20px!important;font-weight:800!important;color:#fff!important;text-shadow:0 3px 18px rgba(0,0,0,.6)!important}
html body #welcomeHome .v213-brand-title{font-size:clamp(52px,5.7vw,92px)!important;line-height:.98!important;font-weight:900!important;letter-spacing:.045em!important;margin:18px 0 14px!important;color:#f3c64f!important;text-shadow:0 5px 22px rgba(0,0,0,.42)!important;overflow-wrap:normal}
html body #welcomeHome .v213-brand-sub{font-size:13px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:.04em!important;color:#f5f5f4!important;text-shadow:0 3px 14px rgba(0,0,0,.65)!important}
html body.workspace-landing #rajChatLauncher,html body.workspace-landing #rajForecastAssistant,html body.workspace-landing #rajToast{display:none!important}

/* Two header rows keep every live status accessible instead of clipping it. */
@media(max-width:1500px){
 html body:not(.employee-mode) .topbar.v309-app-header{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;min-height:110px!important;padding:7px 12px!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-start{grid-column:1!important;grid-row:1!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-end{grid-column:2!important;grid-row:1!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .datachip{grid-column:1 / -1!important;grid-row:2!important;justify-content:center!important}
}
@media(max-width:900px){
 html body:not(.employee-mode) .shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:100dvh!important;overflow:hidden!important}
 html body:not(.employee-mode) .shell > .main{grid-column:1!important;height:100dvh!important;min-height:0!important}
 html body:not(.employee-mode) .sidebar{display:flex!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(86vw,330px)!important;height:100dvh!important;z-index:100!important;transform:translateX(-105%)!important;box-shadow:22px 0 55px rgba(0,0,0,.45)}
 html body:not(.employee-mode) .sidebar.mobile-open{transform:translateX(0)!important}
 html body:not(.employee-mode) .mobile-nav-backdrop{z-index:90!important}
 html body:not(.employee-mode) .topbar.v309-app-header .mobile-menu-btn{position:static!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;inset:auto!important;width:36px!important;height:40px!important;min-width:36px!important;flex:0 0 36px!important;margin:0!important;padding:8px!important;gap:4px!important;border:1px solid #756020!important;background:#071019!important;border-radius:9px!important;transform:none!important}
 html body:not(.employee-mode) .topbar.v309-app-header .mobile-menu-btn span{display:block!important;width:18px!important;height:2px!important;background:#f0c54e!important;margin:0!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .datachip{justify-content:flex-start!important}
 #welcomeHome .v309-home-layout{grid-template-columns:minmax(0,1fr) minmax(260px,390px);padding:24px;gap:18px}
 html body #welcomeHome .v213-brand-title{font-size:64px!important}
}
@media(max-width:560px){
 html body:not(.employee-mode) .topbar.v309-app-header{min-height:106px!important;padding:6px 8px!important;column-gap:6px!important;row-gap:6px!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-start{gap:5px!important}
 html body:not(.employee-mode) .topbar.v309-app-header > .v309-header-end{gap:4px!important}
 html body:not(.employee-mode) .topbar.v309-app-header #dashboardUserProfile{height:40px!important;min-height:40px!important;padding:2px 4px!important;gap:5px!important;border-color:transparent!important}
 html body:not(.employee-mode) .topbar.v309-app-header #dashboardUserProfile .v308-avatar-slot{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important}
 html body:not(.employee-mode) .topbar.v309-app-header #dashboardProfileName{font-size:11px!important}
 html body:not(.employee-mode) .topbar.v309-app-header #dashboardProfileDesignation{display:none!important}
 html body:not(.employee-mode) .topbar.v309-app-header #v305TopClock{min-width:69px!important;padding:2px 3px!important;border:0!important}
 html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-copy strong{font-size:11px!important}
 html body:not(.employee-mode) .topbar.v309-app-header .v305-top-clock-copy small{font-size:7px!important}
 html body:not(.employee-mode) .topbar.v309-app-header #authSignOut{min-width:55px!important;min-height:38px!important;height:38px!important;padding:0 8px!important;font-size:10px!important}
 #welcomeHome .v309-home-photo{object-position:38% 50%}
 #welcomeHome .v309-home-shade{background:linear-gradient(180deg,rgba(3,9,16,.26),rgba(3,9,16,.28) 45%,rgba(3,9,16,.82))}
 #welcomeHome .v309-home-layout{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;padding:26px 20px 24px;gap:28px;min-height:100%}
 #welcomeHome .v309-home-welcome{order:0;align-self:stretch}
 #welcomeHome .v309-home-profile-slot{margin-bottom:22px}
 html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important}
 html body #welcomeHome #dashboardProfileName{font-size:18px!important;max-width:210px!important}
 html body #welcomeHome #dashboardProfileDesignation{font-size:11px!important}
 html body #welcomeHome #rajDashboardGreeting{padding:13px 14px!important;margin-bottom:24px!important}
 html body #welcomeHome .v213-kicker{font-size:17px!important}
 html body #welcomeHome .v213-brand-title{font-size:clamp(48px,15.5vw,72px)!important;margin-top:14px!important}
 html body #welcomeHome .v213-brand-sub{font-size:11px!important;letter-spacing:.01em!important}
}


/* The operational Dashboard remains a separate, normally flowing page. Moving its
   welcome content to Home must not leave a hero-sized hole or cause card overlap. */
html body.dashboard-home #home .v213-dashboard{
 display:flex!important;flex-direction:column!important;gap:14px!important;position:relative!important;
 min-height:100%!important;height:auto!important;padding:16px!important;margin:0!important;background:transparent!important;
}
html body.dashboard-home #home .v213-hero{
 position:relative!important;display:flex!important;flex-direction:column!important;gap:14px!important;
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:none!important;
}
html body.dashboard-home #home .v213-hero:before,html body.dashboard-home #home .v213-hero:after{display:none!important}
html body.dashboard-home #home .v213-hero-photo{
 position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;object-fit:cover!important;
 z-index:-1!important;filter:none!important;transform:none!important;
}
html body.dashboard-home #home .v213-hero-shade{display:none!important}
html body.dashboard-home #home .v241-hero-live-zone{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;
 gap:14px!important;margin:0!important;padding:0!important;align-items:stretch!important;
}
html body.dashboard-home #home .v239-sales-panel,html body.dashboard-home #home .v278-daily-sales-panel{
 position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;
 width:100%!important;min-width:0!important;height:314px!important;min-height:314px!important;
 max-height:none!important;margin:0!important;padding:14px!important;overflow:hidden!important;box-sizing:border-box!important;
}
html body.dashboard-home #home .v239-sales-chart-wrap,html body.dashboard-home #home .v278-daily-sales-chart-wrap{
 position:relative!important;min-height:136px!important;height:auto!important;flex:1 1 136px!important;width:100%!important;
}
html body.dashboard-home #home #v299AmazonLive{
 position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;
 height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:14px!important;
}
html body.dashboard-home #home .v213-kpis{
 position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;width:100%!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;background:none!important;transform:none!important;
}
html body.dashboard-home #home .v213-kpi{min-height:100px!important;height:auto!important;max-height:none!important;padding:15px!important}
html body.dashboard-home #home .v213-dashboard-grid{
 position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;
 margin:0!important;padding:0!important;gap:14px!important;background:none!important;
}
html body.dashboard-home #home .v213-data-note{margin:0!important}
html body.dashboard-home #home .v305-brand-logo.amazon{display:block!important;width:48px!important;height:22px!important;object-fit:contain!important;flex:0 0 48px!important}
html body.dashboard-home #home .v305-brand-logo.courier{display:block!important;width:auto!important;max-width:65px!important;height:20px!important;object-fit:contain!important;flex:0 0 auto!important}
html body.dashboard-home #home .v299-amazon-account-name,html body.dashboard-home #home .v299-amazon-courier-name{display:flex!important;align-items:center!important;gap:8px!important}
@media(max-width:1100px){
 html body.dashboard-home #home .v299-amazon-body{grid-template-columns:minmax(0,1fr)!important}
 html body.dashboard-home #home .v299-amazon-coverage{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 html body.dashboard-home #home .v213-dashboard{padding:12px!important;gap:12px!important}
 html body.dashboard-home #home .v241-hero-live-zone{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body.dashboard-home #home .v213-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body.dashboard-home #home .v299-amazon-accounts,html body.dashboard-home #home .v299-amazon-coverage{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
 html body:not(.employee-mode) .topbar.v309-app-header > .datachip{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto auto!important;
  gap:5px!important;width:100%!important;overflow:hidden!important;
 }
 html body:not(.employee-mode) .topbar.v309-app-header #homeLiveSummary{
  grid-column:1 / -1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.34fr) 32px!important;
  grid-template-rows:auto!important;gap:5px!important;width:100%!important;
 }
 html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-item{
  width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;padding:5px 7px!important;
 }
 html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-label{font-size:6.7px!important;letter-spacing:0!important}
 html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-number{font-size:19px!important;text-align:left!important}
 html body:not(.employee-mode) .topbar.v309-app-header .dashboard-live-date{width:88px!important;max-width:100%!important;font-size:8px!important;height:20px!important;min-height:20px!important;padding:1px 3px!important}
 html body:not(.employee-mode) .topbar.v309-app-header .dashboard-refresh-btn{width:32px!important;min-width:32px!important;height:32px!important}
 html body:not(.employee-mode) .topbar.v309-app-header .chip{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:7.5px!important;padding:5px!important;text-align:center!important;
 }
 html body.dashboard-home #home .v299-amazon-head{flex-direction:column!important;align-items:flex-start!important;gap:9px!important}
 html body.dashboard-home #home .v299-amazon-head-actions{flex-wrap:wrap!important;gap:7px!important}
 html body.dashboard-home #home .v299-amazon-accounts{grid-template-columns:minmax(0,1fr)!important}
 html body.dashboard-home #home .v213-kpi{padding:12px!important;min-height:95px!important}
 html body.dashboard-home #home .v213-kpi-icon{width:34px!important;height:34px!important;flex-basis:34px!important}
 html body.dashboard-home #home .v213-kpi strong{font-size:27px!important}
}
/* Older mobile rules hid status chips by ID. Keep all three visible on Home
   and on the shared header, with filenames truncated rather than overflowing. */
html body:not(.employee-mode) .topbar.v309-app-header .datachip > :is(#owChip,#avChip,#poChip){
 display:block!important;visibility:visible!important;position:static!important;inset:auto!important;
 transform:none!important;margin:0!important;opacity:1!important;
}
html body.v309-no-dashboard-access .topbar.v309-app-header #homeLiveSummary{display:none!important}
@media(max-width:560px){
 html body:not(.employee-mode) .topbar.v309-app-header .datachip > :is(#owChip,#avChip,#poChip){
  width:100%!important;min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
}

/* V310: the original sidebar logo is the one Home control. No duplicate
   header/side-menu Home buttons and no second clock are rendered. */
html body:not(.employee-mode) #homeBrand:focus-visible{
  outline:2px solid #f5ce56!important;outline-offset:3px!important;
}
html body:not(.employee-mode) .topbar.v309-app-header #v305TopClock{
  display:flex!important;visibility:visible!important;opacity:1!important;
  flex:0 0 auto!important;font-variant-numeric:tabular-nums;
}
html body:not(.employee-mode) #welcomeHome,
html body:not(.employee-mode) #welcomeHome .v309-home-layout{
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
html body:not(.employee-mode) #welcomeHome .v309-home-welcome{
  min-width:0!important;max-width:100%!important;
}
@media(max-width:560px){
  html body:not(.employee-mode) .topbar.v309-app-header .v309-header-profile-slot{max-width:100%!important}
  html body:not(.employee-mode) .topbar.v309-app-header #dashboardUserProfile{max-width:100%!important}
  html body:not(.employee-mode) #welcomeHome .v309-home-layout{justify-content:center!important}
}
/* Date remains visible on phones too; legacy mobile CSS used to hide <small>. */
html body:not(.employee-mode) .topbar.v309-app-header #v305TopTime,
html body:not(.employee-mode) .topbar.v309-app-header #v305TopDate{
  display:block!important;visibility:visible!important;opacity:1!important;
  white-space:nowrap!important;line-height:1.2!important;
}
@media(max-width:560px){
  html body:not(.employee-mode) .topbar.v309-app-header #v305TopClock{
    min-width:86px!important;padding:2px 4px!important;
  }
  html body:not(.employee-mode) .topbar.v309-app-header #v305TopTime{font-size:12px!important}
  html body:not(.employee-mode) .topbar.v309-app-header #v305TopDate{font-size:8px!important}
  html body:not(.employee-mode) .topbar.v309-app-header #homeLiveSummary{grid-row:1!important}
  html body:not(.employee-mode) .topbar.v309-app-header .datachip > :is(#owChip,#avChip,#poChip){grid-row:2!important}
}


/* V312: compact, readable Home cards; full-colour original background and one photo. */
html body #welcomeHome .v309-home-photo{object-position:58% 50%!important;filter:none!important;opacity:1!important;transform:none!important;image-rendering:auto!important}
html body #welcomeHome .v309-home-shade{background:linear-gradient(90deg,rgba(2,9,16,.38),rgba(2,9,16,.08) 38%,rgba(2,9,16,0) 64%)!important;backdrop-filter:none!important}
#welcomeHome .v311-home-overlay{display:none!important}
#welcomeHome .v311-home-layout{position:relative;min-height:100%;width:100%;display:flex;align-items:flex-start;padding:clamp(24px,4vw,60px)}
#welcomeHome .v311-home-panel{width:min(460px,100%);min-width:0;display:flex;flex-direction:column;gap:12px;text-align:left}
#welcomeHome .v311-home-profile-slot{display:flex;justify-content:flex-start;margin:0 0 5px;width:100%}
html body #welcomeHome #dashboardUserProfile{justify-content:flex-start!important;gap:12px!important;min-height:74px!important;padding:0!important;width:100%!important}
html body #welcomeHome #dashboardUserProfile .dashboard-profile-meta{align-items:flex-start!important}
html body #welcomeHome #dashboardProfileName{font-size:25px!important;line-height:1.2!important;max-width:330px!important;text-align:left!important}
html body #welcomeHome #dashboardProfileDesignation{font-size:14px!important;line-height:1.3!important;text-align:left!important}
html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{width:74px!important;height:74px!important;min-width:74px!important;flex-basis:74px!important;border-width:2px!important;box-shadow:0 0 0 4px rgba(5,13,21,.3)!important}
html body #welcomeHome #dashboardProfileAvatar{filter:none!important;opacity:1!important;object-fit:cover!important;object-position:center!important;image-rendering:auto!important;transform:none!important}
#welcomeHome .v312-insight-card{width:100%;min-width:0;padding:17px 18px;border:1px solid rgba(233,192,85,.58);border-radius:14px;background:rgba(4,14,23,.94);box-shadow:0 8px 26px rgba(0,0,0,.18);color:#fff7e8}
#welcomeHome .v312-insight-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#edc561;font-size:12px;line-height:1.4;font-weight:750}
#welcomeHome .v312-eyebrow{font-size:9px;letter-spacing:.1em;white-space:nowrap;color:#adbdc9}
#welcomeHome .v312-quote{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.28;font-weight:700;margin:12px 0 0;color:#fff7e8;overflow-wrap:anywhere;min-height:64px}
#welcomeHome .v312-fact{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.48;margin:8px 0 0;color:#f2f5f5;overflow-wrap:anywhere;min-height:50px}
#welcomeHome #v312FactSource{font:600 10px/1.4 'Segoe UI',Arial,sans-serif;color:#adbdc9;text-underline-offset:3px}
#welcomeHome .v312-insight-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(4,14,23,.82);padding:7px 10px;border-radius:9px;color:#e7edf0;font-size:10px;width:100%}
#welcomeHome #v312NextInsight{padding:6px 11px;border:1px solid #80672e;border-radius:7px;color:#f2d280;background:#12212b;font:700 11px 'Segoe UI',Arial,sans-serif;cursor:pointer;min-height:30px}
#welcomeHome #v312NextInsight:hover{background:#243544}
#welcomeHome #v312NextInsight:focus-visible{outline:2px solid #edc561;outline-offset:2px}
html body:not(.employee-mode) .sidebar .navlabel.navlabel-logo-group:not(.permission-hidden){display:flex!important;align-items:center!important;gap:8px!important}
html body:not(.employee-mode) .sidebar .navlabel-logo{display:inline-block;width:auto;height:16px;object-fit:contain;flex:0 0 auto}
@media(max-width:900px){#welcomeHome .v311-home-layout{padding:26px 22px}#welcomeHome .v311-home-panel{width:min(430px,100%)}}
@media(max-width:560px){#welcomeHome .v311-home-layout{padding:18px 14px}#welcomeHome .v311-home-panel{width:100%;gap:10px}#welcomeHome .v312-insight-card{padding:14px}#welcomeHome .v312-quote{font-size:22px;min-height:56px}#welcomeHome .v312-fact{font-size:16px}html body #welcomeHome #dashboardProfileName{font-size:22px!important}html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{width:66px!important;height:66px!important;min-width:66px!important;flex-basis:66px!important}#welcomeHome .v312-eyebrow{font-size:8px}}

/* V314: cleaner Home presentation — automatic insights only, sharper photo/profile. */
#welcomeHome .v309-home-photo{
  filter:none!important;
  image-rendering:auto!important;
  object-position:56% 50%!important;
  transform:translateZ(0)!important;
}
#welcomeHome .v309-home-shade{
  background:
    linear-gradient(90deg,rgba(2,7,12,.62) 0%,rgba(2,7,12,.42) 23%,rgba(2,7,12,.14) 48%,rgba(2,7,12,.02) 75%),
    linear-gradient(0deg,rgba(2,7,12,.23) 0%,rgba(2,7,12,.02) 56%)!important;
}
#welcomeHome .v311-home-overlay{display:none!important}
#welcomeHome .v312-insight-controls{display:none!important}
html body #welcomeHome #dashboardProfileAvatar{
  image-rendering:auto!important;
  filter:none!important;
  backface-visibility:hidden!important;
}
html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{
  width:78px!important;height:78px!important;min-width:78px!important;flex-basis:78px!important;
  border:2px solid #f0c54e!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28)!important;
}
@media(max-width:560px){
  #welcomeHome .v309-home-photo{object-position:62% 50%!important}
  html body #welcomeHome #dashboardUserProfile .v308-avatar-slot{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important}
}
