/* Plan page (/p/<code>) and weekend page - on top of site.css */
.narrow { max-width: 640px; }
header .app-link { font-weight: 700; font-size: 14px; color: var(--brand); text-decoration: none; background: var(--brand-tint); padding: 8px 14px; border-radius: 999px; }
main.narrow { padding-bottom: 60px; }

.loading { padding-top: 10px; }
.sk { background: linear-gradient(90deg, #ECE9F7 25%, #F6F4FC 50%, #ECE9F7 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 12px; margin-bottom: 12px; }
.sk-title { height: 40px; width: 70%; }
.sk-line { height: 18px; width: 45%; }
.sk-card { height: 90px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.invited { color: var(--muted); font-weight: 600; font-size: 15px; margin: 6px 0 4px; }
.plan-title { font-size: clamp(30px, 7vw, 42px); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 8px; font-weight: 800; }
.plan-when { color: var(--ink-2); font-size: 16px; margin: 0 0 6px; }
.plan-people { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); margin-bottom: 10px; }
.pill.set { background: #E3F4EA; color: var(--ok); }

.card { background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 24px rgba(30, 27, 46, 0.05); }
.card h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.02em; }
.card .hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.surprise { background: var(--brand-tint); }

.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1; }
.join-row .btn { width: auto; margin: 0; white-space: nowrap; }

.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp button, .chip-btn { font: inherit; font-weight: 700; font-size: 14px; padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #FBFAFE; color: var(--ink-2); cursor: pointer; }
.rsvp button.on, .chip-btn.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 2px; }
.tabs button { font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 0; background: #E9E6F5; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--brand); color: #fff; }

.day-label { font-weight: 800; font-size: 15px; margin: 6px 0 10px; }
.stop { display: grid; grid-template-columns: 62px 1fr; gap: 10px; margin-bottom: 10px; }
.stop .time { text-align: right; font-weight: 700; font-size: 13px; color: var(--ink-2); padding-top: 14px; }
.stop .body { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; border: 1px solid var(--line); }
.stop.hidden .body { background: var(--brand-tint); border-style: dashed; border-color: var(--brand-soft); }
.thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--brand-tint); display: grid; place-items: center; font-size: 22px; }
.stop .name { font-weight: 700; font-size: 15px; margin: 0; }
.stop .sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.stop .note { color: var(--ink-2); font-size: 13px; font-style: italic; margin: 4px 0 0; }
.stop a { color: var(--brand); font-weight: 600; }
.leg { color: var(--muted); font-size: 12px; margin: -4px 0 8px 72px; }

.idea { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.idea .text { flex: 1; min-width: 0; }
.idea .name { font-weight: 700; margin: 0; }
.idea .sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote { font: inherit; font-weight: 800; font-size: 15px; padding: 9px 12px; min-width: 66px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.vote.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.vote:disabled { opacity: 0.55; cursor: default; }

.date { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 10px; cursor: pointer; }
.date input { width: 20px; height: 20px; accent-color: var(--brand); }
.date .text { flex: 1; }
.date .top { display: flex; justify-content: space-between; font-weight: 700; }
.date .top small { color: var(--muted); font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: #EEEBF7; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.date .voters { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.member .name { flex: 1; font-weight: 600; }
.member .name small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.member .rsvp-tag { font-size: 13px; font-weight: 800; }

.msg-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bubble { align-self: flex-start; max-width: 85%; background: #EEEBF7; padding: 9px 12px; border-radius: 14px; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; }
.bubble b { display: block; font-size: 12px; color: var(--brand); }
.bubble.mine b { display: none; }
.bubble span { white-space: pre-wrap; word-wrap: break-word; }
.composer { display: flex; gap: 8px; }
.composer textarea { flex: 1; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); resize: none; min-height: 46px; background: #FBFAFE; color: var(--ink); }
.composer .btn { width: auto; margin: 0; }

.suggest { display: grid; gap: 8px; margin-top: 8px; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }
.cta-app { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; margin-top: 18px; }
.cta-app p { color: #CFCBE0; margin: 4px 0 12px; line-height: 1.5; }
.cta-app .btn { background: #fff; color: var(--ink); }
.cta-app .cta-alt { margin: 10px 0 0; font-size: 14px; text-align: center; }
.cta-app .cta-alt a { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: transform 0.25s ease; max-width: calc(100% - 32px); z-index: 50; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--err); }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; padding-top: 20px; padding-bottom: 30px; }
footer nav { display: flex; gap: 14px; }
footer a { text-decoration: none; }

/* weekend page */
.w-hero { background: #4B3FA0; color: #fff; border-radius: 22px; padding: 22px; margin: 6px 0 22px; }
.w-hero small { letter-spacing: 0.1em; font-weight: 800; opacity: 0.8; font-size: 12px; }
.w-hero h1 { font-size: clamp(32px, 7vw, 46px); margin: 6px 0 4px; color: #fff; }
.w-hero p { margin: 0; opacity: 0.9; }
.w-section h2 { font-size: 20px; letter-spacing: -0.02em; margin: 26px 0 12px; }
.w-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.w-card { flex-shrink: 0; width: 230px; background: var(--card); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; scroll-snap-align: start; border: 1px solid var(--line); }
.w-card .img { height: 120px; background: var(--brand-tint); display: grid; place-items: center; font-size: 36px; }
.w-card .img img { width: 100%; height: 100%; object-fit: cover; }
.w-card .body { padding: 12px; }
.w-card .kick { font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: 0.05em; }
.w-card .t { font-weight: 800; margin: 3px 0; }
.w-card .s { color: var(--muted); font-size: 13px; line-height: 1.4; }
.w-list a { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; margin-bottom: 10px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.w-list .date-badge { width: 54px; height: 54px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; text-align: center; font-weight: 800; line-height: 1; flex-shrink: 0; }
.w-list .date-badge small { display: block; font-size: 11px; font-weight: 700; }
.w-list .t { font-weight: 700; }
.w-list .s { color: var(--muted); font-size: 13px; }

@media (max-width: 520px) {
  .rsvp button { font-size: 13px; padding: 10px 4px; }
  .stop { grid-template-columns: 52px 1fr; }
  .leg { margin-left: 62px; }
}
