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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cx-builder{display:flex;gap:8px;flex-wrap:wrap;width:100%}.cx-builder button{cursor:pointer}#cx-controls button[aria-pressed=true]{border-color:#6366f1;background:#eef2ff}.cx-formula{padding:16px;border-top:1px solid #e2e8f0;line-height:1.8;overflow-wrap:anywhere}
