/* Небольшие действия и единая навигация кабинета в обеих темах. */
.favorite-control{margin:16px 0;font:14px/1.45 var(--theme-body)}
.favorite-control form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.favorite-button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--theme-line);background:var(--theme-paper);color:var(--theme-ink)!important;font:500 14px/1.4 var(--theme-body);text-decoration:none;cursor:pointer}
.favorite-button[aria-pressed=true]{background:var(--theme-wash);border-color:var(--theme-brand);color:var(--theme-brand)!important}
.favorite-button:focus-visible{outline:3px solid var(--theme-brand);outline-offset:3px}.favorite-button:disabled{cursor:wait;opacity:.65}
.favorite-status{font-size:13px;color:var(--theme-soft)}
.profile-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0 0 16px;border-bottom:1px solid var(--theme-line)}
.profile-nav a{padding:8px 14px;border-radius:999px;text-decoration:none;min-height:40px;display:flex;align-items:center;font-size:14px}
.profile-nav a[aria-current=page]{background:var(--theme-brand);color:var(--theme-on-brand)}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-grid .student-panel{scroll-margin-top:20px}
.profile-identity{display:flex;gap:16px;align-items:center;margin-bottom:28px}.profile-avatar{width:56px;height:56px;flex:none;display:grid;place-items:center;background:var(--theme-wash);color:var(--theme-brand);border:1px solid var(--theme-line);border-radius:50%;font-size:24px;font-weight:600}
.profile-identity h1{margin-bottom:4px}.profile-grid p,.profile-identity p{overflow-wrap:anywhere}
.profile-grid h2{font-size:20px}.profile-grid .student-button,.profile-grid .student-secondary{min-height:40px;padding:8px 16px;border-radius:999px;font-size:14px}
.favorite-card-link{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--theme-ink)!important}.favorite-card-link h2{font-size:21px;margin:0}.favorite-card-link .student-link-label{align-self:flex-start;background:var(--theme-brand);color:var(--theme-on-brand);padding:8px 16px;border-radius:999px;font-size:14px}.favorite-card .favorite-control{margin-bottom:0}
.student-reading [data-progress-hint]{flex-basis:100%;font-size:14px;color:var(--theme-soft);max-width:70ch}
@media(max-width:650px){.profile-grid{grid-template-columns:1fr}.profile-nav a,.favorite-button,.profile-grid .student-button,.profile-grid .student-secondary{min-height:44px}.profile-nav{gap:4px}.profile-nav a{padding:8px 12px}.profile-identity h1{font-size:28px}}

.identity-row{padding:16px 0;border-top:1px solid var(--theme-line)}.identity-row p{margin:6px 0 12px}.profile-footer{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px}.profile-footer button,.profile-footer a{min-height:40px;border-radius:999px;padding:8px 16px;font-size:14px}.identity-divider{display:flex;align-items:center;gap:12px;color:var(--theme-soft);margin:20px 0}.identity-divider:before,.identity-divider:after{content:'';height:1px;background:var(--theme-line);flex:1}.student-form label.identity-remember{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;min-height:44px}.student-form .identity-remember input{width:20px;height:20px;min-height:20px;flex:none;accent-color:var(--theme-brand)}.student-form button:disabled{opacity:.55;cursor:not-allowed}.telegram-widget{min-height:64px;margin:24px 0}.profile-avatar{object-fit:cover}@media(max-width:650px){.profile-footer button,.profile-footer a{min-height:44px}}
