@import url("../modules/auth-error-modal.css");
@import url("../modules/auth-nav.css");
@import url("../modules/spaced-password-input.css");
@import url("../modules/spaced-email-input.css");

body.reg-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

body.reg-body .site-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.reg-page {
    --reg-gutter: clamp(16px, 4vw, 28px);
    --reg-section-gap: clamp(20px, 4.5vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 基准 500×700：宽度随窗口等比缩小，高度随内容展开（无内滚条） */
    --reg-panel-base-w: 500px;
    --reg-panel-base-h: 700px;
    --reg-panel-min-w: 280px;
    --reg-panel-available-w: calc(100vw - 2 * var(--reg-gutter));
    --reg-panel-width: clamp(
        var(--reg-panel-min-w),
        min(var(--reg-panel-base-w), var(--reg-panel-available-w)),
        var(--reg-panel-base-w)
    );
    --reg-panel-min-height: clamp(
        calc(var(--reg-panel-min-w) * 7 / 5),
        calc(var(--reg-panel-width) * 7 / 5),
        var(--reg-panel-base-h)
    );
    /* 双栏桌面：左侧栏宽 / 终端显示宽（24 寸左栏可扩至 500px，终端仍 450px） */
    --reg-copy-max: 450px;
    --reg-copy-slot: var(--reg-copy-max);
    --reg-term-width: 450px;
    --reg-hero-gap: clamp(28px, 7.8125vw, 150px);
    position: relative;
    overflow-x: clip;
    flex: 1;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: clamp(16px, 3vw, 40px) 0 clamp(32px, 6vw, 72px);
    box-sizing: border-box;
}

.reg-page__glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 200%);
    height: min(720px, 85vh);
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 22%, rgba(52, 227, 244, 0.1), transparent 24%),
        radial-gradient(circle at 78% 22%, rgba(47, 67, 255, 0.12), transparent 26%),
        radial-gradient(circle at 52% 44%, rgba(30, 107, 255, 0.06), transparent 34%);
    filter: blur(42px);
}

.reg-page .hero__container {
    position: relative;
    z-index: 1;
    width: min(var(--content-max), 100%);
    max-width: min(var(--content-max), 100%);
    margin-inline: auto;
    margin-block: 0;
    padding: clamp(12px, 2.5vw, 32px) var(--reg-gutter);
    gap: var(--reg-section-gap);
    align-items: stretch;
    justify-items: stretch;
    box-sizing: border-box;
}

.reg-page .hero__copy {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.reg-page .hero__stage-wrap {
    min-width: 0;
}

.reg-page__pill {
    cursor: default;
}

.reg-page__pill:hover {
    border-color: rgba(52, 227, 244, 0.18);
    box-shadow: 0 0 20px rgba(52, 227, 244, 0.06);
}

.reg-page .hero__lead {
    margin-bottom: 1rem;
}

.reg-page .hero__title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.reg-page .hero__title .hero__title-accent {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.reg-page__api-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.6;
}

.reg-inline-code {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.82em;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 500;
    color: rgb(190, 230, 255);
    background: rgba(52, 227, 244, 0.1);
    border: 1px solid rgba(52, 227, 244, 0.14);
}

.reg-page__panel-body {
    padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 20px) clamp(18px, 3vw, 24px);
    box-sizing: border-box;
}

.reg-page__panel-body form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
}

.reg-field {
    margin-bottom: 0;
}

.reg-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.reg-field > input {
    margin-block: 10px;
}

.reg-field input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.reg-field input::placeholder {
    color: var(--text-3);
}

.reg-field input:focus {
    border-color: rgba(52, 227, 244, 0.35);
    box-shadow: 0 0 0 3px rgba(52, 227, 244, 0.08);
}

.reg-email-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-block: 10px;
    min-width: 0;
}

.reg-email-row input {
    flex: 1 1 0%;
    min-width: 0;
    margin-block: 0;
}

.reg-email-row .reg-btn-send {
    flex-shrink: 0;
    align-self: center;
    margin-block: 0;
}

.reg-btn-send {
    flex-shrink: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(52, 227, 244, 0.28);
    background: rgba(52, 227, 244, 0.08);
    color: var(--brand-aqua);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.reg-btn-send:hover:not(:disabled) {
    background: rgba(52, 227, 244, 0.14);
    border-color: rgba(52, 227, 244, 0.45);
    color: var(--text-1);
}

.reg-btn-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.reg-field-hint {
    margin: 0.2rem 0 0;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
    color: var(--text-3);
}

/* 邮箱行多一行 hint，与下方用户名/密码视觉间距对齐 */
.reg-field:has(.reg-email-row) .reg-field-hint {
    margin-top: 0.15rem;
    min-height: 1.35em;
}

.reg-field--code {
    min-width: 0;
}

.reg-field--code .reg-field-hint {
    text-align: center;
}

.reg-code-otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-block: 10px;
    box-sizing: border-box;
}

