/* Public (landing / waitlist) pages render full-bleed: no dashboard body padding */
body:has(> .public-shell) {
    display: block;
    padding: 0;
}

body:has(> .app-shell) {
    display: block;
    padding: 0;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f2ed;
    color: #1f2430;
}

body {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

* {
    box-sizing: border-box;
}

button, input, textarea {
    font: inherit;
}

.page-shell {
    width: min(960px, 100%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.eyebrow {
    margin: 0 0 0.3rem;
    color: #8f6f3d;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(40, 38, 33, 0.08);
    padding: 1.5rem;
}

.muted {
    color: #5f6670;
    margin-bottom: 1.25rem;
}

.upload-box {
    border: 2px dashed #d8c8a3;
    border-radius: 14px;
    padding: 1rem;
    background: #fffaf1;
    margin-bottom: 1rem;
}

.file-input {
    width: 100%;
    padding: 0.5rem 0;
}

.carousel {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}

.photo-frame {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6efe7, #efe4d5);
    border-radius: 16px;
    overflow: hidden;
}

.photo-frame img {
    max-width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
}

.nav-button {
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d8c8a3;
    background: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #5f6670;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    border: 1px solid #d9d1c3;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: #fff;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.actions {
    margin-top: 1.25rem;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.96;
}

.btn-primary {
    background: linear-gradient(135deg, #7d4e2d, #b66f4d);
    color: #fff;
}

.btn-secondary, .btn-danger, .btn-light {
    background: #f7f1ea;
    color: #2d2d2d;
}

.btn-danger {
    background: #fdf0f0;
    color: #b42318;
    border: 1px solid #efc6c1;
}

.status-message {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: #efe8dd;
    border-left: 4px solid #8f6f3d;
    border-radius: 10px;
}

.response-box {
    margin-top: 1rem;
    background: #1f2430;
    color: #eef6ff;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.auth-shell {
    min-height: 80vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(540px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(40, 38, 33, 0.08);
    padding: 2rem;
}

.auth-buttons {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn-auth {
    width: 100%;
    justify-content: center;
    border: 1px solid #d9d1c3;
    background: #fffaf5;
}

@media (max-width: 640px) {
    body {
        padding: 1rem 0.75rem;
    }

    .card, .auth-card {
        padding: 1rem;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }
}
