:root {
    --paper: #f6efe4;
    --ink: #2b2118;
    --muted: #6d5c4d;
    --card: #fffaf3;
    --line: #e4d5c3;
    --terracotta: #c45c26;
    --terracotta-dark: #9a4318;
    --sage: #3f6b52;
    --sage-soft: #e4efe7;
    --gold: #d9a441;
    --danger: #9b2c2c;
    --shadow: 0 10px 30px rgba(70, 42, 18, 0.08);
    --radius: 16px;
    --btn-radius: 6px;
    --heading-default-bg: #f3e2cf;
    --heading-default-fg: #2b2118;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, #fff7ea, transparent 55%),
        radial-gradient(900px 400px at 100% 0%, #f3e4d2, transparent 50%),
        var(--paper);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.5;
}

.wrap {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(246, 239, 228, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 2;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.wordmark {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}
.wordmark img {
    height: 52px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}

nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--terracotta); }
nav a.btn,
nav button.btn {
    white-space: nowrap;
}
nav a.btn { color: var(--btn-fg, #fff); }
nav a.btn:hover { color: var(--btn-fg, #fff); }
nav a.btn-ghost { color: var(--btn-bg, var(--terracotta)); }
nav a.btn-ghost:hover { color: var(--btn-hover, var(--terracotta-dark)); }

nav form.inline {
    display: inline-flex;
    margin: 0;
}

.who { color: var(--muted); }

main { padding: 36px 0 64px; }

.site-footer {
    text-align: center;
    padding: 0 0 40px;
    font-style: italic;
}
.footer-pill {
    display: inline-block;
    margin: 0;
    padding: 5px 14px;
    border-radius: var(--btn-radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(43, 33, 24, 0.08);
}

h1 { font-size: 2.1rem; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 0 0 12px; }
p.lede { color: var(--muted); font-size: 1.15rem; margin-top: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin: 18px 0;
}

.hero {
    padding: 28px 28px 24px;
    background:
        linear-gradient(180deg, #fffdf8, #fff4e6);
}

.btn, button.btn {
    font-family: system-ui, -apple-system, sans-serif;
    display: inline-block;
    background: var(--btn-bg, var(--terracotta));
    color: var(--btn-fg, #fff);
    border: 0;
    border-radius: var(--btn-radius);
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { background: var(--btn-hover, var(--terracotta-dark)); }
.btn:active { background: var(--btn-active, var(--terracotta-dark)); }

.btn-small { padding: 7px 13px; font-size: 0.88rem; }
.btn-ghost {
    background: transparent;
    color: var(--btn-bg, var(--terracotta));
    border: 1px solid var(--btn-bg, var(--terracotta));
}
.btn-ghost:hover { background: #f8e6d8; color: var(--btn-hover, var(--terracotta-dark)); }
.btn-ghost:active { background: #f8e6d8; color: var(--btn-active, var(--terracotta-dark)); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7a1f1f; }
.btn-danger:active { background: #7a1f1f; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: #2f5340; }
.btn-sage:active { background: #2f5340; }

.linkish {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.linkish:hover { color: var(--terracotta); }

form.inline { display: inline; }

label {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="tel"],
input[type="file"],
textarea,
select {
    width: 100%;
    font: 1rem system-ui, -apple-system, sans-serif;
    padding: 10px 12px;
    border: 1px solid #d8c7b2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

textarea { min-height: 110px; resize: vertical; }

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.flash {
    font-family: system-ui, -apple-system, sans-serif;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 0 0 16px;
}
.flash-success { background: var(--sage-soft); color: #244833; }
.flash-error { background: #f8e4e2; color: #7a1f1f; }

.meta {
    color: var(--muted);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
}

.event-meta dt {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 12px;
}
.event-meta dt:first-child { margin-top: 0; }
.event-meta dd { margin: 2px 0 0; }

.invite-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}
.invite-grid.has-map {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "when map"
        "host map";
    align-items: stretch;
}
.invite-whenwhere { grid-area: auto; }
.invite-host { grid-area: auto; }
.invite-grid.has-map .invite-whenwhere { grid-area: when; }
.invite-grid.has-map .invite-host { grid-area: host; }
.invite-grid.has-map .invite-map { grid-area: map; }
.invite-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(43, 33, 24, 0.06);
}
.invite-map {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    overflow: hidden;
    background: var(--card);
}
.invite-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
}
.invite-message {
    margin: 16px 0 0;
}

.share {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.share input { flex: 1; min-width: 180px; }

.board {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item {
    scroll-margin-top: 80px;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--item-bg, #fff);
}

.item.is-host {
    padding: 8px 10px;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    min-height: 32px;
}

.item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 8rem;
}
.item-main:has(.item-note) {
    align-items: flex-start;
}
.item-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.item-note {
    display: block;
    margin: 1px 0 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.item-main h3,
.item-main strong {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.item-tools .actions {
    margin-top: 10px;
}

.badge {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f3e2cf;
    color: #7a4318;
    border-radius: 999px;
    padding: 3px 8px;
}
.badge-bring { background: var(--badge-bring-bg, #f3e2cf); color: var(--badge-bring-fg, #7a4318); }
.badge-task { background: var(--badge-task-bg, var(--sage-soft)); color: var(--badge-task-fg, #244833); }

.slots { color: var(--muted); font-family: system-ui, sans-serif; font-size: 0.9rem; }

.claimants { margin: 8px 0 0; padding-left: 18px; }
.claimants li { word-break: break-word; }
.claimants .claim-note,
.claim-list .claim-note {
    display: block;
    margin-top: 1px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.claim-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.claim-form input[name="note"],
.claim-note-edit input[name="note"] {
    width: 12rem;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 0.85rem;
}
.claim-note-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0 0;
}

.event-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: system-ui, sans-serif;
}
.event-list a { color: var(--ink); }
.event-list a.title { font-family: Georgia, serif; font-size: 1.15rem; text-decoration: none; }
.event-list a.title:hover { color: var(--terracotta); }

.event-pile + .event-pile { margin-top: 18px; padding-top: 8px; }
.event-pile-title {
    margin: 0 0 4px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.guest-cards { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
.guest-cards > li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); }
.guest-cards p { margin: 4px 0 0; font-family: system-ui, sans-serif; font-size: 0.95rem; word-break: break-word; }
.claim-heading { margin: 10px 0 4px; font-family: system-ui, sans-serif; }
.claim-list { list-style: none; margin: 0; padding: 0; font-family: system-ui, sans-serif; }
.claim-list li { margin: 0 0 4px; }
@media (min-width: 700px) { .guest-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .guest-cards { grid-template-columns: 1fr 1fr 1fr; } }


.tiny { font-size: 0.85rem; color: var(--muted); font-family: system-ui, sans-serif; }

.choice-row { display: flex; gap: 18px; flex-wrap: wrap; font-family: system-ui, sans-serif; }
.choice-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }

@media (max-width: 640px) {
    html, body { overflow-x: hidden; }
    .wrap { width: calc(100% - 20px); }
    main { padding: 18px 0 40px; }
    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 10px 0;
        gap: 8px;
    }
    .wordmark img { height: 36px; }
    nav {
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 0.88rem;
        max-width: 100%;
    }
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.2rem; }
    p.lede { font-size: 1.02rem; }
    .card { padding: 16px; margin: 14px 0; }
    .hero { padding: 16px; }
    .event-banner {
        margin: -16px -16px 14px;
        width: calc(100% + 32px);
    }
    .hero.title-on-banner .event-banner h1 {
        padding: 48px 16px 14px;
        font-size: 1.35rem;
    }
    .row-2 { grid-template-columns: 1fr; }
    .item-heading .item-row { flex-wrap: wrap; }
    .item-main strong, .item-main h3 { white-space: normal; }
    .item-tools {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
    }
    .item-tools .btn,
    .item-tools .btn-small { width: 100%; text-align: center; }
    .claim-form,
    .claim-note-edit { width: 100%; }
    .claim-form input[name="note"],
    .claim-note-edit input[name="note"] { width: 100%; }
    .share { flex-direction: column; align-items: stretch; }
    .share input { min-width: 0; width: 100%; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions .btn { width: 100%; text-align: center; }
    .invite-block,
    .invite-map { border-radius: 16px; }
    .invite-grid.has-map {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "when"
            "map"
            "host";
    }
    .invite-map iframe { min-height: 200px; aspect-ratio: 4 / 3; height: auto; }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="time"],
    input[type="number"],
    input[type="tel"],
    input[type="file"],
    textarea,
    select { min-width: 0; }
}

.item-heading {
    background: var(--heading-default-bg, #f3e2cf);
    border: 0;
    border-radius: 8px;
    border-left: 4px solid var(--heading-default-bg, var(--terracotta));
    padding: 4px 8px 4px 10px;
    box-shadow: none;
    color: var(--heading-default-fg, var(--ink));
}
.item-heading.is-host {
    padding: 3px 6px 3px 8px;
}
.item-heading .item-row {
    min-height: 28px;
    flex-wrap: nowrap;
}
.item-heading h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 700;
}
.item-heading.has-color {
    background: var(--heading-bg);
    color: var(--heading-fg);
    border-left-color: var(--heading-bg);
}
.item-heading.has-color h3,
.item-heading.has-color .drag-handle,
.item-heading.has-color .edit-row summary {
    color: inherit;
}
.item-heading:not(.has-color) {
    background: var(--heading-default-bg, #f3e2cf);
    color: var(--heading-default-fg, var(--ink));
    border-left-color: var(--heading-default-bg, var(--terracotta));
}
.item-heading:not(.has-color) h3,
.item-heading:not(.has-color) .drag-handle,
.item-heading:not(.has-color) .edit-row summary {
    color: inherit;
}
.heading-color-form {
    margin: 0;
    flex-shrink: 0;
}
.heading-color-form .color-pair input[type="text"] {
    max-width: 92px;
    padding: 5px 8px;
    font-size: 0.85rem;
}
.item-heading .color-pair input[type="color"] {
    width: 32px;
    height: 28px;
}

.item-tools { flex-shrink: 0; }
.slots { flex-shrink: 0; white-space: nowrap; }

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: var(--muted);
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
    letter-spacing: -0.12em;
    user-select: none;
    -webkit-user-drag: element;
    padding: 4px 6px;
    margin: -4px 0 -4px -4px;
    flex-shrink: 0;
    border-radius: 6px;
    line-height: 1;
}
.drag-handle:active { cursor: grabbing; }
.item.dragging { opacity: 0.45; }
.item.drag-over-before::before,
.item.drag-over-after::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    height: 3px;
    background: var(--terracotta);
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}
.item.drag-over-before::before { top: -6px; }
.item.drag-over-after::after { bottom: -6px; }

.drag-chip {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fffaf3;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    box-shadow: 0 8px 20px rgba(70, 42, 18, 0.16);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
}
.drag-chip-label { font-weight: 700; }

.edit-row { font-family: system-ui, sans-serif; font-size: 0.9rem; }
.edit-row summary { cursor: pointer; color: var(--muted); }
.edit-row form { margin-top: 10px; }
.edit-row[open] {
    flex: 1 1 100%;
    width: 100%;
}
.item-row:has(.edit-row[open]) {
    flex-wrap: wrap;
    align-items: flex-start;
}
.item-row:has(.edit-row[open]) .item-main {
    flex: 1 1 calc(100% - 2.5rem);
    min-width: 12rem;
}
.item-row:has(.edit-row[open]) .item-main strong,
.item-row:has(.edit-row[open]) .item-main h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.item-row:has(.edit-row[open]) .slots,
.item-row:has(.edit-row[open]) .item-tools {
    flex: 1 1 100%;
    margin-left: 0;
    width: 100%;
}
.item-heading .item-row:has(.edit-row[open]) {
    flex-wrap: wrap;
}

.add-heading-title { margin-top: 28px; }

.place-group {
    margin: 14px 0 0;
    padding: 0;
    border: 0;
}
.place-group legend {
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
}
.place-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 8px;
    font-family: system-ui, sans-serif;
}
.place-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin: 0;
}
.place-under select {
    width: auto;
    min-width: 10rem;
    max-width: 16rem;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #d8c7b2;
}
.place-under select:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 1px;
}
.place-under select:disabled {
    opacity: 0.5;
}

.add-repeat-group {
    margin: 14px 0 0;
}
.add-repeat-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    border: 2px solid var(--ink);
    border-radius: 2px;
    background: var(--card);
    cursor: pointer;
}
.add-repeat-group input[type="checkbox"]:checked {
    background: var(--terracotta);
    box-shadow: inset 0 0 0 3px var(--card);
}
.add-repeat-help {
    margin: 4px 0 0 22px;
}



#add { scroll-margin-top: 80px; }


.preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: system-ui, -apple-system, sans-serif;
    background: #f3e2cf;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

.color-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}
.color-pair input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 2px;
    border: 1px solid #d8c7b2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.color-pair input[type="text"] {
    max-width: 140px;
}

.show-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}
.show-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
}
.host-contact-fields { margin: 12px 0; display: grid; gap: 10px; }
.email-alerts-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
    font-weight: 500;
}
.hide-name-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 8px;
    font-weight: 500;
}
.rsvp-identity {
    display: grid;
    gap: 8px;
    margin: 12px 0 4px;
    font-family: system-ui, -apple-system, sans-serif;
}
.rsvp-identity-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-weight: 500;
}
.rsvp-identity-option input {
    margin-top: 3px;
}
.rsvp-identity-option .tiny {
    display: inline;
    font-weight: 400;
}
.rsvp-account-fields {
    display: none;
}
.rsvp-identity:has(input[name="rsvp_identity"][value="account"]:checked) .rsvp-account-fields,
.rsvp-account-fields.is-open {
    display: block;
}
.field-kicker {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

body.event.has-bg-image {
    --bg-scroll-y: 0%;
    background: var(--paper);
    isolation: isolate;
    min-height: 100vh;
}
body.event.has-bg-image::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    /* 3:4 flyer at window width — taller than a wide screen, so scroll can show all of it. */
    height: max(100vh, calc(100vw * 4 / 3));
    min-width: 100%;
    min-height: 100vh;
    z-index: -1;
    background-image: var(--page-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-attachment: scroll;
    transform: translate(calc(50% - var(--bg-x, 50%)), var(--bg-scroll-y, 0px)) scale(var(--bg-scale, 1));
    transform-origin: top center;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    body.event.has-bg-image {
        --bg-scroll-y: 0%;
    }
}
body.event.has-bg-color:not(.has-bg-image) {
    background: var(--paper);
}
body.event.has-bg-image .site-header,
body.event.has-bg-color .site-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
}
body.event.has-custom-card .hero {
    background: var(--card);
}

.hero.has-banner {
    overflow: hidden;
}
.event-banner {
    position: relative;
    margin: -28px -28px 20px;
    width: calc(100% + 56px);
    max-width: none;
    aspect-ratio: 2 / 1;
    height: auto;
    overflow: hidden;
}
.event-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(calc(50% - var(--banner-x, 50%)), calc(50% - var(--banner-y, 50%))) scale(var(--banner-scale, 1));
    transform-origin: center center;
}
.hero.title-on-banner .event-banner {
    margin-bottom: 0;
}
.hero.title-on-banner .event-banner h1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 80px 28px 22px;
    color: #fffaf3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.58) 72%);
}

.appearance-current {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}
.appearance-current-stack {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    position: relative;
    z-index: 0;
}
.appearance-current.is-empty,
.crop-preview.is-empty {
    display: none;
}
.appearance-thumb {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.crop-preview {
    position: relative;
    isolation: isolate;
    z-index: 0;
    overflow: visible;
    margin: 12px 0 20px;
    width: 100%;
    max-width: 400px;
}
.crop-preview-stage {
    position: relative;
    z-index: 0;
    padding: 14px;
    overflow: visible;
}
.crop-preview-frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 0;
    width: 100%;
    height: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #2b2118;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.crop-preview-frame.is-dragging,
.crop-preview-frame:active {
    cursor: grabbing;
}
.crop-preview--banner .crop-preview-frame {
    padding-top: 50%;
}
.crop-preview--bg {
    max-width: 280px;
}
.crop-preview--bg .crop-preview-frame {
    padding-top: 133.333%; /* 3:4 flyer */
}
.crop-preview-frame > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate(calc(50% - var(--crop-x, 50%)), calc(50% - var(--crop-y, 50%))) scale(var(--crop-scale, 1));
    transform-origin: center center;
    pointer-events: none;
}
.crop-handle-box {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    border: 1px dashed rgba(255, 250, 243, 0.55);
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}
.crop-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    border: 2px solid #fffaf3;
    background: var(--terracotta);
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(43, 33, 24, 0.35);
    z-index: 5;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
    touch-action: none;
}
.crop-handle[data-crop-handle="nw"] { top: -10px; left: -10px; cursor: nwse-resize; }
.crop-handle[data-crop-handle="ne"] { top: -10px; right: -10px; cursor: nesw-resize; }
.crop-handle[data-crop-handle="sw"] { bottom: -10px; left: -10px; cursor: nesw-resize; }
.crop-handle[data-crop-handle="se"] { bottom: -10px; right: -10px; cursor: nwse-resize; }
.crop-filename {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: color-mix(in srgb, var(--ink, #2b2118) 72%, transparent);
    word-break: break-word;
}
.crop-unsaved-note {
    margin: 4px 0 0;
}
.crop-preview-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-family: system-ui, -apple-system, sans-serif;
}
.crop-scale-readout {
    min-width: 3.2em;
    font-size: 0.85rem;
    color: var(--muted);
}

.section-title {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 14px;
    border-radius: var(--btn-radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(43, 33, 24, 0.08);
}
.section-note {
    display: inline-block;
    margin: 0 0 10px;
    padding: 3px 10px;
    border-radius: var(--btn-radius);
    background: var(--card);
    color: var(--ink);
}

.card h3 {
    font-size: 1.1rem;
    margin: 22px 0 0;
}


.appearance-block {
    margin: 0 0 16px;
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.appearance-block > h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.guest-section {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.guest-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 16px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-dark);
    background: #f3e2cf;
    border-bottom: 1px solid var(--line);
    list-style: none;
}
.guest-section-bar::-webkit-details-marker { display: none; }
.guest-section-bar::marker { content: ""; }
.guest-section-bar::after {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    transform: rotate(45deg);
    margin-top: -0.25em;
    flex-shrink: 0;
}
.guest-section:not([open]) .guest-section-bar { border-bottom: 0; }
.guest-section:not([open]) .guest-section-bar::after {
    transform: rotate(-45deg);
    margin-top: 0.15em;
}
.guest-section-body { padding: 18px 20px 22px; }
.guest-section-body > .flash { margin-top: 0; }
.invite-from { justify-content: flex-start; }
.invite-from .btn { border-radius: var(--btn-radius); }
.guest-section-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.guest-blast { margin-top: 16px; }
.guest-blast textarea { min-height: 90px; }
.guest-cards > li {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.guest-pick {
    margin: 2px 0 0;
    display: flex;
    align-items: center;
}
.guest-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.guest-card-body .edit-row { margin-top: 10px; }
.guest-card-footer {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.guest-tile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    word-break: normal;
}
.guest-tile-actions .btn {
    border-radius: var(--btn-radius, 6px);
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px;
}

.guest-save-to,
.guest-edit,
.guest-remove-confirm {
    margin-top: 10px;
}
.guest-remove-confirm .btn {
    border-radius: 6px;
}
.guest-edit input[type="text"],
.guest-edit input[type="email"],
.guest-edit input[type="tel"],
.guest-edit input[type="number"] { width: 100%; }
.invite-add {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.settings-fieldset {
    margin: 16px 0 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}
.settings-fieldset legend {
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 650;
}
.vis-choices { margin: 8px 0 10px; }
.not-you { margin: 0 0 12px; }
.guest-card-body input[readonly] {
    width: 100%;
    font-size: 0.82rem;
    margin-top: 4px;
}

.recaptcha-box {
    margin-top: 16px;
    margin-bottom: 4px;
}

/* Analog time clock — terracotta, matches .btn */
.time-clock {
    position: relative;
}
.time-clock-trigger[hidden] { display: none; }
.time-clock.is-ready .time-clock-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.time-clock-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font: 1rem system-ui, -apple-system, sans-serif;
    padding: 10px 12px;
    border: 1px solid #d8c7b2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.time-clock-trigger:hover { border-color: var(--terracotta); }
.time-clock-trigger:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}
.time-clock-friendly.is-empty { color: var(--muted); }
.time-clock-trigger-icon {
    color: var(--muted);
    display: flex;
    flex-shrink: 0;
}

body.time-clock-open { overflow: hidden; }

.time-clock-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(43, 33, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.time-clock-overlay[hidden] { display: none; }

.time-clock-dialog {
    width: min(340px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(70, 42, 18, 0.22);
    padding: 18px 18px 14px;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--ink);
}

.time-clock-readout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}
.time-clock-digit {
    min-width: 72px;
    border: 0;
    border-radius: 12px;
    background: #f3e4d2;
    color: var(--ink);
    font: 600 2.4rem/1.1 system-ui, -apple-system, sans-serif;
    padding: 8px 10px;
    cursor: pointer;
}
.time-clock-digit.is-active {
    background: var(--btn-bg, var(--terracotta));
    color: var(--btn-fg, #fff);
}
.time-clock-colon {
    font: 600 2.1rem/1 system-ui, -apple-system, sans-serif;
    color: var(--muted);
    padding-bottom: 4px;
}
.time-clock-ampm {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    border: 1px solid var(--btn-bg, var(--terracotta));
    border-radius: 10px;
    overflow: hidden;
}
.time-clock-ampm-btn {
    border: 0;
    background: transparent;
    color: var(--btn-bg, var(--terracotta));
    font: 650 0.82rem/1 system-ui, -apple-system, sans-serif;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    cursor: pointer;
}
.time-clock-ampm-btn + .time-clock-ampm-btn {
    border-top: 1px solid var(--btn-bg, var(--terracotta));
}
.time-clock-ampm-btn.is-on {
    background: var(--btn-bg, var(--terracotta));
    color: var(--btn-fg, #fff);
}

.time-clock-face {
    position: relative;
    width: min(260px, 72vw);
    height: min(260px, 72vw);
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f3e4d2;
    touch-action: none;
    user-select: none;
}
.time-clock-labels,
.time-clock-arm {
    position: absolute;
    inset: 0;
}
.time-clock-arm {
    transform: rotate(var(--clock-angle, 0deg));
    pointer-events: none;
    transition: transform 0.15s ease;
}
.time-clock-face.is-dragging .time-clock-arm { transition: none; }
.time-clock-hand {
    position: absolute;
    left: 50%;
    top: 20%;
    width: 2px;
    height: 30%;
    margin-left: -1px;
    background: var(--btn-bg, var(--terracotta));
}
.time-clock-knob {
    position: absolute;
    left: 50%;
    top: 6%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    border-radius: 50%;
    background: var(--btn-bg, var(--terracotta));
    color: var(--btn-fg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 650 0.95rem system-ui, -apple-system, sans-serif;
}
.time-clock-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--btn-bg, var(--terracotta));
    pointer-events: none;
}
.time-clock-label {
    position: absolute;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 650 0.95rem system-ui, -apple-system, sans-serif;
    border-radius: 50%;
    cursor: pointer;
}
.time-clock-label.is-picked { color: transparent; }
.time-clock-label:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.time-clock-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: min(260px, 72vw);
    margin-bottom: 8px;
}
.time-clock-type[hidden] { display: none; }
.time-clock-type-hour,
.time-clock-type-minute {
    width: 88px;
    text-align: center;
    font: 600 2.2rem system-ui, -apple-system, sans-serif;
    padding: 12px 8px;
    border: 1px solid #d8c7b2;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.time-clock-type-hour:focus,
.time-clock-type-minute:focus {
    outline: 2px solid var(--terracotta);
    border-color: var(--terracotta);
}

.time-clock-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.time-clock-kb {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 6px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.time-clock-kb:hover { color: var(--terracotta); background: #f8e6d8; }
.time-clock-clear { color: var(--muted); font: 600 0.88rem system-ui, -apple-system, sans-serif; }
.time-clock-clear:hover { color: var(--terracotta); }
.time-clock-spacer { flex: 1; }

@media (max-width: 360px) {
    .time-clock-digit { min-width: 60px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .time-clock-arm { transition: none; }
}

.save-to-row .guest-save-to { margin-top: 8px; }
.save-to-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-family: system-ui, sans-serif;
    font-weight: 500;
}
.save-to-opt .tiny { font-weight: 400; }

.footer-links {
    margin: 12px 0 0;
    font-style: normal;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--terracotta); }

.legal h2 { margin-top: 22px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
}
.consent-row input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.look-strip { margin: 0 0 18px; }
.look-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}
.look-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    overflow: hidden;
    cursor: pointer;
    font-weight: 500;
    font-family: system-ui, sans-serif;
}
.look-card input { position: absolute; opacity: 0; pointer-events: none; }
.look-card.is-selected { border-color: var(--terracotta); box-shadow: 0 0 0 2px var(--terracotta); }
.look-thumb {
    display: block;
    aspect-ratio: 2 / 1;
    background: var(--paper);
    overflow: hidden;
}
.look-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.look-name {
    display: block;
    padding: 7px 8px 8px;
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--ink);
}
.look-sample { margin: 0 0 8px; }
.look-apply-actions { margin-top: 8px; }
@media (max-width: 640px) {
    .look-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
    .look-name { font-size: 0.78rem; }
}


.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    max-width: 100%;
}
.gallery-thumb {
    display: block;
    margin: 0;
    padding: 0;
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 72px;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb.is-selected {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 2px var(--terracotta);
}
@media (max-width: 640px) {
    .gallery-thumb { width: 64px; height: 64px; flex-basis: 64px; }
}

.gallery-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    max-width: 100%;
}
.gallery-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font: 650 0.78rem/1.1 system-ui, sans-serif;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.gallery-more-btn span { pointer-events: none; }
.gallery-more-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(43, 33, 24, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}
.gallery-more-overlay[hidden] { display: none; }
.gallery-more-dialog {
    width: min(560px, 100%);
    max-width: 100%;
    margin: 24px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(70, 42, 18, 0.22);
    padding: 14px 14px 16px;
    color: var(--ink);
}
.gallery-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.gallery-more-head h3 {
    margin: 0;
    font-size: 1.05rem;
}
.gallery-more-close {
    margin: 0;
    padding: 0;
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    color: var(--ink);
    font: 650 0.78rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    max-width: 100%;
}
.gallery-filter {
    margin: 0;
    padding: 0;
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    color: var(--ink);
    font: 650 0.72rem/1.15 system-ui, sans-serif;
    cursor: pointer;
    flex: 0 0 72px;
}
.gallery-filter.is-on {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 2px var(--terracotta);
}
.gallery-filter.is-coming,
.gallery-filter:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gallery-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}
.gallery-more-grid .gallery-thumb.is-hidden,
.gallery-mine-cell.is-hidden { display: none; }
.gallery-filter.gallery-lock {
    opacity: 0.7;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.gallery-lock-icon { font-size: 1.1rem; line-height: 1; }
.gallery-mine-cell {
    position: relative;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
}
.gallery-mine-cell .gallery-thumb { width: 100%; height: 100%; }
.gallery-mine-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    color: var(--ink);
    font: 700 0.85rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.save-to-photos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    font: 650 0.9rem/1.2 system-ui, sans-serif;
}
.save-to-photos input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 22px;
    accent-color: var(--terracotta);
    border-radius: 4px;
}
body.gallery-more-open { overflow: hidden; }
@media (max-width: 640px) {
    .gallery-more-overlay { padding: 10px; }
    .gallery-more-dialog { margin: 8px auto; padding: 12px; }
    .gallery-filter { width: 64px; height: 64px; flex-basis: 64px; font-size: 0.68rem; }
    .gallery-more-close { width: 64px; height: 64px; }
    .gallery-mine-cell { width: 64px; height: 64px; flex-basis: 64px; }
    .save-to-photos { font-size: 0.85rem; }
}

.repeat-fieldset .repeat-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
}
.repeat-lock-icon { font-size: 1.1rem; line-height: 1; }
.repeat-lock.is-tapped { outline: 2px solid var(--terracotta); }
.repeat-fieldset {
    margin: 12px 0 4px;
}
.repeat-fieldset input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    border: 2px solid var(--ink);
    border-radius: 2px;
    background: var(--card);
    cursor: pointer;
}
.repeat-fieldset input[type="radio"]:checked {
    background: var(--terracotta);
    box-shadow: inset 0 0 0 3px var(--card);
}
.repeat-monthly.is-hidden { display: none; }
.repeat-monthly { margin-top: 8px; }
.repeat-monthly-choices { flex-wrap: wrap; }
.repeat-monthly-choices label { min-width: 10rem; }
.host-skip-form, .skip-form { margin-top: 12px; }
.skip-form input[type="number"],
.host-skip-form input[type="number"] {
    width: 4.5rem;
    display: inline-block;
    margin: 0 6px;
}

