/* ==========================================================================
   Dashboard design "brand" — Brand banner
   --------------------------------------------------------------------------
   The owner's logo, name and takings in one deep-green band; a white shortcut
   dock floating over its bottom edge; calm white cards below, each answering
   one question. Markup: assets/js/app/dash-brand.js. Every rule is scoped to
   .dashx-brand (renderDashboard's wrapper) or, for the picker thumbnail, to
   .dshp-t-brand.

   Layout follows the width of .dbb (a size container), not the viewport:
     phone  W < 600  (wide-phone tweaks from 410, compact below 340)
     tablet 600 ≤ W < 880
     desktop W ≥ 880 (a 1280px screen gives W ≈ 960 beside the sidebar)
   Without container-query support the phone layout is used at every width.

   Type sizes are px because the app's root size changes below 768px.
   Primary text is true black; no text on white is lighter than #475569.
   Chart hues appear only as chips, dots, meters and chart lines.
   ========================================================================== */

.dashx-brand .dbb {
    --dbb-ink: #000;
    --dbb-ink-2: #334155;
    --dbb-ink-3: #475569;
    --dbb-icon: #64748b;
    --dbb-line: #e6ebe8;
    --dbb-hair: #eef2ef;
    --dbb-soft: #f4f8f6;
    --dbb-accent: #047857;
    --dbb-ease: cubic-bezier(.2, .7, .2, 1);
    container: dbb / inline-size;
    color: var(--dbb-ink);
    min-width: 0;
}
.dashx-brand .dbb *,
.dashx-brand .dbb *::before,
.dashx-brand .dbb *::after { box-sizing: border-box; }

/* Vertical rhythm between the page's blocks. */
.dashx-brand .dbb > * + * { margin-top: 12px; }
.dashx-brand .dbb > #dashboard-filters { margin-top: 0; }

