/* Header and category directory, 0.4.1. */
.bgp-header-04{position:relative;z-index:50;background:var(--bgp-surface,#fff)}
.bgp-header-04 .bgp-nav-wrap{position:static;gap:28px;max-width:1240px;margin:auto;min-height:82px}
.bgp-header-04 .bgp-nav{margin-right:auto;gap:23px}
.bgp-header-04 .bgp-nav-actions{display:flex;align-items:center;gap:16px;margin-left:auto}
.bgp-header-04 .bgp-nav,.bgp-header-04 .bgp-ai-button,.bgp-header-04 .bgp-mega-trigger{font-size:15px}
.bgp-header-04 .bgp-ai-button{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:12px;background:linear-gradient(120deg,#f3efff,#edf5ff);border:1px solid #ddd8f3;color:#6a48ba;white-space:nowrap}
.bgp-mega-trigger{display:flex;align-items:center;gap:7px;padding:8px 5px;color:var(--bgp-text,#19233b);font-weight:600;text-decoration:none;white-space:nowrap}
.bgp-tools-icon{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#345ddd,#6993ed);color:white;width:29px;height:29px;border-radius:9px;box-shadow:0 3px 9px #3156da20}
.bgp-mega-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.bgp-mega[hidden]{display:none!important}
.bgp-mega{position:absolute;top:calc(100% + 8px);left:max(16px,calc((100vw - 1180px)/2));right:max(16px,calc((100vw - 1180px)/2));border:1px solid var(--bgp-border,#dce4f3);border-radius:22px;box-shadow:0 24px 60px #15285225;background:var(--bgp-surface,#fff);padding:24px;max-height:calc(100dvh - var(--mega-top,90px) - 20px);overflow:auto;overscroll-behavior:contain;color:var(--bgp-text,#19233b)}
.bgp-mega-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.bgp-mega-top h2{margin:5px 0 0;font-size:22px;letter-spacing:-.6px}.bgp-mega-top>div:last-child{display:flex;align-items:center;gap:18px}.bgp-mega-top a{font-size:13px;text-decoration:none;color:var(--bgp-blue,#3156da)}
.bgp-mega-top .eyebrow{font-size:11px;letter-spacing:1.4px;color:var(--bgp-muted,#67758d)}
.bgp-mega-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bgp-mega-column{--mega-accent:#3156da;--mega-soft:#edf2ff;background:var(--bgp-bg,#f8faff);border:1px solid var(--bgp-border,#e5eaf3);border-radius:15px;padding:12px;min-width:0}
.bgp-mega-column[data-accent=teal]{--mega-accent:#137b75;--mega-soft:#e5f6f2}.bgp-mega-column[data-accent=violet]{--mega-accent:#8354bd;--mega-soft:#f1eafb}
.bgp-mega-column h3{font-size:14px;color:var(--mega-accent);display:flex;align-items:center;gap:7px;margin:0 0 8px;padding:8px;border-bottom:1px solid var(--bgp-border,#e5eaf3)}
.bgp-mega-column h3 small{margin-left:auto;opacity:.7;font-weight:500;font-size:11px}.bgp-category-dot{width:6px;height:6px;border-radius:50%;background:var(--mega-accent)}
.bgp-mega-tool{display:flex;align-items:center;gap:10px;padding:10px 7px;border-radius:10px;text-decoration:none;color:inherit;min-height:58px}
.bgp-mega-tool:hover,.bgp-mega-tool:focus-visible{background:var(--mega-soft);outline:2px solid transparent}.bgp-mega-tool:focus-visible{box-shadow:inset 0 0 0 2px var(--mega-accent)}
.bgp-mega-icon{flex:0 0 32px;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--mega-accent);background:var(--mega-soft)}
.bgp-mega-icon svg{width:19px;height:19px}.bgp-mega-tool strong{display:block;font-size:13px;line-height:1.4;font-weight:600}.bgp-mega-tool small{display:block;font-size:12px;line-height:1.5;color:var(--bgp-muted,#65738b)}.bgp-mega-tool>span:last-child{margin-left:auto;font-size:14px;color:var(--mega-accent)}
[data-bgp-theme=dark] .bgp-ai-button{background:#282642;color:#d1baff;border-color:#484461}
[data-bgp-theme=dark] .bgp-mega-column{--mega-soft:#203051;--mega-accent:#8babff}
[data-bgp-theme=dark] .bgp-mega-column[data-accent=teal]{--mega-soft:#173c3c;--mega-accent:#77daca}
[data-bgp-theme=dark] .bgp-mega-column[data-accent=violet]{--mega-soft:#332749;--mega-accent:#d1a9ff}
@media(max-width:1050px){.bgp-header-04 .bgp-nav-wrap{gap:14px}.bgp-header-04 .bgp-nav{gap:14px}.bgp-header-04 .bgp-nav-actions{gap:8px}.bgp-mega-grid{gap:10px}.bgp-mega{padding:18px}.bgp-mega-tool{padding:9px 3px}}
@media(max-width:800px){
.bgp-header-04 .bgp-nav-wrap{display:flex;flex-wrap:wrap;padding:13px 18px;gap:9px;min-height:100px}
.bgp-header-04 .bgp-brand{margin-right:auto}.bgp-header-04 .mobile-menu{display:flex;order:2}
.bgp-header-04 .bgp-nav-actions{order:3;width:100%;justify-content:flex-end;gap:16px}
.bgp-header-04 .bgp-nav{order:4;width:100%;position:static;margin:0;box-shadow:none}
.bgp-header-04 .bgp-nav:not(.open){display:none}.bgp-header-04 .bgp-nav.open{display:flex;flex-wrap:wrap;padding:10px 0;border:0}
.bgp-mega{position:fixed;top:var(--mega-top,134px);left:10px;right:10px;max-height:calc(100dvh - var(--mega-top,134px) - 12px);padding:16px;border-radius:17px}
.bgp-mega-grid{grid-template-columns:1fr;gap:14px}.bgp-mega-top{gap:8px;align-items:flex-start}.bgp-mega-top h2{font-size:20px}.bgp-mega-top>div:last-child{gap:8px}.bgp-mega-top a{font-size:12px;max-width:88px;line-height:1.5}
.bgp-mega-tool{min-height:58px;padding:9px 7px}.bgp-mega-tool strong{font-size:14px}.bgp-mega-tool small{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.bgp-mega *{transition:none!important}}

/* Paired header controls: same geometry, distinct intent. */
.bgp-header-04 .bgp-mega-trigger{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:12px;background:linear-gradient(120deg,#eaf8f4,#edf6fb);border:1px solid #bfdfd8;color:#187565;white-space:nowrap;font-weight:500;line-height:inherit}
.bgp-header-04 .bgp-tools-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;background:none;border-radius:0;box-shadow:none;color:currentColor}
.bgp-header-04 .bgp-mega-trigger:hover,.bgp-header-04 .bgp-mega-trigger[aria-expanded=true]{background:#ddf2eb;border-color:#88bcad;color:#145f53}
.bgp-header-04 .bgp-mega-trigger:focus-visible{outline:2px solid #258b79;outline-offset:3px}
[data-bgp-theme=dark] .bgp-header-04 .bgp-mega-trigger{background:#183b39;border-color:#315d55;color:#90dfcb}
[data-bgp-theme=dark] .bgp-header-04 .bgp-mega-trigger:hover,[data-bgp-theme=dark] .bgp-header-04 .bgp-mega-trigger[aria-expanded=true]{background:#204c47;border-color:#4b8576}
.bgp-header-04 .bgp-ai-button,.bgp-header-04 .bgp-mega-trigger{height:44px;box-sizing:border-box;line-height:22px}


/* 0.5.1 mobile header: one compact row, no redundant hamburger. */
.bgp-header-04 .bgp-account-icon{
 display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;
 border:1px solid var(--bgp-border,#dce4f3);border-radius:11px;color:var(--bgp-text,#19233b);
 background:var(--bgp-surface,#fff);text-decoration:none;flex:0 0 auto
}
.bgp-header-04 .bgp-account-icon:hover{border-color:color-mix(in srgb,var(--bgp-blue,#3156da) 45%,var(--bgp-border,#dce4f3));color:var(--bgp-blue,#3156da);background:var(--bgp-blue-soft,#edf2ff)}
.bgp-header-04 .bgp-account-icon:focus-visible{outline:2px solid var(--bgp-blue,#3156da);outline-offset:3px}
.bgp-header-04 .mobile-menu{display:none!important}

@media(max-width:800px){
 .bgp-header-04 .bgp-nav-wrap{width:100%;min-height:64px;padding:10px 12px;display:flex;flex-wrap:nowrap;align-items:center;gap:6px}
 .bgp-header-04 .bgp-nav{display:none!important}
 .bgp-header-04 .bgp-brand{font-size:17px;gap:6px;margin:0 auto 0 0;min-width:0;flex:0 1 auto;letter-spacing:-.55px}
 .bgp-header-04 .bgp-brand>svg{width:23px;height:23px;flex:0 0 23px}
 .bgp-header-04 .bgp-nav-actions{order:initial;width:auto;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto}
 .bgp-header-04 .bgp-ai-button,.bgp-header-04 .bgp-mega-trigger{height:38px;min-height:38px;padding:7px 8px;border-radius:10px;gap:5px;font-size:12px;line-height:20px}
 .bgp-header-04 .bgp-ai-button .bgp-nav-svg,.bgp-header-04 .bgp-mega-trigger .bgp-nav-svg{width:17px;height:17px}
 .bgp-header-04 .bgp-mega-trigger>svg{width:9px;height:9px}
 .bgp-header-04 .bgp-icon[data-theme-toggle],.bgp-header-04 .bgp-account-icon{width:32px;height:32px;min-width:32px;border-radius:9px;padding:0;font-size:20px!important}
 .bgp-header-04 .bgp-account-icon svg{width:18px;height:18px}
 .bgp-mega{top:var(--mega-top,72px);max-height:calc(100dvh - var(--mega-top,72px) - 10px)}
}
@media(max-width:380px){
 .bgp-header-04 .bgp-nav-wrap{padding-inline:9px;gap:4px}
 .bgp-header-04 .bgp-brand{font-size:16px;gap:5px}
 .bgp-header-04 .bgp-brand>svg{width:21px;height:21px;flex-basis:21px}
 .bgp-header-04 .bgp-nav-actions{gap:4px}
 .bgp-header-04 .bgp-ai-button,.bgp-header-04 .bgp-mega-trigger{padding-inline:7px;font-size:11.5px}
 .bgp-header-04 .bgp-mega-trigger>svg{display:none}
 .bgp-header-04 .bgp-icon[data-theme-toggle],.bgp-header-04 .bgp-account-icon{width:30px;height:30px;min-width:30px}
}

/* 0.5.1: improve only the genuinely small frontend type on phones. */
@media(max-width:600px){
 .bgp-app .hero-tag{font-size:11px}
 .bgp-app .mode{font-size:12px}
 .bgp-app .search-box input{font-size:13px}
 .bgp-app .search-box .bgp-btn{font-size:12px}
 .bgp-app .try-row{font-size:11px}
 .bgp-app .try-row button{font-size:11px}
 .bgp-app .hero-meta{font-size:11px}
 .bgp-app .section-heading .eyebrow,.bgp-app .dashboard-heading .eyebrow{font-size:11px}
 .bgp-app .tool-link small{font-size:12px}
 .bgp-app .monitor-promo-copy .subtle-note{font-size:11px}
 .bgp-app .mini-table>div{font-size:11px}
 .bgp-app .ask-input input{font-size:13px}
 .bgp-app .ask-prompts button{font-size:11px}
 .bgp-app .workflow-step p{font-size:13px}
 .bgp-footer nav,.bgp-footer .footer-copy{font-size:12px}
 .bgp-app .result-actions button,.bgp-app .result-actions a{font-size:13px}
 .bgp-app .result-meta{font-size:11px}
 .bgp-app .related-tools a{font-size:12px}
 .bgp-app .dashboard-breadcrumb{font-size:12px}
 .bgp-app .dashboard-date{font-size:11px}
 .bgp-app .coverage-banner strong,.bgp-app .coverage-banner p{font-size:11px}
 .bgp-app .metric-foot{font-size:11px}
 .bgp-app .panel-heading input,.bgp-app .panel-heading p{font-size:11px}
 .bgp-app .bgp-table{font-size:11px}
 .bgp-app .bgp-table th{font-size:11px}
 .bgp-app .bgp-table code{font-size:13px}
 .bgp-app .activity-row h3{font-size:12px}
 .bgp-app .activity-row p{font-size:11px}
 .bgp-app .activity-row .text-button{font-size:11px}
 .bgp-app .preview-banner{font-size:11px}
}


/* 0.5.2 mobile: icon-only action rail, desktop labels unchanged. */
@media(max-width:800px){
 .bgp-header-04 .bgp-ai-button,
 .bgp-header-04 .bgp-mega-trigger,
 .bgp-header-04 .bgp-icon[data-theme-toggle],
 .bgp-header-04 .bgp-account-icon{
   width:36px;height:36px;min-width:36px;min-height:36px;padding:0;
   border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;
 }
 .bgp-header-04 .bgp-ai-button>span:not(.bgp-nav-svg),
 .bgp-header-04 .bgp-mega-trigger>span:not(.bgp-tools-icon),
 .bgp-header-04 .bgp-mega-trigger>svg:last-child{display:none!important}
 .bgp-header-04 .bgp-ai-button .bgp-nav-svg,
 .bgp-header-04 .bgp-mega-trigger .bgp-nav-svg,
 .bgp-header-04 .bgp-tools-icon{width:18px;height:18px;min-width:18px}
 .bgp-header-04 .bgp-tools-icon svg{width:18px;height:18px}
 .bgp-header-04 .bgp-nav-actions{gap:5px}
}
@media(max-width:360px){
 .bgp-header-04 .bgp-nav-wrap{padding-inline:8px;gap:3px}
 .bgp-header-04 .bgp-brand{font-size:15px;letter-spacing:-.65px}
 .bgp-header-04 .bgp-brand>svg{width:20px;height:20px;flex-basis:20px}
 .bgp-header-04 .bgp-ai-button,
 .bgp-header-04 .bgp-mega-trigger,
 .bgp-header-04 .bgp-icon[data-theme-toggle],
 .bgp-header-04 .bgp-account-icon{width:34px;height:34px;min-width:34px;min-height:34px;flex-basis:34px}
 .bgp-header-04 .bgp-nav-actions{gap:3px}
}


/* 0.5.3 mobile header: Ask stays icon-only, Tools regains its text label, account precedes theme. */
@media(max-width:800px){
 .bgp-header-04 .bgp-ai-button{order:1;width:36px;min-width:36px;flex:0 0 36px;padding:0}
 .bgp-header-04 .bgp-ai-button>span:not(.bgp-nav-svg){display:none!important}
 .bgp-header-04 .bgp-mega-trigger{order:2;width:auto;min-width:0;flex:0 0 auto;padding:0 10px;gap:6px;font-size:13px;font-weight:600}
 .bgp-header-04 .bgp-mega-trigger>span.bgp-tools-label{display:inline!important;white-space:nowrap}
 .bgp-header-04 .bgp-mega-trigger>svg:last-child{display:none!important}
 .bgp-header-04 .bgp-account-icon{order:3}
 .bgp-header-04 .bgp-icon[data-theme-toggle]{order:4}
}
@media(max-width:380px){
 .bgp-header-04 .bgp-mega-trigger{padding-inline:8px;font-size:12.5px}
}

/* 0.5.3: phone readability. Raise only the smallest UI/supporting text. */
@media(max-width:600px){
 .bgp-app .hero-tag{font-size:12px}
 .bgp-app .mode{font-size:13px}
 .bgp-app .search-box input{font-size:16px}
 .bgp-app .search-box .bgp-btn{font-size:14px}
 .bgp-app .try-row,.bgp-app .try-row button{font-size:13px}
 .bgp-app .hero-meta{font-size:13px}
 .bgp-app .section-heading .eyebrow,.bgp-app .dashboard-heading .eyebrow{font-size:12px}
 .bgp-app .tool-link small{font-size:13px}
 .bgp-app .monitor-promo-copy .subtle-note{font-size:13px}
 .bgp-app .mini-table>div{font-size:13px}
 .bgp-app .ask-input input{font-size:16px}
 .bgp-app .ask-prompts button{font-size:13px}
 .bgp-app .workflow-step p{font-size:14px}
 .bgp-footer nav,.bgp-footer .footer-copy{font-size:13px}
 .bgp-app .result-meta{font-size:13px}
 .bgp-app .related-tools a{font-size:13px}
 .bgp-app .dashboard-breadcrumb{font-size:13px}
 .bgp-app .dashboard-date{font-size:13px}
 .bgp-app .coverage-banner strong,.bgp-app .coverage-banner p{font-size:13px}
 .bgp-app .metric-foot{font-size:13px}
 .bgp-app .panel-heading input{font-size:16px}
 .bgp-app .panel-heading p{font-size:13px}
 .bgp-app .bgp-table{font-size:13px}
 .bgp-app .bgp-table th{font-size:13px}
 .bgp-app .activity-row h3{font-size:14px}
 .bgp-app .activity-row p{font-size:13px}
 .bgp-app .activity-row .text-button{font-size:13px}
 .bgp-app .preview-banner{font-size:13px}
 .bgp-app .subtle-note,.bgp-app .helper-text,.bgp-app .description,.bgp-app .field-help{font-size:13px}
}

@media(max-width:600px){
 .bgp-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
 .bgp-app textarea,.bgp-app select{font-size:16px}
}
@media(max-width:360px){
 .bgp-header-04 .bgp-brand{font-size:14px;letter-spacing:-.7px}
 .bgp-header-04 .bgp-brand>svg{width:19px;height:19px;flex-basis:19px}
 .bgp-header-04 .bgp-ai-button{width:32px;min-width:32px;flex-basis:32px}
 .bgp-header-04 .bgp-mega-trigger{padding-inline:6px;gap:4px;font-size:12px}
 .bgp-header-04 .bgp-account-icon,.bgp-header-04 .bgp-icon[data-theme-toggle]{width:32px;height:32px;min-width:32px;min-height:32px;flex-basis:32px}
}

/* Feedback is an icon button at every width, paired visually with Tools. */
.bgp-header-04 .bgp-feedback-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;border:1px solid #bfdfd8;border-radius:12px;background:linear-gradient(120deg,#eaf8f4,#edf6fb);color:#187565;font:inherit;line-height:1;cursor:pointer}
.bgp-header-04 .bgp-feedback-action>svg{display:block;width:19px;height:19px;flex:0 0 19px}
.bgp-header-04 .bgp-feedback-action>span{display:none}
.bgp-header-04 .bgp-feedback-action:hover{background:#ddf2eb;border-color:#88bcad;color:#145f53}
.bgp-header-04 .bgp-feedback-action:active{background:#cfe9e0;border-color:#88bcad}
.bgp-header-04 .bgp-feedback-action:focus-visible{outline:2px solid #258b79;outline-offset:3px}
[data-bgp-theme=dark] .bgp-header-04 .bgp-feedback-action{background:#183b39;border-color:#315d55;color:#90dfcb}
[data-bgp-theme=dark] .bgp-header-04 .bgp-feedback-action:hover{background:#204c47;border-color:#4b8576}
[data-bgp-theme=dark] .bgp-header-04 .bgp-feedback-action:active{background:#285c55;border-color:#4b8576}
@media(max-width:800px){
 .bgp-header-04 .bgp-feedback-action{order:4;width:36px;height:36px;min-width:36px;flex-basis:36px;border-radius:10px}
 .bgp-header-04 .bgp-feedback-action>svg{width:18px;height:18px;flex-basis:18px}
}
@media(max-width:380px){
 .bgp-header-04 .bgp-feedback-action{width:32px;height:32px;min-width:32px;flex-basis:32px}
 .bgp-header-04 .bgp-nav-wrap{gap:4px}
 .bgp-header-04 .bgp-brand{font-size:13px;letter-spacing:-.7px}
}

@media(max-width:380px){
 .bgp-header-04 .bgp-ai-button,.bgp-header-04 .bgp-account-icon,.bgp-header-04 .bgp-icon[data-theme-toggle]{width:28px;min-width:28px;flex-basis:28px}
 .bgp-header-04 .bgp-mega-trigger{padding-inline:4px;gap:4px}
}

/* Device appearance is automatic; suppress obsolete cached toggle markup. */
[data-theme-toggle]{display:none!important}
