@media screen {
  :root { --sales-gradient: linear-gradient(145deg, #112c38, color-mix(in srgb, var(--brand-primary) 70%, #112c38)); }
  :is(#page-dashboard,#page-exchange) {
    --dash-gap: clamp(12px, 1.7vw, 24px);
    --dash-accent: var(--brand-primary);
    --dash-surface: var(--paper, var(--card));
    --dash-line: var(--hairline, var(--border));
    container-type: inline-size;
  }

  #page-dashboard .wf-dash-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "welcome sales" "metrics metrics";
    gap: var(--dash-gap);
    margin-block-end: var(--dash-gap);
  }

  html body #page-dashboard #greetingCard {
    grid-area: welcome;
    display: grid;
    align-items: center;
    min-width: 0;
    margin: 0 !important;
    padding: clamp(14px, 2.5vw, 30px) !important;
    background: linear-gradient(115deg, var(--dash-surface) 45%, var(--wash)) !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
  }

  #page-dashboard #greetingCard .greeting-top { margin: 0; }
  #page-dashboard .greeting-left { min-width: 0; }
  html body #page-dashboard #greetingCard :is(.greeting-msg, .greeting-time-badge) {
    color: var(--ink) !important;
  }
  html body #page-dashboard #greetingCard .greeting-msg {
    font-size: clamp(19px, 2.3vw, 32px) !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  html body #page-dashboard #greetingCard .greeting-sub { color: var(--text2) !important; }
  html body #page-dashboard #greetingCard .greeting-time-badge {
    background: var(--dash-surface) !important;
    border-color: var(--dash-line) !important;
  }

  #page-dashboard .wf-dash-sales {
    grid-area: sales;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    min-height: 106px;
    padding: clamp(14px, 2.5vw, 28px);
    color: var(--ink);
    border: 1px solid var(--dash-line);
    border-radius: 20px;
    background: var(--dash-surface);
  }
  #page-dashboard .wf-dash-sales::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block-start: -88px;
    inset-inline-start: -56px;
    width: 176px;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb,var(--brand-primary) 22%,transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 23px color-mix(in srgb,var(--brand-primary) 8%,transparent), 0 0 0 46px color-mix(in srgb,var(--brand-primary) 5%,transparent);
    pointer-events: none;
  }
  #page-dashboard .wf-dash-sales > div:last-child { min-width: 0; }
  html body #page-dashboard .wf-dash-sales .stat-val {
    color: var(--ink) !important;
    font-size: clamp(21px, 3vw, 38px) !important;
    direction: ltr;
    unicode-bidi: isolate;
  }
  html body #page-dashboard .wf-dash-sales .stat-lbl { color: var(--text2) !important; }

  html body #page-dashboard .stats-grid {
    grid-area: metrics;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dash-gap);
    margin: 0 !important;
  }

  html body #page-dashboard .stat-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(8px, 1.4vw, 16px);
    min-width: 0;
    min-height: 74px;
    margin: 0 !important;
    padding: clamp(8px, 1.4vw, 16px) !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 16px !important;
    background: var(--dash-surface) !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body #page-dashboard .stat-card::after { display: none; }
  html body #page-dashboard .stat-card:hover { border-color: var(--ui-accent) !important; }
  #page-dashboard .stat-card > div:last-child { min-width: 0; }
  html body #page-dashboard .stat-val {
    font-size: clamp(19px, 2.4vw, 30px) !important;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }
  html body #page-dashboard .stat-lbl {
    color: var(--text2) !important;
    font-size: 12px;
    margin-block-start: 4px;
    overflow-wrap: anywhere;
  }
  #page-dashboard .stat-card .wf-stat-trend {
    position: static;
    font-size: 10px;
    margin-block-start: 3px;
    max-width: 100%;
    white-space: normal;
  }
  html body :is(#page-dashboard,#page-exchange) :is(.stat-icon, .curr-flag) {
    display: grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    min-width: 0 !important;
    flex: 0 0 38px;
    margin: 0 !important;
    color: var(--tile-ink, var(--ink)) !important;
    background: var(--tile-fill, var(--wash)) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  html body :is(#page-dashboard,#page-exchange) :is(.stat-icon, .curr-flag) .wf-ui-icon {
    color: inherit !important;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    opacity: 1 !important;
  }
  #page-dashboard .wf-dash-sales .stat-icon {
    --tile-ink: var(--ui-accent);
    --tile-fill: var(--wash);
  }

  html body :is(#page-dashboard,#page-exchange) .curr-bar {
    min-width: 0;
    margin: 0 0 var(--dash-gap) !important;
    padding: clamp(12px, 2vw, 24px) !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 20px !important;
    background: var(--dash-surface) !important;
    box-shadow: var(--lift) !important;
  }
  :is(#page-dashboard,#page-exchange) .curr-bar-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 12px;
    margin-block-end: 14px;
  }
  :is(#page-dashboard,#page-exchange) .curr-bar-top h2 {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-update {
    grid-row: 2;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--text2) !important;
    font-size: 11px;
    overflow-wrap: anywhere;
    text-align: start;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-refresh {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    width: auto !important;
    height: auto !important;
    padding: 8px 12px !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 11px !important;
    background: var(--wash) !important;
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 12px;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-refresh .wf-ui-icon {
    color: inherit !important;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    animation: none;
  }
  :is(#page-dashboard,#page-exchange) .curr-refresh:disabled { opacity: .7; cursor: wait; }
  :is(#page-dashboard,#page-exchange) .wf-rate-status {
    margin-block-end: 10px;
    color: var(--text2);
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  :is(#page-dashboard,#page-exchange) .wf-rate-status:empty { display: none; }
  :is(#page-dashboard,#page-exchange) .wf-rate-status:is([data-state="failed"], [data-state="unsaved"]) { color: var(--red); }

  html body :is(#page-dashboard,#page-exchange) .curr-bar-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: clamp(7px, 1vw, 12px) !important;
    overflow: visible !important;
    max-height: none !important;
    padding: 0 !important;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item {
    --tile-ink: #255a6e;
    --tile-fill: #dceef4;
    --tile-tint: color-mix(in srgb, var(--tile-fill) 60%, var(--dash-surface));
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto 1fr !important;
    justify-content: stretch;
    align-items: center;
    gap: 8px !important;
    min-width: 0;
    min-height: 100px;
    padding: clamp(8px, 1vw, 14px) !important;
    border: 1px solid var(--dash-line) !important;
    border-radius: 14px !important;
    background: linear-gradient(155deg, var(--tile-tint), var(--dash-surface)) !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
    cursor: pointer;
  }
  :is(#page-dashboard,#page-exchange) .curr-item[onclick*="'eur-"] { --tile-ink: #4f507f; --tile-fill: #e6e6f6; }
  :is(#page-dashboard,#page-exchange) .curr-item[onclick*="'try-"] { --tile-ink: #794c21; --tile-fill: #f6e9d8; }
  [data-theme="dark"] :is(#page-dashboard,#page-exchange) .curr-item { --tile-ink: #bde6f2; --tile-fill: #264754; }
  [data-theme="dark"] :is(#page-dashboard,#page-exchange) .curr-item[onclick*="'eur-"] { --tile-ink: #d3d0fc; --tile-fill: #3b3c5b; }
  [data-theme="dark"] :is(#page-dashboard,#page-exchange) .curr-item[onclick*="'try-"] { --tile-ink: #f5d7b3; --tile-fill: #4b382d; }
  html body :is(#page-dashboard,#page-exchange) .curr-item:is(:hover, :focus-visible) {
    border-color: var(--ui-accent) !important;
    background: var(--tile-tint) !important;
  }
  :is(#page-dashboard,#page-exchange) .curr-item:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  :is(#page-dashboard,#page-exchange) .curr-item .curr-flag { grid-column: 1; grid-row: 1; }
  :is(#page-dashboard,#page-exchange) .curr-item .curr-info { grid-column: 1 / -1; grid-row: 2; min-width: 0; text-align: start; }
  html body :is(#page-dashboard,#page-exchange) .curr-item .curr-label {
    color: var(--text2) !important;
    font-size: 11px !important;
    font-weight: 750;
    letter-spacing: .035em;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item .curr-rate {
    color: var(--ink) !important;
    font-size: clamp(17px, 1.8vw, 27px) !important;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em !important;
    font-variant-numeric: tabular-nums;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item .wf-market-trend {
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    justify-self: end;
    margin: 0 !important;
    padding: 2px 4px !important;
    font-size: 10px !important;
    white-space: nowrap;
    animation: none !important;
  }
  :is(#page-dashboard,#page-exchange) .curr-item .wf-market-arrow { animation: none !important; }

  #page-dashboard .wf-dash-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--dash-gap);
  }
  #page-dashboard :is(.wf-dash-primary, .wf-dash-secondary) { min-width: 0; }
  html body #page-dashboard :is(.wf-dash-recent, .wf-dashboard-intelligence) { margin: 0 !important; }
  html body #page-dashboard .wf-dashboard-intelligence { grid-template-columns: minmax(0, 1fr); gap: var(--dash-gap); }
  #page-dashboard > #tipCardStandalone { margin-block-start: var(--dash-gap) !important; }

  @container (max-width: 860px) {
    html body :is(#page-dashboard,#page-exchange) .curr-bar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  }
  @container (max-width: 690px) {
    #page-dashboard .wf-dash-workspace { grid-template-columns: minmax(0, 1fr); }
  }
  @container (max-width: 510px) {
    #page-dashboard .wf-dash-overview {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "welcome" "sales" "metrics";
    }
    #page-dashboard .wf-dash-sales { min-height: 76px; }
    html body #page-dashboard .stat-card { flex-direction: column; align-items: flex-start; gap: 6px; }
    html body #page-dashboard .stat-card .stat-icon { width: 30px !important; height: 30px !important; flex-basis: 30px; }
    html body #page-dashboard .stat-card .stat-icon .wf-ui-icon { width: 18px; height: 18px; }
    html body :is(#page-dashboard,#page-exchange) .curr-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body :is(#page-dashboard,#page-exchange) .curr-refresh { max-width: 145px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    html body :is(#page-dashboard,#page-exchange) .curr-refresh.wf-refreshing .wf-ui-icon { animation: wfRefreshSpin 1s linear infinite; }
    html:not([data-wf-motion="reduced"]) body :is(#page-dashboard,#page-exchange) .curr-item {
      animation: wfQuoteEnter 280ms ease-out var(--quote-enter-delay, 0ms) backwards !important;
    }
    :is(#page-dashboard,#page-exchange) .curr-item:nth-child(3n + 2) { --quote-enter-delay: 45ms; }
    :is(#page-dashboard,#page-exchange) .curr-item:nth-child(3n) { --quote-enter-delay: 90ms; }

  }
  @keyframes wfRefreshSpin { to { transform: rotate(360deg); } }
  @keyframes wfQuoteEnter { from { opacity: .55; translate: 0 6px; } }

}

@media screen {
  #page-dashboard { --dash-gap: clamp(9px, 1.35vw, 17px); }
  html body #page-dashboard #greetingCard { padding: clamp(10px, 1.6vw, 20px) !important; }
  #page-dashboard .wf-dash-sales { min-height: 78px; padding: clamp(12px, 1.7vw, 22px); }
  html body #page-dashboard .stat-card { min-height: 60px; }
  html body :is(#page-dashboard,#page-exchange) .curr-bar { padding: clamp(9px,1.5vw,17px) !important; }
  :is(#page-dashboard,#page-exchange) .curr-bar-top { margin-block-end: 6px; padding-block-end: 6px; }
  :is(#page-dashboard,#page-exchange) .wf-rate-status { margin-block-end: 5px; }
  html body :is(#page-dashboard,#page-exchange) .curr-item {
    grid-template-rows: auto auto !important;
    min-height: 0;
    gap: 4px !important;
    padding: clamp(7px, .85vw, 11px) !important;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item .curr-flag {
    width: 30px !important; height: 30px !important;
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item .curr-flag .wf-ui-icon { width: 18px; height: 18px; }
  .curr-item[data-quote-trend="up"] { --quote-color: #187858; }
  .curr-item[data-quote-trend="down"] { --quote-color: #ab4351; }
  [data-theme="dark"] .curr-item[data-quote-trend="up"] { --quote-color: #8ad4ad; }
  [data-theme="dark"] .curr-item[data-quote-trend="down"] { --quote-color: #fa9cab; }
  :is(#page-dashboard,#page-exchange) .curr-item .wf-quote-trend {
    color: var(--quote-color, var(--tile-ink)) !important;
  }
  :is(#page-dashboard,#page-exchange) .curr-item .wf-quote-trend[hidden] { display: none !important; }
  @container (max-width: 510px) {
    #page-dashboard .wf-dash-sales { min-height: 65px; }
    html body #page-dashboard .stat-card { min-height: 58px; padding: 7px !important; }
  }
}

@media screen {
  html:root body #bottomNav #bnavCircle {
    background: var(--sales-gradient) !important;
    border-color: transparent !important;
    color: white !important;
  }
  #page-quick-barcode .qbl-workbench {
    max-width: 46rem; margin: clamp(12px, 3vw, 32px) auto;
    color: var(--text);
  }
  .qbl-modes { display: flex; gap: 4px; padding: 4px; background: var(--input); border-radius: 14px; margin-bottom: 10px; }
  .qbl-modes button { flex: 1; min-height: 44px; font: inherit; font-weight: 700; color: var(--text2); background: transparent; border: 0; border-radius: 11px; cursor: pointer; }
  .qbl-modes button[aria-pressed="true"] { background: var(--sales-gradient); color: white; }
  .qbl-panel { overflow: hidden; border-radius: 16px; background: var(--card); }
  .qbl-view { position: relative; height: clamp(230px, 39dvh, 390px); }
  #qblCameraWrap { background: var(--sales-gradient) !important; }
  #qblInput { min-width: 0; }
}
@media screen {
  .wf-greeting-flip { grid-area: welcome; min-width: 0; perspective: 1100px; cursor: pointer; border-radius: 20px; }
  .wf-greeting-flip:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
  .wf-greeting-faces { display: grid; height: 100%; transform-style: preserve-3d; }
  html body #page-dashboard .wf-greeting-faces > :is(#greetingCard,#tipCardStandalone) {
    grid-area: 1 / 1; margin: 0 !important; min-width: 0; backface-visibility: hidden;
    border: 1px solid var(--dash-line) !important; border-radius: 20px !important;
  }
  html body #page-dashboard .wf-greeting-faces > #tipCardStandalone {
    display: grid; align-content: center; background: var(--dash-surface) !important;
    padding: clamp(12px, 2vw, 22px);
  }
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-wf-motion="reduced"]) .wf-greeting-faces { transition: transform .62s cubic-bezier(.35,.08,.2,1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .wf-greeting-faces { transition: none !important; }
}

@media screen {
  #page-quick-barcode .qbl-workbench { max-width: 40rem; }
  .qbl-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border);
    background: var(--card);
  }
  .qbl-modes button { padding: 6px 10px; }
  .qbl-modes button:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
  .qbl-panel { border: 1px solid var(--border); }
  html body #page-quick-barcode #qblCameraWrap { background: var(--sales-gradient) !important; }
  .qbl-view { height: clamp(185px, 36dvh, 320px); }

  html body #page-dashboard .wf-greeting-faces > #tipCardStandalone {
    background: linear-gradient(115deg, var(--dash-surface) 45%, var(--wash)) !important;
  }
  .wf-greeting-faces .tip-card-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 6px 12px;
  }
  .wf-greeting-faces .tip-card-badge { grid-column: 2; justify-self: start; }
  .wf-greeting-faces .tip-card-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }

  html body :is(#page-dashboard,#page-exchange) .curr-item {
    --tile-tint: color-mix(in srgb, var(--tile-fill) 38%, var(--dash-surface));
  }
  html body :is(#page-dashboard,#page-exchange) .curr-item .wf-quote-trend {
    align-self: start;
    min-width: 0;
    max-width: 100%;
  }
}

@media screen {
  .qbl-search-trigger { flex: none; min-height: 44px; padding-inline: 16px !important; }
  #qblKeyboard {
    width: min(34rem, calc(100% - 20px));
    max-height: calc(100dvh - 20px);
    box-sizing: border-box;
    padding: 14px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgb(12 30 40 / 35%);
  }
  #qblKeyboard::backdrop { background: rgb(13 29 38 / 62%); }
  #qblKeyboard form { display: grid; gap: 10px; }
  #qblKeyboard header { display: flex; justify-content: space-between; align-items: center; }
  #qblKeyboard h2 { font-size: 18px; margin: 0; }
  .qbl-keyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 4px;
    direction: ltr;
  }
  .qbl-keyboard-grid button, .qbl-key-close {
    min-height: 40px;
    color: var(--text);
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
  }
  .qbl-key-close { min-width: 40px; }
  .qbl-key-submit { min-height: 44px; background: var(--sales-gradient) !important; }
  @media (max-width: 600px) {
    #qblKeyboard { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; padding-block-end: max(14px, env(safe-area-inset-bottom)); }
  }
}

@media screen {
  .wf-greeting-faces > [aria-hidden="true"] { visibility: hidden; pointer-events: none; }
  .wf-greeting-extra {
    grid-area: 1 / 1;
    min-width: 0;
    padding: clamp(12px, 2vw, 20px);
    border: 1px solid var(--dash-line);
    border-radius: 20px;
    background: linear-gradient(145deg, var(--dash-surface), var(--wash));
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .wf-weather { display: grid; align-content: center; gap: 8px; }
  .wf-weather-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  #wfWeatherTemp { font-size: clamp(19px, 3vw, 32px); white-space: nowrap; }
  #wfWeatherStatus, .wf-weather small { color: var(--text2); font-size: 11px; }
  .wf-weather-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 34px), 1fr)); gap: 4px; }
  .wf-weather-days > div { display: grid; gap: 3px; padding: 5px 2px; text-align: center; background: var(--dash-surface); border-radius: 8px; font-size: 10px; }
  .wf-weather-days .rainy { background: color-mix(in srgb, var(--brand-primary) 15%, var(--dash-surface)); }
  .wf-greeting-logo { display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
  #wfGreetingLogoImage { font-size: 32px; font-weight: 800; }
  #wfGreetingLogoImage img { display: block; width: min(150px, 42vw) !important; height: 68px !important; object-fit: contain; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-wf-motion="reduced"]) .curr-item:is([data-quote-trend="up"],[data-quote-trend="down"]) .wf-quote-arrow {
    display: inline-block;
    animation: wfQuoteArrow 1.2s ease-in-out infinite alternate;
  }
  .curr-item[data-quote-trend="up"] { --quote-arrow-travel: -3px; }
  .curr-item[data-quote-trend="down"] { --quote-arrow-travel: 3px; }
  @keyframes wfQuoteArrow { to { transform: translateY(var(--quote-arrow-travel)); } }
}

/* Compact quotes on the dashboard, with the full cards on the exchange page. */
@media screen {
  html body #page-dashboard .curr-bar {
    padding: 8px !important;
    border-radius: 15px !important;
  }
  #page-dashboard .curr-bar-top {
    gap: 0 8px;
    margin-block-end: 5px;
    padding: 0 3px;
  }
  #page-dashboard .curr-bar-top h2 { font-size: clamp(15px, 1.5vw, 18px); }
  html body #page-dashboard .curr-refresh {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }
  #page-dashboard .curr-refresh .wf-refresh-label { display: none; }

  html body #page-dashboard .curr-bar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  html body #page-dashboard .curr-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-content: center;
    min-height: 50px;
    margin: 0 !important;
    padding: 4px 7px !important;
    gap: 0 6px !important;
    background: var(--dash-surface) !important;
    border-radius: 8px !important;
  }
  html body #page-dashboard .curr-item:is(:hover, :focus-visible) { background: var(--wash) !important; }
  html body #page-dashboard .curr-item .curr-flag { display: none !important; }
  #page-dashboard .curr-item .curr-info { display: contents; }
  html body #page-dashboard .curr-item .curr-label {
    grid-area: 1 / 1;
    direction: ltr;
    font-size: 10px !important;
    letter-spacing: normal;
  }
  html body #page-dashboard .curr-item .curr-rate {
    grid-area: 2 / 1 / 3 / -1;
    direction: ltr;
    text-align: start;
    font-size: clamp(13px, 1.35vw, 18px) !important;
  }
  html body #page-dashboard .curr-item .wf-quote-trend {
    grid-area: 1 / 2;
    align-self: center;
    min-width: 0 !important;
    width: max-content !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2;
    padding: 2px 3px !important;
    background: color-mix(in srgb, var(--quote-color, var(--text2)) 12%, var(--dash-surface)) !important;
  }
  @container (max-width: 740px) {
    html body #page-dashboard .curr-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body #page-dashboard .curr-item {
      column-gap: 3px !important;
    }
    html body #page-dashboard .curr-item .curr-rate { grid-area: 2 / 1 / 3 / -1; }
    html body #page-dashboard .curr-item .wf-quote-trend { grid-area: 1 / 2; font-size: 9px !important; }
    #page-dashboard .wf-quote-arrow { font-size: 12px; }
  }
}

@media screen {
  html body #page-dashboard .curr-bar-top { grid-template-rows: auto; }
  html body #page-dashboard .curr-update { display: none !important; }
  html body #page-dashboard .curr-refresh { grid-row: 1; }
}

@media screen {
  html body #page-dashboard .curr-item {
    background: color-mix(in srgb, var(--brand-primary) 4%, var(--dash-surface)) !important;
    border-color: var(--dash-line) !important;
    border-radius: 10px !important;
    gap: 1px 6px !important;
  }
  html body #page-dashboard .curr-item .curr-label {
    color: var(--text2) !important;
    font-weight: 750;
    white-space: nowrap !important;
  }
  html body #page-dashboard .curr-item .curr-rate {
    color: var(--ink) !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
  }
  html body #page-dashboard .curr-item .wf-quote-trend {
    border-radius: 7px !important;
    padding: 2px 5px !important;
    justify-self: end;
  }
}

.cashboxes { margin: 12px auto; padding: 14px; width: min(100%, 48rem); box-sizing: border-box; }
.cashboxes summary { cursor: pointer; font-weight: 700; }
.cashboxes form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 12px; margin-block: 16px; align-items: end; }
.cashboxes label { display: grid; gap: 4px; }
.cashboxes [hidden] { display: none; }
.cashboxes output { align-self: center; font-weight: 700; color: var(--brand-primary); }
.cashboxes ol { max-height: 18rem; overflow: auto; padding-inline-start: 1.5rem; }
.cashboxes li { padding-block: .4rem; overflow-wrap: anywhere; }

@media screen {
  html body #page-dashboard .wf-dash-sales:has(.sales-currencies) {
    display:grid; grid-template-columns:minmax(0,1fr); align-content:center;
    gap:6px 10px; height:auto; overflow:hidden;
  }
  .wf-dash-sales .sales-currencies {
    grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px; margin:3px 0 0; position:relative;
  }
  .sales-currencies > div { min-width:0; padding:4px 8px; background:var(--wash); color:var(--ink); border-radius:8px; }
  .sales-currencies dt { font-weight:600; line-height:1.35; font-size:10px; letter-spacing:.04em; }
  .sales-currencies dd { margin:0; font-size:14px; font-weight:700; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
  .sales-currencies small { display:block; font-size:10px; }
  #page-dashboard .wf-dash-sales {container: sales-card / inline-size;}
  @container sales-card (min-width: 24rem) {
    .wf-dash-sales .sales-currencies {grid-template-columns:repeat(4,minmax(0,1fr));}
  }
  #page-dashboard .wf-dash-sales .sales-currencies > div {display:grid;align-content:center;text-align:center;}
  #page-dashboard .wf-dash-sales #s-total {text-align:start;direction:ltr;width:fit-content;}
  #page-dashboard .wf-dash-sales .sales-heading {display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;}
  #page-dashboard .wf-dash-sales .sales-heading > div:last-child {min-width:0;display:grid;justify-items:center;}
  #page-dashboard .wf-dash-sales .sales-heading .stat-lbl {grid-row:1;margin:0;}


}

@media screen {
  #currBar .wf-quote-arrow svg { display:block; width:1.2em; height:1em; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  #currBar .wf-quote-trend { display:inline-flex; align-items:center; gap:3px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  html body #page-dashboard .curr-item .curr-label {grid-area:1 / 1 / 2 / -1;}
  html body #page-dashboard .curr-item .curr-rate {grid-area:2 / 1;}
  html body #page-dashboard .curr-item .wf-quote-trend {grid-area:2 / 2; align-self:center; padding:2px 3px!important;}
}

@media screen {
  html body #page-dashboard #currBar .curr-bar-top {
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 7px; margin:0 0 5px; padding:0;
  }
  html body #page-dashboard #currBar .curr-bar-top h2 {margin-inline-end:auto}
  html body #currBar .cashbox-shortcut {margin:0; padding:4px 8px; min-height:40px; font-size:12px;}
  #page-exchange #currBar .cashbox-shortcut {display:none}
  html body :is(#page-dashboard,#page-exchange) #currBar .curr-item {
    direction:ltr; justify-content:center; grid-template-columns:minmax(0,max-content) auto!important; grid-template-rows:auto auto!important;
    align-content:center; align-items:center; min-height:52px; gap:3px 4px!important; padding:5px 7px!important;
    border-radius:11px!important; background:var(--dash-surface)!important;
  }
  html body #currBar .curr-item .curr-flag {display:none!important}
  html body #currBar .curr-item .curr-info {display:contents}
  html body :is(#page-dashboard,#page-exchange) #currBar .curr-item .curr-label {
    grid-area:1 / 1; font-size:10px!important; line-height:1.2; text-align:left;
  }
  html body :is(#page-dashboard,#page-exchange) #currBar .curr-item .curr-rate {
    grid-area:2 / 1 / 3 / -1; justify-self:center; text-align:center; font-size:clamp(15px,1.4vw,19px)!important;
    line-height:1.12; font-variant-numeric:tabular-nums; letter-spacing:0;
  }
  html body :is(#page-dashboard,#page-exchange) #currBar .curr-item .wf-quote-trend {
    grid-area:1 / 2; justify-self:end; align-self:center; font-size:10px!important; line-height:1.2;
    padding:2px 3px!important; min-width:0!important; width:auto!important; height:auto!important;
  }
  #currBar .wf-rate-status[data-state="ok"] {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}


@media screen {
  html body #page-dashboard .stats-grid .stat-card {
    display:grid; justify-content:center; grid-template-columns:auto minmax(0,max-content); grid-template-rows:auto auto;
    align-content:center; align-items:center; column-gap:8px; row-gap:2px;
  }
  #page-dashboard .stats-grid .stat-card .stat-icon {grid-area:1 / 1 / 3 / 2;}
  #page-dashboard .stats-grid .stat-card .stat-icon + div {display:contents;}
  #page-dashboard .stats-grid .stat-card .stat-val {grid-area:1 / 2;justify-self:center;}
  #page-dashboard .stats-grid .stat-card .stat-lbl {grid-area:2 / 2;justify-self:center;margin:0;}
  #page-dashboard .stats-grid .stat-card .wf-stat-trend {grid-area:3 / 1 / 4 / -1;justify-self:end;}
  #page-dashboard .stats-grid .stat-card:not(.stat-trend-up):not(.stat-trend-down) .wf-stat-trend {display:none;}
  @container (max-width:510px) {
    html body #page-dashboard .stats-grid .stat-card {padding:6px!important;gap:4px;grid-template-columns:auto minmax(0,max-content);}
    #page-dashboard .stats-grid .stat-card .stat-icon {grid-area:1 / 1;justify-self:start;}
    #page-dashboard .stats-grid .stat-card .stat-lbl {grid-area:2 / 1 / 3 / -1;justify-self:center;}
  }
}

@media screen {
  html body #page-dashboard .dashboard-off { display:none!important }
  html:is(.wf-section-mode,.wf-booting) .dash-visibility {display:none;}
  .dash-visibility {
    position:fixed; bottom:calc(18px + env(safe-area-inset-bottom,0px)); z-index:710;
    width:fit-content; margin:0;
  }
  .dash-visibility[data-side="left"] {left:10px;}
  .dash-visibility[data-side="right"] {right:10px;}
  .dash-visibility summary {
    display:flex; align-items:center; gap:7px; padding:7px 12px; min-height:44px;
    border:1px solid var(--border); border-radius:24px; color:var(--text);
    background:var(--card); box-shadow:0 5px 18px #142e3c26; cursor:pointer; font-size:12px; font-weight:750;
  }
  .dash-visibility summary::-webkit-details-marker {display:none}
  .dash-visibility summary::before {content:'⚙';color:var(--ui-accent);font-size:17px;}
  .dash-visibility .dash-dock-panel {
    position:absolute; bottom:calc(100% + 7px); width:min(310px,calc(100vw - 20px));
    max-height:min(430px,calc(100dvh - 160px)); overflow:auto; overscroll-behavior:contain;
    padding:9px; background:var(--card); border:1px solid var(--border); border-radius:16px;
    box-shadow:0 12px 38px #142e3c38;
  }
  .dash-visibility[data-side="left"] .dash-dock-panel {left:0;}
  .dash-visibility[data-side="right"] .dash-dock-panel {right:0;}
  .dash-dock-toolbar {display:grid;grid-template-columns:1fr 1fr 44px;gap:4px;padding:4px;background:var(--input);border-radius:12px;}
  .dash-dock-toolbar button {font:inherit;font-size:12px;font-weight:750;color:var(--text);background:transparent;border:1px solid transparent;border-radius:9px;min-height:42px;cursor:pointer;}
  .dash-dock-toolbar button[aria-pressed="true"] {background:var(--card);border-color:var(--border);color:var(--ui-accent);}
  .dash-dock-toolbar .dash-dock-move {font-size:20px;}
  .dash-dock-layout,.dash-dock-styles {padding-block-start:6px;}
  .dash-dock-layout label {display:flex;align-items:center;gap:8px;min-height:40px;padding-inline:6px;cursor:pointer;color:var(--text);font-size:13px;}
  .dash-dock-styles .overview-style {min-height:52px;padding-inline:5px;margin:0;}
  @media(max-width:1024px) {
    .dash-visibility {bottom:calc(77px + env(safe-area-inset-bottom,0px));}
  }
  @media(prefers-reduced-motion:no-preference) {
    html:not([data-wf-motion="reduced"]) .dash-visibility[open] .dash-dock-panel {animation:dashDockIn 150ms ease-out both;}
  }
  @keyframes dashDockIn {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
  .dash-visibility input {width:18px;height:18px;accent-color:var(--brand-primary);}
  #page-dashboard .wf-dash-overview:has(> .dashboard-off) {grid-template-columns:minmax(0,1fr);grid-template-areas:none;}
  #page-dashboard .wf-dash-overview:has(> .dashboard-off) > :not(.dashboard-off) {grid-area:auto;}
  #page-dashboard .wf-dash-workspace:has(> .dashboard-off) {grid-template-columns:minmax(0,1fr);}
  #page-dashboard :is(.wf-dash-workspace,.wf-dash-overview):not(:has(> :not(.dashboard-off))) {display:none;margin:0;}
}

@media screen {
  .overview-style {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block:0 6px;font-size:13px;color:var(--text2);}
  .overview-style select {width:auto;min-height:40px;max-width:60%;padding:4px 10px;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:10px;font:inherit;}
  #dashIntelligence:not([data-view="bars"]) .wf-catalog-row i {display:none;}
  #dashIntelligence:not([data-view="bars"]) .wf-catalog-row {display:flex;align-items:center;justify-content:space-between;gap:8px;}
  :is(#dashIntelligence[data-view="tiles"] .wf-insight-card:nth-child(2),#dashIntelligence[data-summary-view="tiles"] .wf-insight-card:first-child) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-content:start;}
  :is(#dashIntelligence[data-view="tiles"] .wf-insight-card:nth-child(2),#dashIntelligence[data-summary-view="tiles"] .wf-insight-card:first-child) :is(.wf-insight-head,.wf-catalog-total,.wf-catalog-label) {grid-column:1/-1;}
  #dashIntelligence[data-summary-view="tiles"] .wf-insight-row:nth-child(2){grid-column:1/-1;}
  :is(#dashIntelligence[data-view="tiles"] .wf-insight-card:nth-child(2),#dashIntelligence[data-summary-view="tiles"] .wf-insight-card:first-child) :is(.wf-insight-row,.wf-catalog-row) {display:grid;justify-items:center;justify-content:center;text-align:center;background:var(--wash);border-radius:9px;padding:6px;}
  #dashIntelligence .overview-chart {background-color:var(--border);margin:8px auto;}
  #dashIntelligence[data-view="ring"] .overview-chart {width:88px;aspect-ratio:1;border-radius:50%;mask:radial-gradient(circle,transparent 46%,black 48%);}
  #dashIntelligence[data-view="strip"] .overview-chart {width:100%;height:12px;border-radius:12px;}
  #dashIntelligence:is([data-view="ring"],[data-view="strip"]) .wf-catalog-row span::before {content:'';display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:5px;background:var(--category-color);}
}

@media screen and (min-width:1025px) {
  html[dir="rtl"]:not(.wf-sidebar-collapsed) .dash-visibility[data-side="right"] {
    right:calc(var(--side-w) + 10px);
  }
  html[dir="ltr"]:not(.wf-sidebar-collapsed) .dash-visibility[data-side="left"] {
    left:calc(var(--side-w) + 10px);
  }
}
@media screen and (max-width:1024px) {
  html.wf-mobile-menu-open .dash-visibility {display:none;}
}

@media screen {
  html body .dash-visibility[data-side] {right:auto;bottom:auto;}
  .dash-visibility summary {width:44px;height:44px;box-sizing:border-box;justify-content:center;padding:0;touch-action:none;user-select:none;cursor:grab;}
  .dash-visibility summary:active {cursor:grabbing;}
  .dash-visibility summary::before {font-size:21px;}
  .dash-dock-toolbar {display:flex;justify-content:flex-end;background:transparent;padding:0;}
  .dash-dock-toolbar button {min-width:44px;}
  #dashIntelligence .wf-insight-head {display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
  #dashIntelligence .overview-style {margin:0;margin-inline-start:auto;position:relative;}
  #dashIntelligence .overview-style span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  #dashIntelligence .overview-style select {min-height:34px;max-width:100%;border-radius:16px;background:var(--card);color:var(--text);font-size:12px;cursor:pointer;}
  #page-dashboard .wf-dash-sales::before {content:none;}
  #page-dashboard .wf-dash-sales .sales-heading {position:relative;isolation:isolate;overflow:hidden;border-radius:10px;min-height:48px;}
  #page-dashboard .sales-heading::before {content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-radial-gradient(circle at 0 0,transparent 0 12px,color-mix(in srgb,var(--brand-primary) 14%,transparent) 13px 14px,transparent 15px 24px);mask-image:linear-gradient(90deg,black,transparent 34%);}
  #page-dashboard .sales-currencies > div {background:var(--card);border:1px solid var(--border);color:var(--text);}
}
@media screen {
 #dashIntelligence .overview-style {display:inline-flex;align-items:center;max-width:100%;}
 #dashIntelligence .overview-style select {appearance:none;min-height:40px;padding-inline:27px 22px;background:color-mix(in srgb,var(--ui-accent) 8%,var(--card));color:var(--text);border-color:color-mix(in srgb,var(--ui-accent) 28%,var(--border));border-radius:12px;font-weight:700;}
 #dashIntelligence .overview-style::before,#dashIntelligence .overview-style::after {content:'';position:absolute;pointer-events:none;}
 #dashIntelligence .overview-style::before {inset-inline-start:10px;width:10px;height:10px;background:linear-gradient(currentColor 0 0) 0 0/4px 4px,linear-gradient(currentColor 0 0) 100% 0/4px 4px,linear-gradient(currentColor 0 0) 0 100%/4px 4px,linear-gradient(currentColor 0 0) 100% 100%/4px 4px;background-repeat:no-repeat;color:var(--ui-accent);}
 #dashIntelligence .overview-style::after {inset-inline-end:9px;width:5px;height:5px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);}
 #dashIntelligence .overview-style select:focus-visible {outline:2px solid var(--ui-accent);outline-offset:2px;}
 #dashIntelligence[data-summary-view="spotlight"] .wf-insight-row:nth-child(2) {display:grid;justify-content:start;gap:4px;padding:12px;border-inline-start:3px solid var(--ui-accent);border-radius:9px;background:var(--wash);}
 #dashIntelligence[data-summary-view="spotlight"] .wf-insight-row:nth-child(2) b {font-size:1.45em;}
 #dashIntelligence[data-summary-view="ledger"] .wf-insight-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px;border-bottom:1px solid var(--border);border-radius:0;font-variant-numeric:tabular-nums;}
 #dashIntelligence[data-summary-view="ledger"] .wf-insight-row:nth-child(even) {background:var(--wash);}
 #dashIntelligence[data-summary-view="columns"] .wf-insight-card:first-child {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;}
 #dashIntelligence[data-summary-view="columns"] .wf-insight-head {grid-column:1/-1;}
 #dashIntelligence[data-summary-view="columns"] .wf-insight-row {display:flex;flex-direction:column-reverse;justify-content:center;text-align:center;gap:4px;padding:6px;overflow-wrap:anywhere;border-inline-end:1px solid var(--border);}
}

@media screen {
 html body .dash-visibility summary {width:32px;min-height:54px;height:54px;background:var(--card);color:var(--ui-accent);border:1px solid var(--border);box-shadow:0 2px 10px #142e3c20;}
 .dash-visibility[data-side="left"] summary {border-radius:0 11px 11px 0;border-left:0;}
 .dash-visibility[data-side="right"] summary {border-radius:11px 0 0 11px;border-right:0;}
 .dash-visibility summary::before {content:none;}
 .dash-visibility summary svg {width:20px;height:20px;pointer-events:none;}
 .dash-visibility[open] summary {background:var(--input);}
 .dash-visibility .dash-dock-panel {padding:12px;border-radius:16px;}
 .dash-dock-toolbar {align-items:center;gap:4px;border-bottom:1px solid var(--border);border-radius:0;padding-bottom:6px;}
 .dash-dock-toolbar strong {margin-inline-end:auto;color:var(--text);font-size:14px;}
 .dash-dock-toolbar button {min-width:36px;min-height:36px;background:var(--input);font-size:19px;}
 .dash-dock-layout label {justify-content:space-between;min-height:43px;}
 .dash-dock-layout input {order:1;appearance:none;position:relative;border:1px solid var(--border);background:var(--input);border-radius:12px;width:34px;height:20px;}
 .dash-dock-layout input::after {content:'';position:absolute;inset-inline-start:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--text2);}
 .dash-dock-layout input:checked {background:var(--ui-accent);}
 .dash-dock-layout input:checked::after {inset-inline-start:16px;background:white;}
}

@media screen {
 #page-dashboard {
   --dashboard-card-wash:linear-gradient(115deg,var(--dash-surface) 45%,var(--wash));
   --dashboard-detail-wash:linear-gradient(115deg,var(--dash-surface) 52%,color-mix(in srgb,var(--wash) 65%,var(--dash-surface)));
 }
 html body #page-dashboard :is(.wf-dash-sales,.wf-dash-recent,#currBar,.wf-insight-card) {
   background:var(--dashboard-card-wash)!important;
   border-color:var(--dash-line)!important;
 }
 html body #page-dashboard .stats-grid .stat-card {background:var(--dashboard-detail-wash)!important;}
}

@media screen {
 #page-dashboard {--dash-caption:#425765;--dash-gain:#135e46;--dash-loss:#933440;}
 [data-theme="dark"] #page-dashboard {--dash-caption:#c0d1d8;--dash-gain:#95e2bc;--dash-loss:#ffb3bc;}
 html body #page-dashboard :is(.stat-val,.sales-currencies dd,.curr-item .curr-rate,.wf-insight-row b,.wf-catalog-row b,.wf-catalog-total b) {
   color:var(--ink)!important;font-variant-numeric:lining-nums tabular-nums;unicode-bidi:isolate;
 }
 html body #page-dashboard :is(.stat-lbl,.sales-currencies dt,.sales-currencies small,.curr-item .curr-label,.wf-insight-row>span,.wf-catalog-label,.wf-catalog-row>span,.greeting-sub) {
   color:var(--dash-caption)!important;
 }
 html body #page-dashboard .sales-currencies dt {font-size:11px;font-weight:700;}
 html body #page-dashboard .sales-currencies dd {font-size:clamp(15px,1.2vw,18px);line-height:1.35;}
 #page-dashboard .curr-item {--quote-color:var(--dash-caption);}
 #page-dashboard .curr-item[data-quote-trend="up"] {--quote-color:var(--dash-gain);}
 #page-dashboard .curr-item[data-quote-trend="down"] {--quote-color:var(--dash-loss);}
 html body #page-dashboard .curr-item .wf-quote-trend {color:var(--quote-color)!important;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;}
}
@media screen {
 #dashIntelligence .wf-insight-card {--view-accent:#28677b;}
 #dashIntelligence .wf-insight-card:nth-child(2) {--view-accent:#66518b;}
 [data-theme="dark"] #dashIntelligence .wf-insight-card {--view-accent:#9ed8e5;}
 [data-theme="dark"] #dashIntelligence .wf-insight-card:nth-child(2) {--view-accent:#d7beff;}
 #dashIntelligence .wf-insight-head {display:flex;flex-wrap:wrap;align-items:center;}
 #dashIntelligence :is(.view-trigger,.view-choices button) {font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--hairline);border-radius:10px;cursor:pointer;min-height:42px;}
 #dashIntelligence .view-trigger {display:flex;align-items:center;gap:5px;padding:4px 9px;margin-inline-start:auto;font-size:12px;color:var(--view-accent);}
 #dashIntelligence :is(.view-trigger,.view-choices) svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
 #dashIntelligence .view-choices:not([hidden]) {display:grid;flex:1 0 100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,66px),1fr));gap:4px;padding:6px;background:color-mix(in srgb,var(--view-accent) 9%,var(--paper));border-radius:12px;box-sizing:border-box;}
 #dashIntelligence .view-choices button {display:grid;justify-items:center;align-content:center;gap:3px;padding:4px;font-size:11px;}
 #dashIntelligence .view-choices button[aria-pressed=true] {color:var(--view-accent);border:2px solid currentColor;background:var(--paper);}
 #dashIntelligence :is(.view-trigger,.view-choices button):focus-visible {outline:2px solid var(--view-accent);outline-offset:1px;}
}

/* Compact dashboard display pickers: readable labels and flexible touch targets. */
@media screen {
 #dashIntelligence .wf-insight-head > :first-child:not(.view-trigger):not(.view-choices) {min-width:0;overflow-wrap:anywhere;}
 #dashIntelligence .view-trigger {max-width:100%;min-width:0;line-height:1.3;white-space:normal;text-align:start;}
 #dashIntelligence .view-trigger svg {flex:none;}
 #dashIntelligence .view-choices:not([hidden]) {grid-template-columns:repeat(auto-fit,minmax(min(100%,92px),1fr));}
 #dashIntelligence .view-choices button {min-width:0;min-height:58px;line-height:1.35;text-align:center;overflow-wrap:anywhere;word-break:normal;}
 #dashIntelligence .view-choices button svg {flex:none;}
}

/* View selectors replace each card's content while active, never stack on it. */
@media screen {
 #dashIntelligence .wf-insight-card.wf-view-picking {display:block!important;min-width:0;}
 #dashIntelligence .wf-insight-card.wf-view-picking > :not(.wf-insight-head) {display:none!important;}
 #dashIntelligence .wf-insight-card.wf-view-picking > .wf-insight-head {display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:10px;width:100%;box-sizing:border-box;}
 #dashIntelligence .wf-insight-card.wf-view-picking > .wf-insight-head > :not(.view-trigger):not(.view-choices) {display:none!important;}
 #dashIntelligence .wf-view-picking .view-trigger {margin-inline-start:0;min-height:36px;padding:5px 12px;justify-content:center;}
 #dashIntelligence .wf-view-picking .view-choices:not([hidden]) {
   flex:1 0 100%;width:100%;max-height:min(270px,40dvh);overflow:auto;
   grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr));
   gap:8px;padding:8px;border:1px solid var(--hairline);
 }
 #dashIntelligence .wf-view-picking .view-choices button {min-height:72px;gap:7px;font-weight:700;}
 #dashIntelligence .wf-view-picking .view-choices button svg {width:24px;height:24px;}
 @media(max-width:480px) {
  #dashIntelligence .wf-view-picking .view-choices:not([hidden]) {grid-template-columns:repeat(2,minmax(0,1fr));}
  #dashIntelligence .wf-view-picking .view-choices button {min-height:62px;}
 }
}
/* Slim, taller edge grip for dashboard customization. */
@media screen {
 html body .dash-visibility summary {width:22px!important;height:86px!important;min-height:86px!important;padding:0!important;border-radius:0 10px 10px 0!important;}
 html body .dash-visibility[data-side="right"] summary {border-radius:10px 0 0 10px!important;}
 html body .dash-visibility summary svg {width:16px;height:16px;}
 .dash-visibility .dash-dock-panel {max-width:calc(100vw - 24px);}
}