.pay-card-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.pay-card-block > .tiny { margin-bottom: 8px; }
.pay-element {
    min-height: 48px;
    padding: 4px 0 8px;
}
.pay-element-error[hidden] { display: none; }
.pay-element-error { margin-top: 10px; }
@media (max-width: 640px) {
    .pay-element { min-height: 52px; }
    .pay-card-block .actions .btn { width: 100%; }
}


.look-more-btn {
    font: 650 0.78rem/1.1 system-ui, sans-serif;
    color: var(--ink);
    text-align: center;
    border-radius: 6px;
}
.look-more-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
}
.look-more-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(43, 33, 24, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}
.look-more-overlay[hidden] { display: none; }
.look-more-grid .look-card {
    width: 72px;
    flex: 0 0 72px;
    border-radius: 6px;
}
.look-more-grid .look-thumb {
    aspect-ratio: 1 / 1;
    position: relative;
}
.look-more-grid .look-name {
    display: none;
}
.look-card.look-locked {
    text-decoration: none;
    color: inherit;
    position: relative;
}
.look-lock-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    font-size: 1rem;
    line-height: 1;
}
.look-more-grid .look-card.is-hidden { display: none; }
.look-thumb { position: relative; }
@media (max-width: 640px) {
    .look-more-grid .look-card { width: 64px; flex-basis: 64px; }
}


