/* Avlorian account dashboard. Shared buttons/dialogs/toasts: css/app-ui.css (+ components.css). */

html {
    color-scheme: dark;
}

html, body {
    overflow-x: clip;
}

body {
    min-height: 100vh;
    background: radial-gradient(120% 80% at 50% 0%, #1b0533 0%, #07030d 60%, #000 100%) fixed;
    font-family: var(--ui-font-body);
    color: var(--ui-text);
    padding: 2.5rem 2rem 4rem;
}

.dashboard-container {
    max-width: 1040px;
    margin: 0 auto;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
}

/* ---------- Header ---------- */

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0.9rem 1rem 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    backdrop-filter: blur(24px);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ui-font-display);
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--ui-text);
    border-radius: var(--ui-radius-sm);
}

.logo-box img {
    width: 32px;
    height: 32px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.header-links a {
    padding: 0.4rem 0.65rem;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ui-dur-fast), background-color var(--ui-dur-fast);
}

.header-links a:hover {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.06);
}

.header-links a.header-link--role {
    color: #e6a3ff;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-details {
    text-align: right;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-email {
    font-size: 0.75rem;
    color: var(--ui-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- Page intro ---------- */

.page-intro {
    margin: 0 0 2rem;
    max-width: 62ch;
}

.page-intro h1 {
    font-family: var(--ui-font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.page-intro p {
    margin-top: 0.6rem;
    color: var(--ui-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    text-wrap: pretty;
}

/* ---------- Notices (invitation / invoice) ---------- */

.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.03);
}

.notice[hidden] {
    display: none;
}

.notice--employee {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.05);
}

.notice--billing {
    border-color: rgba(199, 0, 255, 0.3);
    background: rgba(199, 0, 255, 0.06);
}

.notice__body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 320px;
}

.notice__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.notice--employee .notice__icon { color: var(--ui-ok); }
.notice--billing .notice__icon { color: var(--ui-accent); }

.notice__title {
    font-family: var(--ui-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.notice__text {
    font-size: 0.85rem;
    color: var(--ui-text-muted);
    line-height: 1.45;
}

.notice__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Layout: section index + one column of cards ---------- */

.dash-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.section-nav {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.section-nav a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ui-dur-fast), background-color var(--ui-dur-fast);
}

.section-nav a:hover {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.06);
}

.section-nav a[hidden] {
    display: none;
}

.section-nav .section-nav__danger {
    color: var(--danger-text, #ff9aa8);
}

.dash-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.dash-sections > .card {
    scroll-margin-top: 1.5rem;
}

.card {
    background: rgba(16, 12, 24, 0.55);
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(24px);
    min-width: 0;
}

.card[hidden] {
    display: none;
}

.card--danger {
    border-color: rgba(255, 93, 115, 0.25);
    background: rgba(40, 8, 16, 0.35);
}

.card--danger .card-title,
.card--danger .card-title i {
    color: #ff8a9b;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-head .card-title {
    margin-bottom: 0.35rem;
}

.card-title {
    font-family: var(--ui-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-wrap: balance;
}

.card-title i {
    color: var(--ui-accent);
    font-size: 1.05rem;
}

.card-lede {
    font-size: 0.9rem;
    color: var(--ui-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 68ch;
    text-wrap: pretty;
}

.card-head .card-lede {
    margin-bottom: 0;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.card-actions[hidden] {
    display: none;
}

.subhead {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.subhead + .card-lede {
    margin-bottom: 0.9rem;
}

/* Two-step sign-in's parts inside "Sign-in & security" */
.subhead--minor {
    font-size: 0.85rem;
    margin-top: 1.1rem;
    color: var(--text-muted);
}

.divider {
    height: 1px;
    margin: 1.5rem 0;
    background: var(--ui-border);
}

.tabular {
    font-variant-numeric: tabular-nums;
}

/* ---------- Rows (sign-in methods, activity) ---------- */

.row-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    min-width: 0;
}

.row-item__main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.row-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(199, 0, 255, 0.1);
    color: var(--accent-text, #E39BFF);
    font-size: 0.95rem;
}

.row-item__text {
    min-width: 0;
}

.row-item__title {
    font-size: 0.92rem;
    font-weight: 600;
}

.row-item__sub {
    font-size: 0.8rem;
    color: var(--ui-text-muted);
    overflow-wrap: anywhere;
}

.row-note {
    font-size: 0.8rem;
    color: var(--ui-text-muted);
    padding: 0 0.25rem;
}

.activity-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--ui-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.activity-toggle {
    margin-top: 0.75rem;
}

/* ---------- Empty / error states ---------- */

.state-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--ui-border-strong);
    border-radius: var(--ui-radius-md);
    color: var(--ui-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.state-block > i {
    font-size: 1.1rem;
    color: var(--accent-text, #E39BFF);
}

.state-block > p {
    flex: 1 1 220px;
    min-width: 0;
}

.state-block--error {
    border-color: rgba(255, 93, 115, 0.35);
    color: var(--danger-text, #ff9aa8);
}

.state-block--error > i {
    color: var(--danger-text, #ff9aa8);
}

/* ---------- Subscription ---------- */

.plan {
    padding: 1.25rem 1.35rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.025);
}

.plan--premium {
    background: linear-gradient(135deg, rgba(199, 0, 255, 0.1) 0%, rgba(42, 101, 229, 0.08) 100%);
    border-color: rgba(199, 0, 255, 0.28);
}

.plan__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
}

.plan__name {
    font-family: var(--ui-font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.plan__note {
    font-size: 0.875rem;
    color: var(--ui-text-muted);
    line-height: 1.5;
    max-width: 60ch;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 1rem 0 0;
}

.fact dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ui-text-muted);
    margin-bottom: 0.15rem;
}

.fact dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---------- Linked apps ---------- */

.app-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-item {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--ui-border);
    padding: 1rem 1.15rem;
    border-radius: 16px;
}

.app-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.app-meta img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.app-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(42, 101, 229, 0.14);
    color: var(--accent-text-2, #9DB8FF);
    font-size: 1.2rem;
}

.app-details {
    min-width: 0;
}

.app-details h3 {
    font-size: 1rem;
    font-weight: 600;
}

.app-details p {
    font-size: 0.8rem;
    color: var(--ui-text-muted);
}

.app-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0;
}

.app-facts > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.app-facts dt {
    color: var(--ui-text-muted);
    font-weight: 600;
}

.app-facts dd {
    margin: 0;
}

.app-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--ui-radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge[hidden] {
    display: none;
}

.status-badge.active {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: var(--ui-ok);
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--ui-warn);
}

.status-badge.neutral {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ui-border-strong);
    color: var(--ui-text-muted);
}

/* ---------- Account details ---------- */

.profile-list {
    margin: 0;
}

.profile-field {
    margin-bottom: 1.1rem;
    min-width: 0;
}

.profile-field dt {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ui-text-muted);
    margin-bottom: 0.35rem;
}

.profile-field dd {
    margin: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 1rem;
}

.profile-value {
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.6rem 0.85rem;
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border);
    overflow-wrap: anywhere;
    min-width: 0;
}

.profile-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-row .profile-value {
    flex: 1 1 200px;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.inline-form--wide {
    gap: 0.9rem;
    margin-top: 1rem;
    max-width: 420px;
}

.inline-form--wide .field-error:empty {
    display: none;
}

.inline-form[hidden],
.profile-row[hidden],
.field[hidden] {
    display: none;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 0.25rem;
}

/* ---------- Avatar choices ---------- */

.avatar-choice-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.avatar-choice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.avatar-choice.is-current {
    border-color: rgba(52, 211, 153, 0.3);
}

.avatar-choice__img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #1d1828;
    border: 1px solid var(--ui-border-strong);
    display: grid;
    place-items: center;
}

.avatar-choice__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-choice__empty {
    color: var(--ui-text-muted);
    font-size: 1.4rem;
}

.avatar-choice__text {
    flex: 1 1 100px;
    min-width: 0;
}

.avatar-choice__title {
    font-size: 0.9rem;
    font-weight: 600;
}

.avatar-choice__sub {
    font-size: 0.78rem;
    color: var(--ui-text-muted);
    line-height: 1.4;
}

.avatar--image {
    overflow: hidden;
    background: #1d1828;
}

.avatar--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- API keys ---------- */

.api-key-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.api-key-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
}

