/* Weddings page, wedding party page and staff tracker (2026-10-23) */
.wed-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 48px); margin-top: clamp(36px, 5vh, 60px); }
.wed-facts div { display: grid; gap: 8px; align-content: start; border-top: 1px solid rgba(10, 10, 10, .16); padding-top: 18px; }
.wed-facts h3 { font-size: 1.35rem; }
.wed-facts p { font-size: .96rem; }
.wed-offer { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.wed-offer b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: var(--ox); }
.wed-reg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.wed-reg .info { display: grid; gap: 22px; position: sticky; top: 120px; }
.wed-form, .w-form { display: grid; gap: 26px; min-width: 0; }
.wed-form .field input[type=number] { max-width: 9ch; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { border: 1px solid var(--ox-line); background: rgba(94, 24, 36, .25); padding: 14px 16px; font-size: .95rem; }
.form-err[hidden] { display: none; }
.field .hint { font-size: .82rem; color: var(--taupe); }
.err { color: #ff9a9a; font-size: .85rem; min-height: 0; }

/* Party and staff apps */
.app { padding-top: clamp(120px, 18vh, 180px); padding-bottom: clamp(70px, 10vh, 120px); min-height: 80svh; }
.app .wrap { display: grid; gap: clamp(26px, 4vh, 40px); max-width: 860px; }
.app h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.05; }
.app h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
.app .meta-line { color: var(--bone); font-size: 1rem; display: grid; gap: 4px; }
.app .meta-line b { color: var(--ivory); font-weight: 600; }
.muted { color: var(--taupe); }
.app .loading { color: var(--taupe); font-family: var(--caps); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.card { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; min-width: 0; }
.card.ox { border-color: var(--ox-line); background: rgba(94, 24, 36, .18); }
.card h2, .card h3 { font-size: 1.45rem; }
.card p { color: var(--bone); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.sm { padding: .95em 1.3em; font-size: .66rem; letter-spacing: .2em; min-height: 44px; }
.btn.ghost { border-color: var(--line); }
.btn.danger { border-color: #c9505f; color: #ffb3bd; }
.btn.danger:hover { background: #c9505f; color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbox { display: flex; gap: 10px; align-items: center; min-width: 0; }
.linkbox code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--bone); background: var(--ink-2); border: 1px solid var(--line); padding: 10px 12px; }
.steps-mini { display: grid; gap: 18px; counter-reset: s; }
.steps-mini > div { display: grid; gap: 10px; }
.steps-mini h3::before { counter-increment: s; content: counter(s) ". "; color: var(--taupe); }

.progress { display: grid; gap: 10px; }
.progress .bar { height: 6px; background: var(--ink-3); position: relative; overflow: hidden; }
.progress .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ivory); transition: width .5s var(--ease); }
.progress .big { font-family: var(--display); font-size: 1.6rem; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--bone); }