/* Six dashboard actions nested within sales, preserving live statistics and links. */
@media screen {
 #page-dashboard .wf-dash-overview:has(.wf-sales-command-card) {
   grid-template-areas:"welcome sales"!important;
 }
 @container (max-width:510px) {
   #page-dashboard .wf-dash-overview:has(.wf-sales-command-card) {
     grid-template-areas:"welcome" "sales"!important;
   }
 }
 html body #page-dashboard .wf-dash-sales.wf-sales-command-card {
   display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;
   gap:10px!important;padding:clamp(12px,1.6vw,20px)!important;overflow:hidden;
   grid-area:sales;min-width:0;min-height:0;
 }
 #page-dashboard .wf-sales-command-card > .stat-icon {display:none!important;}
 #page-dashboard .wf-sales-command-card .wf-sales-summary {
   display:flex;align-items:center;justify-content:center;gap:12px;
   padding-block:3px 5px;min-width:0;
 }
 #page-dashboard .wf-sales-command-card .wf-sales-summary > .stat-icon {
   display:grid!important;place-items:center!important;flex:0 0 42px!important;
   width:42px!important;height:42px!important;font-size:22px!important;border-radius:14px!important;
 }
 #page-dashboard .wf-sales-command-card .wf-sales-summary > div:last-child {
   min-width:0;display:grid;justify-items:start;gap:3px;
 }
 #page-dashboard .wf-sales-command-card .wf-sales-summary .stat-lbl {
   margin:0!important;font-size:12px;font-weight:750;
 }
 #page-dashboard .wf-sales-command-card > :not(.stats-grid) {min-width:0;}
 #page-dashboard .wf-sales-command-card > .stats-grid {
   display:grid!important;grid-area:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:7px!important;padding:10px 0 0!important;margin:0!important;
   border-top:1px solid var(--dash-line);
 }
 html body #page-dashboard .wf-sales-command-card .stats-grid .stat-card {
   display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
   position:relative;gap:5px!important;min-width:0;min-height:78px!important;
   padding:8px 5px!important;text-align:center;overflow:hidden;
   border-radius:14px!important;background:color-mix(in srgb,var(--brand-primary) 5%,var(--dash-surface))!important;
   border:1px solid color-mix(in srgb,var(--brand-primary) 12%,var(--dash-line))!important;
   cursor:pointer;
 }
 #page-dashboard .wf-sales-command-card .stat-card > .stat-icon {
   display:grid!important;place-items:center!important;flex:0 0 28px!important;
   width:28px!important;height:28px!important;margin:0!important;font-size:17px!important;
   border-radius:10px!important;
 }
 #page-dashboard .wf-sales-command-card .stat-card > div:last-of-type {display:grid!important;justify-items:center;gap:2px;min-width:0;}
 #page-dashboard .wf-sales-command-card .stat-card .stat-val,
 #page-dashboard .wf-sales-command-card .stat-card .stat-lbl {
   grid-area:auto!important;justify-self:center!important;text-align:center!important;margin:0!important;
   white-space:normal;overflow-wrap:anywhere;
 }
 #page-dashboard .wf-sales-command-card .stat-card .stat-val {font-size:clamp(16px,2vw,23px)!important;}
 #page-dashboard .wf-sales-command-card .stat-card .stat-lbl,
 #page-dashboard .wf-sales-action-label {font-size:11px!important;font-weight:750;line-height:1.3;}
 #page-dashboard .wf-sales-command-card .stat-card .wf-stat-trend {display:none!important;}
 #page-dashboard .wf-sales-command-card .wf-sales-action {
   color:var(--brand-primary)!important;background:color-mix(in srgb,var(--brand-primary) 10%,var(--dash-surface))!important;
 }
 #page-dashboard .wf-sales-command-card .wf-sales-action-icon {font-size:19px!important;font-weight:750;color:var(--brand-primary)!important;}
 #page-dashboard .wf-sales-command-card .wf-sales-action-icon svg {
   width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
 }
 #page-dashboard .wf-sales-command-card .stat-card:is(:hover,:focus-visible) {
   border-color:var(--brand-primary)!important;
   background:color-mix(in srgb,var(--brand-primary) 13%,var(--dash-surface))!important;
   box-shadow:0 4px 12px color-mix(in srgb,var(--brand-primary) 14%,transparent)!important;
 }
 @media(prefers-reduced-motion:no-preference) {
   html:not([data-wf-motion="reduced"]) body #page-dashboard .wf-sales-command-card .stat-card:active {translate:0 1px;}
 }
 @container sales-card (max-width:320px) {
  #page-dashboard .wf-sales-command-card > .stats-grid {gap:4px!important;}
  #page-dashboard .wf-sales-command-card .stat-card {min-height:74px!important;padding:6px 3px!important;}
  #page-dashboard .wf-sales-command-card .stat-card .stat-lbl,
  #page-dashboard .wf-sales-action-label {font-size:10px!important;}
 }
}
/* Equal active choice color for both five-mode dashboard pickers. */
@media screen {
 #dashIntelligence .wf-insight-card {--view-accent:var(--brand-primary)!important;}
 html body #dashIntelligence .view-choices button[aria-pressed="true"] {
   position:relative;background:var(--brand-primary)!important;
   color:#fff!important;border:2px solid var(--brand-primary)!important;
   box-shadow:0 4px 12px color-mix(in srgb,var(--brand-primary) 22%,transparent)!important;
 }
 html body #dashIntelligence .view-choices button[aria-pressed="true"]::after {
   content:"✓";position:absolute;inset-block-start:4px;inset-inline-end:6px;
   font:800 11px/1 system-ui,sans-serif;color:#fff;
 }
 html body #dashIntelligence .view-trigger {
   border-color:color-mix(in srgb,var(--brand-primary) 25%,var(--hairline))!important;
   color:var(--brand-primary)!important;
   background:color-mix(in srgb,var(--brand-primary) 6%,var(--paper))!important;
   border-radius:14px!important;
 }
 html body #dashIntelligence .view-choices button {border-radius:14px!important;}
}
/* Narrow dashboard customization tab; half-width, lightly blurred in-place drawer. */
@media screen {
 html body .dash-visibility summary {
   width:18px!important;min-height:88px!important;height:88px!important;
   border-radius:0 8px 8px 0!important;
 }
 html body .dash-visibility[data-side="right"] summary {border-radius:8px 0 0 8px!important;}
 html body .dash-visibility summary svg {width:13px!important;height:18px!important;}
 html body .dash-visibility .dash-dock-panel {
   width:min(50vw,280px)!important;max-width:calc(100vw - 16px)!important;
   border-radius:16px!important;
   box-shadow:0 16px 46px #122c3a32!important;
   background:color-mix(in srgb,var(--card) 96%,transparent)!important;
 }
 html body .wf-dashboard-dock-backdrop:not([hidden]) {
   position:fixed;inset:0;z-index:709;
   background:rgb(13 36 48 / 8%);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
 }
 html body .wf-dashboard-dock-backdrop[hidden] {display:none!important;}
}

