#beatsLab{color-scheme:light;--ink:#203a39;--muted:#556c68;--teal:#10786b;--amber:#ae5c12;--line:#d5e2db;--paper:#fffef9;--wash:#edf4ee}
#beatsLab *{box-sizing:border-box}
#beatsLab{margin:0;background:#f2f4ed;color:var(--ink);font:15px/1.6 system-ui,-apple-system,"Segoe UI","Yu Gothic",Meiryo,sans-serif}
#beatsLab button,#beatsLab input{font:inherit}
#beatsLab button,#beatsLab summary,#beatsLab a,#beatsLab input{ -webkit-tap-highlight-color:transparent}
#beatsLab button{min-height:44px;padding:8px 13px;border:1px solid #b6cfc4;border-radius:10px;background:#fffef9;color:var(--ink);cursor:pointer;font-weight:650}
#beatsLab button:hover{background:#e8f3eb}
#beatsLab button:disabled{cursor:default;opacity:.5}
#beatsLab button:focus-visible,#beatsLab input:focus-visible,#beatsLab summary:focus-visible,#beatsLab a:focus-visible,#beatsLab canvas:focus-visible{outline:3px solid #b25c18;outline-offset:3px}
#beatsLab a{color:var(--teal)}
#beatsLab [hidden]{display:none!important}
#beatsLab{max-width:1100px;margin:auto;padding:20px 28px 45px}
#beatsLab .beats-topline{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px;font-size:12px}
#beatsLab .beats-topline a{font-weight:800;text-decoration:none;font-size:17px}
#beatsLab .beats-topline span{align-self:center;color:var(--muted)}
#beatsLab .beats-hero{padding:24px 0 22px}
#beatsLab .beats-heading-row{position:relative;min-height:88px;padding-right:100px}
#beatsLab h1{font-size:clamp(22px,2.9vw,32px);line-height:1.45;letter-spacing:-.025em;max-width:850px;margin:0}
#beatsLab h2{font-size:16px;margin:0 0 14px}
#beatsLab h3{font-size:14px;margin:0}
#beatsLab .beats-hero-sub{margin:8px 0 0;color:var(--muted)}
#beatsLab .beats-mascot{position:absolute;right:0;top:0;width:84px;background:transparent;border:0;padding:0;display:flex;align-items:center;flex-direction:column;font-size:11px;min-height:88px}
#beatsLab .beats-mascot:hover{background:transparent}
#beatsLab .beats-mascot img{filter:drop-shadow(0 6px 5px #8aa99c44)}
#beatsLab .beats-mascot span{background:#fffef9;border:1px solid #b6cfc4;padding:2px 6px;border-radius:15px}
#beatsLab .beats-main{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}
#beatsLab .beats-panel,#beatsLab .beats-result-card,#beatsLab .beats-chart-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px}
#beatsLab .beats-panel{border-top:3px solid var(--teal)}
#beatsLab .beats-step{font:700 11px ui-monospace,monospace;color:var(--teal);padding-right:5px}
#beatsLab fieldset{border:0;margin:0;padding:0;min-width:0}
#beatsLab .beats-frequency-pair{display:flex;gap:10px}
#beatsLab .beats-tone{flex:1;min-width:0;padding:9px 10px;background:#edf5f0;border-radius:10px;border-top:3px solid #10786b}
#beatsLab .beats-tone.beats-two{background:#fff3e4;border-color:var(--amber)}
#beatsLab .beats-tone>span{display:block;font-weight:700}
#beatsLab .beats-tone small{font-size:10px;font-weight:400}
#beatsLab .beats-number-unit{white-space:nowrap;font-size:12px}
#beatsLab input[type=number]{width:82px;min-height:40px;padding:3px 4px;border:1px solid #b6c5bd;border-radius:6px;background:#fff;color:var(--ink);font-size:19px;font-variant-numeric:tabular-nums}
#beatsLab .beats-fine-control{margin:16px 0 8px}
#beatsLab .beats-fine-control label{display:flex;justify-content:space-between;font-size:13px;font-weight:650}
#beatsLab .beats-fine-control output{color:var(--amber);font-variant-numeric:tabular-nums}
#beatsLab input[type=range]{display:block;width:100%;height:38px;margin:0;accent-color:var(--teal);touch-action:none}
#beatsLab .beats-range-ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:-3px}
#beatsLab .beats-quick-actions,#beatsLab .beats-transport,#beatsLab .beats-presets,#beatsLab .beats-share-row{display:flex;gap:8px;flex-wrap:wrap}
#beatsLab .beats-quick-actions button{flex:1;font-size:12px}
#beatsLab .beats-quick-actions button:last-child{background:var(--teal);color:white;border-color:var(--teal)}
#beatsLab .beats-input-error:empty{display:none}
#beatsLab .beats-input-error{font-size:12px;color:#a62e1e}
#beatsLab .beats-advanced{margin-top:14px;border-top:1px solid var(--line)}
#beatsLab summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;font-weight:650}
#beatsLab .beats-advanced label{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:6px}
#beatsLab .beats-advanced input[type=number]{font-size:15px;width:78px}
#beatsLab .beats-advanced input[type=range]{margin-bottom:9px}
#beatsLab .beats-presets button{font-size:11px;padding:6px 9px}
#beatsLab .beats-small{font-size:12px;color:var(--muted)}
#beatsLab p{margin:8px 0}
#beatsLab .beats-transport{margin-top:12px}
#beatsLab .beats-transport button{font-size:12px;flex:1}
#beatsLab .beats-audio-details{margin-top:8px}
#beatsLab .beats-viz-panel{min-width:0;display:grid;gap:12px}
#beatsLab .beats-result-card{background:#e8f3eb}
#beatsLab .beats-beat-result{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#beatsLab .beats-beat-result strong{display:block;font-size:30px;line-height:1.25;font-variant-numeric:tabular-nums;font-weight:750}
#beatsLab .beats-beat-result>div+div{border-left:1px solid #bfd7ca;padding-left:16px}
#beatsLab .beats-result-card h2{margin-bottom:8px}
#beatsLab .beats-result-card p{font-size:13px;margin-bottom:0}
#beatsLab .beats-chart-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
#beatsLab .beats-chart-heading>span{font-size:11px;white-space:nowrap;color:var(--muted)}
#beatsLab .beats-legend{font-size:11px;margin:7px 0 2px}
#beatsLab .beats-muted{color:var(--muted)}
#beatsLab .beats-envelope-key{color:var(--amber)}
#beatsLab .beats-sum-key{color:var(--teal)}
#beatsLab canvas{display:block;width:100%;height:170px}
#beatsLab #envelopeCanvas,#beatsLab #freqCanvas{height:190px}
#beatsLab .beats-chart-card{padding:14px}
#beatsLab .beats-live-read{display:flex;flex-wrap:wrap;gap:6px 15px;font-size:11px;color:var(--muted)}
#beatsLab .beats-stats{display:flex;gap:20px;font-size:12px;flex-wrap:wrap}
#beatsLab .beats-stats dd{margin:0;font-size:20px;font-weight:700}
#beatsLab .beats-share-row button{font-size:12px}
#beatsLab .beats-share-row{margin:0 2px}
#beatsLab #shareBox{font-size:12px}
#beatsLab #shareUrl{width:100%;padding:8px}
#beatsLab .beats-explanation{margin-top:26px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:5px 20px}
#beatsLab .beats-explanation>details+details{border-top:1px solid var(--line)}
#beatsLab .beats-explanation summary{font-size:15px;padding:16px 0}
#beatsLab .beats-explanation p{margin:10px 0 18px}
#beatsLab .beats-explanation h3{margin-top:20px}
#beatsLab .beats-formula{background:var(--wash);padding:14px;overflow-wrap:anywhere}
#beatsLab .beats-guide{position:fixed;right:22px;bottom:18px;z-index:20;width:310px;max-width:calc(100% - 24px);padding:10px 14px 13px;background:#fffef5;border:1px solid #a2bfb0;border-radius:18px 18px 4px 18px;box-shadow:0 9px 32px #163b3325;font-size:13px}
#beatsLab .beats-guide-head{display:flex;align-items:center;justify-content:space-between}
#beatsLab .beats-guide-head strong{font-size:11px;color:var(--teal)}
#beatsLab .beats-guide-head button{border:0;background:transparent;font-size:23px;padding:0;width:44px;height:44px;min-height:44px;margin:-8px -8px -7px 0}
#beatsLab .beats-guide p{margin:7px 0 0}
#beatsLab .beats-guide>button{font-size:12px;margin-top:7px}
#beatsLab footer{padding:25px 0;color:var(--muted);font-size:12px}
#beatsLab #fallback{padding:12px;border:1px solid #d8b478;background:#fff1d7}
@media (max-width:700px){#beatsLab{padding:12px 12px 32px}
#beatsLab .beats-topline{padding-bottom:8px}
#beatsLab .beats-topline span{font-size:10px}
#beatsLab .beats-hero{padding:15px 0 14px}
#beatsLab .beats-heading-row{padding-right:78px;min-height:80px}
#beatsLab h1{font-size:21px;line-height:1.38}
#beatsLab .beats-mascot{width:72px;min-height:80px}
#beatsLab .beats-mascot img{width:58px;height:67px}
#beatsLab .beats-mascot span{font-size:10px}
#beatsLab .beats-hero-sub{font-size:12px;margin-top:7px}
#beatsLab .beats-main{grid-template-columns:1fr;gap:12px}
#beatsLab .beats-panel{padding:13px}
#beatsLab .beats-panel h2{font-size:14px;margin-bottom:8px}
#beatsLab .beats-frequency-pair{gap:8px}
#beatsLab .beats-tone{padding:6px 9px}
#beatsLab .beats-tone>span:first-child{font-size:12px}
#beatsLab .beats-tone input{min-height:36px}
#beatsLab .beats-fine-control{margin-top:10px}
#beatsLab .beats-advanced{margin-top:8px}
#beatsLab .beats-transport{margin-top:5px}
#beatsLab .beats-audio-details{margin-top:3px}
#beatsLab .beats-result-card{padding:13px}
#beatsLab .beats-beat-result strong{font-size:27px}
#beatsLab .beats-result-card h2{font-size:14px}
#beatsLab .beats-guide{right:12px;bottom:12px;width:296px}
#beatsLab .beats-chart-heading h3{font-size:12px}
#beatsLab .beats-chart-heading>span{font-size:10px}
#beatsLab .beats-legend .beats-muted{display:block}
#beatsLab .beats-explanation{padding:3px 15px}}
@media (prefers-reduced-motion:reduce){#beatsLab *,#beatsLab *::before,#beatsLab *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Page-local integration boundary: original shared references remain unchanged. */
#beatsLab{display:block;isolation:isolate;--muted:#556c68;background:#f2f4ed;min-height:0}
#beatsLab .beats-hero{display:block;text-align:left;background:none;border:0;box-shadow:none;color:var(--ink)}
#beatsLab h1{color:var(--ink);font-family:inherit;text-align:left;text-wrap:wrap;word-break:normal}
#beatsLab h2,#beatsLab h3{border:0;background:none;color:var(--ink);padding:0}
#beatsLab button{line-height:1.5;text-transform:none;box-shadow:none;letter-spacing:normal}
#beatsLab .beats-mascot span{background:#126b5d;color:#fff;border:1px solid #126b5d;font-weight:750;padding:5px 9px;border-radius:10px;box-shadow:0 2px 0 #0a453a;font-size:12px}
#beatsLab .beats-mascot:hover span{background:#0a4e43}
#beatsLab canvas{background:transparent;border-radius:0;max-width:100%}
#beatsLab input[type=range]{appearance:auto;-webkit-appearance:auto;background:initial;border:initial;border-radius:initial;padding:0;cursor:ew-resize}
#beatsLab input[type=range]::-webkit-slider-thumb{appearance:auto;-webkit-appearance:auto;box-shadow:none;border:initial;background:initial;width:auto;height:auto}
#beatsLab input[type=range]::-webkit-slider-runnable-track{background:initial;border:initial;height:auto}
#beatsLab input[type=number]{display:inline-block;max-width:100%;color:var(--ink)}
#beatsLab fieldset{display:block;min-width:0}
#beatsLab .beats-guide{z-index:10100;color:var(--ink)}
#beatsLab .beats-guide button{width:auto}
#beatsLab .beats-guide-head button{width:44px}
#beatsLab .beats-explanation{max-width:none}
#beatsLab .beats-primary{position:static;transform:none;max-height:none;overflow:visible}
.beats-source-intro,.beats-source-articles{max-width:1100px;margin:18px auto;padding:12px 20px;border:1px solid #d5e2db;border-radius:12px;background:#fffef9}
.beats-source-intro>summary,.beats-source-articles>summary{padding:8px;cursor:pointer;font-weight:700}
.beats-source-intro .hero-sub{margin:10px 0;color:#344f49;text-align:left;font-size:14px;max-width:none}
.ns-embed .beats-source-intro,.ns-embed .beats-source-articles,.ns-embed #beatsLab .beats-hero,.ns-embed #beatsLab .beats-explanation,.ns-embed #beatsLab .beats-share-row{display:none!important}
@media(max-width:700px){#beatsLab{padding:10px 12px 25px;width:100%;margin:0;max-width:none}#beatsLab .beats-mascot{width:72px}#beatsLab .beats-mascot span{font-size:10px;padding:5px 7px}#beatsLab .beats-hero{padding-top:9px}#beatsLab .beats-heading-row{min-height:94px}#beatsLab h1{font-size:20px;line-height:1.35}#beatsLab .beats-guide{bottom:12px;right:12px}}
@media(max-width:700px){
body[data-beats-page]{padding-top:0!important}
body[data-beats-page] #ns-mobile-toolbar{height:44px!important;min-height:44px!important;padding-top:0!important;padding-bottom:0!important}
body[data-beats-page]>header{padding:4px 12px!important;min-height:32px!important;height:auto!important}
body[data-beats-page]>header .header-inner{padding:0!important;min-height:24px!important;height:auto!important;line-height:24px}
body[data-beats-page]>header>div{height:24px!important;min-height:24px!important;padding:0!important}
#beatsLab .beats-heading-row{min-height:84px}
#beatsLab h1{font-size:18px;line-height:1.35}
#beatsLab .beats-mascot img{width:50px;height:58px}
#beatsLab .beats-mascot{min-height:84px}
#beatsLab .beats-guide{font-size:12px;line-height:1.45;padding:8px 12px 10px}
#beatsLab .beats-guide p{margin-top:4px}
#beatsLab .beats-guide-head button{min-height:36px;height:36px}
}
.ns-embed body[data-beats-page]{padding-top:0!important}
