/* ============================================================================
   PandoraBot Dashboard Shell v1 — sidebar navigation, health cards, docked
   live preview, visual standardization. Loaded on top of the inline page
   styles; activates only when dashboard.js adds .pbd-shell to <body>.
   ============================================================================ */

/* ---- Sidebar ------------------------------------------------------------ */
body.pbd-shell { padding-left: 224px; }
#pbd-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 208px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 12px;
    /* the page styles ALL nav elements white+!important for its top bar */
    background: var(--sb-ink) !important;
    border-bottom: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-y: auto;
}
#pbd-sidebar .pbd-brand {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 4px 10px 14px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}
#pbd-sidebar .pbd-brand img { width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px; }
#pbd-sidebar .pbd-group-title {
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 10px 4px;
}
#pbd-sidebar .pbd-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}
#pbd-sidebar .pbd-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; transform: none; }
#pbd-sidebar .pbd-nav-item.active { background: rgba(255, 255, 255, 0.09); color: #fff; box-shadow: inset 3px 0 0 var(--sb-coral); }
#pbd-sidebar .pbd-nav-ico { width: 18px; text-align: center; flex: 0 0 18px; }

/* ---- Content area: managed cards hidden unless active group ------------- */
body.pbd-shell .card[data-pbd-group] { display: none; }
body.pbd-shell .card[data-pbd-group].pbd-visible { display: block; }
body.pbd-shell #onboarding-banner { display: none; }
body.pbd-shell #onboarding-banner.pbd-visible { display: block; }

/* Sections always expanded inside a focused page — chevrons are noise */
body.pbd-shell .card.pbd-visible .section-collapsible { cursor: default; }
body.pbd-shell .card.pbd-visible .section-collapsible .chevron,
body.pbd-shell .card.pbd-visible .sec-summary { display: none !important; }

/* ---- Standardized card + heading language ------------------------------- */
body.pbd-shell .card {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-sm);
    padding: 22px;
}
body.pbd-shell .card > h2 { font-size: 15px; font-weight: 600; color: var(--sb-ink); }

/* ---- Health cards (Overview) -------------------------------------------- */
#pbd-health {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
#pbd-health.pbd-visible { display: grid; }
.pbd-hcard {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pbd-hcard .pbd-hrow { display: flex; align-items: center; gap: 8px; }
.pbd-hdot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.pbd-hdot.ok { background: var(--sb-success); }
.pbd-hdot.warn { background: var(--sb-warning); }
.pbd-hdot.error { background: var(--sb-danger); }
.pbd-hdot.off { background: var(--sb-border-strong); }
.pbd-hcard .pbd-hlabel { font-weight: 600; font-size: 13.5px; color: var(--sb-ink); }
.pbd-hcard .pbd-hdetail { font-size: 12px; color: var(--sb-text-secondary); line-height: 1.45; word-break: break-word; }
.pbd-hcard .pbd-htest {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sb-ink-soft);
    background: #fff;
    border: 1px solid var(--sb-border-strong);
    border-radius: var(--sb-radius-sm);
    padding: 4px 10px;
    cursor: pointer;
}
.pbd-hcard .pbd-htest:hover { background: var(--sb-surface-hover); }

/* ---- Docked persistent preview (wide screens) ---------------------------- */
@media (min-width: 1200px) {
    body.pbd-shell.pbd-preview-docked { padding-right: 384px; }
    body.pbd-shell.pbd-preview-docked #pb-preview-drawer {
        transform: none !important;
        top: 0; right: 0; bottom: 0;
        width: 372px;
        border-left: 1px solid var(--sb-border);
        box-shadow: none;
    }
    body.pbd-shell.pbd-preview-docked #pb-preview-drawer .pb-prev-btn[title="Close"] { display: none; }
}

/* ---- Narrow screens: sidebar becomes a top chip strip -------------------- */
@media (max-width: 1023px) {
    body.pbd-shell { padding-left: 0; }
    #pbd-sidebar {
        position: sticky;
        top: 0;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 10px;
        gap: 6px;
    }
    #pbd-sidebar .pbd-brand, #pbd-sidebar .pbd-group-title { display: none; }
    #pbd-sidebar .pbd-nav-item { white-space: nowrap; width: auto; }
}

/* Old horizontal section-pill nav is redundant with the sidebar */
body.pbd-shell #sec-nav { display: none !important; }

/* Section-specific tips + quick-default chips under the page header */
#pbd-tips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.pbd-tip {
    font-size: 12px;
    color: var(--sb-text-secondary);
    background: var(--sb-surface-muted);
    border: 1px solid var(--sb-border);
    border-radius: 9px;
    padding: 6px 11px;
    line-height: 1.45;
}
.pbd-tip-action {
    color: var(--sb-coral);
    background: var(--sb-coral-soft);
    border-color: var(--sb-coral-muted);
    font-weight: 600;
    cursor: pointer;
}
.pbd-tip-action:hover { background: #FFE4E6; }

/* unsaved-changes badge in the preview header */
#pbd-dirty {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-warning);
    background: var(--sb-warning-soft);
    border: 1px solid #F3E2B8;
    border-radius: 999px;
    padding: 3px 8px;
    margin-right: 8px;
    white-space: nowrap;
}
#pbd-dirty.show { display: inline-block; }

/* ============================================================================
   Feature hero cards — summary + illustration, form hidden behind Configure
   ============================================================================ */
