:root{font-family:system-ui,-apple-system,"Microsoft JhengHei",sans-serif;color:#292e2b;background:#f4f5f3;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #8c3e46;outline-offset:4px}.governor-page{max-width:1320px;margin:auto;padding:28px 30px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#8a8e85;margin:0 0 8px}h1{margin:0;font-size:clamp(23px,2.5vw,31px);font-weight:600}.intro{font-size:12px;color:#7d837a;margin:9px 0 0}.status{text-align:right;font-size:10px;color:#81877d;flex-shrink:0}.status>span{display:block}.status strong{display:block;font-family:Georgia,serif;font-size:27px;font-weight:400;color:#8c3e46;margin:5px 0}.status small{font-size:13px}.simulation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.40fr);gap:14px;align-items:stretch}.diagram-panel{min-width:0;background:#fff;border:1px solid #e0e3de;border-radius:8px;padding:12px 16px}.diagram-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#90968b}.view-buttons{display:flex;gap:3px}.view-buttons button{min-height:36px;border:0;border-radius:4px;font-size:10px;background:transparent;color:#7e8578;padding:4px 8px}.view-buttons button[aria-pressed=true]{background:#efefea;color:#343c30}#governorCanvas{display:block;width:100%;height:min(76vh,820px);min-height:490px;margin:4px 0 8px}.diagram-caption{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;font-size:10px;color:#8a9085;padding-bottom:5px}.diagram-caption b{font-weight:500;color:#62695d}.chart-column{display:flex;flex-direction:column;gap:12px;min-width:0}.chart-panel{background:#fff;border:1px solid #e0e3de;border-radius:8px;padding:17px 14px;flex:1;min-width:0}.chart-panel h2{margin:0 0 10px;font-size:12px;font-weight:600}.formula{font-family:Georgia,"Times New Roman",serif;font-size:12px;color:#8c3e46;margin:0 0 4px;display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap}.formula span{color:#8b9086;font-size:10px;font-family:system-ui,sans-serif}.chart-panel canvas{display:block;width:100%;height:125px}.event-note{font-size:9px;color:#92978d;line-height:1.6;margin:8px 0 0}.controls{display:flex;gap:22px;align-items:center;flex-wrap:wrap;background:white;border:1px solid #e0e3de;border-radius:8px;padding:14px;margin-top:14px}.transport{display:flex;gap:7px}.transport button{min-height:42px;background:white;color:#626a5d;border:1px solid #dce0d7;border-radius:5px;padding:6px 13px;font-size:11px}.transport button:first-child{background:#30352f;color:white;border-color:#30352f;min-width:72px}.transport button:disabled{color:#aaa;cursor:default}.speed-label{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:10px;min-width:150px;max-width:220px;flex:1;color:#83897c}.speed-label output{color:#8c3e46}.speed-label input{grid-column:1/-1;width:100%;accent-color:#8c3e46;height:24px;margin:0}.options{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:#7b8372}.options label{display:flex;align-items:center;gap:5px;min-height:32px;cursor:pointer}.options input{accent-color:#8c3e46;width:15px;height:15px}.model-details{border:1px solid #e0e3de;border-radius:8px;background:#fff;margin-top:14px;color:#7d8476;font-size:11px}.model-details summary{padding:16px;cursor:pointer;min-height:44px}.model-copy{padding:0 18px 14px;line-height:1.9}.model-copy p{margin:0 0 12px}.equation{font-family:Georgia,serif;font-size:14px;color:#8c3e46}
@media(max-width:950px){.governor-page{padding:23px 19px}.simulation-layout{grid-template-columns:minmax(0,1fr) minmax(230px,.5fr)}.diagram-panel{padding:10px}#governorCanvas{min-height:460px}.diagram-toolbar{flex-wrap:wrap}.controls{gap:13px}.chart-panel{padding:14px 11px}.chart-panel canvas{height:115px}}
@media(max-width:700px){.governor-page{padding:18px 12px}.page-heading{gap:10px;margin-bottom:14px}h1{font-size:21px}.intro{font-size:10px;line-height:1.5;max-width:230px}.eyebrow{font-size:9px}.status{font-size:8px}.status strong{font-size:22px}.status small{font-size:11px}.simulation-layout{display:flex;flex-direction:column;gap:10px}.diagram-panel{padding:10px 9px}.diagram-toolbar{font-size:9px;justify-content:space-between}.view-buttons{gap:0}.view-buttons button{font-size:9px;padding:3px 7px;min-height:44px}#governorCanvas{height:auto;min-height:0;aspect-ratio:.78}.diagram-caption{gap:12px;font-size:9px}.chart-column{display:grid;grid-template-columns:1fr 1fr;gap:9px}.chart-panel{padding:12px 10px}.chart-panel:last-child{grid-column:1/-1}.chart-panel h2{font-size:10px}.formula{font-size:10px}.formula span{font-size:8px}.chart-panel canvas{height:105px}.chart-panel:last-child canvas{height:125px}.event-note{font-size:8px}.controls{margin-top:10px;padding:10px;gap:12px}.transport{width:100%;gap:7px}.transport button{min-height:44px;flex:1;font-size:10px;padding:5px 8px}.speed-label{max-width:none;flex-basis:100%}.options{gap:12px}.options label{min-height:36px}.model-details{font-size:10px}.model-copy{padding:0 13px 10px}.equation{font-size:12px}}
