/* ============================================================================
   studio_trial_r04.css — Codex TRIAL JOURNEY R04 (output/codex_design/outbox/
   trial-conversion-r04/source/layout.css), PORTED MECHANICALLY for the studio
   layer: every design class is prefixed r4- and every rule sits under
   body.hts-studio .r04 (the root studio_trial_r04.js stamps on its overlays and
   on the inline 150 notice), so nothing reaches any other account or surface.
   body.dark → :root[data-theme=dark] + prefers-color-scheme (light unless the
   app says light). The mock-only rules (backdrop, quiet layout, retired 15,
   notice-page illustration, reopen button) are dropped. Regenerate with the
   scratch port script, never hand-edit the ported block; overrides go at the end.
   ========================================================================== */
body.hts-studio .r04 *{box-sizing:border-box}
body.hts-studio .r04{margin:0;font:14px/1.5 Inter,sans-serif;--canvas:#f1f5fb;--ink:#122e45;--muted:#5d7084;--surface:white;--line:#d9e3ef;--blue:#196edb;--tint:#e5edf7;color:var(--ink)}
:root[data-theme="dark"] body.hts-studio .r04{--canvas:#101f31;--ink:#f1f6fc;--muted:#a7bad0;--surface:#1a3048;--line:#30455d;--blue:#a0c8ff;--tint:#20364e}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04{--canvas:#101f31;--ink:#f1f6fc;--muted:#a7bad0;--surface:#1a3048;--line:#30455d;--blue:#a0c8ff;--tint:#20364e}}
body.hts-studio .r04 h1,body.hts-studio .r04 h2,body.hts-studio .r04 p{margin:0}
body.hts-studio .r04 button{font-family:inherit;cursor:pointer}
body.hts-studio .r04 button:focus-visible{outline:3px solid #78abeb;outline-offset:3px}
body.hts-studio .r04 .r4-shade{position:fixed;inset:0;background:#091e3999;backdrop-filter:blur(8px)}
body.hts-studio .r04 .r4-experience{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(1050px,calc(100vw - 64px));max-height:calc(100dvh - 48px);background:var(--canvas);border-radius:25px;border:1px solid #ffffff25;box-shadow:0 35px 100px #00112766;display:flex;flex-direction:column;overflow:hidden}
body.hts-studio .r04 .r4-masthead{display:flex;justify-content:space-between;align-items:center;padding:19px 30px 3px;flex-shrink:0}
body.hts-studio .r04 .r4-brand{display:flex;gap:9px;align-items:center;font-size:15px;letter-spacing:-.4px}
body.hts-studio .r04 .r4-brand img{width:32px;height:32px}
body.hts-studio .r04 .r4-brand b{color:var(--blue);font-weight:600}
body.hts-studio .r04 .r4-dismiss{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font:28px/1 Inter}
body.hts-studio .r04 .r4-viewport-content{min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#9baec440 transparent;padding:20px 30px 0}
body.hts-studio .r04 .r4-opening{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:26px}
body.hts-studio .r04 .r4-eyebrow{font-size:9px;letter-spacing:1.45px;font-weight:600;color:var(--blue);margin-bottom:11px}
body.hts-studio .r04 h1{font-size:43px;font-weight:600;line-height:1.02;letter-spacing:-1.8px}
body.hts-studio .r04 h1 br{display:none}
body.hts-studio .r04 h1 br:after{content:' '}
body.hts-studio .r04 .r4-intro{font-size:13px;line-height:1.65;color:var(--muted);margin-top:12px;max-width:590px}
body.hts-studio .r04 .r4-event{display:flex;align-items:flex-start;gap:8px;min-width:200px;max-width:260px;flex-shrink:0;padding-bottom:2px}
body.hts-studio .r04 .r4-status-dot{width:6px;height:6px;border-radius:50%;background:#427da7;flex-shrink:0;margin-top:6px}
body.hts-studio .r04 .r4-event b{font-size:11px;line-height:1.4;font-weight:600;display:block}
body.hts-studio .r04 .r4-event small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:3px}
body.hts-studio .r04 .r4-academy-grid{display:grid;grid-template-columns:1.1fr .9fr 1fr;grid-template-rows:144px 144px;gap:12px}
body.hts-studio .r04 .r4-experience-tile{position:relative;overflow:hidden;border-radius:18px;padding:17px;min-width:0}
body.hts-studio .r04 .r4-tile-top{display:flex;justify-content:space-between;align-items:center;font-size:8px;font-weight:600;letter-spacing:1.25px;position:relative;z-index:2}
body.hts-studio .r04 .r4-tiny-symbol{font-size:14px;font-weight:400;line-height:1}
body.hts-studio .r04 .r4-tile-caption{position:absolute;left:18px;right:15px;bottom:18px;z-index:2}
body.hts-studio .r04 .r4-tile-caption h2{font-size:18px;line-height:1.2;letter-spacing:-.35px;font-weight:600}
body.hts-studio .r04 .r4-tile-caption p{font-size:10px;line-height:1.5;opacity:.76;margin-top:7px}
body.hts-studio .r04 .r4-words{grid-row:1/3;background:linear-gradient(155deg,#276aa8,#12365b);color:#edf6ff}
body.hts-studio .r04 .r4-word-art{position:absolute;top:42px;left:13px;right:14px;height:146px}
body.hts-studio .r04 .r4-word-main{position:absolute;top:18px;left:14px;z-index:1;text-align:center}
body.hts-studio .r04 .r4-word-main>span{font:66px/1.25 Thai,sans-serif}
body.hts-studio .r04 .r4-word-main small{font-size:11px;display:block;color:#d4e7f7}
body.hts-studio .r04 .r4-word-links{position:absolute;right:4px;top:20px;display:flex;flex-direction:column;gap:12px;z-index:1}
body.hts-studio .r04 .r4-word-links>span{font:23px/1.25 Thai;border:1px solid #8ab3d745;background:#234f78;padding:8px 13px;border-radius:12px;transform:rotate(5deg)}
body.hts-studio .r04 .r4-word-links>span+span{transform:rotate(-4deg)}
body.hts-studio .r04 .r4-word-links small{font:9px Inter;color:#c1d7ea;display:block;text-align:center;margin-top:3px}
body.hts-studio .r04 .r4-word-art svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#a5d3ff66;stroke-width:1}
body.hts-studio .r04 .r4-scene{grid-column:3;grid-row:1/3;color:white;padding:17px}
body.hts-studio .r04 .r4-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:48% 50%}
body.hts-studio .r04 .r4-scene-shade{position:absolute;inset:0;background:linear-gradient(#07182e42,transparent 25%,#091d31d9 94%)}
body.hts-studio .r04 .r4-scene-location{position:absolute;top:43px;left:17px;font-size:7px;letter-spacing:1px;display:flex;gap:5px;align-items:center}
body.hts-studio .r04 .r4-scene-location>span{width:3px;height:3px;border-radius:50%;background:white}
body.hts-studio .r04 .r4-lesson{grid-column:2;grid-row:1;background:#dce9e7;color:#214d4f}
body.hts-studio .r04 .r4-lesson .r4-tile-caption{bottom:16px}
body.hts-studio .r04 .r4-lesson .r4-tile-caption h2{font-size:14px}
body.hts-studio .r04 .r4-lesson .r4-tile-caption h2 br{display:none}
body.hts-studio .r04 .r4-lesson .r4-tile-caption p{font-size:9px;margin-top:3px}
body.hts-studio .r04 .r4-lesson-art{display:flex;align-items:center;gap:9px;position:absolute;right:18px;top:34px}
body.hts-studio .r04 .r4-lesson-art span,body.hts-studio .r04 .r4-lesson-art strong{font:26px/1.25 Thai}
body.hts-studio .r04 .r4-lesson-art i{font-style:normal;font-size:12px;color:#6c9490}
body.hts-studio .r04 .r4-lesson-art strong{color:#176260}
body.hts-studio .r04 .r4-sound{grid-column:2;grid-row:2;background:#dde7fa;color:#243f68}
body.hts-studio .r04 .r4-sound .r4-tile-caption{bottom:14px}
body.hts-studio .r04 .r4-sound .r4-tile-caption h2{font-size:14px}
body.hts-studio .r04 .r4-sound .r4-tile-caption h2 br{display:none}
body.hts-studio .r04 .r4-sound .r4-tile-caption p{font-size:9px;margin-top:3px}
body.hts-studio .r04 .r4-wave-art{position:absolute;top:40px;left:18px;right:18px;height:30px;display:flex;align-items:center;gap:4px}
body.hts-studio .r04 .r4-wave-art i{width:4px;border-radius:2px;background:#567db4;flex:1;max-width:5px}
:root[data-theme="dark"] body.hts-studio .r04 .r4-lesson{background:#254c50;color:#d4ebe3}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04 .r4-lesson{background:#254c50;color:#d4ebe3}}
:root[data-theme="dark"] body.hts-studio .r04 .r4-lesson-art strong{color:#a0d6c6}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04 .r4-lesson-art strong{color:#a0d6c6}}
:root[data-theme="dark"] body.hts-studio .r04 .r4-lesson-art i{color:#7daba8}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04 .r4-lesson-art i{color:#7daba8}}
:root[data-theme="dark"] body.hts-studio .r04 .r4-sound{background:#2b4068;color:#deebff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04 .r4-sound{background:#2b4068;color:#deebff}}
:root[data-theme="dark"] body.hts-studio .r04 .r4-wave-art i{background:#a1bfed}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) body.hts-studio .r04 .r4-wave-art i{background:#a1bfed}}
body.hts-studio .r04 .r4-bottom-note{font-size:11px;color:var(--muted);margin:15px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
body.hts-studio .r04 .r4-bottom-note span{display:flex;gap:6px;align-items:center}
body.hts-studio .r04 .r4-bottom-note span:before{content:'✓';font-size:11px;color:var(--blue)}
body.hts-studio .r04 .r4-purchase-rail{margin:20px 30px 20px;padding:17px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px;display:grid;grid-template-columns:1fr 1.03fr;column-gap:35px;align-items:center;flex-shrink:0;box-shadow:0 5px 20px #112f4d06}
body.hts-studio .r04 .r4-plan{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.hts-studio .r04 .r4-plan-name{display:flex;gap:10px;align-items:center}
body.hts-studio .r04 .r4-plan-mark{font-size:34px;color:var(--blue);line-height:1}
body.hts-studio .r04 .r4-plan-name b{display:block;font-size:13px;font-weight:600}
body.hts-studio .r04 .r4-plan-name small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
body.hts-studio .r04 .r4-price strong{font-size:26px;line-height:1.2;letter-spacing:-1px;font-weight:600;white-space:nowrap;display:block}
body.hts-studio .r04 .r4-price del{font-size:10px;color:var(--muted);display:block;text-align:right}
body.hts-studio .r04 .r4-primary{width:100%;height:51px;border:1px solid #2d7bdf;border-radius:12px;background:#1f70df;color:white;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:17px;box-shadow:0 4px 10px #1f70df20}
body.hts-studio .r04 .r4-primary svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.6}
body.hts-studio .r04 .r4-primary:disabled{opacity:.55;cursor:default}
body.hts-studio .r04 .r4-secondary{background:none;border:0;color:var(--muted);min-height:44px;width:100%;font-size:11px;margin-top:3px}
body.hts-studio .r04 .r4-decision{grid-column:2;grid-row:1/3}
body.hts-studio .r04 .r4-transaction-note{font-size:9px;color:var(--muted);line-height:1.4;padding-top:7px}
body.hts-studio .r04 .r4-feedback{display:none}
body.hts-studio .r04 .r4-legal{display:none}
body.hts-studio .r04.r4-allowance -board,body.hts-studio .r04 .r4-included{display:none}
body.hts-studio .r04.r4-allowance .r4-experience{width:min(790px,calc(100vw - 64px))}
body.hts-studio .r04.r4-allowance .r4-academy-grid{display:none}
body.hts-studio .r04.r4-allowance .r4-opening{display:block}
body.hts-studio .r04.r4-allowance .r4-event{margin-top:15px;max-width:none}
body.hts-studio .r04.r4-allowance h1 br{display:block}
body.hts-studio .r04.r4-allowance h1{font-size:42px}
body.hts-studio .r04.r4-allowance .r4-opening{margin-bottom:23px}
body.hts-studio .r04.r4-allowance -board{grid-template-columns:1fr 1fr;position:relative;gap:0;border:1px solid var(--line);border-radius:20px;overflow:hidden}
body.hts-studio .r04.r4-allowance .r4-allowance-board{display:grid}
body.hts-studio .r04 .r4-trial-side,body.hts-studio .r04 .r4-lifetime-side{padding:21px 24px;min-height:228px;position:relative}
body.hts-studio .r04 .r4-trial-side{background:var(--surface)}
body.hts-studio .r04 .r4-lifetime-side{background:#163e69;color:#eff7ff}
body.hts-studio .r04 .r4-board-label{font-size:9px;letter-spacing:1.2px;font-weight:600;opacity:.75}
body.hts-studio .r04.r4-allowance -number{font-size:66px;letter-spacing:-3px;font-weight:600;line-height:1.1;margin-top:17px}
body.hts-studio .r04 .r4-number-label{font-size:12px;font-weight:600;margin-top:5px}
body.hts-studio .r04 .r4-usage-bars{height:4px;display:flex;gap:3px;margin-top:17px}
body.hts-studio .r04 .r4-usage-bars i{flex:1;background:var(--line);border-radius:2px}
body.hts-studio .r04 .r4-usage-bars i.r4-used{background:#6f8eb5}
body.hts-studio .r04 .r4-usage-caption{font-size:10px;color:var(--muted);display:block;margin-top:7px}
body.hts-studio .r04 .r4-unlimited{font-size:87px;line-height:.85;margin-top:14px;letter-spacing:-4px}
body.hts-studio .r04 .r4-lifetime-side small{font-size:10px;color:#aac9e9;display:block;margin-top:6px}
body.hts-studio .r04 .r4-wave-mini{display:flex;align-items:center;gap:3px;height:24px;margin-top:15px}
body.hts-studio .r04 .r4-wave-mini i{width:3px;background:#79afe5;border-radius:2px}
body.hts-studio .r04 .r4-bridge{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--canvas);border:1px solid var(--line);border-radius:50%;width:34px;height:34px;display:grid;place-items:center;color:var(--blue);font-size:18px}
body.hts-studio .r04.r4-allowance .r4-included{display:block;padding-top:22px}
body.hts-studio .r04 .r4-included h2{font-size:15px;letter-spacing:-.2px;font-weight:600}
body.hts-studio .r04 .r4-included>div{display:flex;gap:22px;margin-top:12px;font-size:11px;color:var(--muted)}
body.hts-studio .r04 .r4-included>div span:before{content:'✓';color:var(--blue);margin-right:5px}
body.hts-studio .r04.r4-allowance .r4-bottom-note{display:none}
body.hts-studio .r04.r4-access .r4-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:0 17px;margin-top:7px}
body.hts-studio .r04 .r4-legal button{min-height:44px;min-width:44px;background:none;border:0;padding:0;color:var(--muted);font-size:10px}
body.hts-studio .r04.r4-access .r4-purchase-rail{margin-top:10px;margin-bottom:16px}
body.hts-studio .r04.r4-access .r4-secondary{display:none}
body.hts-studio .r04.r4-access .r4-feedback{display:flex;align-items:center;justify-content:center;grid-column:1/3;min-height:23px;font-size:10px;color:var(--blue);text-align:center;padding-top:3px}
body.hts-studio .r04.r4-access .r4-transaction-note{padding-top:8px}
body.hts-studio .r04.r4-access .r4-decision{grid-row:1/3}
body.hts-studio .r04 .r4-assurance{font-size:10px;color:var(--muted);text-align:center;margin-top:6px}
@media(min-width:700px) and (max-width:900px){body.hts-studio .r04 .r4-experience{width:calc(100vw - 48px)}body.hts-studio .r04 .r4-opening{display:block}body.hts-studio .r04 .r4-event{margin-top:16px;max-width:none}body.hts-studio .r04 .r4-academy-grid{grid-template-rows:153px 153px;grid-template-columns:1.1fr 1fr 1fr}body.hts-studio .r04 .r4-tile-caption h2{font-size:16px}body.hts-studio .r04 .r4-word-links>span{font-size:20px;padding:7px 8px}body.hts-studio .r04 .r4-word-main>span{font-size:49px}body.hts-studio .r04 .r4-word-main{left:0;top:42px}body.hts-studio .r04 .r4-word-links{right:-1px}body.hts-studio .r04 .r4-word-art{top:42px}body.hts-studio .r04 .r4-tile-caption p{font-size:9px}body.hts-studio .r04 .r4-lesson-art{right:14px;gap:5px;top:42px}body.hts-studio .r04 .r4-lesson-art span,body.hts-studio .r04 .r4-lesson-art strong{font-size:22px}body.hts-studio .r04 .r4-purchase-rail{gap:22px;padding:15px}body.hts-studio .r04 .r4-plan-mark{display:none}body.hts-studio .r04 .r4-price strong{font-size:24px}body.hts-studio .r04 .r4-plan-name b{font-size:12px}body.hts-studio .r04 .r4-plan-name small{font-size:9px}body.hts-studio .r04.r4-allowance .r4-opening{display:flex}body.hts-studio .r04.r4-allowance .r4-heading{max-width:65%}body.hts-studio .r04.r4-allowance .r4-event{max-width:180px;min-width:0}}
@media(max-width:699px){body.hts-studio .r04 .r4-experience{inset:0;transform:none;width:100%;max-height:none;height:100dvh;border:0;border-radius:0;box-shadow:none}body.hts-studio .r04 .r4-masthead{padding:18px 22px 0}body.hts-studio .r04 .r4-brand{font-size:12px;gap:7px}body.hts-studio .r04 .r4-brand img{width:27px;height:27px}body.hts-studio .r04 .r4-dismiss{width:44px;height:44px;font-size:25px}body.hts-studio .r04 .r4-viewport-content{padding:22px 22px 0;flex:1;min-height:0}body.hts-studio .r04 .r4-opening{display:block;margin-bottom:20px}body.hts-studio .r04 .r4-eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:10px}body.hts-studio .r04 h1{font-size:38px;line-height:1.04;letter-spacing:-1.6px}body.hts-studio .r04 h1 br{display:block}body.hts-studio .r04 .r4-intro{font-size:12px;line-height:1.6;margin-top:10px;max-width:330px}body.hts-studio .r04 .r4-event{margin-top:15px;max-width:none;min-width:0;align-items:center}body.hts-studio .r04 .r4-event>span:last-child{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:1px}body.hts-studio .r04 .r4-status-dot{margin-top:0;width:5px;height:5px}body.hts-studio .r04 .r4-event b{font-size:10px}body.hts-studio .r04 .r4-event small{font-size:9px;margin-top:0}body.hts-studio .r04 .r4-academy-grid{grid-template-columns:1.08fr 1fr;grid-template-rows:170px 115px;gap:9px}body.hts-studio .r04 .r4-experience-tile{border-radius:15px;padding:12px}body.hts-studio .r04 .r4-words{grid-column:1;grid-row:1}body.hts-studio .r04 .r4-scene{grid-column:2;grid-row:1}body.hts-studio .r04 .r4-lesson{grid-column:1;grid-row:2}body.hts-studio .r04 .r4-sound{grid-column:2;grid-row:2}body.hts-studio .r04 .r4-tile-top{font-size:7px;letter-spacing:.9px}body.hts-studio .r04 .r4-tiny-symbol{display:none}body.hts-studio .r04 .r4-tile-caption{left:12px;right:10px;bottom:12px}body.hts-studio .r04 .r4-tile-caption h2{font-size:12px;letter-spacing:-.15px}body.hts-studio .r04 .r4-tile-caption p{font-size:8px;line-height:1.4;margin-top:4px}body.hts-studio .r04 .r4-words .r4-tile-caption p{display:none}body.hts-studio .r04 .r4-word-art{top:30px;left:10px;right:10px;height:82px}body.hts-studio .r04 .r4-word-main{top:9px;left:4px}body.hts-studio .r04 .r4-word-main>span{font-size:40px}body.hts-studio .r04 .r4-word-main small{font-size:8px}body.hts-studio .r04 .r4-word-links{right:0;top:4px;gap:7px}body.hts-studio .r04 .r4-word-links>span{font-size:13px;border-radius:7px;padding:5px 7px}body.hts-studio .r04 .r4-word-links small{font-size:6px;margin-top:2px}body.hts-studio .r04 .r4-word-art svg{opacity:.5}body.hts-studio .r04 .r4-scene-location{top:34px;left:12px;font-size:5px;letter-spacing:.65px}body.hts-studio .r04 .r4-scene .r4-tile-caption h2{font-size:14px}body.hts-studio .r04 .r4-lesson-art{top:29px;right:12px;left:12px;gap:6px;justify-content:flex-end}body.hts-studio .r04 .r4-lesson-art span,body.hts-studio .r04 .r4-lesson-art strong{font-size:21px}body.hts-studio .r04 .r4-lesson-art i{font-size:10px}body.hts-studio .r04 .r4-lesson .r4-tile-caption,body.hts-studio .r04 .r4-sound .r4-tile-caption{bottom:11px}body.hts-studio .r04 .r4-lesson .r4-tile-caption h2,body.hts-studio .r04 .r4-sound .r4-tile-caption h2{font-size:11px;line-height:1.2}body.hts-studio .r04 .r4-lesson .r4-tile-caption p,body.hts-studio .r04 .r4-sound .r4-tile-caption p{font-size:7px;margin-top:4px}body.hts-studio .r04 .r4-wave-art{top:29px;left:12px;right:12px;height:28px;gap:3px}body.hts-studio .r04 .r4-wave-art i{width:3px;max-width:3px}body.hts-studio .r04 .r4-bottom-note{font-size:9px;margin-top:13px;gap:6px;justify-content:center}body.hts-studio .r04 .r4-bottom-note span+span{margin-left:8px}body.hts-studio .r04 .r4-bottom-note span:before{font-size:9px}body.hts-studio .r04 .r4-purchase-rail{margin:17px 14px 15px;padding:14px 16px 4px;border-radius:20px;display:block;flex-shrink:0;box-shadow:0 4px 22px #16375a0a}body.hts-studio .r04 .r4-plan{gap:10px;margin-bottom:13px}body.hts-studio .r04 .r4-plan-mark{font-size:28px}body.hts-studio .r04 .r4-plan-name{gap:8px}body.hts-studio .r04 .r4-plan-name b{font-size:12px}body.hts-studio .r04 .r4-plan-name small{font-size:9px}body.hts-studio .r04 .r4-price strong{font-size:26px}body.hts-studio .r04 .r4-primary{height:51px;border-radius:12px;font-size:13px}body.hts-studio .r04 .r4-secondary{font-size:10px;min-height:44px;margin:0}body.hts-studio .r04 .r4-transaction-note{display:none}body.hts-studio .r04.r4-access .r4-purchase-rail{margin-top:12px;margin-bottom:12px;padding-bottom:6px}body.hts-studio .r04.r4-access .r4-transaction-note{display:block;text-align:center;font-size:8px;padding-top:7px}body.hts-studio .r04.r4-access .r4-feedback{font-size:9px;min-height:24px;padding-top:2px}body.hts-studio .r04.r4-access .r4-legal{gap:0 11px;margin-top:5px}body.hts-studio .r04 .r4-legal button{font-size:9px}body.hts-studio .r04.r4-access .r4-event{display:none}body.hts-studio .r04.r4-access .r4-opening{margin-bottom:20px}body.hts-studio .r04.r4-access .r4-viewport-content{padding-top:25px}body.hts-studio .r04.r4-access .r4-bottom-note{margin-top:13px}body.hts-studio .r04.r4-allowance .r4-experience{width:100%;max-height:none}body.hts-studio .r04.r4-allowance h1{font-size:35px;line-height:1.06}body.hts-studio .r04.r4-allowance .r4-intro{font-size:12px}body.hts-studio .r04.r4-allowance .r4-event{margin-top:16px}body.hts-studio .r04.r4-allowance .r4-opening{margin-bottom:22px}body.hts-studio .r04.r4-allowance -board{border-radius:18px}body.hts-studio .r04 .r4-trial-side,body.hts-studio .r04 .r4-lifetime-side{min-height:215px;padding:17px}body.hts-studio .r04 .r4-board-label{font-size:8px;letter-spacing:.8px}body.hts-studio .r04.r4-allowance -number{font-size:58px;margin-top:19px}body.hts-studio .r04 .r4-unlimited{font-size:76px;margin-top:19px}body.hts-studio .r04 .r4-number-label{font-size:10px}body.hts-studio .r04 .r4-usage-caption,body.hts-studio .r04 .r4-lifetime-side small{font-size:9px}body.hts-studio .r04 .r4-usage-bars{margin-top:17px}body.hts-studio .r04 .r4-wave-mini{height:22px;margin-top:15px;gap:2px}body.hts-studio .r04 .r4-wave-mini i{max-width:3px}body.hts-studio .r04 .r4-bridge{width:28px;height:28px;font-size:16px}body.hts-studio .r04.r4-allowance .r4-included{padding-top:22px}body.hts-studio .r04 .r4-included h2{font-size:14px}body.hts-studio .r04 .r4-included>div{flex-wrap:wrap;gap:6px 12px;font-size:10px;margin-top:10px}}
@media(max-width:699px) and (max-height:720px){body.hts-studio .r04 .r4-masthead{padding-top:9px}body.hts-studio .r04 .r4-viewport-content,body.hts-studio .r04.r4-access .r4-viewport-content{padding-top:15px}body.hts-studio .r04 .r4-opening{margin-bottom:17px}body.hts-studio .r04 h1{font-size:33px}body.hts-studio .r04 .r4-intro{font-size:12px}body.hts-studio .r04 .r4-academy-grid{grid-template-rows:164px 115px}body.hts-studio .r04 .r4-purchase-rail{margin-top:11px;margin-bottom:9px;padding-top:12px}body.hts-studio .r04.r4-allowance h1{font-size:31px}body.hts-studio .r04.r4-allowance .r4-opening{margin-bottom:18px}}
body.hts-studio .r04 .r4-wordbook{position:absolute;top:50px;left:50%;width:210px;height:155px;transform:translateX(-50%);perspective:700px}
body.hts-studio .r04 .r4-book-cover{position:absolute;left:24px;top:25px;width:148px;height:119px;background:linear-gradient(135deg,#84b8d9,#426f99);border:1px solid #d7eeff66;border-radius:6px 15px 15px 6px;transform:rotate(-13deg);box-shadow:0 16px 24px #031b3966}
body.hts-studio .r04 .r4-book-cover>span{position:absolute;bottom:9px;left:12px;font-size:6px;letter-spacing:1.4px;color:#e1f0fe}
body.hts-studio .r04 .r4-paper{position:absolute;width:133px;height:113px;border-radius:5px 11px 11px 5px;box-shadow:0 3px 0 #becddd,0 6px 0 #eef4fc,0 10px 14px #091a3140}
body.hts-studio .r04 .r4-paper-back{left:48px;top:12px;transform:rotate(9deg);background:linear-gradient(90deg,#c7d4df,#f0f5fa)}
body.hts-studio .r04 .r4-paper-front{left:30px;top:13px;background:linear-gradient(105deg,#d7e3ee,#fcfeff 18%);color:#183e5e;transform:rotate(-6deg);padding:11px 14px 8px;display:flex;align-items:center;flex-direction:column}
body.hts-studio .r04 .r4-paper-label{font-size:5px;letter-spacing:1px;align-self:flex-start;color:#57768e}
body.hts-studio .r04 .r4-paper-front>strong{font:43px/1.25 Thai;margin-top:2px}
body.hts-studio .r04 .r4-paper-meaning{font-size:9px;margin-top:-2px}
body.hts-studio .r04 .r4-paper-bottom{border-top:1px solid #d5e1eb;align-self:stretch;display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding-top:5px;font-size:4px;letter-spacing:.5px;color:#5f7e96}
body.hts-studio .r04 .r4-paper-bottom svg{width:11px;height:11px;fill:none;stroke:#39729c;stroke-width:1.5}
body.hts-studio .r04 .r4-bookmark{position:absolute;top:6px;left:138px;width:11px;height:31px;background:#77b4d5;transform:rotate(-6deg);clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
@media(min-width:700px) and (max-width:900px){body.hts-studio .r04 .r4-wordbook{transform:translateX(-50%) scale(.8);transform-origin:top center;top:62px}}
@media(max-width:699px){body.hts-studio .r04 .r4-wordbook{transform:translateX(-50%) scale(.63);transform-origin:top center;top:24px;width:210px;height:155px}}
body.hts-studio .r04 .r4-title-break{display:inline}
body.hts-studio .r04.r4-allowance .r4-title-break{display:block}
@media(min-width:901px) and (max-height:800px){body.hts-studio .r04 .r4-academy-grid{grid-template-rows:127px 127px}body.hts-studio .r04 .r4-opening{margin-bottom:20px}body.hts-studio .r04 .r4-viewport-content{padding-top:16px}body.hts-studio .r04 .r4-wordbook{top:38px;transform:translateX(-50%) scale(.88);transform-origin:top center}body.hts-studio .r04 .r4-tile-caption{bottom:16px}body.hts-studio .r04 .r4-bottom-note{margin-top:12px}body.hts-studio .r04 .r4-purchase-rail{margin-top:15px;margin-bottom:16px;padding-top:14px;padding-bottom:14px}body.hts-studio .r04.r4-access .r4-legal{margin-top:1px}body.hts-studio .r04.r4-access .r4-purchase-rail{margin-top:7px}}
@media(max-width:699px){body.hts-studio .r04 .r4-title-break{display:block}}
@media(max-width:699px) and (min-height:741px){body.hts-studio .r04 .r4-academy-grid{grid-template-rows:184px 128px}body.hts-studio .r04 .r4-wordbook{top:27px;transform:translateX(-50%) scale(.67)}body.hts-studio .r04 .r4-lesson-art{top:33px}body.hts-studio .r04 .r4-wave-art{top:33px}body.hts-studio .r04 .r4-lesson .r4-tile-caption h2,body.hts-studio .r04 .r4-sound .r4-tile-caption h2{font-size:12px}body.hts-studio .r04 .r4-lesson .r4-tile-caption p,body.hts-studio .r04 .r4-sound .r4-tile-caption p{font-size:8px}body.hts-studio .r04 .r4-bottom-note{margin-top:16px}}
@media(min-width:901px){body.hts-studio .r04.r4-allowance .r4-experience{width:min(900px,calc(100vw - 64px))}body.hts-studio .r04.r4-allowance .r4-opening{display:flex;align-items:flex-end;gap:24px;margin-bottom:18px}body.hts-studio .r04.r4-allowance .r4-heading{max-width:540px}body.hts-studio .r04.r4-allowance .r4-event{min-width:165px;max-width:210px;margin-top:0}body.hts-studio .r04.r4-allowance h1{font-size:34px}body.hts-studio .r04.r4-allowance .r4-intro{font-size:12px}body.hts-studio .r04.r4-allowance .r4-trial-side,body.hts-studio .r04.r4-allowance .r4-lifetime-side{min-height:200px;padding:18px 24px}body.hts-studio .r04.r4-allowance .r4-included{padding-top:15px}body.hts-studio .r04.r4-access .r4-bottom-note{display:none}}
body.hts-studio .r04 .r4-tiny-symbol{display:none}
@media(min-width:901px){body.hts-studio .r04.r4-allowance .r4-opening{margin-bottom:12px}body.hts-studio .r04.r4-allowance .r4-included{padding-top:10px}body.hts-studio .r04.r4-allowance .r4-included>div{margin-top:8px}}
body.hts-studio .r04 .r4-usage-notice{margin:18px 25px 0;padding:11px 12px 11px 16px;display:flex;align-items:center;gap:13px;background:var(--tint);border:1px solid var(--line);border-radius:13px}
body.hts-studio .r04 .r4-usage-notice[hidden]{display:none}
body.hts-studio .r04 .r4-usage-notice>span{flex:1}
body.hts-studio .r04 .r4-usage-notice b{display:block;font-size:13px;font-weight:600}
body.hts-studio .r04 .r4-usage-notice small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
body.hts-studio .r04 .r4-notice-dismiss{flex-shrink:0;width:44px;height:44px;font:24px Inter;border:0;background:none;color:var(--muted)}
body.hts-studio .r04 .r4-notice-glyph{height:23px;display:flex;gap:3px;align-items:center}
body.hts-studio .r04 .r4-notice-glyph i{width:3px;border-radius:2px;background:var(--blue);height:10px}
body.hts-studio .r04 .r4-notice-glyph i:nth-child(2),body.hts-studio .r04 .r4-notice-glyph i:nth-child(4){height:17px}
body.hts-studio .r04 .r4-notice-glyph i:nth-child(3){height:23px}
@media(max-width:699px){body.hts-studio .r04 .r4-usage-notice{margin:14px 16px 0;padding-left:13px;gap:11px}body.hts-studio .r04 .r4-usage-notice b{font-size:12px}body.hts-studio .r04 .r4-usage-notice small{font-size:10px}}

/* ── studio integration (hand-written, not ported) ─────────────────────── */
body.hts-studio .r04 .r4-shade{z-index:100000}
body.hts-studio .r04 .r4-experience{z-index:100001;text-align:left}
body.hts-studio .htsup.r04,body.hts-studio .htsv3.r04{background:none!important;padding:0!important;overflow:hidden!important;display:block!important;animation:none!important}
body.hts-studio .r04 [lang="th"]{font-family:Thai,sans-serif}
body.hts-studio .r04 h1,body.hts-studio .r04 h2{font-family:inherit;color:inherit;text-shadow:none;margin:0}
body.hts-studio .r04 h1{font-weight:600}
body.hts-studio .r04 button{font-family:inherit}
body.hts-studio .r04 .r4-legal a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:10px;text-decoration:none}
body.hts-studio .r04 .r4-primary.r4-pending{opacity:.7;cursor:progress}
body.hts-studio .r04 .r4-primary{cursor:pointer}
body.hts-studio .r04 .r4-price .r4-unavail{font-size:18px}
body.hts-studio .r04 .r4-experience{animation:r4In .42s cubic-bezier(.2,.8,.3,1) both}
body.hts-studio .r04 .r4-shade{animation:r4Fade .25s ease both}
body.hts-studio .r04 .r4-experience-tile{animation:r4Rise .6s cubic-bezier(.2,.8,.3,1) both}
body.hts-studio .r04 .r4-experience-tile:nth-child(2){animation-delay:.08s}
body.hts-studio .r04 .r4-experience-tile:nth-child(3){animation-delay:.16s}
body.hts-studio .r04 .r4-experience-tile:nth-child(4){animation-delay:.24s}
@keyframes r4In{from{opacity:0;margin-top:14px}to{opacity:1;margin-top:0}}
@keyframes r4Fade{from{opacity:0}to{opacity:1}}
@keyframes r4Rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){body.hts-studio .r04 .r4-experience,body.hts-studio .r04 .r4-shade,body.hts-studio .r04 .r4-experience-tile{animation:none}}
/* the inline 150 notice: normal flow above the route content, never over the dock */
body.hts-studio .r04.r04n{display:block;background:none}
body.hts-studio .r04.r04n .r4-usage-notice{margin:14px 0 0}
@media(min-width:700px){body.hts-studio .r04.r04n .r4-usage-notice{margin:18px 0 0}}