body.pbd-shell .pbd-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 6px;
}
@media (max-width: 900px) { body.pbd-shell .pbd-hero { grid-template-columns: 1fr; } }
.pbd-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: none;
}
.pbd-badge-on  { background: var(--sb-success-soft); color: var(--sb-success); }
.pbd-badge-off { background: var(--sb-surface-muted); color: var(--sb-text-muted); }
.pbd-hero-desc { font-size: 13.5px; color: var(--sb-ink-soft); margin: 0 0 10px; line-height: 1.55; }
.pbd-hero-bullets { margin: 0 0 14px; padding: 0; list-style: none; }
.pbd-hero-bullets li {
    font-size: 12.5px; color: var(--sb-text-secondary); padding: 3px 0 3px 22px; position: relative;
}
.pbd-hero-bullets li::before { content: '✓'; position: absolute; left: 2px; color: var(--sb-success); font-weight: 700; }
.pbd-configure {
    font-size: 12.5px; font-weight: 600; color: var(--sb-ink-soft);
    background: #fff; border: 1px solid var(--sb-border-strong); border-radius: var(--sb-radius-sm);
    padding: 8px 16px; cursor: pointer; box-shadow: none;
}
.pbd-configure:hover { border-color: var(--sb-border-strong); background: var(--sb-surface-hover); }
body.pbd-shell .pbd-config-body { display: none; margin-top: 14px; border-top: 1px dashed var(--sb-border); padding-top: 14px; }
body.pbd-shell .pbd-config-body.open { display: block; }

/* Illustrations — skeleton mockups */
.pbd-illo {
    background: var(--sb-surface-muted); border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md);
    padding: 16px; min-height: 130px;
    display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.pbd-illo-dark { background: var(--sb-ink-soft); border-color: var(--sb-ink-soft); align-items: center; }
.pbd-sk { height: 9px; border-radius: 5px; background: var(--sb-border); }
.pbd-sk-w60 { width: 60%; } .pbd-sk-w40 { width: 40%; }
.pbd-illo-price { font-size: 17px; font-weight: 700; color: var(--sb-ink); }
.pbd-illo-bubble {
    background: var(--sb-coral-soft); color: var(--sb-ink); font-size: 12.5px; font-weight: 600;
    border-radius: var(--sb-radius-md); padding: 8px 12px; align-self: flex-start;
}
.pbd-illo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pbd-illo-chips span {
    background: #fff; border: 1px solid var(--sb-border-strong); color: var(--sb-ink-soft);
    font-size: 11.5px; font-weight: 600; border-radius: 8px; padding: 4px 10px;
}
.pbd-illo-popup {
    background: #fff; border-radius: var(--sb-radius-md); padding: 14px 16px;
    border: 1px solid var(--sb-border); box-shadow: var(--sb-shadow-sm);
    font-size: 13px; color: var(--sb-ink); display: flex; flex-direction: column; gap: 8px;
}
.pbd-illo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.pbd-illo-grid div {
    background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md);
    font-size: 11px; font-weight: 600; color: var(--sb-ink-soft); padding: 10px 4px; line-height: 1.7;
}
.pbd-illo-flow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--sb-text-secondary); }
.pbd-illo-flow span {
    background: #fff; border: 1px solid var(--sb-border); border-radius: 8px;
    padding: 5px 9px; font-size: 11.5px; font-weight: 600; color: var(--sb-ink-soft);
}

/* split-card illustration extras */
.pbd-illo-coupon {
    background: var(--sb-warning-soft) !important; border-color: #F3E2B8 !important;
    color: var(--sb-warning) !important; font-weight: 700 !important;
}
.pbd-illo-code {
    background: var(--sb-ink); color: #C7F0DA; font-family: monospace;
    font-size: 11px; border-radius: 8px; padding: 10px 12px;
    word-break: break-all; line-height: 1.5;
}

/* ============================================================================
   Sticky save bar + completeness strip + assistant-type card polish
   ============================================================================ */
#pbd-savebar {
    position: fixed;
    /* below the 64px top nav — at nav height it covered View Bot / Logout */
    top: 74px;
    right: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    padding: 5px 6px 5px 14px;
    box-shadow: 0 4px 14px rgba(17, 19, 47, 0.08);
}
#pbd-savebar:has(#pbd-save-state:empty) { padding-left: 6px; }
body.pbd-shell.pbd-preview-docked #pbd-savebar { right: 400px; }
#pbd-save-state { font-size: 12px; font-weight: 600; }
#pbd-save-state.dirty  { color: var(--sb-warning); }
#pbd-save-state.saved  { color: var(--sb-success); }
#pbd-save-state.failed { color: var(--sb-danger); }
#pbd-save-btn {
    background: var(--sb-coral);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--sb-coral);
    border-radius: var(--sb-radius-sm);
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: none;
}
#pbd-save-btn:hover { background: var(--sb-coral-hover); border-color: var(--sb-coral-hover); }
#pbd-save-btn:disabled { opacity: 0.6; cursor: default; }

#pbd-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pbd-prog-chip {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-text-secondary);
    background: var(--sb-surface-muted);
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    padding: 4px 11px;
}
.pbd-prog-chip.done {
    color: var(--sb-success);
    background: var(--sb-success-soft);
    border-color: #CBEBD9;
}

/* Assistant type cards: clearer selected state with a check badge */
body.pbd-shell .sel-card { position: relative; }
body.pbd-shell .sel-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: var(--sb-coral);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: none;
}

/* channel card illustrations */
.pbd-illo-social { display: flex; gap: 10px; justify-content: center; }
.pbd-illo-social span {
    flex: 0 0 74px; text-align: center; border-radius: 12px;
    padding: 10px 4px; font-size: 11px; font-weight: 600; color: var(--sb-ink-soft);
    line-height: 1.9; border: 1px solid var(--sb-border);
}
.pbd-illo-order {
    background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md);
    padding: 12px 14px; font-size: 12.5px; color: var(--sb-ink-soft); line-height: 1.7;
    align-self: center; min-width: 190px;
}
.pbd-illo-track { display: flex; gap: 4px; margin-top: 8px; }
.pbd-illo-track i {
    flex: 1; height: 5px; border-radius: 3px; background: var(--sb-border);
}
.pbd-illo-track i.on { background: var(--sb-success); }

