/* Blue canvas; orange navigation and actions; neutral metrics. */
:root {
  --surface: #eef4fc;
  --ink: #152538;
  --muted: #5f6d7b;
  --line: #dce5f0;
  --warm-surface: #fff5ef;
  --warm-ink: #a43213;
  --cool-surface: #edf4fe;
  --radius: 18px;
  font-size: 15px;
}
body { background: var(--surface); }
h1 { font-size: clamp(30px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
h3 { line-height: 1.4; }
.topbar { font-size: 13px; border-bottom-color: var(--line); }
.page-heading { padding: 32px 0 26px; }
.page-heading .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--warm-ink); font-size: 11px; letter-spacing: 1.4px; }
.page-heading p:last-child { font-size: 15px; }
.panel, .stat-card { border: 1px solid #dce5f0; box-shadow: 0 3px 14px #15375808; }
.panel-heading { padding: 26px; border-bottom-color: #e7eef7; }
.panel-heading h2 { color: var(--navy); }
.panel-heading p { font-size: 13px; line-height: 1.6; }
.panel-heading .eyebrow { font-size: 11px; color: var(--warm-ink); letter-spacing: 1.3px; }
.panel-footer { background: #f8faff; font-size: 12px; color: var(--muted); }
.stat-card { padding: 25px; }
.stat-card > span { font-size: 13px; color: #526171; line-height: 1.5; }
.stat-card > strong { font-size: 36px; color: var(--navy); font-weight: 650; letter-spacing: -.04em; }
.stat-card small { font-size: 12px; line-height: 1.6; color: #64717e; }
.stat-card .date-stat { font-size: 25px; }
.accent-card { background: var(--cool-surface); border: 2px solid #cbdcf4; }
.portfolio-card { background: #fff; border-color: var(--line); }
.portfolio-card > span { color: var(--muted); }
.portfolio-card > strong { display: flex; align-items: center; gap: 14px; }
.results-summary { margin: 25px 0; }
.results-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.results-heading h2 { margin: 0; font-size: 24px; }
.analytics-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
.analytics-kpis .stat-card { padding: 22px 20px; min-height: 152px; }
.analytics-kpis .stat-card > span { font-size: 13px; margin-bottom: 18px; }
.analytics-kpis .stat-card > strong { font-size: clamp(27px, 2.2vw, 34px); margin-bottom: 12px; overflow-wrap: anywhere; }
.metric-delta { font-size: 12px; font-weight: 550; }
.metric-delta.unavailable { font-size: 11px; color: #64717e; }
.metric-delta.positive { color: #176349; }
.metric-delta.negative { color: #aa302b; }
.trend-grid { gap: 20px; padding-top: 24px; }
.trend-series { background: #f6f8fc; padding: 20px 14px 10px; border: 1px solid #e8edf4; border-radius: 16px; }
.trend-label { font-size: 14px; }
.trend-label small { font-size: 11px; color: #5f6d7b; }
.series-dot { width: 9px; height: 9px; }
.snapshot-table td strong { font-size: 24px; }
.snapshot-table .metric-delta, .analytics-table .metric-delta { font-size: 11px; }
.snapshot-table th { font-size: 12px; }
.button { background: var(--orange); border: 2px solid var(--orange); color: var(--navy); font-size: 14px; font-weight: 650; min-height: 44px; padding: 11px 20px; box-shadow: 0 3px 8px #fa46161a; }
.button:not(.secondary):hover { background: #ef4114; border-color: #ef4114; filter: none; }
.button.secondary { background: #fff; color: #224e82; border: 2px solid #92accb; box-shadow: none; }
.button.secondary:hover { background: #edf4fe; border-color: #245da8; }
.button:disabled { box-shadow: none; }
.icon-button { border-color: #a5b5c7; min-height: 40px; min-width: 40px; }
.text-link { font-size: 13px; color: #24568a; }
.section-tabs { background: #fff; border: 1px solid var(--line); padding: 5px; border-radius: 16px; }
.section-tabs a { font-size: 13px; min-height: 44px; padding: 11px 17px; }
.section-tabs a[aria-current='page'] { background: var(--orange); color: var(--navy); box-shadow: none; font-weight: 650; }
.analytics-context .muted, .model-badge { font-size: 13px; }
.model-badge { border-radius: 9px; background: var(--cool-surface); }
label, .monitor-form label { font-size: 13px; color: #4c6075; }
input, .settings-form input, .settings-form select, .filters select, .monitor-form input, .monitor-form select, .monitor-form textarea { font-size: 14px; border: 2px solid #d4dce5; border-radius: 10px; min-height: 44px; }
.settings-form .check-label input, .campaign-options input { min-height: 18px; }
.settings-form .muted, .monitor-form small { font-size: 13px; }
.settings-form h3 { font-size: 19px; }
.form-details summary { font-size: 13px; }
.sync-bar { background: #fff; border-color: var(--line); border-radius: 14px; }
.sync-bar strong { font-size: 14px; }
.sync-bar small { font-size: 12px; }
.sync-bar details { font-size: 13px; }
table { font-size: 13px; }
th { font-size: 12px; color: #526779; font-weight: 600; background: #f5f6f8; }
.clients-table th:first-child { background: #f5f6f8; }
.client-name { font-size: 14px; }
td small, .numeric small, .block { color: #627284; font-size: 11px; }
.badge, .count { font-size: 11px; border-radius: 7px; }
.badge.good { color: #28644c; background: #eaf5ee; }
.badge.pending { color: #805b23; background: #fff3dc; }
.notice { font-size: 14px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { font-size: 14px; color: #64717e; }
.empty-icon { background: var(--warm-surface); border: 0; color: var(--warm-ink); }
.goal-callout { background: var(--warm-surface); color: #673f2c; }
.goal-symbol { color: var(--orange); }
.goal-callout strong { font-size: 15px; }
.goal-callout p, .explore-card p { font-size: 13px; }
.explore-card summary { font-size: 14px; }
.goals-hero { background: #fff; border-color: #ccdaec; padding: 30px; }
.goals-hero h2 { font-size: 30px; color: var(--navy); }
.goals-hero p { font-size: 15px; color: var(--muted); }
.target-card { border-color: #dce5ef; }
.target-card h3 { font-size: 20px; }
.target-card > .muted, .target-card .eyebrow, .target-values small { font-size: 12px; }
.target-values strong { font-size: 31px; }
.target-notes { font-size: 14px; }
.guidance-cards .brand-accent { border-color: #cfdeef; background: #fff; }
.guidance-cards .brand-accent strong { color: var(--navy); }
.sidebar { background: linear-gradient(165deg, #102b48, #051528 70%); }
.sidebar .workspace-label { font-size: 10px; color: #d6bba7; letter-spacing: 1.5px; }
.nav-link .nav-text, .nav-branch > summary { font-size: 13px; }
.nav-heading { font-size: 10px; color: #b0bfd0; }
.nav-link.active { background: #294662; box-shadow: none; }
.nav-link.active .nav-glyph { color: #b7d1f3; }
.nav-client-name { font-size: 11px; color: #a9bdd3; }
.profile small { font-size: 11px; color: #a8b9cc; }
.profile .avatar { background: #fa4616; color: #051528; font-size: 12px; font-weight: 700; }
.page-footer { color: #687583; font-size: 11px; }
.login-main { background: var(--surface); }
.login-art { background: linear-gradient(145deg, #143452, #051528 75%); }
.login-art .eyebrow { color: #edb99d; font-size: 12px; }
.login-art h1 { color: #fff; font-size: clamp(40px, 4vw, 64px); line-height: 1.12; max-width: 580px; }
.login-art h1 span { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 7px; text-underline-offset: 12px; }
.login-art p { color: #c2d3e5; font-size: 17px; max-width: 430px; margin-top: 26px; }
.login-art small { color: #b3c3d6; font-size: 12px; }
.login-form { max-width: 400px; }
.login-form > .eyebrow { color: var(--warm-ink); font-size: 12px; }
.login-form h2 { font-size: 34px; }
.login-form .muted { font-size: 15px; }
.login-form .button { padding: 16px 20px; font-size: 15px; }
.fine-print { color: #687583; font-size: 12px; }
@media (min-width: 1900px) { .analytics-kpis { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); } }
@media (max-width: 1100px) { .analytics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .analytics-kpis .stat-card > strong { font-size: 30px; } }
@media (max-width: 760px) {
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  .topbar { font-size: 12px; }
  .page-heading { padding: 28px 0 24px; }
  .page-heading p:last-child { font-size: 14px; }
  .panel-heading { padding: 22px 18px; flex-wrap: wrap; }
  .panel-heading p { font-size: 13px; }
  .stat-card { padding: 20px 16px; min-height: 148px; }
  .stat-card > strong { font-size: 31px; }
  .stat-card .date-stat { font-size: 21px; }
  .stat-card small { font-size: 11px; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .analytics-kpis .stat-card { padding: 18px 14px; min-height: 150px; }
  .analytics-kpis .stat-card > span { font-size: 12px; }
  .analytics-kpis .stat-card > strong { font-size: 26px; overflow-wrap: anywhere; }
  .metric-delta { font-size: 11px; }
  .results-heading h2 { font-size: 23px; }
  .section-tabs a { font-size: 13px; }
  .analytics-context .button { font-size: 12px; padding: 10px 12px; }
  .analytics-context .muted, .model-badge { font-size: 12px; }
  .trend-grid { padding: 18px 14px; gap: 14px; }
  .trend-label { padding: 0 4px; }
  .trend-label small { font-size: 11px; }
  .goals-hero { padding: 23px 20px; }
  .goals-hero h2 { font-size: 26px; }
  .target-values strong { font-size: 28px; }
  input, .filters input, .settings-form input, .settings-form select, .filters select, .monitor-form input, .monitor-form select, .monitor-form textarea { font-size: 16px; }
  .mobile-navigation .sidebar .workspace-label { font-size: 10px; }
  .mobile-bar .mobile-menu-button { background: var(--orange); color: var(--navy); border-color: var(--orange); }
  .mobile-bar .mobile-menu-button:hover { background: #ef4114; border-color: #ef4114; }
  .login-art { min-height: 260px; padding: 30px 26px; }
  .login-art h1 { font-size: 36px; max-width: 380px; }
  .login-art h1 span { text-decoration-thickness: 4px; text-underline-offset: 7px; }
  .login-art h1 br { display: block; }
  .login-art .eyebrow { margin: 0; }
  .login-form h2 { font-size: 29px; }
}
@media (forced-colors: active) {
  .panel, .stat-card, .button, .button.secondary, .icon-button { border-color: ButtonText; }
  .login-art h1 span { text-decoration-color: Highlight; }
  .results-heading::before, .page-heading .eyebrow::before { background: Highlight; }
}

/* Meaningful section markers, no decorative diamonds or oversized ornaments. */
.page-heading .eyebrow::before, .portfolio-card > strong::after,
.results-heading::before, .sidebar .workspace-label::before,
.login-art::after, .accent-diamond { content: none; display: none; }
.analytics-kpis .stat-card, .guidance-cards .stat-card, .accent-card { background: #fff; border-color: #dce5f0; }
.analytics-kpis .stat-card > span, .guidance-cards .stat-card > span { color: #526171; }
.target-values strong { color: var(--navy); }
.trend-series { background: #f7faff; }
.brief-navigation { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.brief-navigation a { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 2px solid #d1dff0; border-radius: 12px; background: #fff; color: #25486f; font-size: 14px; font-weight: 600; text-decoration: none; }
.brief-navigation a:hover { border-color: var(--orange); }
.brief-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff0e8; color: #a43213; font-size: 13px; flex: 0 0 28px; }
.brief-section { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.brief-section legend { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 20px; font-weight: 650; color: var(--navy); padding: 0 0 18px; }
.brief-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-fields label { display: grid; gap: 8px; align-content: start; }
.brief-fields .full { grid-column: 1/-1; }
.brief-upload { background: #f2f7fe; padding: 18px; border: 2px dashed #a6bddb; border-radius: 12px; }
.brief-upload input { background: white; width: 100%; }
.brief-section details > summary { color: #244f82; cursor: pointer; font-size: 14px; font-weight: 600; padding: 12px 0; }
.brief-section details[open] > summary { margin-bottom: 14px; }
#business-brief, #client-economics, #client-targets { scroll-margin-top: 24px; }
@media(max-width:760px) { .brief-fields { grid-template-columns: 1fr; } .brief-navigation a { padding: 10px 12px; font-size: 12px; } }

.trend-series.purchases { --series: #315fc1; }

.brief-overview { padding: 24px; }
.brief-overview p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 14px; color: #3e5570; }
.brief-objective { border-left: 4px solid var(--orange); padding: 3px 0 3px 18px; margin-bottom: 22px; }
.brief-objective span { color: #8e381e; font-weight: 600; font-size: 12px; }
.brief-objective p { font-size: 20px; font-weight: 550; color: var(--navy); margin: 8px 0; }
.brief-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-summary-grid h3 { font-size: 14px; margin: 0; color: #244f82; }
.brief-summary-grid p { margin: 6px 0 0; }
.brief-context { margin-top: 22px; }
.brief-context summary { font-size: 14px; cursor: pointer; color: #244f82; font-weight: 600; }
.brief-editor > summary { padding: 18px 24px; background: #f6f9ff; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 650; color: #244f82; border-radius: 0 0 18px 18px; }
.brief-editor[open] > summary { border-radius: 0; }
@media(max-width:600px) { .brief-overview { padding: 20px; } .brief-summary-grid { grid-template-columns: 1fr; } .brief-objective p { font-size: 19px; } }
