:root {
  --evergreen-900: #08261a;
  --evergreen-800: #0d3524;
  --evergreen-700: #145a37;
  --evergreen-500: #1f7a4d;
  --cranberry: #c21f33;
  --cranberry-dark: #921627;
  --gold: #e9b949;
  --gold-light: #f6d77a;
  --cream: #fdf8ec;
  --cream-deep: #f3e8cf;
  --ink: #2a1a12;
  --ink-soft: #5b4636;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  font-family: var(--body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(233, 185, 73, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(194, 31, 51, 0.22), transparent 60%),
    linear-gradient(180deg, var(--evergreen-800), var(--evergreen-900));
  background-attachment: fixed;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

a { color: var(--gold-light); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

/* ---------- snow ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.flake {
  position: absolute;
  top: -2rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation-name: fall, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
}
@keyframes fall { to { transform: translateY(110vh); } }
@keyframes sway { from { margin-left: -14px; } to { margin-left: 14px; } }

/* ---------- layout ---------- */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 620px) minmax(150px, 1fr);
  gap: clamp(12px, 3vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 24px);
}

.rail { position: sticky; top: 0; height: 100vh; display: flex; justify-content: center; }
.rail img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: top; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
.rail-right img { transform: scaleX(-1); }

.garland { display: none; position: relative; z-index: 1; width: 100%; height: 56px; object-fit: cover; }
.garland-bottom { transform: scaleY(-1); }

.center { padding: 20px 0 32px; min-width: 0; }

/* ---------- nav ---------- */
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.navlink {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid rgba(246, 215, 122, 0.45);
  border-radius: 999px;
  background: rgba(8, 38, 26, 0.5);
  transition: background 0.2s, border-color 0.2s;
}
.navlink:hover { background: rgba(233, 185, 73, 0.16); border-color: var(--gold); }

/* ---------- hero ---------- */
.hero { text-align: center; }
.hero-art {
  width: min(320px, 78%);
  height: auto;
  display: block;
  margin: 0 auto -6px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px); } }

h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--cranberry-dark), 0 6px 24px rgba(0, 0, 0, 0.35);
}
.lede { margin: 0 auto 24px; max-width: 30rem; color: #d9e6dc; line-height: 1.55; font-size: 1.05rem; }

/* ---------- card ---------- */
.card {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(233, 185, 73, 0.18), transparent 40%),
    linear-gradient(180deg, var(--cream), var(--cream-deep));
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  border-top: 8px solid var(--cranberry);
}
/* bow on top of the card */
.card::before, .card::after {
  content: "";
  position: absolute;
  top: -26px;
  width: 38px;
  height: 26px;
  border: 6px solid var(--gold);
  border-radius: 50% 50% 10% 50%;
  background: var(--cranberry);
}
.card::before { left: calc(50% - 40px); transform: rotate(-18deg); }
.card::after { left: calc(50% + 2px); transform: scaleX(-1) rotate(-18deg); }

.card-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  margin: 4px 0 18px;
  color: var(--evergreen-700);
  text-align: center;
}

.eyebrow {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cranberry);
}