/* completeness chips belong to the Business page (and Overview) only */
#pbd-progress { display: none; }
body[data-pbd-group="essentials"] #pbd-progress,
body[data-pbd-group="overview"] #pbd-progress { display: flex; }

/* business-section illustrations */
.pbd-illo-botcard {
    background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md);
    padding: 14px; min-width: 210px; align-self: center;
}
.pbd-illo-botrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sb-ink); }
.pbd-illo-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft, var(--sb-coral-soft));
    display: grid; place-items: center; font-size: 15px;
}

/* cart integration 5-step explainer chart */
.pbd-cartflow { display: flex; align-items: flex-start; gap: 4px; justify-content: center; }
.pbd-cf-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pbd-cf-ico {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    background: var(--sb-surface-muted); border: 1px solid var(--sb-border-strong);
    display: grid; place-items: center; font-size: 19px;
}
.pbd-cf-ico i {
    position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; border-radius: 50%; background: var(--sb-ink); color: #fff;
    font-size: 10px; font-weight: 700; font-style: normal;
    display: grid; place-items: center;
}
.pbd-cf-step span { font-size: 10.5px; font-weight: 600; color: var(--sb-ink-soft); text-align: center; line-height: 1.3; }
.pbd-cf-arrow { color: var(--sb-border-strong); font-weight: 700; margin-top: 14px; }
.pbd-cf-note {
    margin-top: 12px; text-align: center; font-size: 11.5px; font-weight: 600;
    color: var(--sb-text-secondary); background: var(--sb-surface-muted); border: 1px solid var(--sb-border);
    border-radius: 9px; padding: 7px 10px;
}

/* ============================================================================
   Install on your Site — method cards
   ============================================================================ */
#pbd-install {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#pbd-install:not(.pbd-visible) { display: none !important; }
.pbd-inst-card {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pbd-inst-head { display: flex; gap: 12px; align-items: flex-start; }
.pbd-inst-ico {
    flex: 0 0 42px; width: 42px; height: 42px;
    border-radius: var(--sb-radius-md); display: grid; place-items: center; font-size: 19px;
}
.pbd-inst-head h3 { font-size: 14.5px; font-weight: 700; color: var(--sb-ink); margin: 0 0 3px; }
.pbd-inst-head p { font-size: 12px; color: var(--sb-text-secondary); margin: 0; line-height: 1.5; }
.pbd-inst-code {
    background: var(--sb-surface-muted);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    padding: 12px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    line-height: 1.55;
    color: var(--sb-ink-soft);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 170px;
    overflow-y: auto;
    margin: 0;
    flex: 1;
}
.pbd-inst-actions { display: flex; gap: 8px; }
.pbd-copy {
    font-size: 12px; font-weight: 600; color: var(--sb-ink-soft);
    background: #fff; border: 1px solid var(--sb-border-strong); border-radius: var(--sb-radius-sm);
    padding: 7px 12px; cursor: pointer; box-shadow: none;
}
.pbd-copy:hover { background: var(--sb-surface-hover); }

/* the dark original stays as data source but never shows */
body.pbd-shell .card.pbd-install-hidden { display: none !important; }

/* custom-domain block promoted to a light card */
.pbd-domain-card details { border: 0; background: transparent !important; padding: 0 !important; margin-top: 4px; }
.pbd-domain-card summary { display: none; }

/* primary bubble card: snippet left, deploy steps right */
.pbd-bubble-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pbd-bubble-grid { grid-template-columns: 1fr; } }
.pbd-deploysteps { display: flex; flex-direction: column; gap: 14px; }
.pbd-ds-step { display: flex; gap: 12px; align-items: flex-start; }
.pbd-ds-step b { display: block; font-size: 13px; color: var(--sb-ink); }
.pbd-ds-step span { font-size: 12px; color: var(--sb-text-secondary); line-height: 1.5; }
.pbd-ds-step .pbd-cf-ico { flex: 0 0 40px; width: 40px; height: 40px; font-size: 17px; }

/* "More ways to install" — collapsed by default */
#pbd-more-install summary {
    list-style: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sb-ink-soft);
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    padding: 14px 18px;
}
#pbd-more-install summary span { font-weight: 500; color: var(--sb-text-muted); font-size: 12px; margin-left: 10px; }
#pbd-more-install summary:hover { border-color: var(--sb-border-strong); }
#pbd-more-install[open] summary { margin-bottom: 14px; }
#pbd-more-install #pbd-install {
    display: grid !important;   /* beats the legacy #pbd-install:not(.pbd-visible) rule */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
}

