:root {
  --ink: #f0f3ed;
  --muted: #929a8d;
  --panel: #161a16;
  --panel-deep: #101310;
  --line: #343c34;
  --acid: #c7f36b;
  --orange: #ff8157;
  --bg: #0a0d0a;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; }
button, input, select { font: inherit; }
.grain { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
main { width: min(1380px, calc(100% - 48px)); margin: auto; padding: 52px 0 24px; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--acid); font-size: 11px; letter-spacing: .17em; }
h1, h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(42px, 6vw, 82px); line-height: .85; }
h1 em { color: var(--acid); font-style: normal; }
h2 { font-size: 32px; }
.live-state { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #656a63; }
.live-state[data-state="live"] { color: var(--acid); }.live-state[data-state="live"] .pulse { background: var(--acid); box-shadow: 0 0 0 5px #c7f36b18; animation: pulse 1.6s infinite; }
.live-state[data-state="error"] { color: var(--orange); }.live-state[data-state="error"] .pulse { background: var(--orange); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent; } }

.auth-layout { margin: clamp(18px, 6vh, 80px) auto 24px; background: var(--panel); border: 1px solid var(--line); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px clamp(24px, 4vw, 52px); border-bottom: 1px solid var(--line); }.header-actions { display: flex; align-items: center; gap: 8px; }
.auth-header h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.auth-header .eyebrow { margin-bottom: 6px; }
.auth-toggle { min-width: 92px; }.guide-link { display: inline-flex; align-items: center; height: 42px; padding: 0 13px; color: var(--muted); border: 1px solid #454b43; text-decoration: none; font-size: 12px; }.guide-link:hover { color: var(--acid); border-color: var(--acid); }.guide-link-primary { flex: 0 0 auto; justify-content: center; min-width: 122px; max-width: 100%; color: #0b0d0b; background: var(--acid); border-color: var(--acid); font-weight: 700; line-height: 1.25; text-align: center; white-space: normal; }.guide-link-primary:hover { color: #0b0d0b; background: #dbff8d; border-color: #dbff8d; }.guide-link-primary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.auth-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(24px, 4vw, 52px); color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-summary p { margin: 0; }
.auth-summary span { flex: 0 0 auto; color: var(--acid); font-size: 10px; letter-spacing: .14em; }
.auth-form { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin-left: auto; padding: 30px clamp(24px, 4vw, 52px) 36px; border-top: 1px solid var(--line); background: var(--panel-deep); }
.form-heading { margin-bottom: 12px; }
.form-heading > span { color: var(--acid); font-size: 11px; letter-spacing: .14em; }
.form-heading p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.auth-form label { display: block; }
.auth-form .actions { margin-top: 8px; }
.auth-form .actions button { flex: 1; }
.auth-form .security-note { margin-top: 8px; line-height: 1.7; }
.control-panel { display: grid; gap: 14px; padding: 24px; margin: 24px 0; background: var(--panel); border: 1px solid var(--line); }
.key-add-config { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.saved-keys-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }.saved-keys-content[hidden], .saved-keys-content.is-collapsed { display: none !important; }.saved-keys-content > label:first-child, .saved-keys-content > label:nth-child(2), .saved-keys-content .subkey-limits, .saved-keys-content .key-actions, .saved-keys-content .key-connectivity-result, .saved-keys-content .owned-subkeys, .saved-keys-content .key-management-panel { grid-column: 1 / -1; }.saved-keys-content .subkey-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.key-connectivity-result { min-height: 18px; margin: 0; color: var(--muted); font-size: 11px; }.owned-subkeys { padding-top: 14px; border-top: 1px solid var(--line); }.owned-subkeys h3 { margin: 0 0 12px; color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.model-pricing-row { display: grid; grid-template-columns: minmax(120px, 1fr) repeat(4, minmax(126px, 1fr)) auto; gap: 8px; align-items: end; margin-bottom: 8px; }.model-reasoning-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.model-reasoning-title { grid-column: 1 / -1; color: var(--acid); }.model-reasoning-prices > label { display: grid; gap: 4px; min-width: 0; }.model-reasoning-prices input { min-width: 0; }.model-pricing-row > button { padding: 0 10px; }
@media (max-width: 900px) { .model-pricing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.model-pricing-row > button { grid-column: 2; } }
label > span:first-child { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.input-wrap { display: flex; }
input, select { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; outline: none; }
input:focus, select:focus { border-color: var(--acid); }
.icon-button { margin-left: -1px; border-color: #3b413a; color: var(--muted); }
button { height: 42px; padding: 0 17px; color: var(--ink); background: transparent; border: 1px solid #454b43; cursor: pointer; }
button:hover { border-color: var(--acid); color: var(--acid); }
button:disabled { opacity: .45; cursor: wait; }
button.primary { color: #0b0d0b; background: var(--acid); border-color: var(--acid); font-weight: 700; }
button.primary.running { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.actions { display: flex; align-items: flex-end; gap: 8px; }
.key-actions { flex-wrap: wrap; }
.auto-refresh-status { align-self: center; color: var(--muted); font-size: 10px; white-space: nowrap; }
.security-note { grid-column: 1 / -1; margin: 0; color: #666d64; font-size: 11px; }
.error-box { padding: 14px 18px; margin-bottom: 24px; color: #ffc0aa; background: #361910; border-left: 3px solid var(--orange); font-size: 13px; }
.key-management-panel { margin: 10px 0 0; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.key-management-heading { margin-bottom: 0; }.key-management-summary { display: flex; align-items: center; gap: 10px; }.key-management-summary > span { padding-bottom: 3px; color: var(--muted); font-size: 10px; }.panel-toggle { width: 32px; height: 32px; padding: 0; color: var(--acid); border-color: #50633a; font-size: 18px; line-height: 1; }
.key-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.key-management-block { min-width: 0; padding: 16px; border: 1px solid #2a302a; background: var(--panel-deep); }
.key-management-block h3 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.key-management-form { display: grid; gap: 12px; margin: 15px 0; }.key-management-form button { justify-self: end; }
.user-search-field { display: grid; gap: 8px; }.user-search-field > span { margin-bottom: 0; }.user-search-field select { height: auto; min-height: 42px; padding: 4px; }.user-search-field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.subkey-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subkey-secret-result { margin-top: 14px; padding: 13px; color: #0b0d0b; background: var(--acid); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.subkey-secret-result strong { display: block; margin-bottom: 5px; }.subkey-secret-result code { display: block; margin-top: 7px; padding: 8px; color: var(--ink); background: #101310; word-break: break-all; }
.subkey-secret-result button { height: 30px; margin-top: 10px; padding: 0 10px; color: #0b0d0b; border-color: #0b0d0b; }
.subkey-list { margin-top: 16px; }.key-management-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.key-management-list-heading button { height: 32px; padding: 0 11px; font-size: 11px; }
.subkey-list table { font-size: 11px; }.subkey-list th, .subkey-list td { padding: 11px 12px; }.subkey-list td:last-child { white-space: nowrap; }.subkey-list td:last-child button { height: 30px; margin-left: 6px; padding: 0 9px; color: var(--orange); border-color: #6a4437; font-size: 10px; }.subkey-list td:last-child button:first-child { margin-left: 0; }.subkey-list td:last-child .delete-subkey { color: #ffb29b; border-color: #6a4437; }
.proxy-usage-guide { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.guide-summary { max-width: 760px; margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }.guide-sections { display: grid; gap: 16px; margin-top: 18px; }.guide-section { min-width: 0; padding: 18px; border: 1px solid #2a302a; background: var(--panel-deep); }.guide-section h2 { font-size: 22px; }.guide-section p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; white-space: pre-wrap; }.guide-code { margin: 14px 0 0; padding: 13px; overflow-x: auto; color: #d6ddd2; border: 1px solid var(--line); background: #0b0d0b; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.guide-code code { display: block; width: max-content; min-width: 100%; }

.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr repeat(3, .56fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.hero-card, .metric-card { min-height: 180px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.hero-card > strong { display: block; margin: 23px 0 17px; font: 400 clamp(34px, 4vw, 61px)/1 Impact, sans-serif; letter-spacing: .02em; }
.token-card > strong { color: var(--acid); }
.token-breakdown { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 10px; }.token-breakdown b { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; }
.progress-track { height: 4px; background: #333832; }.progress-track i { display: block; width: 0; height: 100%; max-width: 100%; background: var(--orange); transition: width .3s; }
.cost-card p { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-card { display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span, .metric-card small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.metric-card strong { overflow-wrap: anywhere; font: 400 clamp(24px, 3vw, 42px)/1 Impact, sans-serif; }

.period-section, .ranking-section, .history-section { margin-top: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.period-tabs { display: flex; border: 1px solid var(--line); }.period-tabs button { height: 36px; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }.period-tabs button:last-child { border-right: 0; }.period-tabs button.active { color: #0b0d0b; background: var(--acid); }
.relative-settings { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; padding: 14px; background: #121512; color: var(--muted); font-size: 11px; }.relative-settings label { display: flex; align-items: center; gap: 10px; color: var(--ink); }.relative-settings input { width: 68px; height: 34px; }
.range-strip { display: flex; justify-content: space-between; padding: 18px 20px; background: var(--acid); color: #0b0d0b; }.range-strip div { display: flex; flex-direction: column; gap: 5px; }.range-strip div:last-child { text-align: right; }.range-strip span { font-size: 10px; text-transform: uppercase; }.range-strip strong { font-size: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid var(--line); }.summary-grid div { padding: 21px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.summary-grid span { display: block; margin-bottom: 16px; color: var(--muted); font-size: 10px; text-transform: uppercase; }.summary-grid strong { font: 400 clamp(20px, 2.2vw, 32px)/1 Impact, sans-serif; }.summary-grid .accent-stat strong { color: var(--orange); }

.history-section .section-heading > span { color: var(--muted); font-size: 11px; }
.ranking-section .section-heading > span { color: var(--muted); font-size: 11px; }
.ranking-actions { display: flex; align-items: center; gap: 12px; }
.optimization-button { height: 34px; padding: 0 13px; color: var(--acid); border-color: var(--acid); font-size: 11px; }
.optimization-button[aria-busy="true"] { color: #0b0d0b; background: var(--orange); border-color: var(--orange); cursor: wait; }
.ranking-status { min-height: 20px; margin: -10px 0 16px; color: var(--muted); font-size: 11px; }
.optimization-panel { margin: 0 0 16px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--acid); background: var(--panel); }
.optimization-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.optimization-heading .eyebrow { margin-bottom: 5px; }
.optimization-heading h3 { margin: 0; font-size: 20px; font-family: Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.preview-badge { padding: 4px 7px; color: var(--acid); border: 1px solid #50633a; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.optimization-status { min-height: 18px; margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.optimization-results { display: grid; gap: 10px; margin-top: 14px; }
.optimization-result { padding: 13px 14px; background: var(--panel-deep); border: 1px solid #2a302a; }
.optimization-result h4 { margin: 0 0 7px; color: var(--acid); font-size: 11px; font-weight: 400; letter-spacing: .06em; }
.optimization-result p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.optimization-result ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.optimization-result .empty { display: block; text-align: left !important; }
.optimization-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.configuration-optimization { margin-top: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.configuration-note { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.configuration-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.configuration-results { display: grid; gap: 10px; margin-top: 14px; }
.configuration-change { padding: 13px 14px; border: 1px solid #2a302a; background: var(--panel-deep); }
.configuration-change h5 { margin: 0; color: var(--acid); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.configuration-change p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.configuration-change pre { max-height: 280px; margin: 11px 0 0; padding: 11px; overflow: auto; border: 1px solid var(--line); background: #0b0d0b; color: #d6ddd2; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.configuration-change .change-summary { color: var(--ink); }
.semantic-optimization { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-plan { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-plan-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.budget-plan-heading .eyebrow { margin-bottom: 5px; }
.budget-plan-heading h4 { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.budget-plan-heading > span { padding-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.budget-plan-form { display: grid; gap: 14px; margin-top: 16px; }
.budget-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-json-field textarea { display: block; width: 100%; min-height: 190px; resize: vertical; padding: 12px; color: var(--ink); background: #0e100e; border: 1px solid #3b413a; outline: none; font: 11px/1.65 "IBM Plex Mono", "Noto Sans Mono", ui-monospace, monospace; }
.task-json-field textarea:focus { border-color: var(--acid); }
.plan-help { margin: -5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.plan-actions { display: flex; justify-content: flex-end; }
.plan-actions button { min-width: 116px; }
.plan-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; scroll-margin-top: 18px; }
.plan-results:focus { outline: 2px solid var(--acid); outline-offset: 3px; }
.plan-result { padding: 13px 14px; background: var(--panel-deep); border: 1px solid #2a302a; }
.plan-result.plan-summary { grid-column: 1 / -1; border-left: 3px solid var(--acid); }
.plan-result.plan-problem { grid-column: 1 / -1; border-left: 3px solid var(--orange); }
.plan-result h5 { margin: 0 0 9px; color: var(--acid); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.plan-result p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.plan-result ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.plan-result.execution-list { grid-column: 1 / -1; }
.execution-list ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--ink); }
.execution-list li { padding-left: 4px; }
.execution-list strong { color: var(--acid); font-weight: 400; }
.execution-list .assignment-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.execution-list .assignment-action { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; line-height: 1.65; }
.plan-result.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: #2a302a; }
.plan-result.metrics h5 { grid-column: 1 / -1; margin: 0; padding: 12px 13px 2px; background: var(--panel-deep); }
.plan-result.metrics div { min-width: 0; padding: 11px 12px; background: var(--panel-deep); }
.plan-result.metrics span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.plan-result.metrics strong { display: block; margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.plan-result.metrics strong.accent { color: var(--acid); }
.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ranking-panel { border: 1px solid var(--line); background: var(--panel); }
.ranking-panel h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--acid); font-size: 12px; font-weight: 400; letter-spacing: .08em; }
.ranking-panel .table-wrap { border: 0; }
.ranking-panel table { font-size: 11px; }
.ranking-panel th, .ranking-panel td { padding: 12px 14px; }
.ranking-subject { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.ranking-subject strong { color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
.ranking-subject small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 180px; padding: 20px 16px 24px; border: 1px solid var(--line); border-bottom: 0; background: linear-gradient(#161916 1px, transparent 1px); background-size: 100% 25%; }
.bar-wrap { flex: 1; height: 100%; min-width: 8px; display: flex; align-items: flex-end; position: relative; }.bar { width: 100%; min-height: 2px; background: var(--acid); opacity: .78; transition: height .35s; }.bar-wrap:hover .bar { opacity: 1; background: var(--orange); }.bar-wrap span { display: none; position: absolute; z-index: 2; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); padding: 5px 7px; white-space: nowrap; background: var(--ink); color: var(--bg); font-size: 9px; }.bar-wrap:hover span { display: block; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid #242824; }th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }th:first-child, td:first-child { text-align: left; }tbody tr:hover { background: #151915; }tbody tr:last-child td { border-bottom: 0; }.empty { width: 100%; align-self: center; color: var(--muted); text-align: center !important; }
footer { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; }

@media (max-width: 1050px) { .hero-grid { grid-template-columns: repeat(3, 1fr); }.hero-card { grid-column: span 3; }.summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { main { width: min(100% - 24px, 1380px); padding-top: 30px; }.auth-layout { margin-top: 18px; }.auth-header { align-items: flex-start; flex-wrap: wrap; padding: 20px; }.auth-header h1 { font-size: 30px; }.auth-toggle { min-width: 72px; }.header-actions, .masthead .actions { flex-wrap: wrap; }.auth-summary { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px 20px; }.auth-form { margin: 0; padding: 28px 20px; }.masthead { align-items: flex-start; flex-wrap: wrap; gap: 20px; }.live-state { margin-top: 4px; }.control-panel { grid-template-columns: 1fr; padding: 16px; }.actions { align-items: center; }.actions button { flex: 1; }.key-actions .auto-refresh-status { flex-basis: 100%; }.hero-grid { grid-template-columns: 1fr 1fr; }.hero-card { grid-column: span 2; }.metric-card { min-height: 130px; }.metric-card:last-child { grid-column: span 2; }.section-heading { display: block; }.ranking-actions { margin-top: 14px; justify-content: space-between; }.period-tabs { margin-top: 18px; overflow-x: auto; }.period-tabs button { flex: 1; padding: 0 10px; white-space: nowrap; }.summary-grid { grid-template-columns: 1fr 1fr; }.relative-settings { align-items: flex-start; flex-direction: column; }.ranking-grid { grid-template-columns: 1fr; }.budget-inputs, .plan-results { grid-template-columns: 1fr; }.budget-plan-heading { align-items: flex-start; flex-direction: column; gap: 6px; }.budget-plan-heading > span { padding-top: 0; }.plan-actions button, .configuration-actions button { width: 100%; }.configuration-actions { justify-content: stretch; }.period-section, .ranking-section, .history-section { margin-top: 48px; }.history-section .section-heading > span, .ranking-section .section-heading > span { display: block; margin-top: 8px; } }
