.g8-workspace{max-width:1200px;margin:0 auto;font-size:1.05rem}.g8-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.g8-workspace button{min-height:48px;border:1px solid #adc1b7;border-radius:7px;background:#fff;padding:11px 16px;line-height:1.5}.g8-workspace .primary-button{background:#183c38;color:#fff;border-color:#183c38}.g8-stages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:24px 0}.g8-stages button{padding:10px 8px;text-align:left;font-size:.83rem;min-width:0}.g8-stages b,.g8-stages small{display:block}.g8-stages small{margin-top:6px}.g8-stages [aria-current=step]{background:#183c38;color:#fff;border-color:#183c38}.g8-live{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:24px;background:white;border:1px solid #dce3e1;border-radius:12px;padding:20px}.g8-visual{min-width:0}.g8-visual svg{width:100%;max-height:460px;touch-action:none}.g8-visual svg text,.g8-paper svg text{font:19px 'Microsoft JhengHei',system-ui,sans-serif;fill:#183c38}.g8-sides{fill:none;stroke:#183c38;stroke-width:3}.g8-bisector{stroke:#a67125;stroke-width:2;stroke-dasharray:6 5}.g8-op{stroke:#66717f;stroke-width:2}.g8-pm{stroke:#177d70;stroke-width:3}.g8-pn{stroke:#574d91;stroke-width:3;stroke-dasharray:7 3}.g8-oblique{stroke:#a34f26;stroke-width:2;stroke-dasharray:3 5}.g8-right{fill:none;stroke:#183c38;stroke-width:1.7}.g8-point{fill:#183c38;stroke:white;stroke-width:2}.g8-visual [data-g8-point]{cursor:grab}.g8-visual [data-g8-point]:focus-visible .g8-point{stroke:#c18a30;stroke-width:5}.g8-measurement{padding:12px;background:#eaf4f0;line-height:1.7;font-size:1rem;margin:0}.g8-control{display:block;margin:14px 0 22px;line-height:1.7}.g8-control-inputs{display:flex;align-items:center;gap:10px;margin-top:10px}.g8-control input[type=range]{min-width:30px;min-height:44px}.g8-control input[type=number]{width:92px;min-height:48px;border:1px solid #adc1b7;border-radius:5px;padding:8px;flex-shrink:0}.g8-control [aria-invalid=true]{outline:2px solid #9e3939}.g8-control input:disabled{opacity:.45}.g8-small{font-size:.85rem;line-height:1.8}.g8-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.g8-task{background:white;border:1px solid #dce3e1;border-radius:12px;padding:28px;margin-top:24px}.g8-question{font-size:1.22rem;line-height:1.9}.g8-field{display:block;font-weight:600;line-height:1.7;margin:20px 0}.g8-field textarea{display:block;width:100%;min-height:115px;margin-top:10px;padding:12px;resize:vertical;font:400 1rem/1.8 'Microsoft JhengHei',system-ui,sans-serif;color:#192f31;border:1px solid #adc1b7;border-radius:6px}.g8-workspace details{margin:16px 0;border:1px solid #dce3e1;border-radius:8px;padding:16px 20px;background:#fff}.g8-workspace summary{font-weight:600;cursor:pointer;line-height:1.7}.g8-workspace details p,.g8-workspace li{line-height:1.9;margin-top:12px}.g8-step-nav{justify-content:space-between}.g8-step-nav button:disabled{opacity:.4}.g8-principle{border-left:4px solid #a67125;padding:15px 20px;background:#fbf4e8;margin:24px 0}.g8-table-wrap{overflow-x:auto;max-width:100%}.g8-table-wrap table{border-collapse:collapse;width:100%;min-width:510px;font-size:.95rem}.g8-table-wrap th,.g8-table-wrap td{border-bottom:1px solid #dce3e1;padding:10px;text-align:left}.g8-table-wrap caption{text-align:left;padding:10px 0;line-height:1.7}.g8-conflicts{border:2px solid #a67125;padding:20px}.g8-conflicts pre{white-space:pre-wrap;overflow-wrap:anywhere}.g8-workspace :focus-visible{outline:3px solid #a67125;outline-offset:3px}#g8-save-status,#g8-message,#g8-control-message{line-height:1.8;font-size:.92rem}.g8-paper{display:none}#g8-print-root{display:none}
@media(min-width:1200px){.g8-workspace .g8-question{font-size:1.35rem}.g8-workspace .g8-control{font-size:1.12rem}}
@media(max-width:1050px){.g8-stages{grid-template-columns:repeat(4,minmax(0,1fr))}.g8-live{grid-template-columns:1fr}.g8-controls{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.g8-controls .g8-small,.g8-controls .g8-actions{grid-column:1/-1}}
@media(max-width:560px){.g8-workspace h1{font-size:1.8rem}.g8-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.g8-controls{display:block}.g8-live,.g8-task{padding:16px}.g8-question{font-size:1.1rem}.g8-actions button{flex-grow:1}.g8-stages button{font-size:.82rem}.g8-visual svg{max-height:370px}}
@media print{body.g8-printing>*{display:none!important}body.g8-printing>#g8-print-root{display:block!important}.g8-paper{display:block;color:black;font:11pt/1.6 'Microsoft JhengHei',system-ui,sans-serif}.g8-paper h1{font-size:20pt}.g8-paper h2{font-size:14pt}.g8-paper svg{width:300px;max-height:230px;margin:auto}.g8-paper pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;min-height:3em}.g8-paper section{break-inside:avoid;margin:20px 0}.g8-paper .g8-table-wrap{overflow:visible}.g8-paper table{min-width:0;font-size:9pt}}