/* ============================================================================
   SalesBot refresh v2 — calm, flat, consistent. Tokens + scoped overrides.
   Order: tokens → base → sidebar → nav/header → cards → panels → type →
   inputs → buttons → selection → badges → shadows/radii → onboarding →
   preview → custom-domain → responsive.
   `!important` is used ONLY to neutralize inline style="" attributes, JS-written
   element styles, or existing !important rules in the page's inline <style>.
   ============================================================================ */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
    /* SalesBot brand */
    --sb-coral: #F45D61;
    --sb-coral-hover: #E95055;
    --sb-coral-active: #D94449;
    --sb-coral-soft: #FFF1F2;
    --sb-coral-muted: #FECACA;
    /* Main SalesBot ink */
    --sb-ink: #11132F;
    --sb-ink-soft: #252746;
    --sb-text-secondary: #626980;
    --sb-text-muted: #8A90A3;
    /* Surfaces */
    --sb-canvas: #FBF8FA;
    --sb-surface: #FFFFFF;
    --sb-surface-muted: #F8F6F8;
    --sb-surface-hover: #F5F2F5;
    /* Borders */
    --sb-border: #EAE4E8;
    --sb-border-strong: #D8D1D6;
    /* Pandora parent brand */
    --sb-pandora-purple: #5138EE;
    --sb-pandora-purple-soft: #F1EFFF;
    /* Semantic colors only */
    --sb-success: #168A55;
    --sb-success-soft: #ECF8F1;
    --sb-warning: #B7791F;
    --sb-warning-soft: #FFF8E8;
    --sb-danger: #C83C43;
    --sb-danger-soft: #FFF0F1;
    /* Shape and depth */
    --sb-radius-sm: 8px;
    --sb-radius-md: 10px;
    --sb-radius-lg: 14px;
    --sb-shadow-sm: 0 1px 2px rgba(17, 19, 47, 0.04);
    --sb-shadow-overlay: 0 18px 45px rgba(17, 19, 47, 0.14);
    --sb-focus-ring: 0 0 0 3px rgba(244, 93, 97, 0.14);
    --sb-ring-soft: 0 0 0 3px rgba(244, 93, 97, 0.09);
}

/* ---- 2. Base ------------------------------------------------------------ */
body.pbd-shell {
    background: var(--sb-canvas);          /* beats the page's radial-gradient glows */
    color: var(--sb-ink);
    font-size: 14px;
}
body.pbd-shell ::selection { background: var(--sb-coral-soft); color: var(--sb-ink); }
body.pbd-shell ::-webkit-scrollbar-thumb { background: var(--sb-border-strong); border-color: var(--sb-canvas); }

/* ---- 3. Sidebar extras -------------------------------------------------- */
#pbd-sidebar .pbd-nav-ico { opacity: 0.8; }
#pbd-sidebar .pbd-nav-item.active .pbd-nav-ico { opacity: 1; }

