/* Seoul & Tokyo 2027 — pastel, light, colorful */
:root {
  color-scheme: light;
  --bg: #fbf8ff;
  --surface: #ffffff;
  --surface-2: #f6f2ff;
  --ink: #2c2a3d;
  --muted: #7d7a95;
  --line: #eee8fa;
  --pink: #ffc8dd; --pink-ink: #d63b74;
  --sky: #c9e4ff; --sky-ink: #2470c9;
  --mint: #c7f5e1; --mint-ink: #138a5e;
  --peach: #ffdcc2; --peach-ink: #c2611d;
  --butter: #fff1b8; --butter-ink: #94700a;
  --lilac: #e3d9ff; --lilac-ink: #6a4fd6;
  --good: #19a06c; --good-soft: #d9f7ea;
  --warn-soft: #fff1c9; --warn-ink: #9a6b00;
  --grad: linear-gradient(120deg, #ff9fc0 0%, #c3a6ff 55%, #8fc8ff 100%);
  --grad-soft: linear-gradient(120deg, #ffe1ec 0%, #ece3ff 50%, #dcefff 100%);
  --r: 20px;
  --shadow: 0 2px 4px rgba(108, 86, 180, .04), 0 10px 30px rgba(108, 86, 180, .08);
  --shadow-hover: 0 4px 8px rgba(108, 86, 180, .06), 0 18px 40px rgba(108, 86, 180, .14);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 15px/1.55 "Nunito", system-ui, sans-serif; font-weight: 500;
  background:
    radial-gradient(900px 500px at -10% -10%, #ffe3ee 0%, transparent 60%),
    radial-gradient(800px 500px at 110% 0%, #e2f0ff 0%, transparent 60%),
    radial-gradient(700px 600px at 50% 120%, #eee5ff 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky-ink); }
.loading { padding: 40vh 16px; text-align: center; color: var(--muted); font-family: var(--head); font-size: 20px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(220, 210, 245, .6); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 16px rgba(195, 166, 255, .5); flex-shrink: 0; }
.brand h1 { font-size: 19px; white-space: nowrap; }
.brand .sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin: 0 auto; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs .ic { font-size: 16px; }
.who { display: flex; align-items: center; gap: 8px; }
main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 110px; }
main.full { max-width: none; padding: 0; }

/* bottom nav on phones */
@media (max-width: 760px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .94); }
  .tabs { position: fixed; left: 10px; right: 10px; bottom: 10px; margin: 0; justify-content: space-around; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(108, 86, 180, .18); z-index: 60; }
  .tabs button { flex-direction: column; gap: 0; padding: 6px 4px; font-size: 11px; border-radius: 16px; flex: 1; }
  .tabs .ic { font-size: 20px; }
  .tabs button.on { background: var(--grad-soft); color: var(--ink); }
  .brand h1 { font-size: 17px; }
  .hide-sm { display: none !important; }
  main { padding-bottom: 130px; }
}

/* ---------- basics ---------- */
.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .1s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(195, 140, 230, .35); text-shadow: 0 1px 1px rgba(120, 60, 160, .2); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(195, 140, 230, .5); }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--pink-ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.Seoul { background: var(--pink); color: var(--pink-ink); }
.chip.Tokyo { background: var(--sky); color: var(--sky-ink); }
.chip.Travel { background: var(--butter); color: var(--butter-ink); }
.chip.confirmed { background: var(--good-soft); color: var(--good); }
.chip.planned { background: #fff; box-shadow: inset 0 0 0 1.5px var(--lilac); color: var(--lilac-ink); }
.chip.skipped { text-decoration: line-through; }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.me { background: var(--lilac); color: var(--lilac-ink); }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input, select, textarea { border: 1.5px solid var(--line); background: #fff; padding: 9px 12px; border-radius: 14px; width: 100%; min-width: 0; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #c3a6ff; box-shadow: 0 0 0 4px rgba(195, 166, 255, .2); }
input[type=checkbox] { width: auto; }
textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 11px; font-weight: 800; }
.new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--grad-soft); padding: 12px 16px; border-radius: 16px; margin-bottom: 16px; font-weight: 700; }
.city-band { margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 22px; }
.city-band::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line), transparent); }

