/* Authenticated workspace. Login keeps its separate, existing visual system. */
#shell {
  --bg: #131715;
  --bg-soft: #181e1a;
  --surface: #1b211d;
  --surface-2: #232b25;
  --ink: #f1f4ed;
  --ink-soft: #aeb9af;
  --line: #343e36;
  --gold: #f5cf48;
  --gold-ink: #26220f;
  --gold-soft: #3a3420;
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --green: #87d3ad;
  --green-bg: #213a2d;
  --red: #ef8d86;
  --red-bg: #402b29;
  --amber: #f1c575;
  --amber-bg: #3c3222;
  --blue: #99c9e3;
  --blue-soft: #243540;
  --orange: #efb17f;
  --orange-soft: #3d3025;
  --grey: #b4beb6;
  --grey-bg: #2b322c;
  --purple: #cfb4ea;
  --purple-bg: #342c3f;
  --desk-rail: 232px;
  --desk-bg: var(--bg);
  --desk-panel: var(--surface);
  --desk-card: var(--surface);
  --desk-card-2: var(--surface-2);
  --desk-line: var(--line);
  --desk-text: var(--ink);
  --desk-muted: var(--ink-soft);
  --desk-soft: #a0ada3;
  --desk-gold: var(--gold);
  --desk-cyan: #87d3ad;
  --desk-coral: var(--red);
  --desk-mint: var(--green);
  --desk-content: 1440px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  color-scheme: dark;
}
#shell [hidden] { display: none !important; }
#shell ::selection { background: #f5cf48; color: #26220f; }
#shell :where(button, input, select, textarea) { font-family: inherit; }
#shell :where(button, [tabindex="0"], input, textarea, select):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#shell :where(h1, h2, h3, .detail-title, .stat-value, .detail-price) { font-family: inherit; text-transform: none; }
#shell :where(button) { touch-action: manipulation; }
#shell :where(button):disabled { cursor: not-allowed; opacity: .5; }
#shell :where(input, textarea, select) { caret-color: var(--gold); }
#shell :where(input, textarea)::placeholder { color: #a5b0a7; }
#shell .panel { color: var(--ink); background: var(--bg); scrollbar-color: #49534c var(--bg); }
#shell .card, #shell .task-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: none; }
#shell .card-title, #shell .task-title { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
#shell .card-meta, #shell .task-meta { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
#shell .task-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
#shell .badge, #shell .task-badge { padding: 5px 9px; border-radius: 6px; font-size: 11px; line-height: 1.4; font-weight: 650; }
#shell .thumb { display: grid; place-items: center; width: 46px; height: 52px; background: var(--surface-2); border-radius: 9px; }
#shell .thumb::after { content: ""; width: 17px; height: 24px; border: 1px solid var(--ink-soft); border-radius: 4px; }
#shell :where(.new-item-btn, .btn-primary, .submit-btn, .approve-btn) {
  min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px;
  color: var(--gold-ink); background: var(--gold); box-shadow: none; font-size: 13px; font-weight: 750;
}
#shell :where(.btn-secondary, .new-item-btn.secondary) { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-2); box-shadow: none; font-size: 13px; }
#shell .section-label { margin: 0 0 16px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; text-transform: none; }
#shell :where(.empty-note, .loading-note) { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
#shell .workspace-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--gold); font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
#shell .workspace-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#shell .workspace-section-head :where(h2, h3) { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
#shell .workspace-section-head > span, #shell .workspace-section-note { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
#shell .workspace-count { display: inline-flex; justify-content: center; min-width: 27px; margin-left: 10px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
#shell #workspaceWorkGrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; flex: 0 0 auto; }
#shell #workspaceCards { min-width: 0; }
#shell #workspaceCardsList { margin-top: 16px; border-top: 1px solid var(--line); }
#shell .workspace-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 12px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
#shell .workspace-item-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 46px; border-radius: 8px; color: var(--ink-soft); background: var(--surface-2); }
#shell .workspace-item-icon svg { width: 22px; height: 22px; }
#shell .workspace-item-copy { min-width: 0; }
#shell .workspace-item-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
#shell .workspace-item-copy > span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 12px; }
#shell .workspace-item .badge { grid-column: 2; justify-self: start; margin-top: 8px; }
#shell .workspace-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
#shell .workspace-empty strong { color: var(--ink); }
#shell .workspace-empty > svg { width: 24px; height: 24px; }
#shell .workspace-mobile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 16px; }
#shell .workspace-mobile-heading h1 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
#shell .workspace-mobile-heading p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; }
#shell #workspaceProfileTools { width: 100%; }
#shell #workspaceProfileTools .new-item-row { margin: 0 !important; padding: 0 0 12px !important; }
#shell #workspaceProfileTools .home-menu-btn { width: 100%; min-height: 44px; padding: 12px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: none; }
#shell #workspaceBossProfileTools { display: grid; gap: 12px; }
#shell .workspace-mobile-trend { display: none; }
#shell:not([data-workspace-role="employee"]) .workspace-mobile-heading { display: none; }
#shell .task-card.site-task-card--waiting { border-color: #b39b43; background: #29291e; box-shadow: 0 8px 24px -20px #f5cf48; }
#shell .staff-notification-trigger, #shell .staff-customer-chat-trigger { width: 44px; height: 44px; border-color: var(--line); border-radius: 12px; color: var(--gold); background: var(--surface-2); box-shadow: none; }
#shell .staff-notification-trigger { flex-basis: 44px; }
#shell .staff-notification-drawer, #shell .staff-inbox-dialog, #shell .staff-customer-chat-dialog { border-color: var(--line); color: var(--ink); background: var(--surface); }
#shell .staff-notification-count { color: var(--gold-ink); background: var(--gold); }
#shell .staff-customer-chat-trigger { right: 16px; }