.shop-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin: 12px 0 4px;
}
.shop-item {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 14px;
    border-radius: var(--btn-radius);
}
.shop-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.shop-qty-form input[type="number"] { width: 4.5rem; display: inline-block; margin-right: 8px; }
.shop-cart-list, .shop-order-list { list-style: none; padding: 0; margin: 0 0 12px; }
.shop-cart-list li, .shop-order-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

/* Logged-out home landing only. Do not reuse on event flyers. */
.landing {
    margin: 0 0 8px;
}
.landing-hero h1 {
    font-size: 1.7rem;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}
.landing-hero .lede {
    margin: 0;
    max-width: 38em;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.45;
}
.landing-cta { margin-top: 20px; }

.landing-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.landing-steps figure { margin: 0; }
.landing-steps img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
}
.landing-steps figcaption {
    margin: 10px 0 0;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 650;
    color: var(--ink);
}

.landing-video {
    margin: 28px 0 0;
}
.landing-video-frame {
    min-height: 160px;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(
            135deg,
            #fffaf3,
            #fffaf3 12px,
            #f3e6d4 12px,
            #f3e6d4 24px
        );
    border: 1px dashed var(--muted);
    border-radius: var(--btn-radius);
}
video.landing-video-frame {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #111;
    border: 1px solid var(--line);
}
.landing-video p {
    margin: 8px 0 0;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.92rem;
    color: var(--muted);
}

.landing-credit {
    margin: 22px 0 0;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
}
.landing-credit a {
    color: var(--muted);
    text-decoration: none;
}
.landing-credit a:hover { color: var(--terracotta); }

@media (min-width: 720px) {
    .landing-hero h1 { font-size: 2.35rem; }
    .landing-hero .lede { font-size: 1.18rem; }
    .landing-steps {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 18px;
        margin-top: 36px;
    }
    .landing-video { margin-top: 36px; }
    .landing-video-frame { min-height: 220px; }
}
