:root {
    color-scheme: light;
    --ink: #1c1c1e;
    --muted: #636366;
    --faint: #8e8e93;
    --green: #0f7a38;
    --green-ink: #ffffff;
    --red: #d1263a;
    --card: #ffffff;
    --wash: #f6f3f0;
    --line: #e6e1dc;
    --shadow: 0 14px 36px rgba(90, 30, 20, 0.08);
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
    margin: 0;
    min-height: 100dvh;
    color: var(--ink);
    font-family: ui-rounded, Nunito, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    background:
        radial-gradient(900px 420px at -10% -10%, #ffd5d5 0, transparent 55%),
        radial-gradient(820px 420px at 110% 0%, #c9f5d4 0, transparent 50%),
        radial-gradient(700px 380px at 50% 120%, #ffe6b3 0, transparent 46%),
        #fff7f1;
}
button, input, summary { font: inherit; color: inherit; }
button, a, summary, label, input { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
button { cursor: pointer; }
a { color: var(--green); }

.flakes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.flakes img {
    position: absolute;
    width: 96px;
    height: 96px;
    object-fit: contain;
}
.flakes img:nth-child(1) { top: 14%; left: 2%; }
.flakes img:nth-child(2) { top: 40%; right: 1%; width: 108px; height: 108px; }
.flakes img:nth-child(3) { bottom: 6%; left: 6%; }
.flake-soft { opacity: 0.72; }
.flake-gift { opacity: 0.34; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: calc(10px + env(safe-area-inset-top)) 10px 0;
    padding: 10px 12px;
}
.liquid-glass {
    position: relative;
    isolation: isolate;
    border-radius: 28px;
    background: rgba(255, 250, 246, 0.62);
    -webkit-backdrop-filter: blur(8px) saturate(180%) brightness(1.08);
    backdrop-filter: blur(8px) saturate(180%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 1px 1px 1px rgba(255, 255, 255, 0.85),
        inset -1px -1px 1px rgba(255, 255, 255, 0.25),
        0 10px 30px rgba(90, 30, 20, 0.08);
}
.kicker {
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.bar-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    text-decoration: none;
    font-size: 22px;
    flex: none;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(36px + env(safe-area-inset-bottom));
}
.wrap-narrow { max-width: 560px; }

.large-title {
    font-size: 2.25rem;
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 12px 0 8px;
}
.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.title-row .large-title { flex: 1; min-width: 0; }
.dek { color: var(--muted); font-size: 1.125rem; margin-bottom: 16px; }
.people-note { margin: 16px 0 4px; }
.hello-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}
.hello-line.with-cal .large-title { flex: 1; min-width: 0; }
.note-row { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.note-row .field { flex: 1; min-width: 0; }
.note-row .link-pill { flex: none; min-height: 64px; }
.page-note { margin-top: 28px; }
.account { color: var(--faint); margin: 0; font-size: 1.05rem; font-weight: 700; }
.inline-email { color: var(--muted); font-size: 1rem; font-weight: 700; white-space: nowrap; }

.hero {
    width: 104px;
    height: 104px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    font-size: 52px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}
.hero-red { background: #ffe1e4; color: var(--red); }
.hero-green { background: #daf7e3; color: var(--green); }
.hero-gold { background: #fff1cc; color: #b7791f; }

.banner {
    position: fixed;
    z-index: 70;
    top: calc(16px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: min(520px, calc(100% - 24px));
    padding: 14px 16px;
    border-radius: 20px;
    margin: 0;
    font-size: 18px;
    box-shadow: var(--shadow);
}
.banner[hidden] { display: none; }
.banner p { flex: 1; }
.banner-x {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 16px;
    display: grid;
    place-items: center;
    flex: none;
    padding: 0;
}
.banner .bi { font-size: 24px; flex: none; margin-top: 1px; }
.banner-good { background: #e5f8ec; color: #0b5a2a; }
.banner-bad { background: #ffe8ea; color: #9f1239; }

.card {
    background: var(--card);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}
.stack { display: grid; gap: 12px; }
.field label, .switch-text { font-weight: 800; }
.field label { display: block; margin-bottom: 8px; }
.field { min-width: 0; }
.field input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 64px;
    border-radius: 18px;
    border: 2px solid var(--line);
    background: #fff;
    padding: 0 18px;
    font-size: 20px;
    font-weight: 800;
}
.field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
}
.field input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}
.field input::placeholder { color: var(--faint); font-weight: 700; }
.field input:focus {
    outline: 3px solid var(--green);
    border-color: var(--green);
}
.hint { color: var(--muted); font-size: 16px; margin-top: 8px; }
.field > .hint { display: none; }
.field.is-active > .hint:not([hidden]) { display: block; }
.field > .hint.keep:not([hidden]) { display: block; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 18px;
    background: var(--green);
    color: var(--green-ink);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    padding: 12px 16px;
}
.btn .bi { font-size: 26px; }
.btn-secondary { background: var(--wash); color: var(--ink); }
.btn-danger {
    background: #fff;
    color: var(--red);
    box-shadow: inset 0 0 0 2px #ffd0d4;
}
.btn-secret {
    background: #efeaff;
    color: #5b3cc4;
    min-height: 56px;
}
.btn-quiet {
    width: auto;
    min-height: 48px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}
.btn:hover { filter: brightness(0.97); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 52px; font-size: 18px; }

.switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    cursor: pointer;
}
.switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.switch-ui {
    width: 64px;
    height: 38px;
    border-radius: 999px;
    background: #e5e5ea;
    position: relative;
    flex: none;
}
.switch-ui::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(26px); }
.switch input:focus-visible + .switch-ui {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}
.switch-text { flex: 1; min-width: 0; font-size: 18px; }

.switcher { position: relative; }
.switcher > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.switcher-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin: 8px 0 16px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 22px;
}
.switcher-bar label {
    min-height: 64px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}
.switcher-bar .bi { font-size: 24px; }
.switcher-bar small { font-size: 14px; color: var(--faint); }
.switcher > input:nth-of-type(1):checked ~ .switcher-bar > label:nth-of-type(1),
.switcher > input:nth-of-type(2):checked ~ .switcher-bar > label:nth-of-type(2),
.switcher > input:nth-of-type(3):checked ~ .switcher-bar > label:nth-of-type(3) {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(80, 30, 20, 0.08);
}
.switcher > input:nth-of-type(1):focus-visible ~ .switcher-bar > label:nth-of-type(1),
.switcher > input:nth-of-type(2):focus-visible ~ .switcher-bar > label:nth-of-type(2),
.switcher > input:nth-of-type(3):focus-visible ~ .switcher-bar > label:nth-of-type(3) {
    outline: 3px solid var(--green);
}
.pane { display: none; }
.switcher > input:nth-of-type(1):checked ~ .panes > .pane:nth-of-type(1),
.switcher > input:nth-of-type(2):checked ~ .panes > .pane:nth-of-type(2),
.switcher > input:nth-of-type(3):checked ~ .panes > .pane:nth-of-type(3) {
    display: block;
}
.pane-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 12px;
}
.pane-title .bi { font-size: 28px; color: var(--red); }
.pane-title img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.occasion-mark { width: 56px; height: 68px; object-fit: contain; flex: none; }

.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 20px;
    background: #fff4d6;
    margin-bottom: 14px;
}
.note .bi { font-size: 28px; color: #b7791f; flex: none; }

.person, .gift, .list-card {
    position: relative;
    background: var(--card);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow);
    margin-top: 12px;
}
.has-trash .person-main { padding-right: 104px; }
.rel-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}
.rel-row > form { flex: 1; min-width: 0; }
.rel-row .card-tools { position: static; }
.rel-row .rel-field { margin: 0; }
.person.is-pending { background: #fdecee; padding-top: 36px; }
.person.is-opened { background: #e7f6ec; }
.pending-flag {
    position: absolute;
    top: 12px;
    left: 14px;
    margin: 0;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.card-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}
.card-tools .tool {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    display: grid;
    place-items: center;
    padding: 0;
}
.card-tools .tool-trash { background: #fff5f5; color: var(--red); }
button.avatar { border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
button.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tone-lilac { background: #efeaff; color: #5b3cc4; }
.tone-peach { background: #ffe8d6; color: #c2410c; }
.tone-berry { background: #fde2f3; color: #9d174d; }
.tone-lemon { background: #fff6c2; color: #a16207; }
.tone-aqua { background: #d5f5f2; color: #0f766e; }
.tone-grape { background: #f3e8ff; color: #6d28d9; }
.tone-lime { background: #e8f8c8; color: #3f6212; }
.tone-ocean { background: #dbeafe; color: #1d4ed8; }
.swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.swatch {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}
.swatch input { position: absolute; opacity: 0; }
.swatch:has(input:checked) { outline: 3px solid var(--ink); outline-offset: 2px; }
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
}
.modal-shade {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(28, 28, 30, 0.35);
    backdrop-filter: blur(4px);
}
.modal-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.modal-card h2 { margin: 0; }
.saving[hidden] { display: none; }
.saving {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(6px);
}
.saving-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: var(--shadow);
}
.saving-ring {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 4px solid #d9f5e3;
    border-top-color: var(--green);
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 28px;
    animation: saving-spin 0.8s linear infinite;
}
.saving-card p { margin: 0; font-weight: 800; }
@keyframes saving-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .saving-ring { animation: none; }
}
.icon-trash {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}
.icon-trash button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff5f5;
    color: var(--red);
    font-size: 20px;
    display: grid;
    place-items: center;
    padding: 0;
}
.person-main, .list-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.gift:not(:has(> .buy-form)),
.gift > .buy-form {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    width: 100%;
}
.gift:not(:has(> .buy-form)) > .gift-body,
.gift > .buy-form > .gift-body { display: contents; }
.gift .avatar,
.gift .check { grid-column: 1; grid-row: 1; }
.gift.has-buy-label .check { grid-column: 1 / -1; grid-row: 1; }
.gift h3 { grid-column: 2; grid-row: 1; }
.gift .gift-title { display: contents; }
.gift .gift-title h3 { grid-column: 2; grid-row: 1; }
.gift.has-buy-label .gift-title h3 { grid-column: 1 / -1; grid-row: 2; }
.gift.has-trash h3 { padding-right: 52px; }
.gift .gift-body > :not(h3) { grid-column: 1 / -1; }
.list-card {
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-top: 12px;
}
button.list-card {
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.avatar, .hero-mini {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    flex: none;
}
.tone-rose { background: #ffe1e4; color: var(--red); }
.tone-mint { background: #daf7e3; color: var(--green); }
.tone-gold { background: #fff1cc; color: #b7791f; }
.tone-sky { background: #e5f1ff; color: #0a64c8; }
.person h3, .gift h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.gift h3 { overflow-wrap: anywhere; }
.person p, .gift p { color: var(--muted); }
.invite-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}
.invite-form > form:first-child,
.invite-form .switch { flex: 1; }
.invite-form .btn { width: auto; min-width: 96px; }
.actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.actions form { flex: 1; display: flex; }
.actions .btn { width: 100%; min-height: 52px; font-size: 17px; }
.list-card strong { display: block; font-size: 1.2rem; }
.list-card small { color: var(--muted); font-weight: 700; }
.list-card .bi-chevron-right { margin-left: auto; color: var(--faint); font-size: 22px; }
.occasion-door { min-height: 92px; margin-top: 16px; }
.occasion-door .hero-mini { width: 64px; height: 64px; border-radius: 20px; font-size: 30px; }
.occasion-door .mascot { background: transparent; padding: 0; overflow: visible; width: 76px; height: 76px; }
.occasion-door .mascot img { width: 76px; height: 76px; object-fit: contain; display: block; }
.host-line { margin: 18px 6px 0; font-size: 1.2rem; }
.hero-mini { background: #ffe1e4; color: var(--red); }
.cal {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #1c1917;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: none;
}
.cal-month {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3d6a2;
}
.cal-day { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.past-title { margin-top: 22px; }
.new-list {
    display: block;
    margin-top: 12px;
    background: var(--card);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow);
}
.new-list > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}
.new-list > summary::-webkit-details-marker { display: none; }
.new-list > summary::marker { content: ""; }
.new-list > summary strong { flex: 1; font-size: 1.2rem; }
.new-list .bi-chevron-right {
    margin-left: auto;
    color: var(--faint);
    font-size: 22px;
}
.new-list[open] > summary .bi-chevron-right { transform: rotate(90deg); }
.new-list > form { margin-top: 16px; }
.add-mark { font-size: 28px; }
.note { margin-top: 16px; }

.givers-row .switch { width: auto; }
.givers-row .switch-text { flex: none; }
.gift.is-taken { opacity: 0.72; }
.gift.is-done h3 {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.bought-mask { display: none; }
body:not(.show-bought) .bought-reveal { display: none !important; }
body:not(.show-bought) .bought-mask { display: block; }
.spoil-switch { margin-top: 8px; }
.gift-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.claim-note { font-weight: 800; color: var(--ink); }
.check {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--line);
    font-size: 32px;
    color: var(--green);
    flex: none;
    display: grid;
    place-items: center;
}
.check.is-on { background: var(--green); color: #fff; box-shadow: none; }
.check.is-secret { background: #efeaff; color: #5b3cc4; box-shadow: none; }
.gift.has-buy-label > .buy-form > .check {
    width: 100%;
    height: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 16px;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--green);
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
}
.gift.has-buy-label > .buy-form > .check i { display: none; }
.status { font-weight: 800; color: var(--green); }
.status.is-other { color: var(--muted); }
.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--wash);
    text-decoration: none;
    font-weight: 800;
    justify-self: start;
}
.empty {
    text-align: center;
    padding: 22px 8px;
    color: var(--muted);
}
.empty .bi { font-size: 42px; display: block; margin-bottom: 8px; color: var(--faint); }

.back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    font-weight: 800;
    text-decoration: none;
}
.rename { margin: 4px 0 12px; }
.rename summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-weight: 800;
    cursor: pointer;
}
.switcher > input:nth-of-type(3):checked ~ .panes > .pane-join {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding:
        calc(12px + env(safe-area-inset-top))
        20px
        calc(24px + env(safe-area-inset-bottom));
    background: #fff7f1;
    overflow: auto;
}
body:has(#pane-join:checked) { overflow: hidden; }
body:has(#pane-join:checked) .flakes,
body:has(#pane-join:checked) .site-foot { display: none; }
.list-flow > .switcher-bar { display: none; }
.title-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    flex: none;
}
.qr-open, .pencil-open {
    height: 56px;
    margin: 0;
    flex: none;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    color: inherit;
    font-size: 26px;
    cursor: pointer;
}
.pencil-open {
    width: 56px;
    display: grid;
    place-items: center;
}
.qr-open {
    width: auto;
    padding: 0 14px 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 800;
}
.pane-jump {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    min-height: 64px;
    padding: 0 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
    cursor: pointer;
    color: var(--ink);
}
.pane-jump .bi-chevron-right { margin-left: auto; color: var(--faint); font-size: 22px; }
.visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 800;
}
.visit.is-in { color: var(--green); }
.visit.is-out { color: var(--faint); }
.qr-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 32px;
    cursor: pointer;
    flex: none;
}
.qr-frame {
    width: min(92vw, calc(100dvh - 140px));
    margin: 0;
    background: #fff;
    border-radius: 28px;
    padding: 12px;
}
.qr-slot { width: 100%; }
.qr-frame canvas { display: block; width: 100%; height: auto; }
.qr-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.qr-caption {
    flex: none;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--muted);
}
.qr-copy {
    width: auto;
    max-width: min(92vw, 440px);
    height: auto;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    color: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.qr-copy span { text-wrap: balance; }
.givers { margin-top: 8px; }
.givers > summary { list-style: none; cursor: pointer; }
.givers > summary::-webkit-details-marker { display: none; }
.givers[open] > summary .bi-chevron-right { transform: rotate(90deg); }
.givers-body { padding-top: 4px; }
.givers-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}
.givers-row .switch { min-height: 0; }
.givers-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.givers-name strong { font-size: 1.15rem; }
.givers-edit { margin-top: 14px; }
.relation {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}
.rel-field span { display: block; margin-bottom: 8px; font-weight: 800; }
.rel-field select {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: var(--wash);
    font: inherit;
    font-weight: 800;
    padding: 0 14px;
}
.join-link {
    margin-top: 12px;
    overflow-wrap: anywhere;
    font-size: 16px;
}
.secret-link {
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: var(--faint);
    font-size: 15px;
}
.logout { margin-top: 28px; display: flex; justify-content: center; }
.site-foot {
    position: relative;
    z-index: 1;
    margin: 12px 0 28px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}
.site-foot p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.site-foot a { display: inline-flex; }
.site-foot img { height: 28px; width: auto; }

@media (min-width: 900px) {
    .large-title { font-size: 2.75rem; }
}

@media (prefers-reduced-transparency: reduce) {
    .liquid-glass {
        background: #fffaf6;
        border-color: var(--line);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn:active, .switch-ui::after { transition: none; transform: none; }
    .switch input:checked + .switch-ui::after { transform: translateX(26px); }
    .btn:active { transform: none; }
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
