/* Ignition universal light/dark mode — v1.21 */
.ignition-theme-toggle{appearance:none;min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid color-mix(in srgb,currentColor 28%,transparent);border-radius:999px;background:transparent;color:inherit;font:700 8px/1 Helvetica,"Helvetica Neue",Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.ignition-theme-toggle:hover{background:color-mix(in srgb,currentColor 8%,transparent);border-color:color-mix(in srgb,currentColor 52%,transparent)}.ignition-theme-toggle:active{transform:scale(.97)}.ignition-theme-toggle:focus-visible{outline:2px solid #ff4d00;outline-offset:2px}.ignition-theme-icon{font-size:13px;line-height:1;font-weight:400}.ignition-theme-header-group{display:flex;align-items:center;gap:8px}.ignition-theme-floating{position:fixed;z-index:10000;top:14px;right:14px;background:color-mix(in srgb,Canvas 90%,transparent);color:CanvasText;box-shadow:0 8px 30px rgba(0,0,0,.14);backdrop-filter:blur(12px)}.ignition-theme-jaime-mobile{display:none}
@media(max-width:1180px){html[data-ignition-surface="public"] .ignition-theme-text{display:none}html[data-ignition-surface="public"] .ignition-theme-toggle{width:34px;padding:0}}
@media(max-width:760px){.ignition-theme-jaime-desktop{display:none!important}.ignition-theme-jaime-mobile{display:inline-flex}.ignition-theme-jaime-mobile .ignition-theme-text{display:none}.ignition-theme-jaime-mobile{width:38px;padding:0;margin-left:auto;margin-right:12px}html[data-ignition-surface="admin"] .ignition-theme-toggle .ignition-theme-text,html[data-ignition-surface="academy"] .ignition-theme-toggle .ignition-theme-text,html[data-ignition-surface="sandbox"] .ignition-theme-toggle .ignition-theme-text{display:none}html[data-ignition-surface="admin"] .ignition-theme-toggle,html[data-ignition-surface="academy"] .ignition-theme-toggle,html[data-ignition-surface="sandbox"] .ignition-theme-toggle{width:34px;padding:0}}

/* Public Ignition site: light is the existing design; dark remaps the core design tokens. */
html[data-ignition-surface="public"][data-ignition-theme="dark"]{color-scheme:dark;--bone:#0c0d0f;--paper:#121416;--ink:#f2f2ed;--ink-soft:#deded9;--muted:#a2a29d;--line:#303236;--line-dark:rgba(255,255,255,.16)}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .site-header{background:rgba(12,13,15,.95)}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .login-entry{color:#b8b8b3}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .login-entry:hover{color:#fff}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .contact-form-side{background:var(--paper)}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .form-step input::placeholder,html[data-ignition-surface="public"][data-ignition-theme="dark"] .form-step textarea::placeholder{color:#6e7074}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .live-browser{background:#16181b;border-color:#36383c}
html[data-ignition-surface="public"][data-ignition-theme="dark"] .browser-bar{background:#1d1f22;border-color:#36383c}

/* Admin dashboard: dark is existing; light mode gets a complete neutral-light remap. */
html[data-ignition-surface="admin"][data-ignition-theme="light"]{color-scheme:light;--bg:#f4f4f1;--p:#ffffff;--p2:#f5f5f2;--ln:#d9d9d3;--txt:#151515;--muted:#6d6d68;--o:#e74700;--g:#25814b}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .side{background:#fbfbf8}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .brand span,html[data-ignition-surface="admin"][data-ignition-theme="light"] .label{color:#777772}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .nav a{color:#575753}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .nav a:hover,html[data-ignition-surface="admin"][data-ignition-theme="light"] .nav a.current{background:#efefeb;color:#111}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .nav b{color:#85857f}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .session small{color:#696964}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .logout{background:#fff;border-color:#cfcfc9;color:#555}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .top{background:rgba(244,244,241,.94)}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .top a{border-color:#cfcfc9;color:#4d4d49}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .top a.primary{border-color:var(--o);color:#b63a04;background:rgba(231,71,0,.05)}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .hero p,html[data-ignition-surface="admin"][data-ignition-theme="light"] .app p{color:#696964}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .status-row{border-color:#e5e5e0}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .status-row span,html[data-ignition-surface="admin"][data-ignition-theme="light"] .app small{color:#777772}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .status-row b{color:#33332f}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .icon{border-color:#d1d1cb}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .search{background:#fff;border-color:#d2d2cc;color:#222}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .page-list a{border-color:#e2e2dd;color:#5d5d58}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .page-list a:hover{border-color:#aaa;color:#111}
html[data-ignition-surface="admin"][data-ignition-theme="light"] .menu{background:#fff;border-color:#ccc;color:#111}

/* Ethereum Academy: dark is existing; light preserves hierarchy while removing the black-on-black developer feel. */
html[data-ignition-surface="academy"][data-ignition-theme="light"]{color-scheme:light;--bg:#f3f4f5;--p:#ffffff;--p2:#f5f6f7;--p3:#eef0f2;--ln:#d8dde2;--ln2:#c7cdd3;--text:#191c20;--muted:#66717b;--dim:#818991;--orange:#e74700;--blue:#126ab8;--green:#168653;--yellow:#9b6b00;--red:#c83d3d;--purple:#704bb8}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .academy-top{background:rgba(243,244,245,.96)}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mode-switch{background:#fff}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mode-switch a{color:#66717b}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mode-switch a.active{color:#fff}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .top-button{background:#fff;color:#4c5660}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .course-side{background:#f8f9fa}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .course-intro p{color:#66717b}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .course-progress>div{background:#dfe3e7}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-side{background:#f8f9fa}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-note{background:#fff8f2;border-color:#e8d1c4;color:#64584f}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-raw pre{background:#eef1f3;color:#37414b}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .academy-toast{background:#fff;color:#222;border-color:#cfd4d9;box-shadow:0 12px 30px rgba(0,0,0,.12)}

/* Smart Contract Sandbox: same tools, conventional light IDE alternative. */
html[data-ignition-surface="sandbox"][data-ignition-theme="light"]{color-scheme:light;--bg:#f3f4f5;--panel:#ffffff;--panel2:#f7f8f9;--ln:#d7dce1;--ln2:#c5cbd1;--txt:#1a1d21;--muted:#65707a;--dim:#818991;--orange:#e74700;--green:#168653;--red:#c83d3d;--blue:#126ab8}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .lab-top{background:rgba(243,244,245,.96)}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .lab-side{background:#f8f9fa}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tab{color:#56616b}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tab:hover,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tab.active{background:#eceff2;color:#15181b}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .editor-card,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .compile-card,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .panel,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .contract-summary,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .function-card{background:#fff;border-color:#d7dce1}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .cardbar{background:#f4f6f8;border-color:#d7dce1}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] textarea,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] input,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] select{background:#fff;color:#1b1e22;border-color:#cbd1d7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .editor-wrap,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .artifact,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .output,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .fn-output{background:#f6f7f8;color:#303840}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tx:hover,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tx.active{background:#eef1f3}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .toast,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .modal{background:#fff;color:#222;border-color:#d2d7dc}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .modal-back{background:rgba(30,35,40,.35)}

/* Study bank: light is existing; dark keeps the familiar blue board-review hierarchy. */
html[data-ignition-surface="study"][data-ignition-theme="dark"]{color-scheme:dark;--b:#0b6c9d;--bl:#376f91;--line:#343b41;--soft:#181c20;--txt:#f0f2f3;--muted:#a2a9ae;--ok:#163e31;--bad:#452525}
html[data-ignition-surface="study"][data-ignition-theme="dark"] body,html[data-ignition-surface="study"][data-ignition-theme="dark"] html{background:#101316;color:var(--txt)}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .side{background:#171b1f;border-color:#343b41}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .side h2{border-color:#343b41;color:#77b7dc}
html[data-ignition-surface="study"][data-ignition-theme="dark"] input,html[data-ignition-surface="study"][data-ignition-theme="dark"] select{background:#0f1215;color:#f0f2f3;border-color:#434a50}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .head,html[data-ignition-surface="study"][data-ignition-theme="dark"] .sections{border-color:#343b41}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .section-head{background:#171b1f;border-color:#343b41}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .section-row{border-color:#2b3136}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .section-row b,html[data-ignition-surface="study"][data-ignition-theme="dark"] .pool{color:#a2a9ae}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .bottom{background:#111417;border-color:#343b41;box-shadow:0 -2px 10px rgba(0,0,0,.22)}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .choice:hover{background:#171c20}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .exp{background:#111417}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .source{border-color:#3b4248;background:#15191d}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .source a{color:#77b7dc}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .modal-card{background:#171b1f;color:#f0f2f3;border-color:#454c52}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .modal-actions .secondary{background:#111417;color:#eee;border-color:#555d63}
html[data-ignition-surface="study"][data-ignition-theme="dark"] .exp p[style*="background:#fff4ce"]{background:#4c411d!important;color:#f3e5a5}
html[data-ignition-surface="study"] .ignition-theme-study{border-color:rgba(255,255,255,.5);color:#fff;flex:none}
html[data-ignition-surface="study"] .bar .ignition-theme-study{margin-left:auto;margin-right:6px}
@media(max-width:480px){html[data-ignition-surface="study"] .ignition-theme-study .ignition-theme-text{display:none}html[data-ignition-surface="study"] .ignition-theme-study{width:30px;min-height:28px;padding:0}}

/* EMR placeholder: dark is existing; light is clean clinical white. */
html[data-ignition-surface="emr"][data-ignition-theme="light"] body{background:#f3f6f4!important;color:#16211d!important}
html[data-ignition-surface="emr"][data-ignition-theme="light"] .c{background:#ffffff!important;border-color:#cbd7d1!important}
html[data-ignition-surface="emr"][data-ignition-theme="light"] .c p{color:#61716a!important}
html[data-ignition-surface="emr"][data-ignition-theme="light"] .a a{color:#355048!important;border-color:#c7d5cf!important}

/* Jaime Draws already owns a dedicated light/dark design. Universal mode simply drives it. */
html[data-ignition-surface="jaime"][data-ignition-theme="light"]{color-scheme:light}
html[data-ignition-surface="jaime"][data-ignition-theme="dark"]{color-scheme:dark}
html[data-ignition-surface="jaime"] .ignition-theme-toggle{min-height:36px;border-color:var(--line);color:var(--graphite)}
html[data-ignition-surface="jaime"] .ignition-theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
html[data-ignition-surface="jaime"] .artwork-header-actions .ignition-theme-toggle{border-color:rgba(255,255,255,.24);color:#f4f3f0}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"]{--p:#ffffff;--p2:#f6f7f8;--ln:#d7dce1;--ln2:#c5cbd1;--txt:#1a1d21;--mut:#65707a}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .network-strip{background:#fff;border-color:#d7dce1;color:#3f4851}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .btn{background:#fff;color:#4a555f;border-color:#cbd1d7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .btn:hover{color:#111;border-color:#888f96}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .btn.ghost{color:#b5400d;border-color:#d69a7f}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .side-bottom button{background:#fff;color:#56616b;border-color:#cbd1d7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .editor-wrap{background:#f7f8f9}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .editor-wrap pre{color:#8a9299;border-color:#dfe3e6}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .editor-wrap textarea{background:#f7f8f9;color:#20262c}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .compile-body label,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .panel-body label{color:#68727c}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .compile-metrics div,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .state-stats div{border-color:#dfe3e7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .fn{background:#fff;border-color:#d9dde1}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .fn-head,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .tx,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .account,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .deployed{border-color:#e1e4e7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .fn-input input{background:#fff;color:#1d2227;border-color:#ccd2d7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .fn-actions button{background:#f6f7f8;color:#48525b;border-color:#cdd3d8}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .inspect-grid,html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .summary-stat{border-color:#e1e4e7}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .event-card{border-color:#d5dbe0}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .event-card strong{color:#126ab8}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .modal-head{border-color:#d8dde2}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .modal-head button{color:#666}
html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .modal-body pre{color:#46515b}
@media(max-width:720px){html[data-ignition-surface="sandbox"][data-ignition-theme="light"] .lab-side{background:#f8f9fa}}
/* Jaime preview gate also participates in the global theme. */
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-gate{background:#f4f3f0;color:#2f2e32}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-panel{background:#f4f3f0;border-color:#c7c2c9}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-brand,html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-foot{border-color:#d8d3da;color:#454148}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-brand span,html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-kicker{color:#756d79}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-copy{color:#655f68}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-row input{background:#fff;color:#2f2e32;border-color:#aaa2ae}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-row button{background:#665a70;border-color:#665a70;color:#fff}
html[data-ignition-surface="jaime"][data-ignition-theme="light"] .client-access-back{border-color:#aaa2ae}
.ignition-theme-gate{z-index:2147483647}

/* Academy light-mode content surfaces and controls: keep every teaching element readable. */
html[data-ignition-surface="academy"][data-ignition-theme="light"] .module-button{color:#5f6972}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .module-button:hover{background:#eceff2;color:#1d2328}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .module-button.active{background:#e7eaed;color:#15191d}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .stage-label{color:#767f87}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .side-actions button,html[data-ignition-surface="academy"][data-ignition-theme="light"] .side-actions a{background:#fff;color:#5b6570;border-color:#cfd5da}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .lesson-sub{color:#59636d}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .lesson-top-actions button{background:#fff8f2;color:#8c5a3d;border-color:#dbc3b4}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mastery-badge{color:#65707a}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .explain-card{background:#fff}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .explain-card small{color:#7a838b}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .explain-card strong{color:#20252a}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .explain-card p{color:#626c75}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .explain-card.analogy{background:#fff8f2;border-color:#ddc7b7}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .technical-toggle{background:#fff;color:#5d6872;border-color:#cfd5da}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .technical-box{background:#f7f8f9;color:#5f6972;border-color:#d7dce1}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .term-chip{background:#fff;color:#53616d;border-color:#cbd2d8}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .term-chip:hover{color:#111;border-color:#7f8992}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission{background:#fff}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-head{background:#f2f4f6}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-head small{color:#737d86}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-instruction{color:#4f5962}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-button{background:#f3f5f6;color:#3f4952;border-color:#cbd2d8}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-button.primary{background:var(--orange);color:#fff;border-color:var(--orange)}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-button.good{background:#f1fbf6;color:#157a4b;border-color:#88c7a5}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-button.bad{background:#fff5f5;color:#b33d3d;border-color:#d9a0a0}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .mission-input{background:#fff;color:#1f2428;border-color:#c7ced5}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .concept-node{background:#f8f9fa;border-color:#d3d9de}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .concept-node span{color:#65707a}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .state-box{background:#f8f9fa;border-color:#d3d9de}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .notice{background:#f1f7fc;color:#526474}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .notice.warn{background:#fff9e9}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .notice.success{background:#f1faf5}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .quiz{background:#fff}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .quiz-choice{background:#f5f6f7;color:#3f4952;border-color:#d2d8dd}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .quiz-choice.correct{background:#eff9f3;color:#176b46}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .quiz-choice.wrong{background:#fff2f2;color:#a43737}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .lesson-footer button,html[data-ignition-surface="academy"][data-ignition-theme="light"] .lesson-footer a{background:#fff;color:#4f5962;border-color:#ccd3d9}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .real-evm-card{background:#f3f8fc}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-card{background:#fff;border-color:#d4dae0}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-card>header,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-account,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-tx,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-block{border-color:#e1e5e9}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-account strong b{color:#353c43}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-account code,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-account small,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-empty{color:#727c85}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-head button,html[data-ignition-surface="academy"][data-ignition-theme="light"] .world-raw button{background:#fff;color:#59636c;border-color:#cdd3d8}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .drawer-back{background:rgba(60,65,70,.28)}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .drawer-panel{background:#fff;border-color:#d3d8dd}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .drawer-head{border-color:#d8dde1}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .gloss-entry{border-color:#e0e4e7}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .gloss-entry p{color:#5f6972}
html[data-ignition-surface="academy"][data-ignition-theme="light"] .stack-item{background:#eef7fd;color:#28658f}
@media(max-width:820px){html[data-ignition-surface="academy"][data-ignition-theme="light"] .mobile-coursebar{background:#f6f7f8}}

/* Very narrow screens: preserve functionality without document-level horizontal overflow. */
@media(max-width:260px){
  html[data-ignition-surface="public"] .contact-form-side{width:100%;min-width:0;padding-inline:12px}
  html[data-ignition-surface="public"] .form-step{grid-template-columns:30px minmax(0,1fr);gap:8px}
  html[data-ignition-surface="public"] .form-step>*{min-width:0;max-width:100%}
  html[data-ignition-surface="public"] .form-duo{grid-template-columns:1fr;gap:0}
  html[data-ignition-surface="public"] .artist-case-hero .container{grid-template-columns:1fr!important}
  html[data-ignition-surface="public"] .artist-case-hero .container>*{grid-column:1!important;min-width:0;max-width:100%}
  html[data-ignition-surface="public"] .artist-case-hero h1{font-size:19vw;overflow-wrap:anywhere}
  html[data-ignition-surface="public"] .artist-case-hero .artist-case-meta{grid-template-columns:1fr;gap:5px}
  html[data-ignition-surface="public"] .artist-case-hero .artist-case-meta span{text-align:left!important}
  html[data-ignition-surface="public"] .next-case a{grid-template-columns:minmax(0,1fr) auto!important;padding-inline:12px!important;gap:8px!important}
  html[data-ignition-surface="public"] .next-case a>*{min-width:0;max-width:100%}
  html[data-ignition-surface="sandbox"] .top-actions>a[href="./"]{display:none}
  html[data-ignition-surface="sandbox"] .top-actions{gap:4px}
  html[data-ignition-surface="sandbox"] .lab-top{padding-inline:5px}
  html[data-ignition-surface="jaime"] .video-gallery{grid-template-columns:minmax(0,1fr)!important}
  html[data-ignition-surface="jaime"] .video-card{width:100%!important;min-width:0!important;max-width:100%!important}
  html[data-ignition-surface="jaime"] .artwork-header-actions{gap:7px!important}
  html[data-ignition-surface="jaime"] .artwork-header-actions .ignition-theme-text{display:none}
  html[data-ignition-surface="jaime"] .artwork-header-actions .ignition-theme-toggle{width:32px;min-width:32px;padding:0}
  html[data-ignition-surface="jaime"] .artwork-header-actions a[href*="archive"]{display:none}
}
@media(max-width:260px){
  html[data-ignition-surface="public"] .contact-flagship{grid-template-columns:minmax(0,1fr)!important;min-width:0;max-width:100%;overflow:hidden}
  html[data-ignition-surface="public"] .contact-orange,html[data-ignition-surface="public"] .contact-form-side{min-width:0!important;max-width:100%!important;width:100%!important;overflow:hidden}
  html[data-ignition-surface="public"] .contact-orange h1{font-size:16vw!important;overflow-wrap:anywhere}
  html[data-ignition-surface="public"] .form-step input,html[data-ignition-surface="public"] .form-step textarea,html[data-ignition-surface="public"] .form-step select{width:100%!important;min-width:0!important;max-width:100%!important}
}