/* ---- 4. Top nav + page header ------------------------------------------- */
/* the page styles `nav` frosted + !important; the sidebar rules above keep their own */
body.pbd-shell nav:not(#pbd-sidebar) {
    background: var(--sb-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--sb-border) !important;
    box-shadow: none !important;
}
body.pbd-shell nav:not(#pbd-sidebar) .text-blue-600 { color: var(--sb-pandora-purple); }   /* parent-brand wordmark */
body.pbd-shell nav:not(#pbd-sidebar) a[class*="bg-blue-50"] { background: var(--sb-surface-muted); color: var(--sb-ink); }
body.pbd-shell nav:not(#pbd-sidebar) a[class*="text-blue-700"] { color: var(--sb-ink); }
body.pbd-shell nav:not(#pbd-sidebar) a[class*="text-gray-500"]:hover { background: var(--sb-surface-hover); color: var(--sb-ink); }
/* h1/p carry inline style="" in the template → !important */
body.pbd-shell #app h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: var(--sb-ink) !important;
}
body.pbd-shell #app h1 + p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--sb-text-secondary) !important;
    margin-top: 4px !important;
}

/* ---- 5. Cards ----------------------------------------------------------- */
body.pbd-shell .card::before { content: none !important; display: none !important; }   /* per-feature top strips */
body.pbd-shell .card:hover { transform: none; box-shadow: var(--sb-shadow-sm); }
body.pbd-shell .card > h2,
body.pbd-shell .card h2.section-collapsible,
body.pbd-shell .card-reco h2 { font-size: 15px; font-weight: 600; color: var(--sb-ink); margin-bottom: 16px; }
body.pbd-shell .section-collapsible:hover .chevron { color: var(--sb-text-secondary); }
body.pbd-shell .pb-flash-highlight { outline-color: var(--sb-coral); }
/* the legacy dark Deploy card (normally hidden by the shell): flat ink, no gradient */
body.pbd-shell .card.bg-slate-900 { background: var(--sb-ink) !important; border-color: var(--sb-ink); }
body.pbd-shell .card + .card { margin-top: 24px; }

/* ---- 6. Inner panels — feature tints → one neutral panel ----------------- */
/* Tailwind tints + the page's #opt-pro/#opt-eshop !important recolors */
body.pbd-shell .card .bg-gray-50, body.pbd-shell .card .bg-slate-50,
body.pbd-shell .card .bg-amber-50, body.pbd-shell .card .bg-blue-50,
body.pbd-shell .card .bg-green-50, body.pbd-shell .card .bg-purple-50,
body.pbd-shell .card .bg-emerald-50, body.pbd-shell .card .bg-emerald-100,
body.pbd-shell .card .bg-indigo-50, body.pbd-shell .card .bg-yellow-50,
body.pbd-shell .card .bg-orange-50, body.pbd-shell .card .bg-orange-100,
body.pbd-shell .card .bg-violet-50, body.pbd-shell .card .bg-pink-50,
body.pbd-shell .card .bg-sky-50, body.pbd-shell .card .bg-teal-50,
body.pbd-shell #opt-pro .bg-amber-50, body.pbd-shell #opt-eshop .bg-amber-50,
body.pbd-shell #opt-pro .bg-orange-50, body.pbd-shell #opt-eshop .bg-orange-50,
body.pbd-shell .card .reco-preview {
    background: var(--sb-surface-muted) !important;
    border-color: var(--sb-border) !important;
    border-radius: var(--sb-radius-md) !important;
}
body.pbd-shell .card [class*="border-"][class*="-200"],
body.pbd-shell .card [class*="border-"][class*="-300"] { border-color: var(--sb-border) !important; }
/* real states keep semantic colour (element also carries a state text class) */
body.pbd-shell .card .bg-green-50[class*="text-green-8"],
body.pbd-shell .card .bg-emerald-50[class*="text-emerald-8"] { background: var(--sb-success-soft) !important; border-color: #CBEBD9 !important; color: var(--sb-success) !important; }
body.pbd-shell .card .bg-amber-50[class*="text-amber-8"],
body.pbd-shell .card .bg-yellow-50[class*="text-yellow-8"] { background: var(--sb-warning-soft) !important; border-color: #F3E2B8 !important; color: var(--sb-warning) !important; }
body.pbd-shell .card .bg-red-50, body.pbd-shell .card .bg-red-50[class*="text-red-8"] { background: var(--sb-danger-soft) !important; border-color: #F5C6C9 !important; }
/* feature-coloured text inside cards → ink; keep green/red as states */
body.pbd-shell .card [class*="text-blue-"], body.pbd-shell .card [class*="text-purple-"],
body.pbd-shell .card [class*="text-emerald-"], body.pbd-shell .card [class*="text-indigo-"],
body.pbd-shell .card [class*="text-amber-"], body.pbd-shell .card [class*="text-orange-"],
body.pbd-shell .card [class*="text-teal-"], body.pbd-shell .card [class*="text-violet-"],
body.pbd-shell .card [class*="text-sky-"], body.pbd-shell .card [class*="text-pink-"],
body.pbd-shell .card [class*="text-yellow-"] { color: var(--sb-ink-soft) !important; }
body.pbd-shell .card [class*="text-green-6"], body.pbd-shell .card [class*="text-green-7"],
body.pbd-shell .card [class*="text-green-8"] { color: var(--sb-success) !important; }
body.pbd-shell .card [class*="text-red-"] { color: var(--sb-danger) !important; }
body.pbd-shell .card .limit-warning { background: var(--sb-danger-soft); border-color: #F5C6C9; color: var(--sb-danger); }
body.pbd-shell .card .limit-ok { color: var(--sb-success); }
body.pbd-shell .card .limit-exceeded { color: var(--sb-danger); }

/* ---- 7. Typography ------------------------------------------------------ */
body.pbd-shell .card label:not(.sel-card):not([class*="text-xs"]):not(.wiz-label) {
    font-size: 13px; font-weight: 600; color: var(--sb-ink-soft);
}
body.pbd-shell .card p[class*="text-xs"], body.pbd-shell .card .text-gray-500,
body.pbd-shell .card .text-gray-600, body.pbd-shell .card .text-slate-500 {
    font-size: 12.5px; line-height: 1.5; color: var(--sb-text-secondary);
}
body.pbd-shell .card .text-gray-700, body.pbd-shell .card .text-gray-800,
body.pbd-shell .card .text-gray-900, body.pbd-shell .card .text-slate-700 { color: var(--sb-ink-soft); }

/* ---- 8. Inputs, selects, textareas -------------------------------------- */
body.pbd-shell .input-box,
body.pbd-shell .card input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]):not([type="file"]),
body.pbd-shell .card select,
body.pbd-shell .card textarea:not(.code-block),
body.pbd-shell #pb-wizard-card .input-box {
    background: #FFFFFF;
    color: var(--sb-ink);
    border: 1px solid var(--sb-border-strong);
    border-radius: var(--sb-radius-sm);
    box-shadow: none;
    padding-left: 12px;
    padding-right: 12px;
}
body.pbd-shell .input-box:hover, body.pbd-shell .card input:hover, body.pbd-shell .card select:hover,
body.pbd-shell .card textarea:hover { border-color: var(--sb-border-strong); }
body.pbd-shell .input-box:focus, body.pbd-shell .card input:focus, body.pbd-shell .card select:focus,
body.pbd-shell .card textarea:focus, body.pbd-shell .code-block:focus {
    border-color: var(--sb-coral);
    box-shadow: var(--sb-focus-ring);
    outline: none;
}
body.pbd-shell .card input:disabled, body.pbd-shell .card select:disabled, body.pbd-shell .card textarea:disabled {
    background: var(--sb-surface-muted); color: var(--sb-text-muted);
}
body.pbd-shell .card input::placeholder, body.pbd-shell .card textarea::placeholder { color: var(--sb-text-muted); }
/* toggle switches (Tailwind peer pattern) */
body.pbd-shell .card input.peer:checked ~ div { background-color: var(--sb-coral) !important; }
body.pbd-shell .card input.peer:focus ~ div { --tw-ring-color: rgba(244, 93, 97, 0.3); }
body.pbd-shell .card input[type="checkbox"], body.pbd-shell .card input[type="radio"] { accent-color: var(--sb-coral); }
body.pbd-shell .code-block, body.pbd-shell #pb-install-snippet { background: var(--sb-ink); color: #E6E8F2; border-color: var(--sb-ink-soft); border-radius: var(--sb-radius-sm); }

/* ---- 9. Buttons — primary / secondary / quiet --------------------------- */
/* Primary: #submit-btn has an !important gradient in the page + its className is
   rewritten per tier by JS (bg-blue-600 / bg-purple-600 / bg-emerald-600) */
body.pbd-shell #submit-btn, body.pbd-shell #submit-btn:hover, body.pbd-shell #submit-btn:focus {
    background: var(--sb-coral) !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 1px solid var(--sb-coral) !important;
    border-radius: var(--sb-radius-sm) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    font-weight: 600 !important;
}
body.pbd-shell #submit-btn:hover { background: var(--sb-coral-hover) !important; border-color: var(--sb-coral-hover) !important; }
body.pbd-shell #submit-btn:disabled { opacity: 0.6; }
body.pbd-shell .wiz-cta, body.pbd-shell #pb-install-btn, body.pbd-shell #pb-copy-snippet-btn {
    background: var(--sb-coral); background-image: none; color: #fff;
    border: 1px solid var(--sb-coral); border-radius: var(--sb-radius-sm);
    box-shadow: none; transform: none; font-weight: 600;
}
body.pbd-shell .wiz-cta:hover, body.pbd-shell #pb-install-btn:hover, body.pbd-shell #pb-copy-snippet-btn:hover {
    background: var(--sb-coral-hover); border-color: var(--sb-coral-hover); transform: none; box-shadow: none; filter: none;
}
/* Secondary: named components + the ad-hoc Tailwind combos used across cards */
body.pbd-shell .pb-prev-btn, body.pbd-shell #ai-btn,
body.pbd-shell .card button[class*="bg-indigo-100"], body.pbd-shell .card button[class*="bg-gray-100"],
body.pbd-shell .card button[class*="bg-gray-200"], body.pbd-shell .card button[class*="bg-yellow-100"],
body.pbd-shell .card button[class*="bg-green-100"], body.pbd-shell .card button[class*="bg-blue-100"],
body.pbd-shell .card button[class*="bg-slate-700"], body.pbd-shell .card button[class*="bg-slate-600"],
body.pbd-shell .card button[class*="bg-blue-600"], body.pbd-shell .card button[class*="bg-emerald-600"],
body.pbd-shell .card button[class*="bg-purple-600"], body.pbd-shell .card button[class*="bg-indigo-600"],
body.pbd-shell .card button[class*="bg-gray-900"], body.pbd-shell .card button[class*="bg-gray-800"],
body.pbd-shell .card a[class*="bg-purple-600"], body.pbd-shell .card a[class*="bg-blue-600"],
body.pbd-shell .card button[class*="border-amber-300"] {
    background: #FFFFFF !important;
    background-image: none !important;
    color: var(--sb-ink-soft) !important;
    border: 1px solid var(--sb-border-strong) !important;
    border-radius: var(--sb-radius-sm) !important;
    box-shadow: none !important;
    transform: none !important;
    font-weight: 600;
}
body.pbd-shell .pb-prev-btn:hover, body.pbd-shell #ai-btn:hover,
body.pbd-shell .card button[class*="bg-indigo-100"]:hover, body.pbd-shell .card button[class*="bg-gray-100"]:hover,
body.pbd-shell .card button[class*="bg-gray-200"]:hover, body.pbd-shell .card button[class*="bg-yellow-100"]:hover,
body.pbd-shell .card button[class*="bg-green-100"]:hover, body.pbd-shell .card button[class*="bg-blue-100"]:hover,
body.pbd-shell .card button[class*="bg-slate-700"]:hover, body.pbd-shell .card button[class*="bg-slate-600"]:hover,
body.pbd-shell .card button[class*="bg-blue-600"]:hover, body.pbd-shell .card button[class*="bg-emerald-600"]:hover,
body.pbd-shell .card button[class*="bg-purple-600"]:hover, body.pbd-shell .card button[class*="bg-indigo-600"]:hover,
body.pbd-shell .card button[class*="bg-gray-900"]:hover, body.pbd-shell .card button[class*="bg-gray-800"]:hover,
body.pbd-shell .card a[class*="bg-purple-600"]:hover, body.pbd-shell .card a[class*="bg-blue-600"]:hover,
body.pbd-shell .card button[class*="border-amber-300"]:hover { background: var(--sb-surface-hover) !important; color: var(--sb-ink) !important; }
/* Quiet */
body.pbd-shell .wiz-link, body.pbd-shell #pb-wizard-skip,
body.pbd-shell .card button[class*="text-amber-700"]:not([class*="bg-"]),
body.pbd-shell #onboarding-banner button[title="Dismiss"] {
    background: transparent !important; color: var(--sb-text-secondary) !important;
    border: 1px solid transparent !important; box-shadow: none !important;
}
body.pbd-shell .wiz-link:hover, body.pbd-shell #pb-wizard-skip:hover,
body.pbd-shell #onboarding-banner button[title="Dismiss"]:hover { color: var(--sb-ink) !important; background: var(--sb-surface-hover) !important; }
body.pbd-shell .card a[class*="text-blue-"]:not([class*="bg-"]) { color: var(--sb-coral) !important; }   /* important links */

