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

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

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

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

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

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

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

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

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

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

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

#pt-table{padding:16px;overflow:auto;max-width:100%;overscroll-behavior-x:contain}.pt-grid{display:grid;grid-template-columns:28px repeat(18,42px);gap:3px;min-width:835px;user-select:none}.pt-grid button{padding:3px 0;min-height:46px;border-radius:5px;transition:background .25s,box-shadow .25s;color:#475569;font-size:15px}.pt-grid small{display:block;font-size:9px}.pt-grid button[data-kind=metal]{background:#e6eef4}.pt-grid button[data-kind=nonmetal]{background:#f7efe1}.pt-grid button[data-kind=metalloid]{background:#e7efe6}.pt-grid button.is-related{box-shadow:inset 0 0 0 2px #a5b4fc}.pt-grid button[aria-pressed=true]{background:#6366f1;color:white;box-shadow:0 2px 8px #6366f133}.pt-grid span{font-size:10px;text-align:center;align-self:center;color:#64748b}#pt-controls button[aria-pressed=true]{background:#eef2ff}#pt-canvas{height:auto!important}.pt-table-hint{font-size:12px;padding:0 18px;color:#64748b}#pt-table:focus-visible{outline:2px solid #6366f1}

.pt-grid{grid-template-columns:24px repeat(18,36px);min-width:726px}.pt-grid button{min-height:43px;font-size:14px}#pt-search{display:block;width:100%;max-width:360px;padding:10px 12px;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}#pt-controls label{display:block}
