@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --ink: #172530;
  --muted: #637381;
  --line: #cbd7e1;
  --line-dark: #9fb1c0;
  --header: #27465d;
  --jade: #087f5b;
  --jade-dark: #056347;
  --jade-soft: #e5f4ee;
  --amber: #9a6700;
  --amber-soft: #fff4d6;
  --red: #b42318;
  --red-soft: #ffebe8;
  --sans: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html { color-scheme: light; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 var(--sans); }
a { color: var(--header); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #69b99e; outline-offset: 2px; }
.skip-link { position: fixed; top: -50px; left: 12px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 22px; color: white; background: #173448; border-bottom: 3px solid var(--jade); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-weight: 650; text-decoration: none; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; color: #173448; background: #85d5b8; font: 700 16px/1 var(--mono); }
.brand-logo { width: 34px; height: 34px; padding: 0; background: #fff; border-radius: 4px; object-fit: contain; }
.auth-logo { margin: -10px 0 8px -14px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a, .link-button { color: #dbe8ef; font-size: 13px; text-decoration: none; }
.site-nav form { margin: 0; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; }
.site-nav a:hover, .link-button:hover { color: white; text-decoration: underline; }
.nav-notification { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 5px; color: #173448; background: #ffd166; border-radius: 9px; font: 700 10px/1 var(--mono); text-decoration: none; }
.page-shell { width: min(100%, 1920px); margin: 0 auto; padding: 22px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.page-heading h1, .narrow-page h1 { margin: 2px 0 4px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--jade-dark); font: 650 11px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.page-summary { margin: 0; color: var(--muted); }
.heading-actions, .action-strip, .export-links, .confirm-row { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid transparent; border-radius: 2px; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--jade); color: white; border-color: var(--jade); }
.button-primary:hover { background: var(--jade-dark); }
.button-secondary { background: white; color: var(--ink); border-color: var(--line-dark); }
.button-secondary:hover { border-color: var(--jade); color: var(--jade-dark); }
.text-link, .export-links a { font-weight: 600; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.filter-bar label, .stacked-form label, .auth-form label { display: grid; gap: 5px; color: #405463; font-size: 12px; font-weight: 650; }
.filter-bar input, .filter-bar select, .stacked-form input, .stacked-form select, .stacked-form textarea, .auth-form input { min-height: 40px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line-dark); border-radius: 2px; }
.search-field { min-width: 260px; flex: 1; }
.custom-dates { display: flex; gap: 8px; }
.is-hidden { display: none !important; }
.table-toolbar { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.table-toolbar p { margin: 0; color: var(--muted); }
.export-links a { font-size: 12px; }
.action-strip { justify-content: space-between; min-height: 54px; padding: 7px 0; border-top: 1px solid var(--line); }
.queue-status { color: var(--muted); font: 12px var(--mono); }
.table-scroll { width: 100%; overflow: auto; background: var(--paper); border: 1px solid var(--line-dark); scrollbar-color: #8da5b6 #edf2f5; }
.data-table, .detail-metrics { width: 100%; min-width: 1460px; border-collapse: separate; border-spacing: 0; background: white; }
.data-table th, .data-table td, .detail-metrics th, .detail-metrics td { min-height: 54px; padding: 10px 12px; vertical-align: middle; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-table thead th, .detail-metrics thead th { position: sticky; top: 0; z-index: 5; min-width: 142px; color: white; background: var(--header); font-size: 11px; line-height: 1.25; letter-spacing: .035em; text-transform: uppercase; }
.data-table thead a { color: white; text-decoration: none; }
.data-table thead a:hover { text-decoration: underline; }
.data-table tbody tr:hover > * { background: #f5faf8; }
.data-table tbody tr.is-selected > * { background: var(--jade-soft); }
.select-column { position: sticky; left: 0; z-index: 3; width: 44px; min-width: 44px !important; text-align: center !important; background: white; }
thead .select-column { z-index: 8; background: var(--header); }
.profile-column { position: sticky; left: 44px; z-index: 3; min-width: 220px !important; width: 220px; background: white; }
thead .profile-column { z-index: 8; background: var(--header); }
.source-column { position: sticky; left: 264px; z-index: 3; min-width: 120px !important; width: 120px; background: white; box-shadow: 2px 0 0 var(--line-dark); }
thead .source-column { z-index: 8; background: var(--header); }
.profile-column small { display: block; margin-top: 3px; color: var(--muted); font: 11px var(--mono); }
.profile-link { color: var(--ink); font-weight: 650; text-decoration: none; }
.profile-link:hover { color: var(--jade-dark); text-decoration: underline; }
.platform-label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.number-cell { text-align: right !important; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.number-cell strong { display: block; font-size: 14px; white-space: nowrap; }
.number-cell small { display: block; margin-top: 3px; color: var(--muted); font: 9px/1.2 var(--sans); letter-spacing: .025em; text-transform: uppercase; }
.metric-partial { color: var(--amber); background: var(--amber-soft); }
.metric-empty { color: #728390; }
.date-cell, .mono { white-space: nowrap; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.text-button { padding: 4px; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.danger-text { color: var(--red); }
.empty-table { padding: 36px !important; color: var(--muted); text-align: center !important; }
.empty-table strong, .empty-table span { display: block; }
.quality-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; color: var(--muted); font-size: 12px; }
.quality-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border: 1px solid var(--line-dark); }
.legend-complete { background: var(--jade-soft); }.legend-partial { background: var(--amber-soft); }.legend-empty { background: #edf1f4; }
.messages { position: relative; z-index: 20; width: min(100% - 32px, 1664px); margin: 14px auto 0; }
.message { margin: 0 0 6px; padding: 10px 13px; background: white; border-left: 4px solid var(--header); }
.message-success { border-color: var(--jade); }.message-error { border-color: var(--red); background: var(--red-soft); }.message-warning { border-color: var(--amber); background: var(--amber-soft); }
.field-error, .errorlist { color: var(--red); background: var(--red-soft); border-left: 4px solid var(--red); padding: 9px 12px; }
.errorlist { margin: 3px 0 8px; list-style: none; }
.auth-layout { min-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(300px, .7fr); align-items: center; gap: clamp(40px, 10vw, 150px); width: min(1020px, 100%); margin: auto; }
.auth-intro { border-left: 8px solid var(--jade); padding-left: 28px; }
.auth-intro h1 { max-width: 600px; margin: 10px 0 14px; font-size: clamp(44px, 7vw, 82px); line-height: .97; letter-spacing: -.06em; }
.auth-intro p:last-child { max-width: 520px; color: var(--muted); font-size: 17px; }
.auth-form { display: grid; gap: 10px; padding: 28px 0; border-top: 4px solid var(--header); border-bottom: 1px solid var(--line-dark); }
.auth-form .button { margin-top: 8px; }
.narrow-page { width: min(620px, 100%); margin: 8vh auto; }
.narrow-page > p:not(.eyebrow) { color: var(--muted); }
.stacked-form { display: grid; gap: 9px; margin-top: 24px; }
.stacked-form small { color: var(--muted); }
.stacked-form .button { justify-self: start; margin-top: 8px; }
.split-workspace { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(280px, .65fr); gap: 56px; align-items: start; }
.format-guide { padding-top: 24px; border-top: 4px solid var(--header); }
.format-guide h2 { margin-top: 0; }.format-guide p { color: var(--muted); }
.format-guide pre { overflow: auto; padding: 14px; background: #eaf0f4; border: 1px solid var(--line); font: 12px/1.8 var(--mono); }
.preview-section, .history-section { margin-top: 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--header); }
.section-heading h2 { margin: 0; font-size: 20px; }.section-heading span { color: var(--muted); font: 12px var(--mono); }
.compact-table { min-width: 760px; }
.compact-table thead th { position: static; }
.confirm-row { padding: 16px 0; }
.rejection-title { color: var(--red); margin-top: 26px; }
.error-table tbody td:last-child { color: var(--red); }
.detail-heading form { margin: 0; }
.metric-ledger { overflow: auto; border: 1px solid var(--line-dark); }
.detail-metrics { min-width: 900px; }
.detail-metrics thead th { position: static; }
.detail-metrics tbody th { background: #f1f5f7; }

/* The dashboard behaves like a working spreadsheet: compact rows, fixed identity,
   and optional columns for metrics that are not available on every platform. */
.dashboard-heading { align-items: center; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; }
.dashboard-heading h1 { margin: 0 0 3px; font-size: 27px; letter-spacing: -.025em; }
.dashboard .page-summary { font-size: 12px; }
.dashboard .page-summary strong { color: var(--header); font-weight: 600; }
.dashboard .button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.dashboard .heading-actions { gap: 8px; flex-shrink: 0; }
.dashboard-filters { gap: 10px; margin-bottom: 12px; }
.dashboard-filters label { gap: 4px; font-size: 11px; }
.dashboard-filters input, .dashboard-filters select { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.dashboard-filters .search-field { min-width: 200px; max-width: 420px; }
.dashboard-filters .clear-filters { align-self: end; padding: 8px 2px; font-size: 12px; }
.dashboard-toolbar { align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 7px 0; border-top: 1px solid var(--line); }
.table-status, .table-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.table-status { font-size: 12px; }
.table-status .queue-status { padding-left: 12px; border-left: 1px solid var(--line-dark); font: 11px var(--sans); }
.table-tools { gap: 6px; }
.tool-button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--header); background: white; font-size: 11px; font-weight: 600; cursor: pointer; }
.tool-button:hover { border-color: var(--line-dark); background: #edf3f6; }
.tool-button[aria-pressed="true"], .tool-button[aria-expanded="true"] { color: var(--jade-dark); background: var(--jade-soft); border-color: #95c9b6; }
.dashboard .export-links { gap: 9px; margin-left: 5px; padding-left: 11px; border-left: 1px solid var(--line-dark); font-size: 11px; color: var(--muted); }
.dashboard .export-links a { display: inline-flex; align-items: center; min-height: 30px; font-size: 11px; text-decoration: none; }
.dashboard .export-links a:hover { text-decoration: underline; }
.dashboard-scroll { max-height: calc(100dvh - 266px); min-height: 130px; }
.dashboard-table { min-width: 1080px; table-layout: auto; }
.dashboard-table th, .dashboard-table td { height: 44px; min-height: 0; padding: 4px 10px; border-right-color: #e0e7ec; }
.dashboard-table thead th { height: 43px; min-width: 104px; padding: 7px 10px; font-size: 11px; letter-spacing: 0; text-transform: none; border-right-color: #476277; border-bottom-color: #1c3b50; }
.dashboard-table thead th small { display: block; margin-top: 2px; font-size: 9px; font-weight: 400; color: #c4d6e2; white-space: nowrap; }
.dashboard-table .numeric-heading { text-align: right; }
.dashboard-table .select-column { width: 34px; min-width: 34px !important; max-width: 34px; padding: 4px 6px; }
.dashboard-table input[type="checkbox"] { width: 15px; height: 15px; margin: 0; vertical-align: middle; accent-color: var(--jade); cursor: pointer; }
.dashboard-table .profile-column { left: 34px; width: 218px; min-width: 218px !important; max-width: 240px; box-shadow: 1px 0 0 var(--line-dark); }
.dashboard-table .profile-link { display: block; max-width: 218px; overflow: hidden; font-size: 12px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-table .profile-column small { max-width: 218px; margin-top: 0; overflow: hidden; color: var(--muted); font: 10px/14px var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-table .source-column { position: static; width: 87px; min-width: 87px !important; box-shadow: none; }
.dashboard-table thead .source-column { position: sticky; left: auto; z-index: 5; }
.dashboard-table thead .select-column, .dashboard-table thead .profile-column { z-index: 9; }
.dashboard-table .platform-label { color: var(--header); font: 600 10px var(--sans); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.sort-link { display: block; }
.sort-indicator { display: inline-block; margin-left: 4px; color: #aec4d3; font-size: 11px; }
.is-sorted .sort-indicator { color: #a6eed5; }
.dashboard-table .number-cell { padding: 0; }
.metric-link { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 43px; padding: 6px 10px; color: inherit; text-decoration: none; }
.dashboard-table .metric-link strong { font-size: 12px; font-weight: 600; }
.metric-link:hover strong { color: var(--jade-dark); text-decoration: underline; text-underline-offset: 4px; }
.dashboard-table .metric-partial { color: var(--amber); background: #fffbf0; }
.dashboard-table .metric-empty { color: #778893; }
.dashboard-table .updated-column { min-width: 104px; width: 111px; font-size: 10px; }
.dashboard-table .date-cell span { color: var(--muted); }
.dashboard-table .actions-column { min-width: 118px; width: 124px; }
.row-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.row-actions a, .row-actions .text-button { padding: 5px 0; color: var(--muted); font: 11px var(--sans); text-decoration: none; }
.row-actions a { color: var(--header); font-weight: 600; }
.row-actions a:hover, .row-actions .text-button:hover { color: var(--jade-dark); text-decoration: underline; }
.dashboard-table tbody tr[data-detail-url] { cursor: pointer; }
.dashboard-table tbody tr:hover > * { background: #edf5f2; }
.dashboard-table tbody tr.is-selected > * { background: var(--jade-soft); }
.dashboard-table tbody tr.is-selected > .select-column { box-shadow: inset 3px 0 var(--jade); }
.dashboard-table tbody tr:last-child > * { border-bottom: 0; }
.dashboard-table tr > :last-child { border-right: 0; }
.dashboard-legend { align-items: center; gap: 8px 18px; padding: 9px 0; font-size: 10px; }
.dashboard-legend > span:first-child { margin-right: auto; }
.dashboard-legend i { width: 7px; height: 7px; }
.dashboard[data-density="comfortable"] .dashboard-table tbody th,
.dashboard[data-density="comfortable"] .dashboard-table tbody td { height: 58px; }
.dashboard[data-density="comfortable"] .metric-link { min-height: 57px; }
.dashboard[data-density="comfortable"] .profile-link,
.dashboard[data-density="comfortable"] .metric-link strong { font-size: 13px; }

.profile-identity { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 5px; }
.profile-identity > div:first-child { min-width: 0; }
.profile-trend, .metric-trend { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 3px; background: transparent; font: 600 17px var(--sans); cursor: pointer; }
.profile-trend:hover, .profile-trend[aria-expanded="true"], .metric-trend:hover, .metric-trend[aria-expanded="true"] { background: #e1eaf0; }
.profile-trend:focus-visible, .metric-trend:focus-visible, .trend-close:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.trend-up { color: #08764d; }.trend-down { color: #b52b37; }.trend-flat, .trend-unavailable { color: #667681; }
.profile-trend.trend-unavailable, .metric-trend.trend-unavailable { font-size: 12px; font-weight: 500; }
.metric-value { display: flex; align-items: center; justify-content: flex-end; }
.metric-value .metric-link { flex: 1; padding-right: 3px; padding-left: 6px; }
.metric-trend { flex: 0 0 24px; margin-right: 3px; font-size: 15px; }
.trend-average { padding: 8px 0; }
.trend-average > span { color: var(--muted); font-size: 11px; }
.trend-average > strong { display: block; margin: 2px 0; font: 600 20px var(--mono); }
.trend-average > p { margin: 4px 0 0; color: var(--ink); font-size: 11px; }
.trend-popover { position: fixed; inset: auto; width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: 0; padding: 14px 16px; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: white; border: 1px solid var(--line-dark); border-radius: 4px; box-shadow: 0 8px 30px #132b3d26; font: 12px/1.4 var(--sans); text-align: left; white-space: normal; }
.trend-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.trend-heading h2 { margin: 2px 0 0; color: var(--header); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.trend-close { flex: 0 0 28px; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.trend-caption { margin: 4px 0 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.trend-list { margin: 0; }.trend-item { padding: 8px 0; border-top: 1px solid var(--line); }
.trend-item dt { margin-bottom: 3px; color: var(--header); font-size: 12px; font-weight: 600; }
.trend-item dd { margin: 0; font-size: 12px; font-weight: 600; }
.trend-percent { font-size: 11px; }
.trend-item .trend-values { margin-top: 3px; color: var(--ink); font: 11px/1.5 var(--mono); }
.trend-values span { display: block; color: var(--muted); font: 10px/1.5 var(--sans); }
.trend-item .trend-reason { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }

.profile-dialog { width: min(1200px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; color: var(--ink); background: white; border: 1px solid var(--line-dark); border-radius: 4px; box-shadow: 0 18px 70px #132b3d40; }
.profile-dialog::backdrop { background: #142c3f80; }
.profile-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
body.dialog-open { overflow: hidden; }
.dialog-bar { position: sticky; top: 0; z-index: 12; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; width: 100%; padding: 12px 20px; background: var(--header); border-bottom: 3px solid var(--jade); color: white; }
.dialog-bar h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dialog-bar .button { min-height: 32px; gap: 10px; padding: 6px 10px; background: transparent; border-color: #7792a5; color: white; font-size: 12px; }
.dialog-bar .button:hover { background: #365870; }
.dialog-bar .button span { font-size: 19px; line-height: 16px; }
.dialog-body { min-width: 0; min-height: 0; width: 100%; overflow-y: auto; padding: 20px; }
.dialog-loading { padding: 70px 0; text-align: center; color: var(--muted); }
.dialog-body .page-heading { margin-bottom: 16px; padding-bottom: 15px; }
.dialog-body .page-heading h1 { font-size: 26px; }
.dialog-body .page-summary { font-size: 12px; }
.dialog-body .history-section { margin-top: 26px; }
.dialog-body .table-scroll { max-height: 370px; }
.detail-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--line-dark); }
.detail-tabs a, .detail-tabs button { flex-shrink: 0; padding: 10px 14px; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.detail-tabs [aria-selected="true"], .detail-tabs [aria-pressed="true"], .detail-tabs .is-active { color: var(--jade-dark); border-bottom-color: var(--jade); }
.detail-tabs button span { margin-left: 5px; color: var(--muted); font: 10px var(--mono); }
.detail-section { margin: 20px 0 0; scroll-margin-top: 72px; }
.detail-section h2 { margin: 0 0 8px; font-size: 18px; }
.detail-section > p { color: var(--muted); font-size: 12px; }
.metric-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; border: 1px solid var(--line); }
.summary-metric { padding: 12px 15px; border: 0; border-right: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.summary-metric:hover { background: #f2f8f5; }
.summary-metric[aria-pressed="true"] { box-shadow: inset 0 3px var(--jade); background: #f4faf7; }
.summary-metric:last-child { border-right: 0; }
.summary-metric dt, .summary-metric > span:first-child { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.summary-metric dd { margin: 0; }
.summary-metric strong { display: block; color: var(--header); font: 600 21px/1.3 var(--mono); }
.summary-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.summary-metric.metric-partial strong { color: var(--amber); }
.chart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 11px 0; }
.chart-controls label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.chart-controls select { max-width: 100%; min-height: 34px; padding: 6px 9px; background: white; color: var(--ink); border: 1px solid var(--line-dark); }
.chart-controls > div { flex: 1; min-width: 180px; }
.chart-controls h2 { margin: 0 0 4px; font-size: 16px; }
.chart-controls p { margin: 0; max-width: 640px; color: var(--muted); font-size: 11px; }
.chart-note { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.chart-note.is-partial { color: var(--amber); }
.chart-wrap { position: relative; padding: 14px; border: 1px solid var(--line); background: white; }
.chart-svg { display: block; width: 100%; height: auto; min-height: 220px; overflow: visible; }
.chart-svg text { fill: var(--muted); font: 11px var(--sans); }
.chart-grid { stroke: #e0e7ec; stroke-width: 1; }
.chart-line { stroke: var(--jade); stroke-width: 2; stroke-linejoin: round; }
.chart-point { fill: var(--jade); }
.chart-point-partial { fill: var(--amber); }
.chart-cursor { stroke: #8097a7; stroke-dasharray: 3 4; }
.chart-target { fill: transparent; stroke: transparent; cursor: crosshair; }
.chart-target:focus-visible { stroke: var(--jade); stroke-width: 2; outline: none; }
.chart-empty { display: grid; place-content: center; min-height: 240px; padding: 24px; color: var(--muted); text-align: center; background: #f7f9fa; }
.chart-empty strong { display: block; margin-bottom: 5px; color: var(--header); font-size: 14px; }
.chart-readout { min-height: 26px; margin: 8px 0 0; color: var(--header); font: 11px/1.6 var(--mono); }
.chart-caption, .detail-note { color: var(--muted); font-size: 11px; }
.content-table { min-width: 740px; }
.content-table th, .content-table td { padding: 7px 10px; font-size: 12px; }
.content-table thead th { min-width: 100px; }
.detail-period { margin-bottom: 14px; gap: 10px; }
.detail-period input, .detail-period select, .detail-period .button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.detail-range { align-self: center; color: var(--muted); font: 11px var(--mono); }
.metric-metadata { margin-top: 22px; }
.metric-metadata > summary, .chart-data > summary { padding: 9px 0; color: var(--header); font-size: 12px; font-weight: 600; cursor: pointer; }
.metric-metadata .detail-metrics { min-width: 760px; }
.metric-metadata .detail-metrics th, .metric-metadata .detail-metrics td { padding: 8px 10px; font-size: 11px; }
.metric-metadata .detail-metrics thead th { min-width: 90px; letter-spacing: 0; text-transform: none; }
.metric-metadata .detail-metrics th:first-child { width: 175px; }
.metric-metadata .detail-metrics td:nth-child(4) { width: 34%; max-width: 360px; }
.metric-metadata .detail-metrics td:last-child { width: 150px; }
.metric-reason { display: block; max-width: 360px; margin-top: 3px; color: var(--muted); font: 10px/1.4 var(--sans); overflow-wrap: anywhere; }
.profile-detail .compact-table th, .profile-detail .compact-table td { padding: 7px 10px; font-size: 11px; }
.profile-detail .compact-table thead th { position: sticky; min-width: 100px; font-size: 10px; letter-spacing: 0; text-transform: none; }

.service-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.service-compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); }
.service-compact > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.service-label { color: var(--header); font-size: 11px; font-weight: 600; }
.service-compact strong { font: 600 18px var(--mono); color: var(--jade-dark); }
.service-compact .service-ai-state { font: 600 12px var(--sans); }
.service-compact small { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.service-compact > a { font-size: 11px; white-space: nowrap; }
.dashboard-scroll { max-height: calc(100dvh - 345px); }
.dev-grid { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(280px, .8fr); gap: 36px; max-width: 1300px; }
.settings-section { background: white; border: 1px solid var(--line); padding: 24px; }
.settings-section h2, .service-card h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.015em; }
.settings-section > p, .service-card p { color: var(--muted); font-size: 13px; }
.setting-field { display: grid; gap: 5px; margin-bottom: 9px; }
.setting-field input[type="checkbox"] { justify-self: start; min-height: 0; width: 18px; height: 18px; accent-color: var(--jade); }
.dev-summary { display: grid; gap: 16px; align-content: start; }
.service-card { min-width: 0; padding: 20px; background: white; border: 1px solid var(--line); }
.service-card .eyebrow { font-size: 10px; color: var(--jade-dark); }
.service-value { font: 600 32px var(--mono); color: var(--header); }
.operations-section { margin-top: 30px; }
.operations-section td { overflow-wrap: anywhere; max-width: 400px; font-size: 12px; }
.monitoring-settings { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); background: #f7faf9; }
.monitoring-settings summary { color: var(--header); font-size: 12px; font-weight: 600; cursor: pointer; }
.monitoring-settings p, .monitoring-settings small { color: var(--muted); font-size: 12px; }
.monitoring-state { padding-left: 8px; color: var(--jade-dark); }
.monitoring-settings .checkbox-label { display: flex; align-items: center; align-self: center; gap: 8px; }
.monitoring-settings input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--jade); }
.methodology { max-width: 1100px; }
.methodology section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.methodology h2 { font-size: 20px; }
.methodology p, .methodology li { max-width: 850px; color: #405463; line-height: 1.7; }
.methodology .data-table { min-width: 720px; }
.chart-svg { touch-action: pan-y; cursor: crosshair; }
.history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.report-list { margin-top: 30px; }

@media (max-width: 820px) {
  .dev-grid { grid-template-columns: 1fr; gap: 20px; }
  .dashboard-scroll { max-height: max(240px, calc(100dvh - 420px)); }
}
@media (max-width: 520px) {
  .service-strip { gap: 8px; grid-template-columns: 1fr; }
  .service-compact { padding: 8px 10px; }
  .site-header { gap: 12px; }
  .site-nav { gap: 8px 12px; }
  .settings-section, .service-card { padding: 16px; }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; padding: 14px 16px; }
  .site-nav { justify-content: flex-end; flex-wrap: wrap; gap: 9px 14px; }
  .page-shell { padding: 20px 14px; }
  .page-heading, .table-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-field { min-width: 0; grid-column: 1 / -1; }
  .custom-dates { grid-column: 1 / -1; }
  .auth-layout, .split-workspace { grid-template-columns: 1fr; gap: 34px; }
  .auth-layout { align-content: center; }
  .auth-intro h1 { font-size: 48px; }
  .source-column { position: static; box-shadow: none; }
  .profile-column { left: 44px; }
  .dashboard-heading { align-items: center; flex-direction: row; }
  .dashboard-heading h1 { font-size: 23px; }
  .dashboard-toolbar { flex-direction: row; align-items: center; }
  .dashboard-filters { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto; gap: 9px; }
  .dashboard-filters .search-field { max-width: none; grid-column: 1 / -1; }
  .dashboard-filters .custom-dates { grid-column: 1 / -1; }
  .dashboard-filters label { min-width: 0; }
  .dashboard-filters select, .dashboard-filters input { width: 100%; }
  .dashboard-scroll { max-height: calc(100dvh - 340px); }
  .dashboard-table .profile-column { min-width: 160px !important; width: 160px; max-width: 160px; }
  .dashboard-table .profile-link, .dashboard-table .profile-column small { max-width: 140px; }
  .dashboard-legend > span:first-child { width: 100%; }
  .profile-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-body { padding: 16px; }
  .metric-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-metric:nth-child(2) { border-right: 0; }
  .summary-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .site-nav a { font-size: 12px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar > *, .custom-dates { grid-column: 1; }
  .custom-dates { flex-direction: column; }
  .heading-actions, .action-strip { width: 100%; align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .profile-column { min-width: 190px !important; width: 190px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .dashboard .heading-actions { flex-direction: row; align-items: center; }
  .dashboard .heading-actions .button { flex: 1; min-height: 38px; }
  .dashboard-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .dashboard-filters > * { grid-column: auto; }
  .dashboard-filters .search-field { grid-column: 1 / 3; }
  .dashboard-filters .clear-filters { grid-column: 3; grid-row: 1; padding: 8px; }
  .dashboard-filters input, .dashboard-filters select, .dashboard-filters .button { min-height: 38px; }
  .dashboard-filters .button { width: auto; align-self: end; }
  .dashboard-filters .custom-dates { flex-direction: row; grid-column: 1 / -1; }
  .dashboard-filters .custom-dates label { flex: 1; }
  .dashboard-toolbar { gap: 7px; }
  .table-status { width: 100%; justify-content: space-between; gap: 6px; }
  .table-status .queue-status { padding-left: 8px; }
  .table-tools { width: 100%; gap: 5px; justify-content: space-between; }
  .tool-button, .dashboard .export-links a { min-height: 36px; }
  .dashboard .export-links { gap: 8px; margin-left: 0; padding-left: 8px; }
  .dashboard .export-links > span { display: none; }
  .dashboard-scroll { max-height: max(240px, calc(100dvh - 380px)); }
  .dashboard-table .metric-link { min-height: 43px; }
  .row-actions a, .row-actions .text-button { padding: 10px 0; }
  .profile-dialog { inset: 0; width: 100vw; min-width: 0; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-bar { padding: 10px 14px; }
  .dialog-bar .button { width: auto; min-height: 36px; }
  .dialog-body { padding: 14px; }
  .dialog-body .page-heading h1 { font-size: 23px; }
  .profile-detail .heading-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; }
  .detail-period { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .detail-period > * { grid-column: auto; }
  .detail-period > label { min-width: 0; grid-column: 1; grid-row: 1; }
  .detail-period > label select { width: 100%; min-height: 38px; }
  .detail-period > .button { grid-column: 2; grid-row: 1; align-self: end; width: auto; min-height: 38px; }
  .detail-period .custom-dates { grid-column: 1 / -1; flex-direction: row; }
  .detail-period .custom-dates label { flex: 1; min-width: 0; }
  .detail-period .custom-dates input { width: 100%; min-width: 0; min-height: 38px; }
  .detail-period .detail-range { grid-column: 1 / -1; font-size: 10px; }
  .detail-tabs a, .detail-tabs button { padding: 10px; }
  .summary-metric { padding: 10px; }
  .summary-metric strong { font-size: 18px; }
  .chart-wrap { padding: 8px; }
  .chart-svg { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .filter-bar, .action-strip, .table-toolbar, .quality-legend { display: none; }.page-shell { padding: 0; }.table-scroll { overflow: visible; border: 0; } }
/* Private settings authorization is server-enforced; the dialog only controls entry. */
.dev-access-dialog { width:min(420px,calc(100vw - 32px)); border:1px solid #cbd5df; border-radius:8px; padding:24px; color:#243746; background:#fff; box-shadow:0 16px 48px #172b3a33; }
.dev-access-dialog::backdrop { background:#172b3a70; }
.dev-access-dialog h2 { margin:0 0 10px; font-size:20px; }
.dev-access-dialog p { color:#607080; font-size:13px; line-height:1.5; }
.dev-access-dialog label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.dev-access-dialog input[type=password] { width:100%; margin-bottom:18px; }
.dev-access-feedback { margin:12px auto; max-width:640px; }
.report-profile-picker { min-width:0; border:1px solid #dce4eb; padding:12px; border-radius:4px; }
.report-selection-scroll { max-height:320px; overflow:auto; margin-block:10px; }
.report-selection-scroll .data-table { min-width:0; }
.report-selection-scroll .data-table thead th { min-width:0; }
.report-selection-scroll .data-table th:first-child { width:64px; }
.report-selection-scroll .data-table th:last-child { min-width:110px; }
.report-recipient-options { display:flex; flex-wrap:wrap; gap:8px 18px; }
.report-recipient-options label { display:flex; align-items:center; gap:7px; min-height:32px; }
.report-title-field { display:grid; gap:6px; max-width:640px; margin-block:14px; }
.report-title-field input, .report-comparison-picker select, .report-history-filters input, .report-history-filters select {
  min-height:36px; padding:7px 10px; color:var(--ink); background:white; border:1px solid var(--line-dark); border-radius:2px;
}
.report-history { margin-top:36px; border-top:1px solid var(--line); padding-top:20px; scroll-margin-top:20px; }
.report-history-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding-bottom:16px; }
.report-history-filters label { display:grid; gap:5px; font-size:12px; }
.report-history-filters input, .report-history-filters select { width:auto; max-width:220px; }
.report-history-actions, .report-pagination { margin-block:12px; }
.report-history-table { min-width:920px; }
.report-history-table small { display:block; margin-top:3px; font-weight:400; color:var(--muted); }
.report-comparison-picker { display:flex; align-items:end; flex-wrap:wrap; gap:14px; padding-block:16px; border-block:1px solid var(--line); }
.report-comparison-picker label { display:grid; gap:6px; flex:1 1 300px; min-width:0; }
.report-comparison-picker select { width:100%; min-width:0; }
.report-comparison-periods { display:flex; align-items:center; flex-wrap:wrap; gap:24px; border-bottom:1px solid var(--line); }
.report-comparison-periods p { flex:1 1 220px; }
.comparison-summary { display:flex; flex-wrap:wrap; gap:8px 24px; font-size:13px; font-weight:600; }
.change-up { color:#087f5b; }
.change-down { color:#b42318; }
.change-flat, .change-unavailable { color:#647482; }
.comparison-table { min-width:750px; }
.comparison-table td:last-child { white-space:normal; min-width:220px; max-width:340px; font-size:12px; }
.comparison-table td.numeric { white-space:nowrap; }
.comparison-table small { font-size:11px; }
.peer-comparison-table { min-width:840px; }
.peer-comparison-table .peer-value { min-width:140px; font-variant-numeric:tabular-nums; font-weight:600; }
.peer-comparison-table .peer-value small { display:block; margin-top:4px; color:#556575; font-weight:400; line-height:1.4; }
.report-prose p { margin:0 0 10px; line-height:1.55; }
.report-publication, .report-context article { border-left:3px solid var(--line); padding:4px 0 4px 14px; margin:14px 0 22px; }
.report-publication h4 { margin:0 0 8px; font-size:15px; }
.report-publication .report-prose p { margin-bottom:5px; }
.report-final { margin-top:32px; padding-top:22px; border-top:2px solid var(--line); }
.peer-final-row { margin:18px 0 24px; }
.peer-final-row h4 { margin:0 0 10px; }
.peer-final-value { display:grid; grid-template-columns:minmax(120px,190px) minmax(120px,1fr) minmax(90px,170px); align-items:center; gap:12px; margin:8px 0; font-size:13px; }
.peer-final-name { overflow-wrap:anywhere; }
.peer-final-number { font-variant-numeric:tabular-nums; text-align:right; }
.peer-final-track { display:flex; width:100%; height:17px; overflow:hidden; border-radius:3px; background:#edf1f4; }
.peer-final-track > span:not(.peer-final-half), .peer-final-half > span { display:block; height:100%; }
.peer-final-recipient { background:#2d6f92; }
.peer-final-peer { background:#b36a4c; }
.peer-final-half { display:flex; width:50%; }
.peer-final-negative { justify-content:flex-end; }
.peer-final-signed .peer-final-half + .peer-final-half { border-left:2px solid #7b8c99; }
.report-comparison-generate { margin-top:28px; border-top:1px solid var(--line); padding-top:14px; }
.report-sources li { margin-block:7px; overflow-wrap:anywhere; }
@media(max-width:640px) {
  .report-history-filters label { flex:1 1 135px; min-width:0; }
  .report-history-filters input, .report-history-filters select { width:100%; max-width:none; min-width:0; }
  .report-comparison-periods { gap:6px; }
  .report-comparison-periods > span { display:none; }
  .peer-final-value { grid-template-columns:1fr auto; gap:5px 10px; }
  .peer-final-track { grid-column:1 / -1; grid-row:2; }
}
[hidden] { display:none !important; }
.credit-toolbar { display:flex; gap:8px; margin:0; align-items:center; }
.credit-chip { display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:4px; padding:7px 9px; background:var(--paper); font-size:12px; line-height:1.3; min-height:36px; }
.credit-chip details { position:relative; }
.credit-chip summary { cursor:pointer; white-space:nowrap; color:var(--muted); }
.credit-chip summary span { color:var(--jade); font-weight:600; }
.credit-chip summary strong { font-family:var(--mono); color:var(--jade); background:var(--jade-soft); padding:2px 6px; border-radius:3px; font-size:12px; font-weight:600; }
.credit-chip:nth-child(2) summary span { color:#275f8b; }
.credit-chip:nth-child(2) summary strong { color:#275f8b; background:#edf4fb; }
.dev-summary .service-card .service-value { display:inline-block; padding:3px 8px; border-radius:3px; color:var(--jade); background:var(--jade-soft); font-family:var(--mono); }
.dev-summary .service-card:nth-child(2) .service-value { color:#275f8b; background:#edf4fb; }
.async-feedback { position:fixed; z-index:100; bottom:16px; left:50%; transform:translateX(-50%); max-width:calc(100vw - 32px); width:max-content; margin:0; padding:10px 14px; border:1px solid #aed4c5; border-radius:4px; background:#eef8f3; color:#145b42; font-size:13px; box-shadow:0 3px 12px #132b3d15; pointer-events:none; }
.navigation-loading { position:fixed; z-index:100; top:0; left:0; width:100%; margin:0; padding:7px 12px; color:#124b3a; background:#d9f1e6; border-bottom:2px solid var(--jade); text-align:center; font-size:13px; font-weight:600; box-shadow:0 2px 10px #132b3d20; pointer-events:none; }
.navigation-spinner { display:inline-block; width:13px; height:13px; margin-right:8px; vertical-align:-2px; border:2px solid #9acbb7; border-top-color:#124b3a; border-radius:50%; animation:collection-row-spin .8s linear infinite; }
@media (prefers-reduced-motion:reduce) { .navigation-spinner { animation:none; } }
.async-feedback.is-error { background:#fff2f1; color:#9c302c; border-color:#e0b0ac; }
.field-error { color:var(--red, #ad3333); font-size:12px; margin:5px 0; }
.dialog-feedback { margin:0; padding:8px 16px; border-bottom:1px solid var(--line); font-size:12px; }
[aria-invalid="true"] { border-color:#ad3333; }
form[aria-busy="true"] button[type="submit"] { cursor:wait; }
.import-dialog { width:min(1040px, calc(100vw - 48px)); }
.import-dialog .page-heading h1 { display:none; }
.import-dialog .page-heading [data-import-close] { display:none; }
.import-dialog .split-workspace, .import-dialog .preview-section { min-width:0; }
@media(max-width:640px) { .import-dialog { width:100vw; } .async-feedback { bottom:10px; font-size:12px; } }
.credit-buy { font-size:11px; white-space:nowrap; text-decoration:none; }
.credit-buy-unavailable { padding:0; border:0; background:transparent; color:var(--muted); opacity:.7; cursor:not-allowed; }
.credit-purchase-dialog { width:min(720px, calc(100vw - 32px)); }
.purchase-packages { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin:18px 0; }
.purchase-packages .service-card { display:flex; flex-direction:column; align-items:flex-start; }
.purchase-packages .button { margin-top:auto; width:100%; }
@media(max-width:640px) { .purchase-packages { grid-template-columns:1fr; } }
.bulk-archive-dialog { width:min(440px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:22px; border:1px solid var(--line-dark); border-radius:4px; color:var(--ink); background:var(--paper); }
.bulk-archive-dialog::backdrop { background:#17344855; }
.bulk-archive-dialog h2 { margin:0 0 12px; font-size:19px; line-height:1.25; }
.bulk-archive-dialog p { margin:10px 0; color:var(--muted); font-size:13px; }
.bulk-archive-dialog .bulk-archive-count { color:var(--ink); font:600 15px var(--mono); }
.bulk-archive-dialog .field-error { color:var(--red); }
.history-refresh-dialog { width:min(550px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:1px solid var(--line-dark); border-radius:4px; color:var(--ink); background:var(--paper); box-shadow:0 18px 70px #132b3d40; }
.history-refresh-dialog::backdrop { background:#142c3f80; }
.history-refresh-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.history-refresh-dialog p { font-size:13px; line-height:1.5; }
.history-refresh-dialog .history-selection { margin:0 0 10px; color:var(--jade-dark); font-weight:600; }
.history-presets { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:18px 0 12px; font-size:12px; }
.history-presets .tool-button { min-height:36px; padding:6px 12px; }
.history-dates { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.history-dates label, .history-auto-label { display:grid; gap:6px; color:var(--header); font-size:12px; font-weight:600; }
.history-refresh-dialog input, .history-refresh-dialog select { min-width:0; width:100%; min-height:42px; padding:9px; border:1px solid var(--line-dark); border-radius:2px; color:var(--ink); background:var(--paper); font:inherit; font-size:14px; }
.history-auto-label { margin:20px 0 6px; }
.history-refresh-dialog .history-help { color:var(--muted); font-size:12px; }
.history-full-button { margin-top:4px; }
.history-refresh-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:22px; }
@media(max-width:640px) { .history-refresh-dialog .history-refresh-actions .button { flex:1; width:auto; } }
.bulk-archive-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:20px; }
[data-archive-selected]:disabled { cursor:not-allowed; opacity:.55; }
.credit-popover { position:absolute; z-index:20; right:0; top:calc(100% + 15px); width:280px; max-width:calc(100vw - 40px); padding:14px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:4px; box-shadow:0 5px 15px #17253018; line-height:1.5; }
.credit-popover p { margin:0 0 9px; }
.dashboard-heading .heading-actions { flex-wrap:wrap; }
.dashboard-title { flex-shrink:0; }
.setting-field input[role=switch] { width:18px; height:18px; accent-color:var(--jade); }
.bulk-monitoring-controls { display:none; position:fixed; inset:0; width:min(340px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:16px; border:1px solid var(--line-dark); border-radius:4px; background:var(--paper); color:var(--ink); box-shadow:0 6px 24px #17253024; font-size:12px; overflow:auto; }
.bulk-monitoring-controls:popover-open { display:grid; gap:10px; }
.bulk-monitoring-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bulk-monitoring-heading h2 { margin:0; font-size:15px; line-height:1.3; }
.bulk-monitoring-controls select { width:100%; min-height:40px; padding:8px; color:var(--ink); background:var(--paper); border:1px solid var(--line-dark); border-radius:2px; }
.bulk-monitoring-controls small { color:var(--muted); line-height:1.4; }
.monitoring-status { display:block; color:var(--jade); font-size:10px; white-space:nowrap; }
.collection-row-status { display:flex; align-items:center; gap:4px; margin-top:2px; font-size:10px; line-height:1.25; color:var(--muted); white-space:normal; }
.profile-column .collection-row-status { display:flex; margin:0; min-height:12px; white-space:nowrap; }
.updated-column .collection-row-status { max-width:91px; white-space:nowrap; }
.dashboard-table .collection-row-status[data-state="RUNNING"], .dashboard-table .collection-row-status[data-state="SUCCESS"] { color:var(--jade-dark); }
.dashboard-table .collection-row-status[data-state="PARTIAL"], .dashboard-table .collection-row-status[data-state="DEFERRED_LIMIT"], .dashboard-table .collection-row-status[data-state="CHARGE_UNKNOWN"] { color:var(--amber); }
.dashboard-table .collection-row-status[data-state="FAILED"] { color:var(--red); }
.dashboard-table .collection-row-status [data-row-collection-label] { min-width:0; overflow:hidden; text-overflow:ellipsis; color:inherit; }
.collection-row-spinner { display:inline-block; flex:0 0 9px; width:9px; height:9px; border:1.5px solid var(--line); border-top-color:var(--jade); border-radius:50%; animation:collection-row-spin .8s linear infinite; }
tr[data-collection-stale] .collection-row-spinner { animation:none; opacity:.5; }
@keyframes collection-row-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .collection-row-spinner { animation:none; } }
@media (max-width:1100px) { .dashboard-heading { flex-wrap:wrap; } .dashboard-heading .heading-actions { width:100%; justify-content:flex-end; } }
@media (max-width:640px) { .dashboard-heading .heading-actions { justify-content:flex-start; } .credit-toolbar { width:100%; flex-wrap:wrap; } .credit-chip { flex:1; justify-content:space-between; position:relative; } .credit-chip details { position:static; } .credit-popover { left:0; right:auto; } .credit-chip:nth-child(2) .credit-popover { left:auto; right:0; } }