.api-key-info {
    min-width: 0;
}

.api-key-name {
    font-weight: 600;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.api-key-tier {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: var(--ui-radius-pill);
    background: rgba(42, 101, 229, 0.16);
    color: #a9c1ff;
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.api-key-prefix {
    color: var(--ui-text-muted);
    margin-top: 3px;
}

/* ---------- Dialog content ---------- */

.dialog-field {
    margin-top: 1rem;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-row input {
    flex: 1;
    min-width: 0;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.1rem;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    cursor: pointer;
    user-select: none;
}

.switch-input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    position: relative;
    width: 42px;
    height: 24px;
    margin: 0;
    background: #3a3346;
    border-radius: var(--ui-radius-pill);
    cursor: pointer;
    transition: background-color var(--ui-dur-fast);
}

.switch-input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--ui-dur-med) var(--ui-ease-out);
}

.switch-input:checked {
    background: #e5354f;
}

.switch-input:checked::after {
    transform: translateX(18px);
}

.switch-input:focus-visible {
    outline: 2px solid #ff8a9b;
    outline-offset: 3px;
}

.switch-label {
    font-size: 0.85rem;
    line-height: 1.4;
}

#secure-delete-modal .field-error {
    margin-top: 0.9rem;
}

/* ---------- Avatar studio (js/avatar-creator.js) ---------- */

