/* Kids Plans: screen-specific styles. */

/* ---------- Now: header ---------- */
.status-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--paper); border: var(--bw) solid var(--ink); font: 700 12px/1 var(--text); letter-spacing: .04em; white-space: nowrap;
}
.status-chip.free { background: var(--ink); color: var(--paper); }

.weather { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.weather-main { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; }
.weather-icon { width: 44px; height: 44px; stroke-width: 1.8; }
.weather-temp { font-size: 58px; line-height: .85; letter-spacing: -.03em; }
.weather-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.3; }
.weather-text strong { font: 900 19px/1.05 var(--display); }
.hours { list-style: none; margin: 0; padding: 10px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; border-top: 1.5px solid rgba(255, 255, 255, .45); }
.hours li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; }
.hours li .small { font-weight: 400; opacity: .85; font-size: 12px; }
.hours svg { width: 22px; height: 22px; }
.rain-pct { font-size: 11px; font-weight: 400; min-height: 13px; opacity: .9; }
.alerts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Now: presets ---------- */
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
  font: 400 13px/1 var(--text); color: var(--ink);
}
.preset[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }

/* ---------- Plan cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.card-grid > .pcard:not(.compact), .card-grid > .span2 { grid-column: 1 / -1; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: var(--bw) solid var(--ink); border-radius: var(--r-l); padding: 16px; color: var(--ink);
  box-shadow: var(--shadow); text-align: left;
  animation: card-in var(--t-med) var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.pcard.compact {
  min-height: 148px; padding: 14px; gap: 6px; border-radius: 22px; box-shadow: none; font: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pcard.compact:active { transform: translate(2px, 2px); }
.pcard.compact:hover { box-shadow: var(--shadow-s); }
.pcard.compact .tag { font-size: 10px; }
.pcard.compact .display { margin-top: 2px; }
.pcard-mini { margin-top: auto; font-weight: 700; padding-top: 6px; }
.pcard-title { font-size: clamp(25px, 7.4vw, 30px); line-height: 1; }
.pcard-with { font-weight: 700; font-size: 15px; margin-top: -4px; }
.pcard-reason { font-size: 15px; line-height: 1.4; }
.pcard-pair { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.pcard-pair svg { width: 16px; height: 16px; flex: none; }
.pcard-bring { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.pcard-bring svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pcard-fams { display: flex; flex-direction: column; gap: 4px; }
.fam-line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fam-line svg { width: 16px; height: 16px; flex: none; }

.now-head { display: flex; flex-direction: column; gap: 6px; }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 2px 0 0; border: var(--bw) solid var(--ink); border-radius: var(--r-s); background: rgba(255, 255, 255, .55); overflow: hidden; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; margin: 0; min-height: 56px; background: transparent; border: 0; text-align: left; font: inherit; color: inherit; }
.fact + .fact { border-left: 1.5px solid var(--ink); }
.fact dt { display: flex; align-items: center; gap: 5px; font: 700 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.fact dt svg { width: 13px; height: 13px; }
.fact dd { margin: 0; font: 900 19px/1 var(--display); }
button.fact { cursor: pointer; position: relative; }
button.fact::after { content: ""; position: absolute; right: 8px; top: 9px; width: 6px; height: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform var(--t-fast); }
button.fact[aria-expanded="true"]::after { transform: rotate(-135deg); top: 12px; }
button.fact:active { background: rgba(255, 255, 255, .5); }

.budget-panel { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-s); padding: 12px 14px; animation: fade-in var(--t-fast) var(--ease); }
.budget { display: flex; flex-direction: column; gap: 12px; }
.budget-group { display: flex; flex-direction: column; gap: 6px; }
.budget-total { display: flex; justify-content: space-between; border-top: var(--bw) solid var(--ink); padding-top: 8px; font-weight: 700; }
.budget-total strong { font: 900 19px/1 var(--display); }

.pcard-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.pcard-actions.wrap { flex-wrap: wrap; justify-content: flex-start; }
.pcard .go { min-height: 48px; padding: 0 18px; border-color: var(--ink); box-shadow: none; }
.pcard .go:active { transform: scale(.97); }

.pcard.plan { box-shadow: var(--shadow); }
.invites { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.invite {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 10px;
  border: var(--bw) solid var(--ink); border-radius: var(--r-s); background: var(--paper); font: 400 14px/1 var(--text);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.invite:active { transform: scale(.97); }
.invite svg { width: 16px; height: 16px; }
.invite-name { font-weight: 700; }
.invite-status { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-left: 6px; border-left: 1.5px solid currentColor; }
.invite.s-not_contacted { border-style: dashed; background: transparent; }
.invite.s-contacted { background: var(--paper); }
.invite.s-yes { background: var(--mint); }
.invite.s-no { background: var(--orange); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.invite.s-no .invite-status { text-decoration: none; }

.changed { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: var(--paper); border-radius: var(--r-s); padding: 12px 14px; font-size: 14px; line-height: 1.35; box-shadow: 4px 4px 0 var(--orange); }
.changed svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.planb { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-top: 4px; }
.planb .pcard-reason { margin: 0; }
.passkeys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.passkeys li { padding: 10px 0; border-top: 1.5px solid var(--line); gap: 12px; }
.passkeys li:first-child { border-top: 0; }

.nudge { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-m); padding: 4px 6px 4px 14px; min-height: 52px; font-size: 14px; }
.nudge .link-btn { padding: 10px 8px; white-space: nowrap; }

/* ---------- Split ---------- */
.split-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.split { display: grid; gap: 18px; }
@media (min-width: 700px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .split .card-grid { grid-template-columns: 1fr; } .split .pcard.compact { min-height: 0; } }
.split-col { display: flex; flex-direction: column; gap: 10px; }
.split-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border: var(--bw) solid var(--ink); border-radius: var(--r-s); padding: 10px 14px; }