#shell #panelHistory { container: cards / inline-size; }
#shell .items-filters { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; align-items: end; gap: 12px; margin: 20px 0 0; }
#shell .items-filters label { display: grid; min-width: 0; gap: 8px; color: var(--ink-soft); font-size: 12px; }
#shell .items-filters input, #shell .items-filters select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 14px; }
#shell .items-filters input::placeholder { color: var(--ink-soft); }
#shell .items-filters select { padding-right: 28px; }
#shell #itemsResetFilters { padding: 10px 4px; }
#shell #itemsResetFilters:disabled { color: var(--ink-soft); opacity: .6; cursor: default; }
#shell .items-results-summary { min-height: 20px; margin: 16px 0 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
#shell #itemsList .card-body { min-width: 0; }
#shell #itemsList .card-title { white-space: normal; overflow-wrap: anywhere; }
#shell #itemsList .card-meta { overflow-wrap: anywhere; }

@container cards (max-width: 1000px) {
  #shell #itemsList { grid-template-columns: minmax(0, 1fr); }
}
@container cards (max-width: 740px) {
  #shell .items-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #shell .items-search-field { grid-column: 1 / -1; }
  #shell #itemsResetFilters { grid-column: 2; justify-self: end; }
}
@container cards (max-width: 430px) {
  #shell #itemsList .card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  #shell #itemsList .thumb { width: 38px; height: 46px; }
  #shell #itemsList .card-col { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  #shell #itemsList .card .badge { max-width: 100%; }
}

