@import url("./theme-tokens.css");
/* T330: account/HQ pairs. Cyber keeps the existing declaration values.
   Dynamic widgets import these pairs and the shared palette contract. */
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account body {background:var(--theme-page);color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.auth-card,.legal-card,.hq-panel,.hero.hq-hero) {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border);box-shadow:var(--theme-shadow)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(h1,h2,h3,.field-value,.pref-label,.help-q strong) {color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.auth-sub,.auth-divider,.hq-hero p,.help-q > div) {color:var(--theme-muted)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.auth-kicker,.legal-kicker,.form-label,.hq-hero-kicker,.text-kelly-tactical,.link-btn,.auth-link) {color:var(--theme-primary);text-shadow:none}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.form-input,.bbc-form input,.bbc-form select) {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.auth-tab,.help-jump a) {background:var(--theme-surface);color:var(--theme-primary);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .auth-tab.active {background:var(--theme-inset);color:var(--theme-ink);border-bottom-color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.status-line,.auth-status).is-error {color:var(--theme-error);background:var(--theme-error-bg)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.status-line,.auth-status).is-ok {color:var(--theme-success);background:var(--theme-success-bg)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .badge {color:var(--theme-primary);background:var(--theme-surface);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .badge.provider {color:var(--theme-info);background:var(--theme-info-bg)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .switch-track {background:var(--theme-inset);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .switch-track::before {background:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .switch input:checked + .switch-track {background:var(--theme-primary);border-color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .switch input:checked + .switch-track::before {background:var(--theme-on-primary)}
.bb-theme-account .switch input:focus-visible + .switch-track {outline:3px solid var(--theme-focus);outline-offset:3px}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account :is(.help-q,.help-contact) {background:var(--theme-inset);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .help-q summary {color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .help-jump a:hover {background:var(--theme-primary);color:var(--theme-on-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .help-q a,html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .help-contact a {color:var(--theme-primary);text-decoration:underline}
/* Shared widgets may mount on learning pages as well as HQ. */
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-card,.bb-badge-case,#bbCertifications,.bbc-dialog) {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border);box-shadow:var(--theme-shadow)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-card,.bb-badge-case,#bbCertifications,.bbc-dialog) :is(h2,h3,p) {color:inherit}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-card,.bb-badge-case,.bbc-dialog) a {color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-views button,.bb-badge-filters button,.bb-badge-case [data-badge-egg]) {background:var(--theme-inset);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-views button,.bb-badge-filters button)[aria-pressed=true] {background:var(--theme-primary);color:var(--theme-on-primary);border-color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bbc-dialog button,#bbCertifications button,.bbc-actions a,.bbc-photo) {background:var(--theme-primary);color:var(--theme-on-primary);border-color:var(--theme-primary);box-shadow:var(--theme-glow-action)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bbc-dialog button,#bbCertifications button):hover {background:var(--theme-primary-hover);color:var(--theme-on-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bbc-form :is(input,select) {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bbc-stats div {background:var(--theme-inset);color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bbc-stats b {color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bbc-dialog .bbc-error {color:var(--theme-error)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bbc-dialog .bbc-caption {color:var(--theme-success)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-badge {background:var(--theme-inset);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-badge h3 {color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-badge-tier,.bb-badge-status,.bb-badge-case .bb-badge-note) {color:var(--theme-muted)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-badge-heading strong,.bb-badge-case .bb-badge-kicker,.bb-badge.is-earned .bb-badge-status) {color:var(--theme-success)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-badge.is-earned {border-color:var(--theme-success)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-toast,.bb-badge-toast) {background:var(--theme-success-bg);color:var(--theme-success);border-color:var(--theme-success);box-shadow:var(--theme-shadow)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-badge-toast :is(a,button) {color:var(--theme-success)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-points-chart i {background:var(--theme-chart-1)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-points-rank {color:var(--theme-primary);border-color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-card,.bb-badge-case,.bbc-dialog,#bbCertifications) :disabled {background:var(--theme-disabled-bg);color:var(--theme-disabled-ink);border-color:var(--theme-border);box-shadow:none;cursor:default}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) :is(.bb-points-card,.bb-badge-case,.bbc-dialog,#bbCertifications) :focus-visible,
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account main :focus-visible {outline:3px solid var(--theme-focus);outline-offset:3px}
/* HQ uses themed rails rather than the legacy always-dark scene. Inline hues are category accents only. */
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .bb-rails.hqd {--rl-panel:var(--theme-surface);--rl-panel-2:var(--theme-inset);--rl-ink:var(--theme-ink);--rl-muted:var(--theme-muted);--rl-dim:var(--theme-muted);--rl-line:var(--theme-border);--rl-green:var(--theme-primary);--rl-amber:var(--theme-warning);color-scheme:inherit;color:var(--theme-ink)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd [style*="--hue"] {--hue:var(--theme-primary)!important}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-next {background:var(--theme-surface);color:var(--theme-ink);border-left:3px solid var(--theme-accent)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-step,html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-step.primary {background:var(--theme-inset);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-chip {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-chip.on {background:var(--theme-primary);color:var(--theme-on-primary);border-color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-score.low {color:var(--theme-error)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-tag {color:var(--theme-warning);background:var(--theme-warning-bg);border-color:var(--theme-warning)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd-tag.free {color:var(--theme-success);background:var(--theme-success-bg);border-color:var(--theme-success)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd .aar {color:var(--theme-ink);background:var(--theme-surface);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd .aar a {color:var(--theme-primary)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd .aar th {background:var(--theme-header);color:var(--theme-on-header)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd .aar td {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]) .hqd .aar-trend {background:var(--theme-inset);color:var(--theme-muted)}
/* Narrow screens and enlarged text must not force the account/HQ grids wider. */
.bb-theme-account :is(.auth-card,.legal-card,.hqd-panel,.hqd-step,.bb-points-card,.bb-badge-case) {min-width:0;overflow-wrap:anywhere}
@media(max-width:560px){.bb-theme-account .hqd-steps {grid-template-columns:minmax(0,1fr)}.bb-theme-account .auth-card {padding:24px}.bb-theme-account .pref-row {gap:12px}}
@media(prefers-reduced-motion:reduce){.bb-theme-account .scan-beam {animation:none;display:none}}

/* Grid items must shrink around the scrollable readiness table. */
.bb-theme-account .hqd > * {min-width:0}
.bb-theme-account .hqd .aar-table {max-width:100%;overflow-x:auto}
.bb-theme-account .hqd .aar-trend {display:block;width:100%;max-width:100%}

/* HQ install/reminder/countdown widgets are inserted by bb-pwa.js. */
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .bb-pwa-panel {background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .bb-pwa-panel :is(input,select) {background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-border)}
html.bb-theme-enabled:is([data-bb-theme="patriotic"],[data-bb-theme="neon"],[data-bb-theme="reserve"]).bb-theme-account .bb-pwa-panel button {background:var(--theme-primary);color:var(--theme-on-primary);border:1px solid var(--theme-primary);border-radius:6px}
.bb-theme-account .bb-pwa-panel :is(label,input,select) {min-width:0;max-width:100%;box-sizing:border-box}
.bb-theme-account .bb-badge-case {container-type:inline-size}
.bb-theme-account .bb-badge > div {min-width:0}
@container (max-width:260px){.bb-theme-account .bb-earned-grid {grid-template-columns:minmax(0,1fr)}.bb-theme-account .bb-badge {flex-direction:column}}

.bb-theme-account .hqd {container-type:inline-size}
@container (max-width:260px){.bb-theme-account .hqd-totals {grid-template-columns:minmax(0,1fr)}}