.reg-code-otp__cell {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1rem;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    caret-color: var(--brand-aqua);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reg-code-otp__cell:focus {
    border-color: rgba(52, 227, 244, 0.45);
    box-shadow: 0 0 0 2px rgba(52, 227, 244, 0.12);
}

.reg-code-otp__sep {
    flex: 0 0 auto;
    padding: 0 0.12rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 32px;
    color: var(--text-3);
    opacity: 0.55;
    user-select: none;
    pointer-events: none;
}

.reg-code-otp__hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reg-message {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

.reg-message:not(.reg-message--error):not(.reg-message--success) #messageIcon {
    display: none;
}

.reg-message--error {
    display: flex;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.reg-message--success {
    display: flex;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
}

.reg-page__submit {
    width: 100%;
    margin-top: 4px;
    border: none;
    font-family: inherit;
}

.reg-page__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.reg-footer-note {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
    color: var(--text-3);
}

.reg-footer-note a {
    color: rgb(142, 223, 255);
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    border-bottom: 1px solid rgba(142, 223, 255, 0.35);
    transition: border-color 0.2s, color 0.2s;
}

.reg-footer-note a:hover {
    border-bottom-color: rgb(142, 223, 255);
}
.reg-page .hero__stage-wrap {
    width: var(--reg-panel-width);
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin-inline: auto;
}

.reg-page .hero__panel.reg-page__panel {
    container-type: inline-size;
    container-name: reg-panel;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: var(--reg-panel-width);
    max-width: 100%;
    height: auto;
    min-height: var(--reg-panel-min-height);
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    animation: not-found-in 0.75s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.reg-page .hero__panel.reg-page__panel .hero__panel-head {
    flex-shrink: 0;
    padding-inline: clamp(16px, 3vw, 20px);
}

.reg-page .hero__panel.reg-page__panel .hero__panel-body,
.reg-page .reg-page__panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* —— 注册页整页自适应 —— */

/* 桌面双栏：整体在视口居中，左文案+终端 / 右表单 */
@media (min-width: 960px) {
    .reg-page {
        justify-content: center;
    }

    .reg-page .hero__container {
        grid-template-columns:
            minmax(0, var(--reg-copy-slot))
            minmax(0, var(--reg-panel-width));
        align-items: start;
        justify-content: center;
        gap: var(--reg-hero-gap);
        width: min(
            var(--content-max),
            calc(var(--reg-copy-slot) + var(--reg-panel-width) + var(--reg-hero-gap))
        );
        padding-block: clamp(20px, 3vw, 48px);
        margin-inline: auto;
        margin-block: auto;
    }

    .reg-page .hero__copy {
        display: flex;
        flex-direction: column;
        align-self: start;
        width: 100%;
        max-width: var(--reg-copy-slot);
        justify-self: start;
    }

    .reg-page__copy .reg-term-frame {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .reg-term-frame__body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .reg-page .hero__stage-wrap {
        display: flex;
        flex-direction: column;
        width: var(--reg-panel-width);
        max-width: 100%;
        margin-inline: auto;
        justify-self: center;
        align-self: stretch;
    }

    .reg-page .hero__panel.reg-page__panel {
        flex: 1 1 auto;
        height: 100%;
    }

    .reg-page__panel-body form {
        flex: 1 1 auto;
        min-height: 0;
        gap: 0.625rem;
        justify-content: flex-start;
    }

    .reg-page__panel-body form > .reg-field {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        min-height: 0;
    }

    .reg-page__panel-body form > #messageBox,
    .reg-page__panel-body form > .reg-page__submit {
        flex: 0 0 auto;
    }

    .reg-page__panel-body .reg-footer-note {
        flex: 0 0 auto;
        margin-top: auto;
    }
}

/* 大屏 / 24 寸：表单面板贴内容、收敛底部空档 */
@media (min-width: 1280px) {
    .reg-page .hero__stage-wrap {
        align-self: start;
        height: auto;
    }

    .reg-page .hero__panel.reg-page__panel {
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
    }

    .reg-page .hero__panel.reg-page__panel .hero__panel-body,
    .reg-page .reg-page__panel-body {
        flex: 0 0 auto;
    }

    .reg-page__panel-body {
        padding-bottom: clamp(10px, 1.2vw, 14px);
    }

    .reg-page__panel-body form {
        flex: 0 0 auto;
        gap: 0.5rem;
    }

    .reg-page__panel-body .reg-footer-note {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
}

@media (min-width: 1600px) {
    .reg-page .hero__container {
        padding-inline: clamp(28px, 5vw, 72px);
    }
}

@media (min-width: 1920px) {
    .reg-page {
        --reg-copy-slot: 500px;
        padding-bottom: clamp(24px, 3vw, 40px);
    }

    .reg-page .hero__container {
        grid-template-columns:
            minmax(0, var(--reg-copy-slot))
            minmax(0, var(--reg-panel-width));
        width: min(
            var(--content-max),
            calc(var(--reg-copy-slot) + var(--reg-panel-width) + var(--reg-hero-gap))
        );
        padding-block: clamp(16px, 2vw, 32px);
    }

    .reg-page .hero__copy {
        width: var(--reg-copy-slot);
        max-width: var(--reg-copy-slot);
    }

    .reg-page #reg-heading.hero__title {
        width: var(--reg-copy-slot);
        max-width: 100%;
        box-sizing: border-box;
    }

    .reg-page #reg-heading.hero__title .hero__title-accent {
        width: 460px;
        max-width: 100%;
    }

    .reg-page__panel-body {
        padding-bottom: 10px;
    }

    .reg-page__panel-body form {
        gap: 0.45rem;
    }

    .reg-page__panel-body .reg-footer-note {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
        font-size: 13px;
    }

    .reg-page__copy .reg-term-frame {
        min-height: min(380px, calc(100vh - var(--header-h) - 12rem));
    }
}

/* 平板/手机：单栏；左侧文案+终端在上，注册表单在下 */
@media (max-width: 959px) {
    .reg-page {
        --reg-panel-available-w: calc(100vw - 2 * var(--reg-gutter));
        padding-block: clamp(12px, 2.5vw, 28px) clamp(28px, 5vw, 48px);
    }

    .reg-page .hero__container {
        grid-template-columns: 1fr;
        width: min(var(--reg-panel-width), 100%);
        max-width: 100%;
        margin-inline: auto;
        padding-block: clamp(8px, 2vw, 20px);
        gap: clamp(20px, 4vw, 32px);
        box-sizing: border-box;
    }

    .reg-page .hero__copy {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .reg-page .hero__stage-wrap {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .reg-page .hero__panel.reg-page__panel {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .reg-page .hero__title {
        margin-bottom: 0;
        padding-bottom: 0;
        font-size: clamp(1.85rem, 7.5vw, 2.75rem);
        line-height: 1.08;
    }

    .reg-page .hero__lead {
        margin-bottom: 0.75rem;
        max-width: none;
        line-height: 1.65;
        font-size: clamp(15px, 3.8vw, 17px);
    }

    .reg-page .hero__pill {
        margin-bottom: 14px;
    }

    .reg-page__copy .reg-term-frame {
        margin-top: 20px;
    }
}

/* 窄屏：触控与边距；可用宽度收窄后面板继续等比缩小 */
@media (max-width: 600px) {
    .reg-page {
        --reg-gutter: max(16px, env(safe-area-inset-left, 0px));
        --reg-panel-available-w: calc(
            100vw - max(16px, env(safe-area-inset-left, 0px)) - max(16px, env(safe-area-inset-right, 0px))
        );
        --reg-panel-min-w: 260px;
    }

    .reg-page .hero__container {
        padding-inline: max(16px, env(safe-area-inset-left, 0px))
            max(16px, env(safe-area-inset-right, 0px));
    }

    .reg-page__panel-body {
        padding-inline: max(14px, env(safe-area-inset-left, 0px))
            max(14px, env(safe-area-inset-right, 0px));
    }

    .reg-page .hero__panel.reg-page__panel .hero__panel-head {
        padding-top: 12px;
        margin-bottom: 8px;
    }

    .reg-page__panel-body form {
        gap: 0.55rem;
    }

    .reg-field input {
        font-size: 16px;
        padding: 10px 12px;
        min-height: 42px;
    }

    .reg-field-hint {
        text-align: left;
        font-size: 10px;
        margin-top: 0.15rem;
    }

    .reg-email-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .reg-email-row .reg-btn-send {
        width: 100%;
        min-height: 44px;
        height: auto;
        padding: 12px;
        font-size: 13px;
    }

    .reg-page__submit {
        min-height: 48px;
    }

    .reg-footer-note {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 13px;
    }

    .reg-term-frame__bar {
        padding: 10px 12px;
    }

    .reg-term-frame__body {
        padding: 8px 10px 10px;
        font-size: 0.85rem;
    }

    .reg-term-json__line--indent {
        padding-left: 0.65rem;
    }

    .reg-term-json__val--value {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* 中等宽度：邮箱行提前折行 */
@media (max-width: 959px) and (min-width: 601px) {
    .reg-email-row {
        flex-wrap: wrap;
    }

    .reg-email-row .reg-btn-send {
        flex: 1 1 auto;
        min-height: 44px;
        height: auto;
    }
}

/* 面板内：随卡片变窄微调表单密度 */
@container reg-panel (max-width: 420px) {
    .reg-page__panel-body {
        padding-inline: clamp(12px, 3cqi, 18px);
    }

    .reg-page__panel-body form {
        gap: 0.5rem;
    }

    .reg-field input {
        padding: 9px 11px;
        font-size: max(14px, 3.2cqi);
    }

    .reg-code-otp__cell {
        font-size: 0.9rem;
    }

    .reg-code-otp__sep {
        padding: 0 0.08rem;
        font-size: 0.65rem;
    }
}

@container reg-panel (max-width: 340px) {
    .reg-field input {
        font-size: 16px;
    }
}

.reg-page__copy .reg-term-frame {
    margin-top: 20px;
    width: min(100%, var(--reg-term-width));
    max-width: var(--reg-term-width);
    box-sizing: border-box;
}

/* 仅模拟终端窗口外观；正文继承注册页字体与颜色 */
.reg-term-frame {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.reg-term-frame__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.reg-term-frame__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reg-term-frame__dot--red {
    background: #ff5f56;
}

.reg-term-frame__dot--yellow {
    background: #ffbd2e;
}

.reg-term-frame__dot--green {
    background: #27c93f;
}

.reg-term-frame__win-title {
    margin-left: 8px;
    font-size: 0.8125rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.reg-term-frame__body {
    min-height: 0;
    padding: 10px 12px 12px;
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e6edf3;
    user-select: none;
    pointer-events: none;
}

.reg-term-line {
    margin-bottom: 6px;
}

.reg-term-prompt {
    color: #a78bfa;
    font-weight: 700;
    margin-right: 0.35rem;
}

.reg-term-cmd {
    color: #e6edf3;
}

.reg-term-json {
    margin: 0;
    container-type: inline-size;
    container-name: reg-term-json;
}

.reg-term-json__line {
    line-height: 1.4;
}

.reg-term-json__line--indent {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0 4px;
    padding-left: 1rem;
    max-width: 100%;
}

.reg-term-json__brace {
    color: #8b949e;
}

.reg-term-json__key {
    flex-shrink: 0;
    color: #60a5fa;
}

.reg-term-json__punct {
    flex-shrink: 0;
    color: #8b949e;
}

.reg-term-json__val {
    color: #7dd3fc;
}

.reg-term-json__val--value {
    display: inline-block;
    box-sizing: border-box;
    flex: 0 1 200px;
    width: 200px;
    max-width: 100%;
    min-height: 24px;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-term-json__val--format {
    display: inline-block;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 4.5rem;
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    font-size: 0.8rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* F：容器宽度不足时自动换行（与 JS 边界 class 双保险） */
@container reg-term-json (max-width: 380px) {
    .reg-term-json__line--indent {
        flex-wrap: wrap;
    }

    .reg-term-json__val--value {
        flex: 1 1 100%;
        width: 100%;
        height: auto;
        min-height: 22px;
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: clip;
    }
}

.reg-term-json--wrap .reg-term-json__line--indent {
    flex-wrap: wrap;
}

.reg-term-json--wrap .reg-term-json__val--value {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
    min-height: 22px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
}

.reg-term-json__val--placeholder {
    color: #484f58;
    font-style: italic;
}

.reg-term-json__val--secret {
    color: #34d399;
    letter-spacing: 0.06em;
}

.reg-term-json__val--error {
    color: #f87171;
}

.reg-term-json__val--ok {
    color: #34d399;
}

.reg-term-log {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #21262d;
    min-height: calc(0.8rem * 1.5);
}

.reg-term-log__line {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.reg-term-log__line--slot {
    min-height: calc(0.8rem * 1.5);
}

.reg-term-log__line--idle {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.reg-term-log__line--error {
    color: #f87171;
}

.reg-term-log__line--success {
    color: #34d399;
}

.reg-term-log__line--info {
    color: #8b949e;
}

.reg-term-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #6b7280;
}

.reg-term-hint--ready {
    color: #34d399;
}

@media (prefers-reduced-motion: no-preference) {
    .reg-term-json__val {
        transition: color 0.2s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reg-page .hero__panel.reg-page__panel {
        animation: none;
    }
}
