.auth-top-panel {
    display: none !important;
}

.auth-top-panel[hidden] {
    display: none;
}

.auth-admin-only {
    display: none !important;
}

body.auth-is-admin .auth-admin-only {
    display: flex !important;
}

.auth-account-panel {
    position: relative;
    width: 44px;
    flex: 0 0 auto;
    max-height: none;
    opacity: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border, rgba(15, 23, 42, .1));
    transition: width .3s var(--fluid-ease, cubic-bezier(0.3, 0, 0, 1)) .5s;
}

.sidebar:hover .auth-account-panel,
.sidebar.is-pinned .auth-account-panel {
    width: 170px;
    max-height: none;
    opacity: 1;
    padding-top: 8px;
    border-top: 1px solid var(--border, rgba(15, 23, 42, .1));
    transition-delay: 0s;
}

.auth-avatar-button {
    width: 44px;
    min-height: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--border, rgba(15, 23, 42, .12));
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    overflow: hidden;
    transition: width .3s var(--fluid-ease, cubic-bezier(0.3, 0, 0, 1)) .5s, gap .3s var(--fluid-ease, cubic-bezier(0.3, 0, 0, 1)) .5s, background-color .2s, color .2s, border-color .2s;
}

.sidebar:hover .auth-avatar-button,
.sidebar.is-pinned .auth-avatar-button {
    width: 170px;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    transition-delay: 0s;
}

