/* Shared reading scale and navigation; loaded after feature styles. */
:root { --serif:var(--ui-sans); --text-xs:13px; --text-sm:14px; --text-base:16px; --text-md:16px; --text-lg:18px; --text-xl:22px; --text-2xl:28px; --text-3xl:34px; }
body { line-height:1.75; }
h1,h2,h3,h4,.brand,.page-title { font-family:var(--ui-sans); letter-spacing:0; }
button,input,textarea,select { font-family:inherit; }
.topbar { padding:10px 24px; gap:20px; min-height:80px; }
.brand { font-size:20px; }
.brand span { display:none; }
.tabbar { gap:12px; }
.tabbar .tab { font-weight:500; color:var(--c-ink-600); }
.tabbar .tab.active { color:var(--c-ink-900); background:var(--c-ink-100); font-weight:650; }
.tabbar .tab .ti { width:25px; height:25px; stroke-width:1.8; }
.tabbar .tab .tl { letter-spacing:0; white-space:nowrap; }
.tabbar .tab.active::after { display:none; }
.privacy-entry { color:inherit; text-underline-offset:4px; }
.auth-privacy-note { text-align:center; margin:14px 0; color:var(--c-ink-600); font-size:14px; line-height:1.8; }
.phone-consent { font-size:14px; }
.account-identity p,.account-role,.account-menu-row small,.account-cert p,.account-cert details { font-size:14px; }
.account-menu-row strong,.account-cert h3 { font-size:16px; }
.account-group h3 { font-size:15px; }
.account-menu-row { padding-top:18px; padding-bottom:18px; }
.account-cert-action,.account-exit,.account-cert-details .btn { font-size:14px; }
.classroom-heading p,.classroom-shortcut small,.classroom-next small,.classroom-lesson-copy small,.classroom-lesson-status,.workspace-task small,.classroom-more,.classroom-month,.classroom-filters button { font-size:14px; line-height:1.75; }
.classroom-shortcut strong,.classroom-lesson-copy strong,.workspace-task strong { font-size:16px; }
.classroom-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
.classroom-shortcuts.parent { grid-template-columns:repeat(3,minmax(0,1fr)); }
.classroom-calendar-tools { row-gap:14px; }
.classroom-month input { width:165px; font-size:14px; }
.classroom-lesson-status { flex-shrink:1; min-width:40px; }
.account-guest p,.classroom-empty p,.phone-status,.auth-hint { font-size:14px; }
@media(min-width:1000px) {
 .tabbar { position:static; height:60px; padding:0; margin:0 auto; background:none; box-shadow:none; border:0; backdrop-filter:none; flex:0 1 auto; }
 .tabbar .tab { flex:0 0 auto; flex-direction:row; min-width:92px; height:54px; padding:0 18px; border-radius:14px; gap:10px; font-size:17px; }
}
@media(max-width:999px) {
 .topbar { min-height:64px; padding:8px 16px; gap:10px; }
 .brand { font-size:18px; }
 .tabbar { position:fixed; left:0; right:0; bottom:0; margin:0; height:calc(78px + env(safe-area-inset-bottom,0px)); padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px)); gap:4px; border-radius:18px 18px 0 0; border:1px solid var(--c-ink-200); background:var(--surface-glass); backdrop-filter:blur(20px); box-shadow:0 -4px 24px rgba(0,0,0,.06); }
 .tabbar .tab { flex:1 1 0; min-width:0; height:64px; padding:5px 0; flex-direction:column; gap:4px; font-size:14px; border-radius:12px; }
 .tabbar .tab .ti { width:25px; height:25px; }
 .tabbar .tab .dot { top:8px; right:calc(50% - 20px); left:auto; }
 .app-main { padding-bottom:calc(116px + env(safe-area-inset-bottom,0px)); }
 .footer { padding-bottom:calc(105px + env(safe-area-inset-bottom,0px)); }
 .classroom-grid { grid-template-columns:1fr; }
}
@media(max-width:600px) {
 .account-identity h2 { font-size:22px; }
 .account-identity .btn { font-size:14px; }
 .classroom-heading p,.classroom-shortcut small,.classroom-next p,.classroom-lesson-copy small { font-size:14px; }
 .classroom-shortcut strong,.classroom-lesson-copy strong { font-size:16px; }
 .classroom-shortcuts.parent { grid-template-columns:1fr 1fr; }
 .classroom-shortcut { align-items:flex-start; padding:16px 13px; gap:9px; }
 .classroom-next { flex-wrap:wrap; }
 .classroom-next .btn { font-size:14px; }
 .classroom-calendar-tools { flex-direction:column; align-items:stretch; }
 .classroom-filters { margin:0; }
 .classroom-filters button { padding:8px 14px; }
 .classroom-lesson-status { font-size:13px; max-width:64px; }
 .account-cert-copy { flex-basis:160px; }
 .account-cert-action { margin-left:44px; }
 .account-cert-main { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:start; }
 .account-cert-action { grid-column:2; margin:4px 0 0; justify-self:start; }
}