/* ---------- Friends sheet ---------- */
.friend-row { align-items: flex-start; padding: 14px; cursor: pointer; }
.friend-row .check { width: 26px; height: 26px; flex: none; border: var(--bw) solid var(--ink); border-radius: 8px; display: grid; place-items: center; margin-top: 1px; }
.friend-row .check svg { width: 16px; height: 16px; opacity: 0; }
.friend-row[aria-pressed="true"] { background: #F3EEFF; }
.friend-row[aria-pressed="true"] .check { background: var(--ink); color: var(--paper); }
.friend-row[aria-pressed="true"] .check svg { opacity: 1; }
.matches { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 2px; }
.match { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kid-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--kid, transparent); border: 1.5px solid var(--ink); flex: none; }

/* ---------- Rating ---------- */
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); padding: 8px 8px 8px 14px; }
.rate-name { display: flex; align-items: center; gap: 10px; font: 900 21px/1 var(--display); }
.rate-name .kid-dot { width: 16px; height: 16px; }
.rate { width: 56px; height: 56px; border: var(--bw) solid var(--ink); border-radius: var(--r-s); background: var(--ground); font-size: 26px; line-height: 1; transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.rate[aria-pressed="true"] { background: var(--kid, var(--yellow)); box-shadow: var(--shadow-s); transform: translate(-1px, -1px); }
.rate:active { transform: scale(.94); }
.euro-input { position: relative; }
.euro-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; pointer-events: none; }
.euro-input .input { padding-left: 32px; }

