:root{--bg:#f8fafc;--surface:#fff;--text:#0f172a;--muted:#334155;--border:#94a3b8;--accent:#0f52ba;--accent-text:#fff;--selected-bg:#dbeafe;--active-ring:#1d4ed8;--error-bg:#fee2e2;--error-text:#991b1b;--pass-bg:#dcfce7;--pass-text:#166534}.theme-oscuro{--bg:#0f172a;--surface:#1e293b;--text:#f8fafc;--muted:#cbd5e1;--border:#475569;--accent:#38bdf8;--accent-text:#0f172a;--selected-bg:#1e3a8a;--active-ring:#38bdf8;--error-bg:#7f1d1d;--error-text:#fecaca;--pass-bg:#14532d;--pass-text:#bbf7d0}.theme-alto-contraste{--bg:#000;--surface:#000;--text:#fff;--muted:#ff0;--border:#fff;--accent:#ff0;--accent-text:#000;--selected-bg:#036;--active-ring:#0f0;--error-bg:#000;--error-text:#ff6b6b;--pass-bg:#000;--pass-text:#0f0}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}.app-shell{background:var(--bg);min-height:100vh;color:var(--text);padding:1rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{background:var(--accent);color:var(--accent-text);z-index:100;padding:.75rem 1rem;font-weight:700;position:absolute;top:0;left:-9999px}.skip-link:focus{top:1rem;left:1rem}:focus-visible{outline:3px solid var(--active-ring);outline-offset:2px}.app-header{background:var(--surface);border:2px solid var(--border);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1100px;margin:0 auto 1.5rem;padding:1rem 1.25rem;display:flex}.app-header h1{margin:0;font-size:1.5rem}.tagline{color:var(--muted);margin:.25rem 0 0}.a11y-controls{flex-wrap:wrap;gap:1rem;display:flex}.a11y-controls select{background:var(--surface);color:var(--text);border:2px solid var(--border);border-radius:4px;padding:.35rem .5rem}.app-main{gap:1.5rem;max-width:1100px;margin:0 auto;display:grid}.excel-sim,.lesson-card,.media-player-card{background:var(--surface);border:2px solid var(--border);border-radius:8px;padding:1rem}.formula-toolbar{flex-wrap:wrap;align-items:end;gap:1rem;margin-bottom:.75rem;display:flex}.name-box-form,.formula-box-wrap{flex-direction:column;gap:.25rem;display:flex}.formula-box-wrap{flex:1;min-width:240px}.toolbar-label{font-size:.875rem;font-weight:600}.name-box-input,.formula-bar-input{border:2px solid var(--border);background:var(--surface);color:var(--text);border-radius:4px;padding:.45rem .6rem;font-family:monospace;font-size:.95rem}.name-box-input{width:110px}.grid-scroll-container{overflow-x:auto}.excel-grid{border-collapse:collapse;width:100%;min-width:560px;display:table}.grid-row{display:table-row}.grid-corner,.grid-col-header,.grid-row-header,.grid-cell{border:1px solid var(--border);vertical-align:middle;min-width:90px;height:36px;padding:.4rem .5rem;display:table-cell}.grid-corner,.grid-col-header,.grid-row-header{background:var(--bg);text-align:center;min-width:48px;font-weight:700}.is-active-header{background:var(--selected-bg)}.grid-cell{cursor:cell;position:relative}.grid-cell.is-selected{background:var(--selected-bg)}.grid-cell.is-active{outline:3px solid var(--active-ring);outline-offset:-3px}.grid-cell.is-error{background:var(--error-bg);color:var(--error-text);font-weight:700}.cell-inline-input{background:var(--surface);width:100%;color:var(--text);font:inherit;border:none;padding:0}.sim-status-bar{color:var(--muted);border-top:1px solid var(--border);flex-wrap:wrap;gap:1rem;margin-top:.75rem;padding-top:.5rem;font-size:.85rem;display:flex}.practice-check-box,.quiz-feedback{border:2px solid var(--border);border-radius:6px;margin-top:1rem;padding:.75rem 1rem}.status-pass{background:var(--pass-bg);color:var(--pass-text);border-radius:4px;padding:.5rem}.status-pending{padding:.25rem 0}.quiz-form fieldset{border:1px solid var(--border);border-radius:6px;margin-bottom:1rem;padding:.75rem}.quiz-form label{cursor:pointer;margin:.35rem 0;display:block}button{background:var(--accent);color:var(--accent-text);border:2px solid var(--border);cursor:pointer;border-radius:6px;padding:.5rem 1rem;font-weight:700}.transcript-pre{white-space:pre-wrap;background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:.75rem;font-family:inherit}.app-footer{text-align:center;max-width:1100px;color:var(--muted);margin:1.5rem auto 0;font-size:.9rem}.module-nav{background:var(--surface);border:2px solid var(--border);border-radius:8px;max-width:1100px;margin:0 auto 1.25rem;padding:.75rem 1rem}.module-list{flex-wrap:wrap;gap:.5rem;display:flex}.tab-btn{background:var(--bg);color:var(--text)}.tab-active{background:var(--accent);color:var(--accent-text)}.beta-notice{color:var(--muted);margin:.5rem 0 0;font-size:.9rem}.downloads-box{border:1px solid var(--border);border-radius:6px;margin:1rem 0;padding:.75rem}.downloads-links{flex-wrap:wrap;gap:1rem;display:flex}.download-link{color:var(--accent);font-weight:700}
