.ba-shell {
  --ba-bg: color-mix(in srgb, var(--surface, #fff) 92%, #edf3f7);
  --ba-card: color-mix(in srgb, var(--surface, #fff) 98%, #f6f8fa);
  --ba-line: color-mix(in srgb, currentColor 13%, transparent);
  --ba-muted: color-mix(in srgb, currentColor 58%, transparent);
  --ba-accent: #087f8c;
  --ba-blue: #2563eb;
  --ba-green: #16825d;
  --ba-red: #c2413c;
  --ba-orange: #c06b19;
  color: var(--text, #172027);
  min-height: calc(100vh - 96px);
  background: var(--ba-bg);
  border-radius: 18px;
  padding: 16px;
  font-variant-numeric: tabular-nums;
}

.ba-shell *, .ba-shell *::before, .ba-shell *::after { box-sizing: border-box; }
.ba-shell button, .ba-shell input, .ba-shell select, .ba-shell textarea { font: inherit; }
.ba-source { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:42px; margin-bottom:12px; padding:9px 13px; border:1px solid color-mix(in srgb, var(--ba-orange) 30%, transparent); border-radius:11px; background:color-mix(in srgb, var(--ba-orange) 8%, var(--ba-card)); color:var(--ba-muted); font-size:12px; }
.ba-source > div { display:flex; align-items:center; gap:9px; }
.ba-source strong { color:inherit; font-size:13px; }
.ba-source b { padding:4px 8px; border-radius:6px; color:#8d4410; background:rgba(255,255,255,.45); font-size:11px; }
.ba-source.is-live { border-color:color-mix(in srgb, var(--ba-green) 30%, transparent); background:color-mix(in srgb, var(--ba-green) 7%, var(--ba-card)); }
.ba-live-dot { width:7px; height:7px; border-radius:50%; background:var(--ba-orange); box-shadow:0 0 0 4px color-mix(in srgb, var(--ba-orange) 14%, transparent); }
.ba-source.is-live .ba-live-dot { background:var(--ba-green); }
.ba-tabs { display:flex; gap:4px; padding:4px; overflow:auto; border:1px solid var(--ba-line); border-radius:12px; background:var(--ba-card); scrollbar-width:none; }
.ba-tabs::-webkit-scrollbar { display:none; }
.ba-tabs button { flex:0 0 auto; position:relative; min-height:36px; padding:7px 13px; border:0; border-radius:8px; color:var(--ba-muted); background:transparent; cursor:pointer; white-space:nowrap; font-size:12px; font-weight:650; }
.ba-tabs button:hover { color:inherit; background:color-mix(in srgb, var(--ba-accent) 7%, transparent); }
.ba-tabs button.is-active { color:#fff; background:linear-gradient(135deg, var(--ba-accent), #075e68); box-shadow:0 4px 12px rgba(8,127,140,.2); }
.ba-tabs em { display:inline-grid; place-items:center; min-width:17px; height:17px; margin-left:5px; padding:0 4px; border-radius:99px; color:inherit; background:rgba(255,255,255,.22); font-size:9px; font-style:normal; }
.ba-page { display:grid; gap:12px; padding-top:12px; }
.ba-grid { display:grid; gap:12px; }
.ba-grid-2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.ba-kpi-grid { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:9px; }
.ba-kpi-grid-4 { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.ba-kpi-grid-3 { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.ba-kpi, .ba-card, .ba-decision-head { border:1px solid var(--ba-line); background:var(--ba-card); box-shadow:0 2px 9px rgba(16,35,48,.035); }
.ba-kpi { position:relative; overflow:hidden; min-height:112px; padding:14px; border-radius:13px; }
.ba-kpi::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--ba-line); }
.ba-kpi.is-success::before { background:var(--ba-green); }.ba-kpi.is-danger::before { background:var(--ba-red); }.ba-kpi.is-warning::before { background:var(--ba-orange); }.ba-kpi.is-accent::before { background:var(--ba-accent); }
.ba-kpi-label { margin-bottom:11px; color:var(--ba-muted); font-size:11px; font-weight:650; }
.ba-kpi strong { display:block; margin-bottom:7px; font-size:23px; line-height:1; letter-spacing:-.025em; }
.ba-kpi small { display:block; color:var(--ba-muted); font-size:10px; line-height:1.4; }
.ba-card { min-width:0; padding:16px; border-radius:14px; }
.ba-card-large .ba-chart { height:245px; }
.ba-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:14px; }
.ba-card header h3, .ba-decision-head h2 { margin:2px 0 0; font-size:15px; line-height:1.35; }
.ba-card header p, .ba-decision-head p { margin:5px 0 0; color:var(--ba-muted); font-size:11px; line-height:1.55; }
.ba-card header > b { font-size:17px; }
.ba-eyebrow { color:var(--ba-accent); font-size:9px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.ba-link { border:0; color:var(--ba-accent); background:transparent; cursor:pointer; white-space:nowrap; font-size:11px; font-weight:700; }
.ba-chart { position:relative; height:185px; color:var(--ba-accent); }
.ba-chart svg { width:100%; height:calc(100% - 18px); overflow:visible; }
.ba-chart-grid { stroke:var(--ba-line); stroke-width:.4; stroke-dasharray:3 3; }
.ba-chart-labels { display:flex; justify-content:space-between; color:var(--ba-muted); font-size:9px; }
.ba-bridge { display:grid; gap:9px; padding-top:2px; }
.ba-bridge > div { display:grid; grid-template-columns:68px minmax(30px,1fr) 78px; align-items:center; gap:9px; font-size:10px; }
.ba-bridge i { display:block; width:var(--w); min-width:5px; height:9px; border-radius:3px; background:var(--ba-accent); }
.ba-bridge .is-negative i { background:var(--ba-red); opacity:.72; }.ba-bridge .is-result i { background:var(--ba-green); }.ba-bridge b { text-align:right; font-size:10px; }
.ba-alert-list { display:grid; gap:6px; }
.ba-alert-list article { display:grid; grid-template-columns:26px minmax(0,1fr) auto auto; align-items:center; gap:9px; padding:9px; border-radius:9px; background:color-mix(in srgb, currentColor 3%, transparent); }
.ba-alert-list article div { min-width:0; }.ba-alert-list article b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }.ba-alert-list article p { margin:3px 0 0; overflow:hidden; color:var(--ba-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.ba-alert-list article > strong { color:var(--ba-red); font-size:10px; white-space:nowrap; }.ba-alert-list article > button { padding:5px 7px; border:1px solid var(--ba-line); border-radius:6px; color:inherit; background:transparent; cursor:pointer; font-size:9px; }
.ba-alert-level { display:grid; place-items:center; width:23px; height:23px; border-radius:7px; font-size:9px; font-weight:800; }.ba-alert-level.is-danger { color:#fff; background:var(--ba-red); }.ba-alert-level.is-warning { color:#fff; background:var(--ba-orange); }
.ba-table-wrap { max-width:100%; overflow:auto; border:1px solid var(--ba-line); border-radius:10px; }
.ba-table { width:100%; border-collapse:collapse; font-size:10px; }
.ba-table th { position:sticky; top:0; z-index:1; padding:9px 10px; color:var(--ba-muted); background:color-mix(in srgb, var(--ba-card) 92%, #8393a0); text-align:left; white-space:nowrap; font-size:9px; letter-spacing:.02em; }
.ba-table td { max-width:230px; padding:10px; border-top:1px solid var(--ba-line); vertical-align:middle; }
.ba-table tbody tr:hover { background:color-mix(in srgb, var(--ba-accent) 4%, transparent); }
.ba-table td b { display:block; line-height:1.35; }.ba-table td small { display:block; margin-top:3px; color:var(--ba-muted); line-height:1.35; }.ba-table .ba-pill { display:inline-flex; }
.ba-positive { color:var(--ba-green); }.ba-negative { color:var(--ba-red); }
.ba-pill { display:inline-flex; align-items:center; min-height:20px; padding:3px 7px; border-radius:99px; color:var(--ba-muted); background:color-mix(in srgb, currentColor 8%, transparent); font-size:9px; font-weight:700; white-space:nowrap; }.ba-pill.is-danger { color:var(--ba-red); background:color-mix(in srgb, var(--ba-red) 11%, transparent); }.ba-pill.is-warning { color:var(--ba-orange); background:color-mix(in srgb, var(--ba-orange) 11%, transparent); }.ba-pill.is-success { color:var(--ba-green); background:color-mix(in srgb, var(--ba-green) 10%, transparent); }.ba-pill.is-accent { color:var(--ba-blue); background:color-mix(in srgb, var(--ba-blue) 10%, transparent); }
.ba-action-text { display:block; margin-bottom:5px; min-width:120px; line-height:1.4; }
.ba-mini, .ba-primary, .ba-secondary { min-height:30px; padding:6px 10px; border-radius:7px; cursor:pointer; font-size:10px; font-weight:700; }
.ba-mini, .ba-secondary { border:1px solid var(--ba-line); color:inherit; background:transparent; }.ba-mini:hover, .ba-secondary:hover { border-color:var(--ba-accent); color:var(--ba-accent); }.ba-primary { border:1px solid var(--ba-accent); color:#fff; background:var(--ba-accent); }.ba-primary:hover { filter:brightness(.94); }.ba-shell button:disabled { opacity:.45; cursor:not-allowed; }
.ba-filters { display:flex; align-items:end; gap:8px; padding:11px; border:1px solid var(--ba-line); border-radius:12px; background:var(--ba-card); }
.ba-filters label { display:grid; gap:5px; color:var(--ba-muted); font-size:9px; }.ba-filters label:first-child { flex:1; }.ba-filters input, .ba-filters select, .ba-form-grid input, .ba-form-grid select, .ba-form-grid textarea { min-height:34px; padding:7px 9px; border:1px solid var(--ba-line); border-radius:7px; outline:0; color:inherit; background:color-mix(in srgb, var(--ba-card) 96%, #71808a); font-size:11px; }.ba-filters input:focus, .ba-filters select:focus, .ba-form-grid input:focus, .ba-form-grid select:focus, .ba-form-grid textarea:focus { border-color:var(--ba-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--ba-accent) 11%, transparent); }
.ba-decision-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 18px; border-radius:14px; background:linear-gradient(115deg, color-mix(in srgb, var(--ba-accent) 10%, var(--ba-card)), var(--ba-card)); }
.ba-weekly-head { display:flex; align-items:center; justify-content:space-between; gap:22px; min-height:132px; padding:22px 24px; overflow:hidden; border:1px solid var(--ba-line); border-radius:16px; background:linear-gradient(120deg, color-mix(in srgb, var(--ba-accent) 11%, var(--ba-card)), var(--ba-card)); box-shadow:0 4px 16px rgba(16,35,48,.045); }
.ba-weekly-head.is-success { background:linear-gradient(120deg, color-mix(in srgb, var(--ba-green) 12%, var(--ba-card)), var(--ba-card)); }.ba-weekly-head.is-warning { background:linear-gradient(120deg, color-mix(in srgb, var(--ba-orange) 13%, var(--ba-card)), var(--ba-card)); }.ba-weekly-head.is-danger { background:linear-gradient(120deg, color-mix(in srgb, var(--ba-red) 12%, var(--ba-card)), var(--ba-card)); }
.ba-weekly-head h2 { max-width:760px; margin:6px 0 7px; font-size:24px; line-height:1.25; letter-spacing:-.02em; }.ba-weekly-head p { margin:0; color:var(--ba-muted); font-size:11px; }
.ba-weekly-verdict { flex:0 0 150px; display:grid; gap:4px; padding:13px 15px; border:1px solid var(--ba-line); border-radius:12px; background:color-mix(in srgb, var(--ba-card) 85%, transparent); }.ba-weekly-verdict span, .ba-weekly-verdict small { color:var(--ba-muted); font-size:9px; }.ba-weekly-verdict b { font-size:22px; line-height:1.1; }
.ba-weekly-insights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }.ba-weekly-insights article { min-height:128px; padding:15px; border:1px solid var(--ba-line); border-radius:13px; background:var(--ba-card); }.ba-weekly-insights span { color:var(--ba-accent); font-size:9px; font-weight:800; letter-spacing:.08em; }.ba-weekly-insights b { display:block; margin:10px 0 7px; font-size:14px; line-height:1.35; }.ba-weekly-insights p { margin:0; color:var(--ba-muted); font-size:10px; line-height:1.6; }
.ba-caveat { display:flex; align-items:flex-start; gap:10px; padding:11px 13px; border:1px dashed color-mix(in srgb, var(--ba-orange) 38%, transparent); border-radius:10px; color:var(--ba-muted); background:color-mix(in srgb, var(--ba-orange) 5%, transparent); font-size:10px; line-height:1.55; }.ba-caveat b { flex:0 0 auto; color:var(--ba-orange); }
.ba-row-actions { display:flex; flex-wrap:wrap; gap:4px; min-width:170px; }
.ba-quality { display:grid; gap:7px; }.ba-quality article { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:9px; padding:8px; border-radius:8px; background:color-mix(in srgb, currentColor 3%, transparent); }.ba-quality article b { font-size:10px; }.ba-quality article p { margin:2px 0 0; color:var(--ba-muted); font-size:9px; line-height:1.4; }.ba-quality-icon { display:grid; place-items:center; width:25px; height:25px; border-radius:7px; color:#fff; background:var(--ba-orange); font-size:11px; font-weight:800; }.ba-quality-icon.is-success { background:var(--ba-green); }
.ba-steps { display:grid; gap:10px; margin:0; padding:0; list-style:none; counter-reset:steps; }.ba-steps li { display:grid; grid-template-columns:24px minmax(0,1fr); gap:2px 9px; counter-increment:steps; }.ba-steps li::before { content:counter(steps); grid-row:1/3; display:grid; place-items:center; align-self:start; width:22px; height:22px; border-radius:50%; color:#fff; background:var(--ba-accent); font-size:9px; font-weight:800; }.ba-steps b { font-size:11px; }.ba-steps span { color:var(--ba-muted); font-size:9px; line-height:1.45; }
.ba-import { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }.ba-import input { width:100%; padding:8px; border:1px dashed var(--ba-line); border-radius:8px; font-size:10px; }.ba-note { color:var(--ba-muted); font-size:10px; }
.ba-definition-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }.ba-definition-grid div { display:grid; gap:5px; padding:11px; border-radius:9px; background:color-mix(in srgb, currentColor 3%, transparent); }.ba-definition-grid b { font-size:10px; }.ba-definition-grid span { color:var(--ba-muted); font-size:9px; line-height:1.5; }
.ba-modal { position:fixed; z-index:10000; inset:0; display:grid; place-items:center; padding:20px; background:rgba(7,16,22,.62); backdrop-filter:blur(4px); }
.ba-dialog { width:min(680px,100%); max-height:calc(100vh - 40px); overflow:auto; padding:19px; border:1px solid var(--ba-line); border-radius:16px; color:var(--text,#172027); background:var(--surface,#fff); box-shadow:0 24px 80px rgba(0,0,0,.28); }.ba-dialog > header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:16px; }.ba-dialog h3 { margin:3px 0 0; }.ba-dialog header button { width:30px; height:30px; border:0; border-radius:7px; color:inherit; background:color-mix(in srgb,currentColor 7%,transparent); cursor:pointer; font-size:18px; }.ba-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }.ba-form-grid label { display:grid; gap:5px; color:var(--ba-muted); font-size:10px; }.ba-form-grid .ba-span-2 { grid-column:1/-1; }.ba-form-grid textarea { resize:vertical; }.ba-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:17px; padding-top:14px; border-top:1px solid var(--ba-line); }.ba-dialog footer > div { display:flex; gap:7px; }.ba-check { display:flex!important; grid-auto-flow:column; align-items:center; color:inherit!important; }.ba-check input { min-height:0; }
.ba-toast { position:fixed; z-index:11000; right:24px; bottom:24px; max-width:360px; padding:11px 15px; border-radius:9px; color:#fff; background:#143d35; box-shadow:0 12px 30px rgba(0,0,0,.2); font-size:11px; font-weight:700; }.ba-toast.is-danger { background:#942f2b; }
.ba-loading, .ba-error { display:grid; place-items:center; gap:8px; min-height:55vh; color:var(--ba-muted); text-align:center; }.ba-loading i { width:28px; height:28px; border:3px solid var(--ba-line); border-top-color:var(--ba-accent); border-radius:50%; animation:ba-spin .8s linear infinite; }.ba-loading b, .ba-error b { color:inherit; font-size:14px; }.ba-loading span, .ba-error span { font-size:10px; }.ba-empty { display:grid; place-items:center; min-height:120px; color:var(--ba-muted); font-size:10px; }
@keyframes ba-spin { to { transform:rotate(360deg); } }

/* Readable type scale shared by every visual theme. */
.ba-shell {
  font-family:var(--font, "Google Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size:13px;
  line-height:1.55;
}
.ba-source { min-height:46px; font-size:13px; }
.ba-source strong { font-size:14px; }
.ba-source b { font-size:12px; }
.ba-tabs button { min-height:40px; padding:8px 15px; font-size:13px; }
.ba-tabs em { min-width:19px; height:19px; font-size:11px; }
.ba-kpi { min-height:122px; padding:16px; }
.ba-kpi-label { font-size:13px; }
.ba-kpi strong { font-size:26px; }
.ba-kpi small { font-size:12px; }
.ba-card { padding:18px; }
.ba-card header h3, .ba-decision-head h2 { font-size:17px; }
.ba-card header p, .ba-decision-head p { font-size:13px; }
.ba-eyebrow { font-size:11px; }
.ba-link { min-height:34px; font-size:12px; }
.ba-chart-labels { font-size:11px; }
.ba-bridge > div, .ba-bridge b { font-size:12px; }
.ba-alert-list article { padding:11px; }
.ba-alert-list article b { font-size:13px; }
.ba-alert-list article p { font-size:12px; }
.ba-alert-list article > strong, .ba-alert-list article > button { font-size:12px; }
.ba-alert-list article > button { min-height:32px; padding:6px 9px; }
.ba-alert-level { width:27px; height:27px; font-size:11px; }
.ba-table { font-size:13px; }
.ba-table th { padding:11px 12px; font-size:12px; }
.ba-table td { padding:12px; }
.ba-table td b { font-size:13px; }
.ba-table td small { font-size:11.5px; }
.ba-pill { min-height:24px; padding:4px 9px; font-size:11.5px; }
.ba-mini, .ba-primary, .ba-secondary { min-height:38px; padding:8px 13px; font-size:12.5px; }
.ba-filters { padding:13px; }
.ba-filters label, .ba-form-grid label { font-size:12px; }
.ba-filters input, .ba-filters select, .ba-form-grid input, .ba-form-grid select, .ba-form-grid textarea { min-height:40px; padding:9px 11px; font-size:13px; }
.ba-weekly-head h2 { font-size:26px; }
.ba-weekly-head p { font-size:13px; }
.ba-weekly-verdict span, .ba-weekly-verdict small { font-size:12px; }
.ba-weekly-verdict b { font-size:24px; }
.ba-weekly-insights span { font-size:11px; }
.ba-weekly-insights b { font-size:15px; }
.ba-weekly-insights p { font-size:12px; }
.ba-caveat { font-size:12px; }
.ba-quality article { padding:10px; }
.ba-quality article b { font-size:13px; }
.ba-quality article p { font-size:12px; }
.ba-quality-icon { width:29px; height:29px; font-size:12px; }
.ba-steps li { grid-template-columns:28px minmax(0,1fr); }
.ba-steps li::before { width:26px; height:26px; font-size:11px; }
.ba-steps b { font-size:13px; }
.ba-steps span { font-size:12px; }
.ba-import input, .ba-note { font-size:12px; }
.ba-definition-grid b { font-size:13px; }
.ba-definition-grid span { font-size:12px; }
.ba-dialog h3 { font-size:22px; line-height:1.35; }
.ba-dialog header button { width:36px; height:36px; }
.ba-toast { font-size:13px; }
.ba-loading b, .ba-error b { font-size:16px; }
.ba-loading span, .ba-error span, .ba-empty { font-size:12px; }

/* Google workspace theme: blue actions, quiet surfaces and crisp hierarchy. */
body[data-theme="google"] .ba-shell {
  --ba-bg:#f8fbff;
  --ba-card:#ffffff;
  --ba-line:#e0e6ef;
  --ba-muted:#5f6368;
  --ba-accent:#1a73e8;
  --ba-blue:#1a73e8;
  --ba-green:#34a853;
  --ba-red:#ea4335;
  --ba-orange:#f9ab00;
  color:#202124;
  background:#f8fbff;
  border:1px solid #edf1f7;
  border-radius:16px;
}
body[data-theme="google"] .ba-source {
  border-color:#fde293;
  background:#fff7df;
  color:#5f6368;
}
body[data-theme="google"] .ba-source b { color:#8d4e00; background:#ffffff; }
body[data-theme="google"] .ba-source.is-live { border-color:#ceead6; background:#e6f4ea; }
body[data-theme="google"] .ba-tabs {
  gap:5px;
  padding:5px;
  border-color:#e0e6ef;
  border-radius:999px;
  background:#ffffff;
  box-shadow:0 1px 2px rgba(60,64,67,.08);
}
body[data-theme="google"] .ba-tabs button { border-radius:999px; color:#3c4043; font-weight:600; }
body[data-theme="google"] .ba-tabs button:hover { color:#174ea6; background:#edf2fa; }
body[data-theme="google"] .ba-tabs button.is-active {
  color:#174ea6;
  background:#c2e7ff;
  box-shadow:none;
}
body[data-theme="google"] .ba-tabs em { color:#174ea6; background:rgba(255,255,255,.68); }
body[data-theme="google"] .ba-kpi,
body[data-theme="google"] .ba-card,
body[data-theme="google"] .ba-decision-head,
body[data-theme="google"] .ba-weekly-head,
body[data-theme="google"] .ba-weekly-insights article {
  border-color:#e0e6ef;
  background:#ffffff;
  box-shadow:0 1px 2px rgba(60,64,67,.08), 0 6px 16px rgba(60,64,67,.045);
}
body[data-theme="google"] .ba-kpi,
body[data-theme="google"] .ba-card,
body[data-theme="google"] .ba-weekly-insights article { border-radius:12px; }
body[data-theme="google"] .ba-kpi::before { width:4px; background:#dadce0; }
body[data-theme="google"] .ba-kpi.is-success::before { background:#34a853; }
body[data-theme="google"] .ba-kpi.is-danger::before { background:#ea4335; }
body[data-theme="google"] .ba-kpi.is-warning::before { background:#f9ab00; }
body[data-theme="google"] .ba-kpi.is-accent::before { background:#1a73e8; }
body[data-theme="google"] .ba-eyebrow,
body[data-theme="google"] .ba-link { color:#1a73e8; }
body[data-theme="google"] .ba-link:hover { color:#174ea6; background:#e8f0fe; border-radius:999px; }
body[data-theme="google"] .ba-table-wrap { border-color:#e0e6ef; border-radius:10px; background:#ffffff; }
body[data-theme="google"] .ba-table th { color:#5f6368; background:#f8fafd; }
body[data-theme="google"] .ba-table td { border-top-color:#edf1f7; }
body[data-theme="google"] .ba-table tbody tr:hover { background:#f8fbff; }
body[data-theme="google"] .ba-alert-list article,
body[data-theme="google"] .ba-quality article,
body[data-theme="google"] .ba-definition-grid div { background:#f8fafd; }
body[data-theme="google"] .ba-pill { color:#5f6368; background:#f1f3f4; }
body[data-theme="google"] .ba-pill.is-danger { color:#b3261e; background:#fce8e6; }
body[data-theme="google"] .ba-pill.is-warning { color:#8d4e00; background:#fff7df; }
body[data-theme="google"] .ba-pill.is-success { color:#137333; background:#e6f4ea; }
body[data-theme="google"] .ba-pill.is-accent { color:#174ea6; background:#e8f0fe; }
body[data-theme="google"] .ba-primary,
body[data-theme="google"] .ba-secondary,
body[data-theme="google"] .ba-mini { border-radius:999px; }
body[data-theme="google"] .ba-primary {
  border-color:#1a73e8;
  color:#ffffff;
  background:#1a73e8;
  box-shadow:0 1px 2px rgba(26,115,232,.2);
}
body[data-theme="google"] .ba-primary:hover { background:#1765cc; filter:none; box-shadow:0 2px 5px rgba(26,115,232,.25); }
body[data-theme="google"] .ba-secondary,
body[data-theme="google"] .ba-mini { border-color:#dadce0; color:#1a73e8; background:#ffffff; }
body[data-theme="google"] .ba-secondary:hover,
body[data-theme="google"] .ba-mini:hover { border-color:#1a73e8; color:#174ea6; background:#f8fbff; }
body[data-theme="google"] .ba-filters {
  border-color:#e0e6ef;
  background:#ffffff;
  box-shadow:0 1px 2px rgba(60,64,67,.06);
}
body[data-theme="google"] .ba-filters input,
body[data-theme="google"] .ba-filters select,
body[data-theme="google"] .ba-form-grid input,
body[data-theme="google"] .ba-form-grid select,
body[data-theme="google"] .ba-form-grid textarea {
  border-color:#dadce0;
  color:#202124;
  background:#ffffff;
}
body[data-theme="google"] .ba-filters input:focus,
body[data-theme="google"] .ba-filters select:focus,
body[data-theme="google"] .ba-form-grid input:focus,
body[data-theme="google"] .ba-form-grid select:focus,
body[data-theme="google"] .ba-form-grid textarea:focus {
  border-color:#1a73e8;
  box-shadow:0 0 0 3px rgba(26,115,232,.12);
}
body[data-theme="google"] .ba-decision-head,
body[data-theme="google"] .ba-weekly-head {
  background:#ffffff;
  box-shadow:inset 4px 0 #1a73e8, 0 1px 2px rgba(60,64,67,.08), 0 8px 20px rgba(60,64,67,.05);
}
body[data-theme="google"] .ba-weekly-head.is-success { box-shadow:inset 4px 0 #34a853, 0 1px 2px rgba(60,64,67,.08), 0 8px 20px rgba(60,64,67,.05); }
body[data-theme="google"] .ba-weekly-head.is-warning { box-shadow:inset 4px 0 #f9ab00, 0 1px 2px rgba(60,64,67,.08), 0 8px 20px rgba(60,64,67,.05); }
body[data-theme="google"] .ba-weekly-head.is-danger { box-shadow:inset 4px 0 #ea4335, 0 1px 2px rgba(60,64,67,.08), 0 8px 20px rgba(60,64,67,.05); }
body[data-theme="google"] .ba-weekly-verdict { border-color:#e0e6ef; background:#f8fafd; }
body[data-theme="google"] .ba-caveat { border-color:#fde293; color:#5f6368; background:#fff7df; }
body[data-theme="google"] .ba-dialog {
  border-color:#dadce0;
  border-radius:16px;
  color:#202124;
  background:#ffffff;
  box-shadow:0 24px 80px rgba(60,64,67,.3);
}
body[data-theme="google"] .ba-dialog header button { color:#5f6368; background:#f1f3f4; border-radius:50%; }
body[data-theme="google"] .ba-dialog header button:hover { color:#202124; background:#e8eaed; }
body[data-theme="google"] .ba-modal { background:rgba(32,33,36,.48); }
body[data-theme="google"] .ba-toast { background:#137333; }
body[data-theme="google"] .ba-toast.is-danger { background:#b3261e; }
body[data-theme="google"] .ba-shell button:focus-visible,
body[data-theme="google"] .ba-shell input:focus-visible,
body[data-theme="google"] .ba-shell select:focus-visible,
body[data-theme="google"] .ba-shell textarea:focus-visible {
  outline:3px solid rgba(26,115,232,.22);
  outline-offset:2px;
}

@media (max-width:1280px) { .ba-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.ba-kpi-grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:900px) { .ba-shell { padding:10px; border-radius:12px; }.ba-source { align-items:flex-start; flex-direction:column; gap:6px; }.ba-grid-2 { grid-template-columns:1fr; }.ba-kpi-grid, .ba-kpi-grid-4, .ba-kpi-grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }.ba-definition-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.ba-weekly-insights { grid-template-columns:1fr; }.ba-weekly-insights article { min-height:0; } }
@media (max-width:600px) { .ba-kpi-grid, .ba-kpi-grid-4, .ba-kpi-grid-3 { grid-template-columns:1fr; }.ba-kpi { min-height:96px; }.ba-filters, .ba-decision-head, .ba-dialog footer, .ba-weekly-head { align-items:stretch; flex-direction:column; }.ba-weekly-head { padding:17px; }.ba-weekly-head h2 { font-size:20px; }.ba-weekly-verdict { flex-basis:auto; }.ba-form-grid { grid-template-columns:1fr; }.ba-form-grid .ba-span-2 { grid-column:auto; }.ba-definition-grid { grid-template-columns:1fr; }.ba-source b { line-height:1.4; }.ba-alert-list article { grid-template-columns:26px minmax(0,1fr) auto; }.ba-alert-list article > button { grid-column:2/-1; }.ba-caveat { flex-direction:column; }.ba-toast { right:12px; bottom:12px; left:12px; max-width:none; } }
@media (prefers-reduced-motion:reduce) { .ba-loading i { animation:none; } }
