/* The reply page, wedding websites and the dashboard. Builds on site.css. */

/* ---------------------------------------------------------------- guest pages (reply and wedding website) */
.guest-top { text-align: center; padding: 48px 20px 28px; }
.guest-top .eyebrow { margin-bottom: 10px; }
.guest-top h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 6px; }
.guest-top .date { font: 500 1.25rem/1.4 var(--display); color: var(--ink-2); }
.guest-wrap { width: min(640px, 100% - 32px); margin: 0 auto 64px; }
.guest-foot { text-align: center; color: var(--ink-3); font-size: .82rem; padding: 24px 0 40px; }
.guest-foot a { color: inherit; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { font-size: 1.8rem; margin-bottom: 4px; }
.panel h3 { font-size: 1.35rem; margin: 0 0 4px; }
fieldset.person { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 22px 22px 8px; margin: 0 0 18px; box-shadow: var(--shadow); min-width: 0; }
fieldset.person > legend { font: 500 1.7rem/1.1 var(--display); padding: 0 8px; margin-left: -8px; }
fieldset.person .tag { font: 500 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; vertical-align: middle; }
.q { border-top: 1px solid var(--line); padding: 16px 0; }
.q:first-of-type { border-top: 0; }
.q-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 10px; }
.q-head strong { font-weight: 600; }
.q-head span { color: var(--ink-3); font-size: .88rem; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.meals { margin-top: 14px; display: grid; gap: 14px; }
.meal-course p { margin: 0 0 8px; font-size: .9rem; font-weight: 600; }
.options { display: grid; gap: 8px; }
.options label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.options label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.options input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.options small { display: block; color: var(--ink-3); }
.field-error { color: var(--bad); font-size: .88rem; margin: 8px 0 0; }
.has-error .choice span, .has-error .options label { border-color: var(--bad); }
.summary-list { display: grid; gap: 14px; margin: 18px 0; }
.summary-list div { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.summary-list strong { display: block; margin-bottom: 4px; }
.summary-list p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.event-list { display: grid; gap: 16px; }
.event-list .ev { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.event-list .ev:first-child { border-top: 0; }
.event-list .when { font: 500 1.1rem/1.3 var(--display); color: var(--gold); }
@media (max-width: 560px) { .event-list .ev { grid-template-columns: 1fr; gap: 4px; } }
.code-form { display: flex; gap: 10px; flex-wrap: wrap; }
.code-form input { flex: 1 1 200px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---------------------------------------------------------------- dashboard */
body.app { background: #f6f2ec; }
.app-top { background: var(--ink); color: var(--cream); }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.app-top .brand { color: var(--cream); font-size: 1.3rem; }
.app-top .brand svg path[fill="#2a2520"], .app-top .brand svg ellipse, .app-top .brand svg circle[fill="#2a2520"] { fill: var(--cream); }
.app-top .who { display: flex; align-items: center; gap: 14px; font-size: .88rem; color: #d9d0c5; }
.app-top button { background: none; border: 1px solid #6b6158; color: var(--cream); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; }
.app-main { width: min(1180px, 100% - 32px); margin: 28px auto 80px; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.app-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.app-head .sub { color: var(--ink-3); margin: 4px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font: 500 .94rem var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; }
.box h2 { font-size: 1.6rem; margin-bottom: 6px; }
.box h3 { font-size: 1.25rem; margin-bottom: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font: 600 1.8rem/1.2 var(--body); letter-spacing: -.01em; }
.stat span { color: var(--ink-3); font-size: .85rem; }
.bar { height: 8px; background: var(--linen); border-radius: 99px; overflow: hidden; display: flex; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; }
.bar .y { background: var(--ok); } .bar .n { background: var(--rose-deep); } .bar .p { background: var(--gold-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th { text-align: left; font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td.nowrap { white-space: nowrap; }
table.list tr:hover td { background: #fcfaf7; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.pill.yes { background: var(--ok-soft); color: var(--ok); }
.pill.no { background: var(--bad-soft); color: var(--bad); }
.pill.pending { background: var(--linen); color: var(--ink-2); }
.pill.info { background: var(--gold-soft); color: #6d5226; }
.gl { min-height: 30px; display: flex; align-items: center; gap: 4px; }
.gl .pill { min-width: 34px; text-align: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 280px; min-height: 40px; }
.toolbar select { width: auto; min-height: 40px; }
.toolbar .spacer { flex: 1; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; font: inherit; }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(680px, 100% - 24px); max-height: 90vh; box-shadow: 0 20px 60px rgba(42, 37, 32, .3); }
dialog::backdrop { background: rgba(42, 37, 32, .45); }
dialog .dlg { padding: 24px; overflow-y: auto; max-height: 90vh; }
dialog .dlg h2 { font-size: 1.8rem; }
dialog .dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; position: sticky; bottom: -24px; background: #fff; padding: 12px 0; }
.guest-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.guest-row input[type=text] { min-height: 40px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; grid-column: 1 / -1; color: var(--ink-2); }
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.subtabs button { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font: 500 .88rem var(--body); color: var(--ink-2); cursor: pointer; }
.subtabs button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.box.next { border-left: 4px solid var(--gold); }
.box.next h2 { margin-bottom: 4px; } .box.next p { margin: 0 0 14px; color: var(--ink-2); }
.box.next .eyebrow { font: 600 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.card:hover, .card:focus-visible { border-color: var(--gold); }
.card-title { font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card b { font: 600 1.5rem/1.25 var(--body); letter-spacing: -.01em; margin-top: 6px; }
.card-sub { color: var(--ink-3); font-size: .85rem; }
.card .bar { margin-top: 10px; }
h3.section { font-size: 1.25rem; margin: 26px 0 12px; }
.task.plain { grid-template-columns: 112px 1fr; }
.when { font-size: .82rem; color: var(--ink-3); padding-top: 2px; } .when.late { color: var(--bad); font-weight: 600; }
.link-btn.left { text-align: left; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.budget-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .tabs { gap: 0; } .tabs button { padding: 12px 7px; font-size: .86rem; flex: 1 0 auto; } .grid2 { grid-template-columns: 1fr; } }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; margin-bottom: 18px; }
.seat-grid .box { margin-bottom: 0; }
.seat-table .toolbar h3 { flex: 1; }
.task.seat { grid-template-columns: 1fr auto; padding: 8px 0; }
.seat-group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.seat-pick { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.seat-pick input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.seat-pick:not(.head) { padding-left: 4px; }
.task.plain.day { grid-template-columns: 64px 1fr auto; }
.when.time { font: 600 1rem var(--body); color: var(--ink); padding-top: 0; }
@media print { .app-top, .app-head .btns, .tabs, .subtabs, .toolbar, .link-btn, footer { display: none !important; } body { background: #fff; } .box { border: 0; padding: 0; } }
.checks.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: .95rem; color: var(--ink); }
.checks.setup input { width: 20px; height: 20px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; align-items: start; }
.kcol { background: #ece6dc; border-radius: var(--r); padding: 10px; min-height: 140px; scroll-snap-align: start; border-top: 4px solid var(--line); }
.kcol.k-doing { border-top-color: var(--gold); } .kcol.k-blocked { border-top-color: var(--bad); } .kcol.k-done { border-top-color: var(--ok, #3d7a55); }
.kcol.over { outline: 2px dashed var(--gold); outline-offset: -4px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; } .kcol-head strong { flex: 0 1 auto; } .kcol-head .link-btn { margin-left: auto; font-size: .84rem; }
.kcard { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; }
.kcard.p-high { border-left-color: var(--bad); } .kcard.p-low { border-left-color: #cfc8bd; } .kcard.pay { border-left-color: var(--gold); cursor: default; }
.k-done .kcard { opacity: .7; } .k-done .kcard-title { text-decoration: line-through; }
.kcard-title { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: 500 .95rem/1.35 var(--body); color: var(--ink); cursor: pointer; }
.kcard-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.kcard-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; } .kcard-actions .btn.small { padding: 5px 12px; font-size: .8rem; }
.due.late { color: var(--bad); font-weight: 600; }
.kempty { font-size: .84rem; text-align: center; margin: 18px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 7px 14px; font: 500 .86rem var(--body); cursor: pointer; color: var(--ink-2); } .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .kanban { grid-auto-columns: 82%; } }
.wopts { display: grid; gap: 8px; } .wopts button { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; }
.wopts button span { font-size: .86rem; color: var(--ink-3); } .wopts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; } .wopts button[aria-pressed="true"] span { color: #ddd6cc; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips button { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font: 500 .88rem var(--body); cursor: pointer; color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.wish { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .wish.quiet { opacity: .65; }
.wish-head { display: flex; gap: 10px; align-items: flex-start; } .wish p { margin: 6px 0 0; font-size: .9rem; } .wish-meta { color: var(--ink-3); font-size: .84rem !important; }
.wish-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.pill-btn { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 2px 10px; font: 600 .72rem var(--body); cursor: pointer; color: var(--ink-3); }
.pill-btn.s-discussing { background: #e7f1fb; border-color: #b9d4ee; color: #26557e; } .pill-btn.s-done { background: #e5f4e4; border-color: #b5d9b3; color: #2f6b3a; }
.people { list-style: none; margin: 0; padding: 0; } .people li { border-bottom: 1px solid var(--line); } .people li:last-child { border-bottom: 0; }
.person { display: flex; gap: 12px; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 12px 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.person:hover strong, .person:focus-visible strong { text-decoration: underline; }
.person-main { display: flex; flex-direction: column; min-width: 0; } .person-main small { color: var(--ink-3); font-size: .84rem; }
.person-side { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; flex: none; max-width: 45%; }
.tag { display: inline-block; background: #efe9df; color: var(--ink-2); border-radius: 6px; padding: 1px 8px; font-size: .76rem; font-weight: 500; margin-right: 4px; }
.psec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; } .psec h4 { margin: 0; flex: 1; font: 600 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.plain { list-style: none; margin: 0; padding: 0; font-size: .93rem; } .plain li { padding: 3px 0; }
.bar.big { height: 14px; display: flex; } .bar i.p { background: #d9c08a; display: block; height: 100%; } .bar i.n { background: var(--bad); display: block; height: 100%; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 2px 0 8px; } .key.y { background: var(--ok, #3d7a55); } .key.p { background: #d9c08a; }
.catbars { display: grid; gap: 14px; } .catbar-head { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 4px; flex-wrap: wrap; }
.flow { display: flex; gap: 8px; align-items: flex-end; overflow-x: auto; padding-top: 6px; } .flow-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; font-size: .74rem; color: var(--ink-3); }
.flow-bar { width: 30px; display: flex; flex-direction: column; border-radius: 6px 6px 0 0; overflow: hidden; } .flow-bar i { display: block; min-height: 0; } .flow-bar i.y { background: var(--ok, #3d7a55); } .flow-bar i.p { background: #d9c08a; }
.procon { margin-top: 8px; font-size: .9rem; } .procon p { margin: 2px 0; } .stars { color: var(--gold); letter-spacing: 1px; }
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.task.done .task-title { text-decoration: line-through; color: var(--ink-3); }
.person-more { grid-column: 1 / -1; font-size: .9rem; }
.person-more summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 6px 0 4px; }
@media (max-width: 640px) { .person-grid { grid-template-columns: 1fr; } }
.links { margin: 0 0 8px; padding-left: 18px; font-size: .92rem; }
.checks label { display: inline-flex; gap: 6px; align-items: center; }
.menu-course { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.menu-option { display: grid; grid-template-columns: 1.2fr 1.5fr 160px auto; gap: 8px; margin-top: 8px; }
@media (max-width: 640px) { .menu-option { grid-template-columns: 1fr; } .guest-row { grid-template-columns: 1fr 1fr; } }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.qr-sheet figure { margin: 0; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.qr-sheet figcaption { font-size: .85rem; margin-top: 6px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: .92rem; z-index: 100; box-shadow: var(--shadow); }
@media print {
  .app-top, .tabs, .toolbar, .no-print { display: none !important; }
  body.app { background: #fff; }
}

/* Messages */
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.row3:empty { display: none; }
.chips.small button { padding: 5px 11px; font-size: .84rem; }
.mail-preview { background: var(--linen); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.5; max-height: 46vh; overflow-y: auto; }
.sect { font: 600 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px 0; }
.cal-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 92px; padding: 6px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font: inherit; color: inherit; overflow: hidden; }
.cal-day:hover { border-color: var(--ink-3); } .cal-day.today .cal-num { background: var(--ink); color: #fff; }
.cal-day.picked { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); } .cal-day.big { background: var(--gold-soft); }
.cal-num { font: 600 .84rem var(--body); width: 24px; height: 24px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; }
.cal-label { font-size: .72rem; line-height: 1.25; background: var(--linen); border-radius: 5px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-label.done { text-decoration: line-through; color: var(--ink-3); } .cal-label.more { background: none; color: var(--ink-3); }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; justify-content: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--ink-3); vertical-align: middle; }
.dot.k-appointment { background: #3f6fa3; } .dot.k-task { background: #7a8f5a; } .dot.k-payment { background: #b8863b; } .dot.k-event, .dot.k-wedding { background: #a3475c; } .dot.k-deadline { background: #c0392b; } .dot.k-message { background: #6b5b95; }
.dot.done { opacity: .35; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; margin: 12px 0 0; }
@media (max-width: 700px) {
  .cal { gap: 3px; } .cal-day { min-height: 52px; padding: 4px 2px; align-items: center; } .cal-label { display: none; } .cal-dots { display: flex; }
}

/* Venues */
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-bottom: 18px; }
.venue { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.venue.booked { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); } .venue.declined { opacity: .7; }
.venue-pic { aspect-ratio: 16 / 9; background: var(--linen) center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.venue-pic span { font: 500 3rem var(--display, Georgia, serif); color: var(--ink-3); }
.venue-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.venue-facts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .venue-facts .tag { margin: 0; }
.venue-for, .venue-against { margin: 0; font-size: .92rem; } .venue-for strong { color: var(--ok); } .venue-against strong { color: var(--bad); }
.inline { display: flex; gap: 8px; align-items: center; } .inline input { flex: 1; min-width: 0; }

/* Conversations */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.bubble { max-width: 88%; border-radius: 14px; padding: 10px 14px; background: var(--linen); align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--gold-soft); }
.bubble-who { font-size: .76rem; color: var(--ink-3); margin-bottom: 3px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.45; }
.thread-head { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.thread-head h3 { margin: 0; } .thread-head[aria-expanded="true"] { margin-bottom: 14px; }

/* Guest board */
.post.sorted { opacity: .75; } .post.announce { border-left: 4px solid var(--gold); } .post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 6px; }
.poll { display: grid; gap: 6px; margin: 8px 0 0; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; overflow: hidden; }
button.poll-opt { cursor: pointer; } .poll-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: var(--gold-soft); } .poll-opt span, .poll-opt b { position: relative; }

/* A wedding's website, in the couple's colours */
body.wsite h1, body.wsite h2 { color: var(--primary, var(--ink)); }
body.wsite .btn:not(.ghost) { background: var(--primary, var(--ink)); }
body.wsite.sans-heads h1, body.wsite.sans-heads h2, body.wsite.sans-heads h3, body.wsite.sans-heads .guest-top .date { font-family: var(--body); letter-spacing: -.02em; font-weight: 600; }
body.wsite.sans-heads .guest-top h1 { font-size: clamp(2rem, 6vw, 3rem); }
.guest-top .tagline { max-width: 34em; margin: 12px auto 0; color: var(--ink-2); font-size: 1.05rem; }
.guest-top .countdown { display: inline-block; margin: 14px 0 0; padding: 5px 16px; border-radius: 99px; background: var(--gold-soft); font: 600 .84rem var(--body); letter-spacing: .06em; text-transform: uppercase; }
.site-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0 16px 26px; font-size: .92rem; }
.site-menu a { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid transparent; } .site-menu a:hover { border-color: var(--gold); color: var(--ink); }
body.wsite section.panel { scroll-margin-top: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; } .faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 500; } .faq details p { margin: 8px 0 0; color: var(--ink-2); }
.preview-bar { margin: 0; padding: 10px 16px; text-align: center; background: #2a2520; color: #fff; font-size: .88rem; }

/* Website builder */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.theme { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; font: 500 .84rem var(--body); color: var(--ink); display: grid; gap: 6px; text-align: left; }
.theme[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch { display: flex; gap: 5px; align-items: center; justify-content: center; height: 44px; border-radius: 8px; border: 1px solid var(--line); }
.swatch i { width: 18px; height: 18px; border-radius: 99px; }
.task.sec { grid-template-columns: auto 1fr auto; align-items: center; } .task.sec.off .task-title { color: var(--ink-3); }
.updown { display: grid; gap: 2px; } .updown button { width: 30px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: .8rem; line-height: 1; }
.updown button:disabled { opacity: .3; cursor: default; }
@media (max-width: 560px) { .task.sec { grid-template-columns: auto 1fr; } .task.sec > .btns { grid-column: 2; justify-content: flex-start !important; } }

/* Permission profiles */
.perm { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.perm > div:first-child { flex: 1 1 200px; }

/* Partner portal */
.bars { display: flex; gap: 14px; align-items: flex-end; min-height: 110px; }
.bar-col { display: grid; justify-items: center; gap: 4px; font-size: .78rem; color: var(--ink-3); } .bar-col b { color: var(--ink); font-size: .82rem; }
.bar-col i { display: block; width: 34px; background: var(--gold); border-radius: 6px 6px 0 0; }
.brand-sample { background: var(--cream, #faf7f2); border: 1px solid var(--line); border-radius: 14px; padding: 28px 20px; text-align: center; }

/* Leads */
.kcol.lead-new { border-top-color: var(--gold); } .kcol.lead-won { border-top-color: var(--ok, #3d7a55); } .kcol.lead-lost { border-top-color: var(--bad); } .lead-lost .kcard { opacity: .75; }

/* Guest travel */
details.travel > summary { cursor: pointer; list-style: none; } details.travel > summary::-webkit-details-marker { display: none; }
details.travel > summary::after { content: '+'; float: right; font-size: 1.4rem; line-height: 1; color: var(--ink-3); } details.travel[open] > summary::after { content: '–'; }

/* Order of the day */
li.gap { list-style: none; text-align: center; font-size: .8rem; color: var(--ink-3); padding: 6px 0; border-top: 1px dashed var(--line); }
@media print { .toolbar, .tabs, .app-head .btns, .chips { display: none !important; } }

/* Help */
.help-cat { margin: 28px 0 8px; font-size: 1.4rem; }
.help-guide { border-top: 1px solid var(--line); padding: 12px 0; } .help-guide > summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; }
.help-guide ol { margin: 8px 0 8px 1.2em; padding: 0; } .help-guide li { margin: 0 0 6px; }
.help-where { font-size: .84rem; color: var(--ink-3); margin: 8px 0 4px; }
.help-tips { background: var(--linen); border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin-top: 8px; } .help-tips ul { margin: 4px 0 0 1.1em; padding: 0; }
.help-link { text-align: center; font-size: .9rem; margin: 26px 0 0; }
#help-app input[type=search] { width: 100%; }
@media print { .help-link { display: none; } }

/* Guest photos */
.guest-wrap.wide { max-width: 960px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.photo { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--linen); cursor: pointer; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-blank { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-3); font-size: .84rem; }
.photo-play { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 99px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: .7rem; }
.photo.is-hidden img, .photo.is-pending img { opacity: .45; } .photo .photo-flag { position: absolute; left: 6px; top: 6px; }
.photo .photo-star { position: absolute; right: 6px; top: 6px; color: #f3c94a; text-shadow: 0 0 3px rgba(0, 0, 0, .7); }
.photo.picked { outline: 3px solid var(--ink); outline-offset: -3px; }
.upload-list { display: grid; gap: 4px; font-size: .88rem; } .upload-line { display: flex; justify-content: space-between; gap: 12px; } .upload-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-line em { font-style: normal; color: var(--ink-3); flex: none; } .upload-line.ok em { color: var(--ok); } .upload-line.bad em { color: var(--bad); flex: 1 1 60%; text-align: right; }
dialog.lightbox { border: 0; padding: 0; background: #111; color: #fff; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; flex-direction: column; }
dialog.lightbox[open] { display: flex; } dialog.lightbox img, dialog.lightbox video { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.lightbox-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: .9rem; }
.lightbox-bar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: none; } .lightbox-bar .btn:not(.ghost) { background: #fff; color: #111; }
body.slideshow { background: #000; overflow: hidden; } body.slideshow #gallery-app { position: fixed; inset: 0; color: #fff; }
.show-stage { position: absolute; inset: 0; } .show-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s; } .show-item.on { opacity: 1; }
.show-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 2rem var(--display, Georgia, serif); color: #ddd; text-align: center; padding: 40px; }
.show-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 1.3rem; min-height: 1em; }
.show-corner { position: absolute; right: 22px; bottom: 22px; display: grid; justify-items: center; gap: 6px; font-size: .9rem; } .show-qr { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 4px; } .show-qr svg { width: 100%; height: 100%; display: block; }
.show-name { position: absolute; left: 28px; top: 22px; font: 500 1.6rem var(--display, Georgia, serif); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.photo-qr { width: 132px; flex: none; } .photo-qr svg { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Choosing pictures: the website's top picture and Photos section, and a partner's logo. */
.hero-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-pick > img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.hero-pick > img.brand-logo { width: auto; aspect-ratio: auto; object-fit: contain; margin: 0; border: 0; border-radius: 0; }
.site-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.site-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; background: var(--linen); }
.site-pic input { width: 100%; font-size: .86rem; padding: 6px 8px; }
.site-pic-acts { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; margin-top: 4px; }
.brand-sample .brand-logo { margin-bottom: 14px; }

/* ---- The wedding shell: a menu down the side on a desktop; on a phone a bar at the bottom and one row of pages. */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 36px; align-items: start; }
.side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 2px; }
.side-section { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 10px; padding: 9px 10px; font: 500 .95rem var(--body); color: var(--ink-2); cursor: pointer; text-align: left; }
.side-section:hover { background: var(--linen); color: var(--ink); }
.side-section[aria-expanded="true"], .side-section[aria-current="page"] { color: var(--ink); font-weight: 600; }
.side-section[aria-current="page"] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nav-icon { display: inline-flex; flex: none; } .nav-icon svg { display: block; }
.side-section[aria-expanded="true"] .nav-icon, .side-section[aria-current="page"] .nav-icon { color: var(--gold); }
.side-pages { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px 21px; padding-left: 12px; border-left: 1px solid var(--line); }
.side-pages button { background: none; border: 0; border-radius: 8px; padding: 7px 10px; font: 400 .9rem var(--body); color: var(--ink-2); cursor: pointer; text-align: left; }
.side-pages button:hover { background: var(--linen); color: var(--ink); }
.side-pages button[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 500; }
.bottom-bar { display: none; }
.shell .subtabs { display: none; }
.shell .app-head { margin-bottom: 22px; }
.shell .app-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.shell .cards { grid-template-columns: repeat(3, 1fr); }
.more-menu { display: flex; flex-direction: column; gap: 14px; }
.more-group h3 { display: flex; align-items: center; gap: 8px; font: 600 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.more-group h3 .nav-icon svg { width: 18px; height: 18px; }
.more-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.more-pages button, .more-pages a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 .9rem var(--body); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.more-pages [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 960px) {
  .shell { display: block; }
  .side { display: none; }
  .shell .subtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shell .subtabs::-webkit-scrollbar { display: none; }
  .shell .subtabs button { flex: none; white-space: nowrap; }
  .shell .app-head { align-items: center; gap: 10px; margin-bottom: 14px; }
  .shell .app-head h1 { font-size: 1.55rem; }
  .shell .app-head .sub { font-size: .86rem; margin-top: 2px; }
  .shell .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shell .card { padding: 13px 14px; } .shell .card b { font-size: 1.2rem; } .shell .card-sub { font-size: .8rem; }
  .bottom-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 2px; font: 500 .7rem var(--body); color: var(--ink-3); cursor: pointer; }
  .bottom-bar button[aria-current="page"] { color: var(--ink); } .bottom-bar button[aria-current="page"] .nav-icon { color: var(--gold); }
  body.has-bar .app-main { margin-bottom: 110px; }
}
@media print { .side, .bottom-bar { display: none !important; } .shell { display: block; } }
/* A slimmer top bar and heading on a phone: the name on one line, the email left out, links moved into More. */
@media (max-width: 960px) {
  .app-top .wrap { height: 52px; }
  .app-top .brand { white-space: nowrap; font-size: 1.15rem; }
  .app-top #who { display: none; }
  .app-top button { white-space: nowrap; padding: 5px 12px; font-size: .84rem; }
  .shell .app-head .btns { display: none; }
}
/* With the menu at the side there is less room: let the four to-do columns share it on a desktop. */
@media (min-width: 961px) { .shell .kanban { grid-auto-columns: minmax(200px, 1fr); } }