/* Focus: green ring on white, white ring on the band. */
.dashx-brand .dbb button:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-brand .dbb-band button:focus-visible { outline-color: #fff; }

/* ---- The band -------------------------------------------------------------- */

.dashx-brand .dbb-hero { position: relative; }
.dashx-brand .dbb-band {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: 20px; padding: 16px 16px 44px;
    color: #fff;
    background: linear-gradient(135deg, #065f46 0%, #064e3b 55%, #05684c 100%);
    box-shadow: 0 12px 24px -20px rgba(6, 78, 59, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.dashx-brand .dbb-band.no-dock { padding-bottom: 24px; }
/* the owner pages' facet: one light band across the card */
.dashx-brand .dbb-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(112deg, transparent 0 57%, rgba(255, 255, 255, .06) 57% 71%, transparent 71%);
}

/* Row A: identity, then store / plan / Design. On phone the plan pill takes
   its own line so the name keeps its width. */
.dashx-brand .dbb-head {
    display: flex; flex-wrap: wrap; align-items: center;
    column-gap: 8px; row-gap: 12px; min-height: 40px;
}
.dashx-brand .dbb-id {
    order: 0; flex: 1 1 0; min-width: 0;
    display: flex; align-items: center; gap: 12px;
    margin: -4px; padding: 4px; border: 0; border-radius: 16px;
    background: none; color: #fff; font: inherit; text-align: left; cursor: pointer;
    transition: background .15s ease;
}
.dashx-brand .dbb-id:hover { background: rgba(255, 255, 255, .06); }
.dashx-brand .dbb-logo {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
    display: grid; place-items: center; padding: 3px;
    background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.dashx-brand .dbb-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }
.dashx-brand .dbb-logo span,
.dashx-brand .dbb-logo i { font-size: 17px; font-weight: 700; line-height: 1; color: #065f46; }
.dashx-brand .dbb-id-copy { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.dashx-brand .dbb-id-name {
    display: flex; align-items: center; gap: 6px; min-width: 0;
    font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #fff;
}
.dashx-brand .dbb-id-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashx-brand .dbb-id-name i { flex-shrink: 0; font-size: 12px; color: rgba(255, 255, 255, .86); }
.dashx-brand .dbb-id-greet {
    display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px;
    font-size: 12.5px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .86);
}
.dashx-brand .dbb-id-greet span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashx-brand .dbb-id-greet i { flex-shrink: 0; font-size: 12px; color: #fde68a; }
.dashx-brand .dbb-id-greet i.is-moon { color: #c7d2fe; }
/* the greeting in four lengths: '· 1 Oct' on phones, greeting only below
   340, '· Thu, 1 Oct' from 410 to tablet, the full date on desktop */
.dashx-brand .dbb-g-l,
.dashx-brand .dbb-g-m,
.dashx-brand .dbb-g-xs { display: none; }

/* Glass controls on the band. */
.dashx-brand .dbb-glass {
    position: relative; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
    white-space: nowrap; cursor: pointer;
    transition: background .15s ease, transform .12s ease;
}
.dashx-brand .dbb-glass:hover { background: rgba(255, 255, 255, .18); }
.dashx-brand .dbb-glass:active { transform: scale(.97); }

.dashx-brand .dbb-store { order: 1; width: 36px; padding: 0; }
.dashx-brand .dbb-store i { font-size: 14px; }
.dashx-brand .dbb-store .dbb-store-lbl,
.dashx-brand .dbb-store .dbb-store-go { display: none; }
.dashx-brand .dbb-store::after { content: ""; position: absolute; inset: -4px; }

.dashx-brand .dbb-plan-row { order: 4; flex: 0 0 100%; display: flex; min-width: 0; }
.dashx-brand .dbb-plan { height: 30px; padding: 0 12px; max-width: 100%; min-width: 0; }
.dashx-brand .dbb-plan::after { content: ""; position: absolute; inset: -7px -2px; }
.dashx-brand .dbb-plan .bi-gem { font-size: 13.5px; color: #fde68a; }
.dashx-brand .dbb-plan-name {
    max-width: 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    font-size: 12.5px; font-weight: 700;
}
.dashx-brand .dbb-plan-days { font-size: 12.5px; font-weight: 600; }
.dashx-brand .dbb-plan.is-gold { background: #fde68a; border-color: #fde68a; color: #78350f; }
.dashx-brand .dbb-plan.is-gold .bi-gem { color: #78350f; }
.dashx-brand .dbb-plan.is-gold:hover { background: #fcd968; border-color: #fcd968; }

/* the shared Design button, made a glass pill */
.dashx-brand .dbb-design {
    order: 3; position: relative; height: 36px; width: 36px; padding: 0; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
}
.dashx-brand .dbb-design:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .18); }
.dashx-brand .dbb-design span { display: none; }
.dashx-brand .dbb-design i { font-size: 14px; }
.dashx-brand .dbb-design::after { content: ""; position: absolute; inset: -4px; }

/* Row B: the headline, then today. */
.dashx-brand .dbb-main { margin-top: 16px; }
.dashx-brand .dbb-headline { min-width: 0; }
.dashx-brand .dbb-eyebrow-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashx-brand .dbb-eyebrow {
    flex-shrink: 0; white-space: nowrap;
    font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .09em; text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}
.dashx-brand .dbb-period {
    flex: 0 1 auto; min-width: 0; max-width: calc(100% - 118px);
    height: 32px; padding: 0 12px; gap: 6px; font-size: 12.5px;
}
.dashx-brand .dbb-period::after { content: ""; position: absolute; inset: -6px 0; }
.dashx-brand .dbb-period-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the full range from 410; '2 Sep – 1 Oct 2026' on narrower phones */
.dashx-brand .dbb-wide-only { display: none; }
.dashx-brand .dbb-period .bi-calendar3 { font-size: 13px; flex-shrink: 0; }
.dashx-brand .dbb-period .bi-chevron-down { font-size: 10px; flex-shrink: 0; }

.dashx-brand .dbb-fig-row { display: flex; align-items: center; gap: 12px; min-height: 38px; margin-top: 8px; min-width: 0; }
.dashx-brand .dbb-fig {
    min-width: 0; white-space: nowrap; color: #fff;
    font-size: clamp(25px, 9vw, 31px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em;
    font-variant-numeric: proportional-nums;
}
.dashx-brand .dbb-fig.dbb-fig-long { font-size: 25px; }
.dashx-brand .dbb-fig.dbb-fig-xl { font-size: 20px; }
.dashx-brand .dbb-fig.dbb-fig-xxl { font-size: 18px; }
.dashx-brand .dbb-fig.sx-masked { letter-spacing: .06em; }

.dashx-brand .dbb-eye {
    position: relative; flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 999px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 17px; transform: none;
}
.dashx-brand .dbb-eye::after { content: ""; position: absolute; inset: -4px; }
.dashx-brand .dbb-eye:hover { background: rgba(255, 255, 255, .18); transform: none; }
.dashx-brand .dbb-eye:active { transform: scale(.92); }

.dashx-brand .dbb-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.dashx-brand .dbb-note.no-delta,
.dashx-brand .dbb-fig-cap { display: none; }
.dashx-brand .dbb-fig-cap { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .86); }
/* the shared delta pill, as glass */
.dashx-brand .dbb-band .dsz-delta {
    height: 28px; padding: 0 10px; gap: 5px; border-radius: 999px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0;
}
.dashx-brand .dbb-band .dsz-delta i { font-size: 12px; }
.dashx-brand .dbb-band .dsz-delta em { font-weight: 600; opacity: 1; }
.dashx-brand .dbb-band .dsz-delta.up i { color: #a7f3d0; }
/* falling: a pink-tinted glass; the arrow and the minus carry the direction */
.dashx-brand .dbb-band .dsz-delta.down {
    background: rgba(254, 202, 202, .16); border-color: rgba(254, 202, 202, .34); color: #fff;
}
.dashx-brand .dbb-band .dsz-delta.down i { color: #fecaca; }

/* Today: three glass cells on phone, one glass panel from 600. Exact, never masked.
   On phone the cells share the row 1.3 : 1 : 1, but never below the width of
   their own value (captions take no part in that floor and ellipsize), so a
   long amount borrows room from its neighbours instead of being cut off. */
.dashx-brand .dbb-today { display: flex; gap: 6px; margin-top: 14px; min-width: 0; }
.dashx-brand .dbb-today-split { display: contents; }
.dashx-brand .dbb-today-main { flex: 1.3 1 0; }
.dashx-brand .dbb-today-cell { flex: 1 1 0; }
.dashx-brand .dbb-today-rule,
.dashx-brand .dbb-today-sub,
.dashx-brand .dbb-today-cap i { display: none; }
.dashx-brand .dbb-today-main,
.dashx-brand .dbb-today-cell {
    display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    padding: 8px 9px; border-radius: 12px; text-align: left; color: #fff;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
}
.dashx-brand .dbb-today-main { font: inherit; cursor: pointer; transition: background .15s ease; }
.dashx-brand .dbb-today-main:hover { background: rgba(255, 255, 255, .18); }
.dashx-brand .dbb-today-cap {
    display: flex; align-items: center; gap: 4px; width: 0; min-width: 100%;
    font-size: 11.5px; font-weight: 600; line-height: 1.3; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dashx-brand .dbb-today-val,
.dashx-brand .dbb-today-v {
    display: block; white-space: nowrap;
    font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #fff;
}
.dashx-brand .dbb-today-v.is-l9,
.dashx-brand .dbb-today-main.is-l13 .dbb-today-val { font-size: 13.5px; }
.dashx-brand .dbb-today-v.is-l10,
.dashx-brand .dbb-today-main.is-long .dbb-today-val { font-size: 13px; }
.dashx-brand .dbb-today-main.is-l16 .dbb-today-val { font-size: 12px; }
.dashx-brand .dbb-v-full { display: none; }
.dashx-brand .dbb-v-short { display: inline; }
.dashx-brand .dbb-today-sub { font-size: 12px; font-weight: 600; line-height: 1.3; color: #fff; }

/* ---- Shortcut dock ---------------------------------------------------------- */

.dashx-brand .dbb-dock {
    position: relative; z-index: 1;
    margin: -24px 8px 0; padding: 12px 6px;
    display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 8px 20px -14px rgba(6, 78, 59, .30), 0 1px 2px rgba(16, 24, 40, .06);
}
.dashx-brand .dbb-qa {
    flex: 0 0 calc(100% / var(--pc)); min-width: 0; min-height: 76px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 6px 2px; border: 0; border-radius: 14px; background: none;
    font: inherit; color: #000; cursor: pointer;
    transition: background .15s ease;
}
.dashx-brand .dbb-qa:hover { background: var(--dbb-soft); }
.dashx-brand .dbb-qa-tile {
    position: relative; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    box-shadow: 0 6px 12px -8px rgba(15, 23, 42, .35);
    transition: transform .12s ease;
}
.dashx-brand .dbb-qa:active .dbb-qa-tile { transform: scale(.94); }
.dashx-brand .dbb-qa-tile i { font-size: 18px; line-height: 1; color: #fff; }
.dashx-brand .dbb-qa-badge {
    position: absolute; top: -6px; right: -8px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    display: grid; place-items: center;
    background: #e1251b; box-shadow: 0 0 0 2px #fff;
    font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; color: #fff;
}
.dashx-brand .dbb-qa-lbl {
    max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 11.5px; font-weight: 600; line-height: 1.2; color: #000;
}

/* ---- Setup card (Classic's markup, restyled white) -------------------------- */

.dashx-brand .dbb-setup .dsb-setup-card {
    position: relative; overflow: hidden; margin: 0;
    background: #fff !important; color: #000;
    border: 1px solid var(--dbb-line); border-radius: 20px; padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.dashx-brand .dbb-setup .dsb-setup-card::before { display: none; }
.dashx-brand .dbb-setup .dsb-setup-header { gap: 12px; margin-bottom: 14px; }
.dashx-brand .dbb-setup .dsb-setup-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #000; }
.dashx-brand .dbb-setup .dsb-setup-sub { font-size: 12.5px; font-weight: 500; color: var(--dbb-ink-3); opacity: 1; }
.dashx-brand .dbb-setup .dsb-setup-ring,
.dashx-brand .dbb-setup .dsb-setup-ring svg { width: 44px; height: 44px; }
.dashx-brand .dbb-setup .dsb-setup-ring svg path:first-child { stroke: #e6f4ee; }
.dashx-brand .dbb-setup .dsb-setup-ring svg path:last-child { stroke: #059669; }
.dashx-brand .dbb-setup .dsb-setup-ring span { font-size: 12px; font-weight: 700; color: #047857; }
.dashx-brand .dbb-setup .dsb-setup-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dashx-brand .dbb-setup .dsb-setup-step.done { display: none; }
.dashx-brand .dbb-setup .dsb-setup-step {
    min-height: 52px; padding: 0 14px; gap: 12px; border-radius: 14px;
    background: var(--dbb-soft); color: #000; font-size: 13.5px; font-weight: 600;
    transition: background .15s ease;
}
.dashx-brand .dbb-setup .dsb-setup-step:hover { background: #ebf3ee; }
.dashx-brand .dbb-setup .dsb-setup-step-icon {
    width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #047857; font-size: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.dashx-brand .dbb-setup .dsb-setup-step > div:not(.dsb-setup-step-icon) > div + div {
    color: var(--dbb-ink-3) !important; opacity: 1 !important; font-size: 12px !important;
}
.dashx-brand .dbb-setup .dsb-setup-step > .bi-chevron-right { color: var(--dbb-icon); opacity: 1 !important; }
.dashx-brand .dbb-setup .dsb-setup-step:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }
.dashx-brand .dbb-setup .dsb-setup-header[style] { padding-right: 44px !important; }
.dashx-brand .dbb-setup .dsb-setup-card > button {
    top: 12px !important; right: 12px !important;
    background: #f1f5f9 !important; color: var(--dbb-ink-2) !important;
}
.dashx-brand .dbb-setup .dsb-setup-card > button::after { content: ""; position: absolute; inset: -9px; }

/* ---- Cards ------------------------------------------------------------------ */

.dashx-brand .dbb-card {
    position: relative; min-width: 0;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--dbb-line); border-radius: 18px; padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.dashx-brand .dbb-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dashx-brand .dbb-head-copy { min-width: 0; }
.dashx-brand .dbb-title {
    display: flex; align-items: center; gap: 8px; margin: 0;
    font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: #000;
}
.dashx-brand .dbb-sub { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--dbb-ink-3); text-wrap: balance; }
.dashx-brand .dbb-nw { white-space: nowrap; }
/* Parts joined by dots: each part carries its dot on the left; the list sits
   one dot-width left of the sub, which clips, so a part that opens a line
   loses its dot and no line starts or ends on a separator. */
.dashx-brand .dbb-sub.has-parts { overflow: hidden; }
.dashx-brand .dbb-parts { display: flex; flex-wrap: wrap; margin-left: -14px; }
.dashx-brand .dbb-parts > span { position: relative; min-width: 0; padding-left: 14px; }
.dashx-brand .dbb-parts > span::before {
    content: "\00b7"; position: absolute; top: 0; left: 0; width: 14px; text-align: center;
}
.dashx-brand .dbb-link,
.dashx-brand .dbb-textbtn,
.dashx-brand .dbb-more {
    position: relative; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 4px;
    min-height: 28px; padding: 0 2px; border: 0; border-radius: 8px; background: none;
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--dbb-accent);
    white-space: nowrap; cursor: pointer;
}
.dashx-brand .dbb-link::after,
.dashx-brand .dbb-textbtn::after,
.dashx-brand .dbb-more::after { content: ""; position: absolute; inset: -8px -6px; }
.dashx-brand .dbb-link i,
.dashx-brand .dbb-more i { font-size: 12px; }
.dashx-brand .dbb-link:hover,
.dashx-brand .dbb-textbtn:hover,
.dashx-brand .dbb-more:hover { color: #065f46; text-decoration: underline; text-underline-offset: 3px; }

.dashx-brand .dbb-count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
    background: #f1f5f9; color: var(--dbb-ink-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0;
}
.dashx-brand .dbb-count.is-danger { background: #fef2f2; color: #b91c1c; }

.dashx-brand .dbb-chip {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; background: var(--cb); color: var(--c);
}
.dashx-brand .dbb-chip i { font-size: 14px; line-height: 1; }
.dashx-brand .dbb-chip.is-warn { background: #fffbeb; color: #b45309; }
.dashx-brand .dbb-chip.is-ok { background: #ecfdf5; color: #047857; }

.dashx-brand .dbb-meter {
    grid-column: 2 / -1; display: block; height: 4px; border-radius: 999px;
    background: var(--dbb-hair); overflow: hidden;
}
.dashx-brand .dbb-meter i { display: block; height: 100%; border-radius: 999px; }

.dashx-brand .dbb-tag {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.dashx-brand .dbb-tag i { font-size: 11px; }
.dashx-brand .dbb-tag.is-danger { background: #fef2f2; color: #b91c1c; }
.dashx-brand .dbb-chev { font-size: 12px; color: var(--dbb-icon); }

/* List rows: a soft rounded hover inside the card, hairlines between. */
.dashx-brand .dbb-rows { display: flex; flex-direction: column; }
.dashx-brand .dbb-row {
    position: relative; width: calc(100% + 16px); margin: 0 -8px; min-height: 56px; padding: 10px 8px;
    display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center;
    column-gap: 12px; row-gap: 8px;
    border: 0; border-radius: 12px; background: none;
    font: inherit; color: #000; text-align: left; cursor: pointer;
    transition: background .15s ease, transform .12s ease;
}
.dashx-brand .dbb-row:hover { background: var(--dbb-soft); }
.dashx-brand .dbb-row:active { transform: scale(.99); }
.dashx-brand .dbb-row:focus-visible { outline-offset: 0; }
.dashx-brand .dbb-row + .dbb-row::before {
    content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 1px; background: var(--dbb-hair);
}
.dashx-brand .dbb-row:hover::before,
.dashx-brand .dbb-row:hover + .dbb-row::before { opacity: 0; }
.dashx-brand .dbb-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dashx-brand .dbb-row-t {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #000;
}
.dashx-brand .dbb-row-s {
    display: flex; align-items: center; gap: 6px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-row-amt {
    flex-shrink: 0; white-space: nowrap; text-align: right;
    font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #000; font-variant-numeric: tabular-nums;
}
.dashx-brand .dbb-row-amt.is-muted { color: var(--dbb-ink-3); }
.dashx-brand .dbb-cap { display: block; margin: 14px 0 4px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--dbb-ink-3); }

/* the shared delta pill inside white cards (Breakdown's costs) */
.dashx-brand .dbb-card .dsz-delta {
    height: 20px; padding: 0 7px; gap: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: 0;
}
.dashx-brand .dbb-card .dsz-delta i { font-size: 11px; }
.dashx-brand .dbb-card .dsz-delta em { font-weight: 600; opacity: 1; }
.dashx-brand .dbb-card .dsz-delta.neu { background: #f1f5f9; color: var(--dbb-ink-2); }
.dashx-brand .dbb-card .dsz-delta.down { background: #fef2f2; color: #b91c1c; }
.dashx-brand .dbb-card .dsz-delta.up { background: #ecfdf5; color: #047857; }

/* Empty states */
.dashx-brand .dbb-empty {
    flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 12px 8px 4px; text-align: center;
}
.dashx-brand .dbb-empty-ic {
    width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%;
    display: grid; place-items: center; background: #f1f5f9; color: var(--dbb-icon); font-size: 18px;
}
.dashx-brand .dbb-empty-ic.is-plain { background: none; font-size: 25px; }
.dashx-brand .dbb-empty b { font-size: 13.5px; font-weight: 600; color: #000; }
.dashx-brand .dbb-empty > span:not(.dbb-empty-ic) { font-size: 12.5px; font-weight: 500; color: var(--dbb-ink-3); }
.dashx-brand .dbb-outline {
    position: relative; margin-top: 10px;
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border: 1px solid var(--dbb-line); border-radius: 12px; background: #fff;
    font: inherit; font-size: 13px; font-weight: 600; color: #000; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.dashx-brand .dbb-outline::after { content: ""; position: absolute; inset: -3px; }
.dashx-brand .dbb-outline i { font-size: 14px; color: var(--dbb-accent); }
.dashx-brand .dbb-outline:hover { border-color: #b7c7be; background: var(--dbb-soft); }

/* ---- Needs attention -------------------------------------------------------- */

.dashx-brand .dbb-attn { overflow: hidden; }
.dashx-brand .dbb-attn-list { display: flex; flex-direction: column; margin: 8px -16px -8px; }
.dashx-brand .dbb-attn-cell {
    position: relative; width: 100%; min-height: 60px; padding: 10px 16px;
    display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto auto;
    grid-template-areas: "chip t t tag chev" "chip v d d chev";
    align-items: center; align-content: center; column-gap: 0; row-gap: 2px;
    border: 0; background: none; font: inherit; color: #000; text-align: left; cursor: pointer;
    transition: background .15s ease;
}
.dashx-brand .dbb-attn-cell:hover { background: var(--dbb-soft); }
.dashx-brand .dbb-attn-cell:focus-visible { outline-offset: -2px; }
.dashx-brand .dbb-attn-cell + .dbb-attn-cell::before {
    content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--dbb-hair);
}
.dashx-brand .dbb-attn-cell .dbb-chip { grid-area: chip; }
.dashx-brand .dbb-attn-t {
    grid-area: t; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #000;
}
.dashx-brand .dbb-attn-v {
    grid-area: v; white-space: nowrap;
    font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #000; font-variant-numeric: tabular-nums;
}
.dashx-brand .dbb-attn-v.is-sub {
    grid-area: 2 / 2 / 3 / 5; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    font-weight: 500; color: var(--dbb-ink-3); font-variant-numeric: normal;
}
/* one line on phone: the parts run inline with a plain dot between them */
.dashx-brand .dbb-attn-v .dbb-parts { display: inline; margin: 0; }
.dashx-brand .dbb-attn-v .dbb-parts > span { position: static; padding: 0; }
.dashx-brand .dbb-attn-v .dbb-parts > span::before { content: " \00b7  "; position: static; width: auto; }
.dashx-brand .dbb-attn-v .dbb-parts > span:first-child::before { content: none; }
.dashx-brand .dbb-attn-d {
    grid-area: d; min-width: 0; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-attn-cell .dbb-tag { grid-area: tag; margin-left: 8px; }
.dashx-brand .dbb-attn-cell .dbb-chev { grid-area: chev; margin-left: 10px; }
.dashx-brand .dbb-attn-foot {
    display: grid; grid-template-columns: 13px minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 2px;
    margin: 8px -16px -16px; padding: 10px 16px; border-top: 1px solid var(--dbb-hair);
    font-size: 12.5px; font-weight: 500; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-attn-foot > i { font-size: 13px; color: var(--dbb-icon); }
.dashx-brand .dbb-attn-foot .dbb-textbtn { grid-column: 2; justify-self: start; }
.dashx-brand .dbb-attn-list + .dbb-attn-foot { margin-top: 8px; }
.dashx-brand .dbb-attn-list:not(:last-child) { margin-bottom: 0; }

.dashx-brand .dbb-attn.is-clear { padding-top: 0; padding-bottom: 0; }
.dashx-brand .dbb-clear { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; min-width: 0; }
.dashx-brand .dbb-clear-copy { display: flex; flex-direction: column; min-width: 0; }
.dashx-brand .dbb-clear-copy b { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #000; }
.dashx-brand .dbb-clear-copy span {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-attn.is-clear .dbb-attn-foot { margin: 0 -16px; }

/* ---- Money flow ------------------------------------------------------------- */

.dashx-brand .dbb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 8px; }
.dashx-brand .dbb-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #000; }
.dashx-brand .dbb-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.dashx-brand .dbb-chart { position: relative; height: 220px; min-width: 0; }
.dashx-brand .dbb-card-head + .dbb-chart { margin-top: 12px; }
.dashx-brand .dbb-chart canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dashx-brand .dbb-chart .dsb-line-empty {
    position: absolute; inset: 0; height: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    font-size: 13.5px; font-weight: 600; color: var(--dbb-ink-3);
    /* the chart's own quiet grid, so an empty period still reads as a chart */
    background:
        linear-gradient(rgba(15, 23, 42, .08), rgba(15, 23, 42, .08)) 0 100% / 100% 1px no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 calc(33.333% - 1px), rgba(15, 23, 42, .05) calc(33.333% - 1px) 33.333%);
}
.dashx-brand .dbb-chart .dsb-line-empty i { padding: 0 0 8px; font-size: 25px; line-height: 1; color: rgba(5, 150, 105, .6); }
.dashx-brand .dbb-chart .dsb-line-empty div { padding: 0 12px; }

/* ---- Breakdown -------------------------------------------------------------- */

.dashx-brand .dbb-bd-row { min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
.dashx-brand .dbb-bd > .dbb-rows:nth-last-child(2) { margin-bottom: 12px; }
.dashx-brand .dbb-net {
    margin-top: auto; width: calc(100% + 16px); margin-left: -8px; margin-right: -8px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: relative;
    padding: 12px 8px 4px; border: 0; border-radius: 0 0 12px 12px;
    background: none; font: inherit; color: #000; text-align: left; cursor: pointer;
    transition: background .15s ease;
}
.dashx-brand .dbb-net::before {
    content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 1px; background: var(--dbb-line);
}
.dashx-brand .dbb-net:hover { background: var(--dbb-soft); }
.dashx-brand .dbb-net-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dashx-brand .dbb-net-l b { font-size: 14px; font-weight: 700; line-height: 1.25; color: #000; }
.dashx-brand .dbb-net-l span { font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--dbb-ink-3); text-wrap: balance; }
.dashx-brand .dbb-net-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.dashx-brand .dbb-net-r b {
    display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    font-size: 15px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.dashx-brand .dbb-net-r b i { font-size: 13.5px; }
.dashx-brand .dbb-net-r.is-up b { color: #047857; }
.dashx-brand .dbb-net-r.is-down b { color: #dc2626; }
.dashx-brand .dbb-net-r.is-zero b { color: #000; }
.dashx-brand .dbb-net-r span { font-size: 12px; font-weight: 600; color: var(--dbb-ink-2); }

/* ---- Recent sales / Business performance ----------------------------------- */

.dashx-brand .dbb-groups { margin-top: 4px; }
.dashx-brand .dbb-group-l { padding: 10px 0 4px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--dbb-ink-3); }
.dashx-brand .dbb-sale { grid-template-columns: 36px minmax(0, 1fr) auto; }
.dashx-brand .dbb-av {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.dashx-brand .dbb-av.is-walk { background: #f1f5f9; color: var(--dbb-ink-2); }
.dashx-brand .dbb-av.is-walk i { font-size: 15px; }
.dashx-brand .dbb-sale-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dashx-brand .dbb-pill {
    display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.dashx-brand .dbb-pill.is-ok { background: #ecfdf5; color: #047857; }
.dashx-brand .dbb-pill.is-warn { background: #fffbeb; color: #b45309; }
.dashx-brand .dbb-pill.is-danger { background: #fef2f2; color: #b91c1c; }
.dashx-brand .dbb-pill.is-neutral { background: #f1f5f9; color: var(--dbb-ink-2); }

.dashx-brand .dbb-perf .dbb-rows { margin-top: 8px; }
.dashx-brand .dbb-bp-row { grid-template-columns: 36px minmax(0, 1fr) auto 12px; }
.dashx-brand .dbb-bp-row .dbb-meter { grid-column: 2 / 4; }
.dashx-brand .dbb-bp-tile {
    position: relative; width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
    display: grid; place-items: center; background: #ecfdf5;
}
.dashx-brand .dbb-bp-tile span { font-size: 13.5px; font-weight: 700; color: #047857; }
.dashx-brand .dbb-bp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* ---- Payments mix (the shared helper's markup, restyled) ------------------- */

.dashx-brand .dbb-seg {
    flex-shrink: 0; display: inline-flex; gap: 2px; height: 32px; padding: 3px;
    border-radius: 999px; background: #eef2ef;
}
.dashx-brand .dbb-seg button {
    position: relative; height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
    font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--dbb-ink-2); cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.dashx-brand .dbb-seg button::after { content: ""; position: absolute; inset: -9px 0; }
.dashx-brand .dbb-seg button:hover { color: #000; }
.dashx-brand .dbb-seg button.is-on { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.dashx-brand .dbb-pay-body { margin-top: 14px; }
.dashx-brand .dbb-pay .dsz-mix { gap: 12px; }
.dashx-brand .dbb-pay .dsz-mix-total span {
    font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-pay .dsz-mix-total b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #000; }
.dashx-brand .dbb-pay .dsz-mix-bar { height: 14px; }
.dashx-brand .dbb-pay .dsz-mix-seg,
.dashx-brand .dbb-pay .dsz-mix-seg:first-child,
.dashx-brand .dbb-pay .dsz-mix-seg:last-child,
.dashx-brand .dbb-pay .dsz-mix-seg:only-child { border-radius: 4px; }
.dashx-brand .dbb-pay .dsz-mix-seg span { font-size: 11px; font-weight: 700; line-height: 1; color: #fff; }
.dashx-brand .dbb-pay .dsz-mix-row {
    grid-template-columns: 8px minmax(0, 1fr) auto auto auto; gap: 10px;
    min-height: 36px; padding: 6px 0; border-bottom: 1px solid var(--dbb-hair);
}
.dashx-brand .dbb-pay .dsz-mix-row:last-child { border-bottom: 0; }
.dashx-brand .dbb-pay .dsz-mix-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.dashx-brand .dbb-pay .dsz-mix-row .lbl { font-size: 13px; font-weight: 600; color: #000; }
.dashx-brand .dbb-pay .dsz-mix-row .cnt { display: inline; font-size: 12px; font-weight: 500; color: var(--dbb-ink-3); }
.dashx-brand .dbb-pay .dsz-mix-row .pct { font-size: 12px; font-weight: 700; color: var(--dbb-ink-2); }
.dashx-brand .dbb-pay .dsz-mix-row .amt { font-size: 13px; font-weight: 700; color: #000; }
.dashx-brand .dbb-pay .dsz-mix-empty {
    flex-direction: column; gap: 8px; padding: 28px 8px 16px;
    font-size: 13.5px; font-weight: 600; color: var(--dbb-ink-3);
}
.dashx-brand .dbb-pay .dsz-mix-empty i { font-size: 25px; color: var(--dbb-icon); }
.dashx-brand .dbb-footnote { margin: auto 0 0; padding-top: 12px; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--dbb-ink-3); }

/* ---- Top products ------------------------------------------------------------ */

.dashx-brand .dbb-top-list { display: flex; flex-direction: column; margin-top: 6px; }
.dashx-brand .dbb-top-row {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center;
    column-gap: 12px; row-gap: 7px; min-height: 52px; padding: 10px 0;
}
.dashx-brand .dbb-top-row + .dbb-top-row { border-top: 1px solid var(--dbb-hair); }
.dashx-brand .dbb-rank {
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: #f1f5f9; color: #000; font-size: 12px; font-weight: 700;
}
.dashx-brand .dbb-rank.is-first { background: #ecfdf5; color: #047857; }

/* ---- Low stock ------------------------------------------------------------- */

.dashx-brand .dbb-low .dbb-rows { margin-top: 6px; }
.dashx-brand .dbb-low-row { grid-template-columns: minmax(0, 1fr) auto; }
.dashx-brand .dbb-low-row .dbb-meter { grid-column: 1 / -1; }
.dashx-brand .dbb-low-q { white-space: nowrap; font-size: 13px; font-weight: 700; color: #000; }
.dashx-brand .dbb-low-row.is-out .dbb-low-q { color: #b91c1c; }
.dashx-brand .dbb-meter.is-stock { background: #fef3c7; }
.dashx-brand .dbb-meter.is-stock i { background: #d97706; }
.dashx-brand .dbb-low-row.is-out .dbb-meter.is-stock { background: #fee2e2; }
.dashx-brand .dbb-more { margin-top: auto; align-self: flex-start; min-height: 44px; }
.dashx-brand .dbb-more::after { inset: 0 -6px; }

/* ---- Busiest days (the shared helper's markup, restyled) ------------------- */

.dashx-brand .dbb-dow-body { margin-top: auto; padding-top: 16px; }
.dashx-brand .dbb-dow .dsz-dow { height: auto; gap: 8px; padding-top: 0; }
.dashx-brand .dbb-dow .dsz-dow-col { gap: 6px; }
.dashx-brand .dbb-dow .dsz-dow-val { min-height: 15px; font-size: 11px; font-weight: 700; line-height: 15px; color: #000; }
.dashx-brand .dbb-dow .dsz-dow-track {
    flex: none; width: min(64%, 24px); height: 120px; margin: 0 auto;
    display: flex; align-items: flex-end; overflow: hidden;
    background: var(--dbb-soft); border: 0; border-radius: 6px 6px 2px 2px;
}
.dashx-brand .dbb-dow .dsz-dow-fill { width: 100%; background: #059669; border-radius: 6px 6px 2px 2px; }
.dashx-brand .dbb-dow .dsz-dow-day { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--dbb-ink-3); }
.dashx-brand .dbb-dow .dsz-dow-day.peak { font-weight: 700; color: #000; }

/* ---- Footer link (phone) and the page grid --------------------------------- */

.dashx-brand .dbb-foot-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--dbb-accent); cursor: pointer;
}
.dashx-brand .dbb-foot-link i { font-size: 13.5px; }
.dashx-brand .dbb-foot-link span { text-decoration: underline; text-underline-offset: 3px; }
.dashx-brand .dbb-foot-link:hover { background: rgba(4, 120, 87, .06); }

.dashx-brand .dbb-grid,
.dashx-brand .dbb-ins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }

/* ---- Wide phone: 410 ≤ W < 600 (a 768px screen beside the sidebar) --------
   A 768px screen measures W ≈ 422 once the sidebar, gutters and scrollbar
   are taken off, so the step sits at 410 (a 430px phone stays below it). */

@container dbb (min-width: 410px) and (max-width: 599.98px) {
    .dashx-brand .dbb-band { padding: 20px 20px 48px; }
    .dashx-brand .dbb-band.no-dock { padding-bottom: 24px; }
    .dashx-brand .dbb-today-main { flex-grow: 1.2; }
    .dashx-brand .dbb-today-main,
    .dashx-brand .dbb-today-cell { padding: 8px 10px; }
    .dashx-brand .dbb-today-val,
    .dashx-brand .dbb-today-v,
    .dashx-brand .dbb-today-v.is-l9,
    .dashx-brand .dbb-today-v.is-l10,
    .dashx-brand .dbb-today-main.is-l13 .dbb-today-val { font-size: 15px; }
    .dashx-brand .dbb-today-main.is-long .dbb-today-val { font-size: 13.5px; }
    .dashx-brand .dbb-qa-tile { width: 46px; height: 46px; }
    .dashx-brand .dbb-chart { height: 240px; }
    .dashx-brand .dbb-g-m { display: inline; }
    .dashx-brand .dbb-g-s { display: none; }
}

/* From a wide phone up the period button has room for the full range. */
@container dbb (min-width: 410px) {
    .dashx-brand .dbb-wide-only { display: inline; }
    .dashx-brand .dbb-narrow-only { display: none; }
    .dashx-brand .dbb-attn-foot { grid-template-columns: 13px auto auto; justify-content: start; }
    .dashx-brand .dbb-attn-foot .dbb-textbtn { grid-column: auto; }
}

/* ---- Compact phone: W < 340 (a 360px screen) -------------------------------
   Five tiles a row stop fitting 64px each below this; at most four a row
   then, balanced in JS (--pc4: 9 is 3 + 3 + 3, 5 is 3 + 2). */

@container dbb (max-width: 339.98px) {
    .dashx-brand .dbb-qa { flex-basis: calc(100% / var(--pc4)); }
    .dashx-brand .dbb-g-s { display: none; }
    .dashx-brand .dbb-g-xs { display: inline; }
    /* a little more of the button for '2 Sep – 1 Oct 2026' */
    .dashx-brand .dbb-period { padding: 0 10px; gap: 4px; }
    .dashx-brand .dbb-attn-cell { grid-template-columns: 36px auto minmax(0, 1fr) auto auto; }
    /* today first across the band, yesterday and the last 7 days under it */
    .dashx-brand .dbb-today { flex-wrap: wrap; }
    .dashx-brand .dbb-today-main { flex-basis: 100%; }
    .dashx-brand .dbb-today-v.is-l9,
    .dashx-brand .dbb-today-v.is-l10,
    .dashx-brand .dbb-today-main.is-l13 .dbb-today-val,
    .dashx-brand .dbb-today-main.is-long .dbb-today-val,
    .dashx-brand .dbb-today-main.is-l16 .dbb-today-val { font-size: 14px; }
}

/* ---- Tablet and desktop: W ≥ 600 ------------------------------------------ */

@container dbb (min-width: 600px) {
    .dashx-brand .dbb > * + * { margin-top: 16px; }
    .dashx-brand .dbb > #dashboard-filters { margin-top: 0; }
    .dashx-brand .dbb-foot-link { display: none; }

    .dashx-brand .dbb-band { border-radius: 24px; padding: 22px 22px 48px; }
    .dashx-brand .dbb-band.no-dock { padding-bottom: 28px; }
    .dashx-brand .dbb-head { flex-wrap: nowrap; min-height: 44px; }
    .dashx-brand .dbb-id { flex: 0 1 auto; margin-right: auto; }
    .dashx-brand .dbb-logo { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
    .dashx-brand .dbb-logo img { border-radius: 11px; }
    .dashx-brand .dbb-id-name { font-size: 17px; }
    .dashx-brand .dbb-id-txt { max-width: 420px; }
    .dashx-brand .dbb-id-greet { font-size: 13px; }
    .dashx-brand .dbb-g-m { display: inline; }
    .dashx-brand .dbb-g-s { display: none; }
    .dashx-brand .dbb-store { width: auto; padding: 0 14px; }
    .dashx-brand .dbb-store .dbb-store-lbl { display: inline; }
    .dashx-brand .dbb-store .dbb-store-go { display: inline; font-size: 11px; }
    .dashx-brand .dbb-plan-row { order: 2; flex: 0 0 auto; }
    .dashx-brand .dbb-plan { height: 36px; }
    .dashx-brand .dbb-design { width: auto; padding: 0 14px; }
    .dashx-brand .dbb-design span { display: inline; }

    .dashx-brand .dbb-main {
        margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 280px;
        gap: 20px; align-items: end;
    }
    .dashx-brand .dbb-period { max-width: 260px; }
    .dashx-brand .dbb-fig-row { margin-top: 10px; min-height: 46px; }
    /* 40 / 36 / 30, stepping down on narrow tablets so the figure always fits
       beside the 280px Today panel (its room is 100cqi − 396px: padding,
       panel, gaps and the eye). Divisors are each class's widest figure in em. */
    .dashx-brand .dbb-fig { font-size: clamp(23px, calc((100cqi - 396px) / 6.8), 35px); }
    .dashx-brand .dbb-fig.dbb-fig-long { font-size: clamp(19px, calc((100cqi - 396px) / 8.2), 32px); }
    .dashx-brand .dbb-fig.dbb-fig-xl { font-size: clamp(17px, calc((100cqi - 396px) / 10.3), 26px); }
    .dashx-brand .dbb-fig.dbb-fig-xxl { font-size: clamp(15px, calc((100cqi - 396px) / 12.4), 23px); }
    .dashx-brand .dbb-eye { width: 40px; height: 40px; }
    .dashx-brand .dbb-eye::after { display: none; }
    .dashx-brand .dbb-note { margin-top: 12px; }
    .dashx-brand .dbb-note.no-delta { display: flex; }
    .dashx-brand .dbb-fig-cap { display: block; }

    .dashx-brand .dbb-today {
        display: block; margin-top: 0; padding: 14px 16px; border-radius: 16px;
        background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    }
    .dashx-brand .dbb-today-main {
        width: calc(100% + 16px); margin: -6px -8px; padding: 6px 8px; min-height: 52px; gap: 2px;
        background: none; border: 0; border-radius: 10px;
    }
    .dashx-brand .dbb-today-main:hover { background: rgba(255, 255, 255, .08); }
    .dashx-brand .dbb-today-cap { width: auto; min-width: 0; font-size: 12px; justify-content: space-between; }
    .dashx-brand .dbb-today-cap i { display: inline; font-size: 12px; color: rgba(255, 255, 255, .86); }
    .dashx-brand .dbb-today-val,
    .dashx-brand .dbb-today-main.is-l13 .dbb-today-val,
    .dashx-brand .dbb-today-main.is-long .dbb-today-val,
    .dashx-brand .dbb-today-main.is-l16 .dbb-today-val { font-size: 19px; letter-spacing: -.02em; }
    .dashx-brand .dbb-today-main.is-xl .dbb-today-val { font-size: 18px; }
    .dashx-brand .dbb-v-full { display: inline; }
    .dashx-brand .dbb-v-short { display: none; }
    .dashx-brand .dbb-today-sub { display: block; }
    .dashx-brand .dbb-today-rule { display: block; height: 1px; margin: 12px 0; background: rgba(255, 255, 255, .16); }
    .dashx-brand .dbb-today-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .dashx-brand .dbb-today-cell { padding: 0; gap: 2px; background: none; border: 0; border-radius: 0; }
    .dashx-brand .dbb-today-cell .dbb-today-cap { font-size: 12px; }
    .dashx-brand .dbb-today-v,
    .dashx-brand .dbb-today-v.is-l9,
    .dashx-brand .dbb-today-v.is-l10 { font-size: 15px; }

    /* Items stop growing at 120px, so a short dock (staff with three
       shortcuts) is a centred group rather than tiles strewn across it. */
    .dashx-brand .dbb-dock { margin: -24px 16px 0; padding: 14px 12px; border-radius: 22px; }
    .dashx-brand .dbb-qa { min-height: 80px; flex-basis: min(120px, calc(100% / var(--pc))); }
    .dashx-brand .dbb-qa-tile { width: 48px; height: 48px; border-radius: 15px; }
    .dashx-brand .dbb-qa-lbl { font-size: 12.5px; }

    .dashx-brand .dbb-setup .dsb-setup-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

    .dashx-brand .dbb-card { border-radius: 20px; padding: 20px; }
    .dashx-brand .dbb-title { font-size: 15px; }
    .dashx-brand .dbb-empty { padding: 24px 8px 12px; }

    /* Needs attention: one row of cells with hairline dividers (3 a row here). */
    .dashx-brand .dbb-attn-list {
        display: grid; grid-template-columns: repeat(var(--k3), minmax(0, 1fr));
        margin: 14px -20px -20px; border-top: 1px solid var(--dbb-hair);
    }
    .dashx-brand .dbb-attn-cell {
        min-height: 112px; padding: 14px 20px 16px;
        grid-template-columns: 40px auto minmax(0, 1fr);
        grid-template-areas: "chip t t" "v v v" "d d tag";
        align-content: start; row-gap: 6px;
    }
    .dashx-brand .dbb-attn-cell + .dbb-attn-cell::before { display: none; }
    .dashx-brand .dbb-attn-cell + .dbb-attn-cell { border-left: 1px solid var(--dbb-hair); }
    .dashx-brand .dbb-attn-cell:nth-child(3n+1) { border-left: 0; }
    .dashx-brand .dbb-attn-cell:nth-child(n+4) { border-top: 1px solid var(--dbb-hair); }
    .dashx-brand .dbb-attn-t { font-size: 13px; }
    .dashx-brand .dbb-attn-v { margin-top: 4px; font-size: 15px; line-height: 1.25; }
    .dashx-brand .dbb-attn-v.is-sub {
        grid-area: v; margin-top: 2px; white-space: normal;
        font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    /* in a cell the parts wrap; the dot that would open a line is clipped */
    .dashx-brand .dbb-attn-v .dbb-parts { display: flex; margin-left: -14px; }
    .dashx-brand .dbb-attn-v .dbb-parts > span { position: relative; padding-left: 14px; }
    .dashx-brand .dbb-attn-v .dbb-parts > span::before,
    .dashx-brand .dbb-attn-v .dbb-parts > span:first-child::before { content: "\00b7"; position: absolute; top: 0; left: 0; width: 14px; }
    .dashx-brand .dbb-attn-d { padding-left: 0; font-size: 12px; color: var(--dbb-ink-2); }
    .dashx-brand .dbb-attn-cell .dbb-tag { justify-self: start; }
    .dashx-brand .dbb-attn-cell .dbb-chev { display: none; }
    .dashx-brand .dbb-attn-foot { margin: 0 -20px -20px; padding: 12px 20px; }
    .dashx-brand .dbb-attn-list + .dbb-attn-foot { margin-top: 0; }
    .dashx-brand .dbb-attn.is-clear { padding: 0 20px; }
    .dashx-brand .dbb-attn.is-clear .dbb-attn-foot { margin: 0 -20px; }
    .dashx-brand .dbb-clear-copy { flex-direction: row; align-items: baseline; gap: 10px; }

    .dashx-brand .dbb-flow .dbb-chart { height: auto; flex: 1 1 0; min-height: 260px; }

    /* Payments mix shares its row with a taller card: its value rows absorb
       the height (up to the Recent sales rhythm), and the footnote is ruled
       off as the card's foot, as is Business performance's beside it. */
    .dashx-brand .dbb-pay-body { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 16px; }
    .dashx-brand .dbb-pay .dsz-mix { flex: 1 1 auto; display: flex; flex-direction: column; }
    .dashx-brand .dbb-pay .dsz-mix-rows { flex: 1 1 auto; display: flex; flex-direction: column; }
    .dashx-brand .dbb-pay .dsz-mix-row { flex: 1 1 0; min-height: 40px; max-height: 56px; }
    .dashx-brand .dbb-pay .dsz-mix-empty { flex: 1 1 auto; justify-content: center; }
    .dashx-brand .dbb-pay .dbb-footnote,
    .dashx-brand .dbb-perf .dbb-footnote { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--dbb-hair); }
    .dashx-brand .dbb-dow .dsz-dow-track { height: 140px; }

    .dashx-brand .dbb-grid { gap: 16px; }
    .dashx-brand .dbb-ins { gap: 16px; }
}

/* ---- Tablet only: 600 ≤ W < 880 --------------------------------------------- */

@container dbb (min-width: 600px) and (max-width: 879.98px) {
    /* the store button as its icon, so the business name keeps its room */
    .dashx-brand .dbb-store { width: 36px; padding: 0; }
    .dashx-brand .dbb-store .dbb-store-lbl,
    .dashx-brand .dbb-store .dbb-store-go { display: none; }

    .dashx-brand .dbb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dashx-brand .dbb-flow { grid-column: 1 / -1; grid-row: 1; }
    /* Breakdown full width: money in | money out side by side, Net under both */
    .dashx-brand .dbb-bd {
        grid-column: 1 / -1; grid-row: 2;
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-content: start;
    }
    .dashx-brand .dbb-bd > .dbb-card-head,
    .dashx-brand .dbb-bd > .dbb-net { grid-column: 1 / -1; }
    .dashx-brand .dbb-bd > .dbb-card-head + .dbb-cap { grid-area: 2 / 1; }
    .dashx-brand .dbb-bd > .dbb-card-head + .dbb-cap + .dbb-rows { grid-area: 3 / 1; }
    .dashx-brand .dbb-bd > .dbb-rows + .dbb-cap { grid-area: 2 / 2; }
    .dashx-brand .dbb-bd > .dbb-rows + .dbb-cap + .dbb-rows { grid-area: 3 / 2; align-self: start; margin-bottom: 0; }
    .dashx-brand .dbb-bd > .dbb-net { grid-row: 4; margin-top: 12px; }
    /* then the two list cards as a pair */
    .dashx-brand .dbb-recent { grid-column: 1 / span 3; grid-row: 3; }
    .dashx-brand .dbb-pay { grid-column: 4 / span 3; grid-row: 3; }
    .dashx-brand .dbb-grid.no-pay > .dbb-recent { grid-column: 1 / -1; }
    .dashx-brand .dbb-ins { grid-column: 1 / -1; grid-row: 4; grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dashx-brand .dbb-ins > .dbb-top,
    .dashx-brand .dbb-ins > .dbb-low { grid-column: span 3; }
    .dashx-brand .dbb-ins:not(.has-low) > .dbb-top,
    .dashx-brand .dbb-ins.no-top > .dbb-low,
    .dashx-brand .dbb-ins > .dbb-dow { grid-column: 1 / -1; }
    .dashx-brand .dbb-ins:not(.has-low) .dbb-top-list {
        display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--tr), auto);
        grid-auto-flow: column; column-gap: 32px;
    }
    .dashx-brand .dbb-ins:not(.has-low) .dbb-top-row.is-col2 { border-top: 0; }

    /* Needs attention cells are a third of the card here: chip and overdue
       tag on top, then the title on its own line, so nothing truncates. */
    .dashx-brand .dbb-attn.is-k3p .dbb-attn-cell {
        padding: 14px 16px 16px; row-gap: 4px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-areas: "chip . tag" "t t t" "v v v" "d d d";
    }
    .dashx-brand .dbb-attn.is-k3p .dbb-attn-t { margin-top: 8px; }
    .dashx-brand .dbb-attn.is-k3p .dbb-attn-cell .dbb-tag { margin-left: 0; justify-self: end; }
    /* four or five cells: three on top, the rest sharing the second row's
       full width, so the dividers stay continuous */
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell { grid-column: span 2; }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell:nth-child(4):nth-last-child(2),
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell:nth-child(5):last-child { grid-column: span 3; }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell:nth-child(4):last-child { grid-column: 1 / -1; }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell:nth-child(4) { border-left: 0; }
}

/* ---- Desktop: W ≥ 880 -------------------------------------------------------- */

@container dbb (min-width: 880px) {
    .dashx-brand .dbb-band { border-radius: 24px; padding: 24px 28px 52px; }
    .dashx-brand .dbb-g-l { display: inline; }
    .dashx-brand .dbb-g-m { display: none; }
    .dashx-brand .dbb-main { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
    .dashx-brand .dbb-fig { font-size: 39px; }
    .dashx-brand .dbb-fig.dbb-fig-long { font-size: 35px; }
    .dashx-brand .dbb-fig.dbb-fig-xl { font-size: 30px; }
    .dashx-brand .dbb-fig.dbb-fig-xxl { font-size: 25px; }
    .dashx-brand .dbb-today-main.is-xl .dbb-today-val { font-size: 18px; }

    .dashx-brand .dbb-dock { margin: -24px 20px 0; }
    .dashx-brand .dbb-qa { flex-basis: min(120px, calc(100% / var(--n))); }

    .dashx-brand .dbb-attn-list { grid-template-columns: repeat(var(--k), minmax(0, 1fr)); }
    .dashx-brand .dbb-attn-cell:nth-child(3n+1) { border-left: 1px solid var(--dbb-hair); }
    .dashx-brand .dbb-attn-cell:first-child { border-left: 0; }
    .dashx-brand .dbb-attn-cell:nth-child(n+4) { border-top: 0; }
    /* four or five cells in one row: the stacked cell layout */
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell {
        padding: 14px 16px 16px; row-gap: 4px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        grid-template-areas: "chip . tag" "t t t" "v v v" "d d d";
    }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-t { margin-top: 8px; }
    .dashx-brand .dbb-attn.is-k4p .dbb-attn-cell .dbb-tag { margin-left: 0; justify-self: end; }

    .dashx-brand .dbb-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch; }
    .dashx-brand .dbb-flow { grid-column: 1 / span 7; grid-row: 1; }
    .dashx-brand .dbb-bd { grid-column: 8 / span 5; grid-row: 1; }
    .dashx-brand .dbb-recent { grid-column: 1 / span 7; grid-row: 2; }
    .dashx-brand .dbb-pay { grid-column: 8 / span 5; grid-row: 2; }
    .dashx-brand .dbb-grid.no-pay > .dbb-recent { grid-column: 1 / -1; }
    /* Breakdown rows a touch tighter, so row 1 is not set by its height */
    .dashx-brand .dbb-bd-row { min-height: 52px; padding-top: 6px; padding-bottom: 6px; row-gap: 5px; }
    .dashx-brand .dbb-cap { margin-top: 10px; }
    .dashx-brand .dbb-ins { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .dashx-brand .dbb-ins > * { grid-column: span 4; }
    .dashx-brand .dbb-ins-n2 > * { grid-column: span 6; }
    .dashx-brand .dbb-ins-n1 > * { grid-column: 1 / -1; }
    .dashx-brand .dbb-ins-n1 .dbb-top-list {
        display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--tr), auto);
        grid-auto-flow: column; column-gap: 32px;
    }
    .dashx-brand .dbb-ins-n1 .dbb-top-row.is-col2 { border-top: 0; }

}

/* ---- Motion: first render only, never on a soft redraw --------------------- */

@keyframes dbb-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.dashx-brand:not(.is-soft) .dbb-band { animation: dbb-rise .26s var(--dbb-ease) backwards; }
.dashx-brand:not(.is-soft) .dbb-dock { animation: dbb-rise .26s var(--dbb-ease) .06s backwards; }
.dashx-brand:not(.is-soft) .dbb-anim { animation: dbb-rise .26s var(--dbb-ease) backwards; animation-delay: calc(100ms + var(--i, 0) * 40ms); }

@media (prefers-reduced-motion: reduce) {
    .dashx-brand .dbb *,
    .dashx-brand .dbb *::before,
    .dashx-brand .dbb *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Picker thumbnail: the green band with the white dock over its edge, then
   a chart card and a breakdown card. CSS only.
   ========================================================================== */

.dshp-t.dshp-t-brand { padding: 0; overflow: hidden; background: #f4f7f5; }
.dshp-t-brand .tbb-band {
    position: absolute; top: 6px; left: 6px; right: 6px; height: 60px; border-radius: 10px;
    background:
        linear-gradient(112deg, transparent 57%, rgba(255, 255, 255, .07) 57% 71%, transparent 71%),
        linear-gradient(135deg, #065f46, #064e3b 55%, #05684c);
}
.dshp-t-brand .tbb-band > i { position: absolute; display: block; }
.dshp-t-brand .tbb-logo { left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.dshp-t-brand .tbb-name { left: 21px; top: 8px; width: 38px; height: 4px; border-radius: 2px; background: #fff; }
.dshp-t-brand .tbb-greet { left: 21px; top: 14px; width: 24px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .6); }
.dshp-t-brand .tbb-p1 { right: 7px; top: 7px; width: 14px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.dshp-t-brand .tbb-p2 { right: 25px; top: 7px; width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.dshp-t-brand .tbb-eyebrow { left: 7px; top: 25px; width: 20px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.dshp-t-brand .tbb-period { left: 31px; top: 24px; width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.dshp-t-brand .tbb-fig { left: 7px; top: 33px; width: 52px; height: 8px; border-radius: 3px; background: #fff; }
.dshp-t-brand .tbb-eye { left: 63px; top: 33px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dshp-t-brand .tbb-delta { left: 7px; top: 45px; width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.dshp-t-brand .tbb-today {
    position: absolute; right: 7px; top: 22px; width: 34%; height: 26px; border-radius: 6px; box-sizing: border-box;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
}
.dshp-t-brand .tbb-today i { position: absolute; display: block; border-radius: 2px; }
.dshp-t-brand .tbb-today i:nth-child(1) { left: 6px; top: 5px; width: 50%; height: 5px; background: #fff; }
.dshp-t-brand .tbb-today i:nth-child(2) { left: 6px; top: 15px; width: 30%; height: 3px; background: rgba(255, 255, 255, .75); }
.dshp-t-brand .tbb-today i:nth-child(3) { left: 52%; top: 15px; width: 30%; height: 3px; background: rgba(255, 255, 255, .75); }
.dshp-t-brand .tbb-dock {
    position: absolute; top: 56px; left: 16px; right: 16px; height: 20px; border-radius: 7px;
    display: grid; grid-template-columns: repeat(8, 1fr); place-items: center;
    background: #fff; box-shadow: 0 4px 10px -4px rgba(6, 78, 59, .35);
}
.dshp-t-brand .tbb-dock i { display: block; width: 9px; height: 9px; border-radius: 3px; }
.dshp-t-brand .tbb-dock i:nth-child(1) { background: linear-gradient(135deg, #047857, #10b981); }
.dshp-t-brand .tbb-dock i:nth-child(2) { background: linear-gradient(135deg, #065f46, #059669); }
.dshp-t-brand .tbb-dock i:nth-child(3) { background: linear-gradient(135deg, #b45309, #d97706); }
.dshp-t-brand .tbb-dock i:nth-child(4) { background: linear-gradient(135deg, #c2410c, #eb6834); }
.dshp-t-brand .tbb-dock i:nth-child(5) { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.dshp-t-brand .tbb-dock i:nth-child(6) { background: linear-gradient(135deg, #4338ca, #6366f1); }
.dshp-t-brand .tbb-dock i:nth-child(7) { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.dshp-t-brand .tbb-dock i:nth-child(8) { background: linear-gradient(135deg, #334155, #64748b); }
.dshp-t-brand .tbb-cards {
    position: absolute; top: 82px; bottom: 6px; left: 6px; right: 6px;
    display: grid; grid-template-columns: 7fr 5fr; gap: 5px; overflow: hidden;
}
.dshp-t-brand .tbb-card {
    position: relative; display: block; overflow: hidden;
    background: #fff; border: 1px solid #e6ebe8; border-radius: 6px;
}
.dshp-t-brand .tbb-flow i {
    position: absolute; left: 8px; right: 8px; height: 12px; display: block;
    border-top: 1.5px solid; border-radius: 60% 40% 0 0 / 100% 70% 0 0;
}
.dshp-t-brand .tbb-flow i:nth-child(1) { top: 7px; border-color: #059669; }
.dshp-t-brand .tbb-flow i:nth-child(2) { top: 13px; border-color: #2a78d6; }
.dshp-t-brand .tbb-flow i:nth-child(3) { top: 19px; border-color: #eb6834; }
.dshp-t-brand .tbb-bd i { position: absolute; left: 0; right: 0; height: 4px; display: block; }
.dshp-t-brand .tbb-bd i::before {
    content: ""; position: absolute; left: 6px; top: 0; width: 4px; height: 4px; border-radius: 50%;
}
.dshp-t-brand .tbb-bd i::after {
    content: ""; position: absolute; left: 14px; top: .5px; width: 45%; height: 3px; border-radius: 2px; background: #cbd5e1;
}
.dshp-t-brand .tbb-bd i:nth-child(1) { top: 5px; }
.dshp-t-brand .tbb-bd i:nth-child(2) { top: 10px; }
.dshp-t-brand .tbb-bd i:nth-child(3) { top: 15px; }
.dshp-t-brand .tbb-bd i:nth-child(4) { top: 20px; }
.dshp-t-brand .tbb-bd i:nth-child(5) { top: 25px; }
.dshp-t-brand .tbb-bd i:nth-child(1)::before { background: #059669; }
.dshp-t-brand .tbb-bd i:nth-child(2)::before { background: #7c3aed; }
.dshp-t-brand .tbb-bd i:nth-child(3)::before { background: #0d9488; }
.dshp-t-brand .tbb-bd i:nth-child(4)::before { background: #2a78d6; }
.dshp-t-brand .tbb-bd i:nth-child(5)::before { background: #eb6834; }
.dshp-t-brand .tbb-bd u { position: absolute; left: 6px; right: 6px; top: 30px; height: 1px; display: block; background: #e6ebe8; }
.dshp-t-brand .tbb-bd b { position: absolute; left: 6px; top: 33px; width: 30%; height: 3px; display: block; border-radius: 2px; background: #047857; }

/* ==========================================================================
   Calmer band (Oct 2026). The band was crowded, above all on phones: the
   greeting, plan pill, store and Design buttons now sit on a light bar on
   the page canvas above it, the caption line went into the figure's tooltip,
   and Today is one figure (yesterday / last 7 days dropped; Busiest days
   below covers the week). The green holds the business, its revenue and
   today, with more air around each.
   ========================================================================== */

/* Options (dash-options.js): the band's first row, far right; the row stops
   short of the corner so the flag stays clear. Flag size and corner radius
   follow the band. */
.dashx-brand .dbb-band { --dbx-flag-w: 92px; --dbx-flag-r: 20px; }
.dashx-brand .dbb-head { position: relative; z-index: 1; padding-right: 36px; }
.dashx-brand .dbb-more-btn { order: 2; margin-left: auto; }

/* The band: identity, then the headline, then Today, with room between. */
.dashx-brand .dbb-band { padding: 20px 18px 46px; }
.dashx-brand .dbb-band.no-dock { padding-bottom: 22px; }
.dashx-brand .dbb-band::before { display: none; }
.dashx-brand .dbb-head { min-height: 0; }
.dashx-brand .dbb-id-name { font-size: 16px; }
.dashx-brand .dbb-main { margin-top: 22px; }
.dashx-brand .dbb-eyebrow-row { justify-content: space-between; }
.dashx-brand .dbb-period { max-width: calc(100% - 128px); }
.dashx-brand .dbb-fig-row { margin-top: 10px; }
.dashx-brand .dbb-note { margin-top: 10px; }

/* Today: one quiet row under a hairline. Exact, never masked. */
.dashx-brand .dbb-tday {
    display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
    margin-top: 18px; padding: 14px 0 0; cursor: pointer;
    font: inherit; text-align: left; color: #fff;
    background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-radius: 0;
}
.dashx-brand .dbb-tday-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dashx-brand .dbb-tday-cap { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.dashx-brand .dbb-tday-sub { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .80); white-space: nowrap; }
.dashx-brand .dbb-tday-val {
    flex-shrink: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dashx-brand .dbb-tday .bi-chevron-right { flex-shrink: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.dashx-brand .dbb-tday:hover .dbb-tday-val { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@container dbb (max-width: 339.98px) {
    .dashx-brand .dbb-tday-val { font-size: 16px; }
}

@container dbb (min-width: 600px) {
    .dashx-brand .dbb-band { --dbx-flag-w: 116px; --dbx-flag-r: 24px; }
    .dashx-brand .dbb-head { padding-right: 44px; }
    .dashx-brand .dbx-opt-btn { width: auto; padding: 0 15px; }
    .dashx-brand .dbx-opt-lbl { display: inline; }

    .dashx-brand .dbb-band { padding: 26px 28px 54px; }
    .dashx-brand .dbb-band.no-dock { padding-bottom: 28px; }
    .dashx-brand .dbb-id-name { font-size: 18px; }
    .dashx-brand .dbb-main { margin-top: 26px; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: end; }
    .dashx-brand .dbb-eyebrow-row { justify-content: flex-start; }
    .dashx-brand .dbb-fig { font-size: clamp(23px, calc((100cqi - 380px) / 6.8), 37px); }
    .dashx-brand .dbb-fig.dbb-fig-long { font-size: clamp(19px, calc((100cqi - 380px) / 8.2), 32px); }
    .dashx-brand .dbb-fig.dbb-fig-xl { font-size: clamp(17px, calc((100cqi - 380px) / 10.3), 26px); }
    .dashx-brand .dbb-fig.dbb-fig-xxl { font-size: clamp(15px, calc((100cqi - 380px) / 12.4), 23px); }

    /* Today becomes one glass panel beside the headline. */
    .dashx-brand .dbb-tday {
        flex-direction: column; align-items: flex-start; gap: 6px; position: relative;
        margin: 0; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
        background: rgba(255, 255, 255, .10); transition: background .15s ease;
    }
    .dashx-brand .dbb-tday:hover { background: rgba(255, 255, 255, .16); }
    .dashx-brand .dbb-tday:hover .dbb-tday-val { text-decoration: none; }
    .dashx-brand .dbb-tday-copy { display: contents; }
    .dashx-brand .dbb-tday-cap { order: 0; font-size: 12.5px; }
    .dashx-brand .dbb-tday-val { order: 1; font-size: 21px; }
    .dashx-brand .dbb-tday-sub { order: 2; }
    .dashx-brand .dbb-tday .bi-chevron-right { position: absolute; top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashx-brand .dbb-tday { transition: none; }
}
/* narrowest phones: the period button drops under the eyebrow rather than clip */
@container dbb (max-width: 339.98px) {
    .dashx-brand .dbb-eyebrow-row { flex-wrap: wrap; row-gap: 8px; }
    .dashx-brand .dbb-period { max-width: 100%; }
}

/* ---- Last 7 days bar card ---------------------------------------------------- */
.dashx-brand .dbb-week { display: flex; flex-direction: column; }
.dashx-brand .dbb-week .dbb-week-chart { height: 200px; }
.dashx-brand .dbb-week-tot { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.dashx-brand .dbb-week-tot b { font-size: 15px; font-weight: 800; color: #000; line-height: 1.2; white-space: nowrap; }
.dashx-brand .dbb-week-tot span { font-size: 11.5px; font-weight: 600; color: #64748b; }
@container dbb (min-width: 600px) and (max-width: 879.98px) {
    .dashx-brand .dbb-ins > .dbb-week { grid-column: 1 / -1; }
}
@container dbb (min-width: 880px) {
    .dashx-brand .dbb-ins-n4 > * { grid-column: span 6; }
    .dashx-brand .dbb-week .dbb-week-chart { height: 240px; }
}
@container dbb (min-width: 880px) {
    .dashx-brand .dbb-week .dbb-week-chart { height: auto; flex: 1 1 0; min-height: 240px; }
}
