@font-face {
  font-family: "League Spartan";
  src: url("/fonts/league-spartan-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #161513;
  --secondary: #625e57;
  --muted: #817b72;
  --paper: #f4f1ea;
  --card: #fffefb;
  --line: #ddd6ca;
  --blue: #2456a7;
  --blue-soft: #edf3fc;
  --red: #c91e3a;
  --red-soft: #fff1f3;
  --green: #17633b;
  --green-soft: #edf8f1;
  --amber: #8c5e14;
  --amber-soft: #fff6df;
  --shadow: 0 9px 25px rgb(54 42 25 / 7%);
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "League Spartan", var(--body);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--body); }
body { max-width: 100%; margin: 0; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 232px;
  flex-direction: column;
  border-right: 1px solid #d9d2c7;
  background: #fcfaf6;
}

.brand { display: flex; align-items: center; gap: 11px; min-height: 86px; padding: 18px 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--red); color: #fff; font: 700 24px/1 var(--display); }
.brand strong, .brand small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { font: 700 20px/1 var(--display); }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar nav { flex: 1; overflow: auto; padding: 15px 12px 24px; }
.sidebar nav section + section { margin-top: 20px; }
.nav-label { display: block; padding: 0 10px 6px; color: #8b857b; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 2px 0; padding: 9px 10px; border-radius: 9px; color: #4f4a44; font-size: 11px; font-weight: 700; text-decoration: none; }
.sidebar nav a i { display: grid; width: 20px; color: #837c72; font-size: 14px; font-style: normal; place-items: center; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { background: #f0ece4; color: var(--ink); outline: 0; }
.sidebar nav a.is-active { background: #eaf0f9; color: var(--blue); }
.sidebar nav a.is-active i { color: var(--blue); }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #c8d5e7; border-radius: 50%; background: #edf3fb; color: var(--blue); font-size: 10px; font-weight: 800; }
.sidebar-foot strong { font-size: 10px; }
.sidebar-foot small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.app-main { min-width: 0; min-height: 100vh; margin-left: 232px; }
.topbar { display: flex; min-height: 132px; align-items: center; gap: 24px; padding: 24px clamp(24px, 4vw, 52px); border-bottom: 1px solid var(--line); background: rgb(255 254 251 / 88%); backdrop-filter: blur(14px); }
.topbar > div:nth-child(2) { flex: 1; }
.eyebrow, .project-kicker { color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.topbar h1 { margin: 5px 0 0; font: 700 clamp(30px, 4vw, 45px)/.95 var(--display); letter-spacing: -.035em; }
.topbar p { max-width: 720px; margin: 7px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.45; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.status-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #bed8c6; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 8.5px; font-weight: 800; white-space: nowrap; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #27925a; box-shadow: 0 0 0 3px rgb(39 146 90 / 12%); }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 9.5px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-secondary { border-color: #cbc3b7; background: #fff; color: #403d38; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--blue); color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgb(36 86 167 / 10%); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: #19468e; outline: 0; }
.menu-button { display: none; border: 0; background: transparent; font-size: 22px; }

.preview-notice { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 9px clamp(24px, 4vw, 52px); border-bottom: 1px solid #d4e0f1; background: #eef4fd; color: #244d83; font-size: 9px; line-height: 1.45; }
.preview-notice span { min-width: 0; overflow-wrap: anywhere; }
.preview-notice strong { flex: 0 0 auto; }
main { width: min(1420px, 100%); min-width: 0; margin: 0 auto; padding: 20px clamp(20px, 4vw, 52px) 72px; }
.source-line { margin: 0 0 13px; color: var(--muted); font-size: 8.5px; }

.scope-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #ebe7df; }
.scope-toolbar span, .scope-toolbar strong { display: block; }
.scope-toolbar span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scope-toolbar strong { margin-top: 2px; font-size: 11px; }
.period-tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #d5cec3; border-radius: 9px; background: #e1ddd5; }
.period-tabs button { min-height: 29px; padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: #6f6961; font-size: 8.5px; font-weight: 750; cursor: pointer; }
.period-tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(50 39 23 / 11%); }

.section-page { display: grid; min-width: 0; gap: 24px; animation: enter .22s ease-out; }
.section-page > *, .section-heading > *, .section-header > *, .focus-card > *, .monthly-section > * { min-width: 0; }
.focus-card h3, .focus-card p, .section-heading h2, .section-heading p { overflow-wrap: anywhere; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2, .section-header h2 { margin: 6px 0 0; font: 700 clamp(28px, 4vw, 45px)/1 var(--display); letter-spacing: -.04em; }
.section-heading p, .section-header p { max-width: 720px; margin: 9px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.55; }
.scope-label { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8.5px; font-weight: 750; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }

.focus-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .7fr); overflow: hidden; }
.focus-card > div { padding: clamp(23px, 3vw, 36px); }
.focus-card h3 { max-width: 760px; margin: 8px 0 0; font: 700 clamp(24px, 3.2vw, 38px)/1.03 var(--display); letter-spacing: -.035em; }
.focus-card p { max-width: 80ch; margin: 12px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.55; }
.focus-action { display: grid; align-content: center; border-left: 1px solid #d8e2ef; background: #f0f5fc; }
.focus-action strong { font: 700 20px/1.1 var(--display); }
.focus-action span { margin-top: 7px; color: var(--secondary); font-size: 9.5px; line-height: 1.45; }
.focus-action .button { margin-top: 13px; justify-self: start; }
.focus-card.is-attention .focus-action { border-color: #efc6cd; background: var(--red-soft); }
.focus-card.is-positive .focus-action { border-color: #c7e0cf; background: var(--green-soft); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.metric-tile { display: flex; min-height: 144px; flex-direction: column; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; text-align: left; text-decoration: none; box-shadow: 0 3px 12px rgb(54 42 25 / 4%); }
button.metric-tile { width: 100%; cursor: pointer; }
.metric-tile:hover, .metric-tile:focus-visible { border-color: #95add1; outline: 0; box-shadow: 0 8px 22px rgb(36 86 167 / 11%); transform: translateY(-1px); }
.metric-tile > span { color: var(--secondary); font-size: 9.5px; font-weight: 750; }
.metric-tile > strong { margin-top: 15px; font: 700 clamp(29px, 3vw, 42px)/1 var(--display); font-variant-numeric: tabular-nums; }
.metric-tile > small { margin-top: 7px; color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.metric-tile > em { margin-top: auto; padding-top: 9px; color: var(--blue); font-size: 8.5px; font-style: normal; font-weight: 800; }
.metric-tile.is-attention { border-top: 3px solid #cc4d5e; }
.metric-tile.is-positive { border-top: 3px solid #32845a; }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.section-header h2 { font-size: clamp(23px, 3vw, 32px); }
.section-header h3 { margin: 6px 0 0; font: 700 clamp(21px, 2.6vw, 29px)/1.08 var(--body); letter-spacing: -.035em; }
.section-header p { max-width: 75ch; }
.goal-section { display: grid; gap: 15px; }
.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.goal-card { display: flex; min-height: 228px; flex-direction: column; padding: 17px; }
.goal-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.goal-card header span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.goal-card header b, .readiness { display: inline-flex; min-height: 23px; align-items: center; padding: 4px 8px; border: 1px solid #d5dce6; border-radius: 999px; background: #f7f9fb; color: var(--secondary); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.goal-card.is-ahead header b { border-color: #bddbc7; background: var(--green-soft); color: var(--green); }
.goal-card.is-on-pace header b { border-color: #bfd1eb; background: var(--blue-soft); color: var(--blue); }
.goal-card.is-behind header b { border-color: #edc1c8; background: var(--red-soft); color: #9b3141; }
.goal-card h3 { margin: 12px 0 0; font-size: 13px; line-height: 1.3; }
.goal-card > strong { margin-top: 11px; font: 700 clamp(29px, 3vw, 38px)/1 var(--display); }
.goal-card > strong span { color: var(--muted); font: 650 13px/1 var(--body); }
.goal-track { position: relative; height: 8px; margin-top: 15px; border-radius: 999px; background: #e5e8ed; }
.goal-track > span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--blue); }
.goal-card.is-ahead .goal-track > span { background: #278052; }
.goal-card.is-behind .goal-track > span { background: #c84255; }
.goal-track i { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; transform: translateX(-1px); }
.goal-track.is-empty i { display: none; }
.goal-card > p { margin: 11px 0 0; color: var(--secondary); font-size: 9.5px; line-height: 1.45; }
.goal-card > p b { color: var(--ink); }
.goal-card footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--muted); font-size: 8.2px; line-height: 1.4; }
.goal-card footer a { color: var(--blue); font-weight: 800; text-decoration: none; }

.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.panel { padding: clamp(20px, 2.6vw, 30px); }
.panel > header h3 { margin: 5px 0 0; font: 700 22px/1.1 var(--display); }
.panel > header p { margin: 8px 0 0; color: var(--secondary); font-size: 9.5px; line-height: 1.5; }
.bars { display: grid; gap: 14px; margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, 2fr) 62px; align-items: center; gap: 13px; }
.bar-row button { border: 0; background: none; color: inherit; font-size: 9.5px; font-weight: 750; text-align: left; cursor: pointer; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ece8e1; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bar-row strong { text-align: right; font: 700 14px/1 var(--display); }
.bar-row small { color: var(--muted); font: 500 8px/1 var(--body); }

.action-card { overflow: hidden; }
.action-card > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px 26px 19px; border-bottom: 1px solid var(--line); }
.action-card h3 { margin: 6px 0 0; font: 700 24px/1 var(--display); }
.action-card header p { max-width: 72ch; margin: 8px 0 0; color: var(--secondary); font-size: 9.5px; line-height: 1.5; }
.action-total { text-align: right; }
.action-total strong, .action-total span { display: block; }
.action-total strong { font: 700 36px/1 var(--display); }
.action-total span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.action-list { display: grid; }
.action-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(240px, 2fr); align-items: center; gap: 28px; padding: 14px 26px; border: 0; border-bottom: 1px solid #ece7df; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover, .action-row:focus-visible { background: #f5f8fc; outline: 0; }
.action-label strong, .action-label span { display: block; }
.action-label strong { font-size: 10px; }
.action-label span { margin-top: 3px; color: var(--muted); font-size: 8.5px; }
.action-measure { display: grid; grid-template-columns: 1fr 55px 42px; align-items: center; gap: 12px; }
.action-measure .bar-track span { background: var(--red); }
.action-measure strong { text-align: right; font: 700 14px/1 var(--display); }
.action-measure em { color: var(--muted); font-size: 8px; font-style: normal; text-align: right; }

.monthly-section { display: grid; gap: 14px; }
.monthly-section > header > span { color: var(--blue); font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.monthly-section > header h2 { margin: 6px 0 0; font: 700 clamp(23px, 3vw, 32px)/1.05 var(--body); letter-spacing: -.035em; }
.comparison { color: var(--green) !important; font-weight: 800; }
.comparison.is-down { color: #9b3141 !important; }
.mini-note { margin: 0; padding: 11px 14px; border: 1px solid #d5dfec; border-radius: 10px; background: #f0f5fb; color: #2a4f7f; font-size: 9px; line-height: 1.5; }

.geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rank-list { display: grid; gap: 12px; margin-top: 19px; }
.rank-row { display: grid; grid-template-columns: 30px minmax(130px, 1fr) minmax(100px, 1.5fr) 50px; align-items: center; gap: 11px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.rank-row:hover strong:first-of-type { color: var(--blue); }
.rank-row > b { color: var(--muted); font-size: 9px; }
.rank-row > strong { font-size: 9.5px; }
.rank-row > em { color: var(--muted); font-size: 8px; font-style: normal; text-align: right; }
.layer-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.layer-tabs button { min-height: 32px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--secondary); font-size: 8.5px; font-weight: 750; cursor: pointer; }
.layer-tabs button.is-active { border-color: #9db4d5; background: var(--blue-soft); color: var(--blue); }

.ladder { display: grid; gap: 14px; margin-top: 22px; }
.ladder-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 12px; }
.ladder-row span { font-size: 9px; font-weight: 750; }
.ladder-row strong { text-align: right; font: 700 14px/1 var(--display); }
.ladder-row:nth-child(1) .bar-track span { background: #8da3c2; }
.ladder-row:nth-child(2) .bar-track span { background: #6383b1; }
.ladder-row:nth-child(3) .bar-track span { background: #3f66a0; }
.ladder-row:nth-child(4) .bar-track span { background: #214d8f; }

.boundary { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #e6d8b8; border-radius: 10px; background: #fff9e9; color: #75501a; font-size: 9px; line-height: 1.45; }
.boundary strong { flex: 0 0 auto; }

.goals-page .goals-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 38px); }
.goals-intro h2 { max-width: 730px; margin: 7px 0 0; font: 700 clamp(27px, 4vw, 42px)/1.02 var(--display); letter-spacing: -.045em; }
.goals-intro p { max-width: 75ch; margin: 11px 0 0; color: var(--secondary); font-size: 11px; line-height: 1.55; }
.goal-group { display: grid; gap: 13px; }
.goal-group > header span { color: var(--blue); font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.goal-group > header h2 { margin: 6px 0 0; font: 700 clamp(23px, 3vw, 31px)/1.05 var(--body); letter-spacing: -.035em; }
.goal-editor { overflow: hidden; }
.goal-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 19px 21px 15px; border-bottom: 1px solid var(--line); }
.goal-editor h3 { margin: 5px 0 0; font-size: 15px; }
.goal-editor header p { max-width: 76ch; margin: 5px 0 0; color: var(--secondary); font-size: 9px; line-height: 1.45; }
.readiness.is-ready { border-color: #bddbc7; background: var(--green-soft); color: var(--green); }
.readiness.is-needed { border-color: #edc1c8; background: var(--red-soft); color: #9b3141; }
.goal-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 17px 21px 20px; }
.goal-fields label, .goal-fields .field { display: grid; align-content: start; gap: 6px; }
.goal-fields label > span, .goal-fields .field > span { color: var(--secondary); font-size: 8.5px; font-weight: 750; }
.goal-fields input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #cbc3b7; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; }
.goal-fields input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgb(36 86 167 / 10%); }
.goal-fields input:disabled { background: #f1eee8; color: var(--muted); }
.goal-fields small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.goal-fields .field strong { min-height: 39px; align-content: center; font-size: 9.5px; }
.save-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 21px; border-top: 1px solid var(--line); background: #faf8f4; }
.save-note span { color: var(--muted); font-size: 8.5px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; max-width: 360px; padding: 12px 15px; border-radius: 10px; background: #1d2734; color: #fff; font-size: 9.5px; box-shadow: 0 14px 35px rgb(0 0 0 / 25%); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.builder-card { display: grid; gap: 14px; padding: clamp(23px, 3vw, 36px); }
.builder-card label { font-size: 9px; font-weight: 800; }
.builder-card textarea { width: 100%; min-height: 92px; padding: 14px; border: 1px solid #cbc3b7; border-radius: 10px; resize: vertical; }
.builder-card .button { justify-self: start; }

.drilldown-dialog { width: min(620px, calc(100% - 30px)); padding: 29px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); color: var(--ink); box-shadow: 0 25px 75px rgb(20 17 13 / 25%); }
.drilldown-dialog::backdrop { background: rgb(28 25 21 / 42%); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 13px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f0ece6; color: var(--secondary); font-size: 18px; cursor: pointer; }
.drilldown-dialog h2 { margin: 8px 0 0; font: 700 30px/1 var(--display); }
.drilldown-dialog > p { margin: 10px 0 0; color: var(--secondary); font-size: 10.5px; line-height: 1.55; }
.dialog-scope { margin-top: 15px; padding: 11px 13px; border-radius: 9px; background: #eef4fd; color: #28548e; font-size: 9px; font-weight: 750; }
.dialog-demo { margin-top: 21px; }
.dialog-demo > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-demo ul { display: grid; gap: 9px; margin: 10px 0 0; padding: 0; list-style: none; }
.dialog-demo li { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.dialog-demo b { font-size: 10px; }
.dialog-demo small { color: var(--secondary); font-size: 9px; line-height: 1.4; }
.drilldown-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.drilldown-dialog footer span { max-width: 360px; color: var(--muted); font-size: 8.5px; line-height: 1.4; }

@media (max-width: 1100px) {
  .metric-grid, .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: 12px 0 35px rgb(0 0 0 / 17%); }
  .app-main { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { min-height: 110px; }
  .topbar-actions .status-chip { display: none; }
  .focus-card, .split-grid, .geo-grid { grid-template-columns: 1fr; }
  .focus-action { border-top: 1px solid #d8e2ef; border-left: 0; }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; padding: 19px 18px; }
  .topbar p { display: none; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .preview-notice { align-items: flex-start; flex-direction: column; padding: 10px 18px; }
  main { padding: 16px 14px 54px; }
  .scope-toolbar, .section-heading, .section-header, .action-card > header, .goals-page .goals-intro, .goal-editor > header { align-items: stretch; flex-direction: column; }
  .period-tabs { align-self: stretch; overflow-x: auto; }
  .period-tabs button { flex: 1 0 auto; }
  .metric-grid, .goal-grid, .goal-fields { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: minmax(100px, 1fr) 1.5fr 45px; }
  .action-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; }
  .action-measure { grid-template-columns: 1fr 48px 38px; }
  .rank-row { grid-template-columns: 24px minmax(100px, 1fr) minmax(70px, 1fr) 42px; }
  .save-note, .drilldown-dialog footer { align-items: stretch; flex-direction: column; }
  .save-note .button, .drilldown-dialog footer .button { width: 100%; }
}
