:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #f5f1ea;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #3a7d44;
    --accent-dark: #2f6b3f;
    --accent-secondary: #c75c5c;
    --line: #e5e7eb;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.button {
    cursor: pointer;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.shell {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 22px;
}

.brand {
    font-family: 'Righteous', Helvetica, Arial, Tahoma, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    background: rgba(245, 241, 234, 0.8);
    border: 1px solid transparent;
}

.header-nav-link:hover {
    border-color: var(--accent);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.button:visited {
    color: inherit;
}

.button:hover {
    transform: none;
    border-color: var(--accent);
}

.button-info {
    background: var(--surface-strong);
    color: var(--text);
    border-color: transparent;
}

.button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: inherit;
    fill: currentColor;
}

.button-icon use {
    fill: currentColor;
}

.button-label-mobile {
    display: none;
}

.button-label-mobile-hidden {
    display: inline;
}

.button-label-spaced {
    margin-left: 8px;
}

.button-primary,
.button-primary:visited {
    background: var(--accent);
    color: #ffffff;
    border: 0;
}

.button-primary:hover {
    background: var(--accent-dark);
    border-color: transparent;
}

.button-warning,
.button-warning:visited {
    background: #f2a531;
    color: #111111;
    border: 0;
}

.button-warning:hover {
    background: #de9220;
    color: #111111;
    border-color: transparent;
}

.button-danger,
.button-danger:visited {
    background: var(--accent-secondary);
    color: #ffffff;
    border: 0;
}

.button-danger:hover {
    background: #b34a4a;
    border-color: transparent;
}

.button-cta,
.button-cta:visited {
    min-height: 52px;
    padding: 0 32px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    box-shadow: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
}

.button-cta-regular,
.button-cta-regular:visited,
.button-cta-regular:hover {
    font-weight: 400;
}

.button-cta:hover {
    background: #2f6b3f;
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

.button-warning.button-cta,
.button-warning.button-cta:visited,
.button-warning.button-cta:hover {
    background: #f2a531;
    color: #111111;
}

.button-warning.button-cta:hover,
.button-warning.button-cta:focus,
.button-warning.button-cta:active {
    background: #de9220;
    border-color: transparent;
}

.button-danger.button-cta,
.button-danger.button-cta:visited,
.button-danger.button-cta:hover,
.button-danger.button-cta:focus,
.button-danger.button-cta:active {
    background: #b34a4a;
    color: #ffffff;
    border-color: transparent;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.form-card {
    width: min(480px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    font: inherit;
}

.field textarea {
    min-height: 140px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    font: inherit;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--accent);
}

.field select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    font: inherit;
    font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.field select option {
    font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.field-input-error {
    border-color: var(--accent-secondary) !important;
}

.field-error {
    min-height: 1.2rem;
    color: var(--accent-secondary);
    font-size: 0.92rem;
}

.field-help {
    color: var(--muted);
    font-size: 0.92rem;
}

.event-type-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(245, 241, 234, 0.45);
}

.event-type-preview-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.event-type-preview-copy {
    display: grid;
    gap: 4px;
}

.event-type-preview-copy .field-help {
    display: block;
}

.field-checkbox {
    gap: 10px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.premium-inline-link {
    color: var(--accent);
    text-decoration: underline;
}

.gift-preview-block {
    margin: 20px 0 4px;
}

.gift-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 24px;
}

.gift-stepper-item {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-align: center;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 0.92rem;
}

.gift-stepper-item.is-active {
    border-color: var(--accent);
    color: var(--accent-dark);
    font-weight: 600;
}

.gift-idea-preview {
    align-items: flex-start;
    gap: 12px;
}

.gift-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--surface-strong);
    font-size: 1.1rem;
}

.gift-suggestion-card {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
}

.gift-suggestion-kicker {
    color: var(--muted);
    font-size: 0.88rem;
}

.gift-suggestion-media {
    display: inline-flex;
    justify-content: center;
}

.gift-suggestion-media img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 14px;
    object-fit: cover;
}

.gift-suggestion-title {
    font-weight: 600;
}

.gift-suggestion-price {
    font-weight: 600;
    color: var(--accent-dark);
}

.gift-recap-title {
    display: inline-block;
    margin-bottom: 14px;
}

