:root {
  --plum: #2A1E2C;
  --plum-2: #3D2E40;
  --ink: #2A1E2C;
  --muted: #5B4A5E;
  --coral: #E8553D;
  --coral-dark: #C2412D;
  --coral-soft: #FBE1DA;
  --saffron: #F2A93B;
  --saffron-soft: #FCEBCB;
  --saffron-ink: #6B4304;
  --teal: #2F7D6D;
  --teal-soft: #E3ECEA;
  --teal-ink: #24574C;
  --cream: #FFF8F1;
  --sand: #F4EBE1;
  --line: #EFE3D6;
  --line-2: #E6D9CC;
  --card: #FFFFFF;
  --danger: #A33522;
  --radius: 18px;
  --tabbar-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.45 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { color: #8F2A1A; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.2px; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 6px; font-family: 'Baloo 2', sans-serif; font-weight: 800; line-height: 1; color: var(--ink); }
.logo-ily { display: inline-flex; align-items: baseline; color: var(--coral-dark); }
.logo-ily svg { width: 0.55em; height: 0.78em; margin-left: 1px; }
.logo-sm { font-size: 26px; }
.logo-md { font-size: 36px; }
.logo-lg { font-size: 52px; }
.logo-tile {
  width: 92px; height: 92px; border-radius: 22px; background: var(--coral);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; line-height: .9; box-shadow: 0 14px 30px rgba(232,85,61,.25);
}
.logo-tile .t1 { display: flex; align-items: baseline; color: var(--cream); font-size: 40px; }
.logo-tile .t1 svg { width: 21px; height: 30px; }
.logo-tile .t2 { color: var(--plum); font-size: 22px; letter-spacing: 3px; margin-right: -3px; }

/* ---------- Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; color: var(--ink); }
.topbar-family { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; }
.app-main {
  max-width: 640px; margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
.bare-main { max-width: 440px; margin: 0 auto; padding: 32px 20px 40px; min-height: 100vh; display: flex; flex-direction: column; gap: 22px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.tabbar a[aria-current="page"] { color: var(--coral-dark); }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .topbar { padding: 12px 32px; }
  .topnav { display: flex; gap: 4px; margin-left: auto; }
  .topnav a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; }
  .topnav a:hover { background: var(--sand); color: var(--ink); }
  .topnav a[aria-current="page"] { background: var(--plum); color: var(--cream); }
  .app-main { max-width: 980px; padding: 28px 32px 60px; }
}

/* ---------- Flash ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; }
.flash-ok { background: var(--teal-soft); color: var(--teal-ink); }
.flash-error { background: var(--coral-soft); color: var(--danger); }
.flash-warn { background: var(--saffron-soft); color: var(--saffron-ink); }
.plan-banner { display: block; }
.plan-banner:hover { filter: brightness(.97); }

/* ---------- Decisions ---------- */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--sand); border-radius: 999px; padding: 4px; }
.tabs a { min-height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(42,30,44,.12); }
.decision-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.decision-card:hover { color: var(--ink); border-color: var(--line-2); }
.decision-card .thumbs { display: flex; gap: 6px; }
.decision-card .thumbs span, .decision-card .thumbs img { width: 52px; aspect-ratio: 3 / 4; border-radius: 10px; object-fit: cover; background: var(--sand); flex-shrink: 0; }
.decision-card .q { font-weight: 700; font-size: 16px; line-height: 1.25; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 640px) { .option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.option { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.option .dish-photo { border-radius: 16px; }
.option.is-leading .dish-photo { box-shadow: 0 0 0 3px var(--saffron); }
.option.is-winner .dish-photo { box-shadow: 0 0 0 4px var(--teal); }
.option .flag { position: absolute; top: 8px; left: 8px; }
.option-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.option-meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.bar { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--coral); border-radius: 4px; }
.option.is-leading .bar > span, .option.is-winner .bar > span { background: var(--teal); }
.pick-btn { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font: 700 14px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pick-btn[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.option-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--card); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.option-row .opt-photo { position: relative; }
.option-row .opt-photo .drop { padding: 0; aspect-ratio: 3 / 4; border-radius: 12px; gap: 4px; font-size: 12px; }
.option-row .opt-photo .crops { grid-template-columns: 1fr; position: absolute; inset: 0; }
.option-row .opt-photo .crops:empty { display: none; }
.option-row .fields { display: flex; flex-direction: column; gap: 8px; }
.option-row .input { min-height: 44px; font-size: 15px; }
.winner-card { display: flex; gap: 14px; align-items: center; }
.winner-card img, .winner-card .ph { width: 88px; aspect-ratio: 3 / 4; border-radius: 14px; object-fit: cover; background: var(--sand); flex-shrink: 0; }
.comment { font-size: 13px; line-height: 1.35; }
.comment b { font-weight: 700; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-card { position: relative; }
.plan-card input { position: absolute; opacity: 0; }
.plan-card .card { display: flex; flex-direction: column; gap: 4px; cursor: pointer; height: 100%; }
.plan-card input:checked + .card { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }
.plan-card input:focus-visible + .card { outline: 3px solid var(--saffron); outline-offset: 2px; }
.plan-card .price { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 28px; line-height: 1; }
.plan-card .price small { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); }
.meter.hot > span { background: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px 'DM Sans', sans-serif; cursor: pointer; text-align: center;
  background: var(--card); color: var(--ink); border-color: var(--line-2);
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { color: var(--ink); background: var(--sand); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-dark { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.btn-dark:hover { background: var(--plum-2); color: var(--cream); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--coral-dark); }
.btn-ghost:hover { background: var(--coral-soft); color: var(--coral-dark); }
.btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--coral-soft); color: var(--danger); }
.btn-block { width: 100%; min-height: 54px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.inline-form { display: inline; margin: 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--card);
  font: 500 16px 'DM Sans', sans-serif; color: var(--ink);
}
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.input.has-err { border-color: var(--danger); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-pill span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer;
}
.check-pill input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.check-pill input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.check-row input { width: 20px; height: 20px; accent-color: var(--coral); }

/* ---------- Cards and sections ---------- */
.page-head { display: flex; align-items: center; gap: 8px; }
.page-head h1 { flex: 1; min-width: 0; }
.page-head .back { width: 44px; height: 44px; margin-left: -10px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.page-head .back:hover { background: var(--sand); }
.sub { font-size: 14px; color: var(--muted); }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-head a { font-size: 14px; font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card-dark { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.card-dark .sub, .card-dark .voters { color: #CDBFCF; }
.card-dark .note summary { color: #F7B4A8; }
.card-dark .dish-name { color: var(--cream); }
.list-row { display: flex; align-items: center; gap: 12px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row + .list-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 9px; background: var(--sand); color: var(--ink); white-space: nowrap; }
.badge-teal { background: var(--teal-soft); color: var(--teal-ink); }
.badge-saffron { background: var(--saffron-soft); color: var(--saffron-ink); }
.badge-coral { background: var(--coral-soft); color: var(--danger); }
.empty { text-align: center; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: var(--plum);
}
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.icon-dot { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Food tiles (always portrait 3:4, name below) ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 640px) { .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dish-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dish { display: flex; flex-direction: column; gap: 5px; color: var(--ink); min-width: 0; }
.dish:hover { color: var(--ink); }
.dish-photo {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; object-fit: cover; background: var(--sand);
  display: flex; align-items: center; justify-content: center; color: #B3A39A; overflow: hidden;
}
.dish-name { font-size: 14px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dish-meta { font-size: 12px; color: var(--muted); }
.slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: 0 0 104px; scroll-snap-align: start; }
@media (min-width: 900px) { .slider { margin: 0; padding-left: 0; padding-right: 0; } .slider > * { flex-basis: 130px; } }

/* ---------- Planner ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.week-nav .label { font-weight: 700; font-size: 15px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days a {
  min-height: 60px; border-radius: 16px; background: var(--sand); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; position: relative;
}
.days a strong { font-size: 16px; }
.days a[aria-current="date"] { background: var(--coral); color: #fff; }
.days a.is-today:not([aria-current]) { box-shadow: inset 0 0 0 2px var(--coral); }
.days .dot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.days a[aria-current="date"] .dot { background: #fff; }
.slot { display: flex; flex-direction: column; gap: 12px; }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 640px) { .slot-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .slot-items { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.plate { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plate-photo { position: relative; }
.plate-remove { position: absolute; top: 6px; right: 6px; }
.plate-remove button { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(42,30,44,.72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.votes { display: flex; gap: 6px; }
.vote-btn {
  flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font: 700 13px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer;
}
.vote-btn[aria-pressed="true"].up { background: var(--teal); border-color: var(--teal); color: #fff; }
.vote-btn[aria-pressed="true"].down { background: var(--coral); border-color: var(--coral); color: #fff; }
.vote-btn[disabled] { opacity: .55; cursor: default; }
.voters { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.note summary { font-size: 12px; font-weight: 700; color: var(--coral-dark); cursor: pointer; list-style: none; min-height: 24px; }
.note summary::-webkit-details-marker { display: none; }
.note form { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.note .input { min-height: 40px; font-size: 14px; padding: 0 10px; }
.add-tile {
  aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed var(--line-2); color: var(--coral-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 13px;
}
.add-tile:hover { background: var(--coral-soft); border-color: var(--coral); }
.swap { background: var(--saffron-soft); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--saffron-ink); display: flex; flex-direction: column; gap: 6px; }
.swap .checks { gap: 6px; }

/* ---------- Family tree ---------- */
.tree-wrap { overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; }
.tree { display: flex; justify-content: center; gap: 28px; min-width: max-content; }
.unit { display: flex; flex-direction: column; align-items: center; }
.couple { display: flex; align-items: flex-start; gap: 6px; }
.couple-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 22px; color: var(--coral); font-size: 11px; font-weight: 700; min-width: 30px; }
.couple-link small { color: var(--muted); font-weight: 600; }
.person {
  width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  color: var(--ink); padding: 6px 4px; border-radius: 16px;
}
.person:hover { background: var(--sand); color: var(--ink); }
.person .avatar { width: 58px; height: 58px; font-size: 22px; }
.person.is-me .avatar { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--coral); }
.person.is-focus { background: var(--saffron-soft); }
.person-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.person-meta { font-size: 12px; color: var(--muted); line-height: 1.25; }
.stem { width: 2px; height: 22px; background: #C9B8A6; }
.kids { display: flex; gap: 18px; padding-top: 22px; }
.kids > .unit { position: relative; }
.kids > .unit::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: #C9B8A6; }
.kids > .unit::after { content: ""; position: absolute; top: -22px; left: -9px; right: -9px; height: 2px; background: #C9B8A6; }
.kids > .unit:first-child::after { left: 50%; }
.kids > .unit:last-child::after { right: 50%; }
.kids > .unit:only-child::after { display: none; }
.ref { font-size: 12px; color: var(--muted); padding: 10px; text-align: center; width: 104px; }

/* ---------- Landing / auth ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 12px; }
.hero h1 { font-size: 32px; }
.hero p { color: var(--muted); }
.steps-bar { display: flex; gap: 6px; }
.steps-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.steps-bar span.on { background: var(--coral); }
.center-links { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.feature-list { display: grid; gap: 10px; }
.feature-list .card { display: flex; gap: 12px; align-items: center; }

/* ---------- Photo upload & crop ---------- */
.uploader { display: flex; flex-direction: column; gap: 12px; }
.drop {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 20px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--card); cursor: pointer;
}
.drop:hover { border-color: var(--coral); }
.drop strong { color: var(--ink); }
.crops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crop {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--sand);
  touch-action: none; cursor: grab; box-shadow: inset 0 0 0 2px var(--saffron);
}
.crop img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.crop .crop-label { position: absolute; left: 6px; bottom: 6px; background: rgba(42,30,44,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; }
.crop.is-cover .crop-label { background: var(--coral); }
.photo-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.photo-strip img { flex: 0 0 72%; max-width: 320px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; scroll-snap-align: center; }
.photo-strip .only { flex-basis: 100%; max-width: 360px; margin: 0 auto; }
.photo-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-edit figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.photo-edit img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }

/* ---------- Misc ---------- */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-grid .btn { min-height: 52px; border-radius: 14px; }
.link-box { display: flex; gap: 8px; }
.link-box .input { font-size: 14px; }
.meter { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.chip:hover { color: var(--ink); background: var(--sand); }
.chip[aria-current="true"] { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 42px; border-radius: 999px; min-height: 46px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 16px; }
.dates-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.place-grid { display: flex; flex-direction: column; gap: 10px; }
.place-day { display: flex; align-items: center; gap: 10px; }
.place-day .label { width: 64px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.place-day .label small { display: block; color: var(--muted); font-weight: 500; }
.place-day form { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.place-day button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font: 700 12px 'DM Sans', sans-serif; color: var(--ink); cursor: pointer; padding: 0 2px; }
.place-day button:hover { background: var(--coral-soft); border-color: var(--coral); }
.place-day button[disabled] { opacity: .45; cursor: default; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 700; }
dl { margin: 0; }
[hidden] { display: none !important; }