.auth-avatar-button:hover {
    background: var(--nav-hover-bg, #fafafa);
    color: var(--text, #111827);
}

.auth-avatar-button span,
.auth-avatar-button img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    object-fit: cover;
}

.auth-avatar-button em {
    min-width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    transition: opacity .2s ease, max-width .3s var(--fluid-ease, cubic-bezier(0.3, 0, 0, 1)) .5s;
}

.sidebar:hover .auth-avatar-button em,
.sidebar.is-pinned .auth-avatar-button em {
    max-width: 112px;
    opacity: 1;
    transition-delay: .15s;
}

.auth-account-menu {
    width: 100%;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.auth-account-menu[hidden] {
    display: none;
}

.auth-account-name {
    width: 100%;
    min-height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--nav-hover-bg, #f8fafc);
    color: var(--text, #111827);
    padding: 0 10px;
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar:hover .auth-account-name,
.sidebar.is-pinned .auth-account-name {
    display: flex;
}

.auth-account-name.muted {
    color: #64748b;
}

.auth-menu-btn {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border: 1px solid var(--border, rgba(15, 23, 42, .12));
    border-radius: 999px;
    background: #fff;
    color: var(--text, #111827);
    padding: 0 !important;
    text-align: center;
    font-size: 0 !important;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: width .3s var(--fluid-ease, cubic-bezier(0.3, 0, 0, 1)) .5s, background-color .2s, color .2s, border-color .2s;
}

.sidebar:hover .auth-menu-btn,
.sidebar.is-pinned .auth-menu-btn {
    width: 100% !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    transition-delay: 0s;
}

.auth-menu-btn::before {
    content: "";
    display: block !important;
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: var(--auth-menu-icon) center / contain no-repeat;
    mask: var(--auth-menu-icon) center / contain no-repeat;
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.82 1c0 2-3 2-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="login"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="adminLogin"]::before,
.auth-menu-btn[data-auth-action="admin"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3v8Z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="profile"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="credits"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M16 10h5v4h-5a2 2 0 0 1 0-4z'/%3E%3Cpath d='M7 9h4'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="avatar"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
}

.auth-menu-btn[data-auth-action="logout"]::before {
    --auth-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E");
}

.sidebar:hover .auth-menu-btn::before,
.sidebar.is-pinned .auth-menu-btn::before {
    content: none !important;
}

.auth-menu-btn.primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.auth-menu-btn:hover {
    background: var(--nav-hover-bg, #fafafa);
}

.auth-avatar-input {
    display: none;
}

.author-box {
    display: none !important;
}

.auth-user {
    height: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--nav-hover-bg, #f8fafc);
    color: var(--text, #111827);
    font-size: 14px;
    font-weight: 750;
}

.auth-user.muted {
    color: #64748b;
}

.auth-btn {
    height: 32px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    background: #fff;
    color: #111827;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.auth-account-panel .auth-btn {
    width: 100%;
    text-align: left;
}

.auth-btn.primary {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.auth-btn.ghost {
    background: transparent;
}

.theme-dark .auth-top-panel,
html.theme-dark .auth-top-panel {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(17, 24, 39, .9);
    color: #f8fafc;
}

.theme-dark .auth-btn,
html.theme-dark .auth-btn {
    border-color: rgba(255, 255, 255, .14);
    background: #1f2937;
    color: #f8fafc;
}

.nav-item.auth-project-nav .project-nav-badge {
    position: absolute;
    top: 8px;
    right: 9px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    padding: 0 5px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    opacity: 0;
    transform: scale(.82);
    pointer-events: none;
    transition: opacity .18s, transform .18s, right .3s var(--fluid-ease, cubic-bezier(.3, 0, 0, 1));
}

.sidebar:hover .nav-item.auth-project-nav .project-nav-badge,
.sidebar.is-pinned .nav-item.auth-project-nav .project-nav-badge {
    right: 14px;
}

.nav-item.auth-project-nav.has-projects .project-nav-badge {
    opacity: 1;
    transform: scale(1);
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, .74);
    backdrop-filter: blur(16px) saturate(82%);
    -webkit-backdrop-filter: blur(16px) saturate(82%);
}

.auth-modal[hidden] {
    display: none;
}

.auth-card {
    position: relative;
    width: min(390px, calc(100vw - 32px));
    border-radius: 10px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    color: #111827;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-phone-card {
    width: min(416px, calc(100vw - 32px));
}

.theme-dark .auth-card,
html.theme-dark .auth-card {
    background: #111827;
    color: #f8fafc;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.auth-title {
    font-size: 22px;
    font-weight: 850;
    margin-bottom: 16px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-tabs button,
.auth-submit {
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active,
.auth-submit {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.auth-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
}

.auth-card input {
    width: 100%;
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: #111827;
    outline: none;
}

.auth-phone-card input {
    height: 42px;
    border-color: transparent;
    background: #f1f1f1;
}

.auth-code-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 0;
    border-radius: 8px;
    background: #f1f1f1;
    overflow: hidden;
}

.auth-code-line input {
    border-radius: 8px 0 0 8px;
}

.auth-code-btn {
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.auth-code-btn:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.auth-submit {
    width: 100%;
    margin-top: 2px;
}

.auth-phone-card .auth-submit {
    height: 48px;
    margin-top: 20px;
    border: 0;
    background: #d9dcdf;
    color: #fff;
}

.auth-phone-card .auth-submit:hover {
    background: #111827;
}

.auth-agree-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 8px !important;
    margin: 18px 0 0 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.45;
}

.auth-agree-row input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #fff;
}

.auth-agree-row span {
    min-width: 0;
}

.auth-admin-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.auth-admin-switch button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.auth-admin-switch button:hover {
    color: #111827;
}

.auth-message {
    min-height: 20px;
    margin-top: 10px;
    color: #dc2626;
    font-size: 14px;
}

.auth-profile-list {
    display: grid;
    gap: 9px;
    margin: 8px 0 16px;
}

.auth-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    font-size: 14px;
}

.auth-profile-row span:first-child {
    color: #64748b;
}

.auth-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2200;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 750;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}

.auth-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.auth-login-trigger {
    border-color: #111827;
    background: #111827;
    color: #fff;
}
.auth-login-trigger:hover { background: #020617; color: #fff; }
.auth-login-trigger span { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; }

/* 登录体系：参考主站的黑灰白中性视觉，并统一账号、手机与管理员入口。 */
.auth-card.auth-magic-card.auth-experience-card {
    --auth-accent: #e8e8ea;
    --auth-accent-strong: #ffffff;
    --auth-surface: #111216;
    --auth-surface-raised: #18191d;
    --auth-line: rgba(255, 255, 255, .11);
    --auth-text: #ededf0;
    --auth-muted: #8f9299;
    width: min(860px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    box-sizing: border-box;
    padding: 1px;
    border: 0;
    border-radius: 25px;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .66), 0 0 0 1px rgba(255, 255, 255, .035);
    color: var(--auth-text);
    isolation: isolate;
    animation: auth-card-enter .24s cubic-bezier(.22, .8, .28, 1);
}

.auth-card.auth-magic-card.auth-experience-card::before {
    display: none;
}

@keyframes auth-card-enter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-experience-card .auth-magic-content {
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 42px);
    max-height: calc(100dvh - 42px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 20px 96px;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px;
    background: var(--auth-surface);
    color: var(--auth-text);
}

.auth-brand-hero {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 17px 28px 16px;
    border-bottom: 1px solid var(--auth-line);
    background: #0e0f12;
}

.auth-brand-watermark {
    position: absolute;
    top: -72px;
    right: -102px;
    width: 540px;
    max-width: none;
    opacity: .045;
    filter: grayscale(1) contrast(.82);
    pointer-events: none;
    user-select: none;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    width: min(520px, 72%);
}

.auth-brand-lockup {
    display: block;
    width: 112px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 8px;
}

.auth-brand-eyebrow,
.auth-section-kicker {
    color: #92959c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.auth-brand-copy h2 {
    margin: 4px 0;
    color: #f5f5f6;
    font-size: 25px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.auth-brand-copy p {
    margin: 0;
    color: #92959c;
    font-size: 14px;
    line-height: 1.55;
}

.auth-benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.auth-benefit-row span {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: #1a1b1f;
    color: #c5c6ca;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.auth-shell-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    min-height: 328px;
}

.auth-form-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    box-sizing: border-box;
    padding: 21px 28px 20px;
    border-right: 1px solid var(--auth-line);
    background: #111216;
}

.auth-experience-card .auth-card-header,
.auth-experience-card .auth-card-content,
.auth-experience-card .auth-card-footer {
    padding: 0;
    border: 0;
}

.auth-experience-card .auth-card-header {
    margin-bottom: 12px;
}

.auth-experience-card .auth-card-header .auth-title {
    margin: 5px 0 0;
    color: var(--auth-text);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.auth-experience-card .auth-card-header p {
    margin: 6px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-experience-card .auth-card-content {
    flex: 1;
}

.auth-experience-card .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 0 0 13px;
    padding: 4px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #0c0d10;
}

.auth-experience-card .auth-tabs[hidden],
.auth-experience-card .auth-reset-phone-row[hidden],
.auth-experience-card .auth-reset-code-row[hidden],
.auth-experience-card .auth-confirm-password-row[hidden],
.auth-experience-card .auth-invite-row[hidden],
.auth-experience-card .auth-forgot-back[hidden],
.auth-experience-card #authForgotPassword[hidden] {
    display: none !important;
}

.auth-experience-card .auth-tabs button {
    height: 35px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8f9299;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.auth-experience-card .auth-tabs button:hover {
    color: #e7e7e9;
}

.auth-experience-card .auth-tabs button.active {
    background: var(--auth-accent);
    color: #111216;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
}

.auth-experience-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
    color: #b8bac0;
    font-size: 13px;
    font-weight: 750;
}

.auth-password-field {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
}

.auth-password-heading {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #b8bac0;
    font-size: 13px;
    font-weight: 750;
}

.auth-password-heading button,
.auth-forgot-back {
    border: 0;
    background: transparent;
    color: #a8abb2;
    padding: 0;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: color .18s ease;
}

.auth-password-heading button:hover,
.auth-forgot-back:hover {
    color: #ffffff;
}

.auth-forgot-back {
    width: fit-content;
    margin: 0 0 11px;
    color: #bfc1c7;
    text-align: left;
}

.auth-experience-card input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    padding: 0 13px;
    background: var(--auth-surface-raised);
    color: #f2f2f4;
    font-size: 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-experience-card input::placeholder {
    color: #686b73 !important;
}

.auth-experience-card input:focus {
    border-color: rgba(255, 255, 255, .42);
    background: #1d1e23;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .055);
}

.auth-phone-input-wrap {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    background: var(--auth-surface-raised);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-phone-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .055);
}

.auth-phone-input-wrap > span {
    border-right: 1px solid var(--auth-line);
    color: #d2d3d6;
    text-align: center;
    font-size: 14px;
    font-weight: 750;
}

.auth-phone-input-wrap input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.auth-code-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

.auth-code-line input {
    border-radius: 11px;
}

.auth-code-btn {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    background: #1d1e23;
    color: #bfc1c7;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.auth-code-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, .25);
    background: #25262b;
    color: #ffffff;
}

.auth-code-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.auth-experience-card .auth-agree-row {
    display: flex !important;
    align-items: flex-start;
    gap: 8px !important;
    margin: 14px 0 0 !important;
    color: #898c93 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45;
}

.auth-experience-card .auth-agree-row input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--auth-accent);
}

.auth-experience-card .auth-message {
    display: flex;
    min-height: 18px;
    align-items: center;
    margin: 0 0 6px;
    padding: 0;
    color: #ff8f9b;
    font-size: 13px;
    line-height: 1.4;
}

.auth-experience-card .auth-message.is-success {
    color: #8fd6ad;
}

.auth-experience-card .auth-card-footer {
    margin-top: auto;
}

.auth-experience-card .auth-submit {
    width: 100%;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 11px;
    background: var(--auth-accent);
    color: #111216;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-experience-card .auth-submit:hover {
    background: var(--auth-accent-strong);
    box-shadow: 0 13px 28px rgba(0, 0, 0, .36);
    transform: translateY(-1px);
}

.auth-experience-card .auth-submit:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.auth-experience-card .auth-submit:focus-visible,
.auth-experience-card .auth-tabs button:focus-visible,
.auth-experience-card .auth-route-button:focus-visible,
.auth-experience-card .auth-code-btn:focus-visible,
.auth-experience-card .auth-password-heading button:focus-visible,
.auth-experience-card .auth-forgot-back:focus-visible,
.auth-experience-card .auth-close:focus-visible {
    outline: 2px solid #f0f0f2;
    outline-offset: 2px;
}

.auth-access-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    box-sizing: border-box;
    padding: 23px 22px 20px;
    background: #141519;
}

.auth-access-brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.auth-access-brand img {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .86);
    background: #fff;
    padding: 5px;
    object-fit: contain;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.auth-access-brand div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auth-access-brand strong {
    color: #efeff1;
    font-size: 16px;
    font-weight: 850;
}

.auth-access-brand span {
    color: #85888f;
    font-size: 12px;
}

.auth-experience-card .auth-route-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    justify-content: stretch;
    margin: 0;
    padding: 0;
}

.auth-experience-card .auth-route-button {
    display: grid;
    width: 100%;
    min-height: 66px;
    box-sizing: border-box;
    gap: 4px;
    justify-items: start;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #1a1b1f;
    color: #ececef;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-experience-card .auth-route-button:hover {
    border-color: rgba(255, 255, 255, .22);
    background: #222328;
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-route-button strong {
    font-size: 14px;
    font-weight: 820;
}

.auth-route-button span {
    color: #8e9198;
    font-size: 12px;
    font-weight: 600;
}

.auth-security-note {
    margin: auto 0 0;
    border-top: 1px solid var(--auth-line);
    padding-top: 16px;
    color: #777a82;
    font-size: 12px;
    line-height: 1.55;
}

.auth-shell-note {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--auth-line);
    background: #0d0e11;
    color: #696c73;
    font-size: 11px;
    letter-spacing: .06em;
}

.auth-experience-card .auth-close {
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(17, 18, 22, .8);
    color: #d2d3d7;
    font-size: 24px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.auth-experience-card .auth-close:hover {
    border-color: rgba(255, 255, 255, .25);
    background: #24252a;
    color: #ffffff;
}

@media (max-width: 680px) {
    .auth-modal {
        place-items: start center;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
    }

    .auth-card.auth-magic-card.auth-experience-card {
        width: min(100%, 560px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 20px;
    }

    .auth-experience-card .auth-magic-content {
        max-height: calc(100vh - 22px);
        max-height: calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        border-radius: 19px;
        scroll-padding-block: 16px max(104px, env(safe-area-inset-bottom));
    }

    .auth-experience-card input {
        height: 44px;
        font-size: 16px;
        scroll-margin-block: 16px 104px;
    }

    .auth-experience-card .auth-tabs button,
    .auth-experience-card .auth-code-btn,
    .auth-experience-card .auth-submit,
    .auth-experience-card .auth-close {
        min-height: 44px;
    }

    .auth-experience-card .auth-password-heading button,
    .auth-experience-card .auth-forgot-back {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .auth-experience-card .auth-agree-row {
        min-height: 44px;
        align-items: center;
    }

    .auth-experience-card .auth-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .auth-brand-hero {
        min-height: 156px;
        padding: 21px 22px 19px;
    }

    .auth-brand-watermark {
        right: -210px;
        opacity: .09;
    }

    .auth-brand-copy {
        width: 88%;
    }

    .auth-brand-lockup {
        width: 132px;
    }

    .auth-brand-copy h2 {
        font-size: 24px;
    }

    .auth-shell-body {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        min-height: 0;
        padding: 23px 22px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--auth-line);
    }

    .auth-access-panel {
        padding: 21px 22px 22px;
    }

    .auth-access-brand {
        margin-bottom: 15px;
    }

    .auth-experience-card .auth-route-list {
        grid-template-columns: 1fr 1fr;
    }

    .auth-security-note {
        margin-top: 16px;
    }
}

@media (max-width: 680px) and (max-height: 620px) {
    .auth-brand-hero {
        min-height: 116px;
        padding-top: 15px;
        padding-bottom: 14px;
    }

    .auth-form-panel,
    .auth-access-panel {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

@media (max-width: 470px) {
    .auth-brand-copy {
        width: 100%;
    }

    .auth-benefit-row span {
        padding: 4px 8px;
    }

    .auth-experience-card .auth-route-list {
        grid-template-columns: 1fr;
    }

    .auth-code-line {
        grid-template-columns: minmax(0, 1fr) 100px;
    }
}

@media (max-height: 690px) and (min-width: 681px) {
    .auth-brand-hero {
        min-height: 146px;
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .auth-brand-lockup {
        width: 130px;
        margin-bottom: 5px;
    }

    .auth-brand-copy h2 {
        font-size: 24px;
    }

    .auth-benefit-row {
        margin-top: 8px;
    }

    .auth-shell-body {
        min-height: 320px;
    }

    .auth-form-panel,
    .auth-access-panel {
        padding-top: 21px;
        padding-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card.auth-magic-card.auth-experience-card {
        animation: none;
    }

    .auth-experience-card *,
    .auth-experience-card *::before,
    .auth-experience-card *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