/* Angled dashboard side grip: a pronounced tapered shoulder, still only 18px wide. */
@media screen {
 html body .dash-visibility[data-side="left"] summary {
   border-radius:0 15px 15px 0!important;
   clip-path:polygon(0 0,59% 0,100% 14%,100% 86%,59% 100%,0 100%);
   -webkit-clip-path:polygon(0 0,59% 0,100% 14%,100% 86%,59% 100%,0 100%);
 }
 html body .dash-visibility[data-side="right"] summary {
   border-radius:15px 0 0 15px!important;
   clip-path:polygon(41% 0,100% 0,100% 100%,41% 100%,0 86%,0 14%);
   -webkit-clip-path:polygon(41% 0,100% 0,100% 100%,41% 100%,0 86%,0 14%);
 }
 html body .dash-visibility summary svg {
   position:relative;z-index:1;
 }
}

/* Original angled grip shape and card color, with a contrasting EDGE only.
   Preserve the 18px width, curved/tapered geometry and half-screen drawer. */
@media screen {
 html body .dash-visibility summary {
   background:var(--card)!important;
   color:var(--ui-accent)!important;
   border:2px solid #b77b56!important;
   box-shadow:none!important;
   filter:none!important;
   transition:border-color .18s ease,background-color .18s ease!important;
 }
 html body .dash-visibility summary svg {
   color:inherit!important;
   stroke:currentColor!important;
   filter:none!important;
 }
 html body .dash-visibility[open] summary {
   background:var(--input)!important;
   border-color:#a66343!important;
 }
 html body .dash-visibility summary:focus-visible {
   outline:2px solid #d5a07b!important;
   outline-offset:2px!important;
 }
 html[data-theme="dark"] body .dash-visibility summary {
   background:var(--card)!important;
   border-color:#d7a07c!important;
 }
 html[data-theme="dark"] body .dash-visibility[open] summary {
   background:var(--input)!important;
 }
 @media(prefers-reduced-motion:reduce) {
   html body .dash-visibility summary {transition:none!important;}
 }
}