/* ---- 10. Selection states ----------------------------------------------- */
body.pbd-shell .sel-card {
    border-color: var(--sb-border);
    background: var(--sb-surface);
    border-radius: var(--sb-radius-md);
    box-shadow: none;
    transition: border-color 0.12s ease, background 0.12s ease;
}
body.pbd-shell .sel-card:hover { border-color: var(--sb-border-strong); background: var(--sb-surface-hover); transform: none; box-shadow: none; }
body.pbd-shell .sel-card.active, body.pbd-shell .sel-card.active:hover {
    border-color: var(--sb-coral);
    background: var(--sb-coral-soft);
    background-image: none;
    box-shadow: var(--sb-ring-soft);
}
body.pbd-shell .sel-card .font-bold, body.pbd-shell .sel-card .font-semibold { color: var(--sb-ink) !important; }
body.pbd-shell .color-swatch { border-color: transparent; }
body.pbd-shell .color-swatch:hover { transform: none; }
body.pbd-shell .color-swatch.active { transform: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sb-ink); }
/* bubble-position buttons: inline style="" + JS writes el.style on click → !important (JS still toggles .active) */
body.pbd-shell .position-btn {
    border: 1px solid var(--sb-border-strong) !important; background: #fff !important;
    color: var(--sb-text-secondary) !important; border-radius: var(--sb-radius-sm) !important; box-shadow: none !important;
}
body.pbd-shell .position-btn.active {
    border-color: var(--sb-coral) !important; background: var(--sb-coral-soft) !important; color: var(--sb-coral) !important;
}
body.pbd-shell .wiz-tile { border-color: var(--sb-border); border-radius: var(--sb-radius-md); }
body.pbd-shell .wiz-tile:hover { border-color: var(--sb-border-strong); transform: none; box-shadow: none; }
body.pbd-shell .wiz-tile.sel { border-color: var(--sb-coral); background: var(--sb-coral-soft); box-shadow: var(--sb-ring-soft); }
body.pbd-shell .wdot { background: var(--sb-border-strong); }
body.pbd-shell .wdot.active { background: var(--sb-coral); }

