/* Kindred donor management demo. Shared styles. Light theme. */

:root {
  --green: #276749;
  --green-deep: #1B4D35;
  --green-soft: #E4EFE9;
  --green-mid: #2F855A;
  --brass: #B7791F;
  --brass-soft: #F4E9D4;
  --ink: #14261E;
  --ink-soft: #46564E;
  --ink-faint: #6B7A72;
  --line: #E1E8E4;
  --line-strong: #CBD8D1;
  --bg: #FBFCFB;
  --surface: #FFFFFF;
  --surface-2: #F4F7F5;
  --shadow: 0 1px 2px rgba(20, 38, 30, 0.05), 0 12px 30px rgba(20, 38, 30, 0.06);
  --shadow-soft: 0 1px 2px rgba(20, 38, 30, 0.04);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Mulish", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "Sometype Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.serif { font-family: var(--serif); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.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;
}

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
}
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(39, 103, 73, 0.28);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; line-height: 1; color: var(--ink); }
.brand-name .dot { color: var(--brass); }
.brand-sub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { padding: 0 8px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.14s, color 0.14s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active {
  background: var(--green-soft);
  color: var(--green-deep);
}
.nav a.active svg { opacity: 1; color: var(--green); }

.side-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brass-soft); color: var(--brass);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  flex: none;
}
.side-foot .who { font-size: 0.82rem; font-weight: 700; }
.side-foot .role { font-size: 0.72rem; color: var(--ink-faint); }

