/* Offline: system UI + Georgia headings (no Google Fonts) */
:root { --ink:#20312d; --muted:#687772; --page:#f7f8f4; --paper:#fffefa; --line:#dce3dd; --soft:#eef3ee; --forest:#176b55; --forest-dark:#115442; --mint:#d9f0e5; --amber:#e7a83a; --red:#bc4b48; --shadow:0 10px 28px rgba(27,54,46,.08); --radius:14px; --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--page); font-family:var(--font); font-size:15px; line-height:1.45; } button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(23,107,85,.22); outline-offset:2px; } h1,h2,h3,p { margin:0; } h1 { font:700 clamp(1.85rem,3vw,2.55rem)/1.15 Georgia,"Times New Roman",serif; letter-spacing:-.035em; } .app-shell { min-height:100vh; }.topbar { height:72px; display:flex; align-items:center; gap:32px; padding:0 max(24px,calc((100vw - 1280px)/2)); background:rgba(255,254,250,.96); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }.wordmark { border:0; background:none; display:flex; align-items:center; gap:10px; padding:0; font-size:1.05rem; font-weight:700; color:var(--ink); }.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--forest); color:#fff; font-size:1.2rem; font-weight:700; }.brand-mark.small { width:28px; height:28px; border-radius:8px; font-size:1rem; }.topbar nav { display:flex; gap:4px; }.nav-link,.text-button,.breadcrumb button { border:0; background:none; color:var(--muted); padding:8px 10px; font-weight:600; }.nav-link.active,.nav-link:hover,.text-button:hover,.breadcrumb button:hover { color:var(--forest); }.account { margin-left:auto; display:flex; gap:16px; align-items:center; color:var(--muted); font-size:.9rem; }.content { max-width:1280px; padding:42px 24px 64px; margin:auto; }.page-intro { display:flex; gap:24px; align-items:flex-end; justify-content:space-between; margin-bottom:30px; }.page-intro p:not(.eyebrow) { color:var(--muted); margin-top:8px; }.eyebrow { color:var(--forest); font-size:.72rem; letter-spacing:.11em; font-weight:700; }.button { border:1px solid transparent; border-radius:10px; min-height:40px; padding:9px 15px; font-weight:700; font-size:.9rem; transition:background .15s,border-color .15s,transform .15s; }.button:hover { transform:translateY(-1px); }.primary { background:var(--forest); color:white; }.primary:hover { background:var(--forest-dark); }.secondary { background:var(--paper); border-color:var(--line); color:var(--ink); }.secondary:hover { background:var(--soft); border-color:#c7d5cc; }.wide { width:100%; }.class-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; }.class-card { text-align:left; border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:var(--radius); padding:20px; min-height:178px; transition:transform .15s,box-shadow .15s,border-color .15s; }.class-card:hover { transform:translateY(-3px); border-color:#a9c6b5; box-shadow:var(--shadow); }.class-card-top { display:flex; justify-content:space-between; margin-bottom:23px; }.class-icon { display:grid; place-items:center; width:32px; height:32px; background:var(--mint); color:var(--forest); border-radius:9px; font-size:1.1rem; }.open-arrow { color:var(--forest); font-size:1.3rem; }.class-card h2 { font-size:1.08rem; }.class-card p { color:var(--muted); font-size:.88rem; margin:4px 0 19px; }.class-meta { color:var(--muted); display:flex; gap:13px; font-size:.78rem; }.empty-state { padding:64px 20px; text-align:center; border:1px dashed #bfd0c4; background:rgba(255,254,250,.6); border-radius:var(--radius); color:var(--muted); }.empty-state h2 { color:var(--ink); font-size:1.15rem; margin:9px 0 5px; }.empty-state p { margin-bottom:18px; }.empty-icon { color:var(--forest); font-size:2.2rem; }.breadcrumb { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.85rem; margin-bottom:16px; }.breadcrumb button { padding:0; }.gradebook-intro { margin-bottom:20px; }.action-row { display:flex; flex-wrap:wrap; gap:8px; }.snapshot { display:grid; grid-template-columns:repeat(3,minmax(155px,1fr)) auto; align-items:stretch; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); overflow:hidden; margin-bottom:18px; }.snapshot > div { display:flex; flex-direction:column; justify-content:center; padding:17px 20px; border-right:1px solid var(--line); }.snapshot span { color:var(--muted); font-size:.76rem; font-weight:600; }.snapshot strong { font-size:1.45rem; margin:3px 0 1px; }.snapshot small { color:var(--muted); font-size:.73rem; }.attention { color:var(--red); }.insight-link { align-self:stretch; border:0; background:#f3f7f2; color:var(--forest); padding:0 19px; font-weight:700; font-size:.85rem; }.insight-link:hover { background:#e5f1e8; }.gradebook-toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:16px 0; }.search { width:min(300px,100%); display:flex; align-items:center; gap:8px; padding:0 10px; height:40px; background:var(--paper); border:1px solid var(--line); border-radius:10px; color:var(--muted); }.search input { min-width:0; flex:1; border:0; background:transparent; color:var(--ink); outline:0; }.assignment-select { color:var(--muted); font-size:.84rem; }.assignment-select select { background:transparent; border:0; color:var(--ink); font-weight:700; padding:5px; }.keyboard-tip { margin-left:auto; color:var(--muted); font-size:.78rem; }.gradebook-shell { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--paper); box-shadow:0 2px 4px rgba(27,54,46,.02); }.grid-scroll { overflow:auto; max-height:calc(100vh - 365px); min-height:310px; }.grade-grid { width:100%; border-collapse:separate; border-spacing:0; min-width:720px; }.grade-grid th,.grade-grid td { border-bottom:1px solid var(--line); border-right:1px solid var(--line); padding:10px 12px; background:var(--paper); }.grade-grid tr:last-child > * { border-bottom:0; }.grade-grid tr > *:last-child { border-right:0; }.grade-grid thead th { position:sticky; top:0; z-index:4; vertical-align:bottom; text-align:center; background:#f6f9f5; color:var(--ink); font-size:.79rem; min-width:130px; }.grade-grid thead th span { display:block; font-weight:700; }.grade-grid thead small,.grade-grid tbody small { display:block; color:var(--muted); font-size:.67rem; font-weight:500; margin-top:2px; }.student-column { position:sticky; left:0; z-index:3; min-width:200px!important; text-align:left!important; }.grade-grid thead .student-column { z-index:5; }.grade-grid tbody .student-column { font-size:.87rem; font-weight:700; }.grade-grid tbody tr:hover > * { background:#fbfdf9; }.grade-grid tbody tr:hover > .student-column { background:#fbfdf9; }.grade-cell { position:relative; padding:5px!important; text-align:center; min-width:130px; }.score-input { width:76px; border:1px solid transparent; border-radius:7px; background:transparent; padding:7px 5px; color:var(--ink); text-align:center; font-weight:700; font-variant-numeric:tabular-nums; }.score-input:hover { border-color:#cbd9cf; background:#fff; }.score-input:focus { border-color:var(--forest); background:#fff; outline:none; }.score-input.saving { opacity:.55; }.grade-menu { width:24px; height:28px; padding:0; border:0; border-radius:6px; background:transparent; color:#98a59f; font-weight:700; }.grade-menu:hover { background:var(--soft); color:var(--forest); }.grade-cell.late { box-shadow:inset 0 -3px 0 var(--amber); }.grade-cell.excused { background:#f7f5ec; }.grade-cell.excused .grade-menu { background:#eee6c9; color:#806213; font-size:.7rem; }.average-column { min-width:135px!important; text-align:center!important; white-space:nowrap; }.average-column strong { margin-right:6px; font-variant-numeric:tabular-nums; }.letter { display:inline-block; min-width:26px; padding:2px 5px; border-radius:5px; font-size:.72rem; }.letter-A { color:#08714e; background:#d9f2e6; }.letter-B { color:#17647a; background:#d9eef4; }.letter-C { color:#826000; background:#fff1c8; }.letter-D,.letter-F { color:#a33c3a; background:#f9dedc; }.muted { color:#9aa49f; }.loading { padding:80px; color:var(--muted); text-align:center; }.login-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 15% 15%,#dcefe4 0,transparent 30%),var(--page); }.login-card { width:min(430px,100%); padding:34px; border:1px solid var(--line); border-radius:20px; background:var(--paper); box-shadow:var(--shadow); }.login-card > .brand-mark { margin-bottom:20px; }.login-card h1 { font-size:2rem; }.login-copy { color:var(--muted); margin:10px 0 22px; }.auth-tabs { display:flex; border-bottom:1px solid var(--line); margin-bottom:20px; }.auth-tab { border:0; border-bottom:2px solid transparent; background:transparent; padding:10px 14px; color:var(--muted); font-weight:700; }.auth-tab.active { border-color:var(--forest); color:var(--forest); } label { display:block; color:var(--ink); font-weight:700; font-size:.83rem; margin-bottom:14px; }.field { width:100%; display:block; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); padding:10px 11px; margin-top:5px; outline:0; }.field:focus { border-color:var(--forest); }.form-error { min-height:0; color:var(--red); font-size:.84rem; font-weight:600; }.form-error:not(:empty) { margin-bottom:12px; }.modal-overlay { position:fixed; inset:0; display:grid; place-items:center; padding:18px; background:rgba(26,48,40,.36); z-index:40; }.modal-card { position:relative; width:min(520px,100%); max-height:90vh; overflow:auto; background:var(--paper); border-radius:16px; padding:26px; box-shadow:0 18px 45px rgba(19,47,37,.22); }.modal-card h2 { font:700 1.35rem/1.2 Georgia,"Times New Roman",serif; margin:0 34px 20px 0; }.modal-close { position:absolute; right:15px; top:12px; border:0; background:none; color:var(--muted); font-size:1.7rem; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.form-note { font-size:.8rem; color:var(--muted); margin:-3px 0 18px; }.checkbox-label { display:flex; align-items:center; gap:8px; font-weight:600; color:var(--muted); }.checkbox-label input { accent-color:var(--forest); width:16px; height:16px; }.modal-actions { display:flex; justify-content:flex-end; gap:8px; align-items:center; margin-top:21px; }.danger-outline { background:white; color:var(--red); border-color:#e9c0bf; margin-right:auto; }.score-summary { display:flex; align-items:flex-end; gap:12px; margin-bottom:13px; }.score-summary label { flex:1; margin:0; }.score-summary span { color:var(--muted); font-size:.85rem; padding-bottom:11px; }.insights { display:grid; gap:13px; }.insight-stat { padding:13px; background:var(--soft); border-radius:10px; }.insight-stat span { display:block; color:var(--muted); font-size:.78rem; }.insight-stat strong { font-size:1.05rem; }.insights h3 { margin-top:8px; font-size:.95rem; }.insights ul { list-style:none; padding:0; margin:0; border-top:1px solid var(--line); }.insights li { display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); }.positive-note { color:var(--forest); background:#e5f4e9; padding:12px; border-radius:9px; }.toast-container { position:fixed; right:18px; bottom:18px; z-index:60; display:grid; gap:8px; }.toast { max-width:340px; padding:12px 14px; border-radius:10px; background:var(--ink); color:white; box-shadow:var(--shadow); font-weight:600; font-size:.86rem; animation:in .2s ease; }.toast.success { background:var(--forest); }.toast.error { background:var(--red); } @keyframes in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (max-width:780px) { .topbar { height:auto; min-height:62px; padding:12px 16px; gap:10px; flex-wrap:wrap; }.topbar nav { order:3; width:100%; }.account span { display:none; }.content { padding:28px 16px 48px; }.page-intro { align-items:flex-start; flex-direction:column; }.action-row { width:100%; }.snapshot { grid-template-columns:1fr 1fr; }.snapshot > div { border-bottom:1px solid var(--line); }.snapshot > div:nth-child(2) { border-right:0; }.insight-link { grid-column:1/-1; height:42px; }.keyboard-tip { display:none; }.form-grid { grid-template-columns:1fr; gap:0; }.login-card { padding:26px; }.gradebook-intro h1 { font-size:2rem; } }
@media (max-width:430px) { .account { margin-left:auto; }.topbar nav { overflow-x:auto; }.snapshot { grid-template-columns:1fr; }.snapshot > div { border-right:0; }.action-row .button { flex:1 1 auto; }.gradebook-toolbar { align-items:stretch; }.assignment-select { display:flex; align-items:center; justify-content:space-between; }.score-summary { align-items:stretch; flex-direction:column; gap:0; }.score-summary span { padding:0; }.modal-actions { flex-wrap:wrap; }.modal-actions .danger-outline { margin-right:auto; } }


/* Theme toggle, editing affordances, and Student Rewards */
.theme-toggle { width:34px; height:34px; border:1px solid var(--line); border-radius:9px; background:var(--paper); color:var(--forest); font-size:1.1rem; line-height:1; }
.theme-toggle:hover { background:var(--soft); }
.assignment-menu { float:right; border:0; border-radius:5px; background:transparent; color:var(--muted); font-weight:700; padding:0 3px; line-height:1; }
.assignment-menu:hover { color:var(--forest); background:var(--mint); }
.student-name-button { border:0; padding:0; background:transparent; color:var(--ink); font-weight:700; text-align:left; }
.student-name-button:hover { color:var(--forest); text-decoration:underline; }
.rewards-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr); gap:18px; align-items:start; }
.rewards-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); padding:20px; }
.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.section-heading h2 { font:700 1.2rem/1.2 Georgia,"Times New Roman",serif; }
.section-heading p { color:var(--muted); font-size:.82rem; margin-top:3px; }
.section-heading > strong { color:var(--forest); white-space:nowrap; font-size:.82rem; background:var(--mint); padding:6px 8px; border-radius:7px; }
.reward-students { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.reward-student { display:grid; grid-template-columns:1fr auto; column-gap:8px; text-align:left; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); padding:11px; }
.reward-student:hover { background:var(--soft); border-color:#abc7b5; }
.reward-student span { font-weight:700; font-size:.88rem; align-self:center; }
.reward-student strong { color:var(--forest); font-size:1.1rem; text-align:right; }
.reward-student small { grid-column:2; color:var(--muted); font-size:.67rem; text-align:right; }
.transactions { list-style:none; margin:0; padding:0; }
.transactions li { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.transactions li:last-child { border-bottom:0; }
.transactions li > div { display:grid; gap:2px; }
.transactions li strong { font-size:.85rem; }.transactions small { color:var(--muted); font-size:.75rem; }
.transaction-points { display:grid; place-items:center; min-width:44px; height:32px; border-radius:8px; font-weight:700; font-variant-numeric:tabular-nums; }
.transaction-points.earned { background:#d9f2e6; color:#08714e; }.transaction-points.spent { background:#fff0cf; color:#846008; }
.empty-rewards { padding:28px 10px; color:var(--muted); text-align:center; font-size:.86rem; }
html[data-theme="dark"] { --ink:#e7f0ea; --muted:#a9b8b0; --page:#101916; --paper:#17231f; --line:#30423a; --soft:#20332b; --forest:#65c7a0; --forest-dark:#48ad87; --mint:#254b3c; --amber:#edbf59; --red:#ee817d; --shadow:0 10px 28px rgba(0,0,0,.28); color-scheme:dark; }
html[data-theme="dark"] body { background:var(--page); } html[data-theme="dark"] .topbar { background:rgba(23,35,31,.96); }
html[data-theme="dark"] .field,html[data-theme="dark"] .score-input:focus,html[data-theme="dark"] .score-input:hover { background:#101a16; color:var(--ink); }
html[data-theme="dark"] .grade-grid thead th { background:#1c2a24; } html[data-theme="dark"] .grade-grid th,html[data-theme="dark"] .grade-grid td { background:var(--paper); }
html[data-theme="dark"] .grade-grid tbody tr:hover > *,html[data-theme="dark"] .grade-grid tbody tr:hover > .student-column { background:#1d2d26; }
html[data-theme="dark"] .grade-cell.excused { background:#292719; } html[data-theme="dark"] .grade-cell.excused .grade-menu { background:#4a4120; color:#f2ce63; }
html[data-theme="dark"] .secondary,html[data-theme="dark"] .danger-outline { background:var(--paper); color:var(--ink); }
html[data-theme="dark"] .primary { color:#102118; } html[data-theme="dark"] .login-page { background:radial-gradient(circle at 15% 15%,#1f4c3c 0,transparent 30%),var(--page); }
html[data-theme="dark"] .letter-A,html[data-theme="dark"] .transaction-points.earned { background:#1d4a38; color:#8de2bb; }
html[data-theme="dark"] .letter-B { background:#1d4148; color:#8ed8eb; } html[data-theme="dark"] .letter-C,html[data-theme="dark"] .transaction-points.spent { background:#50451f; color:#ffd976; }
html[data-theme="dark"] .letter-D,html[data-theme="dark"] .letter-F { background:#542c2a; color:#ffaaa4; }
@media (max-width:900px) { .rewards-layout { grid-template-columns:1fr; } }
@media (max-width:500px) { .reward-students { grid-template-columns:1fr; }.section-heading { flex-direction:column; }.account { gap:8px; } }


/* Complete dark-surface coverage: no light panels remain after switching themes. */
html[data-theme="dark"] .empty-state { background:rgba(23,35,31,.7); border-color:#3a5146; }
html[data-theme="dark"] .insight-link { background:var(--soft); color:var(--forest); }
html[data-theme="dark"] .insight-link:hover { background:#294537; }
html[data-theme="dark"] .score-input:hover,html[data-theme="dark"] .score-input:focus { background:#0f1915; border-color:var(--forest); }
html[data-theme="dark"] .grade-grid tbody tr:hover > *,html[data-theme="dark"] .grade-grid tbody tr:hover > .student-column { background:#1d2d26; }
html[data-theme="dark"] .modal-overlay { background:rgba(0,0,0,.62); }
html[data-theme="dark"] .danger-outline { background:#2a2423; border-color:#70413e; color:#ffaaa4; }
html[data-theme="dark"] .secondary:hover,html[data-theme="dark"] .theme-toggle:hover { background:#294037; border-color:#496759; }
html[data-theme="dark"] .class-card:hover,html[data-theme="dark"] .reward-student:hover { border-color:#4d7764; background:#1d3028; }
html[data-theme="dark"] .grade-grid thead th { background:#1c2a24; }
html[data-theme="dark"] .assignment-select select { color:var(--ink); }
html[data-theme="dark"] .brand-mark { color:#102118; }


/* IEP Goal Tracker */
.goals-list { display:grid; gap:16px; }
.goal-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); padding:20px; }
.goal-card header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.goal-card h2 { font:700 1.25rem/1.22 Georgia,"Times New Roman",serif; margin-top:3px; }
.goal-student { color:var(--forest); font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.goal-description { color:var(--muted); margin-top:7px; max-width:720px; font-size:.88rem; }
.goal-actions { display:flex; gap:8px; flex-shrink:0; }
.goal-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 15px; color:var(--muted); font-size:.78rem; margin:16px 0 8px; }
.goal-meta strong { color:var(--ink); margin-left:auto; font-variant-numeric:tabular-nums; }
.goal-status { text-transform:capitalize; padding:3px 7px; border-radius:5px; background:var(--soft); color:var(--forest); font-weight:700; }
.goal-progress { height:8px; overflow:hidden; border-radius:99px; background:var(--soft); margin-bottom:17px; }
.goal-progress span { display:block; height:100%; border-radius:inherit; background:var(--forest); transition:width .2s ease; }
.benchmark-list { display:grid; border-top:1px solid var(--line); }
.benchmark-row { display:grid; grid-template-columns:28px minmax(0,1fr) auto auto; align-items:center; gap:10px; text-align:left; padding:11px 4px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); }
.benchmark-row:last-child { border-bottom:0; }
.benchmark-row:hover { background:var(--soft); }
.benchmark-check { display:grid; place-items:center; width:22px; height:22px; border:1px solid var(--line); border-radius:50%; color:white; font-size:.77rem; }
.benchmark-check.complete { background:var(--forest); border-color:var(--forest); }
.benchmark-copy { display:grid; gap:2px; }.benchmark-copy strong { font-size:.88rem; }.benchmark-copy small { color:var(--muted); font-size:.75rem; }
.benchmark-progress { color:var(--forest); font-size:.86rem; font-variant-numeric:tabular-nums; }.row-menu { color:var(--muted); font-size:.76rem; }
.no-benchmarks { padding:16px 3px 2px; color:var(--muted); font-size:.84rem; border-top:1px solid var(--line); }
.benchmark-complete { padding-top:25px; }
html[data-theme="dark"] .benchmark-row:hover { background:#1d3028; }
@media (max-width:680px) { .goal-card header { flex-direction:column; }.goal-actions { width:100%; }.goal-actions .button { flex:1; }.goal-meta strong { margin-left:0; }.benchmark-row { grid-template-columns:25px minmax(0,1fr) auto; }.row-menu { display:none; } }

/* Local account picker (name-only auth) */
.account-list { display:grid; gap:10px; margin-top:4px; }
.account-pick { width:100%; text-align:left; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); padding:14px 16px; font-weight:700; font-size:1rem; min-height:48px; }
.account-pick:hover { border-color:var(--forest); background:var(--soft); }
.account-empty { color:var(--muted); font-size:.9rem; margin:8px 0 16px; }
html[data-theme="dark"] .account-pick:hover { background:#1d3028; border-color:#4d7764; }

/* Backup & restore (login + modal) — touch-friendly, one column */
.login-backup { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.backup-actions { display: grid; gap: 10px; }
.backup-panel { display: grid; gap: 14px; }
.backup-panel p { color: var(--muted); font-size: .95rem; }
.backup-panel strong { color: var(--ink); }
.backup-rule { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.backup-file-label { display: grid; place-items: center; min-height: 48px; text-align: center; cursor: pointer; }
.backup-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
#backup-status { min-height: 1.2em; }
/* Topbar account cluster: name + Back up data / Restore data next to Sign out */
.account { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.account-name { font-weight: 600; color: var(--ink); }
.account-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-action { min-height: 44px; padding: 8px 12px; font-size: .9rem; white-space: nowrap; }
@media (max-width: 900px) {
  .account-actions { width: 100%; }
  .account-action { flex: 1 1 auto; }
}
@media (max-width: 430px) {
  .account .text-button { min-height: 44px; min-width: 44px; padding: 8px 10px; }
  .backup-actions .button { min-height: 48px; width: 100%; }
}

.class-card { display:flex; flex-direction:column; gap:10px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.class-card-open { border:0; background:none; text-align:left; padding:0; color:inherit; width:100%; min-height:44px; }
.class-card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.class-card-actions .button { min-height:44px; flex:1 1 auto; }

.pwa-install-bar { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:14px max(24px, calc((100vw - 1280px)/2)); background:#143f34; color:#f7f8f4; }
.pwa-install-bar p { margin:4px 0 0; color:#d5e6df; font-size:.92rem; }
.pwa-install-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pwa-install-bar .text-button { color:#d5e6df; min-height:44px; }
.install-steps { margin:0; padding-left:1.2em; display:grid; gap:8px; color:var(--ink); }
.install-steps li { line-height:1.4; }
@media (max-width: 480px) {
  .pwa-install-bar { padding:14px 16px; }
  .pwa-install-actions { width:100%; }
  .pwa-install-actions .button { width:100%; min-height:48px; }
}