/* ---- 11. Badges & status ------------------------------------------------ */
body.pbd-shell .sec-badge { display: inline-block; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 3px 8px; box-shadow: none; }
body.pbd-shell .sec-badge.ok { background: var(--sb-success-soft); color: var(--sb-success); border-color: #CBEBD9; }
body.pbd-shell .sec-badge.todo { background: var(--sb-warning-soft); color: var(--sb-warning); border-color: #F3E2B8; }
body.pbd-shell .sec-summary { color: var(--sb-text-muted); }

/* ---- 12. Shadows & radii ------------------------------------------------ */
body.pbd-shell #pb-wizard-card { border-radius: 16px; box-shadow: var(--sb-shadow-overlay); }
body.pbd-shell #pb-wizard-card h2 { color: var(--sb-ink); }
body.pbd-shell .wiz-sub, body.pbd-shell #wiz-scan-status { color: var(--sb-text-secondary); }
body.pbd-shell .wiz-label { color: var(--sb-ink-soft); }
body.pbd-shell #pb-preview-drawer { box-shadow: var(--sb-shadow-overlay); border-radius: 16px 0 0 16px; }   /* docked rule above forces none ≥1200px */
body.pbd-shell #pb-install-panel { box-shadow: var(--sb-shadow-overlay); border-radius: 16px 16px 0 0; }
body.pbd-shell #pb-preview-fab { background: var(--sb-ink); background-image: none; box-shadow: var(--sb-shadow-overlay); }
body.pbd-shell #pb-preview-fab:hover { transform: none; background: var(--sb-ink-soft); }

/* ---- 13. Onboarding banner (all inline style="" → !important) ------------ */
/* NOTE: [style*=…] selectors are coupled to the banner markup in main.py (8056–8155). */
body.pbd-shell #onboarding-banner {
    background: var(--sb-surface) !important;
    background-image: none !important;
    border: 1px solid var(--sb-border) !important;
    border-radius: var(--sb-radius-lg) !important;
    padding: 22px !important;
    box-shadow: var(--sb-shadow-sm) !important;
}
body.pbd-shell #onboarding-banner h2 {
    background: none !important; background-image: none !important;
    -webkit-text-fill-color: var(--sb-ink) !important; color: var(--sb-ink) !important;
    font-size: 18px !important; font-weight: 700 !important;
}
body.pbd-shell #onboarding-banner > div > p,
body.pbd-shell #onboarding-banner p[style*="color:#64748B"] { color: var(--sb-text-secondary) !important; }
body.pbd-shell #onboarding-body .grid > div {
    background: #fff !important; background-image: none !important;
    border: 1px solid var(--sb-border) !important; border-radius: var(--sb-radius-md) !important;
    box-shadow: none !important; transform: none !important;
}
body.pbd-shell #onboarding-body .grid > div > div[style*="border-radius:50%"] { display: none !important; }   /* decorative circles */
body.pbd-shell #onboarding-body .grid > div div[style*="width:28px"] { background: var(--sb-ink) !important; background-image: none !important; }
body.pbd-shell #onboarding-body .grid > div div[style*="width:28px"] + span,
body.pbd-shell #onboarding-body .grid > div h3 { color: var(--sb-ink) !important; }
body.pbd-shell #onboarding-body .grid > div > div:last-child { background: var(--sb-surface-muted) !important; border-left-color: var(--sb-border-strong) !important; }
body.pbd-shell #onboarding-body .grid > div > div:last-child div, body.pbd-shell #onboarding-body .grid > div p { color: var(--sb-text-secondary) !important; }
body.pbd-shell #onboarding-body span[style*="border-radius:20px"] { background: var(--sb-ink) !important; background-image: none !important; color: #fff !important; }
body.pbd-shell #onboarding-body > div:last-child { background: var(--sb-surface-muted) !important; border-color: var(--sb-border) !important; border-left: 3px solid var(--sb-warning) !important; }
body.pbd-shell #onboarding-body > div:last-child > div:first-child { background: var(--sb-warning-soft) !important; }
body.pbd-shell #onboarding-body [style*="#DBEAFE"] { background: var(--sb-coral-soft) !important; color: var(--sb-coral) !important; border-color: var(--sb-coral-muted) !important; }
body.pbd-shell #onboarding-body [style*="#2563EB"], body.pbd-shell #onboarding-body [style*="#1D4ED8"] { color: var(--sb-coral) !important; }

/* ---- 14. Live preview --------------------------------------------------- */
body.pbd-shell #pb-preview-head, body.pbd-shell #pb-preview-foot { background: var(--sb-surface); border-color: var(--sb-border); }
body.pbd-shell #pb-preview-head b, body.pbd-shell #pb-preview-head strong { color: var(--sb-ink); }
body.pbd-shell .pb-prev-btn:hover { border-color: var(--sb-coral) !important; color: var(--sb-coral) !important; background: #fff !important; }
body.pbd-shell #pb-install-panel .wiz-cta[style*="linear-gradient"] {
    background: #fff !important; background-image: none !important; color: var(--sb-ink-soft) !important;
    border: 1px solid var(--sb-border-strong) !important; box-shadow: none !important;
}
body.pbd-shell #pb-install-panel a { color: var(--sb-coral) !important; }
body.pbd-shell #pb-install-panel span[style*="#60A5FA"] { color: var(--sb-coral-muted) !important; }

