:root {
    --primary: #eebd2b;
    --primary-strong: #d9a91c;
    --bg: #f8f7f6;
    --bg-soft: #ffffff;
    --bg-admin: #f5f3ee;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e7e3da;
    --line-strong: #d7d0c3;
    --success-bg: #edf9ef;
    --success-text: #256d2c;
    --error-bg: #fff1f1;
    --error-text: #9f2323;
    --warn-bg: #fff7ea;
    --warn-text: #8f5600;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 12px 34px rgba(19, 18, 16, 0.08);
    --shadow-card: 0 10px 26px rgba(22, 20, 16, 0.09);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.app-body {
    min-height: 100vh;
}

.app-body-guest {
    background: radial-gradient(circle at top right, #fff7d8 0%, rgba(255, 247, 216, 0) 46%), linear-gradient(180deg, #ffffff 0%, #f7f5f0 100%);
}

.app-body-admin {
    background: linear-gradient(180deg, #fbfaf8 0%, var(--bg-admin) 100%);
}

.guest-stage {
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 116px;
    background: var(--bg-soft);
    box-shadow: var(--shadow-soft);
}

.admin-stage {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 1rem 1rem 7rem;
}

.guest-page {
    padding: 0 1rem 1.25rem;
}

.guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 0.25rem 0.25rem;
}

.guest-header-center {
    justify-content: center;
    position: relative;
}

.guest-header-center .guest-back {
    position: absolute;
    left: 0;
}

.guest-header-icon,
.guest-back {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: #8b6a0d;
    text-decoration: none;
}

.guest-back:hover {
    border-color: var(--primary);
}

.home-install-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.guest-install-shortcut {
    border-style: dashed;
    cursor: pointer;
}

.guest-install-shortcut.is-suggested {
    animation: installPulse 1.25s ease-in-out 4;
}

.home-install-hint {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    margin: 0;
    width: min(220px, 62vw);
    border: 1px solid color-mix(in srgb, var(--primary) 60%, #ffffff 40%);
    border-radius: 10px;
    background: #fffdf3;
    color: #6a520d;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 0.45rem 0.55rem;
    box-shadow: 0 9px 18px rgba(22, 18, 10, 0.14);
    z-index: 3;
}

.home-install-hint::before {
    content: "";
    position: absolute;
    right: 0.86rem;
    top: -0.34rem;
    width: 0.6rem;
    height: 0.6rem;
    background: #fffdf3;
    border-top: 1px solid color-mix(in srgb, var(--primary) 60%, #ffffff 40%);
    border-left: 1px solid color-mix(in srgb, var(--primary) 60%, #ffffff 40%);
    transform: rotate(45deg);
}

@keyframes installPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(238, 189, 43, 0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(238, 189, 43, 0.22);
    }
}

.guest-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.hero-card {
    position: relative;
    min-height: 360px;
    margin-top: 0.6rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(120deg, #3d3624 0%, #5b5037 45%, #3b3220 100%);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}

.hero-carousel {
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 11, 8, 0.08) 0%, rgba(13, 11, 8, 0.62) 88%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.4rem;
    color: #fff;
    text-align: center;
}

.hero-content h2 {
    margin: 0;
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    line-height: 1.1;
    font-weight: 800;
}

.hero-content p {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    font-style: italic;
    opacity: 0.94;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.hero-dot {
    width: 0.45rem;
    height: 0.45rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: #fff;
}

.countdown-section {
    margin-top: 1.45rem;
}

.section-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.82rem;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.countdown-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.countdown-cell {
    padding: 0.68rem 0.25rem 0.55rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 14%, #fff 86%);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, #ffffff 70%);
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 1.44rem;
    font-weight: 800;
    color: #9e7303;
    line-height: 1;
}

.countdown-label {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #6e5f3a;
    font-weight: 700;
}

.countdown-date,
.countdown-missing {
    margin: 0.75rem 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.87rem;
}

.detail-grid {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.detail-head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.detail-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: var(--primary);
    color: #413310;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-head h3 {
    margin: 0;
    font-size: 1rem;
}

.detail-meta {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.detail-address {
    margin: 0.85rem 0;
    font-size: 0.92rem;
    color: #334155;
}

.detail-action {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.58rem 0.82rem;
    border: 1px solid var(--line);
    border-radius: 11px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
}

.detail-action:hover {
    border-color: var(--primary);
}

.contact-section {
    margin-top: 1.3rem;
    margin-bottom: 0.65rem;
}

.contact-title {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
}

.contact-grid {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.72rem;
    text-align: center;
}

.contact-label {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.contact-value {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.schedule-meta {
    margin: 0.95rem 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.schedule-list {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    position: relative;
}

.schedule-list::before {
    content: "";
    position: absolute;
    left: 1.18rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 2px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 50%, #fff 50%) 0%, color-mix(in srgb, var(--primary) 10%, #fff 90%) 100%);
}

.schedule-item {
    position: relative;
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    gap: 0.95rem;
    margin-bottom: 1rem;
}

.schedule-node {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 2px solid var(--primary);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.schedule-item:first-child .schedule-node {
    background: var(--primary);
    border-color: var(--primary);
    color: #453811;
}

.schedule-content {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.74rem 0.85rem;
    margin-top: -0.08rem;
}

.schedule-time {
    color: #9e7303;
    font-weight: 800;
    font-size: 1rem;
}

.schedule-content h3 {
    margin: 0.2rem 0 0;
    font-size: 1.02rem;
}

.schedule-content p {
    margin: 0.32rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.lookup-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.lookup-card,
.rsvp-guest-card,
.seating-card,
.gallery-upload-card,
.gallery-photo,
.admin-card,
.admin-panel,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 16, 12, 0.04);
}

.lookup-card {
    padding: 1rem;
}

.lookup-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.qr-scanner {
    margin-top: 0.65rem;
}

.qr-scanner-reader {
    margin-top: 0.55rem;
    width: 100%;
    max-width: 320px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.qr-scanner-reader video {
    width: 100% !important;
    height: auto !important;
}

.qr-scanner-status {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
}

.form-stack {
    display: grid;
    gap: 0.55rem;
}

.form-stack label,
.rsvp-field-label,
.admin-form-grid label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.field-input,
.field-select,
.field-textarea,
.form-stack input,
.form-stack select,
.form-stack textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    padding: 0.63rem 0.72rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.field-textarea,
.form-stack textarea,
.admin-form-grid textarea {
    min-height: 80px;
    resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 65%, transparent 35%);
    border-color: var(--primary-strong);
}

.button,
.admin-form button,
.button-secondary,
.button-danger,
.settings-actions button {
    border: 0;
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.button,
.admin-form button,
.settings-actions button {
    background: var(--primary);
    color: #34290b;
}

.button:hover,
.admin-form button:hover,
.settings-actions button:hover {
    background: var(--primary-strong);
}

.button-secondary {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--primary);
}

.button-danger {
    background: #be2d2d;
    color: #fff;
}

.flash {
    margin: 0.75rem 0 0;
    border-radius: 12px;
    padding: 0.68rem 0.82rem;
    font-size: 0.89rem;
    border: 1px solid transparent;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #bde2c3;
}

.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: #f0c2c2;
}

.flash-warn {
    background: var(--warn-bg);
    color: var(--warn-text);
    border-color: #f0dab1;
}

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

.rsvp-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 0.7rem;
}

.rsvp-guests-grid {
    display: grid;
    gap: 0.8rem;
}

.rsvp-guest-card {
    padding: 1rem;
}

.rsvp-guest-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.rsvp-guest-name {
    margin: 0;
    font-size: 1.02rem;
}

.rsvp-guest-type {
    margin: 0.2rem 0 0;
    font-size: 0.79rem;
    color: var(--muted);
}

.rsvp-presence-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 15%, #fff 85%);
    gap: 0.2rem;
}

.presence-option {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.presence-option.is-active {
    background: var(--primary);
    color: #35270a;
}

.presence-option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rsvp-guest-fields {
    display: grid;
    gap: 0.56rem;
}

.rsvp-guest-card.is-declined .rsvp-guest-fields {
    opacity: 0.62;
}

.seating-hero {
    margin-top: 0.65rem;
    text-align: center;
    padding: 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
}

.seat-highlight {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.seat-metric {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0.75rem;
    text-align: center;
    background: #fff;
}

.seat-metric-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.seat-metric-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
}

.seating-grid {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.seating-card {
    padding: 0.85rem;
}

.seating-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.gallery-upload-card {
    margin-top: 0.8rem;
    padding: 1rem;
}

.gallery-upload-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.gallery-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem;
    font-size: 0.72rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(16, 13, 8, 0) 0%, rgba(16, 13, 8, 0.78) 82%);
}

.gallery-photo a {
    height: 100%;
    display: block;
}

.admin-page {
    margin-top: 0.8rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-header-main {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.admin-header-badge {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
    background: color-mix(in srgb, var(--primary) 22%, #fff 78%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b6a0d;
}

.admin-header h1,
.admin-header h2 {
    margin: 0;
    font-size: 1.23rem;
}

.admin-header p {
    margin: 0.18rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-login-wrap {
    min-height: calc(100vh - 2rem);
    display: grid;
    place-items: center;
}

.admin-login-card {
    width: min(100%, 460px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-login-hero {
    min-height: 200px;
    background: linear-gradient(120deg, rgba(29, 22, 8, 0.64), rgba(29, 22, 8, 0.2)), url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1200&q=70") center/cover;
    display: grid;
    place-items: center;
    color: #fff;
}

.admin-login-body {
    padding: 1.2rem;
}

.admin-login-footer {
    border-top: 1px solid var(--line);
    background: #faf9f6;
    color: #8f8b82;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-card {
    padding: 0.9rem;
}

.admin-card h3,
.admin-card h4 {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-card strong {
    margin-top: 0.4rem;
    display: block;
    font-size: 1.6rem;
    line-height: 1;
}

.admin-card-primary {
    background: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 70%, #b88300 30%);
    color: #2f240a;
}

.admin-card-primary h3 {
    color: rgba(47, 36, 10, 0.75);
}

.admin-actions-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.72rem;
}

.admin-action {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.85rem;
}

.admin-action-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
}

.admin-action p {
    margin: 0.5rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.admin-action:hover {
    border-color: var(--primary);
}

.admin-panel {
    padding: 1rem;
}

.admin-form-grid {
    display: grid;
    gap: 0.62rem;
}

.admin-fieldset,
.settings-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.admin-fieldset legend,
.settings-group legend {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 0 0.3rem;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.status-list,
.guest-list,
.admin-schedule-list,
.admin-gallery-list {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.guest-card,
.admin-schedule-item,
.admin-gallery-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.9rem;
}

.guest-card-header {
    margin-bottom: 0.6rem;
}

.admin-gallery-item img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    object-fit: cover;
}

.admin-hero-thumb {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
}

.admin-delete-form {
    margin-top: 0.5rem;
}

.inline-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.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;
}

.guest-upload-widget {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 520px);
    padding: 0 1rem;
    bottom: calc(5.15rem + env(safe-area-inset-bottom, 0px));
    z-index: 44;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.guest-upload-trigger {
    pointer-events: auto;
    width: 2.95rem;
    height: 2.95rem;
    border-radius: 999px;
    border: 0;
    background: var(--primary);
    color: #312507;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 20px rgba(238, 189, 43, 0.35);
    cursor: pointer;
}

.guest-upload-trigger .material-symbols-outlined {
    font-size: 1.35rem;
}

.upload-info-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.upload-info-modal[hidden] {
    display: none;
}

.upload-info-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 8, 12, 0.45);
}

.upload-info-panel {
    position: relative;
    width: min(100%, 380px);
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 1rem 1rem 0.95rem;
}

.upload-info-panel h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.upload-info-panel p {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
}

.upload-info-panel .settings-actions {
    margin-top: 0.8rem;
}

.install-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 72;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.install-choice-modal[hidden] {
    display: none;
}

.install-choice-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 8, 12, 0.5);
}

.install-choice-panel {
    position: relative;
    width: min(100%, 420px);
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.install-choice-panel h3 {
    margin: 0;
    font-size: 1.03rem;
}

.install-choice-panel p {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
}

.install-choice-panel .settings-actions {
    margin-top: 0.9rem;
    justify-content: flex-end;
}

.install-choice-fallback,
.install-choice-status {
    font-size: 0.85rem;
}

.guest-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 520px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.4rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 22px rgba(24, 20, 13, 0.08);
    z-index: 40;
}

.guest-nav-item {
    flex: 1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.16rem;
    transform: translateY(-0.12rem);
    color: #8d95a3;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.guest-nav-item .material-symbols-outlined {
    font-size: 1.32rem;
}

.guest-nav-item.is-active {
    color: #8d6500;
}

.guest-nav-item.is-active .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
}

.guest-nav-item.is-center {
    transform: translateY(-1.08rem);
    gap: 0.28rem;
}

.guest-nav-bubble {
    width: 3.22rem;
    height: 3.22rem;
    border-radius: 999px;
    background: var(--primary);
    color: #32260a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px rgba(238, 189, 43, 0.35);
}

.guest-nav-item.is-center .material-symbols-outlined {
    font-size: 1.65rem;
}

.admin-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    width: min(100%, 1200px);
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(25, 23, 18, 0.07);
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
}

.admin-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: #8b95a1;
}

.admin-mobile-nav-item.is-active {
    color: #8d6500;
}

.admin-mobile-nav-item.is-active .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
}

@media (min-width: 760px) {
    .guest-stage {
        margin: 1.25rem auto;
        min-height: calc(100vh - 2.5rem);
        border-radius: 26px;
        overflow: clip;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lookup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rsvp-guests-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seating-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stage {
        padding: 1.5rem 1.5rem 6.5rem;
    }

    .admin-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .admin-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-gallery-item {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 1rem;
        align-items: start;
    }

}

@media (min-width: 980px) {
    .admin-actions-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-schedule-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        align-items: end;
    }

    .admin-delete-form {
        margin: 0;
    }
}
