:root {
    color-scheme: light;
    font-family: Inter, Arial, sans-serif;
    color: #304139;
    background: #eef2e9;
    --green: #486953;
    --green-dark: #344f3d;
    --green-soft: #dfe9dc;
    --cream: #fbfaf5;
    --brown: #806c59;
    --border: #d7dfd2;
    --danger: #934d45;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; }
body { min-width: 0; min-height: 100vh; margin: 0; overflow-x: hidden; background: linear-gradient(145deg, #f6f3e9, #e7eee2); }
img, svg, canvas { max-width: 100%; }
a { color: var(--green-dark); }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }

.site-header, .public-header {
    min-height: 72px; padding: 12px max(20px, calc((100% - 1120px) / 2));
    padding-left: max(20px, env(safe-area-inset-left), calc((100% - 1120px) / 2));
    padding-right: max(20px, env(safe-area-inset-right), calc((100% - 1120px) / 2));
    padding-top: max(12px, env(safe-area-inset-top)); display: flex;
    align-items: center; justify-content: space-between; gap: 24px; background: rgba(251,250,245,.92);
    border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.admin-nav { display: flex; align-items: center; gap: 20px; }
.admin-nav a, .link-button { min-height: 44px; display: inline-flex; align-items: center; color: #55675c; text-decoration: none; font-size: .92rem; }
.admin-nav form { margin: 0; }
.link-button { border: 0; padding: 0; cursor: pointer; background: none; }

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 max(72px, env(safe-area-inset-bottom)); }
.panel { background: rgba(255,253,248,.94); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 46px rgba(61,80,66,.08); }
.page-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading h1, .section-heading h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; color: var(--green-dark); }
.eyebrow { margin: 0 0 10px; color: #718074; font-size: .76rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }

.button { min-width: 0; min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-align: center; text-decoration: none; overflow-wrap: anywhere; font-weight: 600; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border-color: #bdcbbd; background: transparent; }
.button-muted { color: #655c51; border-color: #d4cabd; background: #eee9df; }
.button-large { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.button:disabled { cursor: not-allowed; opacity: .55; }

.notice { margin: 0 0 22px; padding: 14px 17px; border-radius: 12px; line-height: 1.45; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice-success { color: #31563d; border: 1px solid #bbd5bc; background: #e8f2e5; }
.notice-error { color: #713b36; border: 1px solid #e0bdb6; background: #faeae7; }

.landing-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #cadabd, transparent 45%), linear-gradient(145deg, #f6f3e9, #e5ede0); }
.landing-page .page-shell { width: min(620px, 100%); padding: 0; }
.welcome { padding: clamp(38px,8vw,72px) clamp(24px,7vw,64px); text-align: center; border: 1px solid rgba(91,116,98,.2); border-radius: 28px; background: rgba(255,253,247,.84); box-shadow: 0 24px 70px rgba(72,91,77,.12); }
.welcome-logo { width: 124px; height: 124px; margin-bottom: 28px; border-radius: 50%; object-fit: cover; }
.welcome h1 { margin: 0; color: #405c49; font-family: Georgia, serif; font-size: clamp(2.5rem,10vw,4.5rem); font-weight: 400; line-height: 1; }
.status-text { margin: 28px 0 0; color: var(--brown); }

.auth-panel { width: min(430px, 100%); margin: 5vh auto; padding: clamp(25px,5vw,42px); }
.auth-panel .section-heading { margin-bottom: 25px; }
.form-stack { display: grid; gap: 18px; }
label { min-width: 0; display: grid; align-content: start; gap: 8px; color: #47594e; font-size: .9rem; font-weight: 600; }
.standard-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select),
form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) {
    width: 100%; height: 60px; min-height: 60px; padding: 0 16px;
    overflow: hidden; color: #26372e; border: 1px solid #bbc9ba;
    border-radius: 9px; outline: none; background: #fff;
    font-size: 16px; line-height: 1.2; text-overflow: ellipsis;
}
.standard-form textarea, form textarea {
    width: 100%; min-height: 120px; padding: 14px 16px; resize: vertical;
    overflow-wrap: anywhere; color: #26372e; border: 1px solid #bbc9ba;
    border-radius: 9px; outline: none; background: #fff;
    font-size: 16px; line-height: 1.5;
}
form :where(input, textarea, select):focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(72,105,83,.12); }
input[type="date"], input[type="datetime-local"] { max-height: 60px; }
input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { min-height: 1.2em; text-align: left; }

.dashboard-card { padding: 26px; display: flex; align-items: center; justify-content: space-between; }
.dashboard-card > div { display: flex; align-items: baseline; gap: 12px; }
.metric { color: var(--green); font-family: Georgia, serif; font-size: 3.2rem; }
.text-link { font-weight: 600; }
.telegram-check { margin-top: 18px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.telegram-check h2 { margin: 3px 0 9px; color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.telegram-check p { margin: 6px 0; color: #647168; }
.telegram-check form { margin: 0; flex: 0 0 auto; }
.event-list { display: grid; gap: 15px; }
.event-row { padding: 22px; display: flex; justify-content: space-between; gap: 26px; }
.event-row-main { min-width: 0; }
.event-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.event-title-line h2 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.event-row p { margin: 10px 0; color: #68746c; line-height: 1.45; }
.event-row .price-line { color: #46574d; font-size: .9rem; }
.badge { padding: 5px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-draft { color: #6c604e; background: #eee8dc; }
.badge-published { color: #365b40; background: #e1eedf; }
.badge-completed { color: #626b65; background: #e5e8e5; }
.public-link { margin-top: 14px; font-size: .86rem; }
.public-link span { color: #899088; }
.event-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.event-actions form { margin: 0; }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-state h2 { font-family: Georgia, serif; font-weight: 400; }
.empty-state p { margin-bottom: 25px; color: #6d786f; }

.event-form { padding: clamp(20px,4vw,34px); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 19px; }
.span-2 { grid-column: span 2; }
.form-note { margin: 22px 0; color: #748078; font-size: .85rem; }

.public-event-page .page-shell { width: min(820px, calc(100% - 32px)); }
.public-header { justify-content: center; }
.public-event-hero { padding: 30px 0 42px; text-align: center; }
.public-event-hero h1 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: clamp(2.3rem,7vw,4rem); font-weight: 400; }
.lead { max-width: 650px; margin: 22px auto 0; color: #5d6c62; font-size: 1.06rem; line-height: 1.7; white-space: pre-line; }
.detail-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--border); }
.detail-grid div { padding: 22px; display: grid; gap: 8px; background: var(--cream); }
.detail-grid span { color: #7a857e; font-size: .8rem; }
.detail-grid strong { min-width: 0; overflow-wrap: anywhere; color: #3d5145; line-height: 1.45; }
.payment-card { padding: clamp(22px,5vw,38px); border-radius: 20px; color: #f7f4ec; background: var(--green-dark); }
.payment-card h2 { margin: 0 0 22px; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.payment-card dl { margin: 0; }
.payment-card dl div { padding: 11px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.payment-card dt { color: #cbd7ce; }
.payment-card dd { margin: 0; font-weight: 700; }
.payment-card .balance { padding-top: 17px; font-size: 1.15rem; }
.payment-instructions { margin-top: 26px; padding: 18px; color: #344a3b; border-radius: 12px; background: #eef1e8; }
.payment-instructions h3 { margin: 0 0 9px; font-size: 1rem; }
.payment-instructions p { margin: 0; line-height: 1.55; white-space: pre-line; }
.registration-placeholder { padding: 34px 0 0; text-align: center; }
.registration-placeholder p { color: #78837b; font-size: .86rem; }
.error-page { max-width: 600px; margin: 6vh auto; padding: 50px 25px; text-align: center; }
.error-code { margin: 0; color: #91a092; font-family: Georgia, serif; font-size: 4rem; }
.error-page h1 { margin: 8px 0; font-family: Georgia, serif; font-weight: 400; }
.error-page p:not(.error-code) { margin-bottom: 24px; color: #6c786f; }

.registration-summary { margin-bottom: 28px; text-align: center; }
.registration-summary h1 { margin: 0 0 24px; color: var(--green-dark); font-family: Georgia, serif; font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 400; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--border); text-align: left; }
.summary-grid span { padding: 14px 17px; display: grid; gap: 5px; background: var(--cream); font-weight: 600; }
.summary-grid small { color: #77837b; font-weight: 400; }
.registration-form { display: grid; gap: 20px; }
.form-section { min-width: 0; padding: clamp(22px, 5vw, 34px); }
.form-section legend { padding: 0 9px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.45rem; }
.privacy-note { margin: 0 0 20px; color: #758079; font-size: .86rem; }
.field-hint { display: block; min-width: 0; overflow-wrap: anywhere; color: #7b867e; font-size: .76rem; font-weight: 400; }
.field-error { display: block; min-width: 0; overflow-wrap: anywhere; color: var(--danger); font-size: .8rem; font-weight: 500; }
.contraindications { margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; background: #f5f6ef; }
.contraindications summary { padding: 15px 17px; cursor: pointer; color: var(--green-dark); font-weight: 700; }
.contraindications-content { padding: 0 20px 20px; color: #526158; font-size: .9rem; line-height: 1.55; }
.contraindications-content h3 { margin: 18px 0 8px; color: #405247; font-size: .95rem; }
.contraindications-content ul { margin: 0; padding-left: 22px; }
.health-notice { margin: 20px 0 0; padding: 13px; border-radius: 9px; background: var(--green-soft); font-weight: 600; }
.check-label { margin: 14px 0 4px; display: flex; align-items: flex-start; gap: 11px; font-size: .94rem; line-height: 1.45; }
.check-label input { width: 19px; height: 19px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--green); }
.submit-registration { justify-self: center; min-width: min(100%, 320px); }
.saved-card { max-width: 620px; margin: 4vh auto; padding: clamp(30px, 7vw, 56px); text-align: center; }
.success-mark { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 2rem; }
.saved-card h1 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; }
.saved-name { color: var(--green-dark); font-size: 1.2rem; font-weight: 700; }
.saved-explanation { margin: 24px auto; color: #68756c; line-height: 1.6; }
.admin-detail-card { padding: clamp(22px, 4vw, 36px); }
.admin-detail-card h2 { margin: 30px 0 10px; color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.lead-admin { color: #5e6c63; line-height: 1.6; white-space: pre-line; }
.data-list { margin: 18px 0 0; border-top: 1px solid var(--border); }
.data-list div { padding: 13px 0; display: grid; grid-template-columns: minmax(145px, .7fr) 2fr; gap: 20px; border-bottom: 1px solid var(--border); }
.data-list dt { color: #77837b; }
.data-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; white-space: pre-line; }
.detail-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions form { margin: 0; }
.table-wrap { overflow-x: auto; }
.participants-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.participants-table th, .participants-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.participants-table th { color: #6d7a71; background: #f3f5ef; font-size: .76rem; text-transform: uppercase; }
.participants-table tr:last-child td { border-bottom: 0; }
.button-small { min-height: 34px; padding: 7px 11px; font-size: .8rem; }
.badge-registered { color: #365b40; background: #e1eedf; }
.badge-cancelled { color: #76544d; background: #f1e4e1; }
.documents-reviewed { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.documents-reviewed a { white-space: nowrap; font-weight: 700; }
.consent-check { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.before-heading h1 { max-width: 750px; margin-left: auto; margin-right: auto; }
.before-heading h2 { margin: -8px 0 24px; color: #5a6b60; font-family: Georgia, serif; font-weight: 400; }
.document-accordions { margin-bottom: 24px; display: grid; gap: 13px; }
.document-section { overflow: hidden; }
.document-section > summary { padding: 20px 22px; cursor: pointer; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.document-section[open] > summary { border-bottom: 1px solid var(--border); background: #f3f5ef; }
.document-content { min-width: 0; padding: clamp(20px, 5vw, 38px); overflow-wrap: anywhere; color: #46564c; line-height: 1.65; }
.document-content h2 { margin: 8px 0 24px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; text-align: center; }
.document-content h3 { margin: 28px 0 10px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.15rem; }
.document-content p { margin: 10px 0; }
.document-status { padding: 12px 14px; border-radius: 10px; color: #6b5d4e; background: #f1ebdf; font-size: .88rem; }
.contract-event-data { margin: 0 0 25px; border-top: 1px solid var(--border); }
.contract-event-data div { padding: 10px 0; display: grid; grid-template-columns: minmax(130px, .7fr) 2fr; gap: 15px; border-bottom: 1px solid var(--border); }
.contract-event-data dt { color: #78847c; }
.contract-event-data dd { margin: 0; font-weight: 700; }
.policy-text p + p { margin-top: 16px; }
.requested-data ul { columns: 2; margin: 0 0 20px; padding-left: 22px; }
.before-confirmation { padding: clamp(20px, 5vw, 30px); display: grid; gap: 20px; }
.before-confirmation .button { justify-self: center; }
.documents-heading p:last-child { color: #66736a; }
.legal-document { min-width: 0; margin-bottom: 22px; padding: clamp(22px, 5vw, 44px); overflow-wrap: anywhere; color: #3f5046; line-height: 1.65; }
.legal-document > header { margin-bottom: 28px; text-align: center; }
.legal-document > header h2 { margin: 7px 0; color: var(--green-dark); font-family: Georgia, serif; font-size: clamp(1.7rem, 5vw, 2.35rem); font-weight: 400; }
.legal-document > header p { margin: 4px; color: #6d796f; }
.legal-document section { padding-top: 8px; }
.legal-document h3 { margin: 22px 0 8px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.18rem; }
.legal-document p { margin: 8px 0; white-space: pre-line; }
.signing-form { padding: clamp(22px, 5vw, 38px); display: grid; gap: 18px; }
.signing-form h2 { margin: 0 0 5px; color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.signature-area { display: grid; gap: 10px; }
.signature-area > label { color: #47594e; font-size: .9rem; font-weight: 700; }
#signature-canvas { width: 100%; height: clamp(160px, 32vw, 230px); display: block; border: 2px solid #aebdaf; border-radius: 12px; background: white; touch-action: none; cursor: crosshair; }
.signature-area .button { justify-self: start; }
.signing-form > .button-primary { justify-self: center; min-width: min(100%, 300px); }
.signed-success { max-width: 820px; margin: 3vh auto; padding: clamp(28px, 6vw, 52px); text-align: center; }
.signed-success > h1 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3rem); font-weight: 400; }
.signed-documents { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; }
.signed-documents article { padding: 20px; display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 14px; background: #f7f7f1; }
.signed-documents h2 { margin: 0; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.signed-documents p { margin: 0; color: #69766d; font-size: .87rem; }
.signed-documents code, .admin-documents code { overflow-wrap: anywhere; color: #657168; font-size: .72rem; }
.signed-documents .button { margin-top: 8px; }
.admin-documents { display: grid; gap: 12px; }
.admin-documents article { padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #f8f8f3; }
.admin-documents article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-documents p { color: #68756c; }
.admin-documents code { display: block; margin: 8px 0 12px; }
.badge-signed { color: #365b40; background: #e1eedf; }
.badge-pending { color: #6c604e; background: #eee8dc; }
.media-choice-section, .media-standalone-form { margin-bottom: 18px; padding: clamp(18px, 4vw, 28px); }
.media-choice-section { border-color: rgba(120, 139, 124, .35); box-shadow: none; background: rgba(251, 250, 245, .68); }
.media-choice-section > h2 { margin: 1px 0 10px; color: var(--green-dark); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.media-choice-section > p:not(.eyebrow), .media-standalone-form > p { color: #5d6b62; line-height: 1.6; }
.media-choice-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.media-choice-card { position: relative; padding: 18px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #c5d0c3; border-radius: 14px; background: #fafaf6; cursor: pointer; font-weight: 400; }
.media-choice-card:hover { border-color: var(--green); }
.media-choice-card:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(72,105,83,.12); background: #f0f5ed; }
.media-choice-card input { width: 19px; height: 19px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green); }
.media-choice-card span { display: grid; gap: 9px; }
.media-choice-card strong { color: var(--green-dark); line-height: 1.3; }
.media-choice-card small { color: #68756d; font-size: .82rem; line-height: 1.5; }
.media-choice-card em { width: fit-content; padding: 4px 7px; border-radius: 999px; color: #486251; background: #dfead9; font-size: .7rem; font-style: normal; font-weight: 700; }
.media-choice-card.recommended { border-top: 4px solid #718e75; }
.signature-explanation { margin: 10px 0 0; padding: 13px 15px; border-radius: 10px; color: #536159; background: #edf1e9; line-height: 1.5; }
.media-followup { margin-top: 28px; padding: 22px; border: 1px solid #d2c7a9; border-radius: 14px; background: #f6f0df; }
.media-followup h2 { margin: 0 0 8px; color: #5d5645; font-family: Georgia, serif; font-weight: 400; }
.media-standalone-form { display: grid; gap: 18px; }
.participant-filters { margin-bottom: 18px; padding: 14px; display: flex; align-items: end; gap: 12px; }
.participant-filters label { min-width: 230px; }
.badge-media-full { color: #31563d; background: #dcebd9; }
.badge-media-group_only { color: #5a5941; background: #eeeacb; }
.badge-media-declined { color: #713b36; background: #f2e1dd; }
.badge-media-pending { color: #626b65; background: #e5e8e5; }
.prepayment-public { margin-top: 28px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--border); border-radius: 16px; background: #f7f7f1; text-align: left; }
.prepayment-public h2 { margin: 0 0 16px; color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.prepayment-public dl { margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--border); }
.prepayment-public dl div { padding: 12px; display: grid; gap: 5px; background: white; }
.prepayment-public dt { color: #758078; font-size: .78rem; }
.prepayment-public dd { margin: 0; font-weight: 700; }
.prepayment-public form { text-align: center; }
.payment-admin-actions { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 9px; }
.payment-admin-actions form { margin: 0; }
.badge-payment-not_reported { color: #626b65; background: #e5e8e5; }
.badge-payment-reported { color: #665b36; background: #f2ebc9; }
.badge-payment-confirmed { color: #31563d; background: #dcebd9; }
.badge-payment-rejected { color: #713b36; background: #f2e1dd; }
.compact-media-options { margin: 18px 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.compact-media-options label { padding: 14px 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #c7d1c5; border-radius: 11px; background: #fafaf7; cursor: pointer; font-size: .9rem; font-weight: 600; }
.compact-media-options label:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px rgba(72,105,83,.11); background: #f0f5ed; }
.compact-media-options .primary-option { border-color: #b7c8b7; background: #f5f8f2; }
.compact-media-options input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.media-details { margin-top: 12px; color: #5d6b62; font-size: 14px; }
.media-details summary { width: fit-content; cursor: pointer; color: var(--green-dark); font-weight: 700; }
.media-details p { padding: 10px 0 0; line-height: 1.55; }
.compact-completion-heading { margin: 0 0 12px; text-align: center; }
.compact-completion-heading h1 { margin: 2px 0 6px; color: var(--green-dark); font-family: Georgia, serif; font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 400; }
.compact-completion-heading p:last-child { color: #6c786f; }
.registration-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.auth-card { max-width: 520px; margin: 4vh auto; padding: clamp(24px, 5vw, 42px); }
.auth-card h1, .account-profile h2, .account-registrations h2, .account-create-inline h2 { color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.compact-form { display: grid; gap: 14px; text-align: left; }
.account-create-inline { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); text-align: left; }
.account-login { margin: 16px 0 20px; display: grid; gap: 6px; }
.account-login span { color: #68756d; font-size: .85rem; }
.account-login strong { min-width: 0; padding: 10px 14px; overflow-wrap: anywhere; color: var(--green-dark); }
.copy-value, .copy-input { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--border); border-radius: 10px; background: #f4f7f1; }
.copy-input { height: 60px; }
.copy-input input { min-width: 0; height: 58px; min-height: 58px; border: 0; background: transparent; }
.copy-button { padding: 8px 12px; flex: 0 0 auto; border: 0; border-left: 1px solid var(--border); color: var(--green-dark); background: transparent; cursor: pointer; font: inherit; font-size: .8rem; }
.copy-status { min-height: 1.2em; color: #93483f; font-size: .78rem; }
.password-input { position: relative; display: block; }
.password-input input { width: 100%; padding-right: 46px; }
.password-eye { position: absolute; top: 50%; right: 5px; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 8px; color: var(--green-dark); background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; }
.password-eye:hover, .password-eye:focus-visible { background: rgba(72,105,83,.1); }
.password-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.password-match-error:empty { display: none; }
.account-registrations { margin-top: 28px; display: grid; gap: 14px; }
.account-event { padding: 22px; }
.account-event h3 { margin-top: 0; color: var(--green-dark); }
.account-documents { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.account-profile, .passkey-settings { padding: clamp(20px, 4vw, 30px); }
.passkey-settings { margin-top: 18px; }
.passkey-settings h2 { margin: 0 0 10px; color: var(--green-dark); font-family: Georgia, serif; font-weight: 400; }
.passkey-settings > p { color: #617067; line-height: 1.55; }
.passkey-create-controls { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(240px, 1fr); align-items: end; gap: 12px; }
.passkey-list { margin-top: 20px; display: grid; gap: 10px; }
.passkey-list article { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--border); border-radius: 12px; background: #f7f8f3; }
.passkey-list article > div { min-width: 0; display: grid; gap: 5px; }
.passkey-list strong, .passkey-list span { overflow-wrap: anywhere; }
.passkey-list span, .passkey-empty { color: #718078; font-size: .82rem; }
.passkey-list form { margin: 0; flex: 0 0 auto; }
.passkey-login { margin-top: 18px; display: grid; gap: 10px; }
.passkey-login .button { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #7b867e; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: var(--border); }
.auth-divider span { flex: 0 0 auto; }

@media (max-width: 720px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .admin-nav { width: 100%; justify-content: space-between; gap: 10px; }
    .page-shell { width: min(100% - 24px, 1120px); padding-top: 30px; }
    .page-heading { align-items: flex-start; }
    .event-row { flex-direction: column; }
    .event-actions { align-items: stretch; }
    .event-actions .button, .event-actions form { flex: 1; }
    .event-actions form .button { width: 100%; }
    .form-grid, .detail-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .data-list div { grid-template-columns: 1fr; gap: 5px; }
    .documents-reviewed { align-items: flex-start; flex-direction: column; }
    .contract-event-data div { grid-template-columns: 1fr; gap: 4px; }
    .requested-data ul { columns: 1; }
    .signed-documents { grid-template-columns: 1fr; }
    .media-choice-grid { grid-template-columns: 1fr; }
    .compact-media-options { grid-template-columns: 1fr; }
    .participant-filters { align-items: stretch; flex-direction: column; }
    .participant-filters label, .participant-filters .button { width: 100%; }
    .prepayment-public dl { grid-template-columns: 1fr; }
    .registration-actions, .registration-actions .button, .account-documents .button { width: 100%; }
    .copy-value, .copy-input { width: 100%; }
    .passkey-create-controls { grid-template-columns: 1fr; }
    .passkey-create-controls .button { width: 100%; }
    .passkey-list article { align-items: stretch; flex-direction: column; }
    .passkey-list form, .passkey-list .button { width: 100%; }
    .payment-card dd { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 440px) {
    .page-heading { flex-direction: column; }
    .page-heading > .button { width: 100%; }
    .dashboard-card { align-items: flex-start; flex-direction: column; gap: 20px; }
    .telegram-check { align-items: stretch; flex-direction: column; }
    .telegram-check .button { width: 100%; }
    .welcome-logo { width: 100px; height: 100px; }
    .panel { border-radius: 16px; }
    .auth-card, .saved-card, .signed-success { padding: 22px 16px; }
    .form-section, .legal-document, .document-content, .signing-form { padding-left: 16px; padding-right: 16px; }
    .document-section > summary { padding: 17px 16px; font-size: 1.08rem; }
    .copy-button { padding-left: 9px; padding-right: 9px; font-size: .74rem; }
    #signature-canvas { height: 180px; }
}
