/* v2.26 · compact, task-first channel comparison. Built on local theme tokens. */
html { scroll-padding-top: calc(var(--navigation-height, 98px) + 12px); }
.workspace-inactive { display: none !important; }
.decision-workbench { --page-width: 1320px; padding-bottom: 88px; }
.decision-workbench > :is(#operationsWorkspace, #poolWorkspace) { width: min(var(--page-width), calc(100% - 80px)); margin: 28px auto 40px; }
.decision-workbench .topbar.command-bar { position: sticky; top: 0; min-height: 76px; padding-block: 14px; z-index: 30; flex-wrap: nowrap; }
.decision-workbench:not(.is-public-view) .top-actions { flex-basis: auto; border: 0; padding: 0; }
.decision-workbench .site-nav { padding: 4px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel-2); gap: 2px; }
.decision-workbench .site-nav :is(a, button) { padding: 9px 15px; border-radius: 24px; font-size: 12px; white-space: nowrap; }
.decision-workbench .site-nav a.is-active { background: var(--panel); color: var(--primary); box-shadow: 0 2px 7px rgba(var(--shadow-rgb), .06); }
.decision-workbench .guest-access-tip { display: none; }
@media (min-width: 641px) {
  .decision-workbench #guestAccessBar { flex-wrap: nowrap; gap: 8px; }
  .decision-workbench #guestAccessBar :is(#guestFeedbackBtn, #guestLoginBtn),
  .decision-workbench #memberFeedbackBtn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    min-height: 42px; padding: 10px 12px; gap: 8px; border-radius: 8px;
    font-size: 14px; font-weight: 750; line-height: 20px; white-space: nowrap;
  }
  .decision-workbench :is(#guestAccessBar, #memberFeedbackBtn) .top-action-icon,
  .decision-workbench #guestAccessBar .guest-login-icon { width: 18px; height: 18px; flex: 0 0 18px; }
  .decision-workbench :is(#guestFeedbackBtn, #memberFeedbackBtn) {
    color: #33230c; border-color: #d29a39; background: #f3c66e;
    box-shadow: 0 2px 6px rgba(132, 89, 22, .16);
  }
  .decision-workbench :is(#guestFeedbackBtn, #memberFeedbackBtn) .top-action-icon { color: currentColor; }
  .decision-workbench :is(#guestFeedbackBtn, #memberFeedbackBtn):hover { background: #ffda89; border-color: #c88a25; }
  .decision-workbench #guestAccessBar :is(#guestFeedbackBtn, #guestLoginBtn):focus-visible,
  .decision-workbench #memberFeedbackBtn:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px;
  }
}
@media (min-width: 1200px) {
  .decision-workbench #guestAccessBar :is(#guestFeedbackBtn, #guestLoginBtn),
  .decision-workbench #memberFeedbackBtn { min-height: 44px; padding-inline: 16px; font-size: 15px; }
}
.mobile-header-summary { display: none; }
/* A searchable-by-topic manual without extra requests or hidden business actions. */
#usageGuide .page-section-heading { align-items: center; gap: 18px; }
#usageGuide .page-section-heading h2 { font-size: 28px; }
#usageGuide .page-section-heading p { max-width: 650px; line-height: 1.8; }
#usageGuide .guide-steps { gap: 16px; margin-top: 24px; }
#usageGuide .guide-steps article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
#usageGuide .guide-steps article > span { color: var(--primary); font-size: 22px; }
#usageGuide .guide-steps p { max-width: none; font-size: 13px; }
.guide-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.guide-topics button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--text-soft); font-size: 12px; line-height: 1.4; }
.guide-topics button:hover { color: var(--primary); border-color: var(--primary); background: var(--accent-soft); }
.guide-manual { display: grid; gap: 12px; }
.guide-topic { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-topic > summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; list-style: none; cursor: pointer; border-radius: 14px; }
.guide-topic > summary::-webkit-details-marker { display: none; }
.guide-topic > summary::marker { content: ""; }
.guide-topic > summary::after { content: none; }
.guide-topic > summary:hover, .guide-topic[open] > summary { background: var(--panel-2); }
.guide-topic-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--primary); font-size: 12px; font-variant-numeric: tabular-nums; }
.guide-topic > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.guide-topic > summary strong { display: block; color: var(--text-strong); font-size: 15px; line-height: 1.6; }
.guide-topic > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.guide-topic > summary > svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); }
.guide-topic[open] > summary > svg { transform: rotate(90deg); }
.guide-topic-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding: 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.9; color: var(--text-soft); overflow-wrap: anywhere; }
.guide-topic-body h3 { margin: 0 0 9px; font-size: 14px; font-weight: 650; color: var(--text-strong); }
.guide-topic-body p { margin: 0 0 12px; }
.guide-topic-body p:last-child { margin-bottom: 0; }
.guide-topic-body ol { margin: 0 0 12px; padding-left: 22px; }
.guide-topic-body li + li { margin-top: 7px; }
.guide-topic-body .guide-callout { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: var(--accent-soft); }
.guide-definitions { margin: 0; }
.guide-definitions > div + div { margin-top: 16px; }
.guide-definitions dt { margin-bottom: 4px; color: var(--text-strong); font-weight: 650; }
.guide-definitions dd { margin: 0; }
.guide-examples { margin: 0 0 14px; padding-left: 20px; }
.guide-topic-actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
.guide-topic-actions button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; font-size: 13px; }
.guide-footnote { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
@media (max-width: 640px) {
  #usageGuide .page-section-heading { flex-wrap: wrap; gap: 12px; }
  #usageGuide .page-section-heading h2 { font-size: 24px; }
  #usageGuide .guide-steps { gap: 10px; }
  #usageGuide .guide-steps article { grid-template-columns: 28px minmax(0, 1fr); gap: 5px 12px; padding: 14px; }
  #usageGuide .guide-steps p { font-size: 12px; }
  .guide-topics { gap: 6px; margin-block: 20px 14px; }
  .guide-topics button { flex: 1 0 calc(25% - 6px); padding: 8px; white-space: nowrap; }
  .guide-topic > summary { padding: 14px 12px; gap: 10px; }
  .guide-topic > summary small { font-size: 11px; }
  .guide-topic-number { flex-basis: 28px; height: 30px; }
  .guide-topic-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
}
/* The native dialog keeps the highlighted page inert: a tour never runs actions. */
html.is-tour-open { overflow: hidden; }
/* Follow visible overlay state, so nested windows cannot unlock one another.
 * Keep the viewport gutter stable and leave each panel's own scrolling intact.
 * Keep the overlay list in sync with workbench.js's scroll guard. */
@media (min-width: 641px) { html { scrollbar-gutter: stable; } }
html:has(:is(.modal, #availabilityRangePanel, #routeSwitchOverlay, #syncApplyOverlay, dialog[open]):not(.hidden, [hidden], .hidden *, [hidden] *)),
html:has(:is(.modal, #availabilityRangePanel, #routeSwitchOverlay, #syncApplyOverlay, dialog[open]):not(.hidden, [hidden], .hidden *, [hidden] *)) body { overflow: hidden; overscroll-behavior: none; }
/* Desktop AI chat is a floating panel; match its mobile layout breakpoint. */
@media (max-width: 640px) {
  html:has(#aiChatPanel:not(.hidden, [hidden], .hidden *, [hidden] *)),
  html:has(#aiChatPanel:not(.hidden, [hidden], .hidden *, [hidden] *)) body { overflow: hidden; overscroll-behavior: none; }
}
.workbench-tour { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.workbench-tour::backdrop { background: transparent; }
.tour-spotlight { position: absolute; inset: 0; pointer-events: none; }
.tour-card { position: absolute; display: flex; flex-direction: column; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); min-height: 0; padding: 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel); box-shadow: 0 20px 70px rgba(0, 15, 12, .28); }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.tour-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 650; }
.tour-badge svg { width: 20px; height: 20px; }
.tour-skip { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 34px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.tour-skip span { font-size: 20px; line-height: 1; }
.tour-skip:hover { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.tour-progress { display: flex; gap: 4px; margin: 14px 0 20px; flex-shrink: 0; }
.tour-progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.tour-progress .is-reached { background: var(--primary); }
.tour-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; outline-offset: -2px; }
.tour-step-label { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tour-card h2 { margin: 0; color: var(--text-strong); font-size: 23px; font-weight: 650; line-height: 1.45; letter-spacing: -.5px; overflow-wrap: anywhere; }
.tour-intro { margin: 12px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.tour-details { margin: 18px 0 0; display: grid; gap: 14px; }
.tour-details > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.tour-details dt { color: var(--text-strong); font-size: 12px; font-weight: 650; line-height: 1.8; }
.tour-details dd { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.8; }
.tour-note { margin: 18px 0 0; padding: 11px 12px; border: 1px solid rgba(var(--primary-rgb), .15); border-radius: 10px; background: var(--accent-soft); color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.tour-location { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.tour-location:empty { display: none; }
.tour-roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.tour-roadmap > span { display: flex; flex-direction: column; gap: 6px; padding: 13px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.tour-roadmap i { color: var(--primary); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.tour-roadmap strong { color: var(--text-strong); font-size: 13px; font-weight: 600; }
.tour-roadmap small { color: var(--muted); font-size: 11px; }
.tour-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tour-key-hint { color: var(--muted); font-size: 10px; white-space: nowrap; }
.tour-key-hint kbd { font: inherit; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }
.tour-actions button { min-height: 40px; padding: 8px 13px; font-size: 12px; white-space: nowrap; }
.tour-actions button[hidden] { display: none; }
.tour-card button:focus-visible { outline-width: 2px; outline-offset: 2px; }
.tour-restart { flex: 0 0 auto; gap: 7px; }
.workbench-tour.is-compact:not(.is-centered) .tour-card { max-height: min(60dvh, 490px); }
.workbench-tour.is-compact .tour-card { width: min(460px, calc(100% - 24px)); padding: 18px; border-radius: 16px; }
.workbench-tour.is-compact .tour-progress { margin: 10px 0 14px; }
.workbench-tour.is-compact .tour-card h2 { font-size: 21px; }
.workbench-tour.is-compact .tour-footer { margin-top: 14px; padding-top: 12px; }
.workbench-tour.is-landscape:not(.is-centered) .tour-card { width: min(420px, calc(50% - 24px)); max-height: calc(100% - 24px); }
@media (max-width: 360px) {
  .tour-key-hint { display: none; }
  .tour-details > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .tour-roadmap > span { padding: 10px 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .workbench-tour[open] .tour-card { animation: tour-card-appear 160ms ease-out; }
  @keyframes tour-card-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
/* Only active tasks and unread notices occupy the space beside navigation. */
.admin-status-indicators { display: flex; flex: 1 1 220px; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; min-width: 0; max-width: 420px; margin-left: auto; }
.admin-status-indicators:empty, .admin-status-indicators.hidden { display: none; }
.admin-status-indicators .admin-status-indicator { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; min-height: 27px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--text-soft); box-shadow: none; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.admin-status-indicator > i { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.admin-status-indicators .is-running { color: var(--primary); border-color: rgba(var(--primary-rgb), .24); background: var(--accent-soft); }
.admin-status-indicators .is-notice { color: var(--warning-text); border-color: rgba(var(--warning-rgb), .3); background: var(--gold-soft); }
.admin-status-indicators .is-danger { color: var(--danger-text); border-color: rgba(var(--danger-rgb), .3); background: rgba(var(--danger-rgb), .08); }
.admin-status-indicators .admin-status-indicator:hover { border-color: currentColor; }
/* Administrator shortcuts reuse existing totals, beside navigation on wide screens. */
.decision-workbench .admin-navigation-metrics { display: flex; align-items: stretch; flex: 0 1 auto; min-width: 0; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.decision-workbench.is-public-view .admin-navigation-metrics { display: none; }
.decision-workbench .admin-navigation-stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-width: 0; padding: 7px 12px; min-height: 48px; border: 0; border-radius: 9px; background: transparent; color: var(--text-strong); box-shadow: none; text-align: left; }
.decision-workbench .admin-navigation-stat + .admin-navigation-stat { border-left: 1px solid var(--line); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.decision-workbench .admin-navigation-stat:hover { background: var(--accent-soft); }
.admin-stat-label { font-size: 10px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.admin-navigation-stat strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.admin-navigation-stat i { font-style: normal; font-weight: 400; color: var(--muted); }
.admin-stat-visits { color: var(--primary); }
.admin-stat-pair { display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; }
.admin-stat-pair small { align-self: flex-start; color: var(--success-text); font-size: 10px; line-height: 1; }
.admin-stat-compact-label { display: none; }
.admin-navigation-stat [data-admin-metric] { overflow-wrap: anywhere; white-space: normal; }
.decision-workbench:not(.is-public-view) .topbar .top-actions { flex: 0 0 auto; width: auto; }
/* Separate invitation and rebate totals while preserving their title. */
@media (min-width: 961px) {
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates { align-items: stretch; }
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates strong {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates strong > i {
    display: block;
    flex: 0 0 1px;
    width: 100%;
    height: 1px;
    margin: 0;
    overflow: hidden;
    background: var(--line-strong);
    color: transparent;
    font-size: 0;
    line-height: 0;
  }
  .decision-workbench #desktopHeaderLeading #adminNavigationMetrics .admin-stat-pair { justify-content: flex-start; }
}
@media (min-width: 961px) {
  .decision-workbench:not(.is-public-view) .topbar.command-bar { flex-wrap: wrap; }
}
@media (max-width: 1599px) {
  .decision-workbench .admin-status-indicators { order: 5; }
  .decision-workbench .admin-navigation-metrics { order: 6; flex: 0 1 auto; }
}
@media (max-width: 960px) {
  .decision-workbench .admin-navigation-metrics { flex: 1 0 100%; margin-left: 0; }
  .decision-workbench .admin-navigation-stat { flex: 1 1 0; padding: 6px 10px; }
}
@media (max-width: 640px) {
  /* Share one compact row when content fits; wrap whole shortcuts before clipping. */
  .decision-workbench #adminNavigationMetrics { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0; }
  .decision-workbench .operations-summary #adminHeaderMetrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 56px; align-items: stretch; gap: 0; }
  .decision-workbench :is(#adminNavigationMetrics, #adminHeaderMetrics) > button { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: 4px; flex: 1 1 auto; width: max-content; max-width: 100%; min-width: 0; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 0; }
  .decision-workbench :is(#adminNavigationMetrics, #adminHeaderMetrics) > button + button { border-left: 1px solid var(--line); }
  .decision-workbench :is(#adminNavigationMetrics, #adminHeaderMetrics) > button > span { font-size: 10px; line-height: 1.3; white-space: nowrap; }
  .decision-workbench .operations-summary #adminHeaderMetrics > button { width: 100%; align-content: start; padding: 8px; }
  .decision-workbench .operations-summary #adminHeaderMetrics strong { font-size: clamp(14px, 3.8vw, 16px); }
  .decision-workbench #adminHeaderMetrics > .ai-usage-today-summary {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    align-content: start;
    justify-items: start;
    min-width: 0;
    width: auto;
    min-height: 52px;
    margin: 0;
    padding: 8px 6px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    gap: 4px;
  }
  .decision-workbench #adminHeaderMetrics > .ai-usage-today-summary > span { flex: 0 0 auto; font-size: 10px; line-height: 1.3; }
  .decision-workbench #adminHeaderMetrics > .ai-usage-today-summary strong { font-size: clamp(14px, 3.8vw, 16px); justify-content: flex-start; flex-wrap: nowrap; white-space: normal; max-width: 100%; }
  .decision-workbench #adminAiUsageSummary .ai-usage-full-label { display: none; }
  .decision-workbench #adminAiUsageSummary .ai-usage-compact-label { display: inline; }
  .decision-workbench #adminAiUsageTotal { min-width: 0; overflow-wrap: anywhere; }
  .decision-workbench :is(#adminNavigationMetrics, #adminHeaderMetrics) strong { min-width: 0; justify-content: flex-start; flex-wrap: wrap; gap: 4px; font-size: 16px; line-height: 1.2; white-space: normal; }
  .decision-workbench .admin-stat-wide-label { display: none; }
  .decision-workbench .admin-stat-compact-label { display: inline; }
  .decision-workbench .affiliate-summary-shortcut :is(.admin-stat-pair, .affiliate-metric-value) { flex-wrap: wrap; align-items: baseline; min-width: 0; max-width: 100%; gap: 3px; padding: 0; }
  .decision-workbench .affiliate-summary-shortcut :is(.affiliate-invite-value, .affiliate-history-value) { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .decision-workbench .affiliate-summary-shortcut small { position: static; align-self: flex-start; font-size: 9px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .decision-workbench #mobileHeaderSummary .admin-status-indicators { flex: 1 0 100%; max-width: none; order: 1; justify-content: flex-start; margin: 0; }
  .decision-workbench #mobileHeaderSummary .admin-navigation-metrics { order: 2; }
  .admin-navigation-stat strong { font-size: 15px; }
  .admin-stat-pair { flex-wrap: wrap; }
  .admin-stat-pair small { font-size: 9px; }
  .decision-workbench:not(.is-public-view) .brand-cluster { flex: 1 1 0; }
  .decision-workbench:not(.is-public-view) .brand-cluster > div { min-width: 0; }
  .decision-workbench:not(.is-public-view) .brand-title-row h1 { min-width: 0; flex: 0 1 auto; }
  .decision-workbench:not(.is-public-view) .topbar .top-actions { order: 1; margin-left: auto; }
  .decision-workbench:not(.is-public-view) .topbar #logoutBtn { flex: 0 0 auto; width: auto; min-height: 30px; padding: 5px 7px; font-size: 10px; }
}
/* Visit summary and promotion share the space before account actions. */
.decision-workbench.is-public-view .site-nav { margin-inline: 0; flex-shrink: 0; }
.decision-workbench #headerHighlights { display: flex; align-items: center; gap: 12px; flex: 1 1 480px; min-width: 0; }
.decision-workbench:not(.is-public-view) #headerHighlights { display: none; }
.decision-workbench :is(.topbar, .mobile-header-summary) #publicHeaderMetrics { display: flex; flex: 0 0 auto; min-width: 0; width: auto; margin: 0; padding: 0; overflow: visible; border: 0; background: none; box-shadow: none; }
/* Keep the original compact banner slot independent of uploaded dimensions. */
#bannerAdModal .banner-ad-panel { width: min(560px, calc(100vw - 24px)); }
.decision-workbench #headerHighlights #headerPromo { display: block; flex: 0 1 420px; width: 420px; min-width: 0; max-width: 420px; height: 48px; min-height: 48px; margin: 0; padding: 0; border-radius: 10px; }
.decision-workbench.is-public-view .topbar .top-actions { flex: 0 0 auto; }
.decision-workbench :is(.topbar, .mobile-header-summary) .public-visit-header { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 48px; width: max-content; max-width: 100%; padding: 7px 13px; border: 1px solid rgba(var(--primary-rgb), .16); border-radius: 12px; background: linear-gradient(110deg, var(--accent-soft), var(--panel)); text-align: left; }
.decision-workbench :is(.topbar, .mobile-header-summary) .public-visit-header::before { display: none; }
.public-visit-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: var(--primary); background: var(--panel); border: 1px solid rgba(var(--primary-rgb), .12); border-radius: 9px; }
.public-visit-icon svg { width: 19px; height: 19px; }
.public-visit-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.decision-workbench .public-visit-message { font-size: 12px; font-weight: 500; line-height: 1.4; }
.decision-workbench .public-visit-message strong { min-width: var(--visit-count-width, 2ch); font-size: 23px; font-weight: 750; color: var(--primary); line-height: 1; vertical-align: -1px; text-shadow: none; font-variant-numeric: tabular-nums; }
.decision-workbench .public-visit-header small { max-width: none; font-size: 10px; font-weight: 400; line-height: 1.2; letter-spacing: .2px; }
.decision-workbench .public-visit-message strong.is-arrived { animation: visit-summary-arrive 360ms ease-out both; }
@keyframes visit-summary-arrive { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-2px); } }
/* Moderate desktop widths still have room once navigation spacing is tighter. */
@media (min-width: 1700px) and (max-width: 1919px) {
  .decision-workbench.is-public-view .topbar.command-bar { padding-inline: 24px; gap: 10px; }
  .decision-workbench.is-public-view .site-nav :is(a, button) { padding-inline: 8px; }
}
@media (max-width: 1699px) {
  .decision-workbench.is-public-view .topbar.command-bar { flex-wrap: wrap; }
  .decision-workbench #headerHighlights { order: 6; flex: 1 0 100%; justify-content: center; }
  .decision-workbench :is(.topbar, .mobile-header-summary) #publicHeaderMetrics { justify-content: center; }
  .decision-workbench :is(.topbar, .mobile-header-summary) .public-visit-header { min-height: 34px; padding: 4px 12px; border-radius: 9px; }
  .decision-workbench .public-visit-copy { flex-direction: row; align-items: center; gap: 12px; }
  .decision-workbench .public-visit-icon { flex-basis: 24px; width: 24px; height: 24px; border: 0; background: none; }
  .decision-workbench .public-visit-message strong { font-size: 21px; }
}
@media (max-width: 640px) {
  .decision-workbench #headerHighlights { flex-wrap: wrap; gap: 8px; }
  .decision-workbench :is(.topbar, .mobile-header-summary) #publicHeaderMetrics { flex: 1 0 100%; }
  .decision-workbench #headerHighlights #headerPromo { flex-basis: 100%; width: 100%; max-width: none; }
  .decision-workbench.is-public-view .topbar .top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .decision-workbench.is-public-view .topbar .top-actions button { width: auto; flex: 0 0 auto; min-height: 30px; padding: 5px 7px; font-size: 10px; }
  .decision-workbench.is-public-view .topbar .member-quota { font-size: 9px; padding: 4px 6px; }
  .decision-workbench.is-public-view .topbar .top-action-icon { width: 13px; height: 13px; }
  .decision-workbench .topbar > #logoutBtn { order: 1; flex: 0 0 auto; width: auto; margin-left: auto; min-height: 30px; padding: 5px 7px; font-size: 10px; }
  .decision-workbench .topbar:has(> #logoutBtn) .navigation-menu-button { margin-left: 0; }
  .decision-workbench .topbar > #memberFeedbackBtn { order: 1; flex: 0 0 auto; min-height: 32px; width: auto; margin-left: auto; padding: 0 6px; border-radius: 7px; font-size: 11px; line-height: 16px; white-space: nowrap; }
  .decision-workbench .topbar > #memberFeedbackBtn .top-action-icon { display: none; }
  .decision-workbench .topbar:has(> #memberFeedbackBtn) > #logoutBtn { margin-left: 0; }
  .decision-workbench .topbar:has(> #logoutBtn) .brand-cluster { flex: 1 1 0; min-width: 0; }
  .decision-workbench .topbar:has(> #logoutBtn) .brand-cluster > div { min-width: 0; }
  .decision-workbench .topbar:has(> #logoutBtn) .brand-title-row h1 { min-width: 0; flex: 0 1 auto; }
  .decision-workbench :is(.topbar, .mobile-header-summary) #publicHeaderMetrics { margin-top: 2px; }
  .decision-workbench :is(.topbar, .mobile-header-summary) .public-visit-header { width: 100%; min-height: 32px; padding: 4px 8px; gap: 6px; text-align: center; }
  .decision-workbench .public-visit-message { font-size: 11px; }
  .decision-workbench .public-visit-message strong { font-size: 20px; }
  .decision-workbench .public-visit-header small { display: none; }
  .decision-workbench .public-visit-icon { flex-basis: 20px; width: 20px; height: 20px; }
}
/* Guest entry controls share one mobile row; signed-in headers keep their layout. */
@media (max-width: 640px) {
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) { padding: 12px 10px; gap: 4px; flex-wrap: nowrap; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-cluster { flex: 0 1 auto; min-width: 0; gap: 4px; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-cluster > div { min-width: 0; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-symbol { width: 36px; height: 36px; flex: 0 0 36px; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-title-row { gap: 1px; min-width: 0; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-title-row h1 { font-size: 14px; letter-spacing: 0; min-width: 0; max-width: none; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .header-utility-stack { margin-left: 1px; gap: 0; flex: 0 0 auto; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) :is(.theme-toggle, .announcement-shortcut) { width: 24px; height: 28px; min-height: 28px; }
  .decision-workbench #siteNavigation #guestAccessBar { flex: 0 0 auto; width: auto; margin-left: auto; gap: 4px; flex-wrap: nowrap; }
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn) { display: inline-flex; flex: 0 0 auto; min-height: 32px; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 16px; color: var(--warning-text); background: var(--gold-soft); border-color: rgba(var(--warning-rgb), .6); box-shadow: none; }
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn) svg { display: none; }
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn):hover { background: rgba(var(--warning-rgb), .18); border-color: var(--warning-text); }
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn):focus-visible { outline: 2px solid var(--warning-text); outline-offset: 2px; }
  .decision-workbench #siteNavigation .guest-account-actions { flex: 0 0 auto; }
  .decision-workbench #siteNavigation #guestLoginBtn { min-height: 32px; padding: 0 6px; font-size: 11px; line-height: 16px; white-space: nowrap; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) #navigationMenuBtn { margin-left: 0; width: 28px; min-width: 28px; height: 32px; min-height: 32px; flex: 0 0 28px; }
  html[data-theme="night"] .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn) { color: #f4d594; background: #3a3424; border-color: #967337; }
}
@media (max-width: 374px) {
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) { padding-inline: 8px; gap: 3px; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-symbol { width: 32px; height: 32px; flex-basis: 32px; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) .brand-title-row h1 { font-size: 13px; }
  .decision-workbench #siteNavigation:has(#guestAccessBar:not(.hidden)) :is(.theme-toggle, .announcement-shortcut) { width: 22px; }
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn) { padding-inline: 4px; }
  .decision-workbench #siteNavigation #guestLoginBtn { font-size: 10px; padding-inline: 5px; }
}
@media (max-width: 359px) {
  .decision-workbench #siteNavigation :is(#guestFeedbackBtn, #memberFeedbackBtn) { width: 58px; padding: 1px 4px; white-space: normal; line-height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .decision-workbench .public-visit-message strong.is-arrived { animation: none; }
}
/* One top row: equal side tracks center navigation without pushing it down. */
#desktopHeaderLeading, #desktopHeaderTrailing { display: none; }
@media (min-width: 961px) {
  .decision-workbench #siteNavigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    grid-template-rows: 60px;
    align-items: center;
    gap: 0 12px;
    padding: 8px 20px;
  }
  .decision-workbench #desktopHeaderLeading { grid-area: 1 / 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
  .decision-workbench #desktopHeaderTrailing { grid-area: 1 / 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 4px; min-width: 0; height: 60px; }
  /* Keep the public visit summary beside the logo instead of pushing it up
   * against the centered navigation. The navigation remains centered by the
   * equal grid side tracks. */
  .decision-workbench #desktopHeaderLeading > .brand-cluster { flex: 0 1 auto; min-width: 0; gap: 6px; }
  .decision-workbench #siteNavigation .brand-cluster > div,
  .decision-workbench #siteNavigation .brand-title-row { min-width: 0; }
  .decision-workbench #siteNavigation .brand-title-row { gap: 3px; }
  .decision-workbench #siteNavigation .brand-title-row h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .decision-workbench #siteNavigation .header-utility-stack,
  .decision-workbench #siteNavigation .app-version { flex-shrink: 0; }
  .decision-workbench #primaryNavigation {
    grid-area: 1 / 2;
    justify-self: center;
    align-self: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0;
    order: 0;
  }
  .decision-workbench #primaryNavigation :is(a, button) { padding-inline: 10px; }
  .decision-workbench #desktopHeaderTrailing > :is(#topActions, #guestAccessBar) {
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    order: 0;
    gap: 6px;
    flex: 0 0 auto;
  }
  .decision-workbench #desktopHeaderTrailing :is(button, .member-quota) { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 10px; font-size: 13px; line-height: 1.2; }
  .decision-workbench #desktopHeaderLeading > :is(#publicHeaderMetrics, #adminNavigationMetrics) {
    justify-content: flex-start;
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    margin: 0;
    order: 0;
  }
  /* Keep the visit summary secondary to the logo, with less frame padding
   * while retaining its icon, readable copy and update hint. */
  .decision-workbench #desktopHeaderLeading > #publicHeaderMetrics { flex: 0 1 250px; width: 250px; min-width: 0; }
  .decision-workbench #desktopHeaderLeading .public-visit-header { width: 100%; min-width: 0; min-height: 42px; padding: 4px 9px; gap: 8px; border-radius: 10px; }
  .decision-workbench #desktopHeaderLeading .public-visit-icon { display: grid; flex-basis: 26px; width: 26px; height: 26px; border: 1px solid rgba(var(--primary-rgb), .12); background: var(--panel); }
  .decision-workbench #desktopHeaderLeading #publicVisitUpdated { display: block; }
  .decision-workbench #desktopHeaderLeading .public-visit-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; }
  .decision-workbench #desktopHeaderLeading .public-visit-message { display: block; white-space: normal; overflow: visible; font-size: 12px; line-height: 1.4; }
  .decision-workbench #desktopHeaderLeading .public-visit-message strong { font-size: 21px; overflow-wrap: anywhere; }
  .decision-workbench #desktopHeaderLeading .admin-navigation-stat { min-width: 0; flex: 1 1 0; padding: 4px; min-height: 40px; gap: 3px; }
  .decision-workbench #desktopHeaderLeading .admin-stat-label { font-size: 9px; }
  .decision-workbench #desktopHeaderLeading .admin-navigation-stat strong { font-size: 12px; gap: 2px; }
  .decision-workbench #desktopHeaderLeading .admin-stat-pair { flex-wrap: wrap; }
  .decision-workbench #desktopHeaderLeading .admin-stat-pair small { font-size: 8px; }
  /* The rebate total plus today's delta needs more room than the visits cell.
   * Reserve a wider, bounded card instead of giving both shortcuts half of a
   * narrow track. Very large numbers may wrap, without covering navigation. */
  .decision-workbench #desktopHeaderLeading > #adminNavigationMetrics { flex: 0 0 180px; width: 180px; max-width: 100%; }
  .decision-workbench #desktopHeaderLeading #adminNavigationVisits { flex: 0 1 68px; }
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates { flex: 1 1 0; }
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates .admin-stat-pair { max-width: 100%; }
  .decision-workbench #desktopHeaderLeading #adminNavigationAffiliates [data-admin-metric] { min-width: 0; max-width: 100%; overflow: visible; text-overflow: clip; }
  .decision-workbench #siteNavigation:has(#adminNavigationMetrics:not(.hidden)) { grid-template-rows: minmax(60px, auto); }
  .decision-workbench #desktopHeaderTrailing #adminStatusIndicators { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; max-height: 26px; margin: 0; order: 0; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .decision-workbench #desktopHeaderTrailing .admin-status-indicator { min-height: 20px; padding: 3px 5px; font-size: 10px; }
  /* Optional advertisements can use a second row; navigation stays at the top. */
  .decision-workbench #siteNavigation #headerHighlights { grid-area: 2 / 3; margin: 0; padding: 0; min-width: 0; justify-content: flex-end; }
  .decision-workbench #siteNavigation #headerHighlights:not(:has(#headerPromo:not(.hidden))) { display: none; }
  .decision-workbench #siteNavigation #headerPromo { max-width: 100%; margin-top: 4px; }
}
@media (min-width: 961px) and (max-width: 1599px) {
  .decision-workbench #siteNavigation { padding-inline: 12px; column-gap: 8px; }
  .decision-workbench #primaryNavigation :is(a, button) { padding-inline: 6px; font-size: 11px; }
  .decision-workbench #desktopHeaderTrailing :is(button, .member-quota) { min-height: 32px; padding: 6px 8px; font-size: 12px; }
  .decision-workbench #desktopHeaderTrailing .admin-status-indicator { min-height: 20px; padding: 3px 5px; font-size: 10px; }
  .decision-workbench #desktopHeaderLeading { gap: 8px; }
  .decision-workbench #siteNavigation .brand-symbol { width: 44px; height: 44px; }
  .decision-workbench #siteNavigation .brand-title-row h1 { font-size: 13px; }
  .decision-workbench #siteNavigation .app-version { display: none; }
  .decision-workbench #siteNavigation .header-utility-stack { margin-left: 0; gap: 0; }
  .decision-workbench #siteNavigation :is(.theme-toggle, .announcement-shortcut) { width: 24px; height: 26px; min-height: 26px; }
  .decision-workbench #desktopHeaderLeading > #adminNavigationMetrics { flex: 0 0 160px; width: 160px; min-width: 0; }
  .decision-workbench #desktopHeaderLeading #adminNavigationVisits { flex-basis: 62px; }
  .decision-workbench #desktopHeaderLeading > #publicHeaderMetrics { flex: 0 0 170px; width: 170px; }
  .decision-workbench #desktopHeaderLeading .public-visit-header { padding: 5px 8px; gap: 6px; }
  .decision-workbench #desktopHeaderLeading .public-visit-icon { flex-basis: 24px; width: 24px; height: 24px; }
  .decision-workbench #desktopHeaderLeading #publicVisitUpdated { display: none; }
  .decision-workbench #desktopHeaderLeading .public-visit-message { font-size: 11px; text-wrap: balance; }
  .decision-workbench #desktopHeaderLeading .public-visit-message strong { font-size: 20px; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .decision-workbench #siteNavigation { padding-inline: 8px; column-gap: 6px; }
  .decision-workbench #primaryNavigation :is(a, button) { padding-inline: 4px; font-size: 10px; }
  .decision-workbench #desktopHeaderTrailing :is(button, .member-quota) { min-height: 28px; padding: 5px; font-size: 11px; }
  .decision-workbench #desktopHeaderTrailing .admin-status-indicator { min-height: 20px; padding: 3px 5px; font-size: 10px; }
  .decision-workbench #desktopHeaderLeading .brand-symbol { display: none; }
  .decision-workbench #desktopHeaderLeading > #adminNavigationMetrics { flex-basis: 144px; width: 144px; }
  .decision-workbench #desktopHeaderLeading #adminNavigationVisits { flex-basis: 56px; }
  .decision-workbench #desktopHeaderLeading > #publicHeaderMetrics { flex-basis: 120px; width: 120px; }
  .decision-workbench #desktopHeaderLeading .public-visit-header { padding: 5px; gap: 4px; }
  .decision-workbench #desktopHeaderLeading .public-visit-icon { flex-basis: 18px; width: 18px; height: 22px; border: 0; background: none; }
  .decision-workbench #desktopHeaderLeading .public-visit-icon svg { width: 16px; height: 16px; }
  .decision-workbench #desktopHeaderLeading .public-visit-message { font-size: 10px; }
  .decision-workbench #desktopHeaderLeading .public-visit-message strong { font-size: 16px; }
  .decision-workbench #desktopHeaderLeading .admin-stat-label { font-size: 8px; }
  .decision-workbench #desktopHeaderLeading .admin-navigation-stat strong { font-size: 10px; }
}
.decision-workbench .discovery-hero { margin: 0; border-radius: 0; background: radial-gradient(ellipse at 82% 30%, #18342c 0, transparent 45%), radial-gradient(ellipse at 25% 110%, #263221 0, transparent 40%), #081310; }
.decision-workbench .hero-inner { max-width: 1320px; padding: 28px 40px 24px; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.decision-workbench .hero-copy h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.3; margin: 13px 0 10px; letter-spacing: -1.8px; }
.decision-workbench .hero-copy h2 span { display: inline; }
.decision-workbench .hero-copy > p { font-size: 13px; line-height: 1.8; margin-bottom: 0; }
.decision-workbench .hero-copy > p br { display: none; }
.decision-workbench .hero-eyebrow { font-size: 10px; padding: 5px 10px; }
.decision-workbench .hero-actions { margin-top: 19px; gap: 16px; }
.decision-workbench .hero-actions a { min-height: 36px; padding: 9px 16px; font-size: 12px; }
.decision-workbench .hero-assurance { display: none; }
.decision-workbench .hero-preview { transform: none; padding: 13px 16px; border-radius: 14px; background: rgba(5, 15, 12, .5); box-shadow: none; }
.decision-workbench .hero-preview-head { font-size: 9px; margin-bottom: 5px; padding: 0 0 9px; }
.decision-workbench .hero-channel-list { gap: 0; padding: 0; }
.decision-workbench .hero-channel :is(strong, small) { line-height: 1.4; }
.decision-workbench :is(.hero-preview-title, .hero-preview-foot) { display: none; }
.decision-workbench .hero-channel { padding: 9px 0; border-radius: 0; background: none; border-width: 0 0 1px; gap: 10px; min-height: 0; }
.decision-workbench .hero-channel:last-child { border-bottom: 0; }
.decision-workbench .hero-channel-symbol { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.decision-workbench .hero-channel-copy strong { font-size: 11px; }
.decision-workbench .hero-channel-copy small, .decision-workbench .hero-channel-price small { font-size: 9px; }
.decision-workbench .hero-channel-price strong { font-size: 16px; }
.decision-workbench .hero-bottom { max-width: 1240px; padding: 12px 0; min-height: 0; gap: 20px; }
.decision-workbench .hero-stats { gap: 30px; }
.decision-workbench .hero-stats > div { display: flex; align-items: center; gap: 8px; }
.decision-workbench .hero-stats strong { font-size: 18px; }
.decision-workbench .hero-stats span { font-size: 10px; }
.decision-workbench .hero-data-note { font-size: 10px; }
.decision-workbench .hero-data-note small { display: none; }
.decision-workbench .provider-strip { min-height: 48px; padding: 10px 0; gap: 28px; }
.decision-workbench .provider-strip strong { font-size: 14px; }
.decision-workbench .provider-strip > span { font-size: 10px; }
.decision-workbench .workspace { margin-top: 24px; }
.decision-workbench .page-section-heading { margin: 0 0 22px; gap: 16px; }
.decision-workbench .page-section-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 23px; line-height: 1.5; letter-spacing: -.7px; }
.decision-workbench .page-section-heading p { font-size: 12px; margin-top: 4px; }
.decision-workbench .section-kicker { font-size: 9px; letter-spacing: 1.6px; }
.decision-workbench .section-count { padding: 3px 9px; font-size: 10px; letter-spacing: 0; }
.decision-workbench #shareWorkbenchBtn { font-size: 11px; white-space: nowrap; min-height: 36px; }
.decision-workbench .table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 5px 22px rgba(var(--shadow-rgb), .025); }
.decision-workbench .table-head { padding: 18px 22px 12px; gap: 12px; flex-direction: column; }
.decision-workbench .primary-filters { display: flex; gap: 10px; width: 100%; }
.decision-workbench .market-search-field { flex: 1 1 340px; background: var(--panel); height: 44px; }
.decision-workbench .market-search-field #groupSearch { font-size: 13px; }
.decision-workbench .primary-filters select { min-height: 44px; }
.decision-workbench .primary-filter-actions { margin-left: 0; }
.decision-workbench .advanced-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.advanced-filters .model-filter-control { flex: 1 1 220px; max-width: 340px; min-width: 150px; }
.advanced-filters .model-filter-control input { width: 100%; font-size: 12px; }
.budget-control { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-soft); }
.budget-control input { max-width: 100px; font-size: 12px; }
.advanced-filters > button { margin-left: auto; font-size: 11px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.catalog-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.catalog-presets button { padding: 7px 11px; min-height: 32px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; color: var(--text-soft); background: none; box-shadow: none; }
.catalog-presets button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(var(--primary-rgb), .2); color: var(--primary); }
.catalog-presets button:hover { background: var(--panel-2); }
.toolbar-divider { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
#favoriteCount { font-size: 10px; margin-left: 4px; }
.active-filter-row { display: flex; align-items: center; gap: 10px; min-height: 27px; }
#activeFilterChips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 0; }
#activeFilterChips button { max-width: 100%; word-break: break-word; text-align: left; border: 1px solid rgba(var(--primary-rgb), .18); border-radius: 5px; background: var(--accent-soft); padding: 4px 8px; font-size: 10px; color: var(--primary); box-shadow: none; }
#activeFilterChips button span { margin-left: 7px; }
.filter-idle, .ranking-method-note { color: var(--muted); font-size: 10px; line-height: 1.8; }
.ranking-method-note { margin: 0; }
.decision-workbench .table-panel > .ranking-method-note { padding: 12px 22px 0; }
.decision-workbench .quick-filter-bar { border-top: 1px solid var(--line); padding-top: 11px; }
.decision-workbench .table-wrap { max-height: 680px; }
.decision-workbench #groupTableWrap :is(th, td) { padding: 15px 16px; }
.decision-workbench #groupTableWrap th { font-size: 10px; font-weight: 500; letter-spacing: .3px; }
.decision-workbench #groupRows tr.is-compared { background: rgba(var(--primary-rgb), .045); }
.decision-workbench .catalog-actions-column { min-width: 175px; text-align: right; }
.channel-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.channel-actions button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text-soft); font-size: 10px; white-space: nowrap; box-shadow: none; }
.channel-actions button.channel-favorite { font-size: 12px; font-weight: 650; line-height: 1.3; padding: 5px 8px; min-width: 54px; text-align: center; color: var(--primary); border-color: rgba(var(--primary-rgb), .3); background: var(--accent-soft); }
.channel-actions button.channel-favorite[aria-pressed="true"] { color: var(--on-primary, #fff); background: var(--primary); border-color: var(--primary); }
html[data-theme="night"] .channel-actions button.channel-favorite[aria-pressed="true"] { color: #102820; }
.channel-actions button.channel-favorite[aria-busy="true"] { opacity: .65; }
.channel-actions button[aria-pressed="true"] { color: var(--primary); border-color: rgba(var(--primary-rgb), .35); background: var(--accent-soft); }
.channel-actions button:hover { color: var(--primary); border-color: var(--primary); }
.channel-actions [data-channel-action="detail"] { background: var(--accent-soft); border-color: transparent; color: var(--primary); }
.catalog-empty { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 10px; padding: 48px 20px; white-space: normal; }
.catalog-empty > span { font-size: 38px; color: var(--primary); }
.catalog-empty strong { font-size: 16px; color: var(--text-strong); }
.catalog-empty p { font-size: 12px; color: var(--muted); margin: 0; }
.catalog-empty button { margin-top: 7px; font-size: 12px; }
.decision-workbench .marketplace-disclosure { line-height: 1.8; font-size: 10px; padding: 13px 22px; }
.decision-workbench #summaryGrid { grid-template-columns: 1fr; margin-top: 28px; }
.decision-workbench #summaryGrid > .recommendation-section-heading { order: -3; display: flex; }
.decision-workbench #aiRecommendationCard { order: -2; }
.decision-workbench .ai-recommendation-title-icon { width: 34px; height: 34px; }
.decision-workbench .ai-recommendation-title-icon::before { display: none; content: none; }
.decision-workbench #siteRecommendationsCard { max-width: 100%; margin-top: 16px; }
.decision-workbench .ai-recommendation-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.decision-workbench .ai-recommendation-category { padding: 22px; }
.decision-workbench .ai-recommendation-detail-trigger { min-height: 30px; font-size: 11px; }
.decision-workbench .ai-recommendation-choice > .ai-recommendation-detail-trigger { margin-top: 12px; padding: 6px 10px; background: var(--panel-2); color: var(--primary); border: 1px solid var(--line); border-radius: 6px; }
.decision-workbench .site-recommendations-card { border-radius: 14px; }
.operations-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.operations-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 16px; }
.operations-summary > * { min-width: 0; }
.operations-summary #adminHeaderMetrics { display: flex; flex-direction: column; align-items: stretch; margin: 0; }
.operations-summary .summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 961px) {
  /* The right-hand admin metrics have room for a compact 2×2 composition:
   * visits and rebates stay stacked on the left, while today's AI usage sits
   * in the right column instead of making every summary card taller. */
  .operations-summary #adminHeaderMetrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-height: 0;
    padding: 0;
    gap: 0;
  }
  .operations-summary #adminHeaderMetrics > * { min-width: 0; width: auto; grid-template-columns: minmax(0, 1fr); }
  .operations-summary #adminHeaderMetrics strong { flex-wrap: wrap; justify-content: flex-start; row-gap: 4px; font-size: 17px; }
  .operations-summary #adminHeaderMetrics .affiliate-metric-value { flex-wrap: wrap; gap: 3px; padding: 0; }
  .operations-summary #adminHeaderMetrics .affiliate-today-delta { position: static; align-self: flex-start; font-size: 9px; }
  .operations-summary #adminHeaderMetrics > #visitorTodayShortcut { grid-column: 1; grid-row: 1; }
  .operations-summary #adminHeaderMetrics > #affiliateTodayShortcut {
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid rgba(var(--line-rgb), 0.16);
    border-left: 0;
  }
  .operations-summary #adminHeaderMetrics > #adminAiUsageSummary {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-content: start;
    padding-top: 12px;
    border-left: 1px solid rgba(var(--line-rgb), 0.16);
  }
}
.decision-workbench .site-footer { padding-top: 24px; margin-top: 26px; }
.compare-dock { position: fixed; z-index: 32; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; width: min(1100px, calc(100% - 48px)); padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel-solid); box-shadow: 0 12px 60px rgba(0, 24, 18, .2); }
.compare-dock-copy { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.compare-dock-copy strong { font-size: 12px; }
.compare-dock-copy small { color: var(--muted); font-size: 9px; }
.compare-selection { display: flex; gap: 7px; flex: 1; min-width: 0; }
.compare-selection button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; min-width: 0; max-width: 190px; flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-soft); border-radius: 8px; padding: 7px 10px; text-align: left; }
.compare-selection :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.compare-selection small { grid-row: 2; font-size: 9px; color: var(--muted); }
.compare-selection span { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.compare-dock > button { flex: 0 0 auto; font-size: 11px; min-height: 38px; }
.workbench-modal-open { overflow: hidden; }
.workbench-modal { z-index: 39; }
.workbench-modal :is(.channel-drawer, .channel-compare-panel) { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.drawer-modal { padding: 0; justify-items: end; }
.channel-drawer { display: flex; flex-direction: column; width: min(510px, 100%); height: 100dvh; }
.workbench-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 26px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.workbench-modal-head h2 { font-size: 21px; margin: 5px 0 0; word-break: break-word; }
.workbench-modal-head .window-close { width: 32px; min-width: 32px; height: 32px; font-size: 22px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; }
.channel-drawer-body { padding: 24px 26px 32px; overflow: auto; overscroll-behavior: contain; }
.drawer-channel-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drawer-channel-name h3 { font-size: 16px; margin: 0; word-break: break-word; }
.drawer-status { width: 100%; font-size: 11px; color: var(--muted); margin-top: 2px; }
.drawer-status.is-success { color: var(--success-text); }
.drawer-price { display: flex; flex-direction: column; gap: 7px; padding: 22px; margin: 22px 0; border: 1px solid rgba(var(--primary-rgb), .18); border-radius: 12px; background: linear-gradient(120deg, var(--accent-soft), var(--panel)); }
.drawer-price > span { font-size: 11px; color: var(--text-soft); }
.drawer-price strong { font-size: 40px; line-height: 1.2; letter-spacing: -1.5px; color: var(--primary); }
.drawer-price small { font-size: 10px; color: var(--muted); line-height: 1.7; }
.drawer-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.drawer-metrics dt, .drawer-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.drawer-metrics dd { font-size: 20px; font-weight: 600; margin: 0; }
.drawer-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.drawer-section h4 { font-size: 13px; margin: 0 0 15px; }
.drawer-section h4 span { color: var(--muted); margin-left: 5px; font-size: 11px; }
.drawer-facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.drawer-facts dd { margin: 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.drawer-note { color: var(--muted); font-size: 11px; line-height: 1.9; }
.drawer-models { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.drawer-models span { padding: 5px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; font: 10px ui-monospace, monospace; overflow-wrap: anywhere; max-width: 100%; }
/* Keep channel details compact without changing ranking model controls. */
.rank-drawer-availability { scroll-margin-top: 12px; }
.rank-drawer-models > .group-model-summary { width: fit-content; max-width: min(240px, 100%); padding: 7px 11px; }
.drawer-bottom-actions { display: flex; align-items: center; gap: 10px; margin: 25px 0 16px; }
.drawer-bottom-actions .channel-actions { margin-right: auto; }
.upstream-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; padding: 9px 13px; font-size: 11px; border-radius: 7px; }
.drawer-ranking { width: 100%; font-size: 12px; }
.channel-compare-panel { width: min(1080px, 100%); max-height: calc(100dvh - 56px); overflow: auto; border-radius: 18px; }
#channelCompareBody { padding: 0 26px 20px; }
.compare-warning { font-size: 12px; line-height: 1.9; padding: 13px 16px; margin: 18px 0; border: 1px solid rgba(var(--primary-rgb), .2); border-radius: 8px; background: var(--accent-soft); color: var(--text-soft); }
.compare-table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: collapse; }
.compare-table :is(th, td) { padding: 15px 18px; text-align: left; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; vertical-align: top; }
.compare-table th { background: var(--panel-2); color: var(--text-soft); font-weight: 500; }
.compare-table th:first-child { width: 145px; position: sticky; left: 0; z-index: 1; }
.compare-table thead th strong { display: block; font-size: 17px; color: var(--text-strong); margin: 10px 0 14px; }
.compare-table thead th small { color: var(--primary); font-size: 9px; letter-spacing: 1px; }
.compare-table tbody tr:nth-child(3) td { font-size: 22px; font-weight: 600; color: var(--primary); background: var(--accent-soft); }

@media (max-width: 1200px) {
  .decision-workbench .topbar.command-bar { flex-wrap: wrap; }
  .decision-workbench .site-nav :is(a, button) { padding-inline: 10px; }
  .decision-workbench .hero-bottom { margin-inline: 40px; }
  .decision-workbench .hero-inner { gap: 32px; }
  .decision-workbench .ai-recommendation-category { padding: 16px; }
}
@media (max-width: 960px) {
  .decision-workbench > :is(#operationsWorkspace, #poolWorkspace) { width: calc(100% - 48px); }
  .decision-workbench .topbar.command-bar { min-height: 68px; }
  .decision-workbench .site-nav { border-radius: 12px; padding: 8px; }
  .decision-workbench .site-nav :is(a, button) { border-radius: 6px; text-align: left; }
  .decision-workbench .hero-inner { padding: 28px 24px; gap: 24px; }
  .decision-workbench .hero-copy h2 { font-size: 32px; }
  .decision-workbench .hero-copy h2 span { display: block; }
  .decision-workbench .hero-bottom { margin-inline: 24px; }
  .decision-workbench .hero-data-note { max-width: 210px; line-height: 1.6; }
  .decision-workbench .table-head { padding: 16px; }
  .decision-workbench .market-search-field { flex-basis: 100%; }
  .decision-workbench .primary-filters select { flex: 1; min-width: 0; }
  .decision-workbench .primary-filter-actions { flex: 0; }
  .decision-workbench .ai-recommendation-category-grid { grid-template-columns: 1fr 1fr; }
  .operations-summary { grid-template-columns: 1fr 1fr; }
  .operations-summary #adminHeaderMetrics { grid-column: 1 / -1; flex-direction: row; }
  .compare-dock { gap: 10px; }
  .compare-dock-copy { display: none; }
}
@media (max-width: 640px) {
  .decision-workbench > :is(#operationsWorkspace, #poolWorkspace) { width: calc(100% - 32px); }
  .decision-workbench .topbar.command-bar { padding: 12px 16px; gap: 8px; min-height: 64px; }
  .decision-workbench #mobileHeaderSummary { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 8px 16px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .decision-workbench .guest-feedback-button { display: none; }
  .decision-workbench .guest-login { font-size: 10px; min-height: 32px; padding: 7px 10px; }
  .decision-workbench .brand-title-row h1 { max-width: 130px; }
  .decision-workbench .hero-inner { display: block; padding: 25px 20px 22px; }
  .decision-workbench .hero-copy h2 { font-size: 30px; margin-top: 12px; letter-spacing: -1.2px; }
  .decision-workbench .hero-copy h2 span { display: inline; }
  .decision-workbench .hero-copy > p { font-size: 11px; }
  .decision-workbench .hero-actions { margin-top: 15px; gap: 12px; }
  .decision-workbench .hero-actions a { padding: 8px 12px; min-height: 32px; font-size: 10px; }
  .decision-workbench .hero-preview { display: none; }
  .decision-workbench .hero-bottom { margin-inline: 20px; padding: 12px 0; display: block; }
  .decision-workbench .hero-stats { justify-content: space-between; gap: 10px; }
  .decision-workbench .hero-stats > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .decision-workbench .hero-stats strong { font-size: 20px; }
  .decision-workbench .hero-stats span { font-size: 9px; }
  .decision-workbench .hero-data-note { margin-top: 10px; max-width: none; font-size: 9px; }
  .decision-workbench .provider-strip { min-height: 44px; gap: 18px; flex-wrap: nowrap; }
  .decision-workbench .provider-strip > span { display: none; }
  .decision-workbench .provider-strip > strong { font-size: 12px; }
  .decision-workbench .workspace { margin-top: 22px; }
  .decision-workbench .page-section-heading { margin-bottom: 15px; align-items: start; }
  .decision-workbench .page-section-heading h2 { font-size: 19px; gap: 7px; }
  .decision-workbench .page-section-heading p { font-size: 10px; line-height: 1.8; }
  .decision-workbench .section-count { font-size: 9px; }
  .decision-workbench #shareWorkbenchBtn { padding: 5px 8px; font-size: 9px; min-height: 28px; }
  .decision-workbench .table-head { padding: 14px 12px 12px; gap: 11px; }
  .decision-workbench .primary-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 7px; }
  .decision-workbench .primary-filters .market-search-field { grid-column: 1 / -1; }
  .decision-workbench .market-search-field { min-width: 0; flex-basis: 100%; }
  .decision-workbench .primary-filters :is(select, button) { font-size: 10px; min-height: 38px; }
  .decision-workbench .primary-filters select { padding-inline: 8px; }
  .decision-workbench .primary-filter-actions { width: auto; grid-column: auto; min-width: 0; }
  .decision-workbench .primary-filter-actions button { padding-inline: 10px; }
  .catalog-toolbar { gap: 9px; }
  .catalog-presets { gap: 4px; width: 100%; }
  .catalog-presets button { padding: 6px 8px; font-size: 10px; min-height: 32px; }
  .toolbar-divider { display: none; }
  #favoritesOnlyBtn { margin-left: auto; }
  .decision-workbench .filter-chip, .decision-workbench .stable-filter-tip { font-size: 10px; min-height: 30px; }
  .decision-workbench .leaderboard-refresh-age { width: auto; flex-basis: auto; margin: 0; padding: 0; font-size: 9px; background: none; border: 0; min-height: 0; }
  .decision-workbench .table-panel > .ranking-method-note { padding: 12px 12px 0; }
  .ranking-method-note { font-size: 9px; }
  .decision-workbench .advanced-filters { align-items: stretch; }
  .advanced-filters .model-filter-control { max-width: none; }
  .budget-control { font-size: 11px; }
  .decision-workbench .mobile-group-cards { padding: 0 10px 10px; gap: 10px; }
  .decision-workbench .mobile-group-card { border-radius: 12px; padding: 14px; border: 1px solid var(--line); box-shadow: none; }
  .decision-workbench .catalog-actions-cell { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .decision-workbench .channel-actions { justify-content: stretch; gap: 8px; }
  .decision-workbench .channel-actions button { min-height: 36px; font-size: 11px; }
  .decision-workbench .channel-actions button.channel-favorite { font-size: 12px; min-width: 56px; width: auto; }
  .decision-workbench .channel-actions button:not(:first-child) { flex: 1; }
  .decision-workbench .marketplace-disclosure { padding: 12px; font-size: 9px; }
  .decision-workbench .ai-recommendation-category-grid { grid-template-columns: 1fr; gap: 12px; }
  .decision-workbench .ai-recommendation-category-choices { grid-template-columns: 1fr 1fr; }
  .operations-summary { grid-template-columns: 1fr; }
  .operations-summary #adminHeaderMetrics { flex-wrap: wrap; }
  .operations-actions { padding: 12px; gap: 8px; }
  .operations-actions > button { font-size: 11px; }
  .compare-dock { bottom: 10px; width: calc(100% - 20px); border-radius: 12px; padding: 10px; flex-wrap: wrap; gap: 8px; }
  .compare-selection { flex: 1 1 100%; gap: 5px; }
  .compare-selection button { padding: 6px 7px; }
  .compare-dock > #openChannelCompareBtn { flex: 1; min-height: 34px; }
  .compare-dock > #clearChannelCompareBtn { min-height: 34px; padding-inline: 12px; }
  .workbench-modal-head { padding: 20px; }
  .channel-drawer-body { padding: 20px; }
  .workbench-modal-head h2 { font-size: 20px; }
  .channel-compare-panel { max-height: calc(100dvh - 20px); border-radius: 12px; }
  .channel-drawer { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
  .channel-drawer > * { flex-shrink: 0; }
  .channel-drawer-body { overflow: visible; }
  #channelCompareBody { padding: 0 12px 16px; }
  .compare-warning { font-size: 10px; padding: 10px; }
  .compare-table :is(th, td) { padding: 12px; font-size: 11px; }
  .compare-table th:first-child { width: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  .workbench-modal *, .compare-dock * { animation: none !important; transition: none !important; }
}
/* AI help: a visual conversation, without sending history to the model. */
.ai-chat-launcher { position: fixed; z-index: 33; right: 22px; bottom: 142px; width: 62px; height: 64px; min-height: 0; padding: 7px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: visible; isolation: isolate; border: 1px solid rgba(255,255,255,.5); border-radius: 21px; color: #fff; background: linear-gradient(145deg, #12a995, #087c70); box-shadow: 0 7px 22px rgba(8,124,112,.24), inset 0 1px rgba(255,255,255,.3); cursor: pointer; transition: transform .18s; }
.ai-chat-launcher::before { content: ""; position: absolute; z-index: -1; inset: -5px; border: 1px solid var(--primary); border-radius: 25px; opacity: 0; pointer-events: none; animation: ai-chat-beacon 4s ease-out 3; }
.ai-chat-launcher:hover, .ai-chat-launcher:focus-visible { transform: translateY(-3px); }
.ai-chat-launcher:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.ai-chat-launcher-mark { position: relative; font-size: 25px; font-weight: 800; line-height: 28px; letter-spacing: -.8px; }
.ai-chat-launcher-label { font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: 0; white-space: nowrap; }
.ai-chat-spark { position: absolute; top: -3px; right: -13px; width: 12px; height: 12px; color: #f5e7a3; animation: ai-chat-star 4s ease-in-out 3; }
.ai-chat-launcher[aria-expanded="true"]::before, .ai-chat-launcher[aria-expanded="true"] .ai-chat-spark { animation: none; }
.ai-chat-launcher.is-motion-paused::before, .ai-chat-launcher.is-motion-paused .ai-chat-spark { animation-play-state: paused; }
html.is-tour-open .ai-chat-launcher { transform: none; }
html.is-tour-open .ai-chat-launcher::before, html.is-tour-open .ai-chat-spark { animation: none; }
.ai-chat-panel { position: fixed; z-index: 34; right: 22px; bottom: 100px; width: min(460px, calc(100vw - 28px)); height: 760px; max-height: calc(100dvh - 120px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 18px 55px rgba(0,0,0,.2); }
.ai-chat-head { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 15px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--accent-soft), var(--panel)); }
.ai-chat-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #12a995, #087c70); font-size: 15px; font-weight: 750; }
.ai-chat-heading { flex: 1; min-width: 0; }
.ai-chat-head strong, .ai-chat-head small { display: block; }
.ai-chat-head strong { font-size: 15px; color: var(--text-strong); }
.ai-chat-head small { margin-top: 3px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.ai-chat-head button { display: grid; place-items: center; padding: 0; flex: 0 0 auto; min-height: 32px; min-width: 32px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.ai-chat-head .ai-chat-clear { font-size: 11px; min-width: 36px; }
.ai-chat-head button:hover:not(:disabled) { color: var(--primary); background: var(--accent-soft); }
.ai-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 15px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ai-chat-message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 24px 18px 0; }
.ai-chat-message.user { align-items: flex-end; margin: 0 0 18px 24px; }
.ai-chat-speaker { margin: 0 3px 5px; font-size: 10px; line-height: 15px; color: var(--muted); }
.ai-chat-message-text { max-width: 100%; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px 14px 14px; background: var(--panel-2); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
.ai-chat-group-link, .ai-chat-site-link { display: inline; min-width: 0; min-height: 0; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--primary); background: transparent; font: inherit; line-height: inherit; letter-spacing: 0; white-space: inherit; overflow-wrap: anywhere; text-align: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ai-chat-group-link:hover, .ai-chat-site-link:hover { color: var(--text-strong); }
.ai-chat-group-link:focus-visible, .ai-chat-site-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ai-chat-message.user .ai-chat-message-text { border-color: rgba(var(--primary-rgb),.18); border-radius: 14px 3px 14px 14px; background: var(--accent-soft); color: var(--text-strong); }
.ai-chat-welcome { margin: 0 0 22px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); color: var(--text); font-size: 13px; line-height: 1.8; }
.ai-chat-welcome small { display: block; margin-top: 9px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.ai-chat-presets { margin: 8px 0 0; }
.ai-chat-presets-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.ai-chat-presets-head button { min-height: 28px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }
.ai-chat-preset-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 6px; }
.ai-chat-preset-questions button { display: flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; min-height: 32px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--text); text-align: center; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.ai-chat-preset-questions button > span { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ai-chat-preset-questions button:hover:not(:disabled), .ai-chat-presets-head button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--accent-soft); }
.ai-chat-presets button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ai-chat-presets-panel { width: min(480px, calc(100vw - 24px)); }
.ai-chat-presets-body { display: grid; gap: 10px; }
.ai-chat-presets-body label { display: grid; min-width: 0; gap: 8px; }
.ai-chat-presets-body textarea { width: 100%; min-width: 0; min-height: 180px; resize: vertical; }
.ai-chat-presets-body small { color: var(--muted); font-size: 12px; line-height: 1.7; }
#aiChatPresetsError { margin: 0; color: var(--danger-text); font-size: 12px; overflow-wrap: anywhere; }
#aiChatPresetsError:empty { display: none; }
.ai-chat-form { display: flex; align-items: flex-end; gap: 10px; flex: 0 0 auto; padding: 13px; border-top: 1px solid var(--line); }
.ai-chat-form textarea { width: 0; min-width: 0; min-height: 48px; height: 48px; max-height: 120px; overflow-y: hidden; flex: 1; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; line-height: 1.65; }
.ai-chat-form textarea:focus { border-color: var(--primary); outline: 2px solid rgba(var(--primary-rgb),.15); }
.ai-chat-form button { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; white-space: nowrap; min-width: 54px; min-height: 42px; padding: 0 12px; border-radius: 11px; }
.ai-chat-panel.is-busy .ai-chat-form textarea { opacity: .65; }
.ai-chat-message.is-pending .ai-chat-speaker { color: var(--primary); }
.ai-chat-thinking-dots { display: inline-flex; align-items: center; gap: 4px; margin-left: 9px; vertical-align: middle; height: 12px; }
.ai-chat-thinking-dots > i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); opacity: .45; animation: ai-chat-thinking-dot 1.2s ease-in-out infinite; }
.ai-chat-thinking-dots > i:nth-child(2) { animation-delay: .16s; }
.ai-chat-thinking-dots > i:nth-child(3) { animation-delay: .32s; }
.ai-chat-panel.is-motion-paused .ai-chat-thinking-dots > i { animation-play-state: paused; }
@keyframes ai-chat-beacon { 0%, 65%, 100% { opacity: 0; transform: scale(.94); } 12% { opacity: .38; } 45% { opacity: 0; transform: scale(1.22); } }
@keyframes ai-chat-star { 0%, 55%, 100% { transform: scale(1) rotate(0); } 20% { transform: scale(1.2) rotate(18deg); } 35% { transform: scale(.95) rotate(-8deg); } }
@keyframes ai-chat-thinking-dot { 0%, 65%, 100% { opacity: .45; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 640px) {
  .ai-chat-launcher { right: 14px; bottom: calc(34px + env(safe-area-inset-bottom)); width: 56px; height: 59px; border-radius: 19px; }
  .ai-chat-launcher-mark { font-size: 23px; }
  .ai-chat-panel { right: 6px; bottom: calc(10px + env(safe-area-inset-bottom) + var(--ai-chat-keyboard-offset, 0px)); width: calc(100vw - 12px); height: min(84dvh, 760px); max-height: calc(var(--ai-chat-visible-height, 100dvh) - 20px - env(safe-area-inset-bottom)); border-radius: 18px; }
  .ai-chat-head { padding: 13px; gap: 7px; }
  .ai-chat-head small { font-size: 9px; }
  .ai-chat-form textarea { font-size: 16px; }
  .ai-chat-messages { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat-launcher, .ai-chat-launcher::before, .ai-chat-spark, .ai-chat-thinking-dots > i { animation: none !important; transition: none !important; }
  .ai-chat-launcher:hover, .ai-chat-launcher:focus-visible { transform: none; }
}

/* Private member inbox. The header entry uses the existing utility space. */
.member-messages-shortcut { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text-soft); }
.member-messages-shortcut svg { width: 19px; height: 19px; }
.member-messages-shortcut.has-unread { color: var(--primary); }
.member-messages-shortcut > span { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #b63a38; color: white; font-size: 10px; line-height: 16px; text-align: center; }
.member-messages-panel, .member-message-compose-panel { width: min(640px, calc(100vw - 24px)); }
.member-messages-body, .member-message-compose-body { display: grid; gap: 14px; min-width: 0; }
.member-messages-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.member-messages-toolbar > span { flex: 1 1 120px; font-size: 13px; color: var(--text-soft); }
.member-messages-list { display: grid; gap: 10px; }
.member-message-item { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.member-message-item.is-unread { border-color: var(--primary); }
.member-message-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; cursor: pointer; }
.member-message-heading strong { flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--text-strong); overflow-wrap: anywhere; }
.member-message-heading time, .member-message-read-state, .member-message-recipient-info { font-size: 12px; color: var(--text-soft); overflow-wrap: anywhere; }
.is-unread .member-message-read-state { color: var(--primary); }
.member-message-recipient-info { flex-basis: 100%; }
.member-message-content { margin: 14px 0 0; color: var(--text); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-messages-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 12px; }
.member-message-compose-body label { display: grid; gap: 7px; font-size: 13px; min-width: 0; }
.member-message-compose-body :is(input,select,textarea) { width: 100%; min-width: 0; }
.member-message-compose-body textarea { resize: vertical; }
.member-message-recipient-field { display: grid; gap: 7px; min-width: 0; }
.member-message-recipient-field .muted-line { margin: 0; overflow-wrap: anywhere; }
#memberMessagesStatus, #memberMessageComposeStatus { margin: 0; color: var(--text-soft); font-size: 13px; overflow-wrap: anywhere; }
.member-message-toast-button { margin-left: 10px; padding: 3px 7px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 5px; font-size: 12px; }
.member-row .member-message-row-button { min-width: 30px; width: 30px; padding: 5px; }
.member-message-row-button svg { display: block; width: 18px; height: 18px; }
@media (max-width: 640px) {
  .member-row-actions:has(.member-message-row-button) { grid-template-columns: 30px repeat(2, minmax(0, 1fr)); }
  .member-messages-panel, .member-message-compose-panel { max-height: calc(100dvh - 16px); overflow-y: auto; }
  .member-message-heading strong { flex-basis: 100%; }
  .member-messages-shortcut { width: 27px; height: 27px; }
}
