.tf-wrap{--tf-primary:#f3ad6c;--tf-secondary:#72cdef;--tf-flux:#83dcb2;--tf-core:#536875;--tf-wire:#a5b8c9}.tf-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;box-sizing:border-box}.tf-controls h2,.tf-controls .tf-presets{grid-column:1/-1}.tf-wrap .optics-control{min-width:0}.tf-controls .optics-control{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px;margin:0}.tf-controls label{grid-column:1/-1}.tf-controls input{max-width:100%;min-width:0}.tf-controls input[type=number]{width:90px!important}.tf-scene-box{border:1px solid var(--line);border-radius:14px;background:var(--bg);overflow:hidden;margin-top:16px}.tf-scene{display:block;width:100%;min-width:0}.tf-scene text,.tf-plot text{fill:var(--text);font:14px system-ui,sans-serif}.tf-core{fill:none;stroke:var(--tf-core);stroke-width:38;stroke-linejoin:round}.tf-flux{fill:none;stroke:var(--tf-flux);stroke-width:8;stroke-linejoin:round}.tf-wire{fill:none;stroke:var(--tf-wire);stroke-width:2}.tf-primary,.tf-secondary,.tf-flux-plot{fill:none;stroke-width:3;stroke-linecap:round}.tf-primary{stroke:var(--tf-primary)}.tf-secondary{stroke:var(--tf-secondary)}.tf-primary-label{fill:var(--tf-primary)!important}.tf-secondary-label{fill:var(--tf-secondary)!important}.tf-source{fill:var(--bg);stroke:var(--tf-primary);stroke-width:2}.tf-load{fill:none;stroke:var(--tf-secondary);stroke-width:3}.tf-dot{fill:var(--text)}.tf-flux-arrow{fill:var(--tf-flux);stroke:var(--tf-flux);stroke-width:3}.tf-current{fill:var(--text);stroke:var(--text);stroke-width:2}.tf-head{stroke-width:1}.tf-plots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tf-plots>div{min-width:0}.tf-plots h3{font-size:1rem;line-height:1.5}.tf-plot{display:block;width:100%;min-width:0}.tf-plot text{font-size:12px}.tf-flux-plot{stroke:var(--tf-flux)}.tf-grid{fill:none;stroke:var(--line);stroke-width:1}.tf-cursor{fill:none;stroke:var(--text);stroke-width:1;stroke-dasharray:4 4}.tf-timebar,.tf-presets{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.tf-caption{font-size:.85rem;color:var(--muted);line-height:1.7}.tf-readouts{grid-template-columns:repeat(4,minmax(0,1fr))}.tf-equation{overflow:auto;padding:10px 0}.tf-wrap [hidden]{display:none!important}.tf-wrap .optics-intro{max-width:1000px}.tf-wrap .optics-body,.tf-wrap #ew-plots{min-width:0}.tf-chain{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style-position:inside;padding:0}.tf-chain li{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);line-height:1.5}.tf-explanation{border-left:3px solid var(--tf-flux);padding:12px 16px;background:var(--bg)}
html[data-theme=light] .tf-wrap{--tf-primary:#a95b16;--tf-secondary:#087c9c;--tf-flux:#137c53;--tf-core:#afbdc7;--tf-wire:#465e72}
@media(max-width:1000px){.tf-plots{grid-template-columns:1fr}.tf-wrap .optics-toolbar{position:static}}
@media(max-width:700px){.tf-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-readouts{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-chain{grid-template-columns:1fr 1fr}.tf-wrap .optics-intro h1{font-size:2rem}}
@media(max-width:480px){.tf-controls{grid-template-columns:1fr}.tf-scene text{font-size:12px}.tf-chain{grid-template-columns:1fr}.tf-timebar button{flex:1}}