.gift-recap-card {
    margin-top: 14px;
}

.gift-recap-divider {
    height: 1px;
    background: var(--line);
    margin: 2px 0;
}

.gift-option-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.gift-option-card {
    display: block;
}

.gift-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-option-card-body {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
}

.gift-option-card input:checked + .gift-option-card-body {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.gift-option-card-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-option-card-media img {
    width: 100%;
    max-width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 12px;
}

.gift-option-card-content {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.gift-option-card-title {
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.gift-option-card-price {
    color: var(--accent-dark);
    font-weight: 600;
}

.gift-option-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: #ffffff;
    color: var(--accent-dark);
    font-weight: 600;
    width: fit-content;
}

.gift-option-card input:checked + .gift-option-card-body .gift-option-card-button {
    background: var(--accent);
    color: #ffffff;
}

@media (max-width: 640px) {
    .gift-option-card-body {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .gift-option-card-media {
        justify-content: flex-start;
    }

    .gift-option-card-media img {
        max-width: 88px;
        height: 88px;
    }
}

.gift-option-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.gift-choice-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gift-help-link {
    margin: 0;
}

.gift-help-link a {
    color: var(--accent);
    text-decoration: underline;
}

.result-secret-status {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 16px;
}

.result-secret-message {
    margin: 0;
}

.result-secret-message[hidden] {
    display: none !important;
}

.result-participant-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-participant-link {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(199, 92, 92, 0.12);
    color: var(--accent-secondary);
}

.alert-success {
    background: rgba(58, 125, 68, 0.12);
    color: var(--accent);
}

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

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.confirm-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    padding: 28px;
}

.confirm-modal__title {
    margin: 0 0 10px;
}

.confirm-modal__message {
    margin: 0;
}

.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.loading-overlay[hidden] {
    display: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loading-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(2px);
}

.loading-overlay__content {
    position: relative;
    z-index: 1;
    min-width: 220px;
    padding: 24px 28px;
    text-align: center;
}

.loading-overlay__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid rgba(58, 125, 68, 0.18);
    border-top-color: var(--accent);
    animation: loading-spin 0.8s linear infinite;
}

.loading-overlay__text {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

body.modal-open {
    overflow: hidden;
}

body.loading-active {
    overflow: hidden;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .confirm-modal__actions {
        flex-direction: column-reverse;
    }

    .confirm-modal__actions .button {
        width: 100%;
    }
}

.table-wrap {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

.result-participants-table {
    table-layout: auto;
}

.result-participants-table .table-actions-cell {
    width: 56px;
    padding-left: 4px;
    padding-right: 0;
    white-space: nowrap;
    text-align: right;
}

.result-participant-email {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.result-status-mobile {
    display: none;
    margin-top: 8px;
}

.result-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-status-meta {
    margin-top: 6px;
    font-size: 0.88rem;
}

.result-participants-table th:last-child {
    width: 56px;
    padding-right: 0;
    text-align: right;
}

.result-ideas-table .table-actions-cell {
    width: 56px;
    padding-left: 4px;
    padding-right: 0;
    white-space: nowrap;
    text-align: right;
}

.result-ideas-table th:last-child {
    width: 56px;
    padding-right: 0;
    text-align: right;
}

.result-idea-product {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 8px;
}

.result-idea-product-media {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ffffff;
}

.result-idea-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-idea-product-content {
    min-width: 0;
}

.premium-comparison-table {
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(31, 42, 31, 0.08);
}

.status-pill-spaced {
    margin-top: 10px;
}

.status-warning {
    background: rgba(199, 92, 92, 0.12);
    color: var(--accent-secondary);
}

.status-success {
    background: rgba(58, 125, 68, 0.14);
    color: var(--accent);
}

.stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.list-card {
    padding: 22px;
}

.item-list {
    display: grid;
    gap: 12px;
}

.item-list-centered {
    width: min(640px, 100%);
    margin: 0 auto 18px;
    text-align: left;
}

.item-list-top-gap {
    margin-top: 12px;
}

.item-row {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.item-row-block-gap {
    margin: 18px 0;
}

.item-row-centered {
    display: inline-block;
    min-width: min(320px, 100%);
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(31, 42, 31, 0.08);
    font-size: 0.85rem;
}

.footer {
    padding: 36px 0 48px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-copy {
    margin: 0;
    text-align: center;
}

.content-main {
    padding: 0 0 40px;
}

.content-panel {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 36px);
}

.content-title {
    margin: 0 0 20px;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    color: var(--text);
}

.content-meta {
    margin: -8px 0 24px;
    color: var(--muted);
}

.content-body {
    line-height: 1.75;
    color: var(--muted);
}

.content-body h2 {
    margin: 30px 0 12px;
    font-size: 1.2rem;
    color: var(--text);
}

.content-body h3 {
    margin: 24px 0 10px;
    font-size: 1.05rem;
    color: var(--text);
}

.content-body p,
.content-body ul,
.content-body ol,
.content-body table,
.content-body form {
    margin: 0 0 16px;
}

.content-body ul,
.content-body ol {
    padding-left: 22px;
}

.content-body a:not(.button) {
    color: var(--accent);
}

.content-note {
    padding: 16px 18px;
    border-left: 3px solid rgba(58, 125, 68, 0.35);
    border-radius: 12px;
    background: rgba(58, 125, 68, 0.06);
}

.content-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.content-checkbox {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
}

.content-checkbox input {
    margin-top: 5px;
}

.content-last {
    margin-bottom: 0;
}

.contact-form {
    display: grid;
    gap: 4px;
    margin-top: 28px;
}

.contact-captcha-wrap {
    display: flex;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
}

.contact-captcha-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.contact-submit {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.contact-submit-button {
    width: min(320px, 100%);
}

.contact-success {
    text-align: center;
}

.flow-card {
    display: grid;
    gap: 12px;
}

.flow-card-wide {
    width: min(760px, 100%);
}

.flow-card-center {
    text-align: center;
}

.app-page-header {
    display: grid;
    gap: 12px;
}

.app-page-header-centered {
    text-align: center;
}

.app-page-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.app-page-title-centered {
    text-align: center;
}

.app-page-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.app-page-intro-centered {
    text-align: center;
}

.app-section-title {
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: clamp(1.08rem, 1.7vw, 1.32rem);
    line-height: 1.22;
}

.app-section-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.flow-title {
    margin-top: 0;
    color: var(--text);
}

.flow-title-center {
    text-align: center;
}

.flow-subtitle {
    margin: 0;
    color: var(--text);
}

.flow-text {
    line-height: 1.7;
}

.flow-text-tight {
    margin-bottom: 10px;
}

.flow-text-spaced {
    margin-bottom: 22px;
}

.flow-text-center {
    text-align: center;
}

.flow-text-bottom-gap {
    margin-bottom: 18px;
}

.flow-action-block {
    margin-bottom: 24px;
}

.flow-action-inline {
    text-align: center;
    margin-bottom: 18px;
}

.flow-actions-stack {
    display: grid;
    gap: 12px;
    width: min(340px, 100%);
    margin: 0 auto;
}

.flow-actions-stack.gift-recap-actions {
    margin: 36px auto 0;
}

.flow-actions-inline-center {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.flow-actions-top-gap {
    margin-top: 20px;
}

.flow-box-spaced {
    margin: 18px 0;
}

.page-column-narrow {
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.page-bubbles-background {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 8px 0 64px;
    background-color: #f4efe9;
    background-image:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.42) 18px, transparent 19px),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 12px, transparent 13px),
        radial-gradient(circle at 24% 74%, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0.26) 10px, transparent 11px),
        radial-gradient(circle at 68% 68%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.34) 16px, transparent 17px),
        radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 24px, transparent 25px),
        radial-gradient(circle at 92% 82%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 14px, transparent 15px);
    background-size: 320px 320px, 280px 280px, 360px 360px, 300px 300px, 420px 420px, 340px 340px;
    background-repeat: repeat;
}

.flow-badge-spaced {
    margin-left: 10px;
    vertical-align: middle;
}

.premium-badge-inline {
    gap: 0.38rem;
}

.premium-badge-inline-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: #f0c419;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 0 rgba(143, 112, 0, 0.2));
}

.premium-badge-inline-icon use {
    fill: currentColor;
}

.flow-image {
    width: min(320px, 100%);
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    margin: 0 auto;
}

.form-card-wide {
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.form-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.checkbox-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.stats-grid-spaced {
    margin-bottom: 18px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.content-panel-wide {
    width: min(860px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.media-card-wide {
    width: min(900px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.flow-image-top-gap {
    margin-top: 24px;
}

.media-video {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #000000;
}

.button-disabled-link {
    pointer-events: none;
    opacity: 0.55;
}

.table-label-cell {
    width: 56px;
}

.table-actions-cell {
    width: 120px;
    text-align: right;
}

.alert-actions {
    margin-top: 12px;
}

.toggle-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.toggle-switch-form {
    justify-content: space-between;
}

.toggle-switch-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(420px, 100%);
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
}

.toggle-switch-card.is-disabled {
    opacity: 0.65;
}

.toggle-switch-copy {
    display: grid;
    gap: 4px;
}

.toggle-switch-ui {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.toggle-switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}

.toggle-switch-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 56px;
    height: 32px;
    padding: 4px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 160ms ease;
}

.toggle-switch-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    transition: transform 160ms ease;
}

.toggle-switch-input:checked + .toggle-switch-track {
    background: var(--accent);
}

.toggle-switch-input:checked + .toggle-switch-track .toggle-switch-thumb {
    transform: translateX(24px);
}

.toggle-switch-input:focus-visible + .toggle-switch-track {
    outline: 2px solid rgba(58, 125, 68, 0.25);
    outline-offset: 2px;
}

.toggle-switch-input:disabled + .toggle-switch-track {
    cursor: not-allowed;
}

.control-narrow {
    width: min(320px, 100%);
    margin: 0 auto 18px;
}

.control-narrow select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    font: inherit;
    font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1rem;
}

.control-narrow select:focus {
    outline: 0;
    border-color: var(--accent);
}

.choice-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    cursor: pointer;
}

.choice-card input {
    margin-right: 10px;
}

.payment-choice-layout {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.payment-choice-block {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.payment-choice-block-premium {
    border-color: rgba(58, 125, 68, 0.28);
    box-shadow: 0 10px 26px rgba(58, 125, 68, 0.08);
}

.payment-choice-block-basic {
    border-color: rgba(31, 41, 55, 0.09);
}

.payment-choice-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.payment-choice-block-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--text);
}

.payment-choice-cta-group {
    display: grid;
    gap: 12px;
    width: min(360px, 100%);
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;
}

.payment-choice-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.payment-choice-tag-premium {
    background: rgba(58, 125, 68, 0.12);
    color: #2f6737;
}

.payment-feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.payment-feature-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    line-height: 1.4;
    color: var(--text);
}

.payment-feature-item-muted {
    color: var(--muted);
}

.payment-feature-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-height: 22px;
    font-size: 0.98rem;
}