@media (min-width: 900px) {
  #shell:not([data-workspace-role="employee"]) #workspaceProfileTools { display: none; }
  .desktop-site #shell .desktop-rail { padding: 28px 16px 20px; background: #171c18; border-color: var(--line); }
  .desktop-site #shell .desktop-rail-glow { display: none; }
  .desktop-site #shell .desktop-rail-brand { margin: 0 10px 32px; }
  .desktop-site #shell .desktop-rail-brand .login-logo-wordmark { height: 22px; }
  .desktop-site #shell .desktop-rail-brand .login-logo-badge { height: 25px; animation: none !important; }
  .desktop-site #shell .desktop-rail-label { margin: 0 12px 10px; color: var(--ink-soft); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .desktop-site #shell .bottom-nav { gap: 4px; margin-bottom: 28px; }
  .desktop-site #shell .bnav-tab, .desktop-site #shell .home-menu-btn { min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 600; transform: none; }
  .desktop-site #shell .bnav-tab.active { color: var(--gold); background: #343222; }
  .desktop-site #shell .home-menu-btn.dashboard { color: var(--ink-soft); background: transparent; }
  .desktop-site #shell .topbar { order: 4; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; margin: auto 0 0; padding: 16px 8px 8px; min-height: 76px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .desktop-site #shell .topbar .avatar { width: 36px; height: 36px; border: 0; background-color: #d8dfbd; color: #1c271d; font-size: 14px; }
  .desktop-site #shell .who-name { color: var(--ink); font-size: 12px; font-weight: 650; }
  .desktop-site #shell .who-role { padding: 0; margin-top: 5px; background: transparent; color: var(--ink-soft); font-size: 11px; font-weight: 500; }
  .desktop-site #shell .desktop-rail-footer { order: 5; margin-top: 0; padding: 8px; }
  .desktop-site #shell .desktop-rail-footer strong { display: none; }
  .desktop-site #shell .desktop-rail-footer small { color: var(--ink-soft); font-size: 10px; }
  .desktop-site #shell .desktop-employee-tools .new-item-row:first-child { display: none !important; }
  .desktop-site #shell > .panel { padding: 30px 32px 64px; gap: 26px; }
  .desktop-site #shell .desktop-home-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 0 64px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
  .desktop-site #shell .desktop-home-hero::after { display: none; }
  .desktop-site #shell .desktop-home-copy { width: auto; padding: 0; background: transparent; }
  .desktop-site #shell .desktop-home-copy h1, .desktop-site #shell .desktop-page-head h1 { margin: 0; color: var(--ink); font-family: inherit; font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -.035em; text-transform: none; }
  .desktop-site #shell .desktop-home-copy p, .desktop-site #shell .desktop-page-head p { max-width: none; margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
  .desktop-site #shell .workspace-date { display: inline-block; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
  .desktop-site #shell .workspace-create-item { display: inline-flex; flex: 0 0 auto; width: auto; align-items: center; gap: 9px; margin: 0; }
  .desktop-site #shell .workspace-create-item svg { width: 18px; height: 18px; }
  .desktop-site #shell .workspace-mobile-heading { display: none; }
  .desktop-site #shell .desktop-page-head { padding-top: 0; padding-bottom: 16px; }
  .desktop-site #shell .desktop-live-dashboard { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .desktop-site #shell .desktop-live-dashboard::before { display: none; }
  .desktop-site #shell .desktop-live-head { align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
  .desktop-site #shell .desktop-live-head h2 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.5; letter-spacing: 0; text-transform: none; }
  .desktop-site #shell .desktop-live-freshness { margin-left: auto; color: var(--ink-soft); font-size: 11px; }
  .desktop-site #shell .desktop-live-content { gap: 24px; }
  .desktop-site #shell .desktop-live-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .desktop-site #shell .desktop-live-kpis article { padding: 23px 22px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
  .desktop-site #shell .desktop-live-kpis article:last-child { border-right: 0; }
  .desktop-site #shell .desktop-live-kpis span { color: var(--ink-soft); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
  .desktop-site #shell .desktop-live-kpis strong { margin-top: 12px; color: var(--ink); font-family: inherit; font-size: 29px; line-height: 1.25; font-weight: 650; letter-spacing: -.035em; }
  .desktop-site #shell .desktop-live-kpis small { margin-top: 9px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
  .desktop-site #shell .desktop-live-kpis strong.is-negative { color: var(--red); }
  .desktop-site #shell .desktop-live-analytics { grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 24px; }
  .desktop-site #shell .desktop-live-trend-card, .desktop-site #shell .desktop-live-balance-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .desktop-site #shell .desktop-live-trend-card h3, .desktop-site #shell .desktop-live-balance-card h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); }
  .desktop-site #shell .desktop-live-trend-card p, .desktop-site #shell .desktop-live-balance-card > p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-chart-legend { gap: 12px; }
  .desktop-site #shell .desktop-chart-legend span { font-size: 10px; font-weight: 600; letter-spacing: 0; }
  .desktop-site #shell .desktop-live-chart { min-height: 180px; margin-top: 22px; }
  .desktop-site #shell .desktop-chart-axis { fill: var(--ink-soft); font-size: 14px; }
  .desktop-site #shell .desktop-chart-grid { stroke: var(--line); stroke-dasharray: 0; }
  .desktop-site #shell .desktop-chart-area { fill: #87d3ad0d; }
  .desktop-site #shell .desktop-chart-dot { stroke: var(--surface); }
  .desktop-site #shell .workspace-operation-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 26px 0; }
  .desktop-site #shell .workspace-operation-total strong { color: var(--ink); font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
  .desktop-site #shell .workspace-operation-total span { color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-balance-rows { gap: 0; }
  .desktop-site #shell .desktop-balance-rows > div { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-balance-rows strong { color: var(--ink); font-size: 13px; }
  .desktop-site #shell .workspace-stores { min-width: 0; }
  .desktop-site #shell .workspace-stores .workspace-section-head { margin: 6px 0 16px; }
  .desktop-site #shell .desktop-store-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .desktop-site #shell .desktop-store-card { display: grid; grid-template-columns: 60px minmax(135px, 1fr) minmax(280px, 2fr); align-items: center; column-gap: 24px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .desktop-site #shell .desktop-store-card header { grid-column: 1; grid-row: 1; align-self: center; }
  .desktop-site #shell .desktop-store-card h3 { margin: 0; color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0; }
  .desktop-site #shell .desktop-store-primary { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
  .desktop-site #shell .desktop-store-primary span { color: var(--ink-soft); font-size: 11px; }
  .desktop-site #shell .desktop-store-primary strong { color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 650; line-height: 1.5; }
  .desktop-site #shell .desktop-store-progress { grid-column: 2; grid-row: 2; height: 3px; margin: 8px 0 0; background: var(--surface-2); }
  .desktop-site #shell .desktop-store-progress b { box-shadow: none; }
  .desktop-site #shell .desktop-store-card dl { grid-column: 3; grid-row: 1 / 3; gap: 20px; }
  .desktop-site #shell .desktop-store-card dt { color: var(--ink-soft); font-size: 11px; text-transform: none; font-weight: 500; }
  .desktop-site #shell .desktop-store-card dd { margin-top: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
  .desktop-site #shell .desktop-store-card dd small { display: inline; margin-left: 8px; color: var(--ink-soft); font-size: 10px; }
  .desktop-site #shell .desktop-live-empty, .desktop-site #shell .desktop-live-error { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
  .desktop-site #shell .desktop-live-error strong, .desktop-site #shell .desktop-live-error span { color: var(--ink); font-size: 13px; }
  .desktop-site #shell .desktop-live-error button { min-height: 44px; font-size: 13px; }
  .desktop-site #shell .desktop-live-skeleton i { background: var(--surface-2); animation: none; }
  .desktop-site #shell #workspaceWorkGrid { grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); gap: 32px; width: min(100%, var(--desk-content)); margin: 8px auto 0; }
  .desktop-site #shell #homeEmployeeContent { width: 100%; margin: 0; }
  .desktop-site #shell #tasksList { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
  .desktop-site #shell #workspaceCards { padding-left: 28px; border-left: 1px solid var(--line); }
  .desktop-site #shell #homeBossTasksSection { padding-top: 6px; }
  .desktop-site #shell .staff-notification-trigger { position: fixed; top: 34px; right: 32px; }
  .desktop-site #shell .staff-customer-chat-trigger { right: 32px; bottom: 24px; }
  .desktop-site #shell .card { min-height: 88px; }
}

