: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);
}
.gallery-thumb.gallery-locked {
    position: relative;
    text-decoration: none;
    color: inherit;
}
.gallery-thumb .gallery-lock-badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    font-size: 1rem;
    line-height: 1;
}
@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-item.is-locked {
    opacity: 0.55;
    background: color-mix(in srgb, var(--card) 85%, var(--muted));
}
.shop-locked-tag {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.plan-addon-lines { margin: 10px 0 14px; }
.plan-addon-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.plan-addon-line p { margin: 0; }
.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; }
}


.choice-fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.choice-fieldset legend {
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0;
}
.choice-fieldset .show-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.choice-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;
}
.choice-fieldset input[type="radio"]:checked {
    background: var(--terracotta);
    box-shadow: inset 0 0 0 3px var(--card);
}


/* Pricing page: stacked cards on a phone, wrap grid on a wide screen. No pills. */
.page.pricing main.wrap {
    width: min(1100px, calc(100% - 32px));
}
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 18px 0 8px;
}
.pricing-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pricing-card h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}
.pricing-price {
    margin: 0 0 12px;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.3;
}
.pricing-month {
    display: block;
    font-size: 1.35rem;
    font-weight: 650;
    color: var(--ink);
}
.pricing-month small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}
.pricing-year {
    display: block;
    margin-top: 2px;
    font-size: 0.92rem;
    color: var(--muted);
}
.pricing-card ul {
    margin: 0 0 8px;
    padding-left: 1.15em;
    flex: 1;
}
.pricing-card li {
    margin: 0 0 6px;
}
.pricing-card .actions {
    margin-top: auto;
    padding-top: 8px;
}
.pricing-note {
    margin: 20px 0 0;
}

@media (min-width: 640px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 960px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .page.pricing main.wrap {
        width: calc(100% - 20px);
    }
    .pricing-month { font-size: 1.2rem; }
}

.pricing-compare-actions {
    margin: 18px 0 12px;
}
/* button.btn beats .btn-ghost; keep this control a terracotta ghost. */
.pricing-compare-actions .btn.btn-ghost {
    background: transparent;
    color: var(--btn-bg, var(--terracotta));
    border: 1px solid var(--btn-bg, var(--terracotta));
}
.pricing-compare-actions .btn.btn-ghost:hover,
.pricing-compare-actions .btn.btn-ghost:active {
    background: #f8e6d8;
    color: var(--btn-hover, var(--terracotta-dark));
}
.pricing-compare-wrap {
    margin: 0 0 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.pricing-compare {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
}
.pricing-compare th,
.pricing-compare td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}
.pricing-compare thead th {
    background: #fff4e6;
    font-weight: 650;
    color: var(--ink);
}
.pricing-compare th[scope="row"],
.pricing-compare th:first-child,
.pricing-compare td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--card);
    font-weight: 600;
    white-space: normal;
    min-width: 140px;
    max-width: 188px;
    box-shadow: 1px 0 0 var(--line);
}
.pricing-compare thead th:first-child {
    z-index: 2;
    background: #fff4e6;
}
.pricing-compare tbody tr:nth-child(even) td,
.pricing-compare tbody tr:nth-child(even) th {
    background: #fffdf8;
}
.pricing-compare tbody tr:last-child th,
.pricing-compare tbody tr:last-child td {
    border-bottom: 0;
}

@media (min-width: 1100px) {
    .page.pricing main.wrap {
        width: min(1180px, calc(100% - 32px));
    }
    .pricing-compare {
        min-width: 0;
    }
}
@media (max-width: 640px) {
    .pricing-compare {
        min-width: 720px;
        font-size: 0.82rem;
    }
    .pricing-compare th,
    .pricing-compare td {
        padding: 7px 8px;
    }
}