/* Isolated dashboard customization grip: slight edge gap is set by place() in JS. */
@media screen {
 html body .dash-visibility summary {
   width:16px!important;
   min-height:84px!important;
   height:84px!important;
   border-radius:9px!important;
 }
 html body .dash-visibility[data-side="left"] summary {
   border-radius:9px!important;
   clip-path:polygon(0 8%,55% 3%,100% 17%,100% 83%,55% 97%,0 92%)!important;
   -webkit-clip-path:polygon(0 8%,55% 3%,100% 17%,100% 83%,55% 97%,0 92%)!important;
 }
 html body .dash-visibility[data-side="right"] summary {
   border-radius:9px!important;
   clip-path:polygon(45% 3%,100% 8%,100% 92%,45% 97%,0 83%,0 17%)!important;
   -webkit-clip-path:polygon(45% 3%,100% 8%,100% 92%,45% 97%,0 83%,0 17%)!important;
 }
}

/* Final edge-locked grip: neutral surface, black/navy outline only. */
@media screen {
 html body .dash-visibility {
   margin:0!important;
   padding:0!important;
   width:18px!important;
   max-width:18px!important;
 }
 html body .dash-visibility[data-side="left"] {left:0!important;right:auto!important;}
 html body .dash-visibility[data-side="right"] {right:0!important;left:auto!important;}
 html body .dash-visibility summary {
   box-sizing:border-box!important;
   width:18px!important;min-width:18px!important;max-width:18px!important;
   height:86px!important;min-height:86px!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   padding:0!important;margin:0!important;gap:0!important;overflow:hidden;
   background:var(--card)!important;
   border:2px solid #15243b!important;
   color:var(--text)!important;
   box-shadow:inset 0 0 0 1px #05090f!important;
   filter:none!important;
 }
 html body .dash-visibility summary::before {content:none!important;display:none!important;}
 html body .dash-visibility summary svg {
   display:block!important;flex:0 0 12px!important;
   width:12px!important;height:16px!important;
   color:inherit!important;stroke:currentColor!important;filter:none!important;
 }
 html body .dash-visibility[data-side="left"] summary {
   border-left:0!important;
   border-radius:0 11px 11px 0!important;
   clip-path:polygon(0 0,65% 0,100% 15%,100% 85%,65% 100%,0 100%)!important;
   -webkit-clip-path:polygon(0 0,65% 0,100% 15%,100% 85%,65% 100%,0 100%)!important;
 }
 html body .dash-visibility[data-side="right"] summary {
   border-right:0!important;
   border-radius:11px 0 0 11px!important;
   clip-path:polygon(35% 0,100% 0,100% 100%,35% 100%,0 85%,0 15%)!important;
   -webkit-clip-path:polygon(35% 0,100% 0,100% 100%,35% 100%,0 85%,0 15%)!important;
 }
 html body .dash-visibility[open] summary {
   background:var(--input)!important;
   border-color:#101b2c!important;
 }
 html[data-theme="dark"] body .dash-visibility summary {
   background:var(--card)!important;
   border-color:#0a101b!important;
   color:var(--text)!important;
   box-shadow:inset 0 0 0 1px #22324a!important;
 }
 html[data-theme="dark"] body .dash-visibility[open] summary {background:var(--input)!important;}
 html body .dash-visibility summary:focus-visible {
   outline:2px solid #15243b!important;outline-offset:2px!important;
 }
}