/* ---------- Week ---------- */
.day { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.day + .day { border-top: var(--bw) solid var(--ink); padding-top: 22px; }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.day-date { display: flex; flex-direction: column; gap: 6px; }
.day-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 12px/1 var(--text); }
.wx-chip svg { width: 16px; height: 16px; }
.week-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding-top: 4px; }
.week-actions .btn { padding: 0 10px; }
.backup { border: var(--bw) dashed var(--ink); border-radius: var(--r-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(108, 140, 255, .08); }
.backup-label { display: flex; align-items: center; gap: 8px; }
.backup-label svg { width: 18px; height: 18px; }
.backup-body { display: flex; align-items: center; gap: 10px; }
.backup-body .grow { display: flex; flex-direction: column; gap: 3px; }

/* ---------- People ---------- */
.person { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.person .tag-editor .tag-x { background: rgba(255, 255, 255, .85); }
.person .tag-editor input { border-color: rgba(29, 26, 58, .45); }
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.person.adult {
  border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); gap: 4px; padding: 14px; text-align: left; font: inherit; color: inherit;
  box-shadow: var(--shadow-s); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.person.adult:active { transform: translate(2px, 2px); box-shadow: none; }
.person.adult .swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--ink); margin-bottom: 6px; }
.rules { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rules li::before { content: "·"; font-weight: 700; margin-right: 6px; }

.fam { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-align: left; font: inherit; color: inherit; width: 100%; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.fam:active { transform: translate(2px, 2px); }
.fam:hover { box-shadow: var(--shadow-s); }
.fam-kids { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fam-kids li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fam-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; padding-top: 10px; border-top: 1.5px solid var(--line); }
.fam-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.fam-meta svg { width: 15px; height: 15px; }

/* ---------- Forms in sheets ---------- */
.form { gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: var(--bw) solid var(--ink); }
.form-group:first-child { border-top: 0; padding-top: 0; }
.rules-box { display: flex; flex-direction: column; gap: 8px; border: var(--bw) solid var(--ink); border-radius: var(--r-m); padding: 14px; background: var(--paper); }
.kid-edit { display: flex; flex-direction: column; gap: 8px; border: var(--bw) solid var(--ink); border-radius: var(--r-m); padding: 12px; background: var(--paper); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-btn { width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); display: grid; place-items: center; padding: 0; }
.swatch-btn svg { width: 20px; height: 20px; }
.swatch-btn[aria-checked="true"] { box-shadow: var(--shadow-s); }
.form-error { color: var(--red); font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.note { border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--yellow); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.steps svg { display: inline; vertical-align: -3px; }

.settings { gap: 24px; }
.set-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.set-block .stack { width: 100%; align-items: flex-start; }

/* ---------- Places ---------- */
.chip-sep { width: 2px; flex: none; align-self: stretch; background: var(--line); margin: 4px 2px; }
.place-list { display: flex; flex-direction: column; gap: 10px; }
.place-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 12px; min-height: 76px;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-m); text-align: left; font: inherit; color: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.place-row:active { transform: translate(2px, 2px); }
.place-row:hover { box-shadow: var(--shadow-s); }
.place-row .grow { display: flex; flex-direction: column; gap: 4px; }
.place-name { font: 900 17px/1.1 var(--display); }
.place-row .tags { margin-top: 2px; }
.place-row svg.chev { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.place-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--cyan); }
.place-ico svg { width: 22px; height: 22px; }
.cat-restaurant { background: var(--lilac); }
.cat-adventure_park, .cat-playground_park, .cat-petting_farm { background: var(--mint); }
.cat-swimming, .cat-zoo_aquarium { background: var(--cyan); }
.cat-cinema, .cat-theatre, .cat-museum { background: var(--yellow); }
.cat-seasonal, .cat-recurring_event, .cat-climbing_trampoline, .cat-indoor_playground { background: var(--orange); }

.detail { gap: 16px; }
.detail-block { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1.5px solid var(--ink); }
.detail-block.sticker-flat { padding: 14px; border: var(--bw) solid var(--ink); background: var(--paper); }
.detail-block .kv { padding-top: 2px; }
.two-btn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.two-btn .btn { box-shadow: none; }
.stale-note { display: flex; gap: 10px; align-items: flex-start; background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: var(--r-s); padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.stale-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.spends { display: flex; flex-direction: column; gap: 10px; }
.spend-row { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1.5px solid var(--ink); border-radius: var(--r-s); background: var(--paper); }
.spend-sub { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px; }

.pass { display: flex; flex-direction: column; gap: 10px; padding: 18px; text-align: left; font: inherit; color: inherit; width: 100%; }
.pass.expired { background: var(--paper); opacity: .7; }
.pass .eyebrow { display: inline-flex; align-items: center; gap: 4px; }
.pass .eyebrow svg { width: 14px; height: 14px; }
.validity { height: 12px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.validity i { display: block; height: 100%; background: var(--ink); }
.remind { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.remind svg { width: 16px; height: 16px; }

/* ---------- Login ---------- */
body.is-login { background: var(--ground); }
.login { max-width: 420px; margin: 0 auto; padding-top: 4vh; }
.login-card { display: flex; flex-direction: column; gap: 14px; }
.login-lede { font-size: 17px; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.login-art { position: relative; height: 180px; margin-bottom: 10px; }
.login-art .blob { position: absolute; border: var(--bw) solid var(--ink); box-shadow: var(--shadow); }
.login-art .b1 { left: 0; top: 30px; width: 58%; height: 118px; border-radius: 24px; transform: rotate(-4deg); }
.login-art .b2 { right: 4%; top: 0; width: 38%; height: 92px; border-radius: 22px; transform: rotate(5deg); }
.login-art .b3 { right: 12%; bottom: 0; width: 30%; height: 62px; border-radius: 18px; transform: rotate(-2deg); }
.login-art .dot { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: var(--bw) solid var(--ink); display: grid; place-items: center; font: 900 22px/1 var(--display); box-shadow: var(--shadow-s); }
.login-art .d1 { left: 18%; top: 4px; }
.login-art .d2 { left: 44%; bottom: 6px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1.5px solid var(--line); }
.sent { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .login-art .blob, .login-art .dot { animation: pop-in 420ms var(--ease) both; }
  .login-art .b2 { animation-delay: 60ms; } .login-art .b3 { animation-delay: 120ms; } .login-art .d1 { animation-delay: 180ms; } .login-art .d2 { animation-delay: 240ms; }
}
@keyframes pop-in { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }

.pcard .display, .place-name, .fam h3, .person h2 { overflow-wrap: anywhere; hyphens: auto; }
.pcard-pair { align-items: flex-start; }
.pcard-pair svg { margin-top: 2px; }

/* ---------- v2: Holidays (Week section + #/holiday) ---------- */
.hol-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 14px; text-align: left; color: var(--ink); cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.hol-row.first { background: var(--lilac); box-shadow: var(--shadow-s); }
.hol-row:active { transform: translate(2px, 2px); box-shadow: none; }
.hol-row > svg { width: 20px; height: 20px; flex: none; }
.hol-days { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border: var(--bw) solid var(--ink); border-radius: var(--r-s); background: var(--paper); gap: 2px; }
.hol-days strong { font-size: 24px; line-height: 1; }
.hol-days .eyebrow { font-size: 9px; }
.hol-text { display: flex; flex-direction: column; gap: 4px; }
.screen.is-busy { opacity: .6; pointer-events: none; transition: opacity var(--t-fast); }
.hol-summary { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hol-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.hol-facts div { display: flex; flex-direction: column; gap: 4px; }
.hol-facts dd { margin: 0; }
.hol-birthday { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--mint); }
.hol-birthday svg { width: 22px; height: 22px; flex: none; }
.hol-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; }
.hol-strip::-webkit-scrollbar { display: none; }
.hol-tile { flex: none; width: 46px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.hol-tile strong { font: 900 18px/1 var(--display); }
.hol-tile .eyebrow { font-size: 9px; letter-spacing: .08em; }
.hol-tile svg { width: 14px; height: 14px; }
.hol-tile .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 1.5px solid var(--ink); }
.hol-tile.k-home .dot { background: var(--paper); }
.hol-tile.k-closed { border-style: dashed; background: transparent; }
.hol-tile.k-closed .dot { background: transparent; }
.hol-tile.accepted { background: var(--yellow); box-shadow: var(--shadow-s); }
.hol-day { scroll-margin-top: calc(var(--safe-t) + 12px); }
.hol-controls { display: flex; flex-direction: column; gap: 8px; }
.hol-controls .chip.small { min-height: 44px; }
.quiet { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.quiet.closed { background: transparent; border-style: dashed; }
.quiet > .row svg { width: 22px; height: 22px; }
.quiet-idea { display: flex; flex-direction: column; gap: 6px; border-top: var(--bw) solid var(--line); padding-top: 10px; }

/* ---------- v2: Money (#/money and the Week strip) ---------- */
.money-strip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left; color: var(--ink); cursor: pointer; }
.money-strip:active { transform: translate(1px, 1px); }
.money-strip .grow { display: flex; flex-direction: column; gap: 3px; }
.money-strip > svg { width: 20px; height: 20px; flex: none; }
.money-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--yellow); }
.money-ico svg { width: 20px; height: 20px; }
.level { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); margin-right: 6px; vertical-align: -1px; flex: none; }
.lv-ok { background: var(--mint); }
.lv-close { background: var(--yellow); }
.lv-over { background: var(--orange); }
.money-hero { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero-row > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.hero-num { font-size: clamp(44px, 14vw, 60px); line-height: .9; }
.hero-side { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.stack.tight { gap: 6px; }
.pad { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .c-label { font: 400 12px var(--text); fill: #1D1A3A; }
.chart .c-strong { font-weight: 700; }
.chart .c-value { font: 700 12px var(--text); fill: #1D1A3A; font-variant-numeric: tabular-nums; }
.chart .c-muted { font: 400 11px var(--text); fill: #4A4570; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .sw { width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--ink); }
.legend .sw.solid { background: var(--ink); }
.legend .sw.hatch { background: repeating-linear-gradient(45deg, var(--paper) 0 2px, var(--ink-2) 2px 4px); }
.top-places { margin: 0; padding: 0; list-style: none; }
.top-places .rank { font: 900 15px/1 var(--display); width: 26px; flex: none; }
.saving { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.saving .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.saving .eyebrow svg { width: 16px; height: 16px; }
.unlogged { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.unlogged svg { width: 18px; height: 18px; flex: none; }
/* ---------- Now: "What's the situation?" ---------- */
.ask-form { display: flex; gap: 8px; align-items: stretch; }
.ask-input { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; }
.ask-go { flex: none; width: 48px; height: 48px; background: var(--orange); box-shadow: var(--shadow-s); }
.ask-go:disabled { opacity: .7; }
.ask-chips { display: flex; flex-direction: column; gap: 8px; }
.ask-chips:empty { display: none; }
.ask-chip { padding-right: 6px; }
.ask-chip .x { border: 0; background: transparent; width: 30px; height: 30px; margin-right: -6px; color: var(--ink); }
.ask-chip .x svg { width: 14px; height: 14px; }
.ask-edit { border: 0; background: transparent; font: inherit; color: inherit; padding: 0; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.ask-foot { min-height: 32px; }

/* ---------- Places: Inbox ---------- */
.places .seg button { font-size: 13px; padding: 0 2px; }
.seg-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 700 11px/1 var(--text); vertical-align: 1px; }
.seg-badge[hidden] { display: none; }
.inbox-capture { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); }
.inbox-capture .textarea { font-size: 16px; }
.inbox-capture .row.wrap { flex-wrap: wrap; }
.inbox-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); }
.inbox-row.has-error { background: #FFF3DA; }
.inbox-row .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inbox-title { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.inbox-ico, .inbox-thumb { width: 48px; height: 48px; border: var(--bw) solid var(--ink); border-radius: 12px; display: grid; place-items: center; object-fit: cover; }
.inbox-ico svg { width: 22px; height: 22px; }
.inbox-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.inbox-warn { display: flex; gap: 6px; align-items: flex-start; color: var(--ink); }
.inbox-warn svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.inbox-photo img { display: block; width: 100%; max-height: 260px; object-fit: contain; border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); }
.inbox-src a { color: var(--ink); }
.inbox-link { display: block; padding: 10px; border-radius: 10px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
/* ---------- Places › This week (events and kids films) ---------- */
.discover .day-head { margin: 6px 0 2px; }
.day-group { display: flex; flex-direction: column; gap: 8px; }
.event-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-m);
}
.event-row .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.event-row .link-btn { padding: 4px 0; min-height: 32px; text-align: left; font-weight: 400; }
.event-row .icon-btn { flex: none; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chip { font: 700 13px/1 var(--text); padding: 6px 8px; border: var(--bw) solid var(--ink); border-radius: 8px; background: var(--ground); }
.pcard-event { display: flex; align-items: center; gap: 6px; margin: -4px 0 2px; font-weight: 700; }
.pcard-event svg { width: 18px; height: 18px; flex: none; }

/* ---------- Places: Map ---------- */
.map-toggle { padding: 0 14px; }
.map-filters .chip { gap: 6px; }
.lg-dot { display: inline-block; width: 12px; height: 12px; flex: none; border: var(--bw) solid var(--ink); border-radius: 50%; background: var(--paper); }
.lg-dot.k-classic, .kp-pin.k-classic .kp-dot, .kp-cluster.k-classic, .map-kind.k-classic { background: var(--orange); }
.lg-dot.k-discover, .kp-pin.k-discover .kp-dot, .kp-cluster.k-discover, .map-kind.k-discover { background: var(--cyan); }
.lg-dot.k-oma, .kp-pin.k-oma .kp-dot, .kp-cluster.k-oma, .map-kind.k-oma { background: var(--lilac); }
.lg-dot.k-week, .kp-pin.k-week .kp-dot, .kp-cluster.k-week, .map-kind.k-week { background: var(--yellow); }
.lg-dot.lg-pass { background: var(--paper); box-shadow: 0 0 0 3px var(--mint); }
.lg-dot.has-week-dot { width: 10px; height: 10px; border-width: 1.5px; background: var(--yellow); }
.map-kind { border-color: var(--ink); }

.map-frame { position: relative; height: 55vh; height: 55svh; min-height: 300px; max-height: 620px; overflow: hidden; padding: 0; isolation: isolate; }
.map-canvas { position: absolute; inset: 0; background: #F2EFE9; }
.map-loading { position: absolute; inset: 0; border: 0; border-radius: 0; z-index: 2; }
.map-error { height: 100%; justify-content: center; }
.map-frame .leaflet-container { font: 400 12px/1.3 var(--text); background: #F2EFE9; outline: none; }
.map-frame .leaflet-control-zoom.leaflet-bar { border: var(--bw) solid var(--ink); border-radius: var(--r-s); box-shadow: var(--shadow-s); overflow: hidden; margin: 10px 0 0 10px; }
.map-frame .leaflet-control-zoom.leaflet-bar a { width: 44px; height: 44px; line-height: 42px; font: 700 22px/42px var(--text); color: var(--ink); background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.map-frame .leaflet-control-zoom.leaflet-bar a:last-child { border-bottom: 0; }
.map-frame .leaflet-control-zoom.leaflet-bar a.leaflet-disabled { color: var(--ink-3); background: var(--ground); }
.map-frame .leaflet-control-attribution { background: rgba(255, 255, 255, .85); color: var(--ink-2); font-size: 10px; padding: 1px 6px; border-top-left-radius: 8px; }
.map-frame .leaflet-control-attribution a { color: var(--ink); }
.map-near { position: absolute; top: 10px; right: 10px; z-index: 500; background: var(--paper); }
.map-near svg { color: var(--blue); }

.kp-pin-wrap { background: none; border: 0; }
.kp-pin { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.kp-dot { display: grid; place-items: center; width: 20px; height: 20px; border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: 1px 1px 0 var(--ink); transition: transform var(--t-fast) var(--ease); }
.kp-pin.k-classic .kp-dot { width: 30px; height: 30px; box-shadow: var(--shadow-s); }
.kp-pin.k-classic .kp-dot svg { width: 16px; height: 16px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; }
.kp-pin.on-pass .kp-dot { box-shadow: 0 0 0 3px var(--mint), 0 0 0 5px var(--ink); }
.kp-dot { position: relative; }
.kp-pin.has-week .kp-dot::after { content: ""; position: absolute; top: -6px; right: -6px; width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.kp-pin.is-on .kp-dot { transform: scale(1.35); }
.kp-pin:focus-visible, .leaflet-marker-icon:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; border-radius: 50%; }
.kp-cluster { display: grid; place-items: center; width: 40px; height: 40px; margin: 2px; border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-s); font: 700 14px/1 var(--text); color: var(--ink); }
.kp-cluster.k-mixed { background: var(--ink); color: var(--paper); }
.kp-home { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--paper); }
.kp-home svg { width: 20px; height: 20px; }

.map-card { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 600; }
.map-card[hidden] { display: none; }
.map-card-in { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border-radius: var(--r-m); }
.map-card-in .spread { margin: -4px -6px -4px 0; }
.map-card-x { width: 44px; height: 44px; }
.map-week { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.map-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: -4px; }
.map-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.map-legend svg { width: 16px; height: 16px; }
.map-note:empty, .map-note[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .kp-dot { transition: none; } }

/* Places map without a CARTO key: OSM tiles, greyed so the B-colour pins carry the colour. */
.map-osm .leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(1.06); }

/* ---------- Pictures (docs/images.md) ---------- */
/* One look everywhere: a fixed box (no layout shift), 2px ink outline, 14px radius, cover crop. */
.thumb { position: relative; display: block; flex: none; width: 84px; aspect-ratio: 1; overflow: hidden; border: var(--bw) solid var(--ink); border-radius: var(--r-s); background: var(--paper); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-s { width: 56px; border-radius: 12px; }
.thumb-row { width: 64px; border-radius: 12px; }
.thumb-wide { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-m); }
.thumb-wide.is-tile img { object-fit: contain; }
.tile-park, .tile-season { background: var(--mint); }
.tile-farm, .tile-climb, .tile-event { background: var(--yellow); }
.tile-zoo, .tile-theatre, .tile-food { background: var(--orange); }
.tile-museum, .tile-library, .tile-home { background: var(--lilac); }
.tile-cinema, .tile-play, .tile-pin { background: var(--cyan); }
.tile-swim, .tile-trip { background: var(--blue); }
.thumb-pair { position: relative; display: block; flex: none; width: 96px; height: 96px; }
.thumb-pair > .thumb { position: absolute; left: 0; top: 0; width: 76px; }
.thumb-pair > .thumb.thumb-second { left: auto; top: auto; right: 0; bottom: 0; width: 46px; border-radius: 12px; }
.thumb-pair.pair-thumb-s { width: 66px; height: 66px; }
.thumb-pair.pair-thumb-s > .thumb { width: 50px; border-radius: 12px; }
.thumb-pair.pair-thumb-s > .thumb.thumb-second { width: 32px; border-radius: 9px; }
.thumb-credit { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.pcard-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pcard-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pcard-compact-top { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 6px; }
.place-photo { display: flex; flex-direction: column; gap: 8px; }
.place-photo .row { gap: 8px; flex-wrap: wrap; }
.map-card-head { display: flex; gap: 10px; align-items: center; }
.map-card-head .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 360px) { .thumb { width: 72px; } .thumb-pair { width: 84px; height: 84px; } .thumb-pair > .thumb { width: 66px; } .thumb-pair > .thumb.thumb-second { width: 40px; } }

/* ---------- Now: suggestions as a compact ranked list ---------- */
.prow-list { display: flex; flex-direction: column; gap: 10px; }
.prow { border: var(--bw) solid var(--ink); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-s); color: var(--ink); animation: card-in var(--t-med) var(--ease); }
.prow.is-open { box-shadow: var(--shadow-s); }
.prow-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 96px; padding: 12px 10px 12px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-m); }
.prow-head:active { transform: translate(1px, 1px); }
.prow-head .thumb-row { width: 72px; }
.prow-head .thumb-pair.pair-thumb-row { width: 80px; height: 80px; }
.prow-head .thumb-pair.pair-thumb-row > .thumb { width: 64px; }
.prow-head .thumb-pair.pair-thumb-row > .thumb.thumb-second { width: 38px; border-radius: 10px; }
.prow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow-label { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.prow-label .tag { font-size: 10px; padding: 2px 7px; min-height: 0; }
.prow-label .tag svg { width: 12px; height: 12px; }
.prow-title { font: 900 18px/1.1 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: manual; overflow-wrap: break-word; }
.prow-reason { font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-facts { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-chev { width: 18px; height: 18px; flex: none; color: var(--ink-2); transition: transform var(--t-fast) var(--ease); }
.prow-head[aria-expanded="true"] .prow-chev { transform: rotate(180deg); }
.prow-panel { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.prow-panel .budget { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; }
.prow-panel .go { min-height: 44px; }
/* Titles never break inside a word ("Kinoerlebnis"); long ones end in an ellipsis. */
.pcard-title, .pcard .display, .place-name { hyphens: manual; }
.pcard-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .prow { animation: none; } .prow-chev { transition: none; } }
.prow-panel { gap: 8px; }
.prow-panel .budget { gap: 6px; font-size: 13px; padding: 8px 10px; }
.prow-panel .budget .eyebrow { font-size: 10px; }
.prow-panel .budget .kv { gap: 2px 8px; font-size: 13px; }
.prow-panel .budget-total { padding-top: 6px; }
.prow-panel .budget-total strong { font-size: 18px; }
.prow-panel .pcard-bring { font-size: 13px; }
.prow-when { margin: 0; color: var(--ink-2); }
.prow-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.prow-actions .nav-row { margin: 0; }