/* Pricing tap explainers: square terracotta pops, tap not hover. */
.pricing-tip {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: var(--terracotta);
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    border-radius: 0;
}
.pricing-tip:hover,
.pricing-tip:focus-visible {
    color: var(--terracotta-dark);
}
.pricing-tip[aria-expanded="true"] {
    color: var(--terracotta-dark);
}
.pricing-pop {
    position: fixed;
    z-index: 40;
    box-sizing: border-box;
    width: min(228px, calc(100vw - 24px));
    padding: 14px;
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--terracotta);
    border-radius: 0;
    box-shadow: var(--shadow);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.88rem;
    line-height: 1.35;
    font-weight: 500;
}
.pricing-pop[hidden] { display: none; }

/* Plan / avatar / print (pricing matrix, prep) */
.plan-select {
    border-radius: 6px;
    max-width: 22rem;
}
.avatar-preview-wrap { margin: 0 0 12px; }
.avatar-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #f3e2cf;
}
.name-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}
.avatar-sq {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3e2cf;
}
.guest-card-body .name-with-avatar { display: flex; }
.guest-list .name-with-avatar { display: inline-flex; }
.guest-section-bar > span { flex: 1; }
.guest-section-bar .guest-print-local {
    letter-spacing: normal;
    text-transform: none;
    font-weight: 600;
    order: 2;
}
.guest-section-bar::after { order: 3; }