/* ---- 15. Custom-domain block: light-ify the dark Tailwind ---------------- */
body.pbd-shell .pbd-domain-card [class*="bg-slate-7"], body.pbd-shell .pbd-domain-card [class*="bg-slate-800"],
body.pbd-shell .pbd-domain-card [class*="bg-gradient-to-r"] {
    background: var(--sb-surface-muted) !important; background-image: none !important;
    border: 1px solid var(--sb-border); color: var(--sb-ink-soft);
}
body.pbd-shell .pbd-domain-card [class*="text-slate-3"], body.pbd-shell .pbd-domain-card [class*="text-slate-4"],
body.pbd-shell .pbd-domain-card [class*="text-yellow-400"], body.pbd-shell .pbd-domain-card [class*="text-emerald-400"],
body.pbd-shell .pbd-domain-card [class*="text-white"] { color: var(--sb-ink-soft) !important; }
body.pbd-shell .pbd-domain-card input { color: var(--sb-ink) !important; background: #fff !important; border: 1px solid var(--sb-border-strong) !important; }
body.pbd-shell .pbd-domain-card code[class*="bg-slate-7"] { background: var(--sb-surface-hover) !important; color: var(--sb-ink) !important; }
body.pbd-shell .pbd-domain-card [class*="bg-slate-900"] { background: var(--sb-ink) !important; color: #E6E8F2 !important; }

/* ---- 16. Responsive tweaks ---------------------------------------------- */
@media (max-width: 1023px) {
    #pbd-sidebar .pbd-nav-item.active { box-shadow: inset 0 -2px 0 var(--sb-coral); }
}

/* ---- 17. Follow-ups from the visual review ------------------------------ */
/* top nav: wordmark in ink (the sidebar mark carries the parent-brand purple); View Bot = primary, Logout = secondary */
body.pbd-shell nav:not(#pbd-sidebar) .text-blue-600 { color: var(--sb-ink); }
body.pbd-shell nav:not(#pbd-sidebar) a[class*="bg-blue-600"] {
    background: var(--sb-coral) !important; color: #fff !important; border: 1px solid var(--sb-coral);
    border-radius: var(--sb-radius-sm); font-weight: 600; box-shadow: none;
}
body.pbd-shell nav:not(#pbd-sidebar) a[class*="bg-blue-600"]:hover { background: var(--sb-coral-hover) !important; border-color: var(--sb-coral-hover); }
body.pbd-shell nav:not(#pbd-sidebar) button[class*="bg-gray-200"] {
    background: #fff !important; color: var(--sb-ink-soft) !important; border: 1px solid var(--sb-border-strong);
    border-radius: var(--sb-radius-sm); font-weight: 600;
}
body.pbd-shell nav:not(#pbd-sidebar) button[class*="bg-gray-200"]:hover { background: var(--sb-surface-hover) !important; }
body.pbd-shell nav:not(#pbd-sidebar) #auth-area span { color: var(--sb-text-secondary); }
/* illustration tints written inline by dashboard.js (513–557, 984–1072) → neutral / brand-soft */
body.pbd-shell .pbd-illo-chips span[style*="background"] {
    background: var(--sb-ink) !important; color: #fff !important; border-color: var(--sb-ink) !important;
}
body.pbd-shell .pbd-illo-chips span[style*="#126fa9"], body.pbd-shell .pbd-illo-chips span[style*="#7C3AED"] {
    background: var(--sb-coral-soft) !important; color: var(--sb-coral) !important; border-color: var(--sb-coral-muted) !important;
}
body.pbd-shell .pbd-illo-chips span[style*="background:#fff"] { background: #fff !important; color: var(--sb-ink-soft) !important; border-color: var(--sb-border-strong) !important; }
body.pbd-shell .pbd-illo-social span[style*="background"],
body.pbd-shell .pbd-illo span[style*="#EFF6FF"], body.pbd-shell .pbd-illo span[style*="#F0FDF4"],
body.pbd-shell .pbd-illo span[style*="#FEF3C7"], body.pbd-shell .pbd-illo div[style*="#EFF6FF"],
body.pbd-shell .pbd-illo div[style*="#F0FDF4"], body.pbd-shell .pbd-illo div[style*="#FEF3C7"] {
    background: #fff !important; border: 1px solid var(--sb-border) !important; color: var(--sb-ink-soft) !important;
}
body.pbd-shell .pbd-illo-bubble[style*="background"] { background: var(--sb-coral-soft) !important; color: var(--sb-ink) !important; }
body.pbd-shell .pbd-inst-ico[style*="background"], body.pbd-shell .pbd-inst-ico { background: var(--sb-surface-muted) !important; border: 1px solid var(--sb-border); }
/* pre-existing: the top nav never wrapped, so tabs + account controls overflowed the viewport below ~1130px */
@media (max-width: 1140px) {
    body.pbd-shell nav:not(#pbd-sidebar) { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
    body.pbd-shell nav:not(#pbd-sidebar) > div, body.pbd-shell nav:not(#pbd-sidebar) > div > div { flex-wrap: wrap; row-gap: 4px; }
    body.pbd-shell nav:not(#pbd-sidebar) #auth-area { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    body.pbd-shell #pb-preview-drawer { width: 100vw; max-width: 100vw; border-radius: 0; }
}

/* the sidebar already carries the PandoraBot mark — drop the duplicate wordmark in the top-left of the nav */
@media (min-width: 1024px) {
    body.pbd-shell nav:not(#pbd-sidebar) > div > div.text-xl.font-bold { display: none; }
}