/* avatars */
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: rgba(40, 30, 70, .75); border: 2px solid #fff; flex-shrink: 0; cursor: default; }
.av.sm { width: 22px; height: 22px; font-size: 10px; border-width: 1.5px; }
.av.lg { width: 44px; height: 44px; font-size: 18px; }
button.av { cursor: pointer; padding: 0; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }

/* login */
.login { max-width: 420px; margin: 8vh auto; padding: 0; overflow: hidden; }
.login .banner { height: 150px; background: var(--grad); display: grid; place-items: center; font-size: 54px; position: relative; }
.login .banner::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 40px; background: linear-gradient(transparent, #fff); }
.login form { padding: 8px 26px 26px; }
.login h1 { font-size: 30px; margin-bottom: 4px; }
.err { color: var(--pink-ink); font-size: 14px; min-height: 20px; font-weight: 700; }

/* ---------- schedule ---------- */
.hero { position: relative; overflow: hidden; padding: 26px 24px; margin-bottom: 22px; background: var(--grad-soft); box-shadow: none; }
.hero h2 { font-size: 34px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat b { display: block; font-family: var(--head); font-size: 26px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 700; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; box-shadow: inset 0 0 0 1.5px var(--lilac); }
.legend .c::before { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.days { display: grid; gap: 18px; }
.day { overflow: hidden; position: relative; }
.day-cover { height: 132px; position: relative; background-size: cover; background-position: center; }
.day-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(30, 20, 50, .55)); }
.day-cover.art::after { background: none; }
.day-cover .art-emoji { position: absolute; right: 26px; bottom: 6px; font-size: 64px; opacity: .5; }
.day-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; gap: 12px; align-items: flex-end; z-index: 1; color: #fff; }
.day-cover.art + .day-body .day-title, .day-cover.art .day-head { color: var(--ink); }
.date-badge { min-width: 56px; text-align: center; border-radius: 16px; padding: 5px 6px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.date-badge .d { font-family: var(--head); font-size: 24px; font-weight: 600; line-height: 1; }
.date-badge .w { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day-head h3 { font-size: 21px; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.day-cover.art .day-head h3 { text-shadow: none; }
.day-head .grow { flex: 1; min-width: 0; }
.day-actions { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; }
.day-actions .btn { background: rgba(255, 255, 255, .88); border: 0; backdrop-filter: blur(6px); }
.day-sub { padding: 10px 16px 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.day-sub a { color: var(--sky-ink); }
.slots { padding: 6px 8px 10px; }
.slot { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 6px 8px; }
.slot-name { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding-top: 14px; }
.slot-name::before { content: attr(data-ic) " "; }
.item { display: flex; gap: 12px; align-items: center; padding: 7px 10px 7px 7px; border-radius: 16px; cursor: pointer; margin-bottom: 6px; background: var(--surface-2); transition: transform .12s, box-shadow .15s, background .15s; border: 1.5px dashed transparent; }
.item:hover { background: #fff; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.item.planned { border-color: #ddd0ff; background: #fff; }
.item.confirmed { background: var(--good-soft); }
.item .t { flex: 1; min-width: 0; font-weight: 700; }
.item .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.item .time { font-size: 12px; font-weight: 800; color: var(--lilac-ink); margin-right: 6px; }
.thumb-sq { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 24px; position: relative; }
.thumb-sq .ok { position: absolute; right: -4px; bottom: -4px; font-size: 14px; background: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.free { display: block; width: 100%; text-align: left; border: 1.5px dashed var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 12px; border-radius: 16px; cursor: pointer; }
.free:hover { border-color: #c3a6ff; color: var(--lilac-ink); background: #fff; }
.day.today { box-shadow: 0 0 0 3px #ff9fc0, var(--shadow); }

/* ---------- ideas ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select { width: auto; padding: 8px 12px; }
.search { flex: 1 1 220px; }
.ideas { columns: 3 300px; column-gap: 16px; }
.idea { break-inside: avoid; margin-bottom: 16px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; display: block; }
.idea:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.idea .pic { height: 170px; background-size: cover; background-position: center; position: relative; }
.idea .pic .chips { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.idea .pic .chips .chip { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.idea .body { padding: 14px 16px 14px; display: grid; gap: 8px; }
.idea h3 { font-size: 18px; font-weight: 600; }
.idea p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.art { position: relative; overflow: hidden; }
.art .art-emoji { position: absolute; right: 16px; bottom: 6px; font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .1)); }
.art .art-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .55) 2px, transparent 2.5px); background-size: 18px 18px; opacity: .7; }
.vote { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; padding: 2px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.vote button { border: 0; background: none; padding: 3px 8px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: transform .1s; }
.vote button:active { transform: scale(1.3); }
.vote button.on.up { background: var(--mint); }
.vote button.on.down { background: var(--pink); }
.vote b { min-width: 18px; text-align: center; font-size: 14px; }

/* ---------- map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 360px; height: calc(100vh - 59px); }
#map { height: 100%; width: 100%; background: #eef3fb; z-index: 1; }
.map-side { background: rgba(255, 255, 255, .92); border-left: 1px solid var(--line); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.map-side h2 { font-size: 22px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 13px; cursor: pointer; font-size: 13px; font-weight: 700; border-radius: 999px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(108, 86, 180, .15); }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chip { border: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; color: rgba(40, 30, 70, .8); opacity: .55; transition: opacity .15s, transform .1s; }
.day-chip.on { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.day-chip:hover { opacity: 1; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.toggle input { accent-color: #b18cff; width: 18px; height: 18px; }
.map-list { display: grid; gap: 6px; }
.map-list .item { margin: 0; }
.map-list .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #fff; border: 3px solid; box-shadow: 0 6px 14px rgba(60, 40, 110, .3); display: grid; place-items: center; overflow: hidden; }
.pin > * { transform: rotate(45deg); }
.pin .face { width: 100%; height: 100%; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 20px; }
.pin-num { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.pin.idea-pin { width: 32px; height: 32px; border-width: 2px; opacity: .9; }
.pin.idea-pin .face { font-size: 15px; }
.pin.hot { animation: bounce .7s ease 2; }
@keyframes bounce { 50% { transform: rotate(-45deg) translate(0, -8px); } }
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; box-shadow: var(--shadow-hover); }
.leaflet-popup-content { margin: 0; width: 250px !important; font: 14px/1.45 "Nunito", sans-serif; }
.pop .pic { height: 120px; background-size: cover; background-position: center; }
.pop .b { padding: 10px 12px 12px; display: grid; gap: 6px; }
.pop h3 { font-size: 16px; }
.map-fab { position: absolute; z-index: 500; right: 12px; display: grid; gap: 8px; top: 12px; }
.map-fab .btn { background: #fff; border: 0; box-shadow: var(--shadow); }
.pin-mode #map { cursor: crosshair; }
.pin-banner { position: absolute; z-index: 600; left: 50%; top: 14px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-hover); }
.map-main { position: relative; }
@media (max-width: 760px) {
  .map-wrap { grid-template-columns: 1fr; grid-template-rows: 58vh auto; height: auto; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- tasks ---------- */
.task-add { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.task-add .grow { flex: 1 1 260px; }
.task-add select, .task-add input[type=date] { width: auto; flex: 0 1 auto; }
.tasks { overflow: hidden; }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--good); flex-shrink: 0; }
.task .grow { flex: 1; min-width: 0; }
.task .tt { font-weight: 700; }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.task .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.task .meta a { text-decoration: none; }
.overdue { color: var(--pink-ink); font-weight: 800; }

/* ---------- flights ---------- */
.crews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.crew { padding: 16px 18px; }
.crew.tus { background: linear-gradient(135deg, #fff3d6, #ffe0cc); }
.crew.sea { background: linear-gradient(135deg, #dff5ea, #d8ebff); }
.flight { padding: 16px 18px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; position: relative; overflow: hidden; }
.flight::before { content: "✈"; position: absolute; right: -6px; bottom: -26px; font-size: 110px; color: var(--surface-2); z-index: 0; transform: rotate(-20deg); }
.flight > * { position: relative; }
.route { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 26px; font-weight: 600; }
.route .arrow { color: #c3a6ff; font-size: 18px; }
.flight .times { font-size: 13px; color: var(--muted); font-weight: 600; }
.flight .who { grid-column: 1 / -1; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--lilac); color: var(--lilac-ink); padding: 1px 8px; border-radius: 8px; border: 0; cursor: copy; font-weight: 700; }

/* ---------- files & notes ---------- */
.drop { border: 2px dashed #d6c8ff; border-radius: var(--r); padding: 26px; text-align: center; background: rgba(255, 255, 255, .6); color: var(--muted); font-weight: 700; transition: background .15s, border-color .15s; }
.drop.over { background: var(--lilac); border-color: var(--lilac-ink); color: var(--lilac-ink); }
.drop .big { font-size: 36px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.gallery .ph { aspect-ratio: 1; border-radius: 16px; background-size: cover; background-position: center; cursor: zoom-in; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; border: 0; padding: 0; }
.gallery .ph:hover { transform: scale(1.02); }
.gallery .ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs { display: grid; gap: 8px; margin-top: 14px; }
.doc { display: flex; gap: 12px; align-items: center; padding: 10px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.doc .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--peach); display: grid; place-items: center; font-size: 20px; }
.doc .grow { flex: 1; min-width: 0; }
.doc .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-area { width: 100%; min-height: 320px; border-radius: var(--r); padding: 16px; font: 14px/1.65 ui-monospace, Menlo, monospace; box-shadow: var(--shadow); border: 0; }
.help { padding: 18px 20px; margin-top: 18px; background: var(--grad-soft); box-shadow: none; }
.help h3 { font-size: 18px; margin-bottom: 6px; }
.help ul { margin: 0; padding-left: 18px; font-size: 14px; }
.help li { margin: 6px 0; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* strip of photos in idea modal */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.strip .ph { width: 92px; height: 92px; flex-shrink: 0; border-radius: 14px; background-size: cover; background-position: center; cursor: zoom-in; position: relative; border: 0; }
.strip .add { width: 92px; height: 92px; flex-shrink: 0; border-radius: 14px; border: 2px dashed #d6c8ff; background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--lilac-ink); cursor: pointer; text-align: center; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.cover-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.cover-pick button { width: 84px; height: 56px; flex-shrink: 0; border-radius: 12px; background-size: cover; background-position: center; border: 3px solid transparent; cursor: pointer; padding: 0; }
.cover-pick button.on { border-color: var(--ink); }

/* ---------- modal, toast, fab ---------- */
.overlay { position: fixed; inset: 0; background: rgba(60, 45, 100, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; animation: fade .15s; }
.modal { background: #fff; width: 100%; max-width: 580px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 22px; animation: up .2s ease; position: relative; }
.modal.wide { max-width: 900px; }
.modal .hero-img { margin: -22px -22px 14px; height: 230px; background-size: cover; background-position: center; position: relative; }
.modal h2 { font-size: 25px; margin-bottom: 4px; }
.modal .close { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(255, 255, 255, .9); border-radius: 50%; width: 34px; height: 34px; padding: 0; justify-content: center; }
@media (min-width: 640px) { .overlay { align-items: center; } .modal { border-radius: 26px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.lightbox { background: transparent; box-shadow: none; max-width: 92vw; padding: 0; text-align: center; overflow: visible; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: block; margin: 0 auto 12px; }
.comments { margin-top: 18px; border-top: 1.5px solid var(--line); padding-top: 14px; }
.comment { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.comment .bubble { background: var(--surface-2); padding: 8px 12px; border-radius: 4px 16px 16px 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.comment.fresh .bubble { background: var(--lilac); }
.comment .when { font-size: 11px; color: var(--muted); font-weight: 700; }
.sched-box { background: var(--surface-2); border-radius: 18px; padding: 14px; margin-top: 14px; }
.qa-input { border-width: 2px; border-radius: 18px; padding: 14px; font-size: 16px; resize: none; margin-bottom: 10px; min-height: 0; }
.qa-preview { margin-bottom: 10px; font-size: 14px; }
.qa-card { display: flex; gap: 12px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.qa-card .img { width: 120px; min-height: 90px; flex-shrink: 0; background-size: cover; background-position: center; }
.qa-card > div:last-child { padding: 10px 12px 10px 0; min-width: 0; }
.qa-card > div:only-child { padding-left: 12px; }
.qa-card .site { font-size: 12px; color: var(--muted); font-weight: 700; }
.qa-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed { display: grid; gap: 4px; }
.feed-item { display: flex; gap: 10px; padding: 10px; border-radius: 14px; font-size: 14px; cursor: pointer; align-items: flex-start; }
.feed-item:hover { background: var(--surface-2); }
.feed-item.fresh { background: var(--grad-soft); }
.feed-item .when { font-size: 12px; color: var(--muted); }
.pick-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.pick-list .item { margin: 0; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 10px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2000; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fab { position: fixed; right: 22px; bottom: 24px; width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--grad); color: #fff; font-size: 32px; line-height: 1; box-shadow: 0 10px 26px rgba(195, 140, 230, .55); cursor: pointer; z-index: 70; transition: transform .15s; }
.fab:hover { transform: rotate(90deg) scale(1.05); }
@media (max-width: 760px) { .fab { bottom: 92px; right: 16px; width: 54px; height: 54px; border-radius: 18px; } }
.print-only { display: none; }

@media (max-width: 560px) {
  .slot { grid-template-columns: 1fr; gap: 2px; }
  .slot-name { padding-top: 4px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 select:first-child { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 28px; }
  .task { flex-wrap: wrap; }
  .task > .row { margin-left: 34px; }
  .section-head h2 { font-size: 23px; }
}
@media print {
  .tabs, .fab, .no-print, .vote, .who, .hero, .legend, #toast, .day-actions { display: none !important; }
  .print-only { display: block; }
  .top { position: static; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* ---------- family ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.person { overflow: hidden; }
.person-top { display: flex; gap: 12px; align-items: center; padding: 16px; }
.person-top h3 { font-size: 21px; }
.person-top .grow { flex: 1; min-width: 0; }
.person-body { padding: 4px 16px 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--line); align-items: center; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); font-weight: 700; white-space: nowrap; }
.kv .v { text-align: right; font-weight: 700; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.kv-group { margin-top: 12px; background: var(--surface-2); border-radius: 14px; padding: 8px 12px; }
.kv-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--lilac-ink); margin-bottom: 2px; }
.code.secret { font-size: 13px; }
.chip.bday { background: linear-gradient(120deg, #ffe1ec, #fff1b8); color: var(--pink-ink); }
.docs-check { overflow: hidden; }
.table-wrap { overflow-x: auto; padding: 0 8px 10px; }
.docs-check table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 13px; }
.docs-check th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; white-space: nowrap; }
.docs-check td { padding: 8px; background: var(--surface-2); white-space: nowrap; font-weight: 700; }
.docs-check td:first-child { border-radius: 12px 0 0 12px; }
.docs-check td:last-child { border-radius: 0 12px 12px 0; }
.docs-check tr { cursor: pointer; }
.docs-check tbody tr:hover td { background: var(--lilac); }
.chk.warn { color: var(--warn-ink); }
.chk.todo { color: var(--muted); }
.ff-list { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 4px; }
.ff { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; background: var(--surface-2); padding: 6px 10px; border-radius: 12px; }
.pick-chip { border: 0; cursor: pointer; gap: 6px; padding: 3px 10px 3px 3px; }
.pick-chip.on { background: var(--lilac); color: var(--lilac-ink); box-shadow: inset 0 0 0 1.5px var(--lilac-ink); }
.form-sec { font-family: var(--head); font-weight: 600; font-size: 17px; margin: 18px 0 8px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.loy-list { margin-bottom: 8px; }
@media (max-width: 760px) { .tabs button { font-size: 10px; padding: 6px 2px; } .tabs .ic { font-size: 19px; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }
