/*
 * Модалки сайта (auth, topup, newtask) + no-reg результат под лендингом.
 */

/* ============================================================ */
/* Каркас модалки */
/* ============================================================ */

.sc-modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: oklch(0.18 0.02 250 / 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.sc-modal-scrim[data-open="1"] { display: flex; }

.sc-modal {
    background: var(--sc-paper);
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r-xl);
    box-shadow: var(--sc-shadow-pop);
    max-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.sc-modal--sm  { max-width: 420px; }
.sc-modal--md  { max-width: 480px; }
.sc-modal--lg  { max-width: 560px; }
.sc-modal--xl  { max-width: 780px; }

.sc-modal__body { padding: 28px; overflow-y: auto; }

.sc-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.sc-modal__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.sc-modal__lead {
    margin-top: 6px;
    font-size: 14px;
    color: var(--sc-ink-3);
}
.sc-modal__close {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: var(--sc-r-sm);
    color: var(--sc-ink-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sc-modal__close:hover { background: var(--sc-paper-2); color: var(--sc-ink); }

@media (max-width: 560px) {
    .sc-modal-scrim { padding: 0; align-items: flex-end; }
    .sc-modal { max-height: 92dvh; border-radius: var(--sc-r-xl) var(--sc-r-xl) 0 0; }
    /* Bottom-sheet: нижняя кнопка («Войти»/«Запустить»/«Оплатить») прижата к
       краю экрана. На iPhone её перекрывает home-indicator — добавляем
       safe-area снизу. max() → на устройствах без выреза остаётся 20px. */
    .sc-modal__body { padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .sc-modal__title { font-size: 20px; }
}

/* ============================================================ */
/* Auth modal */
/* ============================================================ */

.sc-auth__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    border-radius: var(--sc-r);
    background: #229ED9;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.15);
    cursor: pointer;
}
.sc-auth__telegram:hover { background: #1d8ec3; }

.sc-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--sc-ink-4);
}
.sc-auth__divider::before,
.sc-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sc-line);
}

.sc-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--sc-paper-2);
    border-radius: var(--sc-r);
    margin-bottom: 16px;
}
.sc-tabs__btn {
    flex: 1;
    height: 32px;
    border-radius: var(--sc-r-sm);
    background: transparent;
    color: var(--sc-ink-3);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.sc-tabs__btn[data-active="1"] {
    background: var(--sc-paper);
    color: var(--sc-ink);
    box-shadow: var(--sc-shadow-inset);
}

.sc-auth__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sc-auth__terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--sc-ink-3);
    padding-top: 4px;
}
.sc-auth__terms input { margin-top: 2px; accent-color: var(--sc-accent); }
.sc-auth__terms a { color: var(--sc-accent-ink); text-decoration: underline; }

/* Контейнер капчи Turnstile в форме регистрации */
.sc-auth__captcha { display: flex; justify-content: center; min-height: 65px; }

.sc-auth__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    padding-top: 4px;
    color: var(--sc-ink-3);
}
.sc-auth__bottom a { cursor: pointer; }
.sc-auth__bottom a:hover { text-decoration: underline; }
.sc-auth__bottom .sc-link-accent { color: var(--sc-accent-ink); }
.sc-auth__bottom--center { justify-content: center; text-align: center; }

/*
 * Переключение экранов внутри auth-модалки.
 * data-sc-auth-screen — список режимов (через пробел), в которых элемент виден.
 * Если в списке есть текущий data-mode модалки — элемент показан, иначе скрыт.
 *
 * Реализация: всё, что имеет [data-sc-auth-screen], сначала скрыто;
 * каждый JS-овый switchAuthMode проставляет/сбрасывает атрибут data-visible.
 */
[data-sc-modal="auth"] [data-sc-auth-screen] { display: none; }
[data-sc-modal="auth"] [data-sc-auth-screen][data-visible="1"] { display: block; }
[data-sc-modal="auth"] button[data-sc-auth-screen][data-visible="1"]  { display: inline-flex; }
[data-sc-modal="auth"] label[data-sc-auth-screen][data-visible="1"]   { display: flex; }
[data-sc-modal="auth"] .sc-auth__bottom[data-sc-auth-screen][data-visible="1"] { display: flex; }

/* Поле формы: лейбл + поле + место под ошибку */
.sc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-field__error {
    font-size: 12px;
    color: var(--sc-red);
    min-height: 0;
    line-height: 1.3;
}
.sc-field__error:empty { display: none; }
.sc-field[data-invalid="1"] .sc-input { border-color: var(--sc-red); }

/* Поле ввода 6-значного кода */
.sc-input--code {
    text-align: center;
    font-family: var(--sc-font-mono);
    font-size: 24px;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

/* Общий баннер ошибки наверху */
.sc-auth__alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: var(--sc-r);
    background: var(--sc-red-soft);
    color: var(--sc-red-ink);
    font-size: 13px;
    line-height: 1.4;
}

/* Состояние loading на кнопке submit */
[data-sc-auth-submit][data-loading="1"] {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
[data-sc-auth-submit][data-loading="1"]::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sc-spin 0.7s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* TG QR-блок */
.sc-auth__tg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 8px 0 16px;
}
.sc-auth__tg-qr {
    width: 220px;
    height: 220px;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r-lg);
    background: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-auth__tg-qr img {
    width: 100%;
    height: 100%;
    display: block;
}
.sc-auth__tg-qr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sc-line-2);
    border-right-color: var(--sc-accent);
    border-radius: 50%;
    animation: sc-spin 0.7s linear infinite;
}
.sc-auth__tg-status {
    font-size: 13px;
    color: var(--sc-ink-3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-auth__tg-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sc-accent);
    animation: sc-pulse 1.4s ease-in-out infinite;
}
@keyframes sc-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}
.sc-auth__tg-status[data-state="error"]::before { background: var(--sc-red);   animation: none; }
.sc-auth__tg-status[data-state="ok"]::before    { background: var(--sc-green); animation: none; }

/* ============================================================ */
/* Topup modal */
/* ============================================================ */

.sc-topup__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
    min-height: 96px;
}
.sc-topup__loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--sc-ink-3);
    font-size: 13px;
    padding: 28px 0;
}
.sc-topup__tariff {
    position: relative;
    padding: 16px;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r-lg);
    background: var(--sc-paper);
    cursor: pointer;
    /* Анимируем только краску (цвет/фон/тень), НЕ геометрию. Раньше при выборе
       менялись border-width (1→2px) и padding (16→15px), а transition:all
       анимировал box-model каждый кадр → карточка дёргалась. Теперь «толстая»
       рамка выбранного — через inset box-shadow, размер карточки постоянный. */
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.sc-topup__tariff:hover { border-color: var(--sc-ink-4); }
.sc-topup__tariff[data-selected="1"] {
    border-color: var(--sc-accent);
    background: var(--sc-accent-soft);
    box-shadow: inset 0 0 0 1px var(--sc-accent);
}
.sc-topup__tariff[data-rec="1"]:not([data-selected="1"]) {
    border-color: var(--sc-accent);
}
.sc-topup__tariff-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--sc-accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}
.sc-topup__tariff-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--sc-accent);
    display: none;
}
.sc-topup__tariff[data-selected="1"] .sc-topup__tariff-check { display: inline-flex; }
.sc-topup__tariff-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--sc-ink-2);
    margin-bottom: 6px;
}
.sc-topup__tariff[data-selected="1"] .sc-topup__tariff-label { color: var(--sc-accent-ink); }
.sc-topup__tariff-amount {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.sc-topup__tariff-cur {
    font-size: 12px;
    color: var(--sc-ink-3);
    margin-left: 4px;
}
.sc-topup__tariff-per {
    margin-top: 2px;
    font-size: 11px;
    font-family: var(--sc-font-mono);
    color: var(--sc-ink-4);
}

.sc-topup__summary {
    background: var(--sc-paper-2);
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r-lg);
    padding: 20px;
}
.sc-topup__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.sc-topup__summary-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: var(--sc-ink-4);
    margin-bottom: 4px;
}
.sc-topup__summary-amount {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.sc-topup__summary-for {
    margin-left: 8px;
    font-size: 14px;
    color: var(--sc-ink-3);
}
.sc-topup__paymethod {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--sc-paper);
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r);
}
.sc-topup__paymethod-mark {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sc-ink);
    color: var(--sc-paper);
    font-family: var(--sc-font-mono);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: -0.02em;
}
.sc-topup__paymethod-name { font-size: 12px; font-weight: 500; }
.sc-topup__paymethod-sub { font-size: 10px; color: var(--sc-ink-4); margin-top: 1px; }
.sc-topup__safety {
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--sc-ink-4);
}

@media (max-width: 700px) { .sc-topup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Topup summary на узких — суммa и paymethod уезжают в столбик, иначе
   "RedMig Pay / СБП, карта" слипается со «К оплате — XX ₽ за …». */
@media (max-width: 560px) {
    .sc-topup__summary { padding: 16px; }
    .sc-topup__summary-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }
    .sc-topup__paymethod { align-self: flex-start; }
    .sc-topup__grid { margin: 18px 0; gap: 8px; }
    .sc-topup__tariff { padding: 12px; }
    .sc-topup__tariff-amount { font-size: 19px; }
}

/* ============================================================ */
/* New-task modal */
/* ============================================================ */

.sc-dropzone {
    display: block;
    border: 1.5px dashed var(--sc-line-2);
    border-radius: var(--sc-r-lg);
    background: var(--sc-paper-2);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}
.sc-dropzone:hover,
.sc-dropzone[data-drag="1"] {
    border-color: var(--sc-accent);
    background: var(--sc-accent-soft);
}
.sc-dropzone__head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--sc-ink);
}
/* display:inline-flex выше перебивает стандартный hidden=display:none,
   из-за чего zone-idle и zone-picked показывались одновременно (после reset
   модалки оставался старый файл в picked-зоне). Возвращаем приоритет. */
.sc-dropzone__head[hidden] { display: none; }
.sc-dropzone__head svg { color: var(--sc-accent); }
.sc-dropzone__hint { font-size: 12px; color: var(--sc-ink-4); }
.sc-dropzone__url { margin-top: 14px; }
.sc-dropzone__reset {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: transparent;
    color: var(--sc-ink-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}
.sc-dropzone__reset:hover { background: var(--sc-line); color: var(--sc-ink); }

/* Премиум-тест: чекбокс над прогресс-баром в newtask-модалке.
   Показывается из modals.js только если у юзера paid_balance > 0. */
.sc-newtask__premium {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r);
    background: var(--sc-paper);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.sc-newtask__premium[hidden] { display: none; }
.sc-newtask__premium:hover { border-color: var(--sc-accent); }
.sc-newtask__premium:has(input:checked) {
    border-color: var(--sc-accent);
    background: var(--sc-accent-soft);
}
.sc-newtask__premium input {
    margin: 3px 0 0 0;
    flex-shrink: 0;
    accent-color: var(--sc-accent);
}
.sc-newtask__premium-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.sc-newtask__premium-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--sc-ink);
}
.sc-newtask__premium-title svg { color: var(--sc-accent); }
.sc-newtask__premium-pill {
    margin-left: 4px;
    font-size: 11px;
}
.sc-newtask__premium-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--sc-ink-2);
}

.sc-newtask__progress {
    margin-bottom: 20px;
}
.sc-newtask__progress-label {
    font-size: 12px;
    color: var(--sc-ink-3);
    margin-bottom: 6px;
}
.sc-newtask__progress-bar {
    height: 6px;
    background: var(--sc-paper-3);
    border-radius: 999px;
    overflow: hidden;
}
.sc-newtask__progress-bar > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--sc-accent);
    border-radius: 999px;
    transition: width 0.15s linear;
}

/* uploading: блокируем dropzone и инпуты */
.sc-modal[data-state="uploading"] .sc-dropzone,
.sc-modal[data-state="uploading"] [data-sc-newtask-url],
.sc-modal[data-state="uploading"] [data-sc-newtask-submit] {
    pointer-events: none;
    opacity: 0.55;
}

/* choice screen: показывается после upload, до confirm.
   В этом состоянии dropzone и URL уходят, видны только две карточки выбора. */
.sc-modal[data-state="choice"] .sc-dropzone,
.sc-modal[data-state="choice"] [data-sc-newtask-zone],
.sc-modal[data-state="choice"] .sc-newtask__src-tabs,
.sc-modal[data-state="choice"] .sc-newtask__progress {
    display: none;
}

/* Source-tabs (Файл / Ссылка) — компактный сегментированный переключатель
   в шапке newtask-модалки. Активная вкладка подсвечивается. */
.sc-newtask__src-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--sc-paper-2);
    border-radius: var(--sc-r);
    margin-bottom: 14px;
}
.sc-newtask__src-tabs .sc-tabs__btn {
    flex: 1;
    justify-content: center;
    background: transparent;
    color: var(--sc-ink-2);
    border: 0;
    padding: 9px 12px;
    border-radius: calc(var(--sc-r) - 2px);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.12s, color 0.12s;
}
.sc-newtask__src-tabs .sc-tabs__btn:hover { color: var(--sc-ink); }
.sc-newtask__src-tabs .sc-tabs__btn[data-active="1"] {
    background: var(--sc-paper);
    color: var(--sc-ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* URL-зона: визуально симметрична dropzone — рамка + те же отступы. */
.sc-newtask__url-label {
    display: block;
    border: 1px dashed var(--sc-line-2);
    border-radius: var(--sc-r);
    padding: 22px 20px;
    background: var(--sc-paper);
}
.sc-newtask__url-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--sc-ink);
    margin-bottom: 12px;
}
.sc-newtask__url-label .sc-input { width: 100%; }
.sc-newtask__url-label .sc-dropzone__hint { margin-top: 10px; }
.sc-newtask__choice {
    margin: 0 0 16px;
}
.sc-newtask__choice-head {
    font-size: 13px;
    color: var(--sc-ink-2);
    margin: 4px 4px 12px;
}
.sc-model-pick {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-r);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.sc-model-pick:hover { border-color: var(--sc-line-2); }
.sc-model-pick input[type="radio"] {
    margin: 4px 0 0;
    accent-color: var(--sc-accent);
}
.sc-model-pick:has(input:checked) {
    border-color: var(--sc-accent);
    background: var(--sc-accent-soft);
}
.sc-model-pick[data-disabled="1"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.sc-model-pick__body { flex: 1; min-width: 0; }
.sc-model-pick__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--sc-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.sc-model-pick__text {
    font-size: 12.5px;
    color: var(--sc-ink-3);
    line-height: 1.45;
}

.sc-newtask__opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.sc-newtask__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: var(--sc-ink-4);
    margin-bottom: 8px;
}

.sc-newtask__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--sc-line-2);
    border-radius: var(--sc-r);
    cursor: pointer;
    background: var(--sc-paper);
}
.sc-newtask__toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: var(--sc-line-2);
    position: relative;
    transition: background 0.16s;
    flex-shrink: 0;
}
.sc-newtask__toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.16s;
}
.sc-newtask__toggle[data-on="1"] .sc-newtask__toggle-track { background: var(--sc-accent); }
.sc-newtask__toggle[data-on="1"] .sc-newtask__toggle-track::after { left: 18px; }

.sc-newtask__preview {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: var(--sc-r-lg);
    background: var(--sc-accent-soft);
    color: var(--sc-ink);
}
.sc-newtask__preview-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    color: var(--sc-accent-ink);
    margin-bottom: 6px;
}
.sc-newtask__preview-line { font-size: 14px; margin-bottom: 4px; }
.sc-newtask__preview-meta { font-size: 12px; font-family: var(--sc-font-mono); color: var(--sc-ink-2); }

.sc-newtask__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 560px) {
    .sc-newtask__opts { grid-template-columns: 1fr; }

    /* Source-tabs — иконка + текст не помещаются вместе на 360px,
       уменьшаем gap и padding, текст оставляем. */
    .sc-newtask__src-tabs .sc-tabs__btn { padding: 8px 8px; font-size: 13px; gap: 6px; }

    /* Dropzone компактнее. */
    .sc-dropzone { padding: 16px 14px; }
    .sc-newtask__url-label { padding: 16px 14px; }

    /* Actions: «Отмена» + «Запустить» на всю ширину в столбик,
       primary сверху чтобы был thumb-reach. */
    .sc-newtask__actions { flex-direction: column-reverse; gap: 8px; }
    .sc-newtask__actions .sc-btn { width: 100%; }

    /* Premium-test чекбокс — gap и шрифт чуть меньше. */
    .sc-newtask__premium { padding: 10px 12px; }
    .sc-newtask__premium-title { font-size: 13.5px; }
}

/* ============================================================ */
/* No-reg result section (под лендингом) */
/* ============================================================ */

.sc-noreg {
    padding: 64px 32px;
    background: var(--sc-paper-2);
    border-top: 1px solid var(--sc-line);
}
.sc-noreg__inner {
    max-width: var(--sc-container);
    margin: 0 auto;
}
.sc-noreg__pill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--sc-ink-3);
}
.sc-noreg__title {
    font-size: 30px;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}
.sc-noreg__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.sc-noreg__meta-card { padding: 20px; }
.sc-noreg__meta-label { font-size: 12px; color: var(--sc-ink-4); }
.sc-noreg__meta-value {
    font-size: 20px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-noreg__meta-value .sc-mono { font-size: 22px; }

.sc-noreg__body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.sc-noreg__transcript {
    grid-column: span 2;
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.sc-noreg__locked {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 90%);
            mask-image: linear-gradient(to bottom, black 0%, black 30%, transparent 90%);
}
.sc-noreg__cta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, var(--sc-paper) 50%);
}
.sc-noreg__cta-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 12px 0 6px;
    text-wrap: balance;
}
.sc-noreg__cta-text {
    font-size: 12px;
    color: var(--sc-ink-3);
    margin-bottom: 16px;
}
.sc-noreg__cta-row { display: flex; gap: 8px; }

@media (max-width: 900px) {
    .sc-noreg__meta { grid-template-columns: 1fr; }
    .sc-noreg__body { grid-template-columns: 1fr; }
    .sc-noreg__transcript { grid-column: span 1; }
}

@media (max-width: 760px) {
    .sc-noreg { padding: 48px 16px; }
    .sc-noreg__title { font-size: 24px; margin-bottom: 20px; }
    .sc-noreg__transcript { padding: 18px; min-height: 320px; }
    .sc-noreg__pill-row { flex-wrap: wrap; }
}
