        .dash-card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
        .dash-card.home-date { padding: 10px 14px; }
        .dash-card > .subhead:first-child { margin-top: 0; margin-bottom: 8px; padding-bottom: 6px; }
        .home-date-line { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.2px; line-height: 1.3; }
        .home-plan-line { font-size: 13px; color: var(--text-sub); margin-top: 4px; line-height: 1.3; }
        .home-hero { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.3; letter-spacing: -0.3px; }
        .home-hero-sub { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
        .home-week-row { font-size: 14px; color: #fff; padding: 5px 0; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 8px; }
        .home-week-row:last-child { border-bottom: none; font-weight: 600; }
        .home-week-row span:last-child { color: var(--brand-green); }
        .home-news { font-size: 14px; color: #fff; line-height: 1.4; }
        .home-news-title { display: block; font-weight: 700; margin-bottom: 6px; }
        .home-news + .home-news { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
        .home-msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .home-msg-actions.is-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
        .home-msg-actions.is-row .home-msg-btn { width: 100%; box-sizing: border-box; padding: 8px 4px; font-size: 11px; line-height: 1.2; text-align: center; white-space: normal; }
        /* то же для двух и одной кнопки: 2 или 1 колонка на всю ширину, воздух тот же */
        .home-msg-actions.is-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
        .home-msg-actions.is-one { display: grid; grid-template-columns: 1fr; gap: 6px; }
        .home-msg-actions.is-two .home-msg-btn, .home-msg-actions.is-one .home-msg-btn { width: 100%; box-sizing: border-box; padding: 8px 4px; font-size: 13px; line-height: 1.2; text-align: center; white-space: normal; }
        .home-msg-btn { font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 10px; cursor: pointer; border: 1px solid var(--border-soft); background: var(--surface-field); color: #fff; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
        .home-msg-btn.primary { background: #2F5644; border: 1px solid #8fa89b; color: #E8F0EB; }
        .home-msg-btn.ghost { color: var(--text-sub); }
        .intake-q { font-size: 14px; font-weight: 600; color: #fff; margin-top: 10px; }
        .intake-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
        .home-glasses { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
        .home-glass { width: 22px; height: 26px; display: block; flex: 0 0 auto; cursor: pointer; padding: 9px 3px; box-sizing: content-box; }
        .home-glass .glass-water { fill: none; }
        .home-glass.filled .glass-water { fill: #5ec8c8; }
        .home-glass .glass-rim { fill: none; stroke: #d8efe4; stroke-width: 2.4; stroke-linejoin: round; }
        .home-glass.bonus .glass-rim { stroke: var(--brand-green); }
        .home-glass .glass-shine { fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 1.6; stroke-linecap: round; }
        .home-train { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; font-weight: 500; letter-spacing: -0.1px; color: var(--text-sub); cursor: pointer; user-select: none; white-space: nowrap; line-height: 1; }
        .home-train input {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            margin: 0;
            flex: 0 0 auto;
            box-sizing: border-box;
            border: none;
            border-radius: 4px;
            background: #fff;
        }
        .home-train input:checked {
            background-color: var(--brand-green);
            border: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230c1c14' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4 L6.6 11.6 L12.8 4.4'/%3E%3C/svg%3E");
            background-size: 11px 11px;
            background-position: center;
            background-repeat: no-repeat;
        }
        .home-train input:disabled { opacity: 1; }
        .tag-pill { display: block; width: fit-content; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; background: rgba(46, 204, 113, 0.1); color: var(--brand-green); border: 1px solid rgba(46, 204, 113, 0.3); margin-bottom: 6px; line-height: 1.2; }       

        body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 16px 16px calc(90px + max(env(safe-area-inset-bottom, 0px), var(--sa-bottom, 0px))) 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
        .container { max-width: 800px; margin: 0 auto; }

        .subtitle { font-size: 13px; color: var(--text-sub); }

        .section-header { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; margin-bottom: 10px; }
        #questionnaireForm > .card:first-of-type { margin-top: 0; }
        .section-header.photo-section-head { flex-wrap: wrap; row-gap: 2px; }

        #nowPhotosBlock,
        #startPhotosBlock { scroll-margin-top: 90px; }
        .photo-loaded { font-size: 14px; font-weight: 500; color: var(--text-sub); letter-spacing: -0.1px; }
        .section-title { font-size: 18px; font-weight: 600; color: #ffffff; letter-spacing: -0.3px; }
        .page-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin: 2px 0 8px; }
        .dash-card.home-date .page-title { margin: 0; line-height: 1.2; }

        .card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
        .field-label { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #ffffff; display: block; letter-spacing: -0.2px; }
        .question-label { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #ffffff; display: block; letter-spacing: -0.2px; }
        .subhead {
            margin-top: 20px;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-soft);
            font-size: 17px;
        }
        .card > .subhead:first-child { margin-top: 0; }
        /* стена карточки даёт нижний воздух — у последнего ребёнка
           собственный margin-bottom не нужен (двойной отступ) */
        .card > :last-child { margin-bottom: 0; }
        #sleepNotesWrap .input-text { margin-bottom: 0; }
        .home-achieve-head { font-size: 20px; }
        .dash-card > .home-water-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: nowrap;
        }
        .dash-card > .home-water-head > span { flex: 0 0 auto; white-space: nowrap; }
        .home-train-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
        .home-train-sep { width: 1px; height: 14px; background: var(--border-soft); flex: 0 0 auto; }
        .home-read-btn {
            font-family: inherit;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: -0.1px;
            line-height: 1;
            padding: 3px 8px;
            border-radius: 8px;
            color: var(--text-sub);
            background: transparent;
            border: 1px solid var(--text-sub);
            cursor: pointer;
            white-space: nowrap;
            -webkit-appearance: none;
            appearance: none;
        }
        #homeNewsCard {
            padding: 12px 12px 12px 14px;
        }
        #homeNewsCard > .home-news-head {
            margin-top: 0;
            margin-bottom: 8px;
            padding-bottom: 12px;
            line-height: 1;
        }
        #homeNewsCard .home-train-wrap {
            gap: 12px;
        }
        #homeNewsCard.is-read > .home-news-head {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        #homeNewsCard.is-read #homeNewsBody { display: none; }
        #homeNewsCard.is-read .home-read-btn {
            color: #0c1c14;
            background: var(--text-sub);
            border-color: var(--text-sub);
        }

        .input-desired {
            border-color: rgba(46, 204, 113, 0.55);
            color: var(--brand-green);
            font-size: 20px;
            font-weight: 700;
        }
        .desired-lock-hint { display: none; font-size: 11px; color: var(--text-sub); margin-top: 6px; }
        #desiredWeightWrap.is-locked .desired-lock-hint { display: block; }
        #desiredWeightWrap.is-locked .input-desired { opacity: 0.7; }

        .photo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 15px; }
        .photo-cell { min-width: 0; }
        .photo-slot { background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer; min-height: 132px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
        .photo-slot img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
        .photo-slot img.guide { max-height: 118px; max-width: 88%; width: auto; height: auto; object-fit: contain; pointer-events: none; position: relative; z-index: 1; }
        .photo-slot.has-file img.guide { display: none; }
        .photo-caption { display: block; font-size: 11px; font-weight: 600; color: #fff; text-align: center; margin-top: 6px; }
        .photo-benefits { margin: 8px 0 0; padding: 0; list-style: none; }
        .photo-benefits li { font-size: 13px; color: var(--text-sub); line-height: 1.45; padding: 6px 0 6px 18px; position: relative; }
        .photo-benefits li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-green); }
        .photo-copy { font-size: 14px; color: var(--text-sub); line-height: 1.45; margin: 0 0 10px; }
        .photo-copy.optional { font-size: 13px; }
        /* базовая .photo-fold-head — в chrome.css (общая на клиенте) */
        .card > .photo-fold-head:first-child { margin-top: 0; }
        /* эталон ~15px: карточка со свёрткой первой — голова почти у верхней
           кромки; у фото-карточек низ компактнее */
        #startPhotosCard { padding-top: 8px; }
        #startPhotosCard, #nowPhotosCard, #comparePhotosCard { padding-bottom: 16px; }
        /* тело — плавный спойлер sb-fold (chrome.css) */
        .photo-fold-body { --sb-fold-max: 800px; --sb-fold-mt: 10px; }
        /* свёртки «Инструкция»/«Зачем нужны» работают всегда —
           замок «только после загрузки фото» снят (решение основателя) */
        #startTapHint { display: none; }
        #startPhotosCard.photos-ready #startTapHint { display: block; }
        .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
        .compare-grid .photo-grid { margin-top: 0; }
        .compare-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; background: var(--surface-field); cursor: pointer; }
        .compare-grid .photo-slot.compare-empty { width: 100%; height: 110px; min-height: 0; padding: 0; border-radius: 8px; display: block; }

        .pp-sleep-group { background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; margin-top: 12px; }
        .pp-sleep-group .field-label { margin-left: 0; margin-right: 0; }
        .pp-sleep-group .freq-dropdown,
        .pp-sleep-group .freq-chosen,
        .pp-sleep-group .freq-list,
        .pp-sleep-group .input-text { width: 100%; box-sizing: border-box; }
        .pp-sleep-group .input-text { padding: 11px 14px; margin-bottom: 0; }

        .item-container.freq-group { background: #111d18; border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; box-sizing: border-box; }
        .item-container.freq-group .option-card { background: transparent; border: none; padding: 0 0 10px; }
        .item-container.freq-group .freq-dropdown { margin-top: 0; }
        .compare-hint { font-size: 12px; color: var(--text-sub); text-align: center; margin: 10px 0 0; }
        .compare-viewer { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(13, 22, 18, 0.6); align-items: center; justify-content: center; flex-direction: column; gap: 10px; padding: 16px; box-sizing: border-box; backdrop-filter: blur(4px); touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
        .compare-viewer.is-on { display: flex; }
        .compare-viewer-cap { flex: 0 0 56px; width: 240px; max-width: 90vw; height: 56px; box-sizing: border-box; padding: 8px 16px; border-radius: 12px; background: #2F5644; border: 1.5px solid #7fce9a; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; line-height: 1.25; white-space: nowrap; pointer-events: none; }
        .compare-viewer-cap .meal { font-size: 15px; text-transform: uppercase; color: inherit; font-weight: 700; }
        .compare-viewer-cap .when { font-size: 13px; color: inherit; font-weight: 600; }
        .compare-viewer-stage { flex: 0 1 auto; min-height: 0; max-width: 100%; display: flex; align-items: center; justify-content: center; }
        .compare-viewer-stage img { max-width: 90vw; max-height: calc(90vh - 68px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); touch-action: none; -webkit-user-drag: none; }

        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 12px;
            row-gap: 14px;
            align-items: start;
        }
        .metrics-grid-1col { grid-template-columns: 1fr; }
        .metric-field {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .metric-label {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            margin-bottom: 6px;
        }
        .metric-label:has(.metric-hint) {
            min-height: 38px;
        }
        .metric-name {
            font-size: 15px;
            font-weight: 600;
            color: #ffffff;
            line-height: 1.25;
            letter-spacing: -0.2px;
        }
        .metric-hint {
            font-size: 11px;
            color: var(--text-sub);
            line-height: 1.25;
            margin-top: 1px;
        }
        .metric-field .input-text {
            margin-bottom: 0;
        }

        .input-text, .select-box, textarea {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            background: var(--surface-field);
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            padding: 12px;
            color: #ffffff;
            font-size: 16px;
            box-sizing: border-box;
            margin-bottom: 8px;
            font-family: inherit;
            display: block;
        }
        input.input-text { height: 40px; padding: 0 12px; line-height: 38px; }
        .input-text::placeholder, textarea::placeholder { color: #5a7a68; }
        
        .grid-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
        .option-card { background: #111d18; border: 1px solid var(--border-soft); border-radius: 8px; padding: 14px 12px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; transition: all 0.2s; line-height: 1.4; color: #fff; margin-bottom: 0; }
        .option-card:hover { border-color: var(--brand-green); }
        .option-card input[type="checkbox"] { margin-top: 2px; accent-color: var(--brand-green); flex-shrink: 0; width: 16px; height: 16px; }
        
        .item-container { margin-bottom: 10px; }
        .freq-dropdown { display: none; margin-top: 8px; }
        /* список частоты — плавный спойлер sb-fold (chrome.css) */
        .freq-list { --sb-fold-max: 340px; --sb-fold-mt: 6px; background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 8px; overflow: hidden; }
        .freq-line { display: block; width: 100%; box-sizing: border-box; margin: 0; background: transparent; border: none; border-bottom: 1px solid var(--border-soft); color: #fff; font-size: 16px; font-family: inherit; font-weight: 400; text-align: left; padding: 9px 14px; cursor: pointer; line-height: 1.25; }
        .freq-line:last-child { border-bottom: none; }
        .freq-line.is-on { color: var(--brand-green); }
        .freq-chosen { display: none; width: 100%; box-sizing: border-box; background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 8px; color: var(--text-sub); font-size: 14px; font-family: inherit; font-weight: 500; text-align: left; padding: 10px 14px; cursor: pointer; line-height: 1.25; min-height: 40px; align-items: center; }
        .freq-dropdown.is-picked:not(.is-open) .freq-chosen { display: flex; }

        .sub-group-hidden { display: none; margin-top: 4px; margin-bottom: 10px; padding: 12px; background: #111d18; border-radius: 8px; border: 1px solid var(--border-soft); }
        #pp_sleep_details { padding: 0; }
        #pp_sleep_details .field-label { margin-bottom: 8px; }
        #ppSleepDrop { display: block; margin-top: 0; }
        .tag-female { background: rgba(232, 67, 147, 0.2); color: var(--tag-female); padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; margin-left: 6px; }

        .consent-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; background: #111d18; border-radius: 12px; border: 1px solid var(--border-soft); font-size: 12px; color: var(--text-sub); line-height: 1.5; }
        .consent-box input { accent-color: var(--brand-green); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
        
        .btn-submit { background: #2F5644; color: #E8F0EB; border: 1px solid #8fa89b; padding: 16px; font-weight: bold; border-radius: 12px; cursor: pointer; font-size: 15px; width: 100%; margin-top: 16px; box-sizing: border-box; }
        .locked-form .option-card:not(:has(input:checked)) { display: none; }
        .locked-form .option-card { pointer-events: none; cursor: default; }
        .locked-form input.input-text,
        .locked-form textarea.input-text,
        .locked-form input[type="number"],
        .locked-form input[type="tel"],
        .locked-form input[type="date"],
        .locked-form input[type="time"] { pointer-events: none; }
        .locked-form .freq-list { display: none !important; }
        .locked-form .freq-chosen { pointer-events: none; }
        .locked-form .item-container:not(:has(input:checked)) { display: none; }

        .locked-form .section-header { margin-top: 16px; }
        .locked-form .card:not(#startPhotosCard):not(#nowPhotosCard):not(#comparePhotosCard) { padding: 12px 20px; }
        .locked-form .subhead { margin-top: 14px; margin-bottom: 10px; padding-bottom: 6px; }
        .locked-form .field-label:not(.subhead) { margin-bottom: 2px; }
        .locked-form label.field-label[style*="margin-top"] { margin-top: 10px !important; }
        .locked-form .grid-cards { gap: 0; margin-bottom: 0; }
        .locked-form .item-container { margin-bottom: 0; }
        .locked-form .item-container.freq-group { margin-bottom: 10px; }
        .locked-form .item-container.freq-group:last-child { margin-bottom: 0; }
        .locked-form .item-container.freq-group .option-card { padding: 0; align-items: center; }
        .locked-form .metrics-grid { row-gap: 14px; }
        .locked-form .metric-label { margin-bottom: 6px; }
        .locked-form .metrics-grid > .metric-field:nth-child(2n) { align-items: flex-end; text-align: right; }
        .locked-form .metrics-grid > .metric-field:nth-child(2n) input {
            text-align: right;
            width: auto;
            margin-left: auto;
        }
        .locked-form #profileMetricsCard .metrics-grid > .metric-field:nth-child(2n) {
            align-items: stretch;
            text-align: left;
        }
        .locked-form #profileMetricsCard .metrics-grid > .metric-field:nth-child(2n) input {
            text-align: left;
            width: 100%;
            margin-left: 0;
        }
        .locked-form #cycleDurationField { align-items: stretch; text-align: left; }
        .locked-form #cycleDurationField input { text-align: left; width: 100%; margin-left: 0; }
        .locked-form .profile-kv {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-soft);
        }
        .locked-form .profile-kv:first-child { padding-top: 0; }
        .locked-form .profile-kv > .field-label,
        .locked-form .profile-kv > .subhead {
            margin: 0 !important;
            padding: 0;
            border: none;
            flex: 0 1 auto;
        }
        .locked-form .profile-kv > .input-text {
            width: auto;
            flex: 1 1 auto;
            min-width: 0;
            text-align: right;
            padding: 0;
        }
        .locked-form .profile-kv > .grid-cards {
            margin: 0;
            display: flex;
            justify-content: flex-end;
            flex: 1 1 auto;
        }
        .locked-form .profile-kv .option-card { padding: 0; font-size: 16px; }
        .locked-form #profileIdMetrics {
            display: block;
            margin-top: 0 !important;
        }
        .locked-form #profileIdMetrics > .metric-field,
        .locked-form #profileIdMetrics > .metric-field:nth-child(2n) {
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            text-align: left;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-soft);
        }
        .locked-form #profileIdMetrics > #desiredWeightWrap { flex-wrap: wrap; row-gap: 3px; }
        .locked-form #profileIdMetrics .desired-lock-hint {
            flex: 0 0 100%;
            margin-top: 2px;
            text-align: left;
        }
        .locked-form #profileIdMetrics > .metric-field .metric-label {
            margin: 0;
            align-items: flex-start;
        }
        .locked-form #profileIdMetrics > .metric-field input {
            width: 96px;
            flex-shrink: 0;
            margin-left: auto;
            text-align: right;
        }
        .locked-form .option-card {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 8px 0;
            gap: 0;
        }
        .locked-form .option-card input[type="checkbox"] { display: none; }
        .locked-form .input-text,
        .locked-form textarea.input-text,
        .locked-form input[type="number"],
        .locked-form input[type="tel"],
        .locked-form input[type="date"],
        .locked-form input[type="time"] {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0 0 2px;
            margin-bottom: 0;
            min-height: 0;
            height: auto;
            box-shadow: none;
            -webkit-appearance: none;
            appearance: none;
        }
        .locked-form input[type="number"]::-webkit-outer-spin-button,
        .locked-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .locked-form input[type="time"]::-webkit-calendar-picker-indicator,
        .locked-form input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
        .locked-form .sub-group-hidden,
        .locked-form #pp_sleep_details {
            background: transparent;
            border: none;
            padding: 0;
            margin: 0;
        }
        .locked-form .pp-sleep-group { background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; margin-top: 12px; }
        .locked-form #pp_sleep_details.view-sleep-empty { display: none !important; }
        .locked-form .item-container.view-freq,
        .locked-form .option-card.view-freq-card {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .locked-form .item-container.view-freq .option-card,
        .locked-form .option-card.view-freq-card > span {
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
        }
        .locked-form .item-container.view-freq .freq-dropdown,
        .locked-form .option-card.view-freq-card .freq-dropdown { margin-top: 0; flex: 0 0 auto; }
        .locked-form .freq-chosen {
            width: auto;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0 0 0 8px;
            white-space: nowrap;
        }
        .locked-form .view-freq .freq-chosen,
        .locked-form .view-freq-card .freq-chosen { position: relative; }
        .locked-form .view-freq .freq-chosen::before,
        .locked-form .view-freq-card .freq-chosen::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            width: 1px;
            height: 14px;
            margin-top: -7px;
            background: var(--border-soft);
        }
        

        
        .status-banner { position: fixed; top: calc(72px + max(env(safe-area-inset-top, 0px), var(--sa-top, 0px))); left: 16px; right: 16px; background: rgba(46, 204, 113, 0.15); border: 1px solid rgba(46, 204, 113, 0.3); backdrop-filter: blur(8px); border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 13px; color: #fff; z-index: 90; display: none; }
        .status-banner.active { display: block; }
        
        body { padding-top: calc(72px + max(env(safe-area-inset-top, 0px), var(--sa-top, 0px))); }
        body:has(#waitingBanner.active) { padding-top: calc(136px + max(env(safe-area-inset-top, 0px), var(--sa-top, 0px))); }
        #questionnaireForm { display: none; }


/* окошко ближайших визитов на карточке беременности */
.home-visits {
    max-height: 118px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-soft); border-radius: 10px;
    padding: 8px 10px; margin-bottom: 10px; background: var(--surface-field);
}
.home-visits-row {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 13px; line-height: 1.7;
}
.home-visits-row b { font-weight: 600; color: var(--text-main); white-space: nowrap; }
.home-visits-row span { color: var(--text-sub); text-align: right; min-width: 0; }
.home-visits-empty { font-size: 12px; color: var(--text-sub); }


/* модалка «анкета отправлена» — свой стиль вместо системного alert */
.reg-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6,10,8,.62); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 26px;
}
.reg-modal-card {
    background: var(--surface-card); border: 1px solid var(--border-soft);
    border-radius: 18px; padding: 30px 22px 20px; text-align: center;
    width: 100%; max-width: 340px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.reg-modal-title { font-size: 19px; font-weight: 600; color: var(--text-main); margin-bottom: 12px; letter-spacing: .01em; }
.reg-modal-body { font-size: 14px; line-height: 1.55; color: var(--text-sub); }
.reg-modal-foot { font-size: 13px; color: var(--text-sub); opacity: .75; margin: 14px 0 20px; letter-spacing: .02em; }
.reg-modal-btn {
    width: 100%; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 600;
    border: 1px solid var(--border-soft); background: var(--surface-field); color: var(--text-main); cursor: pointer;
}