.people { list-style: none; display: grid; border-top: 1px solid var(--line); }
.people > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.people .who { display: grid; gap: 2px; min-width: 0; }
.people .who b { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.people .who span { font-size: .85rem; color: var(--taupe); }
.people .you { font-family: var(--caps); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ivory); padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.people .open { color: var(--taupe); font-style: italic; }
.stat { display: grid; justify-items: end; gap: 6px; text-align: right; }
.stat em { font-style: normal; font-family: var(--caps); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bone); }
.stat.s0 em { color: var(--taupe); }
.stat.s4 em { color: var(--ivory); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--taupe); }
.dots i.on { background: var(--ivory); border-color: var(--ivory); }
.people .row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; }
.linkish { background: none; border: 0; color: var(--taupe); font: inherit; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; min-height: 32px; }
.linkish:hover { color: var(--ivory); }
details.more { border-top: 1px solid var(--line); padding-top: 16px; }
details.more > summary { cursor: pointer; font-family: var(--caps); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.2rem; }
details.more[open] > summary::after { content: "–"; }
details.more > div { padding-top: 18px; display: grid; gap: 20px; }
.store-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-list div { display: grid; gap: 4px; font-size: .92rem; color: var(--bone); }
.store-list b { color: var(--ivory); font-weight: 600; }
.store-list a { text-decoration: underline; text-underline-offset: 3px; }
.note-text { font-size: .9rem; color: var(--bone); }
.toast-w { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 90; background: var(--ivory); color: var(--ink); padding: 12px 16px; display: flex; gap: 16px; align-items: center; font-size: .92rem; width: max-content; min-width: min(300px, calc(100vw - 32px)); max-width: calc(100vw - 32px); justify-content: space-between; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast-w.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-w button { background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; color: var(--ox); cursor: pointer; padding: 6px; }

/* Staff */
.s-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.s-bar .hi { font-size: .95rem; color: var(--bone); }
.s-filters { display: grid; gap: 14px; }
.s-filters input[type=search] { width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--ivory); font: inherit; padding: 12px 14px; border-radius: 0; }
.w-list { list-style: none; display: grid; gap: 12px; }
.w-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; border: 1px solid var(--line); padding: 16px; }
.w-list a:hover { border-color: var(--ivory); }
.w-list b { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.w-list .sub { font-size: .85rem; color: var(--taupe); grid-column: 1; }
.w-list .right { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: grid; gap: 4px; justify-items: end; font-size: .85rem; color: var(--bone); }
.tag { display: inline-block; font-family: var(--caps); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line); color: var(--bone); vertical-align: 2px; margin-left: 6px; }
.tag.new { background: var(--ox); border-color: var(--ox); color: var(--ivory); }
.tag.late { border-color: #c9505f; color: #ffb3bd; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); grid-column: 1 / -1; }
.seg button { background: none; border: 0; border-left: 1px solid var(--line); color: var(--bone); font-family: var(--body); font-size: .8rem; letter-spacing: 0; padding: 8px 2px; min-height: 54px; cursor: pointer; line-height: 1.2; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); font-weight: 700; }
.seg button:focus-visible { outline: 1px solid var(--brass); outline-offset: -3px; }
.s-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.s-member .who { display: grid; gap: 2px; min-width: 0; }
.s-member .who b { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.s-member .who span, .s-member .last { font-size: .85rem; color: var(--taupe); }
.s-member .last { grid-column: 1 / -1; }
.s-member textarea, .w-form textarea { width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--ivory); font: inherit; font-size: .92rem; padding: 10px 12px; border-radius: 0; resize: vertical; }
.s-member .tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.saved { font-size: .78rem; color: var(--taupe); }
.log { list-style: none; display: grid; gap: 6px; font-size: .85rem; color: var(--bone); }
.log span { color: var(--taupe); }
.pw { position: relative; }
.pw button { position: absolute; right: 0; bottom: 8px; }
.team { list-style: none; display: grid; gap: 10px; }
.team li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.team li .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

@media (max-width: 860px) {
  .wed-facts { grid-template-columns: 1fr 1fr; }
  .wed-reg { grid-template-columns: 1fr; }
  .wed-reg .info { position: static; }
  .store-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wed-facts { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 26px; }
  .linkbox { flex-wrap: wrap; }
  .linkbox code { flex-basis: 100%; }
  .seg button { font-size: .74rem; }
}

/* Text-message code for the groom (2026-10-24) */
.w-code { display: grid; gap: 18px; border: 1px solid var(--ox-line); background: rgba(94, 24, 36, .18); padding: 18px; min-width: 0; }
.w-code[hidden] { display: none; }
.w-code p { color: var(--bone); font-size: .95rem; }
.w-code input { font-size: 1.7rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; max-width: 8.5em; }
.code-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.code-links .linkish[disabled] { opacity: .55; cursor: default; text-decoration: none; }
.wed-form input[readonly] { color: var(--taupe); }
.w-ts:empty { display: none; }
.w-ts iframe { max-width: 100%; }

/* Package and prices (2026-10-24) */
.ledger { list-style: none; display: grid; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--bone); }
.ledger li > span:first-child { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; color: var(--ivory); }
.ledger .amt { flex: none; white-space: nowrap; color: var(--ivory); }
.ledger .amt.pending { color: var(--taupe); font-style: italic; white-space: normal; text-align: right; max-width: 11em; }
.ledger .sub { display: block; font-size: .84rem; color: var(--taupe); margin-top: 2px; }
.ledger li.off > span:first-child, .ledger li.off .amt { color: var(--bone); }
.ledger li.total { border-bottom: 0; padding-top: 18px; align-items: center; }
.ledger li.total > span:first-child { font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }
.ledger li.total .amt { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.ledger .you { font-family: var(--caps); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ivory); padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.price-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .86rem; color: var(--bone); font-variant-numeric: tabular-nums; }
.price-line b { color: var(--ivory); font-weight: 600; }
.calc { font-size: .95rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.calc:empty { display: none; }
.items-wrap { display: grid; gap: 8px; }
.items-head { display: grid; grid-template-columns: minmax(0, 1fr) 8.5em 36px; gap: 12px; font-family: var(--caps); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); }
.items-ed { display: grid; gap: 4px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5em 36px; gap: 12px; align-items: end; }
.item-row .x { font-size: 1.4rem; text-decoration: none; min-height: 44px; min-width: 36px; padding: 0; }
.money { position: relative; }
.money .cur { position: absolute; left: 0; bottom: 13px; color: var(--taupe); pointer-events: none; }
.field .money input, .item-row .money input { padding-left: 14px; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: center; cursor: pointer; font-size: .95rem; color: var(--bone); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--ivory); flex: none; }
.own-ed { display: grid; gap: 12px; }
.own-ed[hidden] { display: none; }
.s-price h3 { font-size: 1.2rem; }
@media (max-width: 560px) {
  .items-head, .item-row { grid-template-columns: minmax(0, 1fr) 6.6em 32px; gap: 10px; }
  .ledger li.total .amt { font-size: 1.6rem; }
}

