/* Portal tokens (redesign 2026-10). --brand-* is the default palette; the customer bundle overrides the light
   semantic tokens through /customer/theme.css (0.4.218). Existing names keep every page on one palette. */
:root {
  --font-body-size:15px;
  --font-small-size:13px;
  --font-label-size:13px;
  --font-card-title-size:17px;
  --font-section-title-size:20px;
  color-scheme: light;
  --brand-green: #008a00;
  --brand-green-press: #007500;
  --brand-green-600: #33a133;
  --brand-light-green: #7bc87a;
  --brand-slate: #4d575d;
  --brand-mid-gray: #8a9499;
  --brand-light-gray: #e5e7e8;
  --brand-near-black: #212224;
  --brand-white: #ffffff;
  --brand-warm-tan: #ba8e6b;
  --brand-yellow: #f6bd18;
  --brand-orange: #ec7a2e;
  --bg: #f7f8f8;
  --sidebar: #ffffff;
  --sidebar-item: #e9f4e9;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #f1f3f3;
  --surface-subtle: #f7f8f8;
  --text: #4d575d;
  --strong: #212224;
  --muted: #667177;
  --placeholder: #6b757a;
  --border: #e5e7e8;
  --border-soft: #eef0f0;
  --border-strong: #c9cfd1;
  --accent: #008a00;
  --accent-text: #007500;
  --accent-soft: #e9f4e9;
  --accent-border: rgb(0 138 0 / 30%);
  --tint: #e9f4e9;
  --tint-text: #0a5c0a;
  --button-primary: #008a00;
  --button-primary-hover: #007500;
  --ok-bg: #e9f4e9;
  --ok-fg: #0a5c0a;
  --warn-bg: #fdf1cc;
  --warn-fg: #6b4f00;
  --error-bg: #fdebdd;
  --error-fg: #8a3c0b;
  --warning: #8a3c0b;
  --warning-soft: #fdebdd;
  --danger: #8a3c0b;
  --chart-cowork: #008a00;
  --chart-studio: #4d575d;
  /* GitHub in charts: a warm tan darkened to 4.4:1 on white (0.4.158), used everywhere GitHub is drawn. */
  --chart-github: #9a7050;
  /* Focus ring and form-field borders (0.4.158 accessibility): the ring is the accent green with a gap; field borders
     keep 3:1 or more against the field. */
  --focus-ring: #008a00;
  --field-border: #767f84;
  --chart-nonbilled: #c9cfd1;
  --shadow: none;
  --shadow-overlay: 0 16px 40px rgb(33 34 36 / 16%);
  --scrim: rgb(33 34 36 / 40%);
  --sidebar-width: 248px;
  --topbar-height: 64px;
  --content-width: 1576px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161719;
  --surface: #1f2022;
  --surface-raised: #1f2022;
  --surface-muted: #2a2c2f;
  --surface-subtle: #242629;
  --sidebar: #1f2022;
  --sidebar-item: #1d3a1d;
  --text: #b6bdc1;
  --strong: #f1f3f3;
  --muted: #9aa4a9;
  --placeholder: #8a9499;
  --border: #33363a;
  --border-soft: #2c2f32;
  --border-strong: #4b5055;
  --accent: #5cc05c;
  --accent-text: #5cc05c;
  --accent-soft: #1d3a1d;
  --accent-border: rgb(92 192 92 / 40%);
  /* Darker than the light theme's tint so the green focus ring keeps 3:1 on the selected page link. */
  --tint: #142b14;
  --tint-text: #b4e4b4;
  --field-border: #8a9499;
  --ok-bg: #1d3a1d;
  --ok-fg: #b4e4b4;
  --warn-bg: #3b3110;
  --warn-fg: #f3d77a;
  --error-bg: #40261a;
  --error-fg: #f2b38c;
  --warning: #f2b38c;
  --warning-soft: #40261a;
  --danger: #f2b38c;
  --chart-cowork: #3fae3f;
  --chart-studio: #9aa4a9;
  --chart-github: #c9a283;
  --chart-nonbilled: #4b5055;
  --shadow-overlay: 0 16px 40px rgb(0 0 0 / 50%);
  --scrim: rgb(0 0 0 / 55%);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--strong); background: var(--bg); font-size:var(--font-body-size); line-height: 1.4667; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--surface); color: var(--strong); box-shadow: var(--shadow-overlay); }
.skip-link:focus { top: 16px; }

/* Shell: 248 px sidebar, 64 px top bar. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 10; display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; height: 100vh; overflow: hidden; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand-row { display: flex; align-items: center; flex: none; height: var(--topbar-height); padding: 0 20px; border-bottom: 1px solid var(--border); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { flex: none; width: auto; height: 18px; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand-divider { flex: none; width: 1px; height: 20px; background: var(--border); }
.brand-name { color: var(--strong); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; }
.icon-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--strong); background: var(--surface-muted); }
.icon-button svg, .nav-item svg, .sidebar-link svg, .signout-link svg, .snapshot-explainer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.side-nav { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; overflow-y: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group:not(:has(.tab:not([hidden]))) { display: none; }
.nav-section { display: block; padding: 16px 12px 6px; color: var(--text); font-size: 13px; font-weight: 600; line-height: 16px; }
.nav-group:first-child .nav-section { padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--strong); background: transparent; cursor: pointer; text-align: left; white-space: nowrap; font-size: 15px; line-height: 1; text-decoration: none;  text-decoration: none; }
.nav-item svg { flex: none; color: var(--text); }
.nav-item > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: var(--surface-muted); }
.nav-item.is-active { color: var(--tint-text); background: var(--tint); font-weight: 600; }
.nav-item.is-active svg { color: var(--tint-text); }
.nav-count { flex: none; color: var(--text); font-size: 13px; font-weight: 500; }
.sidebar-links { display: flex; flex: none; flex-direction: column; gap: 2px; padding: 12px; border-top: 1px solid var(--border); }
.sidebar-link { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; font-size: 15px; line-height: 1; text-align: left; text-decoration: none; }
.sidebar-link:hover { color: var(--strong); background: var(--surface-muted); }
.sidebar-user { display: flex; flex: none; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 100%; color: var(--strong); background: var(--surface-muted); font-size: 13px; font-weight: 600; line-height: 1; }
.user-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.user-copy strong { overflow: hidden; color: var(--strong); font-size: 14px; font-weight: 600; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { overflow: hidden; color: var(--text); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span:empty { display: none; }
.signout-link { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text); }
.signout-link:hover { color: var(--strong); background: var(--surface-muted); }
.mobile-signout { display: none; min-height: 44px; align-items: center; padding: 8px 10px; color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: none; }

.main-area { flex: 1 1 0; min-width: 0; padding: 0; }
.workspace-topbar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--topbar-height); padding: 0 48px; border-bottom: 1px solid var(--border); background: var(--surface); }
.updated-badge { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-size: 14px; line-height: 20px; }
.updated-badge > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 100%; background: var(--accent); }
.workspace-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.theme-segment { display: inline-flex; gap: 2px; padding: 4px; border-radius: 8px; background: var(--surface-muted); }
.theme-choice { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 6px; color: var(--text); background: transparent; cursor: pointer; }
.theme-choice:hover { color: var(--strong); }
.theme-choice[aria-pressed="true"] { color: var(--strong); background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 14%); }
.theme-choice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.currency-control { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; line-height: 1; }
.currency-control[hidden],.updated-badge[hidden] { display:none; }
.currency-control span { white-space: nowrap; }
.currency-control select { height: 40px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--strong); background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; }

.workspace { display: grid; gap: 20px; width: min(100%, calc(var(--content-width) + 80px)); min-width: 0; padding: 28px 40px 56px; }
.view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.view-heading { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.view-intro { max-width: 76ch; margin: 0; color: var(--text); font-size: 15px; line-height: 22px; text-wrap: pretty; }
.view-intro:empty { display: none; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.report-meta:has(.status-line:empty), .report-meta:has(.status-line[hidden]) { display: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--strong); font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 40px; }
h2 { margin-bottom: 0; color: var(--strong); font-size:var(--font-card-title-size); font-weight: 600; line-height: 24px; }
h3 { margin-bottom: 4px; color: var(--strong); font-size:var(--font-body-size); font-weight: 600; }
.status-line { min-height: 20px; margin: 0; color: var(--text); font-size: 14px; line-height: 20px; }
.status-line.is-error { color: var(--danger); }
/* Routine load messages stay available to screen readers; errors stay visible. */
.status-line:not(.is-error) { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.about-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--strong); background: var(--surface); box-shadow: var(--shadow-overlay); }
.about-dialog::backdrop { background: var(--scrim); }
.about-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 8px 24px; }
.about-dialog h2 { font-size: 20px; line-height: 28px; }
.about-dialog ul { display: grid; gap: 10px; margin: 0; padding: 4px 24px 24px 44px; color: var(--text); }
.panel { display: grid; grid-template-columns:minmax(0,1fr); min-width: 0; gap: 24px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.metric { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 14px; font-weight: 600; line-height: 20px; }
.freshness { display: inline-flex; flex: none; align-items: center; height: 24px; padding: 0 10px; border-radius: 100px; color: var(--ok-fg); background: var(--ok-bg); font-size: 13px; font-weight: 500; white-space: nowrap; }
.freshness.stale { color: var(--warn-fg); background: var(--warn-bg); }
.freshness.expired, .freshness.failed { color: var(--error-fg); background: var(--error-bg); }
.metric-value { overflow-wrap: anywhere; color: var(--strong); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 32px; }
.metric-unit { min-height: 18px; color: var(--text); font-size:var(--font-small-size); }
.metric-secondary { color: var(--strong); font-size:var(--font-small-size); font-variant-numeric: tabular-nums; }
.metric-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.metric-meta { padding-top: 10px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size:var(--font-small-size); line-height: 1.5; }
.organization-user-stat { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; width:max-content; max-width:100%; padding:5px 10px; border-radius:999px; box-shadow:none; }
.organization-user-stat .metric-head { flex:none; }
.organization-user-stat .metric-label { font-size:var(--font-small-size); }
.organization-user-stat .metric-value { font-size:var(--font-body-size); letter-spacing:0; }
.organization-user-stat .metric-unit,.organization-user-stat .metric-meta { min-height:0; padding:0; border:0; font-size:var(--font-small-size); }
.badge, .report-status { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; height: 24px; padding: 0 10px; border-radius: 100px; background: var(--surface-muted); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge.credits, .report-status.is-current { color: var(--ok-fg); background: var(--ok-bg); }
.badge.estimate { border-color: rgb(186 142 107 / 45%); color: color-mix(in srgb, var(--brand-warm-tan) 55%, var(--brand-near-black)); background: rgb(186 142 107 / 12%); }
:root[data-theme="dark"] .badge.estimate { color: var(--brand-warm-tan); }
.report-status.is-previous { color: var(--muted); }

.data-section, .form-section, .operator-actions, .history-block { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.data-section { max-width: 100%; overflow-x: hidden; contain: inline-size; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; }
.section-bar > * { min-width: 0; }
.section-bar p, .form-section > div > p, .operator-actions > div > p { margin: 4px 0 0; color: var(--muted); font-size:var(--font-small-size); }
.table-shell { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.mobile-report-disclosure { display: none; }
.mobile-report-disclosure summary { min-height: 44px; padding: 12px 18px; color: var(--strong); font-weight: 680; cursor: pointer; }
.mobile-report-list { display: grid; gap: 10px; padding: 0 18px 18px; }
.mobile-report-card { padding: 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface-subtle); }
.mobile-report-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 12px; margin: 0; }
.mobile-report-values dt { color: var(--muted); font-size:var(--font-small-size); font-weight: 700; }
.mobile-report-values dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--strong); font-size:var(--font-small-size); text-align: right; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.admin-users-table { min-width: 620px; }
th, td { padding: 14px 24px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-variant-numeric: tabular-nums; }
th { height: 44px; padding-block: 0; color: var(--text); background: var(--bg); font-size: min(14px, 1em); font-weight: 600; line-height: 20px; }
td { height: 52px; color: var(--strong); line-height: 1.4667; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-subtle); }
.admin-user-row { cursor: pointer; }
.numeric { text-align: right; }
.muted { color: var(--muted); }
#ppac-agent-history > p:not(.section-note) { margin: 0; padding: 4px 24px 20px; }
.identity-cell { max-width: 240px; }
.identity-cell strong, .identity-cell span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-cell strong { color: var(--strong); font-weight: 680; }
.expand-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.expand-button:hover { color: var(--strong); background: var(--surface-muted); }
.expand-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 150ms; }
.expand-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.detail-row td { padding: 4px 24px 16px; background: var(--surface-subtle); }
.source-details { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.source-detail { display: grid; grid-template-columns: 1.35fr .8fr 1.1fr 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border-soft); }
.source-detail:first-child { border-top: 0; }
.source-detail strong { color: var(--strong); font-size:var(--font-small-size); }
.source-detail span { font-size:var(--font-small-size); }
.section-note { margin: 0; padding: 12px 24px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size:var(--font-small-size); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--border-soft); }
.pagination span { min-width: 10ch; color: var(--text); font-size:var(--font-small-size); text-align: center; }
.pagination .secondary-button { min-height: 40px; padding-block: 6px; }

