body {
    background: #f6fbff;
    color: #102033;
}

.practice-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 128px);
}

.practice-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    border: 1px solid #dceaf3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(16, 32, 51, 0.08);
}

.practice-hello {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #102033;
}

.my-shell {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 128px);
    padding: 24px;
}

.my-card {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: 24px;
    border: 1px solid #dceaf3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(16, 32, 51, 0.08);
}

.my-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #102033;
}

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

.site-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.site-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 32, 51, 0.42);
}

.site-auth-panel {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 0;
    max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border: 1px solid rgba(220, 234, 243, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(16, 32, 51, 0.18);
    overflow: auto;
}

.site-auth-head,
.site-auth-body {
    padding: 20px;
}

.site-auth-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
}

.site-auth-head h2 {
    grid-column: 2;
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #102033;
    text-align: center;
}

.site-auth-close {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #7b8b99;
}

.site-auth-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.site-auth-body {
    display: grid;
    gap: 16px;
}

.site-auth-field {
    display: grid;
    gap: 8px;
}

.site-auth-field label {
    font-size: 14px;
    color: #66788a;
}

.site-auth-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dceaf3;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 16px;
    color: #102033;
    background: #fbfdff;
}

.site-auth-field input:focus {
    border-color: #20b0f6;
    box-shadow: 0 0 0 4px rgba(32, 176, 246, 0.12);
    outline: none;
}

.site-auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(104px, 2fr);
    gap: 10px;
    align-items: end;
}

.site-auth-primary,
.site-auth-secondary {
    min-height: 44px;
    border: 0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.site-auth-primary {
    background: #20b0f6;
    color: #ffffff;
}

.site-auth-secondary {
    background: #eaf7ff;
    color: #0a7fbd;
    padding: 0 10px;
    white-space: nowrap;
}

.site-auth-secondary:disabled,
.site-auth-primary:disabled {
    opacity: 0.6;
}

.site-auth-primary:active,
.site-auth-secondary:active {
    transform: scale(0.96);
    opacity: 0.88;
}

.site-device-feedback {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #66788a;
    white-space: pre-line;
}

.site-auth-agreement {
    margin: -2px 0 0;
    color: #7b8b99;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-auth-agreement a {
    color: #0a7fbd;
    text-decoration: none;
}

.site-device-list {
    display: grid;
    gap: 10px;
}

.site-device-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dceaf3;
    border-radius: 18px;
    background: #f8fcff;
}

.site-device-name {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.3;
    color: #102033;
}

.site-device-time {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #7b8b99;
}

.site-device-remove {
    border: 0;
    border-radius: 14px;
    padding: 8px 12px;
    background: #eaf7ff;
    color: #0a7fbd;
    font-size: 14px;
}

.site-auth-text-action {
    border: 0;
    padding: 0;
    background: transparent;
    color: #7b8b99;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 480px) {
    .site-auth-panel {
        width: calc(100% - 24px);
        margin-top: max(8vh, env(safe-area-inset-top));
    }

    .site-auth-head,
    .site-auth-body {
        padding: 18px 16px;
    }

    .site-auth-code-row {
        grid-template-columns: minmax(0, 3fr) minmax(104px, 2fr);
        gap: 8px;
    }

    .site-auth-secondary {
        font-size: 14px;
        padding: 0 8px;
    }
}