/* Compact smart-card faces share one frame; other dashboard fields keep their size. */
@media screen {
 html body #mainContent #page-dashboard .wf-greeting-flip {
   --wf-smart-card-height:clamp(12.5rem,18vw,13rem);
   --wf-smart-card-padding:clamp(14px,1.5vw,16px);
   --wf-smart-accent:var(--ui-accent,var(--brand-primary));
   position:relative;isolation:isolate;
   display:grid;
   grid-template-rows:minmax(0,1fr);
   block-size:var(--wf-smart-card-height);
   min-inline-size:0;min-block-size:0;
   align-self:start;
   border-radius:20px;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces {
   height:100%;block-size:100%;min-inline-size:0;min-block-size:0;align-self:stretch;
   grid-template-columns:minmax(0,1fr);
   grid-template-rows:minmax(0,1fr);
   transform-origin:center;transition:none!important;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces > * {
   grid-area:1 / 1;
   box-sizing:border-box;
   inline-size:100%;block-size:100%;min-inline-size:0;min-block-size:0;align-self:stretch;
   margin:0!important;padding:var(--wf-smart-card-padding)!important;
   padding-inline-end:48px!important;
   border:1px solid var(--dash-line)!important;
   border-radius:20px!important;
   background:var(--dashboard-card-wash)!important;
   box-shadow:none!important;
   backface-visibility:hidden;
   overflow:hidden!important;
 }
 html body #mainContent #page-dashboard .wf-smart-pager {
   position:absolute;z-index:3;inset-inline-end:0;inset-block-start:50%;
   transform:translateY(-50%);
   display:grid;grid-template-rows:repeat(var(--wf-smart-pages,5),28px);
   justify-items:center;inline-size:44px;margin:0;padding:0;
   border:0;background:transparent;box-shadow:none;
 }
 html body #mainContent #page-dashboard .wf-smart-page {
   appearance:none;display:grid;place-items:center;position:relative;
   inline-size:44px;block-size:28px;min-inline-size:44px;min-block-size:28px;
   margin:0!important;padding:0!important;
   border:0!important;border-radius:8px!important;
   color:var(--wf-smart-accent);background:transparent!important;box-shadow:none!important;
   cursor:pointer;touch-action:manipulation;
 }
 html body #mainContent #page-dashboard .wf-smart-page::before {
   content:'';display:block;inline-size:6px;block-size:6px;border-radius:9px;
   background:currentColor;opacity:.28;
   transition:block-size .18s ease,opacity .18s ease;
 }
 html body #mainContent #page-dashboard .wf-smart-page[aria-current="page"]::before {
   block-size:18px;opacity:1;
 }
 html body #mainContent #page-dashboard .wf-smart-page:hover::before {opacity:.7;}
 html body #mainContent #page-dashboard .wf-smart-page:focus-visible {
   outline:2px solid var(--wf-smart-accent);outline-offset:-5px;
 }
 html body #mainContent #page-dashboard .wf-smart-sr-only {
   position:absolute;inline-size:1px;block-size:1px;overflow:hidden;
   clip-path:inset(50%);white-space:nowrap;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces > #tipCardStandalone {
   align-content:stretch;
   transform:none!important;
 }
 html body #mainContent #page-dashboard #greetingCard {
   align-items:stretch;grid-template-rows:minmax(0,1fr);
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-top {
   display:block;block-size:100%;min-block-size:0;margin:0;
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-left {
   display:grid;grid-template-rows:auto minmax(0,1fr) auto;
   block-size:100%;min-block-size:0;gap:6px;
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-time-badge {
   justify-self:start;margin:0;font-size:13px;line-height:1.4;
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-msg {
   min-block-size:0;margin:0;overflow-wrap:anywhere;
   text-wrap:pretty;
   overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
   scrollbar-color:var(--dash-line) transparent;
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-sub {
   margin:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere;
   padding-block-start:6px;border-block-start:1px solid var(--dash-line);
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-inner {
   display:grid;grid-template-columns:30px minmax(0,1fr);
   grid-template-rows:30px minmax(0,1fr) auto;
   block-size:100%;min-block-size:0;align-items:start;gap:8px;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-icon {
   grid-area:1 / 1;display:grid;place-items:center;
   width:30px!important;height:30px!important;min-width:30px;
   font-size:18px;border-radius:10px!important;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-icon .wf-ui-icon {
   width:18px!important;height:18px!important;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-content {
   display:contents;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-label {
   grid-area:1 / 2;align-self:center;
   margin:0;font-size:13px;line-height:1.4;letter-spacing:normal;text-transform:none;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-text {
   grid-column:1 / -1;grid-row:2;align-self:stretch;
   min-block-size:0;margin:0;padding-block:2px;
   font-size:14px;line-height:1.75;text-wrap:pretty;overflow-wrap:anywhere;
   overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
   scrollbar-color:var(--dash-line) transparent;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .tip-card-badge {
   grid-column:1 / -1;grid-row:3;justify-self:stretch;align-self:end;
   margin:0!important;padding:6px 0 0!important;
   border:0!important;border-block-start:1px solid var(--dash-line)!important;
   border-radius:0!important;background:transparent!important;box-shadow:none!important;
   color:var(--text2);font-size:11px;line-height:1.4;text-align:start;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .wf-weather {
   grid-template-rows:auto auto auto;
   align-content:center;gap:8px;
 }
 html body #mainContent #page-dashboard .wf-greeting-faces .wf-weather-head {
   align-items:start;gap:8px;
 }
 html body #mainContent #page-dashboard .wf-weather-head > div {min-inline-size:0;}
 html body #mainContent #page-dashboard #wfWeatherTitle {font-size:16px;line-height:1.4;}
 html body #mainContent #page-dashboard #wfWeatherStatus {font-size:12px;line-height:1.4;}
 html body #mainContent #page-dashboard #wfWeatherTemp {
   flex:none;line-height:1.3;
 }
 html body #mainContent #page-dashboard .wf-weather-days {
   grid-template-columns:repeat(7,minmax(0,1fr));
   grid-auto-rows:auto;align-self:center;gap:4px;
 }
 html body #mainContent #page-dashboard .wf-weather-days > div {
   min-inline-size:0;align-content:center;
   padding:6px 2px;font-size:12px;line-height:1.3;overflow-wrap:anywhere;
   border:1px solid color-mix(in srgb,var(--dash-line) 70%,transparent);
   border-radius:10px;
 }
 html body #mainContent #page-dashboard .wf-weather-day-label {color:var(--text2);font-weight:600;}
 html body #mainContent #page-dashboard .wf-weather-amount {color:var(--ink);font-variant-numeric:tabular-nums;}
 html body #mainContent #page-dashboard .wf-weather[data-weather-state]:not([data-weather-state="ready"]) .wf-weather-days {display:none;}
 html body #mainContent #page-dashboard .wf-greeting-faces .wf-greeting-logo {
   grid-template-rows:auto auto;
   place-content:center;justify-items:center;gap:12px;
 }
 html body #mainContent #page-dashboard #wfGreetingLogoImage {
   display:grid;place-items:center;justify-self:stretch;
   min-inline-size:0;font-size:48px;
 }
 html body #mainContent #page-dashboard #wfGreetingLogoImage img {
   width:min(100%,180px)!important;height:96px!important;
   max-width:100%;max-height:100%;object-fit:contain;
 }
 html body #mainContent #page-dashboard #wfGreetingLogoTitle {
   font-size:16px;line-height:1.4;overflow-wrap:anywhere;
 }
 html body #mainContent #page-dashboard :is(.greeting-msg,.tip-card-text):focus-visible {
   outline:2px solid var(--wf-smart-accent);outline-offset:2px;border-radius:4px;
 }
 @media(prefers-reduced-motion:reduce) {
   html body #mainContent #page-dashboard .wf-smart-page::before {transition:none;}
 }
 html[data-wf-motion="reduced"] body #mainContent #page-dashboard .wf-smart-page::before {transition:none;}
}

/* Balance the desktop overview around the compact smart card.
   The existing wrappers stay in the DOM; only their visual grid participation changes.
   Customized dashboards with a hidden overview section retain their natural layout. */
@media screen and (min-width:720px) {
 html body #mainContent #page-dashboard {
   max-width:1280px!important;max-inline-size:1280px!important;margin-inline:auto!important;
 }
 html body #mainContent #page-dashboard.active:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) {
   display:grid!important;
   grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
   grid-template-areas:"welcome sales" "rates sales" "workspace workspace";
   grid-template-rows:auto auto auto;
   align-items:start;gap:var(--dash-gap);
 }
 html body #mainContent #page-dashboard:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) > .wf-dash-overview {
   display:contents!important;
 }
 html body #mainContent #page-dashboard:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) > #wfDashRates {
   grid-area:rates;min-inline-size:0;
 }
 html body #mainContent #page-dashboard:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) > .wf-dash-workspace {
   grid-area:workspace;min-inline-size:0;margin:0;
 }
 html body #mainContent #page-dashboard:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) .wf-greeting-flip {
   grid-area:welcome;
 }
 html body #mainContent #page-dashboard:has(.wf-greeting-flip:not(.dashboard-off)):has(.wf-sales-command-card:not(.dashboard-off)):has(> #wfDashRates:not(.dashboard-off)) .wf-sales-command-card {
   grid-area:sales;align-self:stretch;
   justify-content:space-between!important;
   padding:16px!important;gap:12px!important;
 }
 html body #mainContent #page-dashboard .wf-sales-command-card .wf-sales-summary:empty {
   display:none!important;
 }
 html body #mainContent #page-dashboard .wf-sales-command-card #s-total {
   font-size:clamp(24px,2vw,30px)!important;
 }
 html body #mainContent #page-dashboard #greetingCard .greeting-msg {
   font-size:clamp(20px,1.8vw,28px)!important;
 }
 html body #mainContent #page-dashboard #wfDashRates #currBar {
   margin:0!important;padding:14px!important;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-bar-grid {
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:6px!important;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-bar-top h2 {
   font-size:18px;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-item {
   min-height:54px;padding:6px!important;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-item .curr-rate {
   font-size:17px!important;
 }
}
@media screen and (min-width:1440px) {
 html body #mainContent #page-dashboard #wfDashRates .curr-bar-grid {
   grid-template-columns:repeat(6,minmax(0,1fr))!important;
   gap:5px!important;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-item {
   padding:5px!important;
 }
 html body #mainContent #page-dashboard #wfDashRates .curr-item .curr-rate {
   font-size:16px!important;
 }
}

/* One compact playback control below the smart card's five page indicators. */
@media screen {
 html body #mainContent #page-dashboard .wf-smart-pager:has(> .wf-smart-playback) {
   grid-template-rows:repeat(var(--wf-smart-pages,5),28px) 32px;
 }
 html body #mainContent #page-dashboard .wf-smart-playback {
   appearance:none;display:grid;place-items:center;position:relative;
   inline-size:44px;block-size:32px;min-inline-size:44px;min-block-size:32px;
   margin:0!important;padding:0!important;
   border:0!important;border-radius:8px!important;
   color:var(--wf-smart-accent);background:transparent!important;box-shadow:none!important;
   cursor:pointer;touch-action:manipulation;
 }
 html body #mainContent #page-dashboard .wf-smart-playback::before {
   content:'';position:absolute;inline-size:26px;block-size:26px;border-radius:9px;
   background:color-mix(in srgb,var(--wf-smart-accent) 9%,transparent);
 }
 html body #mainContent #page-dashboard .wf-smart-playback svg {
   position:relative;inline-size:15px;block-size:15px;fill:none;
   stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;
 }
 html body #mainContent #page-dashboard .wf-smart-playback .wf-smart-play-icon {fill:currentColor;stroke:none;}
 html body #mainContent #page-dashboard .wf-smart-playback[data-autoplay="true"] .wf-smart-play-icon,
 html body #mainContent #page-dashboard .wf-smart-playback[data-autoplay="false"] .wf-smart-pause-icon {display:none;}
 html body #mainContent #page-dashboard .wf-smart-playback:focus-visible {
   outline:2px solid var(--wf-smart-accent);outline-offset:-5px;
 }
}