.snapshot-explainer { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.snapshot-explainer svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--brand-orange); }
.snapshot-explainer p { max-width: 82ch; margin: 0; font-size:var(--font-body-size); }
.snapshot-explainer strong { color: var(--strong); }
.history-stack { display: grid; min-width: 0; max-width: 100%; gap: 16px; }
.history-block { padding: 22px 24px; }
.history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.history-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.history-current { color: var(--text); font-size:var(--font-small-size); }
.organization-history { display: grid; min-width: 0; max-width: 100%; gap: 18px; width: 100%; contain: inline-size; }
.period-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); }
.period-toggle-button { min-width: 72px; min-height: 40px; padding: 7px 14px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font: inherit; font-size:var(--font-small-size); font-weight: 700; cursor: pointer; }
.period-toggle-button:hover, .period-toggle-button:focus-visible { color: var(--strong); background: var(--surface); }
.period-toggle-button.is-active { color: var(--strong); background: var(--surface); box-shadow: var(--shadow); }
.period-toggle-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bar-chart { width: 100%; height: 128px; padding-top: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-overflow-scrolling: touch; }
.bar-chart::-webkit-scrollbar { display: none; }
.bar-chart.is-dragging { cursor: grabbing; }
.bar-chart-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(50px, 1fr); align-items: end; gap: 10px; width: 100%; height: 100%; }
.bar-item { display: flex; width: 100%; max-width: 76px; min-width: 0; flex-direction: column; align-items: center; justify-self: center; gap: 5px; padding: 0; border: 0; border-radius: 8px; color: inherit; background: transparent; font: inherit; cursor: pointer; scroll-snap-align: center; }
.bar-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.bar-item.is-selected { background: var(--surface-muted); }
.bar-item.is-selected .bar { background: var(--accent); }
.bar-item.is-selected .bar-date { color: var(--strong); }
.bar-item.is-selected .bar-value { color: var(--accent-text); }
.bar-item.is-prior-month { opacity: .52; }
.bar-item.is-prior-month.is-current { opacity: 1; }
.bar-value { color: var(--muted); font-size:var(--font-small-size); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { width: 100%; min-height: 8px; border-radius: 4px 4px 0 0; background: var(--brand-light-gray); }
.bar.is-zero { min-height: 0; }
div.bar-item.is-current .bar { background: var(--accent); }
div.bar-item.is-current .bar-value { color: var(--accent-text); }
:root[data-theme="dark"] .status-dot { background: var(--accent); }
.bar-date { color: var(--muted); font-size:var(--font-small-size); white-space: nowrap; }
.history-note { margin: 8px 0 16px; color: var(--muted); font-size:var(--font-small-size); }
.history-table { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 8px; contain: inline-size; }
.period-history-table { min-width: 620px; }
.period-history-table th, .period-history-table td { padding: 10px 14px; }
.admin-detail-history { gap: 12px; }
.history-row { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1fr) minmax(0,1.15fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border-soft); font-size:var(--font-small-size); }
.history-row > * { min-width:0; overflow-wrap:anywhere; }
.history-row .report-status { box-sizing:border-box; justify-self:end; white-space:normal; text-align:right; }
.history-row:first-child { border-top: 0; }
.history-row.header { color: var(--text); background: var(--bg); font-size: 14px; font-weight: 600; }
.history-row > :not(:first-child) { text-align: right; }
.history-row.header > :not(:first-child) .sort-button { justify-content: flex-end; }

