:root {
  color-scheme: dark;
  --bg: #0c1117;
  --panel: #141b24;
  --line: #273241;
  --text: #eef3f8;
  --muted: #91a0b3;
  --accent: #51d19a;
  --warning: #f2b84b;
  --critical: #ff6b6b;
  --unknown: #8796a8;
  --idle: #63b6e8;
  --dev: #58a6ff;
  --stage: #e3a65c;
  --preprod: #b48cff;
  --prod: #51d19a;
  --shared: #f2b84b;
}

.health-sources { display: grid; gap: 16px; margin-top: 18px; }
.health-card { background: #0d141e; border: 1px solid #29384a; border-radius: 12px; padding: 18px; }
.health-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.health-heading h3 { margin: 0 0 4px; }
.health-metrics { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 14px; }
.health-request-traffic { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #101b28; }
.health-traffic-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.health-traffic-summary > * { min-width: 0; padding: 10px; border-radius: 8px; background: #172537; }
.health-traffic-endpoints { display: grid; gap: 6px; }
.health-traffic-endpoint { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(4, minmax(90px, 1fr)); gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.health-traffic-endpoint span { color: var(--muted); }
@media (max-width: 850px) { .health-traffic-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .health-traffic-endpoint { grid-template-columns: repeat(2, minmax(0, 1fr)); } .health-traffic-endpoint strong { grid-column: 1 / -1; } }
.health-timeline { display: flex; align-items: stretch; gap: 2px; height: 10px; margin: 14px 0 7px; overflow: hidden; }
.health-tick { flex: 1; min-width: 2px; border-radius: 2px; background: #637489; }
.health-tick:hover { filter: brightness(1.35); outline: 1px solid var(--text); outline-offset: 1px; }
.health-timeline button.health-tick { appearance: none; border: 0; padding: 0; cursor: pointer; }
.health-timeline button.health-tick.selected, .health-timeline button.health-tick:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.health-history-detail { margin: 0 0 9px; padding: 9px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: #101c27; white-space: pre-line; font-size: 12px; }
.health-history-detail.warning { border-left-color: var(--warning); }
.health-history-detail.critical { border-left-color: var(--critical); }
.health-history-detail.unknown { border-left-color: var(--unknown); }
.health-tick.ok { background: #3ccf9d; }
.health-tick.warning { background: #f7bf4e; }
.health-tick.critical { background: #f16c72; }
.health-tick.unknown { background: #637489; }
.health-tick.missing { background: #394655; }
.health-tick.idle { background: var(--idle); }
.health-controls { display: flex; align-items: end; gap: 18px; margin-top: 18px; }
.health-controls > label:first-child { width: min(360px, 100%); }
.health-controls input[type="search"] { display: block; width: 100%; margin-top: 5px; }
.health-problems-filter { display: flex; align-items: center; gap: 8px; min-height: 42px; white-space: nowrap; }
.health-problems-filter input { flex: none; }
.health-sources { gap: 12px; margin-top: 12px; }
.health-app-group { border: 1px solid var(--line); border-radius: 10px; background: #0e151e; overflow: hidden; }
.health-app-group.critical { border-color: #59413e; }
.health-app-group.warning { border-color: #6c5a31; }
.health-app-summary { display: flex; align-items: center; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.health-app-summary strong { font-size: 16px; }
.health-app-count { color: var(--muted); font-size: 12px; }
.health-app-status { margin-left: auto; font-size: 12px; font-weight: 700; }
.health-app-status.ok { color: var(--accent); }
.health-app-status.critical { color: var(--critical); }
.health-app-status.warning { color: var(--warning); }
.health-app-status.unknown { color: var(--unknown); }
.health-env-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 9px; padding: 12px; }
.health-env-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; min-height: 104px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--unknown); border-radius: 8px; background: #111b26; color: var(--text); text-align: left; font-weight: 400; }
.health-env-choice:hover, .health-env-choice.selected { background: #172534; border-color: #607993; }
.health-env-choice.selected { box-shadow: inset 0 0 0 1px #607993; }
.health-env-choice.ok { border-left-color: var(--accent); }
.health-env-choice.warning { border-left-color: var(--warning); }
.health-env-choice.critical { border-left-color: var(--critical); }
.health-source-name { display: grid; gap: 1px; min-width: 0; }
.health-source-name strong { font-size: 14px; }
.health-source-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-source-state { grid-column: 1 / -1; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-source-state.ok { color: var(--accent); }
.health-source-state.warning { color: var(--warning); }
.health-source-state.critical { color: var(--critical); }
.health-source-state.unknown { color: var(--unknown); }
.health-mini-wrap { display: grid; grid-column: 1; gap: 4px; min-width: 0; }
.health-mini-label { color: var(--muted); font-size: 10px; }
.health-mini-timeline { display: flex; height: 8px; align-items: stretch; gap: 2px; }
.health-source-age { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.health-env-action { grid-column: 2; grid-row: 3; color: #add2ee; font-size: 11px; text-align: right; white-space: nowrap; }
.health-past-problems { grid-column: 1 / -1; color: var(--warning); font-size: 11px; }
.health-details-host { border-top: 1px solid var(--line); }
.health-source-detail { background: #101923; padding: 8px 16px 14px; }
.health-source-detail .health-timeline { margin-top: 14px; }
.health-detail-title { margin: 10px 0 7px; color: var(--critical); font-size: 13px; }
.health-issues { display: grid; gap: 6px; }
.health-issue { display: flex; gap: 8px 16px; flex-wrap: wrap; padding: 8px 10px; border-left: 3px solid var(--critical); background: #2a1c23; border-radius: 5px; font-size: 13px; }
.health-issue.warning { border-left-color: var(--warning); background: #2a261c; }
.health-issue strong { min-width: 150px; }
.health-diagnostic { margin-top: 14px; padding: 9px 11px; border: 1px solid #31465d; border-radius: 7px; background: #142232; }
.health-diagnostic .health-detail-title { margin: 0 0 5px; color: #bedcf1; }
.health-diagnostic .breakdown-note { margin: 0 0 8px; }
.health-diagnostic-result { font-size: 12px; padding: 6px 8px; border-left: 3px solid #57cc9e; background: #13251f; border-radius: 4px; }
.health-diagnostic-result.warning { border-left-color: var(--warning); background: #29251c; }
.health-diagnostic-result.critical { border-left-color: var(--critical); background: #2a1c23; }
.health-diagnostic-result.unknown { border-left-color: var(--unknown); background: #1b2631; }
.health-good-checks { display: grid; gap: 12px; margin-top: 12px; }
.health-check-category h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.health-good-list { display: flex; flex-wrap: wrap; gap: 6px; }
.health-check-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #315545; border-radius: 6px; padding: 5px 8px; background: #13241e; color: #d2f3e5; font-size: 12px; }
.health-check-chip.idle { border-color: #315773; background: #132535; color: #c9eafb; }
.health-check-chip.unknown { border-color: #44515e; background: #1b2631; color: #c6d0db; }
.health-check-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.health-check-chip.idle .health-check-dot { background: var(--idle); }
.health-check-chip.unknown .health-check-dot { background: var(--unknown); }
.health-check-note { margin-left: 3px; color: var(--unknown); font-size: 11px; }
.health-check-chip.idle .health-check-note { color: var(--idle); }
.health-status-explanation { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.health-series-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin: 20px 0 8px; }
.health-series-heading h4 { margin: 0; font-size: 14px; }
.health-series-heading small { color: var(--muted); }
.health-series-coverage { flex-basis: 100%; }
.health-series-rows { display: grid; gap: 4px; }
.health-series-row { display: grid; grid-template-columns: minmax(180px, 260px) minmax(100px, 1fr) 72px; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid #263447; border-radius: 5px; background: #0d1721; }
.health-series-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.health-series-title { display: grid; min-width: 0; }
.health-series-title small { color: var(--muted); font-size: 10px; }
.health-series-row.archived { opacity: .85; }
.health-series-archive { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.health-series-archive summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 12px; }
.health-series-archive > p { margin: 7px 0; }
.health-series-strip { display: flex; gap: 2px; height: 13px; min-width: 0; }
.health-series-strip button.health-tick { appearance: none; flex: 1; min-width: 2px; border: 0; border-radius: 2px; padding: 0; cursor: pointer; }
.health-series-strip button.health-tick.selected, .health-series-strip button.health-tick:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.health-series-count { color: var(--muted); text-align: right; font-size: 11px; white-space: nowrap; }
.health-series-count.warning { color: var(--warning); font-weight: 700; }
.health-series-rows + .health-history-detail, .health-series-archive + .health-history-detail { margin-top: 8px; }
@media (max-width: 760px) {
  .health-controls { flex-wrap: wrap; gap: 5px; }
  .health-app-summary { gap: 9px; }
  .health-app-count { display: none; }
  .health-env-grid { grid-template-columns: 1fr; }
  .health-series-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .health-series-name { grid-column: 1; }
  .health-series-strip { grid-column: 1 / -1; grid-row: 2; }
  .health-series-count { grid-column: 2; grid-row: 1; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 64px; }
.login-page-body { min-height: 100vh; background: radial-gradient(circle at 50% 15%, rgba(81,209,154,.13), transparent 34%), var(--bg); }
.login-page { display: grid; width: min(500px, calc(100% - 36px)); min-height: 100vh; place-items: center; padding: 36px 0; }
.login-card { width: 100%; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; padding: clamp(24px, 6vw, 42px); background: var(--panel); box-shadow: 0 22px 70px rgba(0,0,0,.32); }
.login-card h1 { font-size: clamp(34px, 9vw, 52px); }
.login-card .subtitle { margin-bottom: 26px; }
.login-form { display: grid; width: 100%; gap: 10px; }
.login-form label { margin: 0; }
.login-form button { margin-top: 4px; }
.login-error { min-height: 22px; margin: 0; color: var(--critical); }
.login-card > small { display: block; margin-top: 14px; line-height: 1.45; }
.login-privacy-link { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 13px; text-decoration: none; }
.login-privacy-link:hover { color: var(--accent); }
.legal-page { width: min(860px, calc(100% - 40px)); }
.legal-header { align-items: center; }
.legal-back { color: var(--accent); text-decoration: none; border: 1px solid var(--accent); border-radius: 9px; padding: 10px 14px; white-space: nowrap; }
.legal-back:hover { background: #13251f; }
.legal-content { padding: 28px clamp(20px, 5vw, 48px); }
.legal-content section + section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 10px; }
.legal-content p { margin: 8px 0; color: #c8d2de; }
.legal-content a { color: var(--accent); }
header { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 30px; }
.main-nav { display: flex; gap: 8px; margin: -20px 0 28px; overflow-x: auto; }
.main-nav a { color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--accent); background: #13251f; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; }
.subtitle { margin: 14px 0 0; color: var(--muted); }
form { width: min(390px, 100%); }
label, small { color: var(--muted); }
label { display: block; margin-bottom: 7px; font-size: 13px; }
.auth-row { display: flex; gap: 8px; }
input, select { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 9px; background: #0f151d; color: var(--text); padding: 11px 12px; }
button { border: 0; border-radius: 9px; background: var(--accent); color: #07130e; font-weight: 800; padding: 11px 16px; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button { background: #273241; color: var(--text); }
:is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.balance-caption { display: block; margin: -10px 0 12px; font-size: 11px; }
.balance-explanation { display: block; margin: 0 0 10px; font-size: 11px; }
.last-funding { margin: 4px 0 8px; border-left: 3px solid #51d19a; padding-left: 10px; }
.last-funding .metric { border-bottom: 0; padding: 7px 0 2px; }
.funding-note { display: block; padding-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.analytics-service.without-forecast { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 760px) { .analytics-service.without-forecast { grid-template-columns: 1fr 1fr; } }
.openai-key-option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--accent); background: #13251f; }
.session-form { display: flex; width: auto; align-items: center; gap: 14px; }
.session-form > div { display: grid; text-align: right; }
.session-form button { background: #273241; color: var(--text); }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.connection { color: var(--muted); }
.connection.ok { color: var(--accent); }
.connection.bad { color: var(--critical); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card, .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card { padding: 17px; }
.health-card.ok { border-top: 4px solid var(--accent); }
.health-card.warning { border-top: 4px solid var(--warning); }
.health-card.critical { border-top: 4px solid var(--critical); }
.health-card.unknown { border-top: 4px solid var(--unknown); }
.card-top, .metric, .panel-title, .collector { display: flex; justify-content: space-between; gap: 16px; }
.provider { margin: 0; font-size: 20px; text-transform: capitalize; }
.status { border-radius: 100px; padding: 4px 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status.ok { background: #153b2d; color: var(--accent); }
.status.warning { background: #43351b; color: var(--warning); }
.status.critical { background: #472323; color: var(--critical); }
.status.unknown { background: #28313c; color: #b7c0ca; }
.status.idle { background: #2c3440; color: #c3ccd7; }
.balance { margin: 20px 0 16px; font-size: 29px; font-weight: 750; letter-spacing: -.03em; }
.commitment-list { display: grid; gap: 10px; margin-top: 14px; }
.commitment-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: 10px; padding: 14px 16px; background: #101720; }
.commitment-description, .commitment-value { display: grid; gap: 3px; }
.commitment-description span, .commitment-description small, .commitment-value span { color: var(--muted); }
.commitment-value { text-align: right; white-space: nowrap; }
.commitment-value strong { font-size: 22px; }
.metric { border-top: 1px solid var(--line); padding: 10px 0; color: var(--muted); }
.metric strong { color: var(--text); font-variant-numeric: tabular-nums; }
.panel { margin-top: 22px; padding: 20px; }
.panel h2 { margin: 0; font-size: 18px; }
.panel-title span { color: var(--muted); font-size: 13px; }
.collapsible-panel { padding: 0; }
.collapsible-panel > summary { padding: 20px; cursor: pointer; align-items: center; list-style-position: inside; }
.collapsible-panel > summary::marker { color: var(--accent); }
.collapsible-panel[open] > summary { border-bottom: 1px solid var(--line); }
.collapsible-content { padding: 0 20px 20px; }
.analytics-title { align-items: end; }
.analytics-title label { margin: 0; min-width: 280px; }
.analytics-title select { width: 100%; margin-top: 6px; }
.application-analytics { display: grid; gap: 12px; margin-top: 16px; }
.analytics-insight { margin-top: 14px; padding: 14px; border-left: 3px solid var(--accent); background: #101720; border-radius: 0 10px 10px 0; }
.analytics-insight h3, .analytics-insight p { margin: 0; }
.analytics-insight ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.application-row { border: 1px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden; background: #111821; }
.application-row h3 { margin: 0 0 10px; font-size: 16px; }
.application-row > summary { cursor: pointer; display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; gap: 14px; align-items: center; padding: 15px 17px; background: #151e28; }
.application-row > summary:hover { background: #192430; }
.application-row[open] > summary { border-bottom: 1px solid var(--line); }
.application-row > summary h3 { margin: 0; }
.application-row > summary span, .application-row h4 { color: var(--muted); }
.application-count { white-space: nowrap; font-size: 13px; }
.environment-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.environment-badge { display: inline-flex; width: max-content; align-items: center; border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; background: #0d141c; }
.environment-badge.env-dev { color: var(--dev) !important; }
.environment-badge.env-stage { color: var(--stage) !important; }
.environment-badge.env-preprod { color: var(--preprod) !important; }
.environment-badge.env-prod { color: var(--prod) !important; }
.environment-badge.env-shared { color: var(--shared) !important; }
.environment-group { --environment-color: var(--shared); margin: 14px; padding: 1px 14px 8px; border-left: 4px solid var(--environment-color); border-radius: 0 10px 10px 0; background: linear-gradient(90deg, color-mix(in srgb, var(--environment-color) 9%, transparent), transparent 46%); }
.environment-group.env-dev { --environment-color: var(--dev); }
.environment-group.env-stage { --environment-color: var(--stage); }
.environment-group.env-preprod { --environment-color: var(--preprod); }
.environment-group.env-prod { --environment-color: var(--prod); }
.environment-group.env-shared { --environment-color: var(--shared); }
.application-row .environment-group h4 { margin: 11px 0 5px; color: var(--environment-color); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.analytics-service { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(110px, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; align-items: center; }
.analytics-service:first-of-type { border-top: 0; }
.analytics-service span { color: var(--muted); font-size: 13px; }
.analytics-service strong { display: block; color: var(--text); }
.insight-details > summary, .plan-insight-details > summary { cursor: pointer; color: var(--accent); font-weight: 750; }
.insight-details[open] > summary, .plan-insight-details[open] > summary { margin-bottom: 10px; }
.insight-details p, .plan-insight-details p { margin: 0; }
.insight-details small { display: block; margin-top: 6px; }
.planning-form { width: 100%; max-width: none; margin-top: 16px; display: grid; grid-template-columns: 1.5fr 150px; gap: 12px; align-items: end; }
.planning-form label { margin: 0; }
.planning-form > .breakdown-note { grid-column: 1 / -1; margin: 0; }
.planning-form input { width: 100%; margin-top: 6px; }
.planning-multipliers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.planning-app-fields { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #101720; }
.planning-app-fields.single-environment { grid-column: auto; }
.single-environment .planning-environment-fields { grid-template-columns: 1fr; }
.planning-app-fields.single-environment .planning-environment-field { grid-column: 1; display: grid; grid-template-columns: 1fr 100px; align-items: center; }
.single-environment .planning-load-hint { grid-column: 1 / -1; }
.planning-app-fields legend { padding: 0 8px; font-size: 15px; font-weight: 750; color: var(--text); }
.planning-environment-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.planning-environment-field { min-width: 0; padding: 10px; border-left: 3px solid var(--shared); border-radius: 5px; background: var(--panel); display: flex; flex-direction: column; gap: 5px; }
.planning-environment-field.env-prod { border-color: var(--prod); grid-column: 1; }
.planning-environment-field.env-preprod { border-color: var(--preprod); grid-column: 2; }
.planning-environment-field.env-dev { border-color: var(--dev); grid-column: 3; }
.planning-environment-field.env-shared { grid-column: 4; }
.planning-environment-field .environment-badge { align-self: flex-start; max-width: 100%; white-space: normal; overflow-wrap: anywhere; min-height: 28px; }
.planning-load-hint { color: var(--muted); font-size: 12px; }
.planning-form > button[type="submit"] { grid-column: 1 / -1; }
.planning-result { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.planning-result h3, .planning-result p { margin: 0; }
#planning-current-risks { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
#planning-current-risks h3 { margin: 0 0 8px; }
.planning-provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.planning-provider-card { display: grid; gap: 6px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #101720; }
.planning-card-label, .planning-card-meta { color: var(--muted); font-size: 12px; }
.planning-card-value { font-size: 24px; }
.planning-provider-card meter { width: 100%; height: 9px; accent-color: var(--accent); }
.planning-topup { color: var(--accent); font-size: 12px; font-weight: 700; }
.planning-topup.needed { color: var(--warning); }
.planning-provider { display: grid; gap: 3px; border-top: 1px solid var(--line); padding: 10px 0; }
.planning-provider span, .planning-result small { color: var(--muted); }
.planning-comment-title { margin-top: 14px !important; }
.planning-result ul { color: var(--muted); }
.plan-insight-details { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.plan-breakdown { margin-top: 10px; border-top: 1px solid var(--line); }
.plan-breakdown > summary { cursor: pointer; padding: 11px 0; color: var(--accent); font-weight: 700; }
.plan-app { margin-top: 10px; }
.plan-app { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #101720; }
.plan-app-heading { display: flex; align-items: center; gap: 16px; padding: 16px; cursor: pointer; }
.plan-app-heading::before { content: '▸'; color: var(--accent); }
.plan-app[open] > .plan-app-heading::before { content: '▾'; }
.plan-app[open] > .plan-app-heading { border-bottom: 1px solid var(--line); background: #18232e; }
.plan-app-totals { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-variant-numeric: tabular-nums; }
.plan-app-totals strong { padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; background: #0c1117; white-space: nowrap; }
.plan-environment { margin: 16px; padding-left: 14px; border-left: 3px solid var(--shared); }
.plan-environment.env-prod { border-color: var(--prod); }
.plan-environment.env-dev { border-color: var(--dev); }
.plan-environment.env-preprod { border-color: var(--preprod); }
.plan-environment h4 { font-size: 12px; color: var(--muted); }
.plan-cost-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(100px, .8fr) minmax(120px, 1fr); gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-cost-row:last-child { border: 0; }
.plan-cost-label { display: grid; gap: 3px; }
.plan-cost-label small { font-size: 12px; }
.plan-cost-value { text-align: right; font-variant-numeric: tabular-nums; }
.plan-cost-share { display: flex; align-items: center; gap: 8px; }
.plan-cost-share meter { min-width: 0; width: 100%; height: 8px; accent-color: var(--accent); }
.plan-cost-share meter::-webkit-meter-bar { background: #273241; border: 0; height: 8px; border-radius: 6px; }
.plan-cost-share meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 6px; }
.plan-cost-share small { min-width: 45px; text-align: right; font-size: 11px; }
@media (max-width: 760px) {
  .plan-app-heading { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .plan-app-totals { width: 100%; justify-content: flex-start; margin-left: 18px; }
  .plan-environment { margin: 12px; padding-left: 10px; }
  .plan-cost-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .plan-cost-share { grid-column: 1 / -1; grid-row: 2; }
  .plan-cost-value { max-width: 135px; }
}
.plan-app h4 { margin: 0 0 7px; }
.plan-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; }
.plan-service-chip { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0f151d; }
.plan-service-chip span, .plan-service-chip small { color: var(--muted); font-size: 11px; }
.collector-list { margin-top: 14px; }
.collector { border-top: 1px solid var(--line); padding: 11px 0; }
.collector:first-child { border-top: 0; }
.collector span { color: var(--muted); }
.alert-list { display: grid; gap: 8px; margin-top: 14px; }
.alert-row { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.alert-row.critical { border-color: #6b3030; }
.alert-row.warning { border-color: #654f24; }
.alert-row div { display: grid; gap: 2px; }
.alert-row small, .empty-state, .environment, .usage-card span { color: var(--muted); }
.alert-row > div { min-width: 0; }
.alert-action-text { margin-top: 4px; line-height: 1.4; }
.alert-acknowledge { flex: 0 0 auto; margin-left: auto; padding: 7px 11px; background: #273241; color: var(--text); font-size: 12px; }
.review-list { display: grid; gap: 10px; margin-top: 14px; }
.review-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; }
.review-row p { margin: 0; }
.review-meta { color: var(--muted); font-size: 12px; }
.review-actions { display: flex; gap: 8px; }
.review-actions .reject { background: #472323; color: var(--critical); }
.mail-archive { margin-top: 4px; }
.mail-archive > summary, .admin-link-history > summary { cursor: pointer; color: var(--accent); font-weight: 750; padding: 10px 0; }
.mail-archive .review-list { margin-top: 4px; }
.admin-link-history { margin-top: 18px; border-top: 1px solid var(--line); }
.admin-link-history ul { margin-bottom: 0; }
.pricing-status-warning { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--warning); border-radius: 5px; background: #2b2519; color: #f3cf83; }
.pricing-review-action { margin: 12px 0; padding: 12px; border: 1px solid var(--warning); border-radius: 8px; background: #211f1b; }
.pricing-review-action p { margin: 0 0 10px; }
.pricing-change-table td { color: var(--text); }
.pricing-change-table td:nth-child(2) { font-weight: 700; }
.service-grid, .usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.service-provider-details { margin-top: 16px; }
.service-provider-details .card { max-width: none; }
.section-subtitle { margin: 20px 0 0; font-size: 15px; }
.service-card, .usage-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #101720; }
.service-card .environment, .service-card .environment-badge { display: block; margin: 6px 0 9px; font-size: 11px; text-transform: uppercase; }
.usage-card { display: grid; gap: 4px; }
.usage-card strong { font-size: 24px; }
.sber-daily-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(40px, 1fr); gap: 3px; align-items: end; margin: 14px 0 8px; }
.sber-daily-column { display: flex; flex-direction: column; align-items: center; justify-content: end; min-width: 0; }
.sber-daily-column small { font-size: 9px; color: var(--muted); }
.sber-daily-bar { width: 80%; background: var(--accent); border-radius: 3px 3px 0 0; }
.sber-daily-column.is-current .sber-daily-bar { background: #89939f; }
.sber-daily-column:focus { outline: 1px solid var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 16px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
th, td { border-top: 1px solid var(--line); padding: 10px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
.breakdown-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.breakdown-total td { background: #17212b; font-weight: 700; }
.breakdown-child td:first-child { padding-left: 28px; color: var(--muted); }
.breakdown-child td:nth-child(2), .breakdown-slice td:first-child { color: var(--muted); }
.breakdown-separator { padding-top: 22px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.checkpoint-form { width: 100%; max-width: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; align-items: end; }
.checkpoint-form label { margin: 0; }
.checkpoint-form input { width: 100%; margin-top: 7px; }
.mapping-form { width: 100%; max-width: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr auto; gap: 12px; align-items: end; }
.mapping-form label { margin: 0; }
.mapping-form input, .mapping-form select { width: 100%; margin-top: 7px; }
.settings-form { width: 100%; max-width: 420px; margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.settings-form label { margin: 0; }
.settings-form input { width: 100%; margin-top: 7px; }
.openai-checkpoint-form { width: 100%; max-width: none; margin-top: 16px; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.5fr) auto; gap: 12px; align-items: end; }
.openai-checkpoint-form label { margin: 0; }
.openai-checkpoint-form input { width: 100%; margin-top: 7px; }
.openai-grouping { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.openai-grouping > summary { cursor: pointer; color: var(--accent); font-weight: 750; }
.openai-group-form { width: 100%; max-width: none; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.openai-group-form label { margin: 0; }
.openai-group-form input { width: 100%; margin-top: 7px; }
.openai-key-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 7px; max-height: 360px; overflow-y: auto; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #0f151d; }
.openai-key-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; padding: 8px; border-radius: 8px; background: #141b24; cursor: pointer; }
.openai-key-option:hover { background: #192430; }
.openai-key-option input { width: auto; margin: 3px 0 0; }
.openai-key-option strong, .openai-key-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.openai-key-option small { color: var(--muted); }
.openai-group-form button { grid-column: 1 / -1; justify-self: start; }
.form-result { min-height: 22px; margin: 10px 0 0; color: var(--muted); }
.error { min-height: 24px; color: var(--critical); }
.history-panel { overflow: visible; }
.history-coverage { align-self: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.history-filter-form { width: 100%; max-width: none; margin-top: 20px; display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr .9fr .9fr auto auto; gap: 10px; align-items: end; }
.history-filter-form label { min-width: 0; margin: 0; }
.history-filter-form input, .history-filter-form select { width: 100%; margin-top: 6px; }
.history-provider-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.history-filter-caption { color: var(--muted); font-size: 12px; }
.history-provider-chip { display: inline-flex; align-items: center; gap: 7px; margin: 0; border: 1px solid var(--line); border-radius: 100px; padding: 6px 10px; background: #101720; cursor: pointer; }
.history-provider-chip:has(input:checked) { border-color: var(--accent); background: #13251f; color: var(--text); }
.history-provider-chip input { width: auto; margin: 0; accent-color: var(--accent); }
.history-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.history-summary-card { display: grid; gap: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #101720; }
.history-summary-card span, .history-summary-card small { color: var(--muted); }
.history-summary-card span { font-size: 12px; }
.history-summary-card strong { overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.history-summary-card small { line-height: 1.35; }
.history-chart-section { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.history-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.history-section-title h3, .history-section-title span { margin: 0; }
.history-section-title > div > span { color: var(--muted); font-size: 12px; }
.history-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
.history-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--history-color); font-size: 11px; }
.history-legend-item i { display: block; width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.history-environment-legend .history-legend-item { border: 1px solid currentColor; border-radius: 100px; padding: 4px 8px; background: color-mix(in srgb, currentColor 10%, transparent); color: var(--history-color); font-weight: 700; }
.history-legend-item.is-interactive { cursor: pointer; }
.history-legend-item.is-interactive input { width: auto; margin: 0; accent-color: var(--history-color); }
.history-legend-item.is-interactive:has(input:not(:checked)) { opacity: .42; }
.env-prod { --history-color: #51d19a; }
.env-preprod { --history-color: #b48cff; }
.env-dev { --history-color: #58a6ff; }
.env-test { --history-color: #f28c4b; }
.env-shared { --history-color: #7f8b99; }
.history-chart-scroll { width: 100%; min-width: 0; margin-top: 16px; overflow: visible; padding: 8px 2px 4px; }
.history-app-bars { display: grid; grid-template-columns: repeat(var(--history-column-count), minmax(0, 1fr)); align-items: stretch; gap: clamp(3px, 1vw, 14px); width: 100%; height: 360px; padding: 0 4px; }
.history-column { display: grid; grid-template-rows: 28px 260px 54px; gap: 6px; min-width: 0; text-align: center; }
.history-column-value { align-self: end; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #506073; background: repeating-linear-gradient(to top, transparent 0, transparent 64px, rgba(145,160,179,.10) 65px); }
.history-stack { display: flex; flex-direction: column-reverse; width: min(64px, 74%); min-height: 3px; border-radius: 6px 6px 2px 2px; overflow: visible; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.history-segment { position: relative; min-height: 3px; border-top: 1px solid rgba(6, 11, 17, .82); background: var(--history-color); cursor: help; }
.history-segment:first-child { border-radius: 0 0 2px 2px; }
.history-segment:last-child { border-radius: 6px 6px 0 0; }
.history-segment:hover, .history-segment:focus { filter: brightness(1.15); z-index: 3; outline: 2px solid var(--text); outline-offset: 1px; }
.history-column-label { display: -webkit-box; align-self: start; overflow: hidden; color: #cbd5e1; font-size: 12px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.history-tooltip { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); display: none; width: 250px; transform: translateX(-50%); border: 1px solid #45566a; border-radius: 9px; padding: 10px 11px; background: #080d13; color: var(--muted); text-align: left; box-shadow: 0 12px 32px rgba(0,0,0,.45); pointer-events: none; }
.history-tooltip::after { position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: #080d13; border-right: 1px solid #45566a; border-bottom: 1px solid #45566a; content: ""; }
.history-tooltip strong, .history-tooltip span { display: block; }
.history-tooltip strong { margin-bottom: 5px; color: var(--text); }
.history-tooltip span { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.history-segment:hover .history-tooltip, .history-segment:focus .history-tooltip, .history-time-segment:hover .history-tooltip, .history-time-segment:focus .history-tooltip, .history-mini-segment:hover .history-tooltip, .history-mini-segment:focus .history-tooltip { display: block; }
.history-time-bars { display: grid; grid-template-columns: repeat(var(--history-bucket-count), minmax(0, 1fr)); align-items: end; gap: clamp(1px, .35vw, 5px); width: 100%; height: 270px; padding: 20px 2px 0; border-bottom: 1px solid #506073; background: repeating-linear-gradient(to top, transparent 0, transparent 61px, rgba(145,160,179,.10) 62px); }
.history-time-column { display: grid; grid-template-rows: 220px 30px; align-items: end; min-width: 0; text-align: center; }
.history-time-column > span { visibility: hidden; overflow: visible; color: var(--muted); font-size: 9px; white-space: nowrap; }
.history-time-column > span.is-visible { visibility: visible; }
.history-time-bar { display: flex; flex-direction: column-reverse; position: relative; width: min(24px, 78%); min-height: 3px; justify-self: center; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.10); cursor: help; }
.history-time-bar.is-empty { min-height: 0; }
.history-time-segment { position: relative; min-height: 2px; border-top: 1px solid rgba(6, 11, 17, .92); background: var(--history-color); }
.history-time-segment:first-child { border-radius: 0 0 2px 2px; }
.history-time-segment:last-child { border-radius: 4px 4px 0 0; }
.history-time-segment:hover, .history-time-segment:focus { outline: 2px solid var(--text); outline-offset: 1px; z-index: 3; filter: brightness(1.12); }
.history-time-bar.is-current .history-time-segment { filter: grayscale(1); opacity: .62; }
.history-time-bar.is-current .history-time-segment:hover, .history-time-bar.is-current .history-time-segment:focus { filter: grayscale(1) brightness(1.2); opacity: .9; }
.history-application-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.history-mini-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 10px; background: #101720; }
.history-mini-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.history-mini-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-mini-heading span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.history-mini-bars { display: grid; grid-template-columns: repeat(var(--history-bucket-count), minmax(0, 1fr)); align-items: end; gap: clamp(1px, .25vw, 3px); width: 100%; height: 170px; padding-top: 8px; border-bottom: 1px solid #506073; background: repeating-linear-gradient(to top, transparent 0, transparent 46px, rgba(145,160,179,.09) 47px); }
.history-mini-column { display: grid; grid-template-rows: 140px 22px; align-items: end; min-width: 0; text-align: center; }
.history-mini-column > span { visibility: hidden; overflow: visible; color: var(--muted); font-size: 8px; white-space: nowrap; }
.history-mini-column > span.is-visible { visibility: visible; }
.history-mini-bar { display: flex; flex-direction: column-reverse; position: relative; width: min(14px, 72%); min-height: 2px; justify-self: center; border-radius: 3px 3px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.10); }
.history-mini-bar.is-empty { min-height: 0; box-shadow: none; }
.history-mini-segment { position: relative; min-height: 1px; border-top: 1px solid rgba(6, 11, 17, .88); background: var(--history-color); }
.history-mini-segment:first-child { border-radius: 0 0 2px 2px; }
.history-mini-segment:last-child { border-radius: 3px 3px 0 0; }
.history-mini-segment:hover, .history-mini-segment:focus { outline: 2px solid var(--text); outline-offset: 1px; z-index: 4; filter: brightness(1.15); }
.history-mini-bar.is-current .history-mini-segment { filter: grayscale(1); opacity: .62; }
.guide-hero { margin-top: 6px; padding: 28px; border: 1px solid #285844; border-radius: 16px; background: radial-gradient(circle at 92% 8%, rgba(81, 209, 154, .16), transparent 34%), var(--panel); }
.guide-hero h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.025em; }
.guide-hero > p:not(.eyebrow) { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
.guide-steps a { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #0f171e; color: var(--text); text-decoration: none; font-weight: 700; }
.guide-steps a:hover { border-color: var(--accent); background: #13251f; }
.guide-steps span, .guide-step-number { display: inline-grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--accent); color: #07130e; font-size: 12px; font-weight: 900; }
.guide-section { scroll-margin-top: 16px; }
.guide-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.guide-section-heading h2, .guide-section-heading p { margin: 0; }
.guide-section-heading p { margin-top: 3px; color: var(--muted); }
.guide-section h3 { margin: 22px 0 10px; font-size: 16px; }
.guide-callout { display: grid; grid-template-columns: minmax(130px, .25fr) 1fr; gap: 16px; margin-top: 10px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 14px; background: #101b1a; }
.guide-callout span { color: var(--muted); }
.guide-callout.warning { border-color: var(--warning); background: #1d1a13; }
.guide-callout.admin-note { border-color: var(--preprod); background: #181522; }
.guide-figure { margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0c1117; }
.guide-figure img { display: block; width: 100%; max-height: 640px; object-fit: cover; object-position: top left; }
.guide-figure figcaption { padding: 10px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guide-status-grid, .guide-definition-grid, .guide-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-status, .guide-definition-grid article, .guide-provider-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #101720; }
.guide-status { display: grid; grid-template-columns: 100px 1fr; gap: 12px; border-left: 4px solid var(--unknown); }
.guide-status.ok { border-left-color: var(--accent); }
.guide-status.warning { border-left-color: var(--warning); }
.guide-status.critical { border-left-color: var(--critical); }
.guide-status span, .guide-definition-grid p, .guide-provider-grid p, .guide-reconcile p, .guide-two-columns p { margin: 0; color: var(--muted); }
.guide-definition-grid article, .guide-provider-grid article { min-height: 102px; }
.guide-definition-grid p, .guide-provider-grid p { margin-top: 5px; }
.guide-provider-grid h3 { margin: 0; }
.guide-table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.guide-table td { white-space: normal; vertical-align: top; }
.guide-table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.guide-table td:not(:first-child) { color: var(--muted); }
.guide-checklist { display: grid; gap: 8px; margin: 0; padding-left: 24px; color: var(--muted); }
.guide-checklist li::marker { color: var(--accent); font-weight: 800; }
.guide-checklist strong { color: var(--text); }
.guide-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-two-columns h3 { margin-top: 0; }
.guide-reconcile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide-reconcile article { min-width: 0; border-top: 3px solid var(--accent); border-radius: 8px; padding: 13px; background: #101720; }
.guide-reconcile article > span { display: block; margin-bottom: 7px; color: var(--accent); font-weight: 900; }
.guide-reconcile p { margin-top: 4px; }
.guide-truth-order { display: grid; gap: 5px; margin-top: 14px; border: 1px solid #315848; border-radius: 10px; padding: 14px; background: #102019; }
.guide-truth-order span { color: var(--muted); }
@media (max-width: 760px) {
  main { width: min(100% - 20px, 1180px); padding: 22px 0 44px; }
  header { align-items: stretch; flex-direction: column; gap: 20px; margin-bottom: 24px; }
  .main-nav { margin-top: -12px; padding-bottom: 3px; }
  form { width: 100%; }
  .panel { padding: 15px; }
  .collapsible-panel { padding: 0; }
  .collapsible-panel > summary { padding: 15px; }
  .collapsible-content { padding: 0 15px 15px; }
  .checkpoint-form, .mapping-form, .planning-form, .settings-form, .openai-checkpoint-form { grid-template-columns: 1fr; max-width: none; }
  .openai-group-form { grid-template-columns: 1fr; }
  .openai-key-list, .openai-group-form button { grid-column: 1; }
  .openai-key-list { grid-template-columns: 1fr; max-height: 430px; }
  .planning-environment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-multipliers { grid-template-columns: 1fr; }
  .planning-environment-field { grid-column: auto !important; }
  .analytics-title { align-items: stretch; flex-direction: column; }
  .analytics-title label { min-width: 0; }
  .application-row > summary { grid-template-columns: 1fr auto; padding: 13px; }
  .application-row > summary h3 { grid-column: 1; }
  .environment-summary { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .application-count { grid-column: 2; grid-row: 1; font-size: 12px; }
  .environment-group { margin: 10px; padding: 1px 10px 6px; }
  .analytics-service { grid-template-columns: 1fr 1fr; gap: 9px 14px; padding: 12px 0; }
  .analytics-service > div:first-child { grid-column: 1 / -1; padding-bottom: 2px; }
  .analytics-service > div:nth-child(4) { grid-column: 1 / -1; }
  .table-wrap table { min-width: 680px; }
  .planning-provider-grid { grid-template-columns: 1fr; }
  .commitment-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .commitment-value { text-align: left; }
  .guide-hero { padding: 20px 16px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-callout { grid-template-columns: 1fr; gap: 4px; }
  .guide-status-grid, .guide-definition-grid, .guide-provider-grid, .guide-two-columns { grid-template-columns: 1fr; }
  .guide-status { grid-template-columns: 84px 1fr; }
  .guide-reconcile { grid-template-columns: 1fr 1fr; }
  .guide-figure { overflow-x: auto; }
  .guide-figure img { width: auto; min-width: 760px; max-width: none; max-height: 520px; }
  .guide-figure figcaption { position: sticky; left: 0; width: calc(100vw - 52px); }
  .history-filter-form { grid-template-columns: 1fr 1fr; }
  .history-filter-form button { width: 100%; }
  .history-summary { grid-template-columns: 1fr 1fr; }
  .history-section-title { flex-direction: column; }
  .history-legend { justify-content: flex-start; }
  .history-application-charts { grid-template-columns: 1fr; }
}
