@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --purple: #513279;
  --purple-dark: #392157;
  --purple-mid: #7653a3;
  --purple-soft: #f2edf7;
  --purple-pale: #faf8fc;
  --ink: #1d1b20;
  --ink-soft: #3d3a41;
  --muted: #77727d;
  --muted-light: #96919c;
  --line: #e9e6ec;
  --surface: #fff;
  --canvas: #f7f6f8;
  --green: #23845b;
  --green-soft: #eaf6ef;
  --amber: #bd7b1f;
  --red: #b84c55;
  --font-heading: 'Manrope', 'DM Sans', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --shadow-card: 0 2px 10px rgba(39, 27, 51, .035);
  --radius: 9px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b99cdd; outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 50; padding: 10px 14px; color: #fff; background: var(--purple-dark); border-radius: 5px; }
.skip-link:focus { top: 12px; }
.preview-banner { display: flex; min-height: 31px; align-items: center; justify-content: center; gap: 8px; padding: 5px 16px; color: #f5eefc; background: #342146; font-size: 11px; letter-spacing: .025em; }
.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #cab1e6; box-shadow: 0 0 0 3px rgba(202,177,230,.14); }
.preview-divider { color: #9c8baa; }
.app-header { position: sticky; top: 0; z-index: 10; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 235px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; overflow: hidden; background: #f4f3f3; border: 1px solid #e9e7e8; border-radius: 7px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; letter-spacing: -.02em; }
.brand-wordmark-link, .brand-app-home { color: inherit; text-decoration: none; }
.brand-wordmark-link:focus-visible, .brand-app-home:focus-visible, .profile-name:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.brand-wordmark { display: block; width: 78px; height: auto; max-height: 20px; object-fit: contain; object-position: left center; }
.brand-app-home { color: #817b88; font: 500 10px/1.2 var(--font-heading); }
.header-context { display: flex; align-items: center; gap: 12px; margin-right: auto; padding-left: 25px; border-left: 1px solid var(--line); }
.context-label { color: #a09aa5; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.context-name { color: #57515c; font-size: 12px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .mobile-menu-toggle { display: none; }
.theme-toggle { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; color: #655c6d; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 600; }
.theme-toggle:hover { color: var(--purple); border-color: #cfc1db; }
.theme-toggle-icon { font-size: 15px; line-height: 1; }
.icon-button { position: relative; display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; color: #716b77; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.icon-button:hover { color: var(--purple); background: var(--purple-pale); border-color: var(--line); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; background: #ad61ab; border: 1px solid #fff; border-radius: 50%; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 4px 5px; background: transparent; border: 0; cursor: pointer; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; color: var(--purple); background: #eee7f5; border-radius: 50%; font-size: 10px; font-weight: 700; }
.profile-name { color: #4d4852; font-size: 12px; font-weight: 600; }
.chevron { color: #89838f; font-size: 16px; }
.app-layout { display: flex; min-height: calc(100vh - 99px); }
.sidebar { position: fixed; top: 99px; bottom: 0; left: 0; z-index: 5; display: flex; width: 236px; flex-direction: column; padding: 24px 13px 14px; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.side-section-label { padding: 0 12px 8px; color: #aaa4af; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.side-link { display: flex; width: 100%; min-height: 39px; align-items: center; gap: 11px; padding: 0 11px; color: #68636e; text-align: left; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 500; transition: color .15s ease, background .15s ease; }
.side-link:hover { color: var(--purple); background: #faf8fc; }
.side-link.is-active { color: var(--purple); background: var(--purple-soft); font-weight: 700; }
.side-icon { display: grid; width: 18px; place-items: center; color: #918a98; font-size: 16px; line-height: 1; }
.side-link.is-active .side-icon { color: var(--purple); }
.side-link-analyze:not(.is-active) { color: #fff; background: var(--purple); box-shadow: 0 3px 10px rgba(81,50,121,.2); font-weight: 700; }
.side-link-analyze:not(.is-active) .side-icon { color: #fff; }
.side-link-analyze:not(.is-active):hover { color: #fff; background: var(--purple-dark); }
.side-icon.globe { color: #427d9c; }
.side-count { margin-left: auto; padding: 1px 7px; color: #6e4c93; background: #e9e0f2; border-radius: 12px; font-size: 10px; font-weight: 700; }
.external-mark { margin-left: auto; color: #9c96a1; font-size: 12px; }
.side-divider { height: 1px; margin: 14px 8px; background: #f0edf2; }
.sidebar-bottom { margin-top: auto; }
.help-card { display: flex; align-items: center; gap: 9px; margin: 10px 2px 18px; padding: 11px 9px; background: #faf9fb; border: 1px solid #efedf1; border-radius: 7px; }
.help-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: var(--purple); background: #eee8f4; border-radius: 50%; font-weight: 700; }
.help-card div { display: flex; min-width: 0; flex-direction: column; line-height: 1.4; }
.help-card strong { color: #4b4551; font-size: 10px; }
.help-card div span { color: #918b96; font-size: 9px; white-space: nowrap; }
.help-arrow { margin-left: auto; color: #a29ba7; }
.sidebar-foot { display: flex; justify-content: space-between; padding: 11px 7px 0; color: #aaa5ae; border-top: 1px solid #f0edf2; font-size: 9px; }
.sidebar-foot span { color: #b0a6bb; }
.main-content { width: calc(100% - 236px); min-width: 0; margin-left: 236px; padding: 36px 42px 30px; }
.view-panel { max-width: 1360px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.overview-page-heading { align-items: stretch; }
.overview-credit-balance { display: flex; min-width: 245px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid #e7e1ed; border-radius: 7px; box-shadow: var(--shadow-card); }
.overview-credit-balance > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.overview-credit-label { color: #8a8290; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.overview-credit-balance strong { color: var(--purple); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.overview-credit-status { color: #89838e; font-size: 8px; }
.overview-credit-balance .button { min-height: 32px; padding: 0 9px; white-space: nowrap; }
.organization-name-heading { margin-bottom: 4px; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #8e809a; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-line { display: inline-block; width: 17px; height: 1px; background: #9a80b7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); }
.page-heading h1 { margin: 8px 0 5px; color: #26212b; font-size: clamp(25px, 2.4vw, 33px); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; }
.heading-period { color: #8968aa; }
.page-description { margin-bottom: 0; color: #79737e; font-size: 13px; }
.access-denied-page { min-height: 100vh; }
.access-brand { text-decoration: none; }
.access-brand .brand-copy { display: flex; flex-direction: column; }
.access-brand .brand-app-home { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.access-header-link { color: var(--purple); font-size: 11px; font-weight: 700; text-decoration: none; }
.access-header-link:hover { text-decoration: underline; }
.access-page-main { display: grid; min-height: calc(100vh - 68px); place-items: center; padding: 40px 20px; }
.access-denied-card { width: min(100%, 620px); padding: clamp(24px, 5vw, 48px); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 38px rgba(39,27,51,.08); }
.access-denied-card .eyebrow { justify-content: center; }
.access-denied-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 27px auto 17px; color: #8b568f; background: var(--purple-soft); border: 1px solid #e4d8ee; border-radius: 50%; font: 700 25px/1 var(--font-heading); }
.access-denied-card h1 { margin: 0 0 10px; color: var(--ink); font-size: clamp(26px, 4vw, 36px); letter-spacing: -.045em; line-height: 1.2; }
.access-denied-message { max-width: 470px; margin: 0 auto 9px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.access-denied-help { margin: 0 auto 24px; color: var(--muted); font-size: 12px; }
.access-denied-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.access-denied-action { text-decoration: none; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-secondary { color: #625b68; background: #fff; border-color: #e6e2e9; box-shadow: 0 1px 2px rgba(32,23,42,.025); }
.button-secondary:hover { color: var(--purple); border-color: #cfc2dc; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 4px 9px rgba(81,50,121,.14); }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 5px 13px rgba(81,50,121,.2); }
.module-section { margin-bottom: 21px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 11px; }
.section-heading h2, .controls-heading h2 { margin: 0 0 2px; color: #39333e; font-size: 14px; font-weight: 700; letter-spacing: -.025em; }
.section-heading p, .controls-heading p { margin: 0; color: #89838e; font-size: 11px; }
.section-meta { display: flex; align-items: center; gap: 6px; color: #8a8490; font-size: 10px; }
.status-dot, .updated-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ca27a; }
.mock-status-dot { background: #9b7bb8; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.source-card { position: relative; display: flex; min-width: 0; min-height: 71px; align-items: center; gap: 10px; padding: 12px 13px; text-align: left; background: #fff; border: 1px solid #e8e5eb; border-radius: 7px; cursor: pointer; box-shadow: var(--shadow-card); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.source-card:hover { border-color: #c8b7d9; box-shadow: 0 3px 12px rgba(55,34,79,.075); transform: translateY(-1px); }
.source-card.is-selected { background: #fdfbff; border-color: #9d82bb; box-shadow: 0 0 0 2px rgba(130,95,166,.08); }
.source-card:disabled { cursor: not-allowed; }
.source-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 7px; }
.source-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.register-icon { color: #65428c; background: #f0eaf6; }
.visitor-icon { color: #3c8191; background: #e8f4f5; }
.request-icon { color: #a06d31; background: #faf1e5; }
.source-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.source-copy strong { overflow: hidden; color: #413b47; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-copy span { color: #938d98; font-size: 9px; }
.source-status { align-self: flex-start; margin-top: 1px; padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.source-status.available { color: #27805a; background: #eaf6ef; }
.source-status.later { color: #887f8e; background: #f3f1f4; }
.source-status.pending { color: #775d90; background: #f0ebf5; }
.source-status.connected { color: #27805a; background: #eaf6ef; }
.source-status.mock-adapter-status { color: #70538b; background: #f1ebf6; }
.selected-check { position: absolute; top: 5px; right: 6px; display: none; color: var(--purple); font-size: 10px; font-weight: 700; }
.is-selected .selected-check { display: block; }
.analysis-controls { margin-bottom: 29px; padding: 16px 18px 12px; background: linear-gradient(110deg, #fff 0%, #fdfbff 100%); border: 1px solid #e7e2ec; border-radius: 8px; box-shadow: var(--shadow-card); }
.analysis-controls[hidden] { display: none !important; }
.controls-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.controls-heading > div { display: flex; align-items: center; gap: 10px; }
.step-number { display: grid; width: 27px; height: 27px; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 6px; font-size: 10px; font-weight: 800; }
.controls-tag { padding: 4px 8px; color: #735c89; background: #f5f0f8; border: 1px solid #ece4f3; border-radius: 4px; font-size: 9px; font-weight: 600; }
.control-grid { display: grid; grid-template-columns: minmax(180px,1.35fr) minmax(145px,1fr) minmax(150px,1fr) auto; align-items: end; gap: 12px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #6e6874; font-size: 10px; font-weight: 600; }
.select-wrap { position: relative; display: flex; }
.select-wrap select { width: 100%; height: 35px; padding: 0 30px 0 10px; appearance: none; color: #4e4854; background: #fff; border: 1px solid #e5e1e8; border-radius: 5px; cursor: pointer; font-size: 10px; font-weight: 500; }
.select-wrap select:hover { border-color: #cfc1db; }
.select-chevron { position: absolute; top: 7px; right: 10px; color: #88818d; pointer-events: none; font-size: 14px; }
.analyze-button { height: 35px; min-height: 35px; padding: 0 12px; white-space: nowrap; }
.sparkle { color: #e8d8f8; font-size: 13px; }
.button-arrow { margin-left: 5px; font-size: 15px; font-weight: 400; }
.column-picker { grid-column: 1 / -1; min-width: 0; margin-top: 14px; padding: 12px; background: #fff; border: 1px solid #ece8ef; border-radius: 6px; }
.column-picker[hidden] { display: none; }
.column-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.column-picker-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.column-select-all { padding: 3px 7px; color: var(--purple); background: transparent; border: 1px solid #ddd2e8; border-radius: 4px; cursor: pointer; font-size: 8px; font-weight: 700; }
.column-select-all:hover:not(:disabled) { background: var(--purple-soft); }
.column-select-all:disabled { color: #aaa4af; cursor: not-allowed; }
.column-picker-heading h3 { margin: 0 0 2px; color: #48414d; font-size: 11px; font-weight: 700; }
.column-picker-heading p { margin: 0; color: #8d8692; font-size: 9px; }
.selection-count { flex: 0 0 auto; padding: 3px 7px; color: #6d5087; background: #f3eef7; border-radius: 4px; font-size: 8px; font-weight: 700; }
.column-metadata-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0; padding: 7px 9px; color: #756c7b; background: #faf8fc; border-radius: 4px; font-size: 8px; line-height: 1.5; }
.column-metadata-state { margin: 0 0 8px; color: #8b6d34; font-size: 8px; }
.metadata-icon { display: grid; width: 14px; height: 14px; flex: 0 0 auto; place-items: center; color: #765994; border: 1px solid #cbbbd9; border-radius: 50%; font: 700 9px var(--font-heading); }
.column-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 8px; }
.column-choice { display: grid; min-width: 0; grid-template-columns: 16px minmax(0,1fr); align-items: start; gap: 8px; padding: 10px; background: #fff; border: 1px solid #efedf1; border-radius: 5px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.column-choice:hover { background: #fdfbff; border-color: #d4c5e0; }
.column-choice-input { width: 14px; height: 14px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--purple); }
.column-choice-copy { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: start; column-gap: 8px; row-gap: 4px; }
.column-choice-copy strong { min-width: 0; color: #4c4551; font-size: 10px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.column-choice-copy code { justify-self: end; max-width: 100%; color: #958b9b; font: 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.column-help { grid-column: 1 / -1; color: #918a96; font-size: 8px; line-height: 1.45; }
.column-badges { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 5px; }
.column-type { flex: 0 0 auto; padding: 2px 5px; color: #79618f; background: #f4f0f7; border-radius: 3px; font-size: 7px; font-weight: 600; }
.column-currency { flex: 0 0 auto; padding: 2px 5px; color: #26734f; background: #eaf6ef; border-radius: 3px; font-size: 7px; font-weight: 700; }
.column-picker-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 8px; color: #99929d; border-top: 1px solid #f0edf2; font-size: 8px; }
.column-picker-foot span:last-child { color: #6c5482; font-weight: 600; text-align: right; }
.controls-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #98919d; font-size: 9px; }
.controls-note > span:first-child { color: #9b82b3; font-size: 12px; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.results-heading h2 { margin: 6px 0 2px; color: #352f3a; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.results-heading p { margin: 0; color: #8c8691; font-size: 10px; }
.report-actions { display: flex; align-items: center; gap: 9px; }
.updated-label { display: flex; align-items: center; gap: 6px; color: #8d8792; font-size: 9px; }
.updated-dot { width: 5px; height: 5px; }
.icon-button.small { width: 29px; height: 29px; color: #817a87; font-size: 12px; letter-spacing: 1px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.kpi-card { position: relative; min-height: 126px; overflow: hidden; padding: 13px 15px 15px; background: #fff; border: 1px solid #eae7ed; border-radius: 7px; box-shadow: var(--shadow-card); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { color: #77717d; font-size: 10px; font-weight: 500; }
.kpi-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; font-size: 12px; font-weight: 700; }
.kpi-icon.purple { color: #69458e; background: #f0eaf6; }
.kpi-icon.lilac { color: #8864a8; background: #f2edf7; }
.kpi-icon.amber { color: #a67537; background: #faf2e7; }
.kpi-icon.green { color: #32825d; background: #eaf6ef; font-size: 8px; }
.kpi-value { margin-top: 5px; color: #28232d; font: 700 25px/1.2 var(--font-heading); letter-spacing: -.045em; }
.kpi-value small { color: #807986; font: 600 12px var(--font-body); letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #9a949f; font-size: 8px; }
.trend-up { color: #32845e; font-weight: 700; }
.trend-down { color: #b47a3d; font-weight: 700; }
.kpi-neutral { color: #6c6571; font-weight: 600; }
.kpi-sparkline { position: absolute; right: 12px; bottom: 0; left: 12px; display: flex; height: 25px; align-items: flex-end; gap: 4px; opacity: .56; }
.kpi-sparkline i { display: block; width: 10%; height: var(--h); border-radius: 2px 2px 0 0; }
.spark-purple i { background: #a78bc2; }.spark-lilac i { background: #c2afd6; }.spark-amber i { background: #d6bd98; }
.live-meter { height: 4px; margin-top: 14px; overflow: hidden; background: #eef3ef; border-radius: 4px; }
.live-meter span { display: block; height: 100%; background: #6bac87; border-radius: 4px; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.9fr); gap: 12px; margin-bottom: 12px; }
.panel { min-width: 0; background: #fff; border: 1px solid #eae7ed; border-radius: 7px; box-shadow: var(--shadow-card); }
.trend-panel { padding: 14px 16px 10px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h3 { margin: 0 0 2px; color: #403a46; font-size: 12px; font-weight: 700; }
.panel-heading p { margin: 0; color: #99939e; font-size: 9px; }
.text-select { padding: 4px 7px; color: #6e6675; background: #fff; border: 1px solid #e8e4eb; border-radius: 4px; cursor: pointer; font-size: 9px; }
.text-select span { padding-left: 6px; color: #908995; }
.chart-area { position: relative; height: 177px; margin: 14px 3px 0 28px; }
.line-chart { position: absolute; inset: 0 0 18px; width: 100%; height: calc(100% - 18px); overflow: visible; }
.gridline { fill: none; stroke: #efedf1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.area-path { fill: url(#chart-fill); }
.line-path { fill: none; stroke: #8061a0; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-point { fill: #fff; stroke: #745291; stroke-width: 2; vector-effect: non-scaling-stroke; }
.point-line { stroke: #bba9ca; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.y-labels { position: absolute; top: -5px; bottom: 22px; left: -27px; display: flex; flex-direction: column; justify-content: space-between; color: #aaa4ae; font-size: 8px; }
.x-labels { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; color: #aaa4ae; font-size: 8px; }
.chart-legend { display: flex; gap: 16px; padding: 2px 0 0 29px; color: #98929d; font-size: 8px; }
.chart-legend span, .legend-list span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.purple-dot { background: #76549b; }.lilac-dot { background: #b395cf; }.blue-dot { background: #78a9c4; }.grey-dot { background: #d1cdd5; }
.purpose-panel { padding: 14px 16px 12px; }
.donut-wrap { display: grid; min-height: 135px; place-items: center; }
.donut-chart { display: grid; width: 116px; height: 116px; place-items: center; background: conic-gradient(#76549b 0 42%, #b395cf 42% 68%, #78a9c4 68% 86%, #d8d4dc 86% 100%); border-radius: 50%; }
.donut-chart::before { width: 78px; height: 78px; content: ''; grid-area: 1/1; background: #fff; border-radius: 50%; }
.donut-center { z-index: 1; display: flex; grid-area: 1/1; flex-direction: column; align-items: center; justify-content: center; margin-top: -1px; }
.donut-center strong { color: #3c3542; font: 700 17px var(--font-heading); letter-spacing: -.03em; }
.donut-center span { color: #99929e; font-size: 8px; }
.legend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.legend-list > div { display: flex; align-items: center; justify-content: space-between; color: #79737f; font-size: 8px; }
.legend-list strong { color: #534c58; font-size: 9px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(275px,1fr); gap: 12px; }
.table-panel { padding: 14px 16px 8px; }
.panel-link { padding: 2px 0; color: #79599a; background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 700; white-space: nowrap; }
.panel-link span { margin-left: 4px; font-size: 13px; font-weight: 400; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; margin-top: 10px; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 7px 5px; color: #aaa4ae; border-bottom: 1px solid #f0edf2; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
td { padding: 9px 5px; color: #615b66; border-bottom: 1px solid #f4f2f5; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: #48424e; font-weight: 600; }
.location-badge { display: inline-grid; width: 19px; height: 19px; place-items: center; margin-right: 6px; color: #7e668f; background: #f1edf4; border-radius: 5px; font-size: 8px; font-weight: 700; }
.share-track { display: inline-block; width: 45px; height: 4px; margin-right: 5px; overflow: hidden; vertical-align: middle; background: #efedf1; border-radius: 4px; }
.share-track i { display: block; height: 100%; background: #a88cc1; border-radius: 4px; }
.share-value { color: #817a86; font-size: 8px; }
.insight-card { position: relative; overflow: hidden; padding: 14px 16px 12px; background: linear-gradient(145deg, #fbf9fd 0%, #f5f0f9 100%); border: 1px solid #e8e0ef; border-radius: 7px; }
.insight-card::after { position: absolute; top: -43px; right: -35px; width: 125px; height: 125px; content: ''; border: 1px solid rgba(119,86,151,.1); border-radius: 50%; box-shadow: 0 0 0 16px rgba(119,86,151,.025), 0 0 0 33px rgba(119,86,151,.02); pointer-events: none; }
.insight-heading { display: flex; align-items: center; gap: 6px; color: #8b739e; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.insight-sparkle { color: #8b68a8; font-size: 13px; }
.insight-card h3 { position: relative; z-index: 1; margin: 9px 0 5px; color: #41354d; font-size: 14px; font-weight: 700; letter-spacing: -.025em; }
.insight-card p { position: relative; z-index: 1; max-width: 390px; margin-bottom: 10px; color: #79717f; font-size: 9px; line-height: 1.65; }
.insight-card p strong { color: #513279; }
.insight-source { display: flex; align-items: center; gap: 5px; color: #8f8795; font-size: 8px; }
.source-check { display: inline-grid; width: 14px; height: 14px; place-items: center; color: #367b59; background: #e4f1e9; border-radius: 50%; font-size: 8px; }
.insight-link { position: relative; z-index: 1; margin-top: 9px; padding: 0; color: #694887; background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 700; }
.insight-link span { margin-left: 5px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0 0; color: #aaa4ae; font-size: 8px; }
.placeholder-panel { display: flex; min-height: 65vh; flex-direction: column; align-items: flex-start; justify-content: center; padding: 45px max(20px, 10vw); }
.placeholder-panel[hidden] { display: none; }
.placeholder-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 18px; color: var(--purple); background: var(--purple-soft); border-radius: 11px; font-size: 24px; }
.placeholder-panel h1 { margin: 7px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.placeholder-panel > p { max-width: 520px; margin-bottom: 20px; color: var(--muted); }
.placeholder-note { display: flex; max-width: 550px; flex-direction: column; gap: 3px; margin-bottom: 22px; padding: 13px 15px; color: #77707d; background: #fff; border: 1px solid var(--line); border-left: 3px solid #9272af; border-radius: 5px; font-size: 11px; }
.placeholder-note strong { color: #4d4652; }
.manage-access-status { min-height: 20px; margin: -12px 0 14px; color: var(--muted); font-size: 11px; }
.manage-access-status.is-error { color: var(--red); }
.manage-access-location-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 15px; }
.manage-access-location-list[hidden], .manage-access-location-detail[hidden], .manage-access-user-picker[hidden] { display: none; }
.manage-access-location-card { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-card); }
.manage-access-location-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.manage-access-location-card-heading h2 { margin: 0; color: #39333e; font-size: 14px; overflow-wrap: anywhere; }
.manage-access-location-status { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.manage-access-location-status.is-enabled { color: #237a43; background: #e7f5ec; }
.manage-access-location-status.is-disabled { color: #746d7a; background: #efedf1; }
.manage-access-location-audience { margin: 9px 0 13px; color: var(--muted); font-size: 11px; }
.manage-access-location-button { min-height: 34px; }
.manage-access-credit-button { min-height: 34px; margin-left: 8px; color: #55317d; background: #f2eafb; border-color: #ddcbed; }
.manage-access-credit-button:hover { color: #432264; background: #e9dcf6; border-color: #cbb4df; }
.manage-access-credit-pool { margin: 0 0 14px; padding: 11px 14px; color: #514762; background: #f4f0f8; border: 1px solid #e6dced; border-radius: 7px; font-size: 12px; }
.manage-access-location-credit-summary { margin: -2px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.manage-access-location-credit-summary strong { color: var(--ink); font-weight: 700; }
.manage-access-credit-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); gap: 10px; margin: 0 0 18px; }
.manage-access-credit-metric { min-width: 0; padding: 12px; background: #fbfafc; border: 1px solid var(--line); border-radius: 7px; }
.manage-access-credit-metric strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.manage-access-credit-metric span { color: var(--muted); font-size: 10px; }
.manage-access-credit-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.manage-access-credit-form { min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.manage-access-credit-form h3 { margin: 0 0 12px; color: var(--ink); font-size: 13px; }
.manage-access-credit-form .field { display: block; margin-bottom: 12px; }
.manage-access-credit-form .field > span:first-child { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.manage-access-credit-form input, .manage-access-credit-form select { width: 100%; min-height: 38px; padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font: 12px var(--font-body); }
.manage-access-credit-status { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.manage-access-credit-status.is-error { color: var(--red); }
.manage-access-credit-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.manage-access-credit-activity-section { margin-top: 20px; }
.manage-access-credit-activity-section > h3 { margin: 0 0 9px; color: var(--ink); font-size: 13px; }
.manage-access-credit-activity { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.manage-access-credit-activity-row { position: relative; display: grid; gap: 3px; padding: 32px 12px 10px; background: #fbfafc; border: 1px solid var(--line); border-radius: 7px; }
.manage-access-credit-activity-id { position: absolute; top: 7px; right: 8px; padding: 3px 8px; color: #655274 !important; background: #eee8f4; border: 1px solid #e0d6ea; border-radius: 999px; font-size: 9px !important; font-weight: 700; line-height: 1.2 !important; }
.manage-access-credit-activity-empty { grid-column: 1 / -1; }
.manage-access-credit-activity-row strong { color: var(--ink); font-size: 11px; }
.manage-access-credit-activity-row span, .manage-access-credit-activity-row small,
.manage-access-credit-activity-empty { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.manage-access-location-detail { margin-top: 18px; padding: 18px; }
.manage-access-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.manage-access-detail-heading h2 { margin: 0 0 4px; color: #39333e; font-size: 16px; }
.manage-access-detail-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.manage-access-enable { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #4d4652; font-size: 12px; font-weight: 650; }
.manage-access-enable input, .manage-access-audience input { accent-color: var(--purple); }
.manage-access-audience { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.manage-access-audience legend { padding: 0 5px; color: #625b68; font-size: 11px; font-weight: 700; }
.manage-access-audience label { display: inline-flex; align-items: center; gap: 8px; color: #4d4652; font-size: 11px; }
.manage-access-user-picker { max-width: 720px; margin: 0 0 14px; }
.manage-access-user-picker .field { margin-bottom: 12px; }
.manage-access-user-picker .field input { width: 100%; min-height: 36px; padding: 7px 10px; color: #4e4854; background: #fff; border: 1px solid #e5e1e8; border-radius: 5px; font: 11px var(--font-body); }
.manage-access-user-picker h3 { margin: 14px 0 7px; color: #4d4652; font-size: 12px; }
.manage-access-search-results { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.manage-access-search-user { display: flex; min-height: 42px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; color: #4d4652; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.manage-access-search-user:hover { border-color: #b9a3cf; background: var(--purple-pale); }
.manage-access-search-user strong { font-size: 11px; }
.manage-access-search-user small, .manage-access-user-contact, .manage-access-user-qualifier { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.manage-access-search-empty, .manage-access-search-error, .manage-access-no-selected-users { margin: 0; padding: 8px 2px; color: var(--muted); font-size: 11px; }
.manage-access-search-error, .manage-access-save-status { color: var(--red); }
.manage-access-selected-users { display: grid; gap: 6px; }
.manage-access-selected-user { display: flex; min-width: 0; align-items: center; gap: 8px 12px; padding: 8px 10px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 6px; }
.manage-access-user-name { min-width: 0; color: #4d4652; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.manage-access-user-contact { margin-left: auto; }
.manage-access-remove-user { flex: 0 0 auto; padding: 3px 6px; color: #8a3f48; background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 650; }
.manage-access-save-status { min-height: 18px; margin: 2px 0 9px; font-size: 11px; }
.sidebar-foot { margin-top: auto; }
.controls-heading { justify-content: flex-start; }
.controls-heading > div { align-items: center; }
.adapter-empty-state { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 15px; color: #716b77; background: #faf9fb; border: 1px dashed #d8d1df; border-radius: 6px; }
.adapter-empty-state strong { display: block; margin: 0 0 3px; color: #494250; font-size: 11px; }
.adapter-empty-state p { max-width: 740px; margin: 0; color: #89828e; font-size: 10px; line-height: 1.6; }
.empty-state-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: #765994; background: #eee8f4; border-radius: 6px; font-size: 18px; }
.adapter-empty-state[hidden], .register-controls[hidden] { display: none !important; }
.register-controls { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,1.35fr); align-items: center; gap: 10px 16px; margin-top: 14px; padding: 13px; background: #fff; border: 1px solid #ece8ef; border-radius: 6px; }
.register-controls .field { max-width: 390px; }
.register-description { margin: 0; color: #716b77; font-size: 10px; line-height: 1.55; }
.register-controls #register-select-field[hidden],
.register-controls #register-description[hidden],
.register-controls #visitor-adapter-note[hidden],
.register-controls #analysis-stepper[hidden],
.register-controls #analysis-ai-credit-note[hidden] { display: none !important; }
.visitor-adapter-note { grid-column: 1 / -1; padding: 10px 12px; color: #695c74; background: #f5f0f8; border: 1px solid #e7dced; border-radius: 5px; font-size: 12px; line-height: 1.55; }
.date-range-field { min-width: 0; grid-column: 1 / -1; margin: 2px 0 0; padding: 10px 11px 8px; border: 1px solid #ece8ef; border-radius: 5px; }
.date-range-field legend { padding: 0 5px; color: #6e6874; font-size: 10px; font-weight: 700; }
.date-range-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.date-range-controls .field { max-width: none; }
.date-range-controls input[type="date"] { width: 100%; height: 35px; padding: 0 9px; color: #4e4854; background: #fff; border: 1px solid #e5e1e8; border-radius: 5px; font: 10px var(--font-body); }
.date-range-controls input[type="date"]:focus { border-color: #a78bc2; outline: none; box-shadow: 0 0 0 3px rgba(130,95,166,.12); }
.date-required-indicator { color: #b84c55; font-size: 9px; font-weight: 600; }
.date-range-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.date-range-hint { margin: 0; color: #918a96; font-size: 8px; line-height: 1.4; }
.date-range-clear { min-height: 30px; flex: 0 0 auto; padding: 0 10px; font-size: 9px; }
.date-range-clear:disabled { opacity: .55; cursor: not-allowed; }
.analysis-context-field { display: flex; min-width: 0; grid-column: 1 / -1; flex-direction: column; gap: 6px; }
.analysis-report-preferences { display: grid; min-width: 0; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.analysis-report-preferences .field { max-width: none; }
.analysis-preference-hint { color: #918a96; font-size: 9px; line-height: 1.4; }
.analysis-context-label { display: flex; align-items: center; gap: 7px; color: #6e6874; font-size: 10px; font-weight: 600; }
.analysis-context-label span { padding: 2px 5px; color: #8b8490; background: #f3f1f4; border-radius: 3px; font-size: 8px; font-weight: 500; }
.analysis-context-field textarea { display: block; width: 100%; min-height: 86px; resize: vertical; padding: 9px 10px; color: #4e4854; background: #fff; border: 1px solid #e5e1e8; border-radius: 5px; font: 10px/1.55 var(--font-body); }
.analysis-context-field textarea::placeholder { color: #a19aa6; }
.analysis-context-field textarea:focus { border-color: #a78bc2; outline: none; box-shadow: 0 0 0 3px rgba(130,95,166,.12); }
.analysis-context-hint { color: #918a96; font-size: 8px; line-height: 1.4; }
.analysis-submit-row { display: flex; min-width: 0; grid-column: 1 / -1; align-items: center; gap: 10px; padding-top: 2px; }
.analysis-stepper { gap: 7px; }
.analysis-workflow-step { display: flex; min-width: 0; flex: 1 1 0; align-items: center; gap: 7px; }
.analysis-workflow-step[hidden], .analysis-workflow-arrow[hidden] { display: none; }
.analysis-workflow-number { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #716a7a; background: #f1edf4; border: 1px solid #e4ddea; border-radius: 50%; font-size: 9px; font-weight: 750; }
.analysis-workflow-step.is-current .analysis-workflow-number { color: #fff; background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 3px rgba(130,95,166,.12); }
.analysis-workflow-step.is-complete .analysis-workflow-number { color: #fff; background: #388a62; border-color: #388a62; }
.analysis-workflow-step .button { width: 100%; min-width: 0; min-height: 40px; padding: 6px 9px; font-size: 10px; line-height: 1.3; white-space: normal; }
.analysis-workflow-arrow { display: inline-flex; flex: 0 0 16px; align-items: center; justify-content: center; color: #9b91a4; font-size: 17px; font-weight: 650; }
.analysis-submit-row .button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.analysis-submit-status { grid-column: 1 / -1; margin: 0; color: #4d805e; font-size: 9px; line-height: 1.5; }
.analysis-submit-status.is-error { color: #b84c55; }
.analysis-submit-status.is-success { color: #32825d; }
.analysis-ai-credit-note { grid-column: 1 / -1; margin: -2px 0 0; color: #89828e; font-size: 8px; line-height: 1.5; }
.analysis-record-limit-note { grid-column: 1 / -1; margin: -3px 0 0; padding: 8px 10px; color: #62566f; background: #f7f3fa; border-left: 3px solid var(--purple-mid); border-radius: 4px; font-size: 10px; line-height: 1.5; }
.analysis-record-limit-note strong { color: var(--purple); }
.ai-plan-result { min-width: 0; grid-column: 1 / -1; padding: 14px; color: #494250; background: #faf8fc; border: 1px solid #e7e0ed; border-radius: 6px; }
.analysis-pdf-download { display: flex; justify-content: flex-end; margin: 0 0 12px; padding: 10px 12px; background: #f2ebf8; border: 1px solid #dfd0ed; border-radius: 6px; }
.analysis-pdf-download .button { font-weight: 700; }
.ai-plan-result[hidden] { display: none; }
.ai-plan-result > h3 { margin: 0 0 5px; color: #40374b; font-size: 14px; }
.ai-plan-period { margin: 0 0 8px; color: #81758c; font-size: 9px; }
.ai-report-metadata { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.ai-report-metadata-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; padding: 7px 10px; color: #62566f; background: #f7f3fa; border: 1px solid #e5dced; border-radius: 999px; font-size: 10px; }
.ai-report-metadata-item strong { color: #40374b; font-size: 10px; font-weight: 700; }
.ai-analysis-record-limit { margin: 0 0 12px !important; padding: 9px 11px; color: #62566f; background: #f7f3fa; border: 1px solid #e5dced; border-radius: 5px; font-size: 10px !important; font-weight: 600; }
.ai-plan-result > h4 { margin: 13px 0 7px; color: #58466d; font-size: 11px; }
.ai-plan-result p { margin: 0 0 8px; font-size: 10px; line-height: 1.55; }
.ai-plan-result .ai-plan-subtitle { color: #7e7489; }
.ai-plan-result .ai-plan-summary { color: #5d5663; font-size: 11px; }
.ai-plan-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 9px; margin: 10px 0; }
.ai-plan-metric { min-width: 0; padding: 10px; background: #fff; border: 1px solid #ebe6ef; border-radius: 5px; }
.ai-plan-metric > span { display: block; color: #81758c; font-size: 9px; }
.ai-plan-metric > strong { display: block; margin-top: 4px; color: #514263; font-size: 16px; overflow-wrap: anywhere; }
.ai-plan-metric > p { margin: 4px 0 0; color: #706977; }
.ai-data-table-wrap { max-width: 100%; overflow-x: auto; }
.ai-data-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.ai-data-table th, .ai-data-table td { min-width: 88px; padding: 7px 8px; text-align: left; vertical-align: top; border: 1px solid #e9e3ee; }
.ai-data-table th { color: #58466d; background: #f4f0f7; font-weight: 650; }
.ai-data-table td { color: #625b68; }
.ai-report-charts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 14px; margin: 8px 0 14px; }
.ai-report-chart-card { min-width: 0; padding: 12px; background: #fff; border: 1px solid #ebe6ef; border-radius: 6px; }
.ai-report-chart-card h5 { margin: 0 0 4px; color: #48404f; font-size: 10px; }
.ai-report-chart-description { min-height: 24px; color: #706977; }
.ai-report-chart-canvas { position: relative; height: 240px; max-height: 45vh; }
.ai-report-chart-data { margin-top: 8px; font-size: 9px; }
.ai-report-chart-data > summary { color: #71558b; cursor: pointer; }
.ai-plan-section { padding-top: 9px; border-top: 1px solid #e9e3ee; }
.ai-plan-section h4 { margin: 0 0 5px; color: #58466d; font-size: 10px; }
.ai-plan-recommendations { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 7px; }
.ai-plan-recommendation { position: relative; min-width: 0; padding: 10px; background: #fff; border: 1px solid #ebe6ef; border-radius: 5px; }
.ai-plan-recommendation strong { display: block; padding-right: 58px; color: #48404f; font-size: 10px; }
.ai-plan-recommendation p { margin: 5px 0 0; color: #706977; }
.ai-plan-priority { position: absolute; top: 8px; right: 8px; padding: 2px 5px; color: #71558b; background: #f0eaf6; border-radius: 3px; font-size: 7px; font-weight: 700; text-transform: capitalize; }
.ai-plan-result ul { margin: 0; padding-left: 18px; color: #766e7c; font-size: 9px; line-height: 1.55; }
.register-metadata-pending { grid-column: 1 / -1; padding-top: 9px; color: #918a96; border-top: 1px solid #f0edf2; font-size: 9px; }
.analytics-results-section { scroll-margin-top: 24px; }
.analytics-results-heading { margin: 0 0 12px; }
.report-empty { display: flex; min-height: 155px; align-items: center; gap: 16px; padding: 23px; }
.report-empty h2 { margin: 7px 0 4px; color: #403a46; font-size: 17px; letter-spacing: -.035em; }
.report-empty p { max-width: 590px; margin: 0; color: #8a8490; font-size: 10px; }
.empty-report-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #73518f; background: #f0eaf6; border-radius: 8px; font-size: 19px; }
.wallet-overview-panel { max-width: 1100px; margin: 0 auto; }
.buy-credits-panel { max-width: 1120px; margin: 0 auto; }
.buy-credits-balance { width: fit-content; max-width: 100%; margin: -10px 0 18px auto; }
.buy-credits-status { min-height: 18px; margin: -12px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.buy-credits-status.is-error { color: #b84c55; }
.buy-credits-status.is-success { color: #32825d; }
.buy-credits-empty, .buy-credits-permission { margin-bottom: 14px; padding: 15px; color: #716a77; }
.buy-credits-package-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 16px; }
.buy-credit-package-card { display: flex; min-width: 0; flex-direction: column; padding: 18px; background: #fff; border: 1px solid #e9e3ee; border-radius: 8px; box-shadow: 0 4px 12px rgba(50,35,65,.04); }
.buy-credit-package-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.buy-credit-package-name { margin: 0; color: #403a46; font-size: 15px; }
.buy-credit-package-bonus-pill { display: inline-flex; align-items: center; padding: 4px 9px; color: #237a43; background: #e7f5ec; border: 1px solid #cde9d6; border-radius: 999px; font-size: 9px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.buy-credit-package-visibility-pill { display: inline-flex; align-items: center; padding: 4px 8px; color: #62536f; background: #f3eff7; border: 1px solid #e3d9eb; border-radius: 999px; font-size: 9px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.buy-credit-package-description { min-height: 30px; margin: 0 0 12px; color: #817a87; font-size: 10px; line-height: 1.5; }
.buy-credit-package-credits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin: 0 0 12px; }
.buy-credit-package-credits strong { color: var(--purple); font-size: 22px; }
.buy-credit-package-credits span { color: #32825d; font-size: 9px; font-weight: 650; }
.buy-credit-package-details { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin: auto 0 15px; padding: 12px 0; border-top: 1px solid #eeeaf1; }
.buy-credit-package-details dt { color: #817a87; font-size: 9px; }
.buy-credit-package-details dd { margin: 0; color: #5b5461; font-size: 9px; text-align: right; }
.buy-credit-package-details .buy-credit-package-total-label,
.buy-credit-package-details .buy-credit-package-total { padding-top: 8px; border-top: 1px solid #eeeaf1; color: #403a46; font-weight: 750; }
.buy-credit-package-button { width: 100%; min-height: 38px; }
.buy-credit-package-button:disabled { opacity: .55; cursor: not-allowed; }
.buy-credits-back-button { margin-top: 18px; }
.wallet-overview-status { min-height: 18px; margin: -12px 0 12px; color: var(--muted); font-size: 10px; }
.wallet-summary-panel, .wallet-allocation-panel { margin-bottom: 14px; padding: 17px; }
.wallet-summary-panel .panel-heading, .wallet-allocation-panel .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.wallet-summary-panel .panel-heading h2, .wallet-allocation-panel .panel-heading h2 { margin: 0 0 3px; color: #403a46; font-size: 14px; }
.wallet-summary-panel .panel-heading p, .wallet-allocation-panel .panel-heading p { margin: 0; color: #8a8490; font-size: 9px; }
.wallet-status-badge { padding: 4px 9px; color: #6f6875; background: #efedf1; border-radius: 14px; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.wallet-status-badge.is-active { color: #237a43; background: #e7f5ec; }
.wallet-status-badge.is-inactive, .wallet-status-badge.is-suspended { color: #bd3434; background: #fdeaea; }
.wallet-available-card { display: flex; min-height: 125px; flex-direction: column; justify-content: center; margin-bottom: 12px; padding: 17px; background: #f7f5fa; border: 1px solid #e5e1eb; border-radius: 7px; }
.wallet-available-card span { color: #777; font-size: 10px; }
.wallet-available-card strong { color: var(--purple); font-size: 30px; line-height: 1.3; overflow-wrap: anywhere; }
.wallet-available-card small { margin-top: 3px; color: #888; font-size: 9px; }
.wallet-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 9px; }
.wallet-metric-card { display: flex; min-width: 0; flex-direction: column-reverse; gap: 4px; padding: 11px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.wallet-metric-card span { color: #88818d; font-size: 9px; }
.wallet-metric-card strong { color: #3d3743; font-size: 17px; overflow-wrap: anywhere; }
.wallet-allocation-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); gap: 9px; }
.wallet-allocation { min-width: 0; padding: 12px; border: 1px solid #ece8ef; border-radius: 5px; }
.wallet-allocation-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.wallet-allocation-type { color: #494250; font-size: 10px; text-transform: capitalize; }
.wallet-allocation-remaining { color: var(--purple); font-size: 10px; font-weight: 700; white-space: nowrap; }
.wallet-allocation-details, .wallet-allocation-expiry { margin: 6px 0 0; color: #88818d; font-size: 9px; }
.wallet-allocation-expiry { color: #946200; }
.wallet-allocation-expiry.is-no-expiry { color: #237a43; }
.wallet-no-allocations { grid-column: 1 / -1; margin: 0; padding: 12px 0; color: #88818d; font-size: 10px; }
.wallet-overview-empty { margin-bottom: 14px; padding: 18px; color: #817987; font-size: 11px; }
.wallet-back-button { margin-top: 3px; }
.credit-allocation-panel { max-width: 1100px; margin: 0 auto; }
.credit-allocation-load-status { min-height: 18px; margin: -12px 0 12px; color: var(--muted); font-size: 10px; }
.credit-allocation-summary-panel, .credit-allocation-list-panel { margin-bottom: 14px; padding: 17px; }
.credit-allocation-summary-panel .panel-heading h2, .credit-allocation-list-panel .panel-heading h2 { margin: 0 0 3px; color: #403a46; font-size: 14px; }
.credit-allocation-summary-panel .panel-heading p, .credit-allocation-list-panel .panel-heading p { margin: 0; color: #8a8490; font-size: 9px; }
.credit-allocation-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 9px; }
.credit-allocation-summary-item { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 11px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.credit-allocation-summary-item strong { color: #3d3743; font-size: 17px; overflow-wrap: anywhere; }
.credit-allocation-summary-item span { color: #88818d; font-size: 9px; }
.credit-allocation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.credit-allocation-card { min-width: 0; padding: 13px; background: #fff; border: 1px solid #e5e1eb; border-radius: 6px; }
.credit-allocation-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.credit-allocation-title-group { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
.credit-allocation-type { color: #393440; font-size: 11px; text-transform: capitalize; }
.credit-allocation-reference { color: #88818d; font-size: 9px; overflow-wrap: anywhere; }
.credit-allocation-status { padding: 4px 9px; color: #666; background: #eee; border-radius: 12px; font-size: 9px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.credit-allocation-status.is-active { color: #237a43; background: #e7f5ec; }
.credit-allocation-status.is-expired { color: #bd3434; background: #fdeaea; }
.credit-allocation-status.is-warning { color: #946200; background: #fff3d9; }
.credit-allocation-balance { margin-top: 12px; color: var(--purple); font-size: 21px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.credit-allocation-balance-label { color: #888; font-size: 9px; }
.credit-allocation-breakdown { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #aaa; }
.credit-allocation-breakdown-item { display: flex; min-width: 92px; flex-direction: column; gap: 2px; padding: 6px 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.credit-allocation-breakdown-item strong { color: #444; font-size: 11px; }
.credit-allocation-breakdown-item span { color: #888; font-size: 8px; }
.credit-allocation-dates { margin-top: 9px; color: #888; font-size: 9px; line-height: 1.5; }
.credit-allocation-dates p { margin: 3px 0 0; }
.credit-allocation-dates .is-warning { color: #946200; font-weight: 600; }
.credit-allocation-dates .is-expired { color: #bd3434; font-weight: 600; }
.credit-allocation-dates .is-no-expiry { color: #237a43; }
.credit-allocation-none, .credit-allocation-empty { margin: 0; padding: 15px; color: #88818d; font-size: 10px; }
.credit-allocation-back-button { margin-top: 3px; }
.transaction-history-panel { max-width: 1100px; margin: 0 auto; }
.transaction-history-load-status { min-height: 18px; margin: -12px 0 12px; color: var(--muted); font-size: 10px; }
.transaction-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.transaction-history-list[hidden], .transaction-history-empty[hidden], .purchase-history-list[hidden], .purchase-history-empty[hidden] { display: none !important; }
.transaction-history-card { min-width: 0; padding: 14px; background: #fff; border: 1px solid #e5e1eb; border-radius: 6px; }
.transaction-history-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.transaction-history-title-block { display: grid; min-width: 0; gap: 2px; }
.transaction-history-title { color: #393440; font-size: 11px; }
.transaction-history-id, .transaction-history-date { color: #88818d; font-size: 9px; }
.transaction-history-type { padding: 4px 9px; color: #666; background: #eee; border-radius: 12px; font-size: 9px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.transaction-history-type.is-credit, .transaction-history-type.is-refund { color: #237a43; background: #e7f5ec; }
.transaction-history-type.is-reserve { color: #946200; background: #fff3d9; }
.transaction-history-type.is-release { color: #27658d; background: #e8f2fa; }
.transaction-history-type.is-usage, .transaction-history-type.is-expiry { color: #bd3434; background: #fdeaea; }
.transaction-history-type.is-adjustment, .transaction-history-type.is-reversal { color: #666; background: #eee; }
.transaction-history-amount { margin-top: 12px; color: var(--purple); font-size: 21px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.transaction-history-amount-label { color: #888; font-size: 9px; }
.transaction-history-movements { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #aaa; }
.transaction-history-movement { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 5px 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.transaction-history-movement strong { color: #777; font-size: 10px; }
.transaction-history-movement strong.is-positive { color: #237a43; }
.transaction-history-movement strong.is-negative { color: #bd3434; }
.transaction-history-movement span { color: #888; font-size: 8px; }
.transaction-history-details { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: #77717f; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.transaction-history-detail-pill { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 5px 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 6px; }
.transaction-history-detail-pill span { font-weight: 400; }
.transaction-history-detail-pill strong { color: #37313d; font-weight: 700; overflow-wrap: anywhere; }
.transaction-history-details .transaction-history-description { flex-basis: 100%; margin: 0 0 2px; color: #555; font-size: 10px; line-height: 1.55; }
.transaction-history-empty { margin-bottom: 14px; padding: 15px; color: #88818d; font-size: 10px; }
.transaction-history-none { margin: 0; padding: 15px; color: #88818d; font-size: 10px; }
.transaction-history-back-button { margin-top: 13px; }
.analysis-history-panel { max-width: 1100px; margin: 0 auto; }
.analysis-history-load-status { min-height: 18px; margin: -12px 0 12px; color: var(--muted); font-size: 10px; }
.analysis-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analysis-history-list[hidden], .analysis-history-empty[hidden] { display: none !important; }
.history-pagination { display: flex; min-height: 52px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 12px 0 18px; }
.history-pagination[hidden] { display: none !important; }
.history-pagination-status { color: #827b88; font-size: 9px; text-align: center; }
.history-load-more { min-height: 34px; }
.history-load-more[hidden] { display: none !important; }
.history-pagination-sentinel { width: 100%; height: 1px; flex: 0 0 100%; }
.analysis-history-card { min-width: 0; padding: 14px; background: #fff; border: 1px solid #e5e1eb; border-radius: 6px; }
.analysis-history-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 9px; }
.analysis-history-title-block { display: grid; min-width: 0; gap: 3px; }
.analysis-history-title { color: #393440; font-size: 11px; overflow-wrap: anywhere; }
.analysis-history-date { color: #88818d; font-size: 9px; }
.analysis-history-status { padding: 4px 9px; color: #666; background: #eee; border-radius: 12px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.analysis-history-status.is-success { color: #237a43; background: #e5f5e9; }
.analysis-history-status.is-failed { color: #b42318; background: #fde8e8; }
.analysis-history-status.is-warning { color: #946200; background: #fff4d6; }
.analysis-history-module { margin: 9px 0 0; color: #777; font-size: 9px; }
.analysis-history-meta, .analysis-history-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 7px; margin-top: 9px; }
.analysis-history-metric { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.analysis-history-metric strong { color: #444; font-size: 10px; overflow-wrap: anywhere; }
.analysis-history-metric span { color: #888; font-size: 8px; }
.analysis-history-prompt, .analysis-history-usage { margin-top: 9px; padding-top: 8px; border-top: 1px solid #eee; color: #777; font-size: 9px; }
.analysis-history-prompt summary, .analysis-history-usage summary { color: var(--purple); font-weight: 700; cursor: pointer; }
.analysis-history-prompt p { margin: 7px 0 0; color: #555; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.analysis-history-usage-content { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.analysis-history-usage-content span { padding: 4px 7px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 10px; font-size: 8px; overflow-wrap: anywhere; }
.analysis-history-empty { margin-bottom: 14px; padding: 18px; color: #88818d; text-align: center; font-size: 10px; }
.analysis-history-back-button { margin-top: 13px; }
.purchase-history-panel { max-width: 1100px; margin: 0 auto; }
.purchase-history-load-status { min-height: 18px; margin: -12px 0 12px; color: var(--muted); font-size: 10px; }
.purchase-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.purchase-history-card { min-width: 0; padding: 14px; background: #fff; border: 1px solid #e5e1eb; border-radius: 6px; }
.purchase-history-header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.purchase-history-title-group { display: flex; min-width: 0; flex: 1 1 280px; flex-direction: column; gap: 2px; }
.purchase-history-title { color: #393440; font-size: 11px; }
.purchase-history-reference, .purchase-history-id { color: #88818d; font-size: 9px; overflow-wrap: anywhere; }
.purchase-history-status, .purchase-history-mode { padding: 4px 9px; color: #555; background: #eee; border-radius: 12px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.purchase-history-status.is-success { color: #237a43; background: #e5f5e9; }
.purchase-history-status.is-pending { color: #946200; background: #fff4d6; }
.purchase-history-status.is-failed { color: #b42318; background: #fde8e8; }
.purchase-history-status.is-cancelled { color: #666; background: #eee; }
.purchase-history-status.is-refunded { color: #3949ab; background: #e8eaf6; }
.purchase-history-status.is-review { color: #7a4d00; background: #fff0cc; }
.purchase-history-mode.is-test { color: #946200; background: #fff1d6; }
.purchase-history-mode.is-live { color: #237a43; background: #e5f5e9; }
.purchase-history-mode.is-unknown { color: #666; background: #eee; }
.purchase-history-amount { display: flex; flex-direction: column; gap: 1px; margin-top: 12px; padding: 10px 12px; background: #f7f5fa; border: 1px solid #e5e1eb; border-radius: 5px; }
.purchase-history-amount strong { color: var(--purple); font-size: 20px; }
.purchase-history-amount span { color: #777; font-size: 9px; }
.purchase-history-breakdown, .purchase-history-payment-breakdown { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 7px; margin-top: 9px; }
.purchase-history-payment-breakdown { padding-top: 9px; border-top: 1px solid #aaa; }
.purchase-history-metric { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 5px; }
.purchase-history-metric strong { color: #444; font-size: 10px; overflow-wrap: anywhere; }
.purchase-history-metric span { color: #888; font-size: 8px; }
.purchase-history-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: #77717f; font-size: 10px; }
.purchase-history-detail-pill { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 5px 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 6px; overflow-wrap: anywhere; }
.purchase-history-detail-pill span { font-weight: 400; }
.purchase-history-detail-pill strong { color: #37313d; font-weight: 700; overflow-wrap: anywhere; }
.purchase-history-payment-reference { overflow-wrap: anywhere; }
.purchase-history-empty { margin-bottom: 14px; padding: 20px; color: #888; text-align: center; font-size: 10px; }
.purchase-history-none { margin: 0; padding: 15px; color: #88818d; font-size: 10px; }
.purchase-history-back-button { margin-top: 13px; }
.credit-reservations-panel, .credits-help-panel { max-width: 1100px; margin: 0 auto; }
.credit-reservations-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; padding: 13px; background: #fff; border: 1px solid #e7e1ed; border-radius: 7px; }
.credit-reservations-filters .field { min-width: 190px; flex: 1 1 220px; }
.credit-reservations-filters input { width: 100%; min-height: 38px; padding: 8px 10px; color: #403a46; background: #fff; border: 1px solid #e3dfe7; border-radius: 5px; font-size: 10px; }
.credit-reservations-status { min-height: 18px; margin: -2px 0 12px; color: var(--muted); font-size: 10px; }
.credit-reservations-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 8px; margin-bottom: 13px; }
.credit-reservations-summary-card { display: flex; min-width: 0; flex-direction: column-reverse; gap: 4px; padding: 10px; background: #fff; border: 1px solid #e7e1ed; border-radius: 6px; }
.credit-reservations-summary-card strong { color: var(--purple); font-size: 17px; }
.credit-reservations-summary-card span { color: #827b88; font-size: 8px; }
.credit-reservations-open-balance { grid-column: 1 / -1; margin: 0; padding: 8px 10px; color: #655c6d; background: #f8f6fa; border-radius: 5px; font-size: 9px; }
.credit-reservations-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.credit-reservations-list[hidden], .credit-reservations-empty[hidden], .credit-reservations-summary[hidden] { display: none !important; }
.credit-reservation-card { min-width: 0; padding: 13px; background: #fff; border: 1px solid #e6e2e9; border-radius: 7px; }
.credit-reservation-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid #efedf1; }
.credit-reservation-title-block { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.credit-reservation-title-block strong { color: #393440; font-size: 11px; }
.credit-reservation-title-block span { color: #88818d; font-size: 8px; }
.credit-reservation-status, .credit-reservation-recovery { padding: 4px 8px; color: #6b6370; background: #efedf1; border-radius: 12px; font-size: 8px; font-weight: 700; text-transform: capitalize; }
.credit-reservation-status.is-review_required, .credit-reservation-status.is-pending_settlement { color: #8b5a00; background: #fff2d6; }
.credit-reservation-status.is-settled { color: #237a43; background: #e7f5ec; }
.credit-reservation-status.is-expired { color: #a3312b; background: #fde9e8; }
.credit-reservation-context { display: grid; grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); gap: 8px; margin-top: 10px; }
.credit-reservation-context-item { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.credit-reservation-context-item span { color: #88818d; font-size: 8px; }
.credit-reservation-context-item strong { color: #4b4551; font-size: 9px; overflow-wrap: anywhere; }
.credit-reservation-context-item:nth-child(3) strong { font-family: Consolas,Monaco,monospace; }
.credit-reservation-recovery { display: inline-block; margin: 10px 0 0; }
.credit-reservation-recovery.is-warning { color: #8b5a00; background: #fff2d6; }
.credit-reservation-recovery.is-danger { color: #a3312b; background: #fde9e8; }
.credit-reservation-recovery.is-success { color: #267344; background: #e7f5ec; }
.credit-reservation-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 6px; margin-top: 9px; padding: 9px; background: #f8f7fa; border-radius: 6px; }
.credit-reservation-metric { display: flex; min-width: 0; flex-direction: column-reverse; gap: 3px; padding: 6px; background: #fff; border: 1px solid #ece8ef; border-radius: 4px; }
.credit-reservation-metric strong { color: #3f3747; font-size: 9px; overflow-wrap: anywhere; }
.credit-reservation-metric span { color: #88818d; font-size: 7px; }
.credit-reservation-balance-note { margin: 7px 0 0; color: #827b88; font-size: 8px; line-height: 1.5; }
.credit-reservation-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: #77717f; font-size: 10px; line-height: 1.45; }
.credit-reservation-date-pill { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 5px 8px; background: #fbfafc; border: 1px solid #ece8ef; border-radius: 6px; overflow-wrap: anywhere; }
.credit-reservation-date-pill span { font-weight: 400; }
.credit-reservation-date-pill strong { color: #37313d; font-weight: 700; overflow-wrap: anywhere; }
.credit-reservation-admin-actions { margin-top: 11px; padding: 9px; background: #faf9fb; border: 1px solid #ece8ef; border-radius: 7px; }
.credit-reservation-admin-actions > summary { color: var(--purple); font-size: 10px; font-weight: 700; cursor: pointer; }
.credit-reservation-action-hint { margin: 8px 0; color: #77717f; font-size: 10px; line-height: 1.5; }
.credit-reservation-action-reason-label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; color: #6e6874; font-size: 10px; }
.credit-reservation-action-reason { width: 100%; min-height: 52px; resize: vertical; padding: 8px; color: var(--ink); background: #fff; border: 1px solid #ded9e4; border-radius: 5px; font: inherit; }
.credit-reservation-release-confirm { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: #6e6874; font-size: 10px; }
.credit-reservation-release-confirm input { margin: 2px 0 0; accent-color: var(--purple); }
.credit-reservation-action-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.credit-reservation-action-button { min-height: 31px; padding: 0 10px; font-size: 10px; }
.credit-reservation-action-button:disabled { opacity: .48; cursor: not-allowed; }
.credit-reservation-action-result,
.credit-reservations-action-status { margin: 8px 0 0; color: #5c5365; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.credit-reservations-action-status.is-error { color: #a3312b; }
.credit-reservation-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 9px; padding-top: 8px; color: #77707d; border-top: 1px solid #efedf1; font-size: 8px; overflow-wrap: anywhere; }
.credit-reservation-failure { margin-top: 8px; color: #8f3d38; font-size: 9px; }
.provider-attempts-panel { max-width: 1100px; margin: 0 auto; }
.provider-attempts-status, .provider-attempts-note { margin: 0 0 11px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.provider-attempts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.provider-attempts-list[hidden], .provider-attempts-empty[hidden] { display: none !important; }
.provider-attempt-card { min-width: 0; padding: 13px; background: #fff; border: 1px solid #e6e2e9; border-radius: 7px; }
.provider-attempt-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #efedf1; }
.provider-attempt-title { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.provider-attempt-title strong { color: #393440; font-size: 11px; }
.provider-attempt-title span, .provider-attempt-retry { color: #88818d; font-size: 8px; }
.provider-attempt-status { padding: 4px 8px; color: #6b6370; background: #efedf1; border-radius: 12px; font-size: 8px; font-weight: 700; text-transform: capitalize; }
.provider-attempt-status.is-succeeded { color: #237a43; background: #e7f5ec; }
.provider-attempt-status.is-failed, .provider-attempt-status.is-ambiguous { color: #a3312b; background: #fde9e8; }
.provider-attempt-status.is-started { color: #8b5a00; background: #fff2d6; }
.provider-attempt-provider { margin: 8px 0 0; color: #817989; font-size: 9px; overflow-wrap: anywhere; }
.provider-attempt-provider strong { color: var(--purple); }
.provider-attempt-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 6px; margin-top: 9px; padding: 9px; background: #f8f7fa; border-radius: 6px; }
.provider-attempt-detail { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 6px; background: #fff; border: 1px solid #ece8ef; border-radius: 4px; }
.provider-attempt-detail span { color: #88818d; font-size: 8px; }
.provider-attempt-detail strong { color: #4b4551; font-size: 9px; overflow-wrap: anywhere; }
.provider-attempt-retry { margin: 10px 0 0; }
.provider-attempt-diagnostic { margin-top: 8px; color: #8f3d38; font-size: 9px; overflow-wrap: anywhere; }
.provider-attempt-diagnostic summary { cursor: pointer; font-weight: 700; }
.provider-attempt-diagnostic p { margin: 6px 0 0; white-space: pre-wrap; }
.credit-reservation-failure summary { cursor: pointer; font-weight: 700; }
.credit-reservation-failure p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.credit-reservations-empty { padding: 18px; color: #88818d; text-align: center; font-size: 10px; }
.credit-reservations-note { margin: 10px 0 0; color: #88818d; font-size: 9px; }
.credit-reservations-back-button, .credits-help-back-button { margin-top: 14px; }
.credit-reservations-panel #credit-reservations-refresh,
.provider-attempts-panel #provider-attempts-refresh { width: auto; min-width: 88px; color: #625b68; font-size: 11px; white-space: nowrap; }
.credits-help-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.credits-help-item { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e7e1ed; border-radius: 8px; box-shadow: var(--shadow-card); }
.credits-help-item > summary { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; color: #40374b; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.credits-help-item > summary::-webkit-details-marker { display: none; }
.credits-help-item > summary:hover { background: #faf8fc; }
.credits-help-item > summary:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(121, 74, 157, .3); outline-offset: -3px; }
.credits-help-summary-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.credits-help-chevron { flex: 0 0 auto; color: #83778e; font-size: 18px; line-height: 1; transition: transform .16s ease; }
.credits-help-item[open] .credits-help-chevron { transform: rotate(180deg); }
.credits-help-icon { display: inline-grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--purple); background: #f2edf7; border: 1px solid #e8e0ef; border-radius: 8px; }
.credits-help-icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.credits-help-item p { margin: 0; padding: 0 16px 16px 55px; color: #79737e; font-size: 10px; line-height: 1.6; }
.page-footer { margin-top: 14px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: min(360px, calc(100vw - 40px)); padding: 11px 15px; color: #fff; background: #30213d; border-radius: 6px; box-shadow: 0 8px 25px rgba(34,23,45,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .main-content { padding-right: 26px; padding-left: 26px; }
  .source-card { gap: 8px; padding-right: 9px; padding-left: 9px; }
  .source-status { font-size: 7px; }
  .control-grid { grid-template-columns: minmax(155px,1.2fr) minmax(125px,1fr) minmax(135px,1fr) auto; gap: 8px; }
}
@media (max-width: 900px) {
  .sidebar { width: 205px; }
  .main-content { width: calc(100% - 205px); margin-left: 205px; padding: 28px 20px; }
  .source-grid { grid-template-columns: 1fr; gap: 7px; }
  .source-card { min-height: 58px; padding-right: 14px; padding-left: 12px; }
  .source-status { margin-left: auto; font-size: 8px; }
  .control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-credit-balance { min-width: 220px; }
  .analyze-button { width: 100%; }
  .report-grid { grid-template-columns: minmax(0,1.35fr) minmax(220px,.9fr); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .app-header { padding-right: 16px; padding-left: 16px; }
  .manage-access-credit-actions { grid-template-columns: 1fr; gap: 10px; }
  .manage-access-credit-activity { grid-template-columns: 1fr; gap: 13px; }
  .manage-access-credit-button { margin: 8px 0 0; }
  .access-page-main { min-height: calc(100vh - 58px); padding: 25px 16px; }
  .access-denied-card { border-radius: 9px; }
  .access-denied-actions { flex-direction: column; }
  .access-denied-actions .button { width: 100%; }
  .credit-allocation-list,
  .transaction-history-list,
  .analysis-history-list,
  .purchase-history-list,
  .credit-reservations-list,
  .provider-attempts-list { grid-template-columns: 1fr; }
  .preview-banner { min-height: 29px; font-size: 9px; }
  .app-header { height: 58px; padding: 0 14px; }
  .brand { min-width: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { width: 69px; max-height: 17px; }
  .brand-copy span { font-size: 9px; }
  .header-context { display: none; }
  .header-actions { gap: 8px; }
  .profile-name { display: none !important; }
  .header-actions .mobile-menu-toggle { display: inline-grid; flex: 0 0 38px; color: #625b68; }
  .overview-page-heading { align-items: stretch; flex-direction: column; }
  .overview-credit-balance { width: 100%; min-width: 0; }
  .credit-reservations-filters { align-items: stretch; flex-direction: column; }
  .credit-reservations-filters .field { min-width: 0; width: 100%; flex: 0 0 auto; gap: 4px; }
  .credit-reservations-filters .button { width: 100%; }
  .profile-name, .chevron { display: none; }
  .sidebar { position: fixed; top: calc(58px + env(safe-area-inset-top)); right: 12px; bottom: auto; left: auto; z-index: 20; display: none; width: min(290px, calc(100vw - 24px)); height: auto; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); flex: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; overflow-x: hidden; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 35px rgba(24,18,31,.18); scrollbar-width: thin; }
  .sidebar.is-open { display: flex; }
  .side-section-label { padding: 8px 10px 4px; }
  .side-divider { flex: 0 0 1px; margin: 7px 5px; }
  .side-link { width: 100%; min-width: 0; min-height: 40px; gap: 10px; padding: 0 10px; font-size: 11px; }
  .side-icon { width: 18px; font-size: 14px; }
  .side-count, .external-mark { display: inline; }
  .sidebar-foot { margin-top: 8px; }
  .app-layout { display: flex; flex-direction: column; min-height: calc(100vh - 116px); }
  .main-content { width: 100%; margin-left: 0; padding: 23px 15px 22px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; }
  .page-heading h1 { max-width: 470px; font-size: 27px; }
  .page-heading > .button { width: auto; min-width: 88px; height: 36px; flex: 0 0 auto; overflow: visible; gap: 0; padding: 0 12px; color: var(--ink) !important; font-size: 11px !important; white-space: nowrap; opacity: 1; visibility: visible; }
  .page-heading > .button svg { flex: 0 0 15px; color: #625b68; }
  .section-heading { align-items: flex-start; }
  .section-meta { padding-top: 3px; font-size: 8px; white-space: nowrap; }
  .source-grid { gap: 7px; }
  .source-card { min-height: 60px; }
  .source-copy strong { font-size: 10px; }
  .source-copy span { font-size: 8px; }
  .source-status { font-size: 7px; }
  .analysis-controls { padding: 13px 12px 11px; }
  .controls-heading { align-items: flex-start; }
  .controls-tag { margin-top: 2px; font-size: 8px; }
  .controls-heading p { max-width: 235px; font-size: 9px; }
  .control-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .field-register { grid-column: 1 / -1; }
  .column-list { grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
  .column-picker-foot { flex-direction: column; gap: 3px; }
  .column-picker-foot span:last-child { text-align: left; }
  .register-controls { grid-template-columns: 1fr; }
  .analysis-report-preferences { grid-template-columns: 1fr; }
  .date-range-controls { grid-template-columns: 1fr; }
  .date-range-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
  .register-metadata-pending { grid-column: auto; }
  .analysis-submit-row.analysis-stepper { align-items: stretch; flex-direction: column; gap: 3px; }
  .analysis-workflow-step { width: 100%; flex: 0 0 auto; }
  .analysis-workflow-step .button { width: 100%; }
  .analysis-workflow-arrow { width: 22px; height: 14px; flex-basis: 14px; align-self: center; transform: rotate(90deg); }
  .results-heading { align-items: flex-start; }
  .results-heading h2 { font-size: 17px; }
  .report-actions { gap: 3px; }
  .updated-label { max-width: 90px; font-size: 8px; }
  .kpi-grid { gap: 8px; }
  .kpi-card { min-height: 117px; padding: 11px 10px 14px; }
  .kpi-label { font-size: 9px; }
  .kpi-value { font-size: 23px; }
  .kpi-foot { flex-wrap: wrap; gap: 3px; font-size: 7px; }
  .report-grid { grid-template-columns: 1fr; }
  .trend-panel { min-height: 245px; }
  .chart-area { height: 165px; }
  .purpose-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .purpose-panel > .panel-heading { grid-column: 1 / -1; }
  .donut-wrap { min-height: 130px; }
  .legend-list { grid-template-columns: 1fr; gap: 12px; }
  .bottom-grid { gap: 9px; }
  .table-panel { padding: 13px 11px 8px; }
  .page-footer { flex-direction: column; gap: 3px; }
  .placeholder-panel { min-height: 55vh; padding: 35px 12px; }
  .report-empty { align-items: flex-start; padding: 17px 13px; }
  .empty-report-icon { width: 35px; height: 35px; }
}
@media (max-width: 390px) {
  .profile-button { padding-right: 0; }
  .header-actions { gap: 8px; }
  .source-status { max-width: 68px; overflow: hidden; text-overflow: ellipsis; }
  .controls-heading { gap: 5px; }
  .controls-tag { max-width: 92px; }
  .updated-label { max-width: 72px; }
  .theme-toggle { width: 32px; justify-content: center; padding: 0; }
  .theme-toggle-label { display: none; }
}
@media (max-width: 520px) {
  .column-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dark theme overrides; light remains the default when no preference is saved. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eeeaf3;
  --ink-soft: #d7d1df;
  --muted: #aaa2b4;
  --muted-light: #91899c;
  --line: #393442;
  --surface: #211e28;
  --canvas: #17151c;
  --purple-soft: #342a40;
  --purple-pale: #292330;
  --green-soft: #20392f;
}
html[data-theme="dark"] body { color: var(--ink); background: var(--canvas); }
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .sidebar { color: var(--ink); background: rgba(33,30,40,.97); border-color: var(--line); }
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .app-layout { background: var(--canvas); }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .mobile-menu-toggle,
html[data-theme="dark"] .select-wrap select,
html[data-theme="dark"] .credit-reservations-filters input,
html[data-theme="dark"] .analysis-context-field textarea,
html[data-theme="dark"] .date-range-controls input[type="date"],
html[data-theme="dark"] .manage-access-user-picker .field input,
html[data-theme="dark"] .text-select { color: #e2dce9; background: #292530; border-color: #494251; }
html[data-theme="dark"] .date-range-field { border-color: #393442; }
html[data-theme="dark"] .credit-reservations-filters .field { color: #d7d1df; }
html[data-theme="dark"] .credit-reservations-filters input::placeholder { color: #91899b; opacity: 1; }
html[data-theme="dark"] .date-range-field legend,
html[data-theme="dark"] .date-range-controls .field { color: #d7d1df; }
html[data-theme="dark"] .analysis-context-label { color: #d7d1df; }
html[data-theme="dark"] .analysis-preference-hint { color: #9c94a5; }
html[data-theme="dark"] .analysis-context-label span { color: #b4aabd; background: #393442; }
html[data-theme="dark"] .analysis-workflow-number { color: #d2c8dc; background: #302b38; border-color: #4b4454; }
html[data-theme="dark"] .analysis-workflow-step.is-current .analysis-workflow-number { color: #fff; background: var(--purple); border-color: var(--purple); }
html[data-theme="dark"] .analysis-workflow-step.is-complete .analysis-workflow-number { color: #fff; background: #388a62; border-color: #388a62; }
html[data-theme="dark"] .analysis-workflow-arrow { color: #aaa2b4; }
html[data-theme="dark"] .analysis-context-field textarea::placeholder,
html[data-theme="dark"] .analysis-context-hint { color: #9c94a5; }
html[data-theme="dark"] .history-pagination-status { color: #aaa2b4; }
html[data-theme="dark"] .date-range-hint { color: #9c94a5; }
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .side-link:hover { color: #d8c1ef; background: #30283a; }
html[data-theme="dark"] .brand-copy span,
html[data-theme="dark"] .context-name,
html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .side-link,
html[data-theme="dark"] .field,
html[data-theme="dark"] .column-picker-heading h3,
html[data-theme="dark"] .column-choice-copy strong,
html[data-theme="dark"] .panel-heading h3,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .controls-heading h2,
html[data-theme="dark"] .results-heading h2,
html[data-theme="dark"] .page-heading h1,
html[data-theme="dark"] .kpi-value,
html[data-theme="dark"] .help-card strong { color: #e8e2ee; }
html[data-theme="dark"] .page-heading h1,
html[data-theme="dark"] .results-heading h2 { color: #f0ebf5; }
html[data-theme="dark"] .manage-access-location-card,
html[data-theme="dark"] .manage-access-search-user,
html[data-theme="dark"] .manage-access-credit-form { color: var(--ink); background: #292530; border-color: #403a49; }
html[data-theme="dark"] .manage-access-credit-metric { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .manage-access-credit-pool { color: #e2dce9; background: #302a38; border-color: #51465d; }
html[data-theme="dark"] .manage-access-credit-form input,
html[data-theme="dark"] .manage-access-credit-form select { color: var(--ink); background: #211e27; border-color: #514a5b; }
html[data-theme="dark"] .manage-access-credit-button { color: #eadcf7; background: #3a3045; border-color: #655276; }
html[data-theme="dark"] .manage-access-credit-button:hover { color: #fff; background: #49385a; border-color: #8c70a7; }
html[data-theme="dark"] .manage-access-credit-activity-row { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .manage-access-credit-activity-id { color: #e2d7ef !important; background: #3a3045; border-color: #5d4c6e; }
html[data-theme="dark"] .manage-access-credit-activity-section > h3,
html[data-theme="dark"] .manage-access-credit-activity-row strong { color: #e2dce9; }
html[data-theme="dark"] .manage-access-location-card-heading h2,
html[data-theme="dark"] .manage-access-detail-heading h2,
html[data-theme="dark"] .manage-access-enable,
html[data-theme="dark"] .manage-access-audience legend,
html[data-theme="dark"] .manage-access-audience label,
html[data-theme="dark"] .manage-access-user-picker h3,
html[data-theme="dark"] .manage-access-user-name { color: #e2dce9; }
html[data-theme="dark"] .manage-access-selected-user { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .manage-access-search-user:hover { background: #30283a; border-color: #6b557e; }
html[data-theme="dark"] .manage-access-location-status.is-enabled { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .manage-access-location-status.is-disabled { color: #c2bbc9; background: #393442; }
html[data-theme="dark"] .page-description,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .controls-heading p,
html[data-theme="dark"] .column-picker-heading p,
html[data-theme="dark"] .column-help,
html[data-theme="dark"] .column-picker-foot,
html[data-theme="dark"] .controls-note,
html[data-theme="dark"] .source-copy span,
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .kpi-foot,
html[data-theme="dark"] .report-empty p,
html[data-theme="dark"] .register-description { color: #aaa2b4; }
html[data-theme="dark"] .analysis-controls,
html[data-theme="dark"] .register-controls,
html[data-theme="dark"] .column-picker,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .source-card,
html[data-theme="dark"] .report-empty { color: var(--ink); background: #211e28; border-color: #393442; }
html[data-theme="dark"] .analysis-controls { background: linear-gradient(110deg,#211e28 0%,#25202d 100%); }
html[data-theme="dark"] .register-controls { background: #211e28; border-color: #393442; }
html[data-theme="dark"] .visitor-adapter-note { color: #d0c4dc; background: #302a38; border-color: #4b4057; }
html[data-theme="dark"] .column-choice { background: #27232e; border-color: #413b49; }
html[data-theme="dark"] .column-choice:hover,
html[data-theme="dark"] .source-card:hover { background: #302a38; border-color: #69527e; }
html[data-theme="dark"] .source-card.is-selected { background: #2d2637; border-color: #9074ad; }
html[data-theme="dark"] .column-metadata-note,
html[data-theme="dark"] .help-card,
html[data-theme="dark"] .adapter-empty-state { color: #bdb4c8; background: #292530; border-color: #403a49; }
html[data-theme="dark"] .column-metadata-state { color: #d6b875; }
html[data-theme="dark"] .selection-count,
html[data-theme="dark"] .column-select-all,
html[data-theme="dark"] .controls-tag { color: #ddc8f1; background: #352a42; border-color: #514060; }
html[data-theme="dark"] .column-select-all:hover:not(:disabled) { background: #43334f; }
html[data-theme="dark"] .column-select-all:disabled { color: #847b8d; }
html[data-theme="dark"] .column-type { color: #d0b8e6; background: #3a3044; }
html[data-theme="dark"] .column-currency { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .column-picker-foot { border-color: #403a49; }
html[data-theme="dark"] .column-picker-foot span:last-child { color: #d6c2e9; }
html[data-theme="dark"] .analysis-submit-status { color: #9ad0aa; }
html[data-theme="dark"] .analysis-submit-status.is-error { color: #f08c95; }
html[data-theme="dark"] .analysis-submit-status.is-success { color: #9ad0aa; }
html[data-theme="dark"] .analysis-ai-credit-note { color: #a59cab; }
html[data-theme="dark"] .ai-plan-result { color: #d4cedc; background: #292530; border-color: #494251; }
html[data-theme="dark"] .analysis-pdf-download { background: #342b3d; border-color: #51435f; }
html[data-theme="dark"] .analysis-record-limit-note,
html[data-theme="dark"] .ai-analysis-record-limit { color: #d5c8e0; background: #342b3d; border-color: #51435f; }
html[data-theme="dark"] .ai-report-metadata-item { color: #d5c8e0; background: #342b3d; border-color: #51435f; }
html[data-theme="dark"] .ai-report-metadata-item strong { color: #f0eaf5; }
html[data-theme="dark"] .analysis-record-limit-note { border-left-color: #9d79bf; }
html[data-theme="dark"] .analysis-record-limit-note strong { color: #ddc4f4; }
html[data-theme="dark"] .ai-report-chart-card { background: #211e28; border-color: #494251; }
html[data-theme="dark"] .ai-report-chart-card h5 { color: #e5deec; }
html[data-theme="dark"] .ai-report-chart-description { color: #bbb3c4; }
html[data-theme="dark"] .ai-report-chart-data > summary { color: #e0c9f5; }
html[data-theme="dark"] .ai-plan-result > h3 { color: #f0eaf5; }
html[data-theme="dark"] .ai-plan-result > h4,
html[data-theme="dark"] .ai-plan-section h4 { color: #d5bce9; }
html[data-theme="dark"] .ai-plan-result .ai-plan-subtitle,
html[data-theme="dark"] .ai-plan-result .ai-plan-summary,
html[data-theme="dark"] .ai-plan-period,
html[data-theme="dark"] .ai-plan-result ul { color: #bbb3c4; }
html[data-theme="dark"] .ai-plan-metric { background: #211e28; border-color: #494251; }
html[data-theme="dark"] .ai-plan-metric > span { color: #bbb3c4; }
html[data-theme="dark"] .ai-plan-metric > strong { color: #e5deec; }
html[data-theme="dark"] .ai-plan-metric > p,
html[data-theme="dark"] .ai-data-table td { color: #bbb3c4; }
html[data-theme="dark"] .ai-data-table th { color: #e5deec; background: #36303f; }
html[data-theme="dark"] .ai-data-table th,
html[data-theme="dark"] .ai-data-table td { border-color: #494251; }
html[data-theme="dark"] .ai-plan-section { border-color: #494251; }
html[data-theme="dark"] .ai-plan-recommendation { background: #211e28; border-color: #494251; }
html[data-theme="dark"] .ai-plan-recommendation strong { color: #e5deec; }
html[data-theme="dark"] .ai-plan-recommendation p { color: #bbb3c4; }
html[data-theme="dark"] .ai-plan-priority { color: #e0c9f5; background: #3a3044; }
html[data-theme="dark"] .wallet-summary-panel .panel-heading h2,
html[data-theme="dark"] .wallet-allocation-panel .panel-heading h2,
html[data-theme="dark"] .wallet-allocation-type,
html[data-theme="dark"] .wallet-metric-card strong { color: #e8e2ee; }
html[data-theme="dark"] .wallet-status-badge { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .wallet-status-badge.is-active { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .wallet-status-badge.is-inactive,
html[data-theme="dark"] .wallet-status-badge.is-suspended { color: #f08c95; background: #482a32; }
html[data-theme="dark"] .wallet-available-card,
html[data-theme="dark"] .wallet-metric-card { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .wallet-available-card strong,
html[data-theme="dark"] .wallet-allocation-remaining { color: #d5bce9; }
html[data-theme="dark"] .wallet-allocation { border-color: #403a49; }
html[data-theme="dark"] .wallet-allocation-expiry.is-no-expiry { color: #a4dbbd; }
html[data-theme="dark"] .wallet-allocation-expiry { color: #e4bd74; }
html[data-theme="dark"] .wallet-overview-status,
html[data-theme="dark"] .wallet-summary-panel .panel-heading p,
html[data-theme="dark"] .wallet-allocation-panel .panel-heading p,
html[data-theme="dark"] .wallet-available-card span,
html[data-theme="dark"] .wallet-available-card small,
html[data-theme="dark"] .wallet-metric-card span,
html[data-theme="dark"] .wallet-allocation-details,
html[data-theme="dark"] .wallet-no-allocations { color: #aaa2b4; }
html[data-theme="dark"] .wallet-overview-empty { color: #c4bdcc; }
html[data-theme="dark"] .credit-allocation-load-status { color: #aaa2b4; }
html[data-theme="dark"] .credit-allocation-summary-panel .panel-heading h2,
html[data-theme="dark"] .credit-allocation-list-panel .panel-heading h2,
html[data-theme="dark"] .credit-allocation-type,
html[data-theme="dark"] .credit-allocation-breakdown-item strong { color: #e8e2ee; }
html[data-theme="dark"] .credit-allocation-summary-panel .panel-heading p,
html[data-theme="dark"] .credit-allocation-list-panel .panel-heading p,
html[data-theme="dark"] .credit-allocation-reference,
html[data-theme="dark"] .credit-allocation-summary-item span,
html[data-theme="dark"] .credit-allocation-balance-label,
html[data-theme="dark"] .credit-allocation-breakdown-item span,
html[data-theme="dark"] .credit-allocation-dates { color: #aaa2b4; }
html[data-theme="dark"] .credit-allocation-summary-item,
html[data-theme="dark"] .credit-allocation-card,
html[data-theme="dark"] .credit-allocation-breakdown-item { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .credit-allocation-summary-item strong,
html[data-theme="dark"] .credit-allocation-balance { color: #d5bce9; }
html[data-theme="dark"] .credit-allocation-status { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .credit-allocation-status.is-active { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .credit-allocation-status.is-expired,
html[data-theme="dark"] .credit-allocation-dates .is-expired { color: #f08c95; }
html[data-theme="dark"] .credit-allocation-status.is-warning,
html[data-theme="dark"] .credit-allocation-dates .is-warning { color: #e4bd74; }
html[data-theme="dark"] .credit-allocation-dates .is-no-expiry { color: #a4dbbd; }
html[data-theme="dark"] .credit-allocation-none,
html[data-theme="dark"] .credit-allocation-empty { color: #c4bdcc; }
html[data-theme="dark"] .transaction-history-load-status,
html[data-theme="dark"] .transaction-history-id,
html[data-theme="dark"] .transaction-history-date,
html[data-theme="dark"] .transaction-history-details,
html[data-theme="dark"] .transaction-history-movement span { color: #aaa2b4; }
html[data-theme="dark"] .transaction-history-card,
html[data-theme="dark"] .transaction-history-movement,
html[data-theme="dark"] .transaction-history-detail-pill { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .transaction-history-title,
html[data-theme="dark"] .transaction-history-details .transaction-history-description,
html[data-theme="dark"] .transaction-history-detail-pill strong { color: #e8e2ee; }
html[data-theme="dark"] .transaction-history-type { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .transaction-history-type.is-credit,
html[data-theme="dark"] .transaction-history-type.is-refund { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .transaction-history-type.is-reserve { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .transaction-history-type.is-release { color: #9ac9e5; background: #203947; }
html[data-theme="dark"] .transaction-history-type.is-usage,
html[data-theme="dark"] .transaction-history-type.is-expiry,
html[data-theme="dark"] .transaction-history-movement strong.is-negative { color: #f08c95; }
html[data-theme="dark"] .transaction-history-amount { color: #d5bce9; }
html[data-theme="dark"] .transaction-history-movement strong { color: #c4bdcc; }
html[data-theme="dark"] .transaction-history-movement strong.is-positive { color: #a4dbbd; }
html[data-theme="dark"] .transaction-history-empty,
html[data-theme="dark"] .transaction-history-none { color: #c4bdcc; }
html[data-theme="dark"] .analysis-history-load-status,
html[data-theme="dark"] .analysis-history-date,
html[data-theme="dark"] .analysis-history-module,
html[data-theme="dark"] .analysis-history-prompt,
html[data-theme="dark"] .analysis-history-usage { color: #aaa2b4; }
html[data-theme="dark"] .analysis-history-card,
html[data-theme="dark"] .analysis-history-metric,
html[data-theme="dark"] .analysis-history-usage-content span { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .analysis-history-title,
html[data-theme="dark"] .analysis-history-metric strong,
html[data-theme="dark"] .analysis-history-prompt p { color: #e8e2ee; }
html[data-theme="dark"] .analysis-history-metric span { color: #aaa2b4; }
html[data-theme="dark"] .analysis-history-status { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .analysis-history-status.is-success { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .analysis-history-status.is-failed { color: #f08c95; background: #482a32; }
html[data-theme="dark"] .analysis-history-status.is-warning { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .analysis-history-prompt,
html[data-theme="dark"] .analysis-history-usage { border-color: #403a49; }
html[data-theme="dark"] .analysis-history-empty { color: #c4bdcc; }
html[data-theme="dark"] .overview-credit-balance,
html[data-theme="dark"] .buy-credit-package-card,
html[data-theme="dark"] .buy-credits-empty,
html[data-theme="dark"] .buy-credits-permission,
html[data-theme="dark"] .credit-reservations-filters,
html[data-theme="dark"] .credit-reservations-summary-card,
html[data-theme="dark"] .credit-reservation-card,
html[data-theme="dark"] .credit-reservation-metric,
html[data-theme="dark"] .provider-attempt-detail,
html[data-theme="dark"] .provider-attempt-card { background: #211e27; border-color: #403a49; }
html[data-theme="dark"] .credits-help-item { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .credits-help-item > summary { color: #e8e2ee; }
html[data-theme="dark"] .credits-help-item > summary:hover { background: #332e3b; }
html[data-theme="dark"] .credits-help-chevron { color: #c4b3d3; }
html[data-theme="dark"] .credit-reservation-date-pill { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .credit-reservation-date-pill strong { color: #e8e2ee; }
html[data-theme="dark"] .credit-reservation-admin-actions { background: #211e28; border-color: #403a49; }
html[data-theme="dark"] .credit-reservation-admin-actions > summary { color: #d8bced; }
html[data-theme="dark"] .credit-reservation-action-hint,
html[data-theme="dark"] .credit-reservation-action-reason-label,
html[data-theme="dark"] .credit-reservation-release-confirm,
html[data-theme="dark"] .credit-reservation-action-result,
html[data-theme="dark"] .credit-reservations-action-status { color: #c4bdcc; }
html[data-theme="dark"] .credit-reservation-action-reason { color: #e8e2ee; background: #292530; border-color: #514a5d; }
html[data-theme="dark"] .credit-reservations-action-status.is-error { color: #f08c95; }
html[data-theme="dark"] .overview-credit-label,
html[data-theme="dark"] .overview-credit-status,
html[data-theme="dark"] .buy-credits-status,
html[data-theme="dark"] .buy-credit-package-description,
html[data-theme="dark"] .buy-credit-package-details dt,
html[data-theme="dark"] .credit-reservations-status,
html[data-theme="dark"] .credit-reservations-summary-card span,
html[data-theme="dark"] .credit-reservation-title-block span,
html[data-theme="dark"] .credit-reservation-context-item span,
html[data-theme="dark"] .credit-reservation-metric span,
html[data-theme="dark"] .credit-reservation-balance-note,
html[data-theme="dark"] .credit-reservation-dates,
html[data-theme="dark"] .credit-reservation-footer,
html[data-theme="dark"] .credit-reservations-note,
html[data-theme="dark"] .provider-attempts-status,
html[data-theme="dark"] .provider-attempts-note,
html[data-theme="dark"] .provider-attempt-title span,
html[data-theme="dark"] .provider-attempt-retry,
html[data-theme="dark"] .provider-attempt-provider,
html[data-theme="dark"] .provider-attempt-detail span,
html[data-theme="dark"] .credits-help-item p { color: #aaa2b4; }
html[data-theme="dark"] .overview-credit-balance strong,
html[data-theme="dark"] .buy-credit-package-name,
html[data-theme="dark"] .buy-credit-package-details dd,
html[data-theme="dark"] .buy-credit-package-details .buy-credit-package-total-label,
html[data-theme="dark"] .buy-credit-package-details .buy-credit-package-total,
html[data-theme="dark"] .credit-reservations-summary-card strong { color: #d5bce9; }
html[data-theme="dark"] .buy-credit-package-credits strong { color: #d5bce9; }
html[data-theme="dark"] .buy-credit-package-bonus-pill { color: #b4e8c4; background: #244333; border-color: #356448; }
html[data-theme="dark"] .buy-credit-package-visibility-pill { color: #d3c2e0; background: #393140; border-color: #574961; }
html[data-theme="dark"] .buy-credit-package-details { border-color: #403a49; }
html[data-theme="dark"] .buy-credit-package-details .buy-credit-package-total-label,
html[data-theme="dark"] .buy-credit-package-details .buy-credit-package-total { border-color: #403a49; }
html[data-theme="dark"] .buy-credits-status.is-error { color: #f08c95; }
html[data-theme="dark"] .buy-credits-status.is-success { color: #9ad0aa; }
html[data-theme="dark"] .credit-reservations-open-balance,
html[data-theme="dark"] .credit-reservation-metrics,
html[data-theme="dark"] .provider-attempt-details { color: #c4bdcc; background: #211e28; }
html[data-theme="dark"] .credit-reservation-title-block strong,
html[data-theme="dark"] .credit-reservation-context-item strong,
html[data-theme="dark"] .credit-reservation-metric strong,
html[data-theme="dark"] .provider-attempt-title strong,
html[data-theme="dark"] .provider-attempt-detail strong { color: #d8bced; }
html[data-theme="dark"] .credits-help-icon { color: #d8bced; background: #352a42; border-color: #514060; }
html[data-theme="dark"] .credit-reservation-header,
html[data-theme="dark"] .credit-reservation-footer { border-color: #403a49; }
html[data-theme="dark"] .credit-reservation-status { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .credit-reservation-status.is-review_required,
html[data-theme="dark"] .credit-reservation-status.is-pending_settlement,
html[data-theme="dark"] .credit-reservation-recovery.is-warning { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .credit-reservation-status.is-settled,
html[data-theme="dark"] .credit-reservation-recovery.is-success { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .credit-reservation-status.is-expired,
html[data-theme="dark"] .credit-reservation-recovery.is-danger { color: #f08c95; background: #482a32; }
html[data-theme="dark"] .credit-reservation-failure { color: #f08c95; }
html[data-theme="dark"] .provider-attempt-header { border-color: #403a49; }
html[data-theme="dark"] details > summary { display: list-item; width: fit-content; max-width: 100%; padding: 4px 8px; color: #e1c9f5; background: #352a42; border-radius: 5px; cursor: pointer; }
html[data-theme="dark"] details > summary:hover { color: #f4eafd; background: #43334f; }
html[data-theme="dark"] details > summary:focus-visible { outline: 2px solid #c7a7e6; outline-offset: 2px; }
html[data-theme="dark"] details > summary::marker { color: #d5bce9; }
html[data-theme="dark"] details.credits-help-item > summary { background: transparent; }
html[data-theme="dark"] details.credits-help-item > summary:hover { background: #332e3b; }
html[data-theme="dark"] .provider-attempt-status { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .provider-attempt-status.is-succeeded { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .provider-attempt-status.is-failed,
html[data-theme="dark"] .provider-attempt-status.is-ambiguous,
html[data-theme="dark"] .provider-attempt-diagnostic { color: #f08c95; }
html[data-theme="dark"] .provider-attempt-status.is-started { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .provider-attempts-empty { color: #c4bdcc; }
html[data-theme="dark"] .credit-reservations-empty { color: #c4bdcc; }
html[data-theme="dark"] .purchase-history-load-status,
html[data-theme="dark"] .purchase-history-reference,
html[data-theme="dark"] .purchase-history-id,
html[data-theme="dark"] .purchase-history-meta { color: #aaa2b4; }
html[data-theme="dark"] .purchase-history-card,
html[data-theme="dark"] .purchase-history-metric { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .purchase-history-detail-pill { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .purchase-history-detail-pill strong { color: #e8e2ee; }
html[data-theme="dark"] .purchase-history-title,
html[data-theme="dark"] .purchase-history-metric strong { color: #e8e2ee; }
html[data-theme="dark"] .purchase-history-status,
html[data-theme="dark"] .purchase-history-mode { color: #d4cedc; background: #393442; }
html[data-theme="dark"] .purchase-history-status.is-success,
html[data-theme="dark"] .purchase-history-mode.is-live { color: #a4dbbd; background: #244333; }
html[data-theme="dark"] .purchase-history-status.is-pending,
html[data-theme="dark"] .purchase-history-mode.is-test { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .purchase-history-status.is-failed { color: #f08c95; background: #482a32; }
html[data-theme="dark"] .purchase-history-status.is-refunded { color: #bcc1f5; background: #302f4d; }
html[data-theme="dark"] .purchase-history-status.is-review { color: #e4bd74; background: #463821; }
html[data-theme="dark"] .purchase-history-amount { background: #292530; border-color: #403a49; }
html[data-theme="dark"] .purchase-history-amount strong { color: #d5bce9; }
html[data-theme="dark"] .purchase-history-amount span,
html[data-theme="dark"] .purchase-history-metric span { color: #aaa2b4; }
html[data-theme="dark"] .purchase-history-empty,
html[data-theme="dark"] .purchase-history-none { color: #c4bdcc; }
html[data-theme="dark"] .side-link.is-active { color: #e0c9f5; background: #392e47; }
html[data-theme="dark"] .side-link-analyze:not(.is-active) { color: #fff; background: #513279; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
html[data-theme="dark"] .side-link-analyze:not(.is-active):hover { color: #fff; background: #392157; }
html[data-theme="dark"] .side-divider,
html[data-theme="dark"] .sidebar-foot { border-color: #393442; }
html[data-theme="dark"] .side-divider { background: #393442; }
html[data-theme="dark"] .selection-count { color: #dfc9f3; }
html[data-theme="dark"] .table-panel th { color: #b3aabb; background: #292530; border-color: #403a49; }
html[data-theme="dark"] .table-panel td { color: #c4bdcc; border-color: #393442; }
html[data-theme="dark"] .table-panel tbody tr:hover { background: #292530; }
html[data-theme="dark"] .gridline { stroke: #393442; }
html[data-theme="dark"] .chart-point { fill: #211e28; }
html[data-theme="dark"] .button-secondary:hover { color: #e0c9f5; border-color: #70598a; }
html[data-theme="dark"] .avatar { color: #e0c9f5; background: #392e47; }

/* Readable compact text: keep supporting information legible on phones. */
.context-label,
.side-section-label,
.help-card div span,
.sidebar-foot,
.overview-credit-label,
.overview-credit-status,
.eyebrow,
.source-copy span,
.column-picker-heading p,
.column-metadata-note,
.column-metadata-state,
.column-choice-copy code,
.column-help,
.column-picker-foot,
.controls-note,
.updated-label,
.kpi-foot,
.panel-heading p,
.text-select,
.y-labels,
.x-labels,
.chart-legend,
.donut-center span,
.legend-list > div,
.legend-list strong,
.panel-link,
th,
td,
.share-value,
.insight-heading,
.insight-card p,
.insight-source,
.insight-link,
.page-footer,
.date-required-indicator,
.date-range-hint,
.analysis-context-label span,
.analysis-context-hint,
.analysis-submit-status,
.analysis-ai-credit-note,
.ai-plan-period,
.ai-plan-metric > span,
.ai-data-table,
.ai-report-chart-data,
.ai-plan-priority,
.ai-plan-result ul,
.register-metadata-pending,
.buy-credit-package-credits span,
.buy-credit-package-details dt,
.buy-credit-package-details dd,
.buy-credit-package-description,
.buy-credits-status,
.wallet-summary-panel .panel-heading p,
.wallet-allocation-panel .panel-heading p,
.wallet-status-badge,
.wallet-available-card small,
.wallet-metric-card span,
.wallet-allocation-details,
.wallet-allocation-expiry,
.credit-allocation-summary-panel .panel-heading p,
.credit-allocation-list-panel .panel-heading p,
.credit-allocation-summary-item span,
.credit-allocation-reference,
.credit-allocation-status,
.credit-allocation-balance-label,
.credit-allocation-breakdown-item span,
.credit-allocation-dates,
.transaction-history-id,
.transaction-history-date,
.transaction-history-type,
.transaction-history-amount-label,
.transaction-history-movement span,
.transaction-history-details,
.history-pagination-status,
.analysis-history-date,
.analysis-history-status,
.analysis-history-module,
.analysis-history-metric span,
.analysis-history-prompt,
.analysis-history-usage,
.analysis-history-usage-content span,
.purchase-history-reference,
.purchase-history-id,
.purchase-history-status,
.purchase-history-mode,
.purchase-history-amount span,
.purchase-history-metric span,
.purchase-history-meta,
.credit-reservations-summary-card span,
.credit-reservations-open-balance,
.credit-reservation-title-block span,
.credit-reservation-status,
.credit-reservation-recovery,
.credit-reservation-context-item span,
.credit-reservation-context-item strong,
.credit-reservation-metric strong,
.credit-reservation-metric span,
.credit-reservation-balance-note,
.credit-reservation-dates,
.credit-reservation-footer,
.provider-attempts-empty,
.provider-attempts-status,
.provider-attempts-note,
.provider-attempt-title span,
.provider-attempt-retry,
.provider-attempt-provider,
.provider-attempt-detail span,
.credit-reservations-status,
.credit-reservations-note,
.credit-reservation-failure,
.brand-copy span,
.provider-attempt-status,
.provider-attempt-diagnostic,
.provider-attempt-detail,
.provider-attempt-meta,
.source-status,
.controls-tag,
.column-select-all,
.selection-count,
.column-type,
.column-currency,
.analysis-history-usage-content span,
.credit-reservations-open-balance,
.preview-banner,
.section-meta,
.controls-heading p,
.kpi-label,
.analysis-history-load-status,
.transaction-history-load-status,
.credit-reservations-load-status,
.provider-attempts-load-status,
.purchase-history-load-status {
  font-size: 12px;
}

/* Compact chips and chart labels use a smaller, but still readable, floor. */
.source-status,
.controls-tag,
.column-select-all,
.selection-count,
.column-type,
.column-currency,
.analysis-workflow-number,
.ai-plan-priority,
.wallet-status-badge,
.credit-allocation-status,
.transaction-history-type,
.analysis-history-status,
.purchase-history-status,
.purchase-history-mode,
.credit-reservation-status,
.credit-reservation-recovery,
.y-labels,
.x-labels,
.chart-legend,
.legend-list > div,
.table-panel th {
  font-size: 11px;
}

.column-metadata-note,
.column-help,
.column-picker-foot,
.controls-note,
.updated-label,
.kpi-foot,
.date-range-hint,
.analysis-context-hint,
.analysis-ai-credit-note,
.transaction-history-details,
.credit-reservation-balance-note,
.credit-reservation-dates,
.credit-reservation-footer,
.purchase-history-meta,
.page-footer,
.insight-card p {
  line-height: 1.55;
}

.credits-help-item > summary { font-size: 13px; }
.credits-help-item p { color: #655d69; font-size: 12px; line-height: 1.65; }

html[data-theme="dark"] .source-copy strong { color: #f0ebf5; }

html[data-theme="dark"] .column-metadata-note,
html[data-theme="dark"] .column-metadata-state,
html[data-theme="dark"] .column-picker-foot,
html[data-theme="dark"] .controls-note,
html[data-theme="dark"] .updated-label,
html[data-theme="dark"] .kpi-foot,
html[data-theme="dark"] .panel-heading p,
html[data-theme="dark"] .date-range-hint,
html[data-theme="dark"] .analysis-context-hint,
html[data-theme="dark"] .analysis-ai-credit-note,
html[data-theme="dark"] .transaction-history-details,
html[data-theme="dark"] .credit-reservation-balance-note,
html[data-theme="dark"] .credit-reservation-dates,
html[data-theme="dark"] .credit-reservation-footer,
html[data-theme="dark"] .purchase-history-meta,
html[data-theme="dark"] .page-footer,
html[data-theme="dark"] .insight-source {
  color: #b8b1c1;
}
html[data-theme="dark"] .credits-help-item p { color: #c4bdcc; }

html:not([data-theme="dark"]) .source-copy span,
html:not([data-theme="dark"]) .column-picker-heading p,
html:not([data-theme="dark"]) .column-metadata-note,
html:not([data-theme="dark"]) .column-help,
html:not([data-theme="dark"]) .column-picker-foot,
html:not([data-theme="dark"]) .controls-note,
html:not([data-theme="dark"]) .updated-label,
html:not([data-theme="dark"]) .kpi-foot,
html:not([data-theme="dark"]) .panel-heading p,
html:not([data-theme="dark"]) .date-range-hint,
html:not([data-theme="dark"]) .analysis-context-hint,
html:not([data-theme="dark"]) .analysis-ai-credit-note,
html:not([data-theme="dark"]) .transaction-history-details,
html:not([data-theme="dark"]) .credit-reservation-balance-note,
html:not([data-theme="dark"]) .credit-reservation-dates,
html:not([data-theme="dark"]) .credit-reservation-footer,
html:not([data-theme="dark"]) .purchase-history-meta,
html:not([data-theme="dark"]) .page-footer,
html:not([data-theme="dark"]) .insight-source {
  color: #655d69;
}

@media (max-width: 700px) {
  .source-status,
  .controls-tag,
  .updated-label { font-size: 11px; }
  .column-metadata-note,
  .column-help,
  .date-range-hint,
  .analysis-context-hint,
  .transaction-history-details,
  .credit-reservation-dates,
  .credit-reservation-footer { line-height: 1.6; }
}