/* Staff notes tab (2026-10-24) */
.s-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.s-tabs button { background: none; border: 0; border-left: 1px solid var(--line); color: var(--bone); font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; min-height: 52px; cursor: pointer; padding: 6px; }
.s-tabs button:first-child { border-left: 0; }
.s-tabs button[aria-selected="true"] { background: var(--ivory); color: var(--ink); font-weight: 700; }
.s-tabs button:focus-visible { outline: 1px solid var(--brass); outline-offset: -3px; }
.s-notes { list-style: none; display: grid; border-top: 1px solid var(--line); }
.s-notes li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); justify-items: start; }
.s-notes .txt { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ivory); }
.s-notes .by { font-size: .82rem; color: var(--taupe); }

/* Who handles the wedding, and its history (2026-10-24) */
.lead-box { display: grid; gap: 8px; border: 1px solid var(--line); border-left: 3px solid var(--ivory); padding: 14px 16px; }
.lead-box .label { font-size: .62rem; }
.lead-box b { font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.lead-box em { color: var(--taupe); }
.lead-box .btns { align-items: center; gap: 8px 18px; }
.w-list .sub.lead { color: var(--bone); }
.w-list .sub.lead.none { color: var(--taupe); font-style: italic; }
.s-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-history { list-style: none; display: grid; border-top: 1px solid var(--line); }
.s-history li { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.s-history .by { font-size: .82rem; color: var(--taupe); }
.s-history .by b { color: var(--bone); font-weight: 600; }
.s-history .what { color: var(--ivory); font-size: .95rem; overflow-wrap: anywhere; }
.s-history .what .tag { margin-left: 0; }
@media (max-width: 400px) { .s-tabs button { letter-spacing: .14em; font-size: .62rem; } }
.ledger li.sum > span:first-child { color: var(--bone); }
.saves { border-left: 2px solid var(--ox); padding: 4px 0 4px 12px; color: var(--ivory); font-size: .95rem; }
/* Payments: what each man has paid and what he still owes. */
.price-line b.owes { color: #ffb3bd; }
.price-line b.credit { color: #ffd59a; }
.price-line b.paid { color: var(--ivory); }
.s-pays { grid-column: 1 / -1; font-size: .86rem; }
.s-pays > summary { cursor: pointer; color: var(--bone); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: flex; align-items: center; list-style: none; }
.s-pays > summary::-webkit-details-marker { display: none; }
.s-pays ul { list-style: none; display: grid; border-top: 1px solid var(--line); margin-top: 6px; }
.s-pays li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.s-pays li .amt { color: var(--ivory); font-weight: 600; }
.s-pays li .by { color: var(--taupe); flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.s-pays .note-text { margin-top: 6px; }
.party-money { font-size: .92rem; color: var(--bone); font-variant-numeric: tabular-nums; }
.party-money b { color: var(--ivory); font-weight: 600; }
.ledger .amt.bal { display: grid; justify-items: end; }
.ledger .amt.bal small { font-size: .72rem; color: var(--taupe); letter-spacing: .02em; }
.vary { font-size: .88rem; color: var(--bone); border: 1px solid var(--line); padding: 10px 12px; }
.ledger li.total .sub { font-family: var(--body); font-size: .84rem; letter-spacing: 0; text-transform: none; color: var(--taupe); margin-top: 6px; max-width: 26ch; }
.store-pick { background: var(--ink-2, #141414); color: var(--ivory); border: 1px solid var(--line); font: inherit; font-size: .85rem; padding: 6px 8px; min-height: 36px; border-radius: 0; }