body.print-sheet {
    background: #fffaf3;
    min-height: 100vh;
    color: #2b2118;
}
.print-bg-hint {
    flex: 1 1 100%;
    margin: 0;
    color: var(--muted);
}
.print-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    padding: 16px 20px;
    max-width: 8.5in;
    margin: 0 auto;
}
.print-toolbar-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.92rem;
}
.print-toolbar-flags label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--ink);
}
.print-toolbar-flags input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--terracotta);
    border-radius: 0;
}
.print-pages {
    max-width: 8.5in;
    margin: 0 auto 40px;
    padding: 0 12px 40px;
}
.print-page {
    background: #fff;
    color: #2b2118;
    box-sizing: border-box;
    width: 8.5in;
    min-height: 11in;
    padding: 0.6in;
    margin: 0 auto 24px;
    border: 1px solid var(--line);
    border-radius: 6px;
    page-break-after: always;
    break-after: page;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
.print-page.is-last,
.print-page:last-child { page-break-after: auto; break-after: auto; }
.print-page[hidden] { display: none !important; }
.print-sheet-inner {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 8px 20px 40px;
}
.print-hero { margin: 0 0 28px; }
.print-kicker {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin: 0 0 6px;
}
.print-sheet h1 { margin: 0 0 8px; }
.print-meta {
    margin: 0;
    color: var(--muted);
    font-family: system-ui, -apple-system, sans-serif;
}
.print-heading {
    margin: 28px 0 12px;
    padding: 8px 12px;
    background: #f3e2cf;
    color: #2b2118;
    border-radius: 6px;
    font-size: 1.15rem;
}
.print-item {
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.print-item h3 { margin: 0 0 4px; font-size: 1.15rem; }
.print-slots {
    margin: 0 0 10px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
}
.print-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.print-lines li {
    min-height: 2rem;
    border-bottom: 1px solid #e4d5c3;
    padding: 6px 0 4px;
    font-family: system-ui, -apple-system, sans-serif;
}
.print-promo {
    display: flex;
    flex-direction: column;
    background-color: var(--paper, #fffaf3);
    background-image: var(--page-bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--bg-x, 50%) var(--bg-y, 50%);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-promo-slab {
    margin-top: auto;
    padding: 18px 20px 16px;
    background: rgba(255, 250, 243, 0.72);
    color: #2b2118;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(43, 33, 24, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-promo-slab h1 { color: #2b2118; }
.print-promo-slab .print-meta { color: #5c4a3a; }
.print-promo-slab .print-kicker { color: var(--terracotta); }
.print-promo-slab .print-url { color: #2b2118; }
.print-promo-banner {
    margin: 0 0 20px;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(43, 33, 24, 0.18);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-promo-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;
}
.print-promo.title-on-banner .print-promo-banner,
.print-poster.title-on-banner .print-promo-banner,
.print-signup.title-on-banner .print-promo-banner {
    position: relative;
}
.print-promo.title-on-banner .print-promo-banner h1,
.print-poster.title-on-banner .print-promo-banner h1,
.print-signup.title-on-banner .print-promo-banner h1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 48px 18px 16px;
    color: #fffaf3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.58) 72%);
}
.print-url {
    margin: 0 0 18px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);
    word-break: break-all;
}
.print-qr {
    width: 1.6in;
    height: 1.6in;
    margin: 0;
}
.print-qr svg { display: block; width: 100%; height: 100%; }
.print-who-block { margin: 0 0 22px; }
.print-who-block h2 {
    margin: 0 0 10px;
    padding: 6px 12px;
    background: #f3e2cf;
    color: var(--terracotta-dark);
    border-radius: 6px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.print-who {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.print-who li {
    break-inside: avoid;
    padding: 6px 0;
    font-family: system-ui, -apple-system, sans-serif;
}
.print-who .avatar-sq,
.print-lines .avatar-sq {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.print-empty {
    margin: 0;
    color: var(--muted);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
}
@page { size: letter portrait; margin: 0; }
@media print {
    body.print-sheet {
        background: #fffaf3;
        color: #2b2118;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .print-promo {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: var(--paper, #fffaf3) !important;
        background-image: var(--page-bg-image) !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: var(--bg-x, 50%) var(--bg-y, 50%) !important;
    }
    .print-promo-slab {
        background: rgba(255, 250, 243, 0.78) !important;
        color: #2b2118 !important;
        box-shadow: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .print-toolbar { display: none !important; }
    .print-pages { max-width: none; margin: 0; padding: 0; }
    .print-sheet-inner { max-width: none; margin: 0; padding: 0; }
    .print-page {
        border: 0;
        border-radius: 0;
        margin: 0;
        padding: 0.6in;
        box-shadow: none;
        width: 8.5in;
        box-sizing: border-box;
        page-break-after: always;
        break-after: page;
    }
    .print-page.print-poster,
    .print-page.print-poster-full,
    .print-page.print-poster-half {
        padding: 0;
        width: 8.5in;
        height: 11in !important;
        min-height: 11in !important;
        overflow: hidden;
    }
    .print-page.print-promo,
    .print-page.print-signup,
    .print-page.print-coming {
        padding: 0.6in;
        box-sizing: border-box;
    }
    .print-page.print-promo {
        min-height: 0 !important;
        height: auto !important;
        max-height: none;
        overflow: hidden;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .print-promo-banner {
        max-height: 3.2in;
        aspect-ratio: auto;
        margin-bottom: 14px;
    }
    .print-promo-slab {
        width: 100%;
        box-sizing: border-box;
    }
    .print-page.is-last { page-break-after: auto; break-after: auto; }
    .print-item { break-inside: avoid; box-shadow: none; }
    .print-heading { break-after: avoid; }
    .print-who-block { break-inside: avoid; }
}


.invite-schedule { margin-top: 8px; }
.invite-schedule-later { margin-top: 10px; }
.invite-schedule-form { margin: 0 0 14px; }


.dns-records {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 8px;
}
.dns-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
}
.dns-kind {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    padding-top: 18px;
}
.dns-fields {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.dns-field { min-width: 0; }
.dns-label {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 4px;
}
.dns-copy {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}
.dns-copy .dns-value,
input.dns-value[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d8c7b2;
    border-right: 0;
    border-radius: 0;
    background: #fffdf8;
    font: 0.88rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--ink);
}
.dns-copy-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #d8c7b2;
    border-radius: 0;
    background: #f3e2cf;
    color: var(--ink);
    font: 0.78rem/1 system-ui, -apple-system, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.dns-copy-btn:hover { background: #ead4bb; }
@media (max-width: 640px) {
    .dns-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .dns-kind { padding-top: 0; }
}

.plan-checkout { margin-top: 16px; }
#plan-checkout-mount { min-height: 120px; }
.plan-admin-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0 16px;
}


.plan-interval {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 10px 14px 12px;
    margin: 14px 0 8px;
}
.plan-interval legend {
    font-weight: 650;
    padding: 0 4px;
}
.plan-interval label {
    display: block;
    margin: 6px 0;
}
.plan-interval input[type="radio"] {
    margin-right: 8px;
}

.org-page-logo-block {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.org-splash-logo {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Try-a-plan allow-list radios: square chrome */
.plan-try-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}
.plan-try-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line, #c4a882);
    border-radius: 0;
    background: #fffaf3;
    cursor: pointer;
    font-weight: 600;
}
.plan-try-option input {
    margin: 0;
    accent-color: #c45c26;
}

/* Operator desk + site chrome knobs */
.btn-square { border-radius: 0; }
body.chrome-square {
    --radius: 0;
    --btn-radius: 0;
}
body.chrome-square .btn,
body.chrome-square button.btn,
body.chrome-square .card,
body.chrome-square .footer-pill {
    border-radius: 0;
}

.view-as-banner {
    background: #1f140e;
    color: #fff8ee;
    padding: 18px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    position: sticky;
    top: 0;
    z-index: 8;
}
.view-as-banner p { margin: 0; max-width: 52rem; }
.view-as-banner strong { font-weight: 800; }
.view-as-banner .btn { background: #fff8ee; color: #1f140e; border-radius: 0; }

.op-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px;
}
.op-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.op-section .op-search input[type="search"] { width: 100%; }
.op-results { list-style: none; padding: 0; margin: 0 0 18px; }
.op-results li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.op-results a { font-weight: 650; }
.op-dl { display: grid; grid-template-columns: 10rem 1fr; gap: 6px 16px; margin: 0 0 16px; }
.op-dl dt { color: var(--muted); font-family: system-ui, sans-serif; font-size: 0.85rem; }
.op-dl dd { margin: 0; }
.op-two-col { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) {
    .op-two-col { grid-template-columns: 1fr 1fr; }
}
.op-colors { display: flex; flex-wrap: wrap; gap: 12px 18px; border: 1px solid var(--line); padding: 12px; margin: 12px 0; }
.op-wordmark-preview { height: 36px; width: auto; vertical-align: middle; }
.op-size-knob { margin: 0 0 12px; }
.op-size-knob select { margin-right: 8px; }
.op-size-knob .op-px-label { display: inline; font-weight: 500; margin: 0 4px 0 0; }
.op-size-knob .op-px { width: 5.5rem; display: inline-block; }

body.chrome-d-head-compact .header-inner { padding: 8px 0; }
body.chrome-d-head-roomy .header-inner { padding: 22px 0; }
body.chrome-d-flyer-narrow .wrap { width: min(760px, calc(100% - 32px)); }
body.chrome-d-flyer-wide .wrap { width: min(1100px, calc(100% - 32px)); }
body.chrome-d-type-s { font-size: 15px; }
body.chrome-d-type-l { font-size: 19px; }
body.chrome-d-banner-top .event-banner img { object-position: center top; }
body.chrome-d-banner-bottom .event-banner img { object-position: center bottom; }
body.chrome-d-banner-center .event-banner img { object-position: center center; }

@media (min-width: 900px) {
    body.chrome-d-board-beside.event main.wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 24px;
        align-items: start;
    }
    body.chrome-d-board-beside.event main.wrap > .hero { grid-column: 1; grid-row: 1; }
    body.chrome-d-board-beside.event main.wrap > #rsvp { grid-column: 1; grid-row: 2; }
    body.chrome-d-board-beside.event main.wrap > #board-top { grid-column: 2; grid-row: 1 / span 8; }
}

@media (max-width: 640px) {
    body.chrome-m-head-compact .header-inner { padding: 6px 0; }
    body.chrome-m-head-roomy .header-inner { padding: 16px 0; }
    body.chrome-m-flyer-narrow .wrap { width: calc(100% - 28px); }
    body.chrome-m-flyer-wide .wrap { width: calc(100% - 12px); }
    body.chrome-m-type-s { font-size: 14px; }
    body.chrome-m-type-l { font-size: 18px; }
    body.chrome-m-banner-top .event-banner img { object-position: center top; }
    body.chrome-m-banner-bottom .event-banner img { object-position: center bottom; }
    body.chrome-m-rsvp-full #rsvp .actions { display: flex; flex-direction: column; }
    body.chrome-m-rsvp-full #rsvp .actions .btn { width: 100%; }
}

/* Pixel chrome knobs — vars from site_chrome_body_style; named classes remain as fallback */
body {
    font-size: var(--chrome-d-type, 16px);
}
.wordmark img { height: var(--chrome-d-wordmark, 52px); }
.header-inner {
    padding-top: var(--chrome-d-header, 14px);
    padding-bottom: var(--chrome-d-header, 14px);
}
.wrap { width: min(var(--chrome-d-flyer, 920px), calc(100% - 32px)); }
.event-banner { height: var(--chrome-d-banner, auto); }
.btn:not(.btn-small),
button.btn:not(.btn-small) {
    min-height: var(--chrome-d-btn, 40px);
    box-sizing: border-box;
}

@media (max-width: 640px) {
    body { font-size: var(--chrome-m-type, 16px); }
    .wordmark img { height: var(--chrome-m-wordmark, 36px); }
    .header-inner {
        padding-top: var(--chrome-m-header, 10px);
        padding-bottom: var(--chrome-m-header, 10px);
    }
    .wrap { width: min(var(--chrome-m-flyer, 640px), calc(100% - 20px)); }
    .event-banner { height: var(--chrome-m-banner, auto); }
    .btn:not(.btn-small),
    button.btn:not(.btn-small) {
        min-height: var(--chrome-m-btn, 42px);
    }
}

body {
    font-family: var(--chrome-font, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif);
    letter-spacing: var(--chrome-d-tracking, 0px);
}
.wrap { width: min(var(--chrome-d-flyer, 920px), calc(100% - (2 * var(--chrome-d-gutter, 16px)))); }
.card { padding: var(--chrome-d-pad, 18px); }
.appearance-block, .op-section .section-title { margin-top: var(--chrome-d-gap, 28px); }
@media (max-width: 640px) {
    body { letter-spacing: var(--chrome-m-tracking, 0px); }
    .wrap { width: min(var(--chrome-m-flyer, 640px), calc(100% - (2 * var(--chrome-m-gutter, 10px)))); }
    .card { padding: var(--chrome-m-pad, 14px); }
}

body.print-embed .print-toolbar { display: none !important; }
body.print-embed .print-pages,
body.print-embed .print-pages-embed {
    max-width: none;
    margin: 0;
    padding: 0;
}
body.print-embed .print-page {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.print-poster {
    position: relative;
    background: #2a241c;
    overflow: hidden;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-poster.has-bg .print-poster-frame,
.print-poster-frame.has-photo {
    background-color: #2a241c;
    background-image: var(--print-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--bg-x, var(--print-x, 50%)) var(--bg-y, var(--print-y, 50%));
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-page.print-poster-full {
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    max-width: 8.5in;
    padding: 0;
    overflow: hidden;
}
.print-page.print-poster-half:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    max-width: 8.5in;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.print-poster-band {
    position: relative;
    flex: 0 0 5.5in;
    width: 8.5in;
    height: 5.5in;
    max-height: 5.5in;
    overflow: hidden;
    box-sizing: border-box;
}
.print-poster-iframe {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 5.5in;
    height: 8.5in;
    border: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #2a241c;
    transform-origin: 0 0;
    transform: rotate(90deg) translate(0, -8.5in);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-poster-frame {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
body.print-slice-half {
    margin: 0;
    padding: 0;
    width: 5.5in;
    height: 8.5in;
    min-height: 8.5in;
    max-width: 5.5in;
    overflow: hidden;
    background: #2a241c;
}
body.print-slice-half,
html:has(body.print-slice-half) {
    width: 5.5in;
    height: 8.5in;
    overflow: hidden;
}
body.print-slice-half .print-pages,
body.print-slice-half .print-pages-embed {
    max-width: none;
    width: 5.5in;
    height: 8.5in;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body.print-slice-half .print-page.print-poster-slice {
    display: block;
    width: 5.5in;
    height: 8.5in;
    min-height: 8.5in;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    page-break-after: auto;
    break-after: auto;
}
body.print-slice-half .print-poster-frame {
    width: 5.5in;
    height: 8.5in;
    min-height: 8.5in;
    max-width: none;
    transform: none;
}
body.print-slice-half .print-poster-front {
    padding: 0.12in 0.16in 0.16in;
}
body.print-slice-half .print-poster-mid {
    min-height: 0.28in;
}
body.print-slice-half .print-promo-banner {
    max-height: 1.85in;
    box-shadow: 0 8px 20px rgba(43, 33, 24, 0.26);
}
body.print-slice-half .print-poster-overlay {
    padding: 0.12in 0.14in 0.1in;
    margin: auto 0 0.22in;
}
body.print-slice-half .print-poster-qr { width: 1.15in; height: 1.15in; margin-top: 8px; }
body.print-slice-half .print-poster-overlay h1 { font-size: 1.15rem; }
body.print-slice-half .print-meta { font-size: 0.85rem; }
body.print-slice-half .print-url { font-size: 0.78rem; margin-bottom: 6px; }
.print-poster-front {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    box-sizing: border-box;
    padding: 0.14in 0.2in 0.18in;
    overflow: hidden;
}
.print-poster-mid {
    flex: 1 1 auto;
    min-height: 0.55in;
    pointer-events: none;
}
.print-poster .print-promo-banner {
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 2 / 1;
    max-height: 3.2in;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(43, 33, 24, 0.28);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.print-poster .print-promo-banner img {
    transform: translate(calc(50% - var(--banner-x, 50%)), calc(50% - var(--banner-y, 50%))) scale(var(--banner-scale, 1));
    transform-origin: center center;
}
.print-poster-half .print-poster-front {
    padding: 0.12in 0.16in 0.16in;
}
.print-poster-half .print-poster-mid {
    min-height: 0.28in;
}
.print-poster-half .print-promo-banner {
    max-height: 1.85in;
    box-shadow: 0 8px 20px rgba(43, 33, 24, 0.26);
}
.print-poster-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(calc(50% - var(--bg-x, var(--print-x, 50%))), calc(50% - var(--bg-y, var(--print-y, 50%)))) scale(var(--bg-scale, var(--print-scale, 1)));
    transform-origin: center center;
}
.print-poster-overlay {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    margin: auto 0 0.55in;
    padding: 0.22in 0.24in 0.18in;
    background: rgba(255, 250, 243, 0.82);
    border-radius: 6px;
    color: #2b2118;
    box-shadow: 0 8px 24px rgba(43, 33, 24, 0.16);
    box-sizing: border-box;
    max-width: 100%;
}
.print-poster-overlay .print-url { margin-bottom: 10px; word-break: break-all; }
.print-poster-half .print-poster-overlay {
    padding: 0.12in 0.14in 0.1in;
    margin: auto 0 0.22in;
}
.print-poster-overlay h1 { margin: 0 0 8px; }
.print-poster-qr { width: 1.4in; height: 1.4in; margin-top: 12px; flex: 0 0 auto; }
.print-poster-half .print-poster-qr { width: 1.15in; height: 1.15in; margin-top: 8px; }
.print-poster-half .print-poster-overlay h1 { font-size: 1.15rem; }
.print-poster-half .print-meta { font-size: 0.85rem; }
.print-poster-half .print-url { font-size: 0.78rem; margin-bottom: 6px; }
body.chrome-square .print-poster,
body.chrome-square .print-poster-frame,
body.chrome-square .print-poster-overlay { border-radius: 0; }

.op-refund { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.op-refund input[type="text"] { width: auto; }
textarea#advanced_css { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; }

@media print {
    .print-page.print-poster-full {
        width: 8.5in;
        height: 11in;
        min-height: 11in;
        max-width: none;
        padding: 0;
        overflow: hidden;
        page: poster-full;
        page-break-after: always;
        break-after: page;
    }
    .print-page.print-poster-half:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 8.5in;
        height: 11in;
        min-height: 11in;
        max-width: none;
        padding: 0;
        overflow: hidden;
        page: poster-half;
    }
    .print-poster-full .print-poster-frame { width: 8.5in; height: 11in; min-height: 11in; }
    .print-poster-band { flex: 0 0 5.5in; width: 8.5in; height: 5.5in; overflow: hidden; }
    .print-poster-iframe {
        position: absolute;
        left: 0;
        top: 0;
        width: 5.5in;
        height: 8.5in;
        border: 0;
        transform-origin: 0 0;
        transform: rotate(90deg) translate(0, -8.5in);
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.print-slice-half,
    body.print-slice-half .print-pages,
    body.print-slice-half .print-page.print-poster-slice,
    body.print-slice-half .print-poster-frame {
        width: 5.5in !important;
        height: 8.5in !important;
        min-height: 8.5in !important;
        max-height: 8.5in !important;
        margin: 0 !important;
        padding: 0;
        overflow: hidden;
        transform: none !important;
    }
    body.print-slice-half .print-page.print-poster-slice { padding: 0 !important; }
    body.print-slice-half .print-poster-overlay { margin: auto 0 0.22in; }
    .print-poster-photo {
        display: none !important;
        transform: none !important;
    }
    .print-poster.has-bg .print-poster-frame,
    .print-poster-frame.has-photo {
        background-image: var(--print-bg) !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        background-position: var(--bg-x, var(--print-x, 50%)) var(--bg-y, var(--print-y, 50%)) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .print-poster-full .print-poster-overlay { margin: auto 0 0.55in; }
    .print-poster-half .print-poster-overlay { margin: auto 0 0.22in; }
    /* Solid cream card in print: rgba overlays on rotate(90deg) often paint black on copy 2 (Chrome/Skia). */
    .print-poster-overlay {
        background: #fffaf3 !important;
        background-color: #fffaf3 !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: #2b2118 !important;
    }
    .print-poster-front { padding: 0.14in 0.2in 0.18in; }
    .print-poster-half .print-poster-front,
    body.print-slice-half .print-poster-front { padding: 0.12in 0.16in 0.16in; }
    .print-poster-mid { flex: 1 1 auto; min-height: 0.55in; }
    .print-poster-half .print-poster-mid,
    body.print-slice-half .print-poster-mid { min-height: 0.28in; }
    .print-poster .print-promo-banner { max-height: 3.2in; }
    .print-poster-half .print-promo-banner,
    body.print-slice-half .print-promo-banner { max-height: 1.85in; }
}
@page poster-full { size: letter portrait; margin: 0; }
@page poster-half { size: letter portrait; margin: 0; }

@media screen and (max-width: 700px) {
    body.print-sheet:not(.print-embed) {
        overflow-x: hidden;
    }
    body.print-sheet:not(.print-embed) .print-toolbar {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    body.print-sheet:not(.print-embed) .print-pages {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 16px;
        padding-right: 32px;
    }
    body.print-sheet.print-fit-phone:not(.print-embed) .print-page {
        transform-origin: top left;
        width: 8.5in;
        max-width: 8.5in;
        box-sizing: border-box;
        overflow: hidden;
    }
    body.print-sheet.print-fit-phone:not(.print-embed) .print-page.print-poster-full,
    body.print-sheet.print-fit-phone:not(.print-embed) .print-page.print-poster-half:not([hidden]) {
        width: 8.5in;
        height: 11in;
        min-height: 11in;
    }
}
@media print {
    .print-page {
        transform: none !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
    }
    .print-page:not(.print-poster) {
        width: 8.5in !important;
        height: auto;
        padding: 0.6in;
        box-sizing: border-box;
    }
    .print-page.print-poster-full,
    .print-page.print-poster-half:not([hidden]) {
        width: 8.5in !important;
        height: 11in !important;
        min-height: 11in !important;
        max-height: 11in !important;
        padding: 0 !important;
        overflow: hidden;
        box-sizing: border-box;
    }
}

/* series calendar / plan dates (square chrome) */
.view-toggle .btn,
.meet-scope .btn,
.plan-date-actions .btn { border-radius: 0; }
.plan-dates { margin: 0.8rem 0 0.4rem; }
.plan-date-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.plan-cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.plan-cal-grid, .cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plan-cal-grid th, .cal-grid th { font-size: 0.8rem; padding: 0.2rem; }
.plan-cal-grid td, .cal-grid td { border: 1px solid #d8d4cc; height: 3rem; vertical-align: top; padding: 0; }
.plan-cal-grid td.is-out, .cal-grid td.is-out { opacity: 0.4; }
.plan-cal-grid td.is-on { background: #efe8dc; }
.cal-grid td.is-today { outline: 2px solid #2f4f3e; outline-offset: -2px; }
.plan-cal-day, .cal-day { display: block; width: 100%; min-height: 3rem; text-align: left; background: transparent; border: 0; padding: 0.25rem; color: inherit; text-decoration: none; border-radius: 0; }
.cal-num { display: block; font-size: 0.85rem; color: inherit; text-decoration: none; }
.cal-strip {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 0.12rem 0.22rem;
    margin: 0.14rem 0 0;
    background: #6b8f71;
    color: #fffaf3;
    border-radius: 3px;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
}
.cal-strip.is-host { background: #2f4f3e; color: #fffaf3; }
.cal-strip:nth-child(n+5) { display: none; }
@media (min-width: 800px) {
    .cal-grid td { height: auto; min-height: 7.5rem; }
    .cal-grid .cal-day { min-height: 7.5rem; aspect-ratio: 1 / 1; }
    .cal-strip:nth-child(n+5) { display: block; }
}
.plan-date-row { margin: 0.35rem 0; border: 1px solid #d8d4cc; padding: 0.4rem 0.6rem; }
.upcoming-list { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.upcoming-row { border-top: 1px solid #e6e1d8; padding: 0.45rem 0; }
.upcoming-date { font-weight: 600; }
.upcoming-extras { list-style: none; padding: 0.2rem 0 0; margin: 0; }
.series-week { border: 1px solid #d8d4cc; padding: 0.5rem 0.7rem; margin: 0.5rem 0; }
.series-week.is-locked { opacity: 0.65; }
.meet-scope { margin: 0.6rem 0 0.2rem; }
.credit-roll-note { max-width: 40rem; }

/* Admin whitelist qty fields: compact square chrome */
.whitelist-qty {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 7.5rem));
    gap: 14px;
    align-items: end;
    margin: 8px 0 4px;
}
.whitelist-qty label { margin-top: 0; }
.whitelist-qty input[type="number"],
input.qty-square[type="number"] {
    width: 4.5rem;
    max-width: 100%;
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.whitelist-qty input[type="number"]::-webkit-outer-spin-button,
.whitelist-qty input[type="number"]::-webkit-inner-spin-button,
input.qty-square[type="number"]::-webkit-outer-spin-button,
input.qty-square[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
