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

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

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

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

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

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

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

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

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

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

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

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

.hg-matrix{width:100%;border-collapse:collapse}.hg-matrix td,.hg-matrix th{padding:10px;border-bottom:1px solid #e2e8f0;font-size:13px;text-align:left}#hg-controls button{padding:10px 15px}#hg-equation{overflow-wrap:anywhere}.hg-matrix-wrap{overflow:auto;grid-column:1/-1}