/* ---------- wishlist rows ---------- */
.wish-list { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: wish; display: grid; gap: 10px; }
.wish-row {
  counter-increment: wish;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  animation: pop 0.25s ease-out;
}
.wish-row::before {
  content: counter(wish);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  background: radial-gradient(circle at 35% 30%, #ef5a62, var(--cranberry) 55%, var(--cranberry-dark));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}
.wish-row:nth-child(even)::before {
  background: radial-gradient(circle at 35% 30%, #4fb07c, var(--evergreen-500) 55%, var(--evergreen-700));
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

.wish-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e2d6bb;
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wish-input::placeholder { color: #a89a85; }
.wish-input:focus { outline: none; border-color: var(--evergreen-500); box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.18); }

.remove-row {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.remove-row:hover { background: rgba(194, 31, 51, 0.1); color: var(--cranberry); }
/* keep the column width when the remove button is hidden */
.remove-row[hidden] { display: block !important; visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  border: 0;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.65; }

.btn-primary {
  width: 100%;
  margin-top: 8px;
  font-size: 1.08rem;
  padding: 15px 22px;
  color: var(--cream);
  background: linear-gradient(180deg, #d9303f, var(--cranberry-dark));
  box-shadow: 0 6px 0 #6c0f1c, 0 14px 24px -10px rgba(146, 22, 39, 0.8);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #e53c4a, #a5182b); }
.btn-primary:active { box-shadow: 0 3px 0 #6c0f1c; transform: translateY(3px); }

.btn-ghost {
  color: var(--evergreen-700);
  background: transparent;
  border: 2px dashed rgba(20, 90, 55, 0.45);
}
.btn-ghost:hover:not(:disabled) { background: rgba(31, 122, 77, 0.08); border-style: solid; }
#add-row { width: 100%; margin-bottom: 12px; }

.is-loading .btn-label::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.linkish {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--evergreen-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.error {
  margin: 4px 0 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fde6e6;
  color: #8c1222;
  font-weight: 600;
  border-left: 4px solid var(--cranberry);
}

.hint { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin: 14px 0 0; }

/* ---------- saved result ---------- */
.pin-result { text-align: center; outline: none; }
.pin-result .card-title { margin-bottom: 8px; }
.pin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.pin-actions .btn-primary { margin-top: 0; padding: 13px 18px; font-size: 1rem; }
.pin-actions .btn-ghost { padding: 11px 18px; }

/* ---------- field labels ---------- */
.field-label { display: block; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; text-align: center; }

.tag-list { list-style: none; margin: 0; padding: 0; counter-reset: tag; display: grid; gap: 12px; }
.tag-list li {
  counter-increment: tag;
  position: relative;
  padding: 14px 16px 14px 62px;
  background: #fff;
  border-radius: 6px 14px 14px 6px;
  border: 1px solid #eadfc6;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
  overflow-wrap: anywhere;
  animation: pop 0.3s ease-out both;
}
.tag-list li::before {
  content: counter(tag);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  background: var(--cranberry);
  border-radius: 6px 0 0 6px;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 100%, 0 100%);
}
.tag-list li:nth-child(even)::before { background: var(--evergreen-500); }
/* tag hole */
.tag-list li::after {
  content: "";
  position: absolute;
  left: 50px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold);
}
.tag-list li:nth-child(2) { animation-delay: 0.05s; }
.tag-list li:nth-child(3) { animation-delay: 0.1s; }
.tag-list li:nth-child(4) { animation-delay: 0.15s; }
.tag-list li:nth-child(n + 5) { animation-delay: 0.2s; }

.foot { text-align: center; margin-top: 28px; color: rgba(253, 248, 236, 0.6); font-size: 0.9rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .rail { display: none; }
  .garland { display: block; }
  .center { padding-top: 4px; max-width: 620px; width: 100%; margin: 0 auto; }
}

@media (max-width: 420px) {
  .pin-actions { grid-template-columns: 1fr; }
  .wish-row { grid-template-columns: 34px 1fr auto; gap: 8px; }
  .wish-row::before { width: 34px; height: 34px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snow { display: none; }
}

/* ---------- name field ---------- */
.name-input, .wish-textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #e2d6bb;
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.name-input::placeholder { color: #a89a85; }
.name-input:focus, .wish-textarea:focus { outline: none; border-color: var(--evergreen-500); box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.18); }
.name-input[aria-invalid="true"] { border-color: var(--cranberry); }
#wish-form .name-input { font-size: 1.15rem; font-weight: 600; }
.name-preview { min-height: 1.3em; margin: 6px 0 16px; font-size: 0.88rem; color: var(--ink-soft); text-align: center; overflow-wrap: anywhere; }
.name-input-center { display: block; max-width: 340px; margin: 0 auto 14px; text-align: center; font-size: 1.3rem; }
.btn-narrow { max-width: 340px; display: flex; margin: 8px auto 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.link-display {
  margin: 0 auto 20px;
  display: inline-block;
  max-width: 100%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  font-weight: 700;
  padding: 12px 18px;
  color: var(--evergreen-700);
  background: #fff;
  border: 3px dashed var(--gold);
  border-radius: 16px;
  user-select: all;
  overflow-wrap: anywhere;
}

/* ---------- list page ---------- */
#list-card .eyebrow { margin-top: 4px; }
#list-missing { text-align: center; }
#list-missing .btn-primary { max-width: 340px; margin: 10px auto 0; display: flex; }

/* ---------- dashboard ---------- */
.is-dashboard .page { grid-template-columns: minmax(110px, 1fr) minmax(0, 900px) minmax(110px, 1fr); }
.hero-compact .hero-art { width: min(170px, 45%); }
.hero-compact h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
.hero-compact .lede { margin-bottom: 18px; }
.nav-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 34px; }
.stat {
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(8, 38, 26, 0.55);
  border: 1px solid rgba(246, 215, 122, 0.35);
}
.stat-value { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--gold-light); line-height: 1.1; overflow-wrap: anywhere; }
.stat-value-small { font-size: 1.25rem; align-self: center; min-height: 2.2rem; display: grid; place-items: center; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #cfe0d4; }

.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 8px; }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }
.btn-small.btn-primary { width: auto; margin-top: 0; padding: 10px 18px; font-size: 0.95rem; box-shadow: 0 4px 0 #6c0f1c; }
.btn-danger { color: var(--cranberry-dark); background: transparent; border: 2px solid rgba(194, 31, 51, 0.4); }
.btn-danger:hover:not(:disabled) { background: rgba(194, 31, 51, 0.08); border-color: var(--cranberry); }
.dash-confirm .btn-danger { color: var(--cream); background: var(--cranberry); border-color: var(--cranberry); }

.dash-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.dash-item {
  background: #fff;
  border: 1px solid #eadfc6;
  border-left: 6px solid var(--cranberry);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.25);
  animation: pop 0.25s ease-out;
}
.dash-item:nth-child(even) { border-left-color: var(--evergreen-500); }
.dash-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.dash-who { display: grid; min-width: 0; }
.dash-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--evergreen-700); overflow-wrap: anywhere; }
.dash-link { color: var(--cranberry-dark); font-size: 0.88rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dash-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--evergreen-700);
  background: rgba(31, 122, 77, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.dash-actions { display: flex; gap: 6px; }
.dash-meta { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.dash-body, .dash-edit, .dash-confirm { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #e2d6bb; }
.tag-list-compact { gap: 8px; }
.tag-list-compact li { padding: 10px 14px 10px 58px; animation: none; }
.field-label-left { text-align: left; display: grid; gap: 6px; margin-bottom: 12px; }
.wish-textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.dash-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-confirm-text { margin: 0 0 12px; font-weight: 600; color: var(--cranberry-dark); }

.draw-card { margin-bottom: 28px; }
.draw-hint { margin: 0 0 14px; }
.draw-actions { display: flex; justify-content: center; }
.draw-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.draw-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eadfc6;
  border-radius: 12px;
  font-weight: 600;
  color: var(--evergreen-700);
  animation: pop 0.25s ease-out;
}
.draw-pair span { overflow-wrap: anywhere; }
.draw-pair span:last-child { text-align: right; color: var(--cranberry-dark); }
.draw-arrow { color: var(--gold); font-size: 1.2rem; }
.draw-pair-missing span:last-child { color: var(--ink-soft); font-weight: 400; font-style: italic; }
.dash-match { margin: 6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--cranberry-dark); }
.party-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.money-input { position: relative; }
.money-sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-soft); pointer-events: none; }
.money-input .name-input { padding-left: 30px; }

/* ---------- party countdown (home page) ---------- */
.countdown { text-align: center; margin: 0 0 44px; }
.countdown-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold-light);
}
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 30rem; margin: 0 auto; }
.countdown-unit {
  display: grid;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(8, 38, 26, 0.55);
  border: 1px solid rgba(246, 215, 122, 0.35);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}