.admin-toolbar { align-items: end; }
.search-field { width: min(300px, 100%); }
.admin-filters { display: flex; justify-content: flex-end; gap: 8px; width: min(300px, 100%); min-width: 0; }
.admin-filters label { flex: 1 1 150px; min-width: 0; }
.admin-filters .search-field { flex-basis: 250px; }
.mobile-sort-controls { display: none; }
.sort-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; cursor: pointer; }
th.numeric .sort-button, th.is-numeric .sort-button { justify-content: flex-end; }
.sort-button:hover { color: var(--strong); }
.sort-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Sortable headers (TableSort): an arrow icon, faint until the column is sorted or the button is hovered or focused. */
.sort-button .sort-icon { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.sort-button[data-direction="asc"] .sort-icon, .sort-button[data-direction="desc"] .sort-icon, .sort-button:hover .sort-icon, .sort-button:focus-visible .sort-icon { opacity: 1; }
.sort-button[data-direction="asc"], .sort-button[data-direction="desc"] { color: var(--strong); }
.sort-indicator { display: inline-block; min-width: 1em; color: var(--brand-green); font-size:var(--font-body-size); line-height: 1; }
input:not([type="radio"]):not([type="checkbox"]), select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--field-border); border-radius: 9px; color: var(--strong); background: var(--surface); }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--strong); background: var(--surface); font: inherit; line-height: 1.5; resize: vertical; }
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 2px solid var(--accent); outline-offset: 2px; }
.credit-request-layout { display: grid; gap: 18px; min-width: 0; padding: 0 24px 24px; }
.credit-request-about { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface-subtle); }
.credit-request-about summary { display: list-item; min-height: 24px; color: var(--strong); font-size:var(--font-body-size); font-weight: 600; cursor: pointer; }
.credit-request-about summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.credit-request-about ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size:var(--font-small-size); line-height: 1.5; }
.credit-request-summary { min-width: 0; margin: 0; color: var(--strong); font-size:var(--font-body-size); font-weight: 680; }
.credit-request-action { display: grid; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.credit-request-action > label { color: var(--strong); font-size:var(--font-small-size); font-weight: 680; }
.credit-request-action h3 { margin: 0 0 8px; font-size:var(--font-body-size); }
.credit-request-tier-options { display: grid; gap: 8px; }
.credit-request-tier-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 10px; }
.credit-request-tier-row.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.credit-request-tier-copy { display: grid; gap: 3px; min-width: 0; }
.credit-request-tier-copy span { color: var(--muted); font-size:var(--font-small-size); }
.credit-request-tier-row button { min-height: 40px; }
.credit-request-duration { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 10px; }
.credit-request-duration legend { padding-inline: 4px; color: var(--strong); font-size:var(--font-small-size); font-weight: 680; }
.credit-request-duration label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; cursor: pointer; }
.credit-request-duration input[type="radio"] { width: auto; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand-green); }
.credit-request-duration input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.credit-request-comment-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size:var(--font-small-size); }
.credit-request-comment-meta span:first-child { max-width: 62ch; }
.credit-request-comment-meta span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.credit-request-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.credit-request-buttons a { text-decoration: none; }
.credit-request-questions { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 10px; }
.credit-request-question { display: grid; gap: 6px; }
.credit-request-question > span { color: var(--strong); font-size:var(--font-small-size); font-weight: 680; }
.credit-request-action .notice { margin: 0; }
.credit-request-history-link { width: max-content; max-width: 100%; color: var(--accent-text); font-size:var(--font-small-size); font-weight: 680; }
.credit-request-history-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.credit-request-copy-fallback { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:var(--font-small-size); }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 14px; align-items: start; }
.form-section, .operator-actions { display: grid; gap: 16px; padding: 22px 24px; }
.form-section label { display: grid; gap: 6px; color: var(--text); font-size:var(--font-small-size); font-weight: 680; }
.date-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: max-content; max-width: 100%; padding: 0 16px; border: 2px solid var(--button-primary); border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
/* The fill is painted as an image (0.4.158): the 2 px focus ring sits outside the button, on the page or card. */
.primary-button { --fill: var(--button-primary); color: #fff; background: linear-gradient(var(--fill), var(--fill)); }
.primary-button:hover { --fill: var(--button-primary-hover); border-color: var(--button-primary-hover); }
/* Outline buttons: the field border token keeps 3:1 against the button in both themes (0.4.158). */
.secondary-button { color: var(--strong); border-color: var(--field-border); background: var(--surface); }
.secondary-button:hover { background: var(--surface-muted); }
button:disabled { opacity: .55; cursor: wait; }
.collector { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.collector p { margin: 0; color: var(--muted); font-size:var(--font-small-size); }
.notice { padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; color: var(--strong); background: var(--surface-muted); font-size: 14px; line-height: 20px; }
.notice.is-error { border-color: transparent; color: var(--error-fg); background: var(--error-bg); }
.notice.is-success { border-color: transparent; color: var(--ok-fg); background: var(--ok-bg); }

.privacy-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 2px 8px; color: var(--muted); font-size:var(--font-small-size); }

@media (max-width: 1060px) {
  .workspace { padding-inline: 24px; }
  .source-detail { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1060px) {
  .main-area { padding: 0; }
  .workspace { gap: 20px; padding: 24px 16px 40px; }
  .view-header { align-items: flex-start; flex-direction: column; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-filters { width: 100%; }
  .mobile-sort-controls { display: flex; align-items: end; gap: 8px; width: 100%; }
  .mobile-sort-controls label { display: grid; flex: 1 1 auto; gap: 4px; color: var(--muted); font-size:var(--font-small-size); font-weight: 700; }
  .personal-report-table { display: none; }
  .mobile-report-disclosure { display: block; border-top: 1px solid var(--border-soft); }
}

@media (max-width: 660px) {
  body { font-size:var(--font-body-size); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .metric-grid { grid-template-columns: 1fr; }
  .section-bar, .admin-toolbar { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
  #ppac-agent-history > p:not(.section-note) { padding-inline: 18px; }
  .admin-filters { flex-direction: column; }
  .admin-filters label, .admin-filters .search-field { flex-basis: auto; width: 100%; }
  .import-layout { grid-template-columns: 1fr; }
  .date-fields { grid-template-columns: 1fr; }
  .collector { align-items: flex-start; flex-direction: column; }
  .history-block { padding: 18px; }
  .period-history-table { min-width: 100%; table-layout: fixed; }
  .period-history-table th, .period-history-table td { padding: 8px 5px; overflow-wrap: anywhere; font-size:var(--font-small-size); }
  .history-row { grid-template-columns: 1fr; gap: 8px; }
  .history-row.header { display: none; }
  .history-row .report-status { justify-self:stretch; width:auto; }
  .history-row > :not(:first-child) { text-align: left; }
  .history-row:not(.header) > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .history-row:not(.header) > span::before { content: attr(data-label); color: var(--text); font-size:var(--font-small-size); font-weight: 600; }
  .source-detail { grid-template-columns: 1fr; }
  .pagination { justify-content: space-between; padding-inline: 18px; }
  .credit-request-layout { padding-inline: 18px; }
  .credit-request-tier-row { grid-template-columns: 1fr; }
  .credit-request-tier-row button { width: 100%; }
  .credit-request-comment-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 420px) {
  .period-history-table th:nth-child(3), .period-history-table td:nth-child(3),
  .period-history-table th:nth-child(4), .period-history-table td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Forecasts remain visually distinct from exact reported values. */
.forecast-card { padding: 24px; }
.forecast-card h2 { margin: 0 0 16px; }
.forecast-card p { margin: 10px 0 0; }
.forecast-figures { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 0; }
.forecast-figures > div { flex: 1 1 180px; min-width: 0; }
.forecast-figures dt { font-size:var(--font-body-size); color: var(--muted); }
.forecast-figures dd { margin: 6px 0 0; font-size:var(--font-section-title-size); font-weight: 650; overflow-wrap: anywhere; }
/* Shared disclosure used by cost allocation and the agent usage import. */
.allocation-secondary { margin: 16px 0; }
.allocation-secondary > summary { margin-bottom: 10px; }

/* PPAC is a compact analytical workspace, with a separate inspection surface. */
.main-area.is-agent-usage .workspace { width:100%; max-width:none; gap:16px; padding-top:24px; }
.main-area.is-agent-usage .view-header { margin-bottom:0; padding-bottom:16px; }
.main-area.is-agent-usage .view-header .report-meta { display:none; }
.ppac-workspace { --ppac-border:var(--border,#dfe3e6); --ppac-surface:var(--surface,#fff); --ppac-muted:var(--muted,#626d77); --ppac-accent:var(--accent,#008a00); position:relative; min-width:0; color:var(--text,#202629); }
.ppac-workspace button,.ppac-workspace input,.ppac-workspace select { font:inherit; }
.ppac-workspace button { cursor:pointer; }
.ppac-workspace button:disabled { cursor:default; opacity:.45; }
.ppac-workspace button:focus-visible,.ppac-workspace select:focus-visible,.ppac-workspace input:focus-visible,.ppac-workspace summary:focus-visible { outline:2px solid var(--ppac-accent); outline-offset:3px; }
.ppac-overview { min-width:0; }
.ppac-workspace.has-inspector { padding-right:calc(var(--ppac-panel-width,460px) + 20px); }
.ppac-topbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; margin-bottom:16px; }
.ppac-period-group { display:flex; flex-wrap:wrap; min-width:0; align-items:center; gap:12px; }
.ppac-period-label select { font-size:var(--font-body-size); min-height:38px; min-width:165px; padding:8px 30px 8px 12px; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:6px; }
.ppac-period-dates { font-size:var(--font-small-size); color:var(--ppac-muted); white-space:nowrap; }
.ppac-workspace .ppac-button,.ppac-workspace .ppac-export-button { min-height:38px; padding:8px 14px; border:1px solid var(--ppac-border); background:var(--ppac-surface); color:inherit; border-radius:6px; font-size:var(--font-body-size); font-weight:600; }
.ppac-workspace .ppac-export-button { border-color:var(--ppac-accent); color:var(--ppac-accent); white-space:nowrap; }
.ppac-custom-dates { display:flex; align-items:flex-end; gap:12px; padding:12px 0; margin-bottom:12px; }
.ppac-custom-dates label { display:grid; gap:5px; font-size:var(--font-small-size); }
.ppac-custom-dates input { min-height:38px; }
.ppac-metrics { display:flex; flex-wrap:wrap; align-items:center; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:7px; margin-bottom:20px; padding:20px 0; }
.ppac-metric { display:grid; gap:5px; padding:0 24px; border-right:1px solid var(--ppac-border); font-variant-numeric:tabular-nums; }
.ppac-metric strong { font-size:25px; line-height:1.15; letter-spacing:-.04em; font-weight:650; color:var(--strong,#202629); }
.ppac-metric span { color:var(--ppac-muted); font-size:var(--font-small-size); }
.ppac-metric.is-primary strong { font-size:29px; font-weight:750; }
.ppac-metric.is-secondary strong { font-size:23px; font-weight:550; }
.ppac-metric.is-count strong { font-size:25px; }
.ppac-metric-health { display:grid; gap:6px; padding:0 24px; margin-left:auto; font-size:var(--font-small-size); color:var(--ppac-muted); }
.ppac-collection-summary { display:flex; align-items:center; gap:7px; }
.ppac-collection-summary::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--ppac-accent); }
.ppac-collection-summary[data-state=manual]::before { background:#b37917; }
.ppac-collection-summary[data-state=error]::before { background:#b54835; }
.ppac-provisional { font-size:var(--font-small-size); }
.ppac-view-tabs { display:flex; gap:12px; border-bottom:1px solid var(--ppac-border); margin-bottom:14px; }
.ppac-workspace .ppac-tab { border:0; border-radius:0; border-bottom:2px solid transparent; background:transparent; color:var(--ppac-muted); padding:12px 10px; min-height:42px; font-size:14px; font-weight:600; }
.ppac-workspace .ppac-tab[aria-pressed=true],.ppac-workspace .ppac-tab[aria-selected=true] { color:var(--ppac-accent); border-bottom-color:var(--ppac-accent); }
.ppac-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.ppac-toolbar label { margin:0; min-width:0; }
.ppac-search { flex:1 1 220px; }
.ppac-search input { width:100%; min-width:0; min-height:38px; padding:8px 12px; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:6px; font-size:var(--font-body-size); }
.ppac-filter { flex:0 1 180px; }
.ppac-filter select { width:100%; max-width:100%; min-height:38px; padding:8px 28px 8px 10px; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:6px; font-size:var(--font-small-size); text-overflow:ellipsis; }
.ppac-more-filters { position:relative; margin-left:auto; }
.ppac-more-filters > summary { padding:9px 13px; border:1px solid var(--ppac-border); border-radius:6px; background:var(--ppac-surface); font-size:var(--font-body-size); cursor:pointer; }
.ppac-filter-popover { position:absolute; right:0; top:45px; z-index:4; min-width:260px; max-width:calc(100vw - 36px); padding:16px; display:grid; gap:16px; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:8px; box-shadow:0 8px 24px #0001; }
.ppac-filter-popover > label:not(.ppac-checkbox) { display:grid; gap:6px; font-size:var(--font-small-size); }
.ppac-checkbox { display:flex; align-items:center; gap:8px; font-size:var(--font-small-size); color:var(--ppac-muted); }
.ppac-checkbox input { width:16px; height:16px; margin:0; accent-color:var(--ppac-accent); }
.ppac-status { font-size:var(--font-body-size); margin:10px 0; color:var(--ppac-muted); }
.ppac-status.is-error { color:var(--danger,#aa3424); background:color-mix(in srgb,var(--danger,#aa3424) 6%,transparent); padding:12px; border-left:3px solid currentColor; }
.ppac-status.is-quiet { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.ppac-daily-results { border:1px solid var(--ppac-border); border-radius:7px; background:var(--ppac-surface); overflow:hidden; }
.ppac-table-scroll { max-width:100%; overflow-x:auto; }
.ppac-workspace .ppac-table { width:100%; min-width:530px; border-collapse:collapse; font-size:var(--font-small-size); table-layout:auto; }
.ppac-workspace .ppac-table th { text-align:left; background:color-mix(in srgb,var(--ppac-muted) 5%,var(--ppac-surface)); font-weight:600; color:var(--ppac-muted); padding:11px 15px; white-space:nowrap; border-bottom:1px solid var(--ppac-border); }
.ppac-workspace .ppac-table td { display:table-cell; padding:10px 15px; border-bottom:1px solid var(--ppac-border); vertical-align:middle; font-variant-numeric:tabular-nums; }
.ppac-workspace .ppac-table th { display:table-cell; }
.ppac-table tbody tr:last-child td { border-bottom:0; }
.ppac-table tbody tr:hover { background:color-mix(in srgb,var(--ppac-accent) 3%,var(--ppac-surface)); }
.ppac-table tr[data-selected] { background:color-mix(in srgb,var(--ppac-accent) 8%,var(--ppac-surface)); }
.ppac-table tr[data-selected] td:first-child { box-shadow:inset 3px 0 var(--ppac-accent); }
.ppac-workspace .ppac-table .numeric { text-align:right; }
.ppac-workspace .ppac-table td.ppac-secondary-value { color:var(--ppac-muted); }
.ppac-workspace .ppac-sort-button { display:inline-flex; align-items:center; gap:4px; width:auto; border:0; border-radius:0; padding:0; min-height:24px; background:transparent; color:inherit; font:inherit; font-weight:600; white-space:nowrap; }
.ppac-workspace .ppac-person-button { display:block; border:0; border-radius:0; padding:0; min-height:20px; background:transparent; color:var(--strong,#202629); font-size:var(--font-small-size); font-weight:650; text-align:left; max-width:300px; overflow-wrap:break-word; }
.ppac-person-button:hover { text-decoration:underline; text-underline-offset:3px; }
.ppac-person-email { display:block; color:var(--ppac-muted); font-size:var(--font-small-size); margin-top:3px; overflow-wrap:anywhere; }
.ppac-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--ppac-border); font-size:var(--font-small-size); color:var(--ppac-muted); }
.ppac-pagination-note { margin-right:auto; }
.ppac-workspace .ppac-text-button { background:transparent; color:var(--ppac-muted); border:0; border-radius:4px; padding:7px 3px; min-height:32px; font-size:var(--font-small-size); font-weight:500; }
.ppac-workspace .ppac-text-button:hover { color:var(--ppac-accent); }
.ppac-data-settings { margin:18px 0; font-size:var(--font-small-size); color:var(--ppac-muted); }
.ppac-data-settings > summary { cursor:pointer; width:fit-content; padding:6px 0; }
.ppac-data-settings > p { max-width:760px; line-height:1.6; }
.ppac-data-settings details { margin-top:16px; }
.ppac-data-settings label { display:grid; gap:8px; margin:12px 0; }
.ppac-inspector { position:fixed; z-index:81; right:16px; top:84px; bottom:16px; width:var(--ppac-panel-width,420px); max-width:calc(100vw - 32px); display:flex; flex-direction:column; overflow:hidden; background:var(--ppac-surface); border:1px solid var(--ppac-border); border-radius:9px; box-shadow:-4px 8px 24px #0000000a; }
.ppac-table tbody tr[data-key] { cursor:pointer; }
.ppac-inspector-header { flex-shrink:0; padding:14px 24px 18px; border-bottom:1px solid var(--ppac-border); }
.ppac-inspector-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.ppac-workspace .ppac-close-button { background:transparent; color:var(--ppac-muted); border:0; padding:5px 0 5px 12px; font-size:var(--font-small-size); min-height:32px; margin-left:auto; }
.ppac-inspector-header h2 { font-size:23px; line-height:1.2; letter-spacing:-.035em; margin:0 0 6px; overflow-wrap:anywhere; }
.ppac-inspector-header p { font-size:var(--font-small-size); margin:0; overflow-wrap:anywhere; }
.ppac-inspector-body { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px 24px; }
.ppac-detail-metrics { display:flex; padding-bottom:20px; gap:20px; }
.ppac-detail-metrics .ppac-metric { padding:0 20px 0 0; flex:1; }
.ppac-detail-metrics .ppac-metric:last-child { border-right:0; padding:0; }
.ppac-detail-metrics .ppac-metric strong,.ppac-detail-metrics .ppac-metric.is-primary strong { font-size:23px; }
.ppac-detail-metrics .ppac-metric.is-secondary strong { font-size:var(--font-section-title-size); }
.ppac-detail-tabs { display:flex; gap:14px; border-bottom:1px solid var(--ppac-border); margin-bottom:18px; }
.ppac-detail-content h3 { font-size:var(--font-body-size); margin:4px 0 14px; }
.ppac-chart-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ppac-chart-heading h3 { margin:0; }
.ppac-daily-chart { display:block; width:100%; height:auto; margin:14px 0 0; overflow:visible; }
.ppac-chart-grid { stroke:var(--ppac-border); stroke-width:1; }
.ppac-chart-label { fill:var(--ppac-muted); font-size:var(--font-small-size); font-family:inherit; }
.ppac-chart-billed { fill:var(--ppac-accent); }
.ppac-chart-nonbilled { fill:#949da6; }
.ppac-chart-missing { fill:var(--ppac-muted); fill-opacity:.09; stroke:var(--ppac-muted); stroke-opacity:.4; stroke-dasharray:3 3; }
.ppac-chart-legend { display:flex; gap:14px; color:var(--ppac-accent); font-size:var(--font-small-size); margin:4px 0 20px; }
.ppac-nonbilled-legend { color:var(--ppac-muted); }
.ppac-daily-values { font-size:var(--font-small-size); margin:18px 0; }
.ppac-daily-values summary { cursor:pointer; color:var(--ppac-muted); padding:8px 0; }
.ppac-workspace .ppac-detail-table { min-width:350px; font-size:var(--font-small-size); }
.ppac-workspace .ppac-detail-table td,.ppac-workspace .ppac-detail-table th { padding:10px 8px; }
.ppac-inspector-note { font-size:var(--font-small-size); color:var(--ppac-muted); line-height:1.5; margin-top:24px; }
.ppac-workspace .ppac-inspector-scrim { position:fixed; inset:0; z-index:80; width:100vw; height:100vh; padding:0; margin:0; border:0; border-radius:0; background:#0005; cursor:default; }
@media(min-width:761px) and (max-width:1250px) { .ppac-metric { padding:0 16px; } .ppac-metric-health { padding:12px 16px 0; margin-left:0; flex-basis:100%; } }
@media(max-width:760px) {
  .ppac-workspace.has-inspector { padding-right:0; }
  .ppac-topbar { justify-content:space-between; flex-wrap:wrap; }
  .ppac-period-group { flex-direction:column; align-items:flex-start; gap:5px; }
  .ppac-period-dates { font-size:var(--font-small-size); }
  .ppac-metrics { padding:16px 0 8px; }
  .ppac-metric { padding:0 13px; }
  .ppac-metric.is-primary strong { font-size:23px; }
  .ppac-metric.is-secondary strong { font-size:var(--font-section-title-size); }
  .ppac-metric.is-count strong { font-size:var(--font-section-title-size); }
  .ppac-metric-health { padding:14px 13px 6px; margin-left:0; width:100%; }
  .ppac-search { flex-basis:100%; }
  .ppac-filter { flex:1 1 35%; }
  .ppac-more-filters { margin-left:0; }
  .ppac-filter-popover { right:0; }
  .ppac-inspector { inset:0; width:100%; max-width:none; border:0; border-radius:0; height:100dvh; }
  .ppac-inspector-header { padding:12px 20px 18px; }
  .ppac-inspector-body { padding:18px 20px; }
  .ppac-custom-dates { flex-wrap:wrap; }
  .ppac-custom-dates input { max-width:145px; }
  .ppac-pagination { gap:9px; }
  .ppac-pagination-note { display:none; }
  .ppac-inspector-header h2 { font-size:var(--font-section-title-size); }
}
@media(prefers-reduced-motion:no-preference) { .ppac-tab,.ppac-person-button { transition:color 120ms ease; } }

.ppac-chart-wrap { position:relative; }
.ppac-chart-tooltip { position:absolute; z-index:3; display:grid; gap:3px; max-width:calc(100% - 8px); padding:9px 12px; background:var(--strong); color:var(--surface); border-radius:6px; font-size:var(--font-small-size); line-height:1.4; box-shadow:var(--shadow); pointer-events:none; font-variant-numeric:tabular-nums; }
.ppac-daily-chart [tabindex]:focus-visible { outline:2px solid var(--accent-text); outline-offset:2px; }

.ppac-daily-values .ppac-detail-table { min-width:0; table-layout:auto; }
.ppac-daily-values .ppac-detail-table td,.ppac-daily-values .ppac-detail-table th { padding:8px 6px; white-space:nowrap; }
.ppac-daily-values .ppac-day-date { min-width:58px; }

.view-actions-group { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:flex-end; gap:12px; min-width:0; }
/* Agent usage redesign (2026-10): scoped to the daily portal so Organization keeps its shared .ppac-* look. */
.ppac-daily-portal { --ppac-border:var(--border); --ppac-muted:var(--text); --ppac-accent:var(--accent); color:var(--strong); }
.ppac-daily-portal .ppac-overview { display:grid; gap:20px; min-width:0; }
.workspace:has(.ppac-daily-portal.has-inspector) > .view-header { padding-right:calc(var(--ppac-panel-width,460px) + 20px); flex-wrap:wrap; align-items:flex-start; }
/* With the detail panel open the header is narrow: title and description first, the period controls on their own row below. */
.workspace:has(.ppac-daily-portal.has-inspector) > .view-header > .view-heading { flex:1 1 100%; }
.workspace:has(.ppac-daily-portal.has-inspector) > .view-header .ppac-topbar { justify-content:flex-start; }
.ppac-daily-portal .ppac-topbar, .view-actions .ppac-topbar { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:flex-end; gap:12px; margin:0; }
.ppac-period-group { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; min-width:0; }
.ppac-workspace .ppac-period-label, .view-actions .ppac-period-label { display:grid; gap:6px; color:var(--strong); font-size:14px; font-weight:600; line-height:20px; }
.ppac-period-label select { width:auto; min-width:165px; height:40px; min-height:40px; padding:0 32px 0 12px; border:1px solid var(--border-strong); border-radius:8px; background-color:var(--surface); color:var(--strong); font-size:15px; font-weight:500; }
.ppac-period-dates { display:flex; align-items:center; height:40px; color:var(--text); font-size:14px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.ppac-export-button svg, .ppac-daily-portal .ppac-close-button svg, .ppac-daily-portal .ppac-search-icon, .ppac-daily-portal .ppac-summary-icon, .ppac-daily-portal .ppac-collection-summary svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ppac-workspace .ppac-export-button, .view-actions .ppac-export-button { min-height:40px; border-color:var(--field-border); color:var(--strong); white-space:nowrap; }
.ppac-export-button:hover:not(:disabled) { border-color:var(--accent); background:var(--surface); }
.ppac-daily-portal .ppac-custom-dates { margin:0; padding:16px 20px; border:1px solid var(--border); border-radius:8px; background:var(--surface); flex-wrap:wrap; }
.ppac-daily-portal .ppac-custom-dates label { color:var(--strong); font-size:14px; font-weight:600; }
.ppac-daily-portal .ppac-custom-dates input { width:auto; min-height:40px; height:40px; border-color:var(--border-strong); border-radius:8px; }
.ppac-daily-portal .ppac-metrics { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,1.2fr); align-items:stretch; gap:1px; margin:0; padding:0; overflow:hidden; border:1px solid var(--border); border-radius:8px; background:var(--border); }
.ppac-daily-portal .ppac-metrics:empty { display:none; }
.ppac-daily-portal .ppac-metric { display:flex; flex-direction:column; gap:2px; min-width:0; padding:16px 20px; border:0; background:var(--surface); }
.ppac-daily-portal .ppac-metric span { color:var(--text); font-size:14px; line-height:20px; overflow-wrap:anywhere; }
.ppac-daily-portal .ppac-metric strong, .ppac-daily-portal .ppac-metric.is-count strong { color:var(--strong); font-size:20px; font-weight:700; line-height:28px; letter-spacing:0; overflow-wrap:anywhere; }
.ppac-daily-portal .ppac-metric.is-primary strong { font-size:26px; line-height:32px; letter-spacing:-.02em; }
.ppac-daily-portal .ppac-metric.is-secondary strong { color:var(--text); font-size:20px; font-weight:700; }
.ppac-daily-portal .ppac-metric-health { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:6px; min-width:0; margin:0; padding:16px 20px; background:var(--surface); color:var(--text); font-size:14px; line-height:20px; }
.ppac-daily-portal .ppac-collection-summary::before { content:none; }
.ppac-daily-portal .ppac-collection-summary { max-width:100%; height:auto; min-height:24px; padding-block:3px; white-space:normal; line-height:18px; }
.ppac-daily-portal .ppac-collection-summary > span { overflow:hidden; text-overflow:ellipsis; }
.ppac-results-card { min-width:0; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.ppac-toolbar-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); }
.ppac-daily-portal .ppac-view-tabs { margin:0; border:0; }
.ppac-daily-portal .ppac-toolbar { display:flex; flex:1 1 520px; flex-wrap:wrap; align-items:center; gap:12px; min-width:0; margin:0; }
.ppac-daily-portal .ppac-search { position:relative; display:flex; align-items:center; flex:1 1 220px; max-width:360px; min-width:0; }
.ppac-daily-portal .ppac-search-icon { position:absolute; left:12px; color:var(--text); pointer-events:none; }
.ppac-daily-portal .ppac-search input { height:40px; min-height:40px; padding:0 12px 0 36px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface); font-size:15px; }
.ppac-daily-portal .ppac-filter { flex:0 1 200px; min-width:0; }
.ppac-daily-portal .ppac-filter select { height:40px; min-height:40px; padding:0 30px 0 12px; border:1px solid var(--border-strong); border-radius:8px; background-color:var(--surface); color:var(--strong); font-size:15px; font-weight:500; }
.ppac-daily-portal .ppac-more-filters { position:relative; margin:0; }
.ppac-daily-portal .ppac-more-filters > summary { display:flex; align-items:center; gap:8px; height:40px; padding:0 12px; border:1px solid var(--field-border); border-radius:8px; background:var(--surface); color:var(--strong); font-size:15px; font-weight:500; list-style:none; cursor:pointer; white-space:nowrap; }
.ppac-daily-portal .ppac-more-filters > summary::-webkit-details-marker { display:none; }
.ppac-daily-portal .ppac-summary-icon { color:var(--text); }
.ppac-filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:100px; color:#fff; background:var(--button-primary); font-size:12px; font-weight:600; line-height:1; }
.ppac-daily-portal .ppac-filter-popover { left:0; right:auto; top:46px; z-index:20; width:280px; min-width:0; gap:14px; border-radius:8px; box-shadow:var(--shadow-overlay); }
.ppac-daily-portal .ppac-filter-popover > label:not(.ppac-checkbox) { color:var(--strong); font-size:14px; font-weight:600; }
.ppac-daily-portal .ppac-filter-popover select { min-height:40px; height:40px; border-color:var(--border-strong); border-radius:8px; font-size:14px; }
.ppac-daily-portal .ppac-checkbox { color:var(--strong); font-size:15px; cursor:pointer; }
.ppac-daily-portal .ppac-checkbox input { width:18px; height:18px; min-height:0; }
.ppac-daily-portal .ppac-reset-button { align-self:flex-start; min-height:32px; font-size:14px; }
.ppac-daily-portal .ppac-status { margin:0; padding:12px 20px; font-size:14px; }
.ppac-daily-portal .ppac-status.is-error { margin:16px 20px; border-left:0; border-radius:8px; color:var(--error-fg); background:var(--error-bg); }
.ppac-daily-portal .ppac-daily-results { border:0; border-radius:0 0 8px 8px; background:transparent; }
.ppac-daily-portal .ppac-table { font-size:15px; }
/* Overview tables only; inspector tables keep their compact minimums. */
.ppac-daily-portal .ppac-table:not(.ppac-detail-table) { min-width:560px; }
.ppac-daily-portal .ppac-table th { height:44px; padding:0 20px; background:var(--bg); color:var(--text); font-size:14px; border-bottom:1px solid var(--border); }
.ppac-daily-portal .ppac-table td { height:52px; padding:6px 20px; border-bottom:1px solid var(--border); font-size:15px; }
.ppac-daily-portal .ppac-sort-button { display:inline-flex; align-items:center; gap:4px; height:44px; color:var(--text); font-size:14px; }
.ppac-daily-portal th[aria-sort="ascending"] .ppac-sort-button, .ppac-daily-portal th[aria-sort="descending"] .ppac-sort-button { color:var(--strong); }
/* Names read as text (strong, semibold); the green underline only shows on hover and keyboard focus. */
.ppac-daily-portal .ppac-person-button { max-width:320px; color:var(--strong); font-size:15px; font-weight:600; line-height:22px; }
.ppac-daily-portal .ppac-person-button:hover, .ppac-daily-portal .ppac-person-button:focus-visible { color:var(--accent-text); text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:3px; }
.ppac-daily-portal .ppac-id-suffix { color:var(--text); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; font-weight:400; }
.ppac-daily-portal .ppac-person-email { margin-top:0; color:var(--text); font-size:13px; line-height:18px; }
.ppac-daily-portal td.ppac-money { line-height:1; }
.ppac-money .ppac-cost { display:block; color:var(--strong); font-size:15px; font-weight:600; line-height:22px; white-space:nowrap; }
.ppac-money .ppac-credits { display:block; color:var(--text); font-size:13px; line-height:18px; white-space:nowrap; }
.ppac-daily-portal .ppac-table td.ppac-secondary-value { color:var(--text); }
.ppac-daily-portal .ppac-table tbody tr:hover { background:var(--surface-subtle); }
.ppac-daily-portal .ppac-table tbody tr:hover td { background:transparent; }
.ppac-daily-portal .ppac-table tr[data-selected] { background:var(--tint); }
.ppac-daily-portal .ppac-table tr[data-selected] td:first-child { box-shadow:inset 4px 0 var(--accent); }
.ppac-daily-portal .ppac-pagination { gap:16px; padding:14px 20px; border-top:0; color:var(--text); font-size:14px; }
.ppac-daily-portal .ppac-pagination-range { color:var(--strong); }
.ppac-daily-portal .ppac-page-button { min-height:36px; height:36px; padding:0 12px; font-size:14px; }
.ppac-daily-portal .ppac-page-button:disabled { opacity:1; color:var(--muted); border-color:var(--border); background:var(--surface-muted); cursor:default; }
.ppac-daily-portal .ppac-data-settings { margin:0; padding:14px 20px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font-size:14px; }
.ppac-daily-portal .ppac-data-settings > summary { padding:0; color:var(--strong); font-size:15px; font-weight:600; }
.ppac-daily-portal .ppac-data-settings > p { margin:12px 0 0; line-height:20px; }
.ppac-daily-portal .ppac-refresh-button { margin-top:12px; }
.ppac-daily-portal .ppac-data-settings details > summary { color:var(--strong); font-weight:600; cursor:pointer; }
.ppac-daily-portal .ppac-data-settings label input[type="file"] { width:auto; max-width:100%; }
.ppac-daily-portal .ppac-inspector { top:calc(var(--topbar-height) + 20px); right:24px; bottom:20px; width:var(--ppac-panel-width,460px); border-radius:8px; box-shadow:none; }
.ppac-daily-portal .ppac-inspector-header { display:flex; align-items:flex-start; gap:12px; padding:20px 20px 16px 24px; border-bottom:1px solid var(--border); }
.ppac-inspector-heading { display:grid; flex:1; gap:2px; min-width:0; }
.ppac-daily-portal .ppac-inspector-header h2 { margin:0; font-size:22px; font-weight:600; line-height:30px; letter-spacing:0; overflow-wrap:anywhere; }
.ppac-daily-portal .ppac-inspector-header p { color:var(--text); font-size:14px; line-height:20px; }
.ppac-daily-portal .ppac-close-button { width:36px; height:36px; min-height:36px; padding:0; margin:0; color:var(--text); }
.ppac-daily-portal .ppac-close-button svg { width:20px; height:20px; }
.ppac-daily-portal .ppac-inspector-body { display:grid; align-content:start; gap:20px; padding:20px 24px 24px; }
.ppac-daily-portal .ppac-detail-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0; }
.ppac-daily-portal .ppac-detail-metrics .ppac-metric, .ppac-daily-portal .ppac-detail-metrics .ppac-metric:last-child { padding:14px 16px; border:1px solid var(--border); border-radius:8px; }
.ppac-daily-portal .ppac-detail-metrics .ppac-metric span { font-size:13px; line-height:18px; }
.ppac-daily-portal .ppac-detail-metrics .ppac-metric strong, .ppac-daily-portal .ppac-detail-metrics .ppac-metric.is-primary strong { font-size:20px; line-height:28px; letter-spacing:0; }
.ppac-daily-portal .ppac-detail-metrics .ppac-metric.is-secondary strong { color:var(--text); font-size:20px; }
.ppac-daily-portal .ppac-detail-tabs { gap:24px; margin:0; border-bottom:1px solid var(--border); }
.ppac-daily-portal .ppac-tab { height:44px; min-height:44px; margin-bottom:-1px; padding:0; border-bottom:3px solid transparent; color:var(--text); font-size:15px; font-weight:400; }
.ppac-daily-portal .ppac-tab[aria-selected=true] { color:var(--strong); border-bottom-color:var(--accent); font-weight:600; }
.ppac-daily-portal .ppac-detail-content { display:grid; gap:14px; min-width:0; }
.ppac-daily-portal .ppac-detail-content h3 { margin:0; font-size:16px; line-height:24px; }
.ppac-daily-portal .ppac-chart-heading { flex-wrap:wrap; }
.ppac-chart-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.ppac-daily-portal .ppac-chart-controls .ppac-checkbox { font-size:14px; }
.ppac-daily-portal .ppac-daily-chart { margin:0; }
.ppac-daily-portal .ppac-chart-label { fill:var(--text); font-size:12px; }
.ppac-daily-portal .ppac-chart-billed { fill:var(--chart-cowork); }
.ppac-daily-portal .ppac-chart-nonbilled { fill:var(--chart-nonbilled); }
.ppac-daily-portal .ppac-chart-missing { fill:transparent; stroke:var(--border-strong); stroke-opacity:1; stroke-dasharray:3 3; }
.ppac-chart-hover { fill:transparent; pointer-events:none; }
.ppac-chart-hover.is-active { fill:var(--surface-muted); }
.ppac-daily-portal .ppac-chart-tooltip { gap:4px; min-width:190px; max-width:calc(100% - 8px); padding:10px 12px; border-radius:8px; background:var(--strong); color:var(--surface); box-shadow:var(--shadow-overlay); font-size:13px; line-height:18px; }
.ppac-tip-row { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.ppac-tip-row > span:nth-child(2) { flex:1; }
.ppac-tip-row strong { font-weight:600; }
.ppac-tip-dot { flex:none; width:8px; height:8px; border-radius:2px; }
.ppac-tip-dot.is-billed { background:var(--chart-cowork); }
.ppac-tip-dot.is-nonbilled { background:var(--chart-nonbilled); }
.ppac-daily-portal .ppac-chart-legend { flex-wrap:wrap; gap:16px; margin:0; color:var(--text); font-size:13px; }
.ppac-legend-item { display:inline-flex; align-items:center; gap:6px; }
.ppac-legend-item::before { content:''; width:10px; height:10px; border-radius:2px; background:var(--chart-cowork); }
.ppac-legend-item.is-nonbilled::before { background:var(--chart-nonbilled); }
.ppac-legend-item.is-missing::before { box-sizing:border-box; border:1px dashed var(--border-strong); background:transparent; }
.ppac-daily-portal .ppac-daily-values { margin:0; font-size:14px; }
.ppac-daily-portal .ppac-daily-values summary { padding:4px 0; color:var(--accent-text); font-weight:600; }
.ppac-daily-portal .ppac-daily-values .ppac-table-scroll { margin-top:10px; border:1px solid var(--border); border-radius:8px; }
.ppac-daily-portal .ppac-detail-table { font-size:14px; }
.ppac-daily-portal .ppac-detail-table th { height:40px; padding:0 10px; font-size:13px; }
.ppac-daily-portal .ppac-detail-table td { height:auto; padding:8px 10px; font-size:14px; }
.ppac-daily-portal .ppac-detail-table .ppac-money .ppac-cost { font-size:14px; line-height:20px; }
.ppac-daily-portal .ppac-detail-table .ppac-money .ppac-credits { font-size:12px; line-height:16px; }
.ppac-daily-portal .ppac-inspector-note { margin:0; color:var(--text); font-size:13px; }
.ppac-daily-portal .ppac-inspector-note summary { color:var(--strong); font-size:14px; font-weight:600; cursor:pointer; }
.ppac-daily-portal .ppac-inspector-note p { margin:8px 0 0; }
@media (max-width:1250px) { .ppac-daily-portal .ppac-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .ppac-daily-portal .ppac-metric-health { padding:16px 20px; } }
@media (max-width:760px) {
  .workspace:has(.ppac-daily-portal.has-inspector) > .view-header { padding-right:0; }
  .ppac-daily-portal .ppac-inspector { inset:0; width:100%; border:0; border-radius:0; }
  .ppac-daily-portal .ppac-inspector-header { padding:12px 12px 14px 20px; }
  .ppac-daily-portal .ppac-inspector-body { padding:18px 20px; }
  .ppac-daily-portal .ppac-toolbar-row { padding:14px 16px; }
  .ppac-daily-portal .ppac-search { flex-basis:100%; max-width:none; }
  .ppac-daily-portal .ppac-filter { flex:1 1 40%; }
  .ppac-daily-portal .ppac-table th, .ppac-daily-portal .ppac-table td { padding-inline:14px; }
  .ppac-daily-portal .ppac-pagination { gap:10px; padding:12px 16px; }
  .ppac-daily-portal .ppac-topbar, .view-actions .ppac-topbar { justify-content:flex-start; }
}
@media (max-width:520px) { .ppac-daily-portal .ppac-toolbar-row { padding-inline:12px; } .ppac-daily-portal .ppac-view-tabs { width:100%; } .ppac-daily-portal .ppac-view-tabs .segmented-option { flex:1 1 auto; justify-content:center; padding:0 6px; } .ppac-daily-portal .ppac-metrics { grid-template-columns:minmax(0,1fr); } .ppac-daily-portal .ppac-detail-metrics { gap:8px; } .ppac-daily-portal .ppac-detail-metrics .ppac-metric { padding:12px; } }

/* Shared compact source workspaces. Credits remain visibly separate by source. */
.data-section,.history-block { box-shadow:none; border-radius:8px; }
.metric { box-shadow:none; }
.personal-source-overview { display:grid; grid-template-columns:1fr 2fr; background:var(--surface); border-block:1px solid var(--border); padding:22px 0; }
.personal-source-overview .metric-grid { gap:0; grid-template-columns:1fr; }
.personal-source-overview .studio-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
.personal-source-overview .metric { padding:0 24px; border:0; border-right:1px solid var(--border); border-radius:0; gap:5px; }
.personal-source-overview .metric-value { font-size:29px; line-height:1.25; letter-spacing:-.035em; font-weight:700; }
.personal-source-overview .metric-label { color:var(--strong); font-size:var(--font-body-size); font-weight:600; }
.personal-source-overview .metric-meta { font-size:var(--font-small-size); }
.personal-studio { padding:20px 24px; }
.personal-studio > .section-bar { padding:0; border:0; margin-bottom:10px; flex-wrap:wrap; }
.personal-studio h3 { font-size:var(--font-card-title-size); color:var(--strong); margin:20px 0 12px; }
.personal-studio > .muted { font-size:var(--font-small-size); }
.personal-studio label { display:flex; gap:10px; align-items:center; font-size:var(--font-small-size); }
.personal-studio select,.personal-agent-controls input,.organization-source-toolbar input { padding:8px 10px; min-height:36px; color:var(--strong); border:1px solid var(--border); background:var(--surface); border-radius:5px; }
.source-switch { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.source-switch button { padding:7px 16px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:5px; font-size:var(--font-small-size); cursor:pointer; min-height:34px; }
/* Selected: a green border on a light green tint (0.4.158), so the focus ring and the selection both keep 3:1. */
.source-switch button[aria-pressed="true"], .source-switch [role="tab"][aria-selected="true"] { color:var(--tint-text); border-color:var(--focus-ring); background:var(--tint); font-weight:600; }
.source-switch button:disabled { opacity:.45; cursor:default; }
.personal-values { margin:16px 0; min-width:0; }
.personal-values summary,.source-notes summary { cursor:pointer; color:var(--strong); font-weight:600; padding:8px 0; }
.personal-values td,.personal-values th { padding:9px 12px; font-size:var(--font-small-size); }
.personal-agent-controls { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.personal-agent-controls input { flex:1; min-width:160px; }
.personal-agent-controls select { max-width:100%; }
.source-notes { border-top:1px solid var(--border); margin-top:18px; font-size:var(--font-small-size); }
.organization-source-workspace { position:relative; min-width:0; padding:20px; border:1px solid var(--border); border-radius:6px; background:var(--surface); --ppac-border:var(--border); --ppac-muted:var(--muted); }
.organization-source-switch button { flex:1; max-width:230px; }
.organization-users-badge { align-self:center; margin-left:auto; padding:4px 9px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:var(--surface-subtle); font-size:var(--font-small-size); line-height:1.3; font-variant-numeric:tabular-nums; white-space:nowrap; }
.organization-source-metrics { display:flex; flex-wrap:wrap; gap:18px; margin-bottom:22px; }
.organization-source-metrics .ppac-metric { padding:0 18px 0 0; flex:1; min-width:170px; }
.organization-source-toolbar { display:flex; align-items:end; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.organization-filter-scope { margin:-6px 0 14px; font-size:var(--font-small-size); }
.organization-filter-label { display:grid; gap:4px; min-width:0; max-width:100%; color:var(--muted); font-size:var(--font-small-size); }
.organization-filter-label select { width:100%; max-width:230px; min-height:38px; }
.organization-source-toolbar input { flex:1; min-width:200px; }
.organization-source-workspace > .muted { font-size:var(--font-small-size); }
.organization-coverage-status { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:10px 0; font-size:var(--font-small-size); }
.organization-coverage-summary { display:inline-block; max-width:100%; padding:3px 8px; border:1px solid var(--border); border-radius:999px; background:var(--surface-subtle); font-variant-numeric:tabular-nums; }
.organization-coverage-details { display:inline-block; }
.organization-coverage-details > summary { cursor:pointer; color:var(--accent-text); font-weight:600; }
.organization-coverage-details > span { display:block; margin-top:4px; }
.organization-source-workspace.has-inspector { padding-right:360px; }
.organization-inspector { position:absolute; top:0; right:0; bottom:0; width:340px; overflow:auto; padding:20px; background:var(--surface); border-left:1px solid var(--border); }
.organization-inspector > button:first-child { float:right; font-size:var(--font-small-size); }
.organization-inspector h2 { clear:both; padding-top:20px; }
.organization-person-metric { display:grid; gap:6px; padding:18px 0; border-bottom:1px solid var(--border); }
.organization-person-metric strong { font-size:24px; color:var(--strong); }
.organization-person-metric span { font-size:var(--font-small-size); }
.organization-inspector .muted { font-size:var(--font-small-size); }
.organization-history > .history-heading { padding-bottom:12px; }
.organization-history details > summary { padding:12px 20px; cursor:pointer; font-size:var(--font-small-size); }
.organization-source-workspace tbody tr { cursor:pointer; }
.organization-source-workspace tbody tr:hover { background:var(--accent-soft); }
.ppac-topbar { justify-content:space-between; }
.ppac-metrics { box-shadow:none; }
@media(max-width:1100px) { .organization-source-workspace.has-inspector { padding-right:20px; } .organization-inspector { position:relative; width:100%; border-left:0; border-top:1px solid var(--border); margin-top:20px; } }
@media(max-width:760px) { .workspace { padding:20px 16px 32px; } .workspace-topbar { padding-inline:16px; } .personal-source-overview { grid-template-columns:1fr; gap:20px; } .personal-source-overview .metric { padding-inline:16px; } .personal-source-overview .metric-value { font-size:24px; } .personal-studio { padding:16px; } .personal-studio > .section-bar { align-items:flex-start; gap:12px; } .organization-source-workspace { padding:14px; } .organization-source-metrics .ppac-metric { min-width:130px; } .organization-source-toolbar input { min-width:100%; } .organization-source-switch button { padding-inline:9px; } }
.organization-month { display:flex; align-items:center; gap:12px; margin-bottom:14px; color:var(--muted); font-size:var(--font-small-size); }
.organization-month select { padding:8px 12px; color:var(--strong); background:var(--surface); border:1px solid var(--border); border-radius:5px; max-width:100%; }
.report-activity-context { display:block; color:var(--muted); font-size:var(--font-small-size); }
.organization-source-workspace.has-inspector { padding-right:calc(var(--organization-panel-width,340px) + 20px); }
.organization-inspector { width:var(--organization-panel-width,340px); }
@media(max-width:1100px) { .organization-source-workspace.has-inspector { padding-right:20px; } .organization-inspector { width:100%; } }
@media(max-width:760px) { .organization-month { flex-wrap:wrap; } }
.personal-studio { min-width:0; max-width:100%; overflow:hidden; }
.personal-studio .table-scroll { max-width:100%; }
@media(max-width:760px) { .personal-studio label { flex-wrap:wrap; } }
.organization-month select { width:auto; min-width:240px; }
.organization-source-workspace .ppac-table { min-width:700px; }
.organization-source-workspace .ppac-person-email { white-space:nowrap; }
.organization-source-workspace .ppac-table th:first-child { min-width:180px; }
@media(max-width:760px) { .organization-source-workspace.has-inspector > .organization-table-host { display:none; } .organization-inspector { scroll-margin-top:80px; } .organization-month select { width:100%; min-width:0; } }
.personal-agent-controls input { width:auto; }
.personal-agent-controls select { width:auto; flex:0 1 240px; }
@media(max-width:760px) { .personal-agent-controls input,.personal-agent-controls select { width:100%; flex-basis:100%; } }
#organization-source-view { min-width:0; max-width:100%; contain:inline-size; }

.studio-allocation-summary { padding:1rem 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin:1rem 0; }
.studio-allocation-summary h2 { font-size:var(--font-card-title-size); margin:0 0 .5rem; }
.studio-allocation-editor { border-top:1px solid var(--border); margin-top:1rem; padding-top:1rem; }
.studio-allocation-editor label { display:grid; gap:.4rem; margin:.8rem 0; }
.studio-allocation-editor input,.studio-allocation-editor select { width:100%; min-width:0; padding:.6rem; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:6px; }


.organization-history-charts { display:grid; gap:24px; min-width:0; }
#panel-admin[data-source-view="combined"] .organization-history-charts { align-items:start; gap:16px; }
#panel-admin[data-source-view="combined"] .organization-history-charts > .history-stack { align-self:start; }
#panel-admin[data-source-view="combined"] .organization-history-charts .history-block { margin:0; padding:16px; }
.organization-history-charts > [hidden] { display:none; }
.organization-history-charts .history-block { min-width:0; }
.organization-history-charts details > summary { cursor:pointer; margin:16px 0; font-weight:600; }
#panel-admin .organization-history { margin-top:20px; }
@media(min-width:1100px) { #panel-admin[data-source-view="combined"] .organization-history-charts { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }

.organization-studio-bars { height:150px; display:flex; gap:3px; align-items:flex-end; width:28px; }
.organization-studio-bars .bar { width:12px; min-width:0; background:var(--brand-green); }
.organization-studio-bars .is-nonbilled { background:#8a949e; }
/* No report: the same low hollow dashed mark as DailyChart, in the series colour, never a full-height outline. */
.organization-studio-bars .bar.is-missing { background:transparent; border:1px dashed var(--brand-green); border-bottom:0; border-radius:3px 3px 0 0; opacity:.75; }
.organization-studio-bars .bar.is-missing.is-nonbilled { border-color:#8a949e; }
.organization-studio-chart { position:relative; container-type:inline-size; height:200px; padding:20px 0 0 42px; cursor:default; }
/* Dense chart keeps the pre-redesign text metrics until Organization is redesigned. */
.organization-studio-chart { font-size:14px; line-height:1.55; }
.organization-studio-chart .organization-history-tooltip { font-size:12px; }
.organization-studio-chart .bar-chart-track { grid-auto-columns:minmax(0,1fr); gap:2px; }
.organization-studio-axis { position:absolute; z-index:1; left:0; top:calc(100% - 174px); width:36px; height:150px; display:flex; flex-direction:column; justify-content:space-between; color:var(--muted); font-size:var(--font-small-size); line-height:1; text-align:right; font-variant-numeric:tabular-nums; pointer-events:none; }
.organization-studio-chart .bar-item { position:relative; }
.organization-studio-unit { display:block; margin:0 0 4px; color:var(--text); font-size:12px; line-height:16px; }
.organization-history-tooltip > strong { display:block; }
.organization-studio-chart .organization-studio-bars { width:min(28px,100%); }
.organization-studio-chart .bar-date { font-size:var(--font-small-size); line-height:18px; }
.organization-studio-chart .bar-item:first-child .bar-date { align-self:flex-start; }
.organization-studio-chart .bar-item:last-child .bar-date { align-self:flex-end; }
.organization-history-tooltip { position:absolute; bottom:100%; background:var(--surface); border:1px solid var(--border); padding:8px; font-size:var(--font-small-size); line-height:1.5; z-index:3; width:200px; max-width:calc(100vw - 48px); display:none; pointer-events:none; }
.organization-studio-chart .bar-item.has-tooltip .organization-history-tooltip { display:block; }
@container(max-width:480px) { .organization-studio-chart .bar-item:nth-child(even):not(:last-child) .bar-date { visibility:hidden; } }

.organization-studio-bars { position:relative; display:block; }
.organization-studio-bars .bar { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:100%; }
.organization-studio-bars .is-nonbilled { width:62%; z-index:1; }
.organization-history-tooltip > span { display:block; text-align:left; }

.studio-projection { margin-bottom:20px; padding:24px; }
.studio-projection-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.studio-projection-filters { display:flex; gap:12px; flex-wrap:wrap; }
.studio-projection-filters label { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:var(--font-small-size); }
.studio-projection-filters select { min-height:36px; max-width:100%; padding:6px 10px; background:var(--surface); color:var(--strong); border:1px solid var(--border); border-radius:5px; }
.studio-projection-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:20px 0; }
.studio-projection-metric { display:flex; flex-direction:column; gap:5px; border-left:3px solid var(--green,#008500); padding-left:16px; }
.studio-projection-metric + .studio-projection-metric { border-color:#89939e; }
.studio-projection-metric strong { font-size:30px; color:var(--strong); }
.studio-projection-metric small { color:var(--muted); }
.studio-projection-table { overflow-x:auto; }
.studio-projection details { margin-top:12px; }
@media(max-width:600px) { .studio-projection-metrics { grid-template-columns:1fr; } .studio-projection-filters { width:100%; } .studio-projection-filters label { flex:1; min-width:0; } }

/* Organization forecasts share one compact visual scale. */
.organization-forecasts { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; margin-bottom:20px; }
#panel-admin[data-source-view="combined"] .organization-forecasts { grid-template-columns:repeat(2,minmax(0,1fr)); }
.organization-forecasts > section { min-width:0; margin:0; padding:24px; }
.forecast-source { font-size:var(--font-card-title-size); margin:0 0 18px; }
.forecast-label { color:var(--muted); font-size:var(--font-body-size); margin:0 0 6px; }
.forecast-headline { display:block; font-size:clamp(1.6rem,3vw,2.4rem); line-height:1.2; overflow-wrap:anywhere; }
.forecast-bar { height:14px; border-radius:7px; background:#d1d5db; overflow:hidden; margin:20px 0 10px; }
.forecast-bar-used { display:block; width:100%; height:100%; fill:#176b35; }
.forecast-estimated,.forecast-secondary,.forecast-quality { font-size:var(--font-body-size); }
.forecast-secondary { color:var(--muted); }
.organization-forecasts details { margin-top:18px; }
.studio-projection-heading { margin-bottom:12px; }

@media(max-width:760px) { #panel-admin[data-source-view="combined"] .organization-forecasts { grid-template-columns:minmax(0,1fr); } }

/* Cost-first cards share the existing billed-usage meter. */
.usage-cost-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0 0 20px; min-width:0; }
.organization-source-metrics.usage-cost-overview { display:grid; }
.usage-cost-overview > [data-overview-note] { grid-column:1/-1; margin:0; font-size:var(--font-small-size); }
.usage-cost-card { min-width:0; padding:18px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.usage-cost-card h2,.usage-cost-card h3 { margin:0 0 10px; color:var(--strong); font-size:var(--font-card-title-size); overflow-wrap:anywhere; }
.usage-cost-used { margin:0; color:var(--strong); font-size:clamp(26px,4vw,38px); line-height:1.15; font-weight:750; letter-spacing:-.035em; overflow-wrap:anywhere; }
.usage-cost-label { margin:2px 0 10px; color:var(--muted); font-size:var(--font-small-size); }
.usage-cost-actual { margin:0; color:var(--strong); font-size:var(--font-body-size); font-weight:600; overflow-wrap:anywhere; }
.usage-cost-projection,.usage-cost-period,.usage-cost-nonbilled { margin:8px 0 0; color:var(--muted); font-size:var(--font-small-size); line-height:1.45; overflow-wrap:anywhere; }
.usage-cost-card .forecast-bar { margin:14px 0 8px; height:10px; }
.usage-cost-card .forecast-estimated,.usage-cost-card .forecast-source,.usage-cost-card .forecast-headline,.usage-cost-card .forecast-label { display:none; }
.usage-metric-toggle { margin:8px 0 12px; }
.usage-metric-toggle button { min-width:86px; }
.history-block .bar.is-stale,.organization-studio-chart .bar.is-stale { background:repeating-linear-gradient(135deg,var(--accent),var(--accent) 4px,var(--surface) 4px,var(--surface) 8px); border:1px dashed var(--accent); }
.bar.is-missing { background:var(--surface-muted); border:1px dashed var(--border); }
.forecast-cost-actual { margin:3px 0 0; color:var(--strong); font-size:var(--font-small-size); font-weight:600; line-height:1.25; overflow-wrap:anywhere; }
.forecast-cost-projected { margin:2px 0 5px; color:var(--muted); font-size:var(--font-small-size); line-height:1.25; overflow-wrap:anywhere; }
.forecast-cost-actual.forecast-headline { margin:0; color:var(--strong); font-size:clamp(1rem,2vw,1.35rem); font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.organization-identity-reference { overflow-wrap:anywhere; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:var(--font-small-size); }
/* Keep the shared optional cost lines compact in the existing projection card. */
#panel-admin .studio-projection { padding:24px 18px 0; }
#panel-admin .studio-projection .forecast-bar { margin:8px 0 4px; }
#panel-admin .studio-projection .forecast-estimated { margin:4px 0; }
#panel-admin .studio-projection .forecast-secondary { margin:4px 0; }
@media(max-width:760px) { .usage-cost-overview { grid-template-columns:minmax(0,1fr); } .usage-cost-card { padding:15px; } }

.forecast-bar.is-zero { background:var(--border); }

.organization-forecasts .forecast-source { margin:0 0 18px; }
.organization-forecasts .forecast-label { margin:0 0 6px; }

.organization-forecasts .forecast-source { margin-bottom:12px; }
.organization-forecasts .forecast-estimated,.organization-forecasts .forecast-secondary { margin:6px 0; }
.organization-forecasts details { margin-top:10px; font-size:var(--font-body-size); }
.organization-forecasts summary { font-size:var(--font-body-size); }
.organization-forecasts .studio-projection-heading { margin:10px 0 0; gap:8px 16px; align-items:baseline; }
.organization-forecasts .studio-scope { margin:0; }
.studio-projection-heading > p { margin:0; font-size:var(--font-small-size); }
.studio-scope[open] { flex-basis:100%; }
.studio-scope > p { margin:8px 0; font-size:var(--font-body-size); }

/* Shared reading scale and compact Organization comparison. */
h2 { font-size:var(--font-section-title-size); }
h3 { font-size:var(--font-card-title-size); }
button,input,select,textarea { font-family:inherit; }
.usage-cost-actual,.usage-cost-projection,.forecast-cost-actual,.forecast-cost-projected { font-size:var(--font-body-size); line-height:1.5; }
.usage-cost-projection { color:var(--text); }
.overview-details summary { cursor:pointer; font-weight:600; }
.overview-details > p { margin:8px 0 0; }
#panel-admin { gap:20px; }
#panel-admin .usage-cost-overview { margin-bottom:0; }
#panel-admin .organization-history { margin-top:0; padding:16px; gap:16px; }
#panel-admin .organization-history > .history-heading { padding:0; }
#panel-admin .organization-chart-card,
#org-studio-history { display:block; min-width:0; margin:0; padding:16px; border:1px solid var(--border); border-radius:6px; background:var(--surface); }
#panel-admin .organization-chart-card h2,#org-studio-history > h2 { margin:0; font-size:var(--font-card-title-size); line-height:1.5; }
#panel-admin .organization-chart-card .usage-metric-toggle,#org-studio-history .usage-metric-toggle { margin:10px 0 8px; }
#panel-admin .organization-chart-note { min-height:36px; margin:0 0 8px; font-size:var(--font-small-size); line-height:1.5; }
#panel-admin .organization-chart-card .bar-chart { height:200px; padding-top:0; }
#panel-admin .organization-chart-card details > summary,#org-studio-history details > summary { margin:12px 0 0; font-size:var(--font-small-size); }
#panel-admin .organization-studio-chart { padding-top:0; }
#panel-admin .organization-studio-axis { top:calc(100% - 174px); }

/* Shared monthly costs use the established reporting typography and surfaces. */
.usage-cost-actual.usage-cost-used { font-size:clamp(24px,3vw,32px); line-height:1.2; }
.usage-cost-credits { margin:0; color:var(--muted); font-size:var(--font-body-size); }
.service-cost-workspace { min-width:0; }
/* 0.4.191: Billing's summary uses the Organization card style (10 px radius, 1 px border, no shadow). */
.service-cost-workspace.is-summary .service-cost-summary { padding-inline:24px; }
.service-cost-workspace.is-summary > p { margin:0 0 12px; padding-inline:24px; }
/* The table reads like People on Overview: light row lines, the name aligned with the header, notes inside the card. */
.service-cost-workspace.is-summary .service-cost-grid :is(th,td) { border-bottom:1px solid var(--border); }
.service-cost-workspace.is-summary .service-cost-grid tbody tr:last-child td { border-bottom:0; }
.service-cost-group { display:grid; gap:2px; }
.service-cost-group > span { color:var(--strong); font-weight:600; }
.service-cost-group > small { color:var(--muted); font-size:13px; line-height:18px; }
.service-cost-workspace.is-summary .ppac-pagination[hidden] { display:none; }
.service-cost-workspace.is-summary .service-cost-references { padding-inline:24px; margin-top:12px; }
.service-cost-workspace.is-summary :is(.service-cost-references,.service-cost-method,.service-hierarchy-editor) > summary { min-height:44px; display:flex; align-items:center; color:var(--strong); font-weight:600; }
.service-cost-workspace.is-summary > :last-child { margin-bottom:12px; }
.service-cost-workspace.is-summary .service-cost-card { padding:14px 16px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.service-cost-workspace.is-summary :is(.service-cost-method,.service-hierarchy-editor) { padding-inline:24px; }
@media (max-width:660px) { .service-cost-workspace.is-summary :is(.service-cost-summary,.service-cost-method,.service-hierarchy-editor) { padding-inline:18px; } }
.service-cost-controls { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-block:16px; padding-inline:24px; } /* 0.4.170: lines up with the section header */
@media (max-width: 660px) { .service-cost-controls { padding-inline:18px; } }
.service-cost-controls label { display:flex; flex-direction:column; gap:5px; min-width:130px; flex:1 1 140px; color:var(--muted); font-size:var(--font-label-size); }
.service-cost-controls input,.service-cost-controls select { width:100%; min-width:0; min-height:40px; }
.service-cost-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:20px; }
.service-cost-card { padding:12px 0; border-bottom:1px solid var(--border); display:flex; flex-direction:column; gap:5px; min-width:0; }
.service-cost-card h3 { margin:0; font-size:var(--font-card-title-size); }
.service-cost-card > small { display:block; }
.service-cost-value { display:flex; flex-direction:column; gap:3px; font-variant-numeric:tabular-nums; }
.service-cost-value strong { font-weight:650; color:var(--strong); white-space:nowrap; }
.service-cost-card .service-cost-value strong { font-size:26px; }
.service-cost-value strong.service-cost-missing,.service-cost-card .service-cost-value strong.service-cost-missing { font-size:var(--font-small-size); font-weight:400; color:var(--muted); white-space:normal; }
.service-cost-grid th.numeric,.service-cost-grid td.numeric { text-align:right; }
.service-cost-grid th.numeric button { justify-content:flex-end; text-align:right; }
.service-cost-detail summary { cursor:pointer; font-weight:600; color:var(--strong); min-height:32px; }
.service-cost-detail dl { margin:8px 0; font-size:var(--font-small-size); min-width:170px; }
.service-cost-detail dl div { margin:5px 0; }
.service-cost-detail dt { color:var(--muted); }
.service-cost-detail dd { margin:0; }
.service-cost-method,.service-hierarchy-editor { margin-top:16px; }
.service-hierarchy-editor > summary { cursor:pointer; }
.service-hierarchy-list > div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding-block:10px; border-bottom:1px solid var(--border); }
.service-hierarchy-list > div .muted { flex:1 1 250px; }
@media(max-width:600px) { .service-cost-controls label { flex-basis:calc(50% - 12px); min-width:110px; } .service-cost-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .service-cost-card .service-cost-value strong { font-size:20px; } .service-cost-workspace .section-bar { align-items:start; flex-direction:column; } }
.service-cost-grid th .ppac-sort-button { display:flex; align-items:center; gap:6px; width:100%; min-height:40px; border:0; border-radius:4px; background:transparent; color:inherit; padding:6px 0; font:inherit; font-weight:650; cursor:pointer; }
.service-cost-grid th .ppac-sort-button:hover { color:var(--accent-text); }
.service-cost-grid th .ppac-sort-button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.service-cost-grid th .ppac-sort-button { min-height:44px; }
.service-cost-coverage-note { display:block; margin-top:2px; color:var(--muted); font-size:var(--font-small-size); font-weight:400; line-height:1.3; white-space:normal; min-width:110px; }
.service-cost-grid th.numeric .service-cost-coverage-note { text-align:right; }
.service-cost-detail > summary { min-height:44px; padding-block:10px; box-sizing:border-box; }
.service-cost-person-email { display:block; padding-left:1.1em; color:var(--muted); font-size:var(--font-small-size); font-weight:400; overflow-wrap:anywhere; }
.service-cost-zero-bar { display:flex; justify-content:flex-end; margin-bottom:12px; }
.service-cost-zero-bar[hidden] { display:none; }
.service-cost-zero-toggle { min-height:44px; border-color:var(--field-border); }
.service-cost-grid th,.service-cost-grid td { border-bottom-color:var(--field-border); }
.service-cost-table .ppac-pagination .secondary-button { min-height:44px; }
.service-cost-zero-toggle[aria-pressed="true"] { background:var(--surface-muted); }

/* Native page navigation keeps every authorized view reachable on narrow screens. */
.mobile-page-control { display:none; }
@media (max-width:1060px) {
  .app-shell { display:block; }
  .sidebar { position:relative; flex-direction:row; align-items:center; gap:12px; width:100%; height:auto; padding:8px 16px; border-right:0; border-bottom:1px solid var(--border); overflow:visible; }
  .brand-row { height:auto; padding:0; border-bottom:0; }
  .brand-divider, .brand-name { display:none; }
  .side-nav, .sidebar-user { display:none; }
  .mobile-page-control { display:block; flex:1 1 auto; min-width:0; }
  .mobile-page-control select { width:100%; min-width:0; min-height:44px; padding:8px 12px; border:1px solid var(--accent-border); border-radius:8px; background:var(--tint); color:var(--strong); font-size:16px; font-weight:600; }
  .sidebar-links { flex-direction:row; padding:0; border-top:0; }
  .sidebar-link { justify-content:center; width:44px; height:44px; padding:0; }
  .sidebar-link span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .mobile-signout { display:inline-flex; }
  .workspace-topbar { height:auto; min-height:60px; padding:8px 16px; }
  .workspace { gap:20px; padding:24px 16px 40px; }
  .view-header { align-items:flex-start; flex-direction:column; gap:8px; }
}
@media (max-width:660px) {
  .sidebar { gap:8px; }
  .brand-logo { height:14px; }
  .workspace-topbar { gap:8px; min-height:0; padding:4px 16px; }
  .theme-segment { padding:2px; }
  .workspace-topbar { flex-wrap:wrap; row-gap:0; }
  .workspace-topbar .updated-badge { order:2; flex:1 1 100%; gap:6px; padding-bottom:4px; font-size:13px; line-height:18px; }
  .workspace-topbar .updated-badge > span:last-child { white-space:normal; }
  .workspace-tools { flex:1 1 auto; justify-content:flex-end; gap:6px; min-width:0; }
  .workspace-tools .currency-control > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .workspace-tools .currency-control select { min-width:76px; min-height:44px; font-size:16px; padding-inline:8px; }
  .theme-choice { width:44px; height:44px; }
  .workspace-tools .mobile-signout { min-width:44px; padding-inline:6px; }
  .workspace { padding:16px 16px 32px; gap:16px; }
  .view-heading { gap:4px; }
  h1 { font-size:26px; line-height:32px; }
  .panel { gap:16px; }
}
@media (max-width:420px) {
  .sidebar { flex-wrap:wrap; row-gap:4px; padding-block:4px 8px; }
  .sidebar-links { margin-left:auto; }
  .mobile-page-control { order:3; flex-basis:100%; }
}

/* Shared redesign components: segmented control, chips, callout, drawer, daily chart. */
.segmented { display:inline-flex; gap:2px; padding:4px; border-radius:8px; background:var(--surface-muted); }
.segmented-option { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px; border:0; border-radius:6px; color:var(--text); background:transparent; font-size:14px; font-weight:500; white-space:nowrap; cursor:pointer; }
.segmented-option:hover { color:var(--strong); }
.segmented-option[aria-pressed="true"] { color:var(--strong); background:var(--surface); box-shadow:0 1px 2px rgb(0 0 0 / 14%); font-weight:600; }
.chip { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 10px; border-radius:100px; color:var(--text); background:var(--surface-muted); font-size:13px; font-weight:500; line-height:1; white-space:nowrap; }
.chip.is-ok { color:var(--ok-fg); background:var(--ok-bg); }
.chip.is-warning { color:var(--warn-fg); background:var(--warn-bg); }
.chip.is-error { color:var(--error-fg); background:var(--error-bg); }
.chip.is-outline { border:1px solid var(--border-strong); background:transparent; }
.callout { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:8px; color:var(--strong); background:var(--surface-muted); font-size:14px; line-height:20px; }
.callout.is-warning { color:var(--warn-fg); background:var(--warn-bg); }
.callout svg { flex:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.text-button { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0; border:0; color:var(--accent-text); background:transparent; font-size:15px; font-weight:600; cursor:pointer; }
.text-button:hover { text-decoration:underline; }

.drawer-layer { position:fixed; inset:0; z-index:60; }
.drawer-scrim { position:absolute; inset:0; background:var(--scrim); }
.drawer { position:absolute; top:0; right:0; bottom:0; display:flex; flex-direction:column; width:min(var(--side-panel-width,600px),100%); background:var(--surface); box-shadow:var(--shadow-overlay); }
/* Resizable side panels (frontend/side-panel.js): every panel that slides in from the right has this handle on its left edge. */
.side-panel-handle { position:absolute; top:0; bottom:0; left:0; z-index:3; width:16px; cursor:col-resize; touch-action:none; background:transparent; }
.side-panel-handle[hidden] { display:none; }
.side-panel-handle::after { content:""; position:absolute; top:min(50%,45vh); left:5px; width:4px; height:40px; margin-top:-20px; border-radius:2px; background:var(--border-strong); }
.side-panel-handle:hover, .is-side-panel-resizing .side-panel-handle { background:var(--accent-soft); }
.side-panel-handle:hover::after, .side-panel-handle:focus-visible::after, .is-side-panel-resizing .side-panel-handle::after { background:var(--accent); }
.side-panel-handle:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
html.is-side-panel-resizing, html.is-side-panel-resizing * { cursor:col-resize; user-select:none; }
@media (prefers-reduced-motion: no-preference) { .side-panel-handle, .side-panel-handle::after { transition:background-color 120ms ease; } }
.drawer-header { display:flex; flex:none; align-items:center; justify-content:space-between; gap:16px; height:72px; padding:0 16px 0 28px; border-bottom:1px solid var(--border); }
.drawer-header h2 { font-size:20px; line-height:28px; }
.drawer-body { flex:1 1 auto; display:grid; align-content:start; gap:20px; padding:24px 28px 32px; overflow-y:auto; }
.drawer-summary { padding:16px; border-radius:8px; background:var(--surface-muted); }
.drawer-summary-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; }
.drawer-summary-list dt { color:var(--text); font-size:13px; }
.drawer-summary-list dd { margin:2px 0 0; color:var(--strong); font-size:15px; font-weight:600; }
.drawer-steps ol { display:grid; gap:8px; margin:8px 0 0; padding-left:20px; color:var(--text); font-size:14px; }
body.has-drawer { overflow:hidden; }

.daily-chart { position:relative; display:grid; gap:6px; }
/* One chart language for every daily chart: unit above a y-axis of whole ticks, thin gridlines, rounded bars,
   day labels below and a dashed outline for a day without a report. One colour per product. */
.daily-chart { --daily-cowork:var(--chart-cowork); --daily-studio:var(--brand-mid-gray); --daily-nonbilled:var(--brand-mid-gray); }
.daily-chart-axis { color:var(--text); font-size:12px; line-height:16px; font-variant-numeric:tabular-nums; }
.daily-chart-frame { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; }
.daily-chart.is-compact .daily-chart-frame { display:block; }
.daily-chart-ticks { position:relative; min-width:24px; height:180px; color:var(--muted); font-size:12px; line-height:1; text-align:right; font-variant-numeric:tabular-nums; }
.daily-chart-tick { position:absolute; right:0; transform:translateY(50%); white-space:nowrap; }
.daily-chart-plot { position:relative; display:flex; align-items:stretch; justify-content:space-around; gap:4px; height:180px; border-bottom:1px solid var(--border-strong); }
.daily-chart-gridline { position:absolute; left:0; right:0; height:1px; background:var(--border); pointer-events:none; }
.daily-chart.is-compact .daily-chart-plot { height:28px; gap:3px; padding:0; border:0; background:none; }
.daily-chart-column { position:relative; display:flex; flex:1 1 0; flex-direction:column; justify-content:flex-end; min-width:0; border-radius:4px 4px 0 0; outline-offset:2px; }
.daily-chart:not(.is-compact) .daily-chart-column { max-width:56px; }
.daily-chart-column:hover, .daily-chart-column:focus { background:color-mix(in srgb,var(--surface-muted) 70%,transparent); }
.daily-chart-stack { position:relative; flex:1 1 auto; }
.daily-chart-bar { position:absolute; bottom:0; left:0; right:0; display:block; border-radius:4px 4px 0 0; background:var(--daily-cowork,var(--chart-cowork)); }
.daily-chart:not(.is-compact) .daily-chart-bar { left:12%; right:12%; }
.daily-chart-bar.has-value { min-height:6px; }
/* A reported zero: a flat 3 px stub on the axis in the product colour (any value above 0 is at least 6 px). */
.daily-chart-bar.is-zero { height:3px !important; border-radius:2px; }
.daily-chart.is-compact .daily-chart-bar.has-value { min-height:4px; }
.daily-chart.is-compact .daily-chart-bar.is-zero { height:2px !important; }
.daily-chart-bar.is-studio { background:var(--daily-studio,var(--chart-studio)); }
.daily-chart-bar.is-github { background:var(--chart-github); }
/* Studio non-billed: hatched light grey with an outline, behind the billed bar from zero; never added to it. */
.daily-chart-bar.is-overlay { border:1px solid var(--daily-nonbilled,var(--chart-nonbilled)); background:repeating-linear-gradient(135deg,var(--daily-nonbilled,var(--chart-nonbilled)) 0 2px,transparent 2px 5px); }
.daily-chart-stack.has-overlay .daily-chart-bar.is-primary { left:30%; right:30%; }
.daily-chart-bar.is-stale { background:repeating-linear-gradient(135deg,var(--daily-studio) 0 4px,var(--surface) 4px 8px); border:1px dashed var(--daily-studio); }
.daily-chart-bar.is-correction { height:4px !important; background:repeating-linear-gradient(135deg,var(--warn-fg) 0 2px,transparent 2px 4px); }
/* No report for the day: a low, hollow dashed mark on the axis in the product colour at reduced opacity. It is
   taller than the solid 3 px zero stub, hollow unlike a small real value, and plain unlike the hatched unpriced bar. */
.daily-chart-bar.is-missing { --missing:var(--border-strong); height:12px; border:1px dashed var(--missing); border-bottom:0; border-radius:3px 3px 0 0; background:transparent; opacity:.75; }
.daily-chart-bar.is-missing.is-cowork { --missing:var(--daily-cowork,var(--chart-cowork)); }
.daily-chart-bar.is-missing.is-studio { --missing:var(--daily-studio,var(--chart-studio)); }
.daily-chart-bar.is-missing.is-github { --missing:var(--chart-github); }
.daily-chart.is-compact .daily-chart-bar.is-missing { height:4px; border-width:1px 0 0; border-radius:0; }
/* Credits without a price in cost mode: a short hatched outline in the product colour, never a zero-height bar. */
.daily-chart-bar.is-unpriced { --unpriced:var(--daily-cowork,var(--chart-cowork)); height:28%; border:1px solid var(--unpriced); background:repeating-linear-gradient(135deg,var(--unpriced) 0 2px,transparent 2px 6px); opacity:.85; }
.daily-chart-bar.is-unpriced.is-studio { --unpriced:var(--daily-studio,var(--chart-studio)); }
.daily-chart-bar.is-unpriced.is-github { --unpriced:var(--chart-github); }
.daily-chart.is-compact .daily-chart-bar.is-unpriced { height:40%; }
/* Grouped days: one slot per series side by side from zero, never stacked or added together. */
.daily-chart-stack.is-group { display:flex; align-items:stretch; gap:2px; }
.daily-chart:not(.is-compact) .daily-chart-column.is-grouped { max-width:128px; }
.daily-chart:not(.is-compact) .daily-chart-stack.is-group { gap:4px; margin-inline:10%; }
.daily-chart-slot { position:relative; flex:1 1 0; min-width:0; }
.daily-chart:not(.is-compact) .daily-chart-slot .daily-chart-bar { left:0; right:0; }
.daily-chart-slot .daily-chart-bar { border-radius:3px 3px 0 0; }
.daily-card-dates { color:var(--text); font-size:14px; font-weight:600; line-height:20px; font-variant-numeric:tabular-nums; }
.daily-card-legend { --daily-studio:var(--brand-mid-gray); display:flex; flex-wrap:wrap; gap:8px 20px; margin:0; padding:0; color:var(--text); font-size:13px; line-height:18px; list-style:none; }
.daily-card-legend li { display:inline-flex; align-items:center; gap:8px; }
.daily-card-legend .daily-chart-dot { width:10px; height:10px; border-radius:3px; }
.daily-chart-date { position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%); color:var(--text); font-size:12px; white-space:nowrap; }
.daily-chart:not(.is-compact) { padding-bottom:24px; }
.daily-chart-tooltip { position:absolute; bottom:calc(100% + 8px); left:50%; z-index:30; display:none; flex-direction:column; gap:4px; width:max-content; min-width:190px; padding:10px 12px; border-radius:8px; color:var(--surface); background:var(--strong); box-shadow:0 8px 24px rgb(0 0 0 / 24%); font-size:13px; line-height:18px; text-align:left; pointer-events:none; transform:translateX(-50%); }
.daily-chart-column:hover .daily-chart-tooltip, .daily-chart-column:focus .daily-chart-tooltip, .daily-chart-column.is-open .daily-chart-tooltip { display:flex; }
.daily-chart-tooltip strong { font-weight:600; white-space:nowrap; }
.daily-chart-tip-row { display:flex; align-items:center; gap:8px; }
.daily-chart-tip-row > span:nth-child(2) { flex:1; }
.daily-chart-dot { flex:none; width:8px; height:8px; border-radius:2px; }
.daily-chart-dot.is-blank { background:transparent; }
.daily-chart-dot.is-cowork { background:var(--daily-cowork,var(--chart-cowork)); }
.daily-chart-dot.is-studio { background:var(--daily-studio,var(--chart-studio)); }
.daily-chart-dot.is-github { background:var(--chart-github); }
.daily-chart-dot.is-nonbilled { border:1px solid var(--daily-nonbilled,var(--chart-nonbilled)); background:repeating-linear-gradient(135deg,var(--daily-nonbilled,var(--chart-nonbilled)) 0 2px,transparent 2px 4px); }
.daily-chart-dot.is-warning { background:var(--warn-bg); }
.daily-chart-empty { margin:0; color:var(--text); font-size:14px; }
/* Title and description on the left, controls on the right in the same row; a narrow card stacks the controls
   below, left-aligned. The header is the size container, so every card switches at the same width. */
.daily-card-header { container-type:inline-size; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px 16px; }
.daily-card-titles { display:grid; gap:4px; }
.daily-card-titles h2, .daily-card-titles h3 { margin:0; }
.daily-card-titles p, .daily-card-note { margin:0; color:var(--text); font-size:14px; line-height:20px; }
.daily-card-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; min-width:0; max-width:100%; }
@container (max-width:560px) { .daily-card-titles, .daily-card-controls { grid-column:1 / -1; } .daily-card-controls { justify-content:flex-start; } }
.daily-card-titles, .daily-card-chart { min-width:0; }
.daily-card-controls .segmented { flex-wrap:wrap; max-width:100%; }
.daily-chart-card { display:grid; gap:16px; min-width:0; margin-bottom:18px; }
.view-actions { display:flex; align-items:flex-end; gap:12px; }
.view-actions:not(:has(> :not([hidden]))) { display:none; }
.month-control select { height:40px; padding:0 12px; border:1px solid var(--border-strong); border-radius:8px; color:var(--strong); background:var(--surface); font-size:15px; font-weight:500; }
@media (max-width:660px) { .drawer { width:100%; } .side-panel-handle { display:none; } .drawer-body { padding:20px 16px 28px; } .drawer-header { padding-left:16px; } .drawer-summary-list { grid-template-columns:1fr; } .segmented-option { height:40px; } }

/* 0.4.158 accessibility rules, after every component rule:
   - every interactive element shows a 2 px accent green ring with a 2 px gap when focused from the keyboard;
   - every form field has a border with 3:1 or more against the field;
   - the selected option of a segmented control has a border, not only a lighter background;
   - a disabled control is named as disabled and points to a visible reason (aria-describedby). */
/* Two scrolling tab strips (Administration, My usage views) draw the same green ring inside the tab instead,
   where the strip cannot clip it. */
/* The access person search draws one ring on its field wrapper (0.4.170), not a second one on the input. */
:focus-visible:not(.admin-settings-tab):not(.me-view-tab):not(.admin-directory-search-input) { outline: 2px solid var(--focus-ring) !important; outline-offset: 2px !important; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="file"]), select, textarea { border-color: var(--field-border) !important; }
.segmented-option { border: 1px solid transparent; }
.segmented-option[aria-pressed="true"], .segmented-option[aria-selected="true"] { border-color: var(--field-border); box-shadow: none; }
.segmented-option:disabled { color: var(--muted); cursor: not-allowed; }
.segmented-option:disabled:hover { color: var(--muted); }

/* Sidebar (0.4.158 owner decision): one Organization link opens the workspace; Billing and Manager reports keep their
   page links for routes and role gating but are reached through the workspace links, not the sidebar. */
.side-nav .nav-workspace-page { display: none !important; }
.nav-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 100px; color: #fff; background: var(--brand-slate); font-size: 12px; font-weight: 600; line-height: 1; }
.nav-badge[hidden] { display: none; }

/* 0.4.162: page banners from real conditions only. 0.4.168: inside the page content under the title, so the sticky
   top bar (theme toggle) stays put; the workspace grid supplies the padding and spacing. */
.context-banners { display:grid; gap:8px; margin:0; padding:0; }
.context-banners[hidden] { display:none; }
.context-banner { display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; padding:12px 16px; border:1px solid var(--border-strong); border-left-width:4px; border-radius:8px; color:var(--strong); background:var(--surface); font-size:14px; line-height:20px; }
.context-banner-text { display:grid; gap:2px; flex:1 1 280px; min-width:0; }
.context-banner-text span { color:var(--text); }
.context-banner.is-info { border-left-color:var(--brand-slate); }
.context-banner.is-warning { border-color:var(--brand-orange); border-left-color:var(--brand-orange); background:var(--error-bg); }
.context-banner.is-warning .context-banner-text, .context-banner.is-warning .context-banner-text span { color:var(--error-fg); }
.context-banner.is-dashed { border:2px dashed var(--field-border); background:var(--surface-subtle); }
.context-banner-action { flex:none; min-height:44px; }

/* 0.4.162: one notice instead of an editing view at phone width. */
.larger-screen { display:grid; justify-items:start; gap:12px; padding:24px 20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.larger-screen[hidden] { display:none; }
.larger-screen h2 { margin:0; color:var(--strong); font-size:20px; line-height:28px; }
.larger-screen p { margin:0; color:var(--text); font-size:15px; line-height:22px; }
.larger-screen-back { display:inline-flex; align-items:center; min-height:44px; padding:0 18px; text-decoration:none; }

/* 0.4.162: the sidebar's Data imports warning: an orange dot and "1 failed" or "1 late". */
.nav-import-badge { display:inline-flex; align-items:center; gap:6px; margin-left:auto; color:var(--error-fg); font-size:12px; font-weight:600; white-space:nowrap; }
.nav-import-badge[hidden] { display:none; }
.nav-import-dot { width:8px; height:8px; border-radius:50%; background:var(--brand-orange); }

/* 0.4.162: a country or organization reader's scope, with "Why only …?". */
.org-scope { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; color:var(--strong); font-size:14px; }
.org-scope[hidden] { display:none; }
.org-scope > svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.org-scope-label { font-weight:600; }
.org-scope-details > summary { display:inline-flex; align-items:center; min-height:44px; min-width:44px; color:var(--accent-text); font-weight:600; cursor:pointer; }
.org-scope-details > p { max-width:560px; margin:4px 0 8px; color:var(--text); line-height:21px; }

/* 0.4.162: phone header with a Menu button; the page links open over the content. */
.mobile-menu-button { display:none; align-items:center; gap:8px; min-height:44px; min-width:44px; padding:0 14px; border:1px solid var(--field-border); border-radius:8px; color:var(--strong); background:var(--surface); font-size:15px; font-weight:600; cursor:pointer; }
.mobile-menu-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
@media (max-width:660px) {
  .mobile-menu-button { display:inline-flex; order:1; }
  .mobile-page-control { display:none; }
  .sidebar-links { order:2; margin-left:auto; }
  .sidebar.is-menu-open .side-nav { display:flex; position:absolute; top:100%; left:0; right:0; z-index:40; max-height:calc(100vh - 64px); padding:12px 16px 16px; border-bottom:1px solid var(--border); background:var(--sidebar); box-shadow:var(--shadow-overlay); }
  .sidebar.is-menu-open .side-nav .nav-item { min-height:44px; }
  .theme-choice { width:44px; height:44px; }
  .segmented-option { min-height:44px; }
  .text-button { min-height:44px; }
}
@media (max-width:420px) { .mobile-page-control { display:none; } }
.theme-choice { min-width:44px; min-height:44px; }
/* 0.4.162: at phone width every control in the page is at least 44 by 44 CSS pixels. */
@media (max-width:660px) {
  main button, main a[href].primary-button, main a[href].secondary-button, main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), main select, main summary { min-height:44px !important; }
  main button, main summary { min-width:44px !important; }
  main summary { display:flex; align-items:center; }
}

/* Loading keeps the Agents KPI strip and first table viewport in the same places. */
.ppac-daily-portal .ppac-metrics { min-height:108px; }
.ppac-daily-portal .ppac-metrics:empty { display:grid; background:var(--surface); }
.ppac-daily-portal .ppac-daily-results { min-height:480px; }
@media (max-width:760px) {
  .ppac-daily-portal .ppac-metrics { min-height:216px; }
}

@media (min-width:1061px) {
  .view-header { min-height:96px; align-items:flex-start; }
  /* Organization pages have no intro (0.4.191): the tabs follow the title directly. */
  .view-header:has(#view-description[hidden]) { min-height:0; }
  .workspace:has(#panel-agent-usage:not([hidden])) .view-header,
  .workspace:has(#panel-agent-usage:not([hidden])) .view-actions { min-height:118px; }
  .workspace:has(#panel-agent-usage:not([hidden])) .ppac-period-dates { min-width:208px; }
}

/* Administration keeps the top-bar tools in place while browser-local files are checked. */
@media (min-width:1061px) {
  .main-area:has(#panel-administration:not([hidden])) .workspace-tools { min-width:320px; justify-content:flex-end; }
}

/* 0.4.170: a scrolling table shows soft edge shadows while there is more to scroll to (pure CSS, no script). */
.scroll-cue, .org-table-scroll, .manager-report-table-scroll, .admin-access-table, .allocation-matrix-shell, .purchase-table-shell, .allocation-body .table-shell, .ppac-table-scroll, .allocation-tabs {
  background:
    linear-gradient(to right, var(--surface), transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--surface), transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 24%), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 24%), transparent) right center / 12px 100% no-repeat scroll;
}

/* 0.4.170: on a phone every checkbox and radio sits in a label with at least a 44 by 44 px tap area (the control itself stays small). */
@media (max-width:760px) {
  label:has(> input[type="checkbox"]:not(.allocation-switch)), label:has(> input[type="radio"]), .ppac-checkbox { display:flex; align-items:center; gap:10px; min-width:44px; min-height:44px; }
  label:has(> input[type="checkbox"]):not(.allocation-switch) > input[type="checkbox"], label:has(> input[type="radio"]) > input[type="radio"] { flex:none; }
}

/* 0.4.170: agent tables on a phone keep each person's email on one line and let long headers wrap; the table scrolls sideways with a visible edge shadow. */
@media (max-width:760px) {
  .ppac-workspace .ppac-table { min-width:0; }
  .ppac-workspace .ppac-table th { white-space:normal; min-width:84px; padding-inline:10px; }
  .ppac-workspace .ppac-table td { padding-inline:10px; }
  .ppac-workspace .ppac-table th:first-child, .ppac-workspace .ppac-table td:first-child { min-width:200px; }
  .ppac-workspace .ppac-table td:first-child * { overflow-wrap:normal; word-break:normal; white-space:nowrap; }
}

/* 0.4.170: while a page asks for a larger screen, the page description and its actions that do not apply there step aside, so the notice comes first. */
.has-larger-screen-guard .view-header .view-intro, .has-larger-screen-guard .view-header .view-actions { display:none; }
/* 0.4.170 QA F8: controls that lead into the editing the notice declines (Open Billing setup, the Billing sub-views) step aside too. */
.has-larger-screen-guard .context-banner[data-kind="no-workbook"] .context-banner-action, .has-larger-screen-guard .billing-views { display:none; }

/* 0.4.170: agent and person names wrap between words only, so the first column keeps room for a whole word. */
@media (min-width:761px) { .ppac-workspace .ppac-table th:first-child, .ppac-workspace .ppac-table td:first-child { min-width:140px; } }