@media (min-width: 900px) and (max-width: 1180px) {
  #shell { --desk-rail: 208px; }
  .desktop-site #shell > .panel { padding-right: 24px; padding-left: 24px; }
  .desktop-site #shell .desktop-live-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-site #shell .desktop-live-kpis article:nth-child(2) { border-right: 0; }
  .desktop-site #shell .desktop-live-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .desktop-site #shell .desktop-live-analytics, .desktop-site #shell #workspaceWorkGrid { grid-template-columns: 1fr; }
  .desktop-site #shell #workspaceCards { padding-left: 0; border-left: 0; }
  .desktop-site #shell .desktop-store-card { column-gap: 16px; grid-template-columns: 44px minmax(120px, 1fr) minmax(240px, 2fr); }
  .desktop-site #shell .workspace-date { display: block; padding-left: 0; margin: 2px 0 0; border: 0; }
}
@media (max-width: 899px) {
  #shell .panel { padding: 8px 16px 32px; gap: 18px; }
  #shell .topbar { padding: calc(14px + env(safe-area-inset-top)) 16px 14px; gap: 10px; border-bottom: 1px solid var(--line); }
  #shell .who-name { font-size: 14px; }
  #shell .avatar { width: 38px; height: 38px; font-size: 13px; }
  #shell .workspace-mobile-heading .new-item-btn { max-width: 124px; padding: 10px 12px; font-size: 12px; }
  #shell .bottom-nav { min-height: 66px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
  #shell .bnav-tab { min-height: 48px; border-radius: 10px; color: var(--ink-soft); }
  #shell .bnav-tab.active { color: var(--gold); background: var(--gold-soft); }
  #shell .task-card, #shell .card { padding: 15px; }
  #shell .card-title { white-space: normal; }
  #shell .card .badge { max-width: 112px; white-space: normal; text-align: center; }
  #shell .task-card-top { gap: 10px; flex-wrap: wrap; }
  #shell .task-title { font-size: 14px; }
  #shell .task-card .task-badge { max-width: 100%; white-space: normal; }
  .desktop-site #shell .desktop-home-hero, .desktop-site #shell .desktop-page-head { display: none; }
  .desktop-site #shell .desktop-rail { display: contents; }
  .desktop-site #shell .desktop-rail-brand, .desktop-site #shell .desktop-rail-label, .desktop-site #shell .desktop-rail-footer, .desktop-site #shell .desktop-rail-glow { display: none; }
  .desktop-site #shell .bottom-nav { order: 20; }
  .desktop-site #shell .desktop-rail-tools { display: none; }
  .desktop-site #shell .desktop-employee-tools { display: none !important; }
  .desktop-site #shell .desktop-live-dashboard { min-width: 0; flex: 0 0 auto; padding: 8px 0; }
  .desktop-site #shell .desktop-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
  .desktop-site #shell .desktop-live-head h2 { width: 100%; margin: 0; font-size: 22px; }
  .desktop-site #shell .desktop-live-freshness { color: var(--ink-soft); font-size: 11px; }
  .desktop-site #shell .desktop-live-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .desktop-site #shell .desktop-live-kpis article { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .desktop-site #shell .desktop-live-kpis :where(span, small) { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
  .desktop-site #shell .desktop-live-kpis strong { display: block; margin: 10px 0; font-size: 21px; }
  .desktop-site #shell .desktop-live-analytics { display: grid; gap: 16px; margin-top: 20px; }
  .desktop-site #shell .desktop-live-trend-card, .desktop-site #shell .desktop-live-balance-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .desktop-site #shell .desktop-live-analytics h3 { margin: 0; font-size: 16px; }
  .desktop-site #shell .desktop-live-analytics p { color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-chart-legend { display: flex; gap: 16px; color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-live-chart, .desktop-site #shell .desktop-chart-legend { display: none; }
  .desktop-site #shell .desktop-live-trend-card > .desktop-live-empty { display: none; }
  #shell .workspace-mobile-trend { display: table; width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 11px; line-height: 1.5; }
  #shell .workspace-mobile-trend caption { padding-bottom: 10px; color: var(--ink-soft); text-align: left; }
  #shell .workspace-mobile-trend th, #shell .workspace-mobile-trend td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: right; font-weight: 500; }
  #shell .workspace-mobile-trend th:first-child { padding-left: 0; text-align: left; }
  #shell .workspace-mobile-trend thead { color: var(--ink-soft); }
  .desktop-site #shell .desktop-chart-axis { fill: var(--ink-soft); font-size: 22px; }
  .desktop-site #shell .desktop-chart-grid { stroke: var(--line); }
  .desktop-site #shell .desktop-chart-line { fill: none; stroke-width: 4; }
  .desktop-site #shell .desktop-chart-sales { stroke: var(--green); }
  .desktop-site #shell .desktop-chart-result { stroke: var(--gold); }
  .desktop-site #shell .desktop-chart-area { fill: #87d3ad12; }
  .desktop-site #shell .desktop-chart-dot-sales { fill: var(--green); }
  .desktop-site #shell .desktop-chart-dot-result { fill: var(--gold); }
  .desktop-site #shell .workspace-operation-total { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
  .desktop-site #shell .workspace-operation-total strong { font-size: 30px; }
  .desktop-site #shell .workspace-operation-total span { color: var(--ink-soft); font-size: 12px; }
  .desktop-site #shell .desktop-balance-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
  .desktop-site #shell .desktop-balance-rows i { display: none; }
  .desktop-site #shell .workspace-stores { margin-top: 24px; }
  .desktop-site #shell .desktop-store-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .desktop-site #shell .desktop-store-card h3 { margin: 0; font-size: 16px; }
  .desktop-site #shell .desktop-store-primary { display: flex; justify-content: space-between; margin: 14px 0; font-size: 13px; }
  .desktop-site #shell .desktop-store-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .desktop-site #shell .desktop-store-card dt { color: var(--ink-soft); font-size: 11px; }
  .desktop-site #shell .desktop-store-card dd { margin: 8px 0 0; font-size: 12px; }
  .desktop-site #shell .desktop-store-card dd small { display: block; margin-top: 4px; color: var(--ink-soft); }
}
@media (hover: hover) and (pointer: fine) {
  #shell .workspace-item:hover { background: var(--surface); }
  #shell .workspace-text-button:hover { color: #ffe38a; }
  #shell :where(.new-item-btn, .btn-primary, .approve-btn):not(:disabled):hover { background: #ffe18a; color: var(--gold-ink); transform: none; box-shadow: none; }
  .desktop-site #shell .bnav-tab:hover, .desktop-site #shell .home-menu-btn:hover { color: var(--ink); background: var(--surface-2); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #shell .desktop-live-skeleton i, #shell .desktop-live-freshness i { animation: none; }
  #shell :where(.card, .task-card, .bnav-tab, .home-menu-btn, .new-item-btn, .btn-primary) { transition-property: color, background-color, border-color; transform: none; }
}

/* One selected destination, including tools moved between rail and profile. */
#shell button[data-nav-tool][aria-current="page"],
.desktop-site #shell button[data-nav-tool][aria-current="page"] {
  color: var(--gold); background: #343222; box-shadow: none;
}
#shell button[data-nav-tool][aria-current="page"] .home-menu-ic { color: var(--gold); }