.avatar-studio {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.avatar-studio__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-align: center;
}

.avatar-studio__frame {
    width: 184px;
    height: 184px;
    border-radius: 50%;
    overflow: hidden;
    background: #1d1828;
    border: 1px solid var(--ui-border-strong);
    box-shadow: 0 0 0 6px rgba(199, 0, 255, 0.08);
}

.avatar-studio__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-studio__buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.avatar-studio__buttons .btn {
    flex: 1;
}

.avatar-studio__status {
    min-height: 1.3em;
    font-size: 0.82rem;
    color: var(--ui-text-muted);
}

.avatar-studio__status.is-ok { color: var(--ui-ok); }
.avatar-studio__status.is-error { color: #ff8a9b; }

.avatar-studio__controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.9rem 1rem;
}

.avatar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.avatar-field[hidden] {
    display: none;
}

.avatar-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ui-text-muted);
}

.avatar-field select,
.avatar-field input {
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border-strong);
    background-color: #17131f;
    color: var(--ui-text);
    font: 400 0.9rem/1.3 var(--ui-font-body);
}

.avatar-field select:hover,
.avatar-field input:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 640px) {
    .avatar-studio {
        grid-template-columns: minmax(0, 1fr);
    }
    .avatar-studio__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .dash-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .section-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding: 0.35rem;
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 720px) {
    body {
        padding: 1rem 1rem 3rem;
    }

    .header-section {
        padding: 0.85rem 1rem;
    }

    .header-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -0.25rem;
    }

    .header-links::-webkit-scrollbar {
        display: none;
    }

    .user-details {
        display: none;
    }

    .card {
        padding: 1.35rem 1.15rem;
        border-radius: 20px;
    }

    .app-facts > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.1rem;
    }

    .api-key-row {
        flex-wrap: wrap;
    }

    .activity-item {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .switch-input,
    .switch-input::after,
    .section-nav a {
        transition: none;
    }
}

/* Sign-in method emails: one line, truncated */
#provider-list .row-item__sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-step "Confirm it's you" in the account page's dialog (js/two-step.js builds the same markup as on the sign-in page) */
#two-step-dialog .two-step { text-align: center; max-width: 26rem; }
#two-step-dialog .two-step-icon { font-size: 1.75rem; color: var(--accent-text); margin-bottom: 0.5rem; }
#two-step-dialog .two-step h2 { margin: 0 0 0.5rem; }
#two-step-dialog .two-step h2:focus { outline: none; }
#two-step-dialog .two-step-lede { opacity: 0.85; margin-bottom: 1rem; }
#two-step-dialog .two-step-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
#two-step-dialog .two-step-status { margin-top: 0.75rem; font-weight: 600; }
#two-step-dialog .btn-submit, #two-step-dialog .btn-sso {
    width: 100%; min-height: 44px; margin-top: 0.75rem; border-radius: 10px; cursor: pointer; font: inherit;
    border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
}
#two-step-dialog .btn-submit { background: linear-gradient(135deg, var(--p-base), var(--b-base)); border-color: transparent; color: #fff; font-weight: 600; }
#two-step-dialog form { margin-top: 1rem; text-align: left; }
#two-step-dialog .input-wrapper { display: flex; align-items: center; gap: 0.5rem; }
#two-step-dialog #two-step-code { width: 100%; background: var(--surface-field); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 1.25rem; letter-spacing: 0.3em; text-align: center; min-height: 44px; }
#two-step-dialog .checkbox-row { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-top: 0.75rem; }
#two-step-dialog .link-btn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; margin-top: 0.75rem; min-height: 44px; }