/* ---------- Main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 251, 0.85);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-family: var(--serif); font-size: 1.34rem; }
.topbar .page-kicker { display: block; }
.topbar-search {
  margin-left: auto;
  position: relative;
  display: flex; align-items: center;
}
.topbar-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-faint); }
.topbar-search input {
  font-family: var(--sans);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px 9px 34px;
  width: 240px;
  font-size: 0.86rem;
  color: var(--ink);
}
.topbar-search input:focus { outline: 2px solid var(--green-soft); outline-offset: 1px; border-color: var(--green); }

.demo-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
  background: var(--brass-soft);
  padding: 5px 10px; border-radius: 999px;
}
.demo-flag span { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

.content { padding: 30px 34px 56px; max-width: 1180px; width: 100%; }

.btn {
  font-family: var(--sans); font-weight: 700; font-size: 0.84rem;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.14s, border-color 0.14s, transform 0.06s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 34px 0 14px;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-family: var(--serif); font-size: 1.28rem; }
.section-head .link {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); text-decoration: none; font-weight: 600;
}
.section-head .link:hover { text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-pad { padding: 20px 22px; }

/* ---------- Stat tiles ---------- */
.stat {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat .label { display: flex; align-items: center; gap: 7px; }
.stat .label svg { width: 15px; height: 15px; color: var(--green); }
.stat .value { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.stat .delta { font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.delta.up { color: var(--green-mid); }
.delta.down { color: #B44A2E; }
.stat .note { font-size: 0.78rem; color: var(--ink-faint); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Goal hero (signature) ---------- */
.goal-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px 30px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(183, 121, 31, 0.07) 0%, transparent 45%),
    linear-gradient(160deg, #FFFFFF 0%, #F4F7F5 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.goal-arc { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.goal-arc svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.goal-arc-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.goal-arc-center .pct { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--green-deep); }
.goal-arc-center .of { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

.goal-detail .kicker { margin-bottom: 8px; }
.goal-detail h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.08; margin-bottom: 4px; }
.goal-detail .raised-line { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 20px; }
.goal-detail .raised-line b { color: var(--ink); font-weight: 800; }
.goal-figures { display: flex; gap: 30px; flex-wrap: wrap; }
.goal-figures .fig .n { font-family: var(--serif); font-size: 1.35rem; }
.goal-figures .fig .l { font-size: 0.76rem; color: var(--ink-faint); }
.goal-figures .fig .n.brass { color: var(--brass); }

.milestone-track {
  margin-top: 22px;
  display: flex; align-items: center; gap: 0;
}
.milestone-track .ms {
  flex: 1; position: relative; text-align: center;
  padding-top: 22px;
  font-size: 0.72rem; color: var(--ink-faint);
}
.milestone-track .ms::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line-strong);
}
.milestone-track .ms:first-child::before { left: 50%; }
.milestone-track .ms:last-child::before { right: 50%; }
.milestone-track .ms .dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
}
.milestone-track .ms.done .dot { background: var(--green); border-color: var(--green); }
.milestone-track .ms.done::before { background: var(--green); }
.milestone-track .ms.now .dot { border-color: var(--brass); background: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }

/* ---------- Progress bars ---------- */
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-mid), var(--green)); }
.bar.brass > span { background: linear-gradient(90deg, #D4922B, var(--brass)); }
.bar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bar-row .amt { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Feed ---------- */
.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex; gap: 13px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: none; }
.feed-icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.feed-icon svg { width: 17px; height: 17px; }
.feed-body { min-width: 0; }
.feed-body .t { font-size: 0.9rem; }
.feed-body .t b { font-weight: 800; }
.feed-body .m { font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
table.data thead th {
  text-align: left; font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data thead th.num, table.data td.num { text-align: right; }
table.data tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr.rowbtn { cursor: pointer; }
table.data tbody tr.rowbtn:hover { background: var(--surface-2); }
table.data tbody tr.rowbtn:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
table.data .num { font-family: var(--mono); font-size: 0.82rem; }
.donor-cell { display: flex; align-items: center; gap: 11px; }
.donor-cell .a { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; }
.a.ind { background: var(--green-soft); color: var(--green-deep); }
.a.org { background: var(--brass-soft); color: var(--brass); }
.donor-cell .nm { font-weight: 700; }
.donor-cell .em { font-size: 0.72rem; color: var(--ink-faint); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
  white-space: nowrap;
}
.tag.green { background: var(--green-soft); color: var(--green-deep); }
.tag.brass { background: var(--brass-soft); color: var(--brass); }
.tag.grey { background: #EDF1EF; color: var(--ink-faint); }
.tag.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Filters ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ink-faint); }
.field input, .field select {
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-sm); padding: 9px 13px;
}
.field input { padding-left: 32px; min-width: 220px; }
.field select { padding-right: 30px; cursor: pointer; }
.field input:focus, .field select:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.result-note { font-size: 0.78rem; color: var(--ink-faint); margin-left: auto; }

/* ---------- Detail drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(20, 38, 30, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 40;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 420px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(20, 38, 30, 0.12);
  transform: translateX(100%); transition: transform 0.24s ease; z-index: 50;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 14px;
}
.drawer-head .a { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 0.8rem; }
.drawer-head h3 { font-family: var(--serif); font-size: 1.3rem; }
.drawer-head .meta { font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }
.drawer-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ink-faint); padding: 4px; border-radius: 8px; }
.drawer-close:hover { background: var(--surface-2); color: var(--ink); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { padding: 20px 24px; overflow-y: auto; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 22px; }
.kv .k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.kv .v { font-size: 0.98rem; font-weight: 700; margin-top: 3px; }
.kv .v.serif { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }

.hist-title { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.hist-item:last-child { border-bottom: none; }
.hist-item .amt { font-family: var(--serif); font-size: 1.05rem; }
.hist-item .sub { font-size: 0.74rem; color: var(--ink-faint); }

/* ---------- Campaign cards (signature) ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.camp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
  cursor: pointer;
}
.camp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.camp-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.camp-banner {
  padding: 20px 22px 18px; position: relative;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
}
.camp-banner.brass { background: linear-gradient(150deg, #C88A2A 0%, #97620F 100%); }
.camp-banner.closed { background: linear-gradient(150deg, #4A5A52 0%, #303B35 100%); }
.camp-banner .fundtag {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.85;
}
.camp-banner h3 { font-family: var(--serif); font-size: 1.4rem; margin: 4px 0 10px; }
.camp-ring { position: absolute; top: 18px; right: 20px; width: 60px; height: 60px; }
.camp-ring svg { transform: rotate(-90deg); }
.camp-ring .rt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; }
.camp-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.camp-body .desc { font-size: 0.86rem; color: var(--ink-soft); }
.camp-figures { display: flex; justify-content: space-between; gap: 10px; }
.camp-figures .f .n { font-family: var(--serif); font-size: 1.2rem; }
.camp-figures .f .l { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.camp-spark { height: 40px; width: 100%; display: block; }
.camp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.camp-foot .dates { font-size: 0.74rem; color: var(--ink-faint); }

/* ---------- Charts ---------- */
.chart-card { padding: 22px 24px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.chart-legend .li { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink-soft); }
.chart-legend .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.bars-svg { width: 100%; height: auto; display: block; }
.bars-svg text { font-family: var(--mono); font-size: 9px; fill: var(--ink-faint); letter-spacing: 0.04em; }

.fund-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fund-row:last-child { border-bottom: none; }
.fund-row .nm { width: 140px; flex: none; font-weight: 700; font-size: 0.86rem; }
.fund-row .bar { flex: 1; }
.fund-row .amt { width: 96px; text-align: right; font-family: var(--mono); font-size: 0.8rem; flex: none; }

.legend-inline { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Record gift panel ---------- */
.form-note {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--brass-soft); color: #7A5210;
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.8rem;
  margin-bottom: 18px;
}
.form-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.form-field input, .form-field select {
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden; }
.summary-strip .s { padding: 16px 20px; border-right: 1px solid var(--line); }
.summary-strip .s:last-child { border-right: none; }
.summary-strip .s .l { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.summary-strip .s .n { font-family: var(--serif); font-size: 1.5rem; margin-top: 3px; }

.mobile-nav { display: none; }

.empty { padding: 34px; text-align: center; color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .goal-hero { grid-template-columns: 1fr; }
  .goal-arc { margin-bottom: 6px; }
  .camp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav {
    display: flex; gap: 4px; overflow-x: auto;
    padding: 10px 16px; border-bottom: 1px solid var(--line);
    background: var(--surface); position: sticky; top: 0; z-index: 30;
  }
  .mobile-nav a {
    white-space: nowrap; text-decoration: none; color: var(--ink-soft);
    font-weight: 700; font-size: 0.82rem; padding: 7px 13px; border-radius: 999px;
  }
  .mobile-nav a.active { background: var(--green-soft); color: var(--green-deep); }
  .topbar { padding: 14px 16px; }
  .topbar-search { display: none; }
  .content { padding: 22px 16px 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip .s:nth-child(2) { border-right: none; }
  .summary-strip .s:nth-child(1), .summary-strip .s:nth-child(2) { border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .goal-figures { gap: 20px; }
  .drawer { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