.countdown-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: #cfe0d4; }
.countdown-when { margin: 12px 0 0; color: #d9e6dc; font-size: 0.98rem; }

/* ---------- money limit (inside the wishlist card) ---------- */
.budget { text-align: center; margin: -6px 0 20px; }
.budget-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--evergreen-700), var(--evergreen-800));
  border: 2px solid var(--gold);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.55);
}
.budget-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: #cfe0d4; }
.budget-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

/* ---------- kids (/kid dropdowns and the dashboard card) ---------- */
.kids-status { margin: -6px 0 14px; }
.kid-list { display: grid; gap: 12px; }
.kid {
  background: #fff;
  border: 1px solid #eadfc6;
  border-left: 6px solid var(--cranberry);
  border-radius: 14px;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.25);
  animation: pop 0.25s ease-out;
}
.kid:nth-child(even) { border-left-color: var(--evergreen-500); }
.kid summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.2em;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}
.kid summary::-webkit-details-marker { display: none; }
.kid summary::after {
  content: "▾";
  color: var(--cranberry);
  font-size: 1.2rem;
  text-align: center;
  transition: transform 0.2s ease;
}
.kid[open] summary::after { transform: rotate(180deg); }
.kid summary:hover { background: rgba(31, 122, 77, 0.05); }
.kid-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--evergreen-700); overflow-wrap: anywhere; }
.kid-facts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.kid-pill {
  font-size: 0.82rem;
  color: var(--evergreen-700);
  background: rgba(31, 122, 77, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.kid-pill strong { color: var(--cranberry-dark); }
.kid-body { margin: 0 16px; padding: 14px 0 16px; border-top: 2px dashed #e2d6bb; }
.kid-heading { margin: 0 0 10px; font-weight: 700; color: var(--ink-soft); }
.kid-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.kid-form .kid-wide { grid-column: 1 / -1; }
.kid-form .error { margin-top: 0; }
.kid-edit-form { margin-bottom: 14px; padding: 14px; border-radius: 12px; background: rgba(31, 122, 77, 0.06); }
.share-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.share-link .share-link-url { margin: 0; font-size: 1rem; }
.kids-add-hint { margin: 16px 0 0; text-align: center; }
.kids-add-hint a { color: var(--cranberry); font-weight: 700; }
.kids-add-hint a:hover { color: var(--cranberry-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .is-dashboard .page { grid-template-columns: 1fr; }
  .is-dashboard .center { max-width: 900px; }
}

@media (max-width: 640px) {
  .dash-head { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-actions { grid-column: 1 / -1; }
  .dash-actions .btn { flex: 1; }
  .stats { gap: 8px; }
  .stat-value { font-size: 1.6rem; }
  .stat-value-small { font-size: 1rem; }
  .party-form { grid-template-columns: 1fr 1fr; }
  .party-form .name-input, .party-form .money-input { grid-column: 1 / -1; }
  .countdown-units { gap: 6px; }
  .kid summary { grid-template-columns: minmax(0, 1fr) 1.2em; }
  .kid-facts { grid-row: 2; justify-content: flex-start; }
  .kid-form { grid-template-columns: 1fr 1fr; }
  .kid-form .kid-name-field { grid-column: 1 / -1; }
}
