/* The page's own static "Login" tab (homepage markup / site-banner.js) is
kept invisible, holding its space, until js/auth-header.js swaps in the real
account slot. Otherwise signed-in visitors saw "Login" flash on every page.
The account slot's own Login link sits inside #yvAccountNav, not as a direct
child, so it is unaffected. */
.nav__links > a[data-tab="login"],
.yv-nav-side--right > a[data-tab="login"],
.yv-nav-side--right > a[title="Login"],
.fs-topnav__links > a[title="Login"] {
visibility: hidden;
}
.yv-account-nav {
display: inline-flex;
align-items: center;
gap: 8px;
position: relative;
min-height: 44px;
}
.yv-account-login {
min-height: 44px;
display: inline-flex;
align-items: center;
}
/* Desktop nav: the Login pill uses the same font size and weight as the
other primary tabs (mirrors the tab sizes in css/mvp.css). Only the type
changes; the pill styling stays. On phones the tabs and Login already match. */
@media (min-width: 781px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: clamp(0.68rem, 0.74vw, 0.82rem);
font-weight: 700;
}
}
@media (min-width: 781px) and (max-width: 1240px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: clamp(0.58rem, 0.72vw, 0.68rem);
}
}
.yv-account-link,
.yv-account-button,
.yv-action {
min-height: 44px;
border: 1px solid rgba(27, 19, 43, 0.14);
border-radius: 999px;
background: rgba(255, 255, 255, 0.82);
color: var(--ink-900, #1b132b);
font: 700 0.9rem var(--font-body);
padding: 0.58rem 0.9rem;
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
text-decoration: none;
}
.yv-account-link--primary,
.yv-action {
background: var(--grad-accent, linear-gradient(135deg, #7ba686, #e0a869));
border-color: transparent;
color: #1b132b;
}
.yv-account-button:focus-visible,
.yv-account-link:focus-visible,
.yv-action:focus-visible,
.yv-link-button:focus-visible {
outline: 3px solid rgba(61, 153, 112, 0.45);
outline-offset: 3px;
}
.yv-account-avatar {
width: 34px;
height: 34px;
border-radius: 50%;
display: grid;
place-items: center;
overflow: hidden;
background: #dfeee5;
color: #244b34;
font-weight: 700;
flex: none;
}
.yv-account-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.yv-account-name {
max-width: 14ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.yv-plan-badge {
border-radius: 999px;
background: rgba(123, 166, 134, 0.18);
padding: 0.18rem 0.52rem;
font-size: 0.78rem;
white-space: nowrap;
}
.yv-account-panel {
position: absolute;
right: 0;
top: calc(100% + 8px);
z-index: 90;
min-width: 210px;
background: var(--paper, #fffaf2);
border: 1px solid rgba(27, 19, 43, 0.12);
border-radius: 12px;
box-shadow: 0 18px 50px rgba(27, 19, 43, 0.18);
padding: 8px;
}
.yv-account-panel a,
.yv-account-panel button,
.yv-account-note {
min-height: 44px;
width: 100%;
display: flex;
align-items: center;
padding: 0.65rem 0.75rem;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--ink-900, #1b132b);
font: 700 0.9rem var(--font-body);
text-decoration: none;
text-align: left;
}
.yv-account-note--strong {
font-weight: 700;
min-height: auto;
padding-bottom: 0.2rem;
}
.yv-account-summary {
display: flex;
align-items: center;
gap: 0.65rem;
padding: 0.55rem 0.75rem 0.25rem;
}
.yv-account-panel a:hover,
.yv-account-panel button:hover {
background: rgba(123, 166, 134, 0.14);
}
.yv-account-skeleton {
width: 210px;
height: 44px;
border-radius: 999px;
background: linear-gradient(90deg, rgba(27,19,43,.08), rgba(27,19,43,.16), rgba(27,19,43,.08));
background-size: 180% 100%;
animation: yvHeaderPulse 1.4s ease-in-out infinite;
}
.yv-toast {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 99999;
max-width: min(360px, calc(100vw - 36px));
padding: 0.9rem 1rem;
border-radius: 12px;
background: #244b34;
color: #fff;
box-shadow: 0 18px 48px rgba(0,0,0,.22);
opacity: 0;
transform: translateY(10px);
pointer-events: none;
transition: opacity .2s ease, transform .2s ease;
}
.yv-toast.is-visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.yv-modal {
position: fixed;
inset: 0;
z-index: 99998;
display: grid;
place-items: center;
padding: 20px;
background: rgba(27, 19, 43, 0.48);
}
.yv-modal__card {
width: min(520px, 100%);
max-height: calc(100vh - 40px);
overflow: auto;
background: var(--paper, #fffaf2);
border-radius: 16px;
padding: 1.4rem;
box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.yv-modal__card--wide {
width: min(760px, 100%);
}
.yv-modal__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.yv-modal__head h2 {
margin: 0;
}
.yv-modal__close {
width: 38px;
height: 38px;
border: 1px solid rgba(27,19,43,.14);
border-radius: 50%;
background: #fff;
font: 700 1rem var(--font-body);
cursor: pointer;
}
.yv-field,
.yv-check {
display: grid;
gap: 0.45rem;
margin: 1rem 0;
font-weight: 700;
}
.yv-field input {
min-height: 44px;
border: 1px solid rgba(27,19,43,.18);
border-radius: 10px;
padding: 0.7rem 0.85rem;
font: inherit;
}
.yv-field select {
min-height: 44px;
border: 1px solid rgba(27,19,43,.18);
border-radius: 10px;
padding: 0.7rem 0.85rem;
font: inherit;
background: #fff;
}
.yv-check {
grid-template-columns: auto 1fr;
align-items: start;
font-weight: 500;
line-height: 1.45;
}
.yv-check input {
margin-top: 0.2rem;
width: 20px;
height: 20px;
}
.yv-account-section {
border-top: 1px solid rgba(27,19,43,.12);
padding-top: 1rem;
margin-top: 1rem;
}
.yv-account-section h3 {
margin: 0 0 0.8rem;
font-size: 1.05rem;
}
.yv-account-avatar--large {
width: 96px;
height: 96px;
font-size: 1.7rem;
margin: 0.25rem 0 0.75rem;
}
/* The large avatar is the "change photo" button. */
.yv-photo-button {
position: relative;
display: inline-block;
padding: 0;
border: 0;
background: none;
border-radius: 50%;
cursor: pointer;
}
.yv-photo-button .yv-account-avatar--large {
margin: 0;
}
.yv-photo-button__badge {
position: absolute;
right: 0;
bottom: 0;
width: 32px;
height: 32px;
display: grid;
place-items: center;
border: 2px solid var(--paper, #fffaf2);
border-radius: 50%;
background: #244b34;
color: #fff;
}
.yv-photo-button__badge svg {
width: 16px;
height: 16px;
}
.yv-photo-button:hover .yv-account-avatar--large {
filter: brightness(0.92);
}
.yv-photo-button:focus-visible {
outline: 3px solid rgba(61, 153, 112, 0.45);
outline-offset: 3px;
}
.yv-link-button--danger {
color: #9f2d20;
padding-left: 0;
}
.yv-delete-list {
margin: 0 0 0.8rem;
padding-left: 1.2rem;
}
.yv-delete-list li {
margin: 0.25rem 0;
}
.yv-photo-hint {
margin: 0.5rem 0 0.25rem;
color: var(--text-soft, #5b5466);
font-size: 0.85rem;
}

/* Photo crop dialog (js/photo-crop.js). Sits above the account modal. */
.yv-crop {
position: fixed;
inset: 0;
z-index: 100000;
display: grid;
place-items: center;
padding: 16px;
background: rgba(27, 19, 43, 0.6);
}
.yv-crop__card {
width: min(400px, 100%);
max-height: calc(100vh - 32px);
overflow: auto;
background: var(--paper, #fffaf2);
border-radius: 16px;
padding: 1.2rem;
box-shadow: 0 24px 70px rgba(0,0,0,.28);
display: grid;
justify-items: center;
gap: 0.8rem;
}
.yv-crop__card h2 {
margin: 0;
justify-self: start;
font-size: 1.2rem;
}
.yv-crop__help {
margin: 0;
justify-self: start;
color: var(--text-soft, #5b5466);
font-size: 0.88rem;
}
.yv-crop__stage {
position: relative;
overflow: hidden;
border-radius: 12px;
background: #1b132b;
cursor: grab;
touch-action: none;
user-select: none;
}
.yv-crop__stage:active {
cursor: grabbing;
}
.yv-crop__stage:focus-visible {
outline: 3px solid rgba(61, 153, 112, 0.7);
outline-offset: 3px;
}
.yv-crop__stage canvas {
display: block;
}
.yv-crop__mask {
position: absolute;
inset: 0;
pointer-events: none;
border: 2px solid rgba(255, 255, 255, 0.9);
border-radius: 12px;
}
.yv-crop__stage--round .yv-crop__mask {
border-radius: 50%;
box-shadow: 0 0 0 999px rgba(27, 19, 43, 0.55);
}
.yv-crop__zoom {
width: 100%;
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0.75rem;
font-weight: 700;
}
.yv-crop__zoom input {
width: 100%;
min-height: 44px;
accent-color: #2f6f52;
}
.yv-crop .yv-modal__actions {
justify-self: stretch;
}
.yv-inline-error {
min-height: 1.4em;
color: #9f2d20;
font-weight: 700;
}
.yv-modal__actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
flex-wrap: wrap;
}
.yv-modal__actions--left {
justify-content: flex-start;
}
.yv-action--danger {
background: #9f2d20;
color: #fff;
}
.yv-link-button {
min-height: 44px;
border: 0;
background: transparent;
color: var(--sage-dk, #2f6f52);
font-weight: 700;
cursor: pointer;
}
@keyframes yvHeaderPulse {
0% { background-position: 0% 50%; }
100% { background-position: 180% 50%; }
}
@media (prefers-reduced-motion: reduce) {
.yv-account-skeleton,
.yv-toast {
animation: none;
transition: none;
}
}
@media (max-width: 680px) {
.yv-account-nav {
width: 100%;
justify-content: center;
}
.yv-account-name {
max-width: 10ch;
}
.yv-account-panel {
right: auto;
left: 50%;
transform: translateX(-50%);
}
}

/* Login pill follows the larger tab sizes in css/mvp.css. */
@media (min-width: 1366px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: 12px;
}
}
@media (min-width: 1440px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: 13px;
}
}
@media (min-width: 1536px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: 14px;
}
}
@media (min-width: 1920px) {
.yv-split-tabs #yvAccountNav .yv-account-login {
font-size: 16px;
}
}
/* "Sign Up as Teacher" tab: hidden for signed-in teachers and admins
(auth-header.js toggles the class on <html>). */
.yv-hide-teacher-signup [data-tab="teacher-signup"] {
display: none !important;
}
.yv-field-hint {
display: block;
margin: -4px 0 6px;
font-size: .82rem;
color: rgba(27,19,43,.62);
}