.price-highlight {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.payment-security-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.price-strike {
    margin-right: 8px;
    color: #78615c;
    text-decoration: line-through;
}

.payment-image {
    width: min(320px, 100%);
    height: auto;
}

.framed-image {
    border-radius: 20px;
    border: 1px solid var(--line);
}

.rounded-image-lg {
    border-radius: 22px;
}

.captcha-box {
    text-align: center;
    padding: 10px 0;
}

.toggle-panel[hidden] {
    display: none !important;
}

.section-title {
    margin: 0 0 16px;
    color: var(--text);
}

.section-subtitle {
    margin-top: 0;
    color: var(--text);
}

.premium-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.premium-section-title-icon {
    width: 1.3rem;
    height: 1.3rem;
    color: #f0c419;
    flex: 0 0 auto;
    transform: translateY(-0.02em);
    filter: drop-shadow(0 1px 0 rgba(143, 112, 0, 0.24));
}

.premium-section-title-icon use {
    fill: currentColor;
}

.section-action-center {
    text-align: center;
    margin-bottom: 16px;
}

.section-action-top-space {
    margin-top: 24px;
}

.section-action-center:last-child {
    margin-bottom: 0;
}

.faq-shell {
    max-width: 920px;
    margin: 0 auto;
}

.faq-group + .faq-group {
    margin-top: 24px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    font-weight: 700;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    float: right;
    color: #7a2d12;
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.6;
}

.text-break-all {
    word-break: break-all;
}

.text-strong {
    font-weight: 700;
}

.content-list-tight {
    line-height: 1.8;
    margin: 0;
    padding-left: 22px;
}

.premium-upgrade-spotlight {
    width: min(560px, 100%);
    margin: 18px auto 22px;
    padding: 22px 24px;
    border: 1px solid rgba(242, 165, 49, 0.3);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(242, 165, 49, 0.12) 0%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.premium-benefits-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.premium-benefits-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text);
}

