#gh-canvas{height:auto!important;background:#fafbfc;touch-action:none}#gh-hint,#gh-controls,#gh-working,#gh-observation,.gh-note{padding:18px 24px;border-top:1px solid #e2e8f0;margin:0;font-size:14px;line-height:1.75}#gh-hint{color:#6366f1}#gh-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#gh-controls label{width:100%;color:#475569}#gh-controls select{font:inherit;max-width:100%;padding:10px;border:1px solid #cbd5e1;background:white;border-radius:8px}#gh-controls output{float:right;color:#6366f1}.gh-readings{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gh-readings span{display:block;font-size:12px;color:#64748b}.gh-readings strong{font-weight:500;color:#6366f1}.gh-note{font-size:12px;color:#64748b}#gh-equation{padding:16px;text-align:center;background:#f8fafc;border-top:1px solid #e2e8f0;color:#334155;line-height:1.7}.gh-check{border-left:3px solid #f59e0b;background:#fffaf2;padding:20px;margin-top:24px}.gh-check label{display:block}.gh-check select{width:100%;font:inherit;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:white;margin:12px 0}.gh-check button{background:#6366f1;color:white;border:0;border-radius:8px;padding:12px 16px}.gh-correct{color:#15803d}.gh-retry{color:#b45309}@media(max-width:600px){#gh-hint,#gh-controls,#gh-working,#gh-observation,.gh-note{padding:16px}.gh-readings{grid-template-columns:1fr;gap:12px}#gh-equation{font-size:13px}.interactive-top{flex-wrap:wrap}}

#gh-controls input[type=range]{width:100%;accent-color:#6366f1}.gh-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:18px}.gh-facts p{margin:0}.gh-facts strong{display:block;color:#6366f1}@media(max-width:600px){.gh-facts{grid-template-columns:1fr}}

#gh-controls .gh-row{display:flex;gap:12px;flex-wrap:wrap;width:100%}#gh-controls select{width:100%}.gh-check textarea{width:100%;min-height:90px;font:inherit;padding:12px;border:1px solid #cbd5e1;border-radius:8px}

#gh-definitions{grid-template-columns:repeat(2,minmax(0,1fr))}#gh-definitions:empty{display:none}#gh-controls .gh-reset{width:auto}@media(max-width:600px){#gh-definitions{grid-template-columns:1fr}}

.gh-scope{color:#64748b;font-size:12px}#gh-working strong{overflow-wrap:anywhere}

.gh-equations{padding:16px;background:#f8fafc}.gh-equations p{margin:8px 0}#gh-controls input[type=checkbox]{width:auto}

.gh-ledger{padding:16px;border-top:1px solid #e2e8f0}.gh-ledger p{margin:8px 0}.gh-ledger button[aria-pressed=true]{background:#eef2ff;color:#6366f1}.gh-ledger s{color:#64748b;text-decoration-thickness:2px}.gh-invariant{color:#64748b;font-size:12px}

#gh-controls button{max-width:100%}#gh-controls input[type=number]{font:inherit;max-width:140px;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.gh-check input{width:100%}

.gh-rules{width:100%;border-collapse:collapse;font-size:14px}.gh-rules td,.gh-rules th{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left}.gh-rules-wrap{overflow:auto;margin:20px 0}.gh-rules tr[data-selected=true]{background:#eef2ff}

.gh-rules-wrap{grid-column:1/-1}

.gh-calculation{padding:20px;line-height:1.8}.gh-calculation ol{padding-left:24px}#gh-controls button{padding:10px 16px}#gh-controls input[type=number]{max-width:100%}.gh-results{width:100%;border-collapse:collapse}.gh-results td,.gh-results th{padding:10px;text-align:left;border-bottom:1px solid #e2e8f0}

.gh-data{width:100%;border-collapse:collapse}.gh-data td,.gh-data th{padding:10px;text-align:left;border-bottom:1px solid #e2e8f0}.gh-data-wrap{overflow:auto;grid-column:1/-1}#gh-controls button[aria-pressed=true]{background:#eef2ff}#gh-check select{max-width:100%}

.gh-strip{display:flex;gap:6px;flex-wrap:wrap;padding:18px}.gh-strip button[aria-pressed=true]{background:#6366f1;color:white}#gh-controls label{display:block}#gh-model-name{color:#64748b}

.gh-strip button[aria-pressed=true]{background:#eef2ff!important;color:#6366f1!important;border-color:#a5b4fc}

#gh-controls select{width:100%}.gh-data{width:100%;border-collapse:collapse}.gh-data td,.gh-data th{padding:10px;text-align:left;border-bottom:1px solid #e2e8f0}.gh-data-wrap{grid-column:1/-1;overflow:auto}

#gh-controls input[type=checkbox]{width:auto}#gh-controls .gh-switch{display:flex;align-items:center;gap:10px}#gh-definitions:empty{display:none}#gh-controls select{width:100%}.gh-evidence{font-size:13px;color:#64748b}

.gh-ledger p{margin:8px 0}.gh-ledger{padding:16px;border-top:1px solid #e2e8f0}#gh-controls select{width:100%}

.gh-cards{display:flex;gap:8px;flex-wrap:wrap;width:100%;padding:8px 0}.gh-card{display:flex;align-items:center;gap:5px;border:1px solid #e2e8f0;border-radius:8px;padding:5px 8px;background:#f8fafc}.gh-card button{padding:5px 8px!important}.gh-card[draggable=true]{cursor:grab}.gh-card[data-reference=true]{background:#fff8e9}#gh-controls input[type=checkbox]{width:auto}.gh-help{font-size:12px;color:#64748b}

#gh-controls .gh-toggle{display:flex;align-items:center;gap:10px}#gh-controls input[type=checkbox]{width:auto}#gh-controls select{width:100%}

.gh-crust{display:flex;flex-wrap:wrap;gap:8px;padding:16px;background:#f8fafc;border-radius:8px;font-size:13px}.gh-crust span{padding:6px 9px;background:white;border:1px solid #e2e8f0;border-radius:6px}#gh-controls input[type=number]{width:100%;max-width:160px}.gh-definition{grid-column:1/-1}

.gh-materials{display:flex;gap:8px;flex-wrap:wrap}.gh-materials button[aria-pressed=true]{background:#eef2ff;border-color:#6366f1}#gh-controls .gh-switch{display:flex;gap:10px;align-items:center}#gh-controls .gh-switch input{width:auto}#gh-canvas{cursor:grab}#gh-canvas:active{cursor:grabbing}

#gh-controls button{background:#fff;border:1px solid #cbd5e1;border-radius:8px;color:#475569}#gh-controls label{line-height:1.7}.gh-check textarea{width:100%;box-sizing:border-box}#gh-canvas:focus-visible{outline:3px solid #a5b4fc}
