@font-face{font-family:FieldMono;src:local("DejaVu Sans Mono"),local("Consolas");font-display:swap}
:root{color-scheme:light;--ink:#19333d;--muted:#748086;--line:#dde2e1;--paper:#fff;--accent:#c68d3e;--green:#38836a;--bg:#f4f5f1;--mono:FieldMono,"SFMono-Regular",Consolas,"Liberation Mono",monospace}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,select,a{ -webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #ba8335;outline-offset:3px}button{transition:background .15s,color .15s}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}.site-header{height:84px;padding:0 5%;background:#142e3a;color:#f5f6f1;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;font:29px Georgia,"Times New Roman",serif;letter-spacing:-1px}.brand-mark{width:37px;height:37px}.brand-description{display:block;font:8px Arial,Helvetica,sans-serif;letter-spacing:2.15px;margin-top:6px;color:#bcc8c8}.header-note{display:flex;align-items:center;gap:9px;color:#cad2d0;font:13px Georgia,serif;font-style:italic;letter-spacing:.1px}.small-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:var(--green);flex-shrink:0}.header-note .small-dot{background:#d8a85e}.button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:600;font-size:12px;white-space:nowrap;border-radius:4px;padding:12px 16px}.button-header{border:1px solid #5a6c72;color:#edf1ed;background:transparent}.button-header:hover{background:#294450}.button-header span{font-size:17px;font-weight:400}.button-primary{color:#fff;background:var(--ink)}.button-primary:hover{background:#2d4e5b}.button-primary>span{font-size:9px}.button-primary kbd{color:#b7c4c9;border:1px solid #597079;background:#294550;font-size:10px;padding:2px 3px;margin-left:4px}main{max-width:1600px;margin:auto;padding:48px 5% 0}.intro{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:35px}.eyebrow{font-size:9px;letter-spacing:2.15px;color:#92713e;font-weight:700;margin:0 0 13px}h1{font:36px/1.16 Georgia,"Times New Roman",serif;letter-spacing:-1.1px;margin:0 0 13px;font-weight:400}.intro-description{color:#7b8689;font-size:13px;margin:0}.intro-aside{display:flex;align-items:center;gap:17px;padding-right:10px;color:#89938f;font:12px/1.7 Georgia,serif;font-style:italic}.orbit-symbol{width:58px;height:58px;border:1px solid #d4d8cb;border-radius:50%;display:grid;place-items:center;position:relative;color:#aa946f;font:36px Georgia,serif}.orbit-symbol:after{content:"";position:absolute;left:0;top:9px;width:55px;height:35px;border:1px solid #d4d8cb;border-radius:50%;transform:rotate(-35deg)}.workbench{border:1px solid #d7dedd;border-radius:7px;overflow:hidden;background:white;box-shadow:0 6px 20px #1d3a4010}.workbench-toolbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 21px;background:#fff;border-bottom:1px solid var(--line)}.draft-label{display:flex;align-items:center;gap:10px;font-size:12px}.document-icon{color:#a0a9a5;font-size:20px;font-weight:400}.draft-label strong{font-weight:600;white-space:nowrap}.save-status{color:#8c9695;font-size:10px;padding-left:12px;border-left:1px solid #e1e5e2;margin-left:3px}.toolbar-actions{display:flex;align-items:center;gap:12px}.sample-label{font-size:10px;color:#8a9594}.toolbar-actions select{max-width:210px;border:1px solid #dce1dd;background:#fff;color:#50625f;border-radius:4px;padding:10px 31px 10px 12px;font-size:11px}.workspace-panels{display:grid;grid-template-columns:1fr 1fr;min-height:650px}.editor-panel,.preview-panel{min-width:0;display:flex;flex-direction:column}.editor-panel{border-right:1px solid var(--line)}.panel-heading{height:56px;min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid var(--line);background:#fff}.panel-heading h2{margin:0;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600}.step-number{font-size:10px;color:#9b8b6d;font-weight:400;font-family:var(--mono)}.panel-meta{font-size:10px;color:#939d9d;font-family:var(--mono)}.editor-tabs{display:flex;gap:25px;padding:0 23px;background:#fcfdfb;border-bottom:1px solid #e7ebe5;height:47px;flex-shrink:0}.editor-tabs button{font-size:11px;color:#81908b;background:none;border:0;border-bottom:2px solid transparent;padding:0 0 1px}.editor-tabs button[aria-selected=true]{color:#233f45;border-bottom-color:#c39554;font-weight:600}.tab-caption{font-weight:400;font-size:9px;color:#a5adaa;margin-left:6px}.editor-content{flex:1;display:flex;flex-direction:column;background:#fcfdfb;min-height:490px}.editor-area{position:relative;display:flex;flex:1;min-height:420px;overflow:hidden;padding-top:22px}.line-numbers{font:11px/23px var(--mono);color:#b8c0b9;min-width:50px;text-align:right;padding:0 12px 20px 0;user-select:none;overflow:hidden;max-height:100%;white-space:pre;position:absolute;inset:22px auto 0 0;pointer-events:none}.editor-area textarea{background:transparent;color:#38525d;border:0;width:100%;resize:none;padding:0 23px 24px 52px;font:11px/23px var(--mono);tab-size:2;outline:none!important;overflow:auto;min-height:420px;flex:1;white-space:pre;-webkit-overflow-scrolling:touch}.editor-area textarea:focus-visible{box-shadow:inset 3px 0 #c39554}.preamble-note{font-size:11px;color:#7f8b88;line-height:1.7;margin:17px 23px 0;max-width:440px}.editor-footer,.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 20px;border-top:1px solid var(--line);font-size:9px;color:#8a9791;background:#fff;min-height:42px}.editor-footer>span{display:flex;align-items:center;gap:7px}.editor-footer .small-dot{width:5px;height:5px}.separator{color:#d0d7cf;padding:0 3px}kbd{font-family:inherit;font-size:9px;border:1px solid #e2e6df;background:#f6f8f3;border-radius:3px;padding:1px 3px}.preview-panel{background:#eef0ec}.render-status{display:flex;align-items:center;gap:6px;font-size:9px;color:#829186}.render-status.busy{color:#a98650}.render-status.busy .small-dot{background:#c79953;animation:pulse 1s infinite}.render-status.failed{color:#b46a5c}.render-status.failed .small-dot{background:#b46a5c}.preview-scroll{flex:1;overflow:auto;padding:28px 30px 0;max-height:720px;min-height:450px}.question-paper{padding:27px 32px 20px;background:#fff;box-shadow:0 2px 9px #293c3b09;min-height:480px;border:1px solid #e7e9e2}.paper-topline{display:flex;align-items:center;justify-content:space-between;color:#9a9e90;font-size:8px;font-weight:600;letter-spacing:1.3px;padding-bottom:20px;border-bottom:1px solid #e8eae1;margin-bottom:24px}.paper-topline svg{width:39px;height:18px;color:#b7a67f}.latex-output{font:15px/1.85 Georgia,"Times New Roman",serif;color:#29393d;overflow-wrap:break-word}.latex-output h1,.latex-output h2,.latex-output h3,.latex-output h4{font-family:Georgia,"Times New Roman",serif;color:#233941;letter-spacing:-.3px;line-height:1.35;font-weight:400;margin:0 0 17px}.latex-output h1,.latex-output h2{font-size:24px}.latex-output h3{font-size:20px}.latex-output h4{font-size:17px}.latex-output p{margin:0 0 16px}.latex-output ol,.latex-output ul{margin:16px 0;padding-left:22px}.latex-output li{padding-left:4px;margin-bottom:9px}.latex-output li p{margin-bottom:7px}.latex-output dl{margin:16px 0}.latex-output dt{font-weight:bold}.latex-output dd{margin-left:20px;margin-bottom:10px}.latex-output figure{margin:22px 0;display:flex;justify-content:center;max-width:100%;overflow:visible}.latex-output figure svg{max-width:100%;height:auto;display:block}.latex-output img{max-width:100%;height:auto}.latex-output pre{white-space:pre-wrap;overflow-wrap:anywhere}.latex-output code{font-family:var(--mono);font-size:.85em}.latex-output mjx-container[jax=SVG]{max-width:100%;font-size:100%!important}.latex-output mjx-container[display=true]{display:block;overflow-x:auto;overflow-y:hidden;margin:18px 0!important;padding:4px 0}.latex-output mjx-container:not([display=true]){display:inline-block;vertical-align:baseline}.latex-output mjx-container svg{max-width:none}.latex-output mjx-merror{color:#aa433b}.paper-bottomline{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eceee7;margin-top:30px;padding-top:13px;font-size:7px;letter-spacing:1.4px;color:#a3aa9a}.preview-caption{display:flex;justify-content:center;align-items:center;gap:7px;color:#98a18f;font-size:9px;margin:18px 0 24px}.preview-caption>span{font-size:15px;color:#b6a57f}.preview-footer{background:#f6f7f3;font-size:9px}.page-footer{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;padding:19px 1px 30px;color:#88938d;font-size:10px;line-height:1.8}.page-footer p{margin:0;max-width:700px}.page-footer strong{font-weight:600;color:#748278}.page-footer code{font:9px var(--mono);background:#e9ece4;padding:2px 4px;border-radius:2px}.page-footer>span{font-size:7px;letter-spacing:1.5px;white-space:nowrap;padding-top:5px;color:#a1a998}.empty-preview{color:#99a49b;font-style:italic}.error-panel{border:1px solid #e1bfb7;border-radius:4px;background:#fff6f1;padding:15px;margin-bottom:18px;color:#945545;font-size:12px;line-height:1.6}.error-title{display:flex;align-items:center;gap:8px}.error-title>span{border:1px solid #bc7c68;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;font-size:11px}.error-panel p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.error-panel details{margin-top:10px}.error-panel summary{cursor:pointer;font-size:10px}.error-panel pre{font:10px/1.6 var(--mono);max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.warnings,.compiler-notice{background:#faf5e8;border:1px solid #e4d7b5;padding:12px 15px;font-size:11px;color:#94783d;line-height:1.6;margin-bottom:18px;border-radius:3px}.warnings{margin-top:20px;margin-bottom:0}.warnings ul{margin:6px 0 0;padding-left:18px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#19333d;color:#fff;box-shadow:0 3px 20px #19333d30;border-radius:4px;font-size:12px;z-index:10}.draft-label .save-status.unsaved{color:#b68a48}@keyframes pulse{50%{opacity:.35}}
@media(min-width:1600px){main{padding-left:80px;padding-right:80px}.site-header{padding-left:max(5%,calc((100vw - 1440px)/2));padding-right:max(5%,calc((100vw - 1440px)/2))}.workspace-panels{min-height:710px}.editor-content{min-height:550px}}
@media(max-width:1100px){.header-note{display:none}.intro-aside{display:none}main{padding:35px 3% 0}.site-header{padding:0 3%}.save-status{display:none}.question-paper{padding:23px}.preview-scroll{padding:23px 20px 0}.toolbar-actions{gap:9px}.sample-label{display:none}.toolbar-actions select{max-width:180px}.editor-tabs{gap:21px}.tab-caption{display:none}h1{font-size:32px}.latex-output{font-size:14px}}
@media(max-width:760px){.site-header{height:72px;padding:0 5%}.brand{font-size:25px}.brand-mark{width:30px;height:30px}.brand-description{font-size:6px;letter-spacing:1.7px}.button-header{font-size:10px;padding:10px;gap:8px}main{padding:29px 4% 0}.intro{margin-bottom:24px}h1{font-size:29px;letter-spacing:-.7px}.intro-description{font-size:12px}.eyebrow{font-size:8px;margin-bottom:11px}.workbench-toolbar{align-items:flex-start;flex-direction:column;gap:13px;padding:14px 16px}.toolbar-actions{width:100%;justify-content:space-between}.toolbar-actions select{max-width:none;flex:1;min-width:0;font-size:10px}.button-primary{font-size:11px;padding:10px 12px}.button-primary kbd{display:none}.save-status{display:block;font-size:9px}.workspace-panels{grid-template-columns:1fr;min-height:0}.editor-panel{border-right:0;border-bottom:1px solid var(--line)}.panel-heading{height:49px;min-height:49px;padding:0 18px}.editor-tabs{height:42px;padding:0 18px}.editor-content{min-height:320px;max-height:420px}.editor-area,.editor-area textarea{min-height:300px}.editor-area textarea{font-size:11px}.line-numbers{font-size:10px}.preview-scroll{max-height:none;padding:20px 18px 0;min-height:400px}.question-paper{min-height:400px;padding:23px 25px}.latex-output{font-size:15px}.preview-footer,.editor-footer{padding:12px 17px}.page-footer{padding:16px 0 25px;font-size:9px}.page-footer>span{display:none}.preview-caption{font-size:8px}.preamble-note{font-size:10px;margin:12px 18px 0}.tab-caption{display:inline}.preview-panel .panel-heading{position:sticky;top:0;z-index:1}.toast{width:max-content;max-width:90vw;text-align:center}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Application links share one palette, including visited history. Rendered
   question links, MathJax/SVG links and anchors styled as buttons stay separate. */
a:where(:link, :visited):where(:not(.button, .latex-output a, mjx-container a, svg a)) {
  color:#295b60;
  text-decoration:underline;
  text-underline-offset:.18em;
}
a:where(:hover):where(:not(.button, .latex-output a, mjx-container a, svg a)) {
  color:#142e3a;
  text-decoration-thickness:2px;
}
a:focus-visible:where(:not(.button, .latex-output a, mjx-container a, svg a)) {
  color:#142e3a;
  outline:2px solid #25718c;
  outline-offset:3px;
  text-decoration:underline;
}
.site-header a:where(:link, :visited):not(.button) { color:#f5f6f1; text-decoration:none; }
.site-header a:where(:hover):not(.button) { color:#fff; text-decoration:underline; }
.site-header a:focus-visible:not(.button) { color:#fff; outline:2px solid #d8a85e; outline-offset:3px; text-decoration:underline; }
.site-header a[aria-current=page]:not(.button) { text-decoration:none; border-bottom:2px solid var(--accent); }
