#ohms-lab{color-scheme:light;--ink:#203c40;--muted:#526967;--green:#127966;--line:#d6e1d9;--paper:#fffef8;--dark:#173a42}
#ohms-lab *{box-sizing:border-box}
#ohms-lab{margin:0;background:#edf1e9;color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI","Yu Gothic",Meiryo,sans-serif}
#ohms-lab button,#ohms-lab input{font:inherit}
#ohms-lab button,#ohms-lab summary{cursor:pointer}
#ohms-lab button{border:1px solid #b8ccc3;background:#fffef8;color:var(--ink);border-radius:8px;padding:8px 12px;min-height:42px;font-size:14px;font-weight:650}
#ohms-lab button:hover{background:#e7f3ec}
#ohms-lab button:disabled{opacity:.55;cursor:default}
#ohms-lab button[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:#fff}
#ohms-lab button.dark{background:var(--dark);color:white;border-color:var(--dark)}
#ohms-lab :focus-visible{outline:3px solid #a76016;outline-offset:3px}
#ohms-lab{max-width:1120px;margin:auto;padding:24px 28px 50px}
#ohms-lab .brand{font-size:14px;font-weight:800;color:#267060;letter-spacing:.035em}
#ohms-lab .brand span{font-size:11px;font-weight:500;margin-left:12px;color:var(--muted)}
#ohms-lab .title-row{display:flex;align-items:center;gap:18px;margin-top:5px}
#ohms-lab h1{font-size:clamp(19px,2.6vw,29px);line-height:1.4;letter-spacing:-.035em;margin:0;flex:1}
#ohms-lab .title-row button{flex:none;white-space:nowrap}
#ohms-lab .subtitle{margin:6px 0 17px;color:var(--muted);font-size:14px}
#ohms-lab .workbench{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:clip;box-shadow:0 10px 28px #163c3510}
#ohms-lab .tabs{display:flex;border-bottom:1px solid var(--line);padding:8px 18px;gap:8px}
#ohms-lab .tabs button{min-width:140px;border:none}
#ohms-lab .lab-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:0}
#ohms-lab .visual{min-width:0;padding:22px 20px 14px}
#ohms-lab .scene{margin:0;background:#142e3b;border-radius:12px;overflow:hidden;color:#d9f6ec}
#ohms-lab .scene svg{width:100%;height:auto;display:block}
#ohms-lab .scene svg text{fill:#effff5;font-size:18px;font-family:inherit}
#ohms-lab .scene svg text.small{font-size:12px;fill:#afc4c5}
#ohms-lab .scene svg text.gold{fill:#ffc878}
#ohms-lab .wire{fill:none;stroke:#71c9b5;stroke-width:4;stroke-linejoin:round}
#ohms-lab .flow{fill:none;stroke:#dcfff0;stroke-width:5;stroke-dasharray:1 34;stroke-linecap:round;opacity:0}
#ohms-lab .voltmeter-wire{fill:none;stroke:#8ea7b1;stroke-width:2}
#ohms-lab .meter-disc{fill:#193d48;stroke:#9abcbf;stroke-width:2}
#ohms-lab figcaption{font-size:11px;padding:0 12px 8px;text-align:center;color:#aec6c9}
#ohms-lab .readouts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:12px}
#ohms-lab .readouts>div{padding:4px 0}
#ohms-lab .readouts span{display:block;color:var(--muted);font-size:12px}
#ohms-lab .readouts strong{font-size:26px;line-height:1.25;font-variant-numeric:tabular-nums;display:block}
#ohms-lab .readouts small{font-size:12px;font-weight:500}
#ohms-lab .power-track{height:9px;border:1px solid #abc1b6;border-radius:10px;overflow:hidden;margin:6px 0 0;background:#ecf1e6}
#ohms-lab .power-track>div{height:100%;background:#c28c3f}
#ohms-lab .power-box>small{font-size:10px;color:var(--muted)}
#ohms-lab .primary-controls{padding:22px;border-left:1px solid var(--line);background:#f7f8ef}
#ohms-lab fieldset{min-width:0;padding:0;margin:0;border:0}
#ohms-lab .control{margin:0 0 10px}
#ohms-lab .label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
#ohms-lab .label-row label{font-size:14px;font-weight:600}
#ohms-lab .label-row>div{display:flex;align-items:center;gap:6px}
#ohms-lab .label-row input{width:100px;text-align:right}
#ohms-lab input[type=number],#ohms-lab input[type=text]{border:1px solid #b6c8bb;border-radius:6px;padding:5px 8px;min-height:36px;background:white;color:var(--ink);font-variant-numeric:tabular-nums}
#ohms-lab input:disabled{background:#e7ece5;color:#64716c}
#ohms-lab input[aria-invalid=true]{border:2px solid #a34b18;background:#fff2e6}
#ohms-lab input[type=range]{display:block;width:100%;height:30px;margin:0;accent-color:var(--green);cursor:ew-resize;touch-action:pan-y}
#ohms-lab .hint{font-size:12px;color:#346a5f;margin:3px 0 8px}
#ohms-lab .small{font-size:12px;color:var(--muted)}
#ohms-lab .button-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#ohms-lab .button-row button{font-size:12px;padding:6px 9px}
#ohms-lab .calculation{grid-column:1/-1;border-top:1px solid var(--line);padding:20px 24px}
#ohms-lab .calculation h2{font-size:17px;margin:0 0 10px}
#ohms-lab .calculation p{margin:5px 0}
#ohms-lab .calculation svg{display:block;width:min(100%,420px);height:auto;margin:18px auto 0}
#ohms-lab .calculation svg text{font:12px system-ui;fill:var(--muted)}
#ohms-lab details{border-top:1px solid var(--line)}
#ohms-lab summary{padding:12px 0;font-size:14px;font-weight:700;min-height:44px}
#ohms-lab details p{font-size:14px}
#ohms-lab details h3{font-size:15px}
#ohms-lab .network-controls{padding:20px}
#ohms-lab .network-controls fieldset{max-width:600px;margin:auto}
#ohms-lab .resistor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#ohms-lab .resistor-grid label{font-size:13px}
#ohms-lab .resistor-grid input{width:100%}
#ohms-lab .network-result{padding:18px 22px;background:#f3f6ef}
#ohms-lab .network-result>strong{font-size:17px;display:block}
#ohms-lab .network-result svg{width:100%;max-height:360px;display:block;background:#142e3b;border-radius:12px;margin-top:12px}
#ohms-lab .network-result svg text{fill:#f5fcf7;font:14px system-ui}
#ohms-lab .network-result p{font-size:13px}
#ohms-lab .table-wrap{padding:16px;overflow-x:auto}
#ohms-lab table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
#ohms-lab caption{text-align:left;color:var(--muted);margin-bottom:8px}
#ohms-lab th,#ohms-lab td{text-align:right;padding:8px 6px;border-bottom:1px solid var(--line)}
#ohms-lab th:first-child,#ohms-lab td:first-child{text-align:left}
#ohms-lab th{background:#eaf1e8}
#ohms-lab .notice{background:#fff3dc;border:1px solid #cda469;border-radius:8px;padding:10px;font-size:13px;margin:8px 0}
#ohms-lab .sharing{margin:20px 0}
#ohms-lab .sharing input{width:100%;margin-top:10px}
#ohms-lab .sharing p{font-size:13px}
#ohms-lab .explanation{background:var(--paper);padding:0 22px;border:1px solid var(--line);border-radius:12px}
#ohms-lab .explanation details:first-child{border-top:0}
#ohms-lab a{color:#167862;text-underline-offset:3px}
#ohms-lab footer{font-size:12px;color:var(--muted);padding-top:25px}
#ohms-lab .guide{position:fixed;z-index:20;right:24px;bottom:18px;display:flex;align-items:flex-end;width:410px;max-width:calc(100% - 16px);filter:drop-shadow(0 7px 18px #13382b30);pointer-events:none}
#ohms-lab .guide>img{width:65px;height:76px;flex:none;margin-right:-3px;z-index:1}
#ohms-lab .bubble{background:#fffef2;border:1px solid #91b1a0;border-radius:14px;padding:12px 35px 12px 14px;flex:1;pointer-events:auto;min-width:0}
#ohms-lab .bubble strong{display:block;font-size:13px;color:#1c6958}
#ohms-lab .bubble p{font-size:13px;line-height:1.5;margin:6px 0}
#ohms-lab .bubble button{min-height:34px;padding:5px 8px;font-size:11px}
#ohms-lab #guide-close{position:absolute;right:5px;top:5px;border:0;background:transparent;font-size:23px;width:34px}
#ohms-lab .guide-actions{display:flex;gap:6px;flex-wrap:wrap}
#ohms-lab .guide-actions:has(button:not([hidden])){margin-top:8px}
#ohms-lab .editing .bubble{border-color:#568f77}
#ohms-lab .target{box-shadow:0 0 0 2px #a3c4a5;border-radius:6px}
#ohms-lab .invalid-view #circuit,#ohms-lab .invalid-view #vi-chart{opacity:.28}
#ohms-lab #boot-status[hidden],#ohms-lab [hidden]{display:none!important}
@media (max-width:700px){#ohms-lab{padding:10px 10px 32px}
#ohms-lab .brand{font-size:11px}
#ohms-lab .brand span{font-size:10px}
#ohms-lab .title-row{gap:8px;margin-top:3px}
#ohms-lab h1{font-size:17px;line-height:1.3}
#ohms-lab .title-row button{font-size:11px;padding:6px;min-height:38px}
#ohms-lab .subtitle{font-size:11px;margin:5px 0 9px;white-space:nowrap;letter-spacing:-.025em}
#ohms-lab .workbench{border-radius:10px}
#ohms-lab .tabs{padding:4px 8px;gap:4px}
#ohms-lab .tabs button{min-width:0;flex:1;min-height:34px;padding:6px;font-size:12px}
#ohms-lab .lab-grid{display:block}
#ohms-lab .visual{padding:8px 9px 2px}
#ohms-lab .scene{border-radius:8px}
#ohms-lab .scene svg{height:111px;width:100%}
#ohms-lab figcaption{font-size:9px;padding:0 3px 4px}
#ohms-lab .readouts{gap:8px;margin-top:3px}
#ohms-lab .readouts strong{font-size:21px}
#ohms-lab .readouts span,#ohms-lab .readouts small{font-size:10px}
#ohms-lab .power-box>small{font-size:8px}
#ohms-lab .primary-controls{border:0;border-top:1px solid var(--line);padding:7px 10px 9px}
#ohms-lab .control{margin-bottom:3px}
#ohms-lab .label-row label{font-size:12px}
#ohms-lab .label-row input{width:95px;font-size:13px;min-height:30px;height:30px;padding:3px 6px}
#ohms-lab .label-row>div>span{font-size:12px}
#ohms-lab input[type=range]{height:27px}
#ohms-lab .hint{font-size:10px;margin:0 0 2px}
#ohms-lab summary{font-size:12px;padding:10px 0}
#ohms-lab .calculation{padding:16px 12px}
#ohms-lab .calculation h2{font-size:15px}
#ohms-lab .calculation p{font-size:12px}
#ohms-lab .guide{bottom:6px;right:8px;width:365px}
#ohms-lab .guide>img{width:51px;height:60px}
#ohms-lab .bubble{padding:8px 29px 8px 10px}
#ohms-lab .bubble p{font-size:11px;line-height:1.4;margin:4px 0}
#ohms-lab .bubble strong{font-size:11px}
#ohms-lab .bubble button{min-height:30px;padding:3px 6px;font-size:10px}
#ohms-lab .guide-actions{gap:4px}
#ohms-lab .network-controls{padding:12px}
#ohms-lab .resistor-grid{gap:7px}
#ohms-lab .network-result{padding:12px}
#ohms-lab .table-wrap{padding:8px}
#ohms-lab table{font-size:10px}
#ohms-lab th,#ohms-lab td{padding:7px 3px}
#ohms-lab .explanation{padding:0 14px}
#ohms-lab .explanation p{font-size:13px}
#ohms-lab .notice{font-size:12px}
#ohms-lab .sharing{margin:16px 0}}
@media (prefers-reduced-motion:reduce){#ohms-lab *{scroll-behavior:auto!important}}
#ohms-lab #boot-status{position:fixed;z-index:30;top:8px;left:50%;transform:translateX(-50%);width:min(600px,calc(100% - 20px));margin:0;box-shadow:0 4px 18px #163c3520}
#ohms-lab .readouts{min-height:62px}
#ohms-lab .readouts strong{white-space:nowrap}
@media (max-width:700px){#ohms-lab .readouts{min-height:55px}
#ohms-lab .readouts strong{font-size:clamp(15px,5vw,21px)}
#ohms-lab .readouts strong small{font-size:10px}}
@media (max-width:700px) and (max-height:650px){#ohms-lab .guide.outcome{top:152px;bottom:auto}
#ohms-lab .scene svg{height:100px}}
/* Every selector is page-owned. No shared styles or global variables are changed. */
#ohms-lab{--ink:#203c40;--muted:#526967;--green:#127966;--line:#d6e1d9;--paper:#fffef8;--dark:#173a42;max-width:1120px;padding:18px 24px 24px;min-height:0;font:16px/1.6 system-ui,-apple-system,"Segoe UI","Yu Gothic",Meiryo,sans-serif;background:#edf1e9;color:var(--ink)}
#ohms-lab .heading{padding:0;background:none;color:var(--ink)}
#ohms-lab h1{color:var(--ink);max-width:none;letter-spacing:-.035em;margin:0;line-height:1.35;font-weight:700}
#ohms-lab input[type=range]{appearance:auto;-webkit-appearance:auto;background:transparent;border:0;box-shadow:none;outline-offset:3px}
#ohms-lab input[type=range]::-webkit-slider-thumb{-webkit-appearance:auto;box-shadow:none;transform:none;transition:none}
#ohms-lab input[type=number]{color:var(--ink);background:#fff;font-family:inherit}
#ohms-lab .title-row{display:flex;align-items:center;justify-content:space-between}
#ohms-lab .title-row #guide-open{background:#173a42!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;position:static}
#ohms-lab .ohms-original-notes{margin-top:16px;padding:0 12px;background:#fffef8;border:1px solid #d6e1d9;border-radius:8px}
#ohms-lab .ohms-original-notes .hero{background:none;margin:0;padding:12px 0}
#ohms-lab .ohms-original-notes .hero-inner{padding:0;margin:0;max-width:none}
#ohms-lab .ohms-original-notes .hero-badge,#ohms-lab .ohms-original-notes .hero-sub{color:#36574e;background:none;margin:0;max-width:none;white-space:normal}
#ohms-lab .ohms-original-notes .cae-note{color:#36574e}
#ohms-lab .guide{z-index:10020;bottom:80px}
#ohms-lab .guide.outcome{top:auto}
#ohms-lab .scene svg{max-width:100%}
#ohms-lab .tabs{margin:0 0 12px}
#ohms-lab #boot-status{z-index:10030}
#ohms-lab #ohms-export[hidden]{display:none!important}
@media(max-width:700px){
 body[data-ohms-touch="20261114"] > header .header-inner{height:56px;min-height:56px}
 body[data-ohms-touch="20261114"] > header .header-title{font-size:11px}
 #ohms-lab{padding:8px 10px 24px;margin:0 auto}
 #ohms-lab h1{font-size:17px;line-height:1.3}
 #ohms-lab .title-row{margin-top:0;gap:8px}
 #ohms-lab .title-row #guide-open{min-height:38px;font-size:11px;padding:5px 7px}
 #ohms-lab .subtitle{font-size:11px;white-space:normal;margin:4px 0 7px;line-height:1.35}
 #ohms-lab .scene svg{height:96px}
 #ohms-lab .guide{bottom:10px;right:8px}
 #ohms-lab .bubble{font-size:11px}
 #ohms-lab .readouts{min-height:52px}
 #ohms-lab .primary-controls{padding-top:5px}
}
@media(max-width:820px){
 html:not(.ns-has-mobile-toolbar):not(.ns-embed) body[data-ohms-touch="20261114"]::before{content:"";display:block;height:60px}
}
@media(max-width:700px) and (max-height:650px){
 #ohms-lab .scene svg{height:78px}
 #ohms-lab .guide,#ohms-lab .guide.outcome{top:244px;bottom:auto}
}
