:root {
  --ink: #1c1a18;
  --muted: #746f69;
  --paper: #f5f1ea;
  --card: #fffdf9;
  --line: #ded7cc;
  --obsidian: #1a1917;
  --gold: #bf9760;
  --gold-soft: #eadcc8;
  --sage: #52665a;
  --rose: #9b625a;
  --shadow: 0 18px 50px rgba(34, 28, 20, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 15% 10%, #4a4035 0, transparent 27%), radial-gradient(circle at 88% 85%, #423126 0, transparent 25%), var(--obsidian); position: relative; overflow: hidden; }
.login-shell::before, .login-shell::after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(191,151,96,.18); border-radius: 50%; }
.login-shell::before { left: -320px; top: -250px; }
.login-shell::after { right: -330px; bottom: -320px; }
.login-card { width: min(100%, 520px); background: rgba(255,253,249,.98); padding: clamp(28px, 6vw, 56px); border-radius: 2px; box-shadow: 0 30px 100px rgba(0,0,0,.35); position: relative; z-index: 1; }
.brand-mark { width: 48px; height: 48px; background: var(--obsidian); color: var(--gold); display: grid; place-items: center; font: 26px var(--serif); margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.eyebrow.light { color: #ddc096; }
.login-card h1, .hero h1 { font: 400 clamp(40px, 7vw, 62px)/.98 var(--serif); letter-spacing: -.035em; margin: 0; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
.login-copy { color: var(--muted); line-height: 1.65; margin: 20px 0 24px; }
.date-lockup { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 24px; }
.date-lockup > span { font: 36px var(--serif); color: var(--gold); }
.date-lockup div { display: grid; gap: 3px; }
.date-lockup strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.date-lockup small { color: var(--muted); }
label { display: grid; gap: 7px; color: #4f4a45; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 13px 14px; border-radius: 8px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,151,96,.14); }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.button { border: 0; border-radius: 8px; padding: 12px 17px; font-weight: 750; min-height: 44px; }
.export-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: var(--obsidian); color: #fff; }
.button.secondary { background: var(--gold-soft); color: #4b3621; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.danger { background: transparent; color: var(--rose); border: 1px solid #dfb8b2; }
.button.danger.solid { background: #8e4e46; color: #fff; border-color: #8e4e46; }
.button.google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); }
.button.google span { font-weight: 900; color: #4285f4; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: #aaa39b; font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.local-note { text-align: center; color: var(--muted); font-size: 11px; margin: 15px 0 0; }
.form-error { min-height: 18px; color: #a13f36; font-size: 12px; margin: 7px 0 0; }

.app-shell { min-height: 100vh; padding-bottom: 80px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 5vw, 64px); background: var(--obsidian); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.wordmark { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 13px; letter-spacing: .2em; font-weight: 800; }
.wordmark > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); font: 19px var(--serif); }
.wordmark div { display: grid; }
.wordmark small { color: var(--gold); font-size: 7px; letter-spacing: .32em; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.sync-state { font-size: 11px; color: #b8c8bc; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: #38332e; color: #fff; font-weight: 800; }

.hero { background: var(--obsidian); color: #fff; padding: clamp(38px, 7vw, 76px) clamp(18px, 7vw, 92px); display: flex; justify-content: space-between; align-items: end; gap: 36px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(191,151,96,.15); border-radius: 50%; right: 9%; top: -290px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 780px; }
.hero > div > p:last-child { color: #aaa39b; margin: 18px 0 0; }
.countdown-card { min-width: 150px; border-left: 1px solid rgba(255,255,255,.18); padding-left: 30px; display: grid; position: relative; z-index: 1; }
.countdown-card > span { font: 72px/.8 var(--serif); color: var(--gold); }
.countdown-card small { color: #aaa39b; margin: 8px 0 20px; }
.countdown-card div { font-size: 11px; letter-spacing: .16em; }

.desktop-nav { display: flex; padding: 0 clamp(18px, 7vw, 92px); background: var(--obsidian); border-top: 1px solid rgba(255,255,255,.08); }
.desktop-nav button { color: #aaa39b; background: none; border: 0; border-bottom: 2px solid transparent; padding: 18px 20px; }
.desktop-nav button.active { color: #fff; border-bottom-color: var(--gold); }
.desktop-nav span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 5px; border-radius: 12px; background: var(--gold); color: #1a1917; font-size: 10px; font-weight: 800; }
.content-wrap { max-width: 1280px; margin: auto; padding: clamp(30px, 5vw, 64px) clamp(16px, 5vw, 54px); }
.view { display: none; }
.view.active { display: block; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font: 400 clamp(32px, 4vw, 46px) var(--serif); }
.section-heading > div > p:last-child { color: var(--muted); margin: 8px 0 0; }
.heading-actions { display: flex; gap: 9px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary-card { background: var(--card); border: 1px solid var(--line); padding: 18px; min-height: 120px; display: grid; align-content: space-between; box-shadow: 0 5px 24px rgba(34,28,20,.025); }
.summary-card small { color: var(--muted); }
.summary-card strong { font: 36px var(--serif); }
.summary-card.attention strong { color: var(--rose); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.panel-heading h3 { margin: 0; font: 27px var(--serif); }
.text-button { border: 0; background: none; color: var(--gold); font-weight: 800; font-size: 12px; }
.next-event { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.date-tile { text-align: center; border: 1px solid var(--line); padding: 7px 3px; }
.date-tile strong { display: block; font: 22px var(--serif); }
.date-tile small { color: var(--gold); font-weight: 800; font-size: 9px; }
.next-event h4, .task-row h4 { margin: 0 0 5px; font-size: 14px; }
.next-event p, .task-row p { margin: 0; color: var(--muted); font-size: 12px; }
.next-event time { color: var(--muted); font-size: 12px; }

.timeline { position: relative; }
.overall-readiness { background: var(--obsidian); color: #fff; padding: clamp(21px, 4vw, 32px); display: grid; grid-template-columns: 1fr auto; gap: 24px; margin-bottom: 14px; }
.overall-readiness h3 { margin: 0 0 6px; font: 29px var(--serif); }
.overall-readiness p { margin: 0; color: #bdb5ac; font-size: 13px; }
.readiness-stats { display: flex; gap: 24px; align-items: center; }
.readiness-stat { display: grid; text-align: right; }
.readiness-stat strong { font: 27px var(--serif); color: var(--gold); }
.readiness-stat small { color: #aaa39b; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.programme-progress { height: 5px; background: rgba(255,255,255,.15); margin-top: 18px; overflow: hidden; }
.programme-progress > span { display: block; height: 100%; background: var(--gold); }
.programme-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 10px; margin: 17px 0 27px; }
.programme-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.ready { background: #5d8069; }.legend-dot.on-track { background: var(--gold); }.legend-dot.risk { background: var(--rose); }.legend-dot.none { background: #b9b2a9; }
.timeline::before { content: ""; position: absolute; left: 103px; top: 17px; bottom: 17px; width: 1px; background: var(--line); }
.timeline-day { margin: 30px 0 12px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.timeline-item { display: grid; grid-template-columns: 78px 26px 1fr; gap: 13px; margin-bottom: 14px; position: relative; }
.timeline-time { text-align: right; font-weight: 800; font-size: 13px; padding-top: 23px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; margin: 24px auto 0; background: var(--paper); border: 3px solid var(--gold); z-index: 1; }
.timeline-card { background: var(--card); border: 1px solid var(--line); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.timeline-card h3 { margin: 0 0 7px; font: 23px var(--serif); }
.programme-card-actions { display: flex; align-items: start; gap: 7px; }
.edit-event { border: 0; background: transparent; color: var(--gold); font-size: 10px; font-weight: 850; padding: 6px; }
.timeline-card p { margin: 5px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-chip, .priority-chip { border-radius: 20px; padding: 5px 9px; height: fit-content; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; background: #eee8df; color: #70675e; }
.status-chip.confirmed { background: #dce8df; color: #375143; }
.readiness-block { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 15px; }
.readiness-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 9px; }
.readiness-head strong { font-size: 12px; }
.readiness-state { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.readiness-state.ready { color: #4f735c; }.readiness-state.on-track { color: #8b682f; }.readiness-state.risk { color: var(--rose); }.readiness-state.none { color: var(--muted); }
.event-progress { height: 4px; background: #ebe5dc; overflow: hidden; margin-bottom: 10px; }
.event-progress span { display: block; height: 100%; background: var(--gold); }
.prerequisite-list { display: grid; gap: 7px; }
.prerequisite-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11px; color: #59534d; }
.prerequisite-item .mini-check { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #aaa199; display: grid; place-items: center; font-size: 9px; }
.prerequisite-item.done { color: #8d8780; text-decoration: line-through; }
.prerequisite-item.done .mini-check { background: var(--sage); border-color: var(--sage); color: white; }
.prerequisite-item.risk { color: var(--rose); }
.add-prerequisite { border: 0; background: none; color: var(--gold); padding: 6px 0 0; font-size: 10px; font-weight: 850; }

.task-controls { display: flex; justify-content: space-between; margin-bottom: 16px; }
.people-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 18px; scrollbar-width: thin; }
.person-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.person-pill > span, .person-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #5f472c; font: 15px var(--serif); }
.person-pill div { display: grid; gap: 1px; }
.person-pill strong { font-size: 12px; }
.person-pill small { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 6px; }
.segmented button.active { background: var(--obsidian); color: #fff; }
.task-list { background: var(--card); border: 1px solid var(--line); }
.task-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 22px; height: 22px; appearance: none; border: 2px solid #beb5a9; border-radius: 50%; padding: 0; }
.task-check:checked { background: var(--sage); border-color: var(--sage); position: relative; }
.task-check:checked::after { content: "✓"; color: #fff; display: grid; place-items: center; font-size: 13px; }
.task-row.done h4 { text-decoration: line-through; color: #999; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.task-meta span { color: var(--muted); font-size: 11px; }
.priority-chip.high { background: #f3ded9; color: #93483e; }
.priority-chip.medium { background: #eee8df; }
.task-due { color: var(--muted); font-size: 12px; min-width: 78px; text-align: right; }
.edit-task { border: 0; background: transparent; color: var(--gold); font-size: 11px; font-weight: 800; padding: 8px; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; }

.history-controls { margin-bottom: 18px; overflow-x: auto; }
.history-list { position: relative; display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); }
.history-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.history-item:last-child { border-bottom: 0; }
.history-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #60482e; font-weight: 900; }
.history-icon.deleted { background: #f3ded9; color: var(--rose); }
.history-icon.people { background: #dde6df; color: var(--sage); }
.history-icon.programme { background: #e3e0ec; color: #5b5273; }
.history-copy h3 { margin: 0 0 4px; font-size: 14px; }
.history-copy p { margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.history-copy .history-note { color: var(--ink); background: #f5f0e9; border-left: 2px solid var(--gold); padding: 7px 9px; margin-top: 8px; }
.history-changes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.history-change { padding: 3px 7px; border-radius: 12px; background: #eee9e2; color: #665f57; font-size: 9px; }
.history-time { color: var(--muted); font-size: 10px; white-space: nowrap; padding-top: 3px; }
.guest-summary { margin-bottom: 18px; }
.guest-controls { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, .35fr)); gap: 10px; margin-bottom: 16px; }
.guest-controls label { gap: 5px; }
.guest-controls label > span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.guest-list { display: grid; background: var(--card); border: 1px solid var(--line); }
.guest-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(120px, .75fr) minmax(125px, .75fr) minmax(160px, 1fr) auto; gap: 15px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.guest-row:last-child { border-bottom: 0; }
.guest-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.guest-name .person-avatar { flex: 0 0 auto; }
.guest-name strong, .guest-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-name small, .guest-cell small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.guest-cell { min-width: 0; font-size: 12px; }
.contact-chip, .rsvp-chip { display: inline-block; border-radius: 14px; padding: 5px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 850; background: #eee8df; color: #6c645c; }
.contact-chip.contacted, .rsvp-chip.attending { background: #dce8df; color: #375143; }
.contact-chip.follow_up { background: #f3ded9; color: var(--rose); }
.rsvp-chip.declined { background: #eee; color: #777; }
.guest-events { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.guest-event-tag { font-size: 8px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.edit-guest { border: 0; background: transparent; color: var(--gold); font-size: 11px; font-weight: 850; padding: 8px; }
.guest-modal { max-width: 760px; }
.modal fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.modal legend { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; padding: 0 6px; }
.guest-event-options { display: grid; gap: 8px; }
.guest-event-option { display: grid; grid-template-columns: auto 1fr 130px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.guest-event-option:last-child { border-bottom: 0; }
.guest-event-option input { width: auto; }
.guest-event-option strong { font-size: 12px; }
.guest-event-option small { display: block; color: var(--muted); margin-top: 2px; }
.guest-event-option select:disabled { opacity: .45; }
.mobile-nav { display: none; }
.modal { width: min(92vw, 620px); border: 0; padding: 0; background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.3); border-radius: 12px; }
.modal::backdrop, .account-popover::backdrop { background: rgba(20,18,16,.54); backdrop-filter: blur(3px); }
.modal form { padding: 28px; display: grid; gap: 17px; }
.people-modal-content { padding: 28px; }
.people-modal-content .modal-intro { color: var(--muted); line-height: 1.5; margin: 8px 0 20px; }
.people-list { display: grid; border: 1px solid var(--line); border-radius: 8px; max-height: 220px; overflow-y: auto; }
.people-list-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.people-list-row:last-child { border-bottom: 0; }
.people-list-row strong, .people-list-row small { display: block; }
.people-list-row small { color: var(--muted); margin-top: 2px; }
.access-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.remove-person { border: 0; background: transparent; color: var(--rose); font-size: 10px; font-weight: 800; padding: 7px; }
.person-row-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.share-person, .edit-person, .access-person { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; padding: 7px 9px; }
.access-person { border-color: #d8bd94; background: #fbf5eb; }
.access-toggle { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #f7f3ed; font-weight: 800 !important; }
.access-code-actions { display: flex; gap: 8px; margin-top: -8px; }
.share-result { padding: 14px; background: #f5f2ec; border: 1px solid var(--line); border-radius: 8px; }
.share-result p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button.whatsapp { background: #197b50; color: #fff; border-color: #197b50; }
.share-shell { min-height: 100vh; padding: 28px 16px; background: linear-gradient(145deg, #1b1917, #3c342d); }
.share-card { width: min(720px, 100%); margin: 0 auto; background: #fbfaf7; box-shadow: var(--shadow); }
.share-brand { display: flex; align-items: center; gap: 10px; padding: 20px 24px; color: #fff; background: #211e1b; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.share-brand > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); font: 20px var(--serif); color: var(--gold); }
.share-brand div { display: grid; }
.share-brand small { color: var(--gold); font-size: 7px; letter-spacing: .28em; }
#share-content { padding: 38px 34px; }
#share-content > h1 { margin: 4px 0 8px; font: 44px var(--serif); }
.share-intro { margin: 0 0 26px; color: var(--muted); font-size: 16px; }
#share-content blockquote { margin: 0 0 24px; padding: 18px 20px; border-left: 3px solid var(--gold); background: #f4eee6; font: 18px/1.5 var(--serif); }
#share-content blockquote small { display: block; margin-bottom: 7px; color: var(--muted); font: 9px var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.shared-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.shared-summary div { display: grid; gap: 3px; padding: 18px; border-right: 1px solid var(--line); }
.shared-summary div:last-child { border: 0; }
.shared-summary strong { font: 30px var(--serif); }
.shared-summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.shared-progress-bar { height: 6px; margin-bottom: 34px; background: #e7e1d9; }
.shared-progress-bar span { display: block; height: 100%; background: var(--gold); }
.shared-section { margin-top: 34px; }
.shared-task { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.shared-task.done h3 { color: var(--muted); text-decoration: line-through; }
.shared-task h3, .shared-event h3 { margin: 0 0 4px; font-size: 14px; }
.shared-task p, .shared-event p { margin: 0; color: var(--muted); font-size: 11px; }
.shared-check { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #197b50; }
.shared-task:not(.done) .shared-check { background: transparent; }
.shared-event { display: grid; grid-template-columns: 70px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.shared-event time { display: grid; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.shared-event time strong { margin-top: 4px; color: var(--ink); font-size: 14px; }
#share-content footer { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.person-form { border-top: 1px solid var(--line); margin-top: 22px; padding: 22px 0 0 !important; }
.person-form h3 { margin: 0; font: 23px var(--serif); }
.optional { color: var(--muted); font-weight: 400; }
.modal-header { display: flex; justify-content: space-between; align-items: start; }
.modal-header h2 { margin: 0; font: 32px var(--serif); }
.close-button { border: 0; background: none; font-size: 28px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; }
.modal-actions { display: flex; justify-content: end; gap: 9px; margin-top: 5px; }
.split-actions { display: grid; grid-template-columns: auto 1fr auto auto; }
.small-modal { max-width: 520px; }
.delete-task-name { background: #f4eee6; border-left: 3px solid var(--rose); padding: 13px; font-weight: 750; margin: 0; }
.delete-help { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
.account-popover { position: fixed; inset: 70px 20px auto auto; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(92vw, 310px); box-shadow: var(--shadow); }
.account-heading { display: grid; gap: 4px; padding: 20px; border-bottom: 1px solid var(--line); }
.account-popover small { color: var(--muted); text-transform: capitalize; }
.account-menu { display: grid; padding: 8px; border-bottom: 1px solid var(--line); }
.account-menu button { border: 0; border-radius: 6px; background: transparent; padding: 11px 12px; color: var(--ink); text-align: left; font: 700 12px var(--sans); }
.account-menu button:hover, .account-menu button:focus-visible { background: #f4eee6; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.account-actions .button { width: 100%; }
.toast { position: fixed; z-index: 20; left: 50%; top: 18px; transform: translate(-50%, -20px); background: #27231f; color: #fff; padding: 11px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .topbar { height: 62px; }
  .sync-state { display: none; }
  .hero { align-items: start; padding: 32px 18px 28px; }
  .hero h1 { font-size: 39px; }
  .countdown-card { min-width: 82px; padding-left: 16px; }
  .countdown-card > span { font-size: 50px; }
  .countdown-card div { display: none; }
  .desktop-nav { display: none; }
  .content-wrap { padding: 28px 14px 90px; }
  .section-heading { align-items: start; }
  .section-heading .button { white-space: nowrap; padding-inline: 12px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { min-height: 105px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .next-event { grid-template-columns: 50px 1fr; }
  .next-event time { grid-column: 2; }
  .timeline::before { left: 71px; }
  .timeline-item { grid-template-columns: 52px 14px 1fr; gap: 12px; }
  .timeline-card { grid-template-columns: 1fr; gap: 10px; padding: 17px; }
  .overall-readiness { grid-template-columns: 1fr; }
  .readiness-stats { justify-content: space-between; }
  .readiness-stat { text-align: left; }
  .timeline-time { font-size: 11px; }
  .task-row { grid-template-columns: auto 1fr auto auto; padding: 16px 10px; gap: 9px; }
  .task-row .priority-chip { display: none; }
  .task-due { min-width: 60px; font-size: 10px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5, 1fr); left: 0; right: 0; bottom: 0; z-index: 10; padding: 7px 5px max(7px, env(safe-area-inset-bottom)); background: rgba(27,25,23,.97); border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-nav button { border: 0; background: transparent; color: #8d8780; display: grid; gap: 2px; place-items: center; padding: 5px; font-size: 9px; }
  .mobile-nav button span { font-size: 18px; }
  .mobile-nav button.active { color: #dec195; }
  .field-grid { grid-template-columns: 1fr; }
  #share-content { padding: 28px 20px; }
  #share-content > h1 { font-size: 36px; }
  .share-actions { grid-template-columns: 1fr; }
  .modal form { padding: 22px 18px; }
  .history-item { grid-template-columns: 38px 1fr; padding: 15px 13px; gap: 10px; }
  .history-time { grid-column: 2; }
  .guest-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .guest-row { grid-template-columns: 1fr auto; gap: 10px; }
  .guest-row .guest-cell { grid-column: 1; }
  .guest-row .edit-guest { grid-column: 2; grid-row: 1; }
  .guest-event-option { grid-template-columns: auto 1fr; }
  .guest-event-option select { grid-column: 2; }
  .people-list-row { grid-template-columns: auto 1fr; }
  .person-row-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; }
}

@media (max-width: 430px) {
  .login-card { padding: 28px 22px; }
  .code-row { grid-template-columns: 1fr; }
  .hero { gap: 12px; }
  .hero h1 { font-size: 33px; }
  .countdown-card { padding-left: 11px; }
  .countdown-card > span { font-size: 43px; }
  .section-heading { display: grid; }
}