.premium-benefit-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.result-hero-kicker {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.result-hero-name {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
}

.participant-email-card {
    padding: 28px;
}

.participant-email-title {
    margin-top: 0;
}

.participant-email-intro {
    line-height: 1.7;
}

.participant-email-link-box {
    margin: 18px 0;
}

.participant-email-link {
    display: inline-block;
    word-break: break-all;
}

.participant-email-actions-inline {
    margin-top: 16px;
}

.participant-email-action-button {
    width: min(320px, 100%);
}

.participant-email-actions-stack {
    display: grid;
    gap: 12px;
}

.participant-email-alert {
    margin-bottom: 18px;
}

.participant-email-back {
    margin-bottom: 0;
}

.home-main {
    background: #ffffff;
}

.home-container {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}

.home-narrow {
    width: min(800px, 100%);
    margin: 0 auto;
}

.home-hero {
    padding: 72px 0 64px;
    background: #ffffff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: 72px;
    align-items: center;
}

.home-hero-copy {
    max-width: 460px;
}

.home-hero-title {
    margin: 0;
    max-width: 460px;
    font-size: clamp(2.3rem, 3.2vw, 3.25rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.home-hero-title-line {
    display: block;
}

.home-hero-title-accent {
    color: #3a7d44;
    margin-top: 0.16em;
}

.home-hero-subtitle {
    margin: 20px 0 0;
    max-width: none;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.55;
    color: #6b7280;
}

.home-hero-actions {
    margin-top: 28px;
    width: 100%;
}

.home-hero-button {
    width: 100%;
}

.home-hero-button:hover {
    border-color: transparent;
}

.home-hero-microcopy {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
    text-align: center;
}

.home-hero-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-hero-image {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    border-radius: 16px;
}

.home-how {
    padding: 64px 0;
    background: #f5f1ea;
}

.home-section-title {
    margin: 0 0 48px;
    text-align: center;
    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.15;
    color: #1f2937;
}

.home-steps {
    width: min(960px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.home-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 125, 68, 0.14);
    border: 1px solid rgba(58, 125, 68, 0.18);
    color: #2f6b3f;
    font-weight: 700;
}

.home-step-title {
    margin: 16px 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.home-step-text {
    margin: 8px 0 0;
    max-width: 220px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.home-proof {
    margin: 40px 0 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

.home-proof-mark {
    display: inline-block;
    margin-right: 6px;
    color: #3a7d44;
}

.home-current {
    padding: 56px 0 0;
}

.home-current-box {
    width: min(800px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-current-title,
.home-info-title {
    margin: 0 0 20px;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.2;
    color: #1f2937;
}

.home-current-intro {
    margin: 0 0 20px;
    line-height: 1.7;
    color: #6b7280;
}

.home-current-summary {
    max-width: 520px;
    margin: 0 auto 18px;
    text-align: center;
}

.home-current-actions {
    display: grid;
    gap: 12px;
    width: min(340px, 100%);
    margin: 0 auto;
}

.home-benefits {
    padding: 56px 0 0;
}

.home-benefits-card {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.home-benefits-title {
    margin: 0 0 18px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
    color: #1f2937;
    text-align: center;
}

.home-benefits-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-benefits-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #4b5563;
    line-height: 1.6;
    box-shadow: inset 0 0 0 1px rgba(58, 125, 68, 0.08);
}

.home-info {
    padding: 56px 0 0;
}

.home-info-grid {
    display: grid;
    gap: 28px;
}

.home-info-grid h3 {
    margin: 0 0 12px;
    font-size: 1.12rem;
    line-height: 1.3;
    color: #1f2937;
}

.home-copy-text {
    line-height: 1.8;
}

.home-copy-text-last {
    line-height: 1.8;
    margin-bottom: 0;
}

.home-copy-text-gap-sm {
    line-height: 1.8;
    margin-bottom: 10px;
}

.home-copy-text-gap-md {
    line-height: 1.8;
    margin-bottom: 12px;
}

.home-copy-list {
    line-height: 1.8;
    margin: 0;
    padding-left: 22px;
}

.home-copy-list-topless {
    line-height: 1.8;
    margin-top: 0;
    padding-left: 22px;
}

.home-link-underline {
    text-decoration: underline;
}

.home-info-grid p,
.home-info-grid li {
    color: #6b7280;
}

.home-info-grid a {
    color: #3a7d44;
}

.home-stats {
    margin: 0;
    text-align: center;
    line-height: 1.8;
    color: #6b7280;
}

.signup-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 0 64px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.84)),
        url('../img/cadeaux-wide.webp') center/cover no-repeat;
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px);
    gap: 24px;
    align-items: start;
    justify-content: center;
}

.signup-layout.is-authenticated {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.signup-layout-split {
    grid-template-columns: minmax(0, 620px) minmax(280px, 360px);
}

.signup-panel {
    background: rgba(255, 255, 255, 0.95);
}

.signup-panel-compact {
    padding: 28px;
}

.signup-options-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    background: rgba(255, 255, 255, 0.95);
}

.signup-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signup-title,
.signup-side-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.signup-subtitle,
.signup-side-copy {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.signup-account-banner {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(58, 125, 68, 0.22);
    border-radius: 16px;
    background: rgba(58, 125, 68, 0.08);
}

.signup-account-banner span {
    color: var(--muted);
}

.signup-password-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-first-field {
    margin-top: 24px;
}

.signup-login-button {
    width: 100%;
}

.signup-side-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    justify-items: center;
    text-align: center;
}

.signup-side-links a {
    color: var(--accent);
    text-decoration: none;
}

.signup-side-links a:hover {
    text-decoration: underline;
}

.signup-option-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0;
}

.signup-option-divider::before,
.signup-option-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.login-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 0 64px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        url('../img/cadeaux-wide.webp') center/cover no-repeat;
}

.login-card {
    width: min(480px, 100%);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
}

.login-title {
    margin-top: 0;
}

.login-intro {
    color: var(--muted);
    line-height: 1.7;
}

.login-submit {
    display: flex;
    justify-content: center;
}

.login-submit + form {
    margin-top: 24px;
}

.login-button {
    width: 100%;
}

.login-button:hover {
    border-color: transparent;
}

.login-recover {
    margin: 18px 0 0;
}

.recover-card {
    padding: 28px;
}

.recover-title {
    margin-top: 0;
}

.recover-intro {
    color: var(--muted);
    line-height: 1.7;
}

.recover-button {
    width: 100%;
}

.recover-success-panel {
    width: min(760px, 100%);
    margin: 0 auto;
}

.recover-success-body {
    text-align: center;
}

.recover-success-image {
    display: block;
    width: min(320px, 100%);
    height: auto;
    margin: 24px auto 0;
}

.payment-choice-cta-group .button {
    width: 100%;
    justify-content: center;
}

@media (min-width: 760px) {
    .payment-choice-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .payment-choice-block {
        min-height: 100%;
    }
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    padding: 12px 0 28px;
}

.dashboard-hero-copy {
    max-width: 720px;
}

.dashboard-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.dashboard-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.dashboard-hero-actions {
    display: grid;
    gap: 12px;
    width: min(300px, 100%);
}

.dashboard-hero-centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-hero-centered .dashboard-hero-copy {
    max-width: 760px;
}

.dashboard-hero-centered .dashboard-hero-actions {
    width: min(340px, 100%);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
    padding: 20px 22px;
}

.dashboard-stat-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.dashboard-stat-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card-grid-single {
    grid-template-columns: 1fr;
}

.dashboard-tirage-card {
    padding: 22px;
    border-radius: 28px;
}

.dashboard-tirage-card.is-current {
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(58, 125, 68, 0.12);
}

.dashboard-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.dashboard-card-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.dashboard-card-title {
    margin: 0;
    font-size: 1.4rem;
}

.dashboard-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.dashboard-card-meta dt {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.dashboard-card-meta dd {
    margin: 0;
    font-weight: 600;
}

.dashboard-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-empty-state {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.tirage-list-grid {
    display: grid;
    gap: 18px;
}

.tirage-list-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tirage-list-card.is-current {
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(58, 125, 68, 0.12);
}

.tirage-list-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.tirage-list-card-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.tirage-list-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.tirage-list-card-meta dt {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.tirage-list-card-meta dd {
    margin: 0;
    font-weight: 600;
}

.tirage-list-card-actions {
    margin-top: auto;
    padding-top: 4px;
    justify-content: flex-start;
}

.settings-panel {
    width: 100%;
}

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.settings-summary-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(245, 241, 234, 0.7);
    padding: 18px 20px;
}

.settings-summary-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.settings-section {
    margin-top: 16px;
    padding-top: 8px;
}

.settings-danger-zone {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.settings-danger-field {
    max-width: 420px;
}

.settings-danger-button {
    display: flex;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .home-container {
        width: calc(100% - 24px);
    }

    .home-hero {
        padding: 48px 0;
    }

    .result-participants-table th,
    .result-participants-table td {
        padding: 10px 8px;
    }

    .result-participants-table th:nth-child(2),
    .result-participants-table td.result-status-cell {
         display: none; 
    }

    .result-status-mobile {
        display: block;
    }

    .result-participants-table .table-actions-cell {
        width: 52px;
        padding-left: 4px;
        padding-right: 0;
    }

    .result-ideas-table .table-actions-cell {
        width: 52px;
        padding-left: 4px;
        padding-right: 0;
    }

    .result-participants-table th:last-child {
        width: 52px;
    }

    .result-ideas-table th:last-child {
        width: 52px;
    }

    .result-participants-table .table-actions-cell .button {
        min-height: 44px;
        min-width: 44px;
        padding: 0 10px;
    }

    .result-ideas-table .table-actions-cell .button {
        min-height: 44px;
        min-width: 44px;
        padding: 0 10px;
    }

    .result-idea-product {
        grid-template-columns: 1fr;
    }

    .result-participants-table .status-pill {
        font-size: 0.8rem;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero-copy {
        max-width: none;
    }

    .home-hero-title {
        max-width: none;
        font-size: clamp(1.55rem, 5.2vw, 2rem);
        line-height: 1.08;
    }

    .home-hero-title-line:first-child {
        white-space: nowrap;
    }

    .home-hero-title-accent {
        margin-top: 0.22em;
    }

    .home-hero-subtitle {
        white-space: nowrap;
        font-size: 14px;
        line-height: 1.35;
    }

    .home-hero-button {
        width: 100%;
        min-height: 48px;
    }

    .home-hero-media {
        justify-content: center;
        margin-top: 24px;
    }

    .home-hero-image {
        max-width: none;
    }

    .home-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-how {
        padding: 56px 0;
    }

    .home-benefits-card {
        padding: 22px;
        border-radius: 20px;
    }

    .home-benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-password-grid {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding: 32px 0 48px;
    }

    .content-panel {
        width: 100%;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-stats,
    .dashboard-card-grid,
    .settings-summary-grid,
    .dashboard-card-meta,
    .tirage-list-card-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: calc(100% - 24px);
    }

    .topbar {
        padding-top: 14px;
        align-items: center;
        flex-wrap: wrap;
    }

    .header-actions {
        display: contents;
    }

    .header-nav {
        width: 100%;
        order: 3;
        margin-top: 10px;
        justify-content: stretch;
    }

    .header-nav-link {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .button-label-desktop {
        display: none;
    }

    .button-label-mobile {
        display: none;
    }

    .button-label-mobile-hidden {
        display: none !important;
    }

    .topbar > .button.button-info {
        order: 2;
        margin-left: auto;
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .topbar > .button.button-info .button-icon {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding-top: 28px;
    }

    .footer-links {
        gap: 6px 12px;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    }

    .dashboard-tirage-card,
    .dashboard-empty-state,
    .settings-panel {
        padding: 20px;
    }

    .dashboard-card-actions,
    .tirage-list-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .header-nav-link {
        flex-basis: 100%;
    }
}