.compact-auth { padding: 10px 14px; font-size: .88rem; }
.auth-modal { max-width: 430px; text-align: left; }
.auth-modal h2, .auth-modal > p, .auth-modal .eyebrow, .auth-modal .premium-star { display: block; text-align: center; }
.auth-modal label { display: grid; gap: 6px; margin: 13px 0; color: #4a4667; font-size: .88rem; font-weight: 700; }
.auth-modal input[type="email"], .auth-modal input[type="password"], .auth-modal input[type="text"] { width: 100%; box-sizing: border-box; border: 1px solid #ddd9ee; border-radius: 12px; padding: 12px 13px; font: inherit; color: #272142; }
.auth-modal .auth-nickname { display: none; }
.auth-modal .auth-nickname.show { display: grid; }
.auth-modal .consent { grid-template-columns: 18px minmax(0, 1fr); align-items: start; font-weight: 500; line-height: 1.35; }
.auth-modal .consent input { margin-top: 2px; }
.auth-modal .consent-copy { min-width: 0; }
.legal-consents { display: grid; gap: 9px; margin: 18px 0; padding: 14px; border: 1px solid #e2ddef; border-radius: 13px; background: #faf9ff; }
.legal-consents > p { margin: 0 0 2px !important; color: #716b91 !important; font-size: .77rem !important; text-align: left !important; }
.auth-modal .legal-consents .consent { margin: 0; }
.auth-modal .consent a, .legal-document a { color: #5f4bd6; text-decoration: underline; text-underline-offset: 2px; }
.legal-page { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.legal-document { margin-top: 22px; padding: clamp(22px,4vw,48px); border: 1px solid #e6e2f1; border-radius: 24px; background: #fff; box-shadow: 0 15px 42px #382b7110; color: #403a59; line-height: 1.65; }
.legal-document h1 { margin: 0 0 22px; color: #20183f; font-size: clamp(1.7rem,4vw,2.6rem); line-height: 1.08; }
.legal-document h2 { margin: 34px 0 13px; color: #272044; font-size: 1.25rem; }
.legal-document h3 { margin: 25px 0 10px; color: #39305e; font-size: 1.05rem; }
.legal-document p { margin: 0 0 14px; }
.legal-document ul { margin: 0 0 16px; padding-left: 22px; }
.legal-document li { margin: 7px 0; }
.legal-document code { padding: 1px 5px; border-radius: 5px; background: #f1eef9; color: #4e4091; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.legal-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid #e3def0; border-radius: 14px; }
.legal-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: .93rem; }
.legal-table th, .legal-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #e8e4f1; }
.legal-table th { background: #f4f1fc; color: #33275e; font-weight: 800; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td { color: #554f6c; }
.profile-avatar-button { position: relative; flex: 0 0 auto; transition: transform .18s, box-shadow .18s; }
.profile-avatar-button small { position: absolute; right: -8px; bottom: -7px; padding: 3px 6px; border-radius: 7px; background: #7658f6; color: #fff; font-size: 8px; font-weight: 800; line-height: 1; box-shadow: 0 3px 8px #5841b13b; }
.profile-avatar-button:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 17px #3a24533b; }
.avatar-modal { max-width: 620px; text-align: center; }
.avatar-modal > p:not(.eyebrow) { margin-bottom: 20px; }
.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; max-height: min(51vh, 430px); overflow-y: auto; padding: 2px; }
.avatar-choice { display: grid; place-items: center; gap: 4px; min-height: 88px; border: 2px solid #e7e1f1; border-radius: 16px; background: #fbfaff; transition: transform .16s, border-color .16s, background .16s; }
.avatar-choice:hover:not(:disabled), .avatar-choice.selected { border-color: #7658f6; background: #f0ecff; transform: translateY(-2px); }
.avatar-choice:disabled { cursor: wait; opacity: .65; }
.avatar-choice span { font-size: 36px; line-height: 1; }
.avatar-choice small { color: #665f7c; font-size: 10px; font-weight: 800; }
@media (max-width: 560px) { .avatar-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { .avatar-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; } .avatar-choice { min-height: 78px; } }
.cookie-notice { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 24px; max-width: min(620px, calc(100vw - 32px)); padding: 18px 20px; border: 1px solid #ddd5f0; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px #2b1c6826; color: #41395c; }
.cookie-notice b { display: block; color: #211940; font-size: 1rem; }
.cookie-notice p { margin: 5px 0 0; font-size: .84rem; line-height: 1.45; }
.cookie-notice-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.cookie-notice-actions .button { min-width: 106px; padding: 11px 15px; font-size: .85rem; }
@media (max-width: 620px) { .cookie-notice { right: 16px; bottom: 16px; left: 16px; flex-direction: column; align-items: stretch; gap: 13px; } .cookie-notice-actions { justify-content: flex-end; } }
.form-error { min-height: 20px !important; color: #c84359 !important; font-size: .86rem !important; margin: 8px 0 !important; }
.auth-switch { width: 100%; justify-content: center; margin-top: 12px; }
.auth-status { color: #716b91; font-size: .82rem; }
.oauth:disabled, .auth-modal button:disabled { cursor: wait; opacity: .68; }
.premium-active { margin-left: auto; text-align: right; color: #ffdc6e; font-size: .83rem; font-weight: 800; line-height: 1.5; }
.premium-active small { color: #fff; opacity: .78; font-size: .72rem; font-weight: 600; }
.premium-active-light { color: #317969; }
.premium-active-light small { color: #317969; }
.premium-until { display: block; color: #635987; font-size: .72rem; font-weight: 700; margin-top: 7px; }
.premium-current { margin: 25px 0 6px; padding: 14px; border-radius: 13px; background: #e8e0ff; color: #5e47bd; font-size: .82rem; }
.premium-current strong { display: block; margin-top: 5px; font-size: 1rem; }
