/* RadLearn V5.2: readable, responsive and motion-aware experience. */
:root{--v52-readable-muted:color-mix(in srgb,var(--ink) 72%,var(--surface));--v52-focus:#0b8077}
.muted,.small.muted,.form-field small,.profile-stat .small,.v46-tool-card p,.v50-memory-card p{color:var(--v52-readable-muted)!important;opacity:1!important}
input::placeholder,textarea::placeholder{color:color-mix(in srgb,var(--ink) 62%,var(--surface));opacity:1}
.btn:disabled,[aria-disabled="true"]{opacity:.62;color:color-mix(in srgb,var(--ink) 75%,var(--surface))}
.btn,.icon-button,.answer-option,.card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.btn:not(:disabled):active,.icon-button:not(:disabled):active{transform:translateY(1px) scale(.98)}
.card:hover{box-shadow:0 14px 40px color-mix(in srgb,var(--theme-accent) 12%,transparent)}
.v46-support{position:fixed!important;right:max(22px,env(safe-area-inset-right))!important;bottom:max(22px,env(safe-area-inset-bottom))!important;left:auto!important;z-index:9999!important;transform:none!important}.v46-support-menu{bottom:calc(100% + 12px)!important;top:auto!important}
.v52-quiz-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.v52-quiz-tools label{display:flex;align-items:center;gap:7px;font-weight:750}.v52-quiz-tools select{width:auto;min-width:98px;padding:8px 10px}.practice-feedback.is-correct{border-color:#16a36a;background:color-mix(in srgb,#16a36a 12%,var(--surface));animation:v52-correct .34s ease}.practice-feedback.is-wrong{border-color:#d84b4b;background:color-mix(in srgb,#d84b4b 10%,var(--surface));animation:v52-wrong .3s ease}.answer-option.correct{box-shadow:inset 0 0 0 2px #16a36a}.answer-option.wrong{box-shadow:inset 0 0 0 2px #d84b4b}
.v52-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px;align-items:start}.v52-account-summary{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}.v52-account-summary small{flex-basis:100%;color:var(--v52-readable-muted)}.v52-security{position:sticky;top:92px}
dialog{max-width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;box-sizing:border-box}.v50-event-form{width:min(680px,calc(100vw - 64px));min-width:0!important}.v50-event-form .form-row>*{min-width:0}.v50-event-form input,.v50-event-form select,.v50-event-form textarea{width:100%;min-width:0;box-sizing:border-box}.modal-actions{position:sticky;bottom:0;background:var(--surface);padding-top:12px;z-index:2}
.loading{min-height:180px;display:grid;place-items:center}.loading:before{content:"";width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--theme-accent);border-radius:50%;animation:v52-spin .8s linear infinite}
@keyframes v52-spin{to{transform:rotate(360deg)}}@keyframes v52-correct{50%{transform:scale(1.012)}}@keyframes v52-wrong{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(max-width:760px){.v52-profile-grid{grid-template-columns:1fr}.v52-security{position:static}.quiz-top{align-items:flex-start;gap:12px}.v52-quiz-tools{justify-content:flex-start}.v50-event-form{width:calc(100vw - 64px)}.v50-event-form .form-row{grid-template-columns:1fr!important}.modal-actions{display:grid;grid-template-columns:1fr 1fr}.v46-support{right:max(14px,env(safe-area-inset-right))!important;bottom:max(14px,env(safe-area-inset-bottom))!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
