@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{font-family:'Be Vietnam Pro',system-ui,sans-serif;color:#273d35;background:#f8f8f3;font-synthesis:none;--bg:#f8f8f3;--surface:#fff;--ink:#273d35;--muted:#7b847e;--line:#e4e8de;--green:#294c3b;--soft:#eef1e7;--accent:#e4b36f;--shadow:0 8px 30px #283d3505}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #ca9958;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #7d9a6b;outline-offset:2px}a{color:inherit}button{border:0;background:none}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.4;font-weight:700}h2{font-size:17px;font-weight:600;letter-spacing:-.35px}p{line-height:1.8}input,textarea,select{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:12px 14px;color:var(--ink);max-width:100%}textarea{resize:vertical}label{display:grid;gap:9px;font-size:13px;font-weight:500}small{font-size:11px}hr{border:0;border-top:1px solid var(--line);margin:28px 0}
.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:234px;background:#fff;border-right:1px solid var(--line);padding:38px 23px 24px;display:flex;flex-direction:column;z-index:30}.brand{text-decoration:none;display:flex;gap:10px;align-items:center;font-size:30px;font-weight:700;letter-spacing:-1.3px;margin:0 0 60px 6px}.brand-icon{width:39px;height:41px;background:#294c3b;border-radius:11px;display:grid;place-items:center;color:white;font-size:26px;position:relative}.brand-icon>span{position:absolute;background:#e5bb7d;color:#294c3b;border:3px solid white;border-radius:50%;right:-8px;bottom:-6px;font-size:16px;width:24px;height:24px;display:grid;place-items:center}.brand-dot{color:#c29457}.brand small{display:block;font-size:7.5px;letter-spacing:1.8px;margin-top:0;font-weight:500}.side-label{font-size:9px;letter-spacing:1.7px;color:#929b91;margin:0 12px 16px}.main-nav{display:grid;gap:8px}.main-nav button{display:flex;align-items:center;gap:13px;width:100%;padding:14px 15px;border-radius:11px;text-align:left;font-size:12px;font-weight:500;color:#717e72}.main-nav button>span{font-size:21px;font-weight:400;width:21px;text-align:center;line-height:1}.main-nav button.active{background:#edf1e5;color:#294c3b;font-weight:600}.main-nav button:hover{background:#f4f5ef}.side-quote{margin-top:auto;padding:50px 15px 35px}.little-leaf{font-size:43px;color:#bdc9a6}.side-quote p{font-size:14px;font-weight:600;line-height:1.9;margin:10px 0}.side-quote small{font-size:10px;color:#929b91}.side-bottom{border-top:1px solid var(--line);padding:22px 7px 0;font-size:9px;letter-spacing:1.8px;color:#929b91;display:flex;justify-content:space-between}.workspace{margin-left:234px;flex:1;min-width:0;padding:0 44px}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:600;color:#8b9488;line-height:1.8}.topbar p{font-size:12px;margin-top:5px;text-transform:capitalize;color:#687868}.connection-pill{display:flex;gap:7px;align-items:center;font-size:10px;border:1px solid var(--line);padding:9px 12px;border-radius:20px;background:var(--surface);white-space:nowrap}.connection-pill i{width:6px;height:6px;border-radius:50%;background:#c6aa74}.connection-pill.online i{background:#719668}#main{max-width:1240px;margin:0 auto;min-height:calc(100vh - 190px);padding-bottom:25px}.page-heading{display:flex;gap:24px;justify-content:space-between;align-items:center;margin:35px 0 28px}.page-heading .eyebrow{margin-bottom:5px}.page-heading p{color:var(--muted);font-size:12px;margin-top:8px}.warm-dot{color:#c69e62}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:9px;padding:13px 19px;font-size:12px;font-weight:500;line-height:1.5;text-decoration:none;white-space:nowrap}.button.primary{background:var(--green);color:#fff;border:1px solid var(--green)}.button.primary:hover{background:#386048}.button.secondary{border:1px solid #dce2d4;background:var(--surface)}.button.secondary:hover{background:var(--soft)}.text-button{font-size:11px;padding:8px 0;font-weight:500;color:#60765b;text-decoration:none}.text-button:hover{text-decoration:underline}.text-button.danger{color:#ac5541}.hero-card{position:relative;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;border:1px solid #e4e8d7;background:#edf1e2;min-height:320px;border-radius:19px;margin-bottom:33px}.hero-copy{padding:31px 35px;z-index:1}.tag{font-size:8px;font-weight:600;letter-spacing:1.4px;color:#617856;background:#e1e9d1;border-radius:5px;padding:7px 10px}.hero-copy h2{font-size:32px;line-height:1.5;letter-spacing:-1.2px;font-weight:600;margin:17px 0 12px}.hero-copy p{font-size:11px;line-height:1.9;color:#6c7c64}.hero-copy p b{font-weight:600;color:#405c37}.hero-copy p>span{margin:0 8px;color:#96a385}.hero-copy>.button{margin:21px 0 11px;padding-left:18px;padding-right:18px}.hero-copy>.button>span{font-size:16px;margin-left:13px}.hero-copy>small{display:block;font-size:8px;color:#8d9a80}.hero-visual{position:relative;min-width:0}.orbit{position:absolute;width:320px;height:320px;border:1px solid #c3cda754;border-radius:50%;right:6%;top:20px}.orbit.two{width:400px;height:400px;right:-4%;top:-20px}.floating-word{position:absolute;background:#fffef9;box-shadow:0 14px 35px #52634216;border:1px solid #e4e5d7;border-radius:14px;width:235px;padding:27px 22px;font-size:24px;font-weight:600;letter-spacing:-1px;transform:rotate(-8deg);top:63px;left:8%}.floating-word small{display:block;font-size:10px;color:#889274;letter-spacing:0;margin-top:8px;font-weight:400}.floating-word>span{position:absolute;right:19px;bottom:23px;font-size:18px;color:#98a984}.word-two{top:176px;left:22%;transform:rotate(8deg);font-size:19px;background:#e1e8cf;width:233px}.hero-star{position:absolute;right:10%;top:24px;font-size:55px;color:#d7b47c}.hero-circle{position:absolute;bottom:38px;left:9%;width:16px;height:16px;border-radius:50%;background:#c6d0ac}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 17px}.section-title>span{font-size:10px;color:#949b8c}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:30px}.week-day{background:var(--surface);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;padding:15px 4px 13px;gap:5px;min-width:0}.week-day>span{font-size:10px;font-weight:500;white-space:nowrap}.week-day strong{font-size:25px;letter-spacing:-1px;font-weight:600}.week-day small{font-size:8px;color:#99a08e}.week-day.selected{background:#294c3b;border-color:#294c3b;color:#fff}.week-day.selected small{color:#b8ccb3}.week-day:hover{border-color:#7f9769}.home-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;margin-bottom:32px}.panel{border:1px solid var(--line);border-radius:15px;padding:24px;background:var(--surface);box-shadow:var(--shadow)}.panel>.section-title h2{font-size:14px}.scope-row{display:flex;align-items:center;text-align:left;gap:13px;width:100%;padding:15px 0;border-bottom:1px solid #edf0e8}.scope-row:last-child{border-bottom:0;padding-bottom:0}.scope-icon{width:37px;height:39px;display:grid;place-items:center;border-radius:9px;font-size:20px;flex-shrink:0}.peach{background:#f8eddf;color:#bf9564}.sage{background:#edf1e6;color:#879b68}.scope-row>span:nth-child(2){flex:1;min-width:0}.scope-row b{display:block;font-size:11px;font-weight:500}.scope-row small{display:block;font-size:8px;color:#959e8e;line-height:1.8;margin-top:4px}.scope-row strong{font-size:19px;font-weight:600}.scope-row>span:last-child{color:#a1aa98;font-size:13px}.stat-pair{display:grid;grid-template-columns:1fr 1fr;margin-top:20px}.stat-pair>div+div{border-left:1px solid var(--line);padding-left:25px}.stat-pair strong{font-size:32px;font-weight:500;letter-spacing:-1.5px;line-height:1.3;display:block}.stat-pair strong small{font-size:14px;letter-spacing:0;color:var(--muted)}.stat-pair span{font-size:9px;color:#939c8c;display:block;margin-top:5px}.progress-track{margin:20px 0 12px;height:5px;border-radius:5px;background:#eef0e8;overflow:hidden}.progress-track>i{display:block;height:100%;background:#a6b889;border-radius:5px}.progress-panel p{font-size:9px;color:#919c89;line-height:1.9}.mini-games{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:30px}.mini-game{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px 19px;text-align:left;position:relative;min-width:0}.mini-game>span{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;font-size:27px;margin-bottom:16px;background:var(--soft);color:#70835d}.mini-game b{font-size:13px;display:block;margin-bottom:8px;font-weight:600}.mini-game small{display:block;color:#929988;font-size:9px;line-height:1.9;min-height:34px}.mini-game em{font-size:9px;font-style:normal;display:block;margin-top:19px;color:#657858}.game-blocks>.mode-icon,.game-blocks>span:first-child{background:#f5ecdf;color:#b6946b}.game-gems>.mode-icon,.game-gems>span:first-child{background:#ece8f1;color:#a295b0}.game-blast>.mode-icon,.game-blast>span:first-child{background:#e5eef1;color:#7798a3}.site-footer{max-width:1240px;margin:25px auto 0;padding:23px 0 25px;border-top:1px solid var(--line);font-size:9px;color:#8e9987;display:flex;justify-content:space-between}.site-footer>span{font-size:8px}.batch-list{display:grid;gap:9px}.batch-list button{display:flex;align-items:center;gap:16px;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:15px 20px;text-align:left}.batch-list b{font-size:11px;font-weight:500;display:block}.batch-list small{font-size:9px;color:var(--muted)}.batch-list button>span:first-child{font-size:24px;color:#98a784}.batch-list button>span:last-child{margin-left:auto}.scope-bar{display:flex;gap:16px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:25px 0}.scope-select{font-size:10px;color:var(--muted);min-width:200px}.scope-select select{font-size:12px}.count-label{font-size:11px;color:var(--muted);padding:14px}.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.mode-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:24px;text-align:left;display:flex;flex-direction:column;align-items:start;min-height:225px}.mode-card:hover{border-color:#92a481;transform:translateY(-2px)}.mode-icon{font-size:28px;background:#edf1e4;color:#7c8e66;width:52px;height:52px;display:grid;place-items:center;border-radius:13px;margin-bottom:22px}.mode-card h2{font-size:15px}.mode-card p{font-size:10px;color:var(--muted);margin:10px 0 25px;flex:1}.mode-start{font-size:10px;color:#81906f}.search-input{flex:1;min-width:180px;font-size:12px}.library-header{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line);padding-bottom:13px}.library-header>span:last-child{letter-spacing:1px;font-size:8px}.vocab-row{display:flex;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.vocab-image{width:73px;height:69px;border-radius:11px;object-fit:cover;flex-shrink:0}.image-empty{background:#e9eddf;display:grid;place-items:center;color:#94a37a;font-size:31px}.vocab-text{min-width:0;flex:1}.vocab-text h2{font-size:16px;word-break:break-word}.vocab-text h2 small{font-size:9px;font-weight:400;color:#8d9982;margin-left:7px}.ipa{font-family:'Segoe UI',sans-serif;font-size:11px;color:#89947d}.vocab-text p{font-size:12px;color:#68795c;margin:2px 0 4px}.vocab-text>small{font-size:8px;color:#a0a994}.audio-tag{font-size:9px;color:#ad976c;border:1px solid #eee4d3;padding:6px 9px;border-radius:20px;white-space:nowrap}.audio-tag.ready{color:#6a8757;border-color:#dbe6cd}.row-actions{display:flex;gap:6px}.icon-button{width:35px;height:35px;border:1px solid var(--line);border-radius:50%;font-size:18px;color:#758765}.icon-button:hover{background:var(--soft)}.load-more{display:flex;margin:30px auto}.empty-state{text-align:center;padding:80px 20px;color:var(--muted)}.empty-state>span{font-size:55px;display:block;margin-bottom:15px}.empty-state h2{margin-bottom:14px}.empty-state p{font-size:13px}.import-panel{padding:28px}.import-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.import-top p{font-size:10px;color:var(--muted);margin-top:8px}.import-top p>span{margin:0 6px;color:#b5c2a4}.import-top>label{font-size:10px;min-width:160px;display:flex;align-items:center;white-space:nowrap}.import-top select{font-size:12px;flex:1}.import-panel textarea{width:100%;font-family:'Be Vietnam Pro',sans-serif;font-size:12px;line-height:2.1;background:#fbfcf8;border:1px dashed #cbd5ba;padding:20px}.import-actions{display:flex;gap:20px;align-items:center;margin-top:20px;flex-wrap:wrap}.import-actions>small{margin-left:auto;color:var(--muted);font-size:9px}.gentle-note{display:flex;gap:16px;align-items:center;border:1px solid #e2e9d7;border-radius:13px;background:#f0f4e9;padding:18px 22px;margin-top:25px}.gentle-note>span{font-size:25px;color:#8b9f71}.gentle-note p{font-size:11px;color:#7e8c71}#import-preview{margin-top:28px}.preview-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.preview-table{width:100%;border-collapse:collapse;font-size:11px;min-width:690px}.preview-table th{background:var(--soft);text-align:left;font-size:10px;font-weight:500;padding:12px}.preview-table td{padding:6px 4px;border-bottom:1px solid var(--line)}.preview-table td input:not([type=checkbox]){width:100%;border:0;background:transparent;padding:10px 8px;border-radius:6px;font-size:11px}.preview-table td:first-child{padding:10px;text-align:center}.preview-table th:nth-child(2){width:24%}.preview-table th:last-child{width:32%}.preview-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:20px 0}.preview-bottom>span{font-size:10px;color:var(--muted)}.invalid-row{background:#fff0eb}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel>h2{margin-bottom:15px}.muted{color:var(--muted);font-size:12px}.settings-grid .button{margin-top:20px}.settings-grid form{display:grid;gap:8px;margin-top:25px}.settings-grid form .button{justify-self:start;margin-top:10px}.small-note{font-size:10px;color:var(--muted);line-height:1.9;margin-top:20px;overflow-wrap:anywhere}.connected-text{color:#799c60;font-size:12px;margin:20px 0 0}.export-panel{background:#eef2e5}.export-symbol{font-size:28px;border:1px solid #cbd7b8;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;margin-bottom:19px}.file-label{margin-left:8px;cursor:pointer}.theme-row{display:flex;justify-content:space-between;align-items:center}.job-note{font-size:10px;line-height:1.9;color:#a07859;margin-top:14px}.study-top{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:30px 0 20px}.study-top>span{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:19px;background:var(--surface);color:var(--ink);width:min(760px,calc(100% - 30px));max-height:90vh;overflow:auto;padding:35px;box-shadow:0 30px 100px #182e342b}dialog::backdrop{background:#233e3480;backdrop-filter:blur(4px)}dialog>h2{font-size:22px;margin-bottom:22px;padding-right:30px}.modal-close{position:absolute;right:18px;top:15px;font-size:25px;color:var(--muted);width:32px;height:32px;border-radius:50%}.modal-close:hover{background:var(--soft)}.edit-form{display:grid;gap:20px}.edit-form textarea{min-height:80px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:22px;flex-wrap:wrap}.edit-media{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.edit-media img,.edit-media>.image-empty{width:100px;height:85px;object-fit:cover;border-radius:10px}.edit-media>span{font-size:11px;color:var(--muted)}#image-search{display:flex;gap:12px;margin:22px 0}#image-search input{min-width:0;flex:1}.image-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.image-gallery>button{min-width:0;border:1px solid var(--line);padding:0 0 10px;overflow:hidden;border-radius:10px;text-align:left}.image-gallery img{width:100%;height:135px;object-fit:cover}.image-gallery span,.image-gallery small{display:block;font-size:9px;padding:4px 9px 0;color:var(--muted);overflow-wrap:anywhere}.form-error{color:#b95b45;font-size:12px;margin:16px 0}#toast{position:fixed;z-index:100;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);background:#294c3b;color:white;box-shadow:0 8px 35px #15302526;border-radius:12px;max-width:min(630px,90vw);padding:16px 23px;font-size:12px;line-height:1.9}#toast.error{background:#8f4f3d}.loading-state{display:flex;gap:18px;align-items:center;justify-content:center;min-height:55vh;font-size:14px;color:var(--muted)}.loader{width:25px;height:25px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
[data-theme=dark]{--bg:#17241f;--surface:#203129;--ink:#e3e9dc;--muted:#a3af9b;--line:#344437;--green:#5d835c;--soft:#2a3c2d;--shadow:none;color:var(--ink);background:var(--bg)}[data-theme=dark] .sidebar{background:#1c2c24}[data-theme=dark] .hero-card{background:#293e2b;border-color:#40503c}[data-theme=dark] .hero-copy p,[data-theme=dark] .hero-copy p b{color:#becbb2}[data-theme=dark] .tag{background:#354d31;color:#c1d0ad}[data-theme=dark] .floating-word{background:#354735;color:#e3e9dc;border-color:#4b5d40}[data-theme=dark] .word-two{background:#415239}[data-theme=dark] .main-nav button.active{background:#344b34;color:#dde6d4}[data-theme=dark] .main-nav button:hover{background:#2e412e}[data-theme=dark] .mini-game{background:var(--surface)}[data-theme=dark] .gentle-note,[data-theme=dark] .export-panel{background:#293d2a;border-color:#43543b}[data-theme=dark] .import-panel textarea{background:#1c2b23}[data-theme=dark] .invalid-row{background:#583a30}
@media(min-width:1550px){.workspace{padding:0 65px}.hero-card{min-height:350px}.hero-copy{padding:36px 44px}.hero-copy h2{font-size:38px}.hero-copy p{font-size:12px}.hero-visual .floating-word{left:13%;top:75px;width:270px;font-size:27px}.hero-visual .word-two{left:29%;top:200px;font-size:21px}.page-heading{margin-top:42px}}
@media(max-width:1150px){.sidebar{width:205px;padding:30px 16px}.workspace{margin-left:205px;padding:0 26px}.hero-copy{padding:30px 27px}.floating-word{left:0;width:215px;font-size:23px}.word-two{left:10%;width:220px;font-size:18px}.hero-star{right:3%}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-grid{grid-template-columns:1.2fr 1fr}.panel{padding:20px}.week-strip{gap:7px}.week-day>span{font-size:9px}.hero-copy h2{font-size:29px}.mini-game{padding:18px 14px}.audio-tag{font-size:8px}.page-heading h1{font-size:30px}.connection-pill{font-size:9px}}
@media(max-width:900px){.sidebar{width:80px;padding:30px 10px}.brand{margin:0 auto 50px;font-size:0}.brand>span:last-child,.side-label,.side-quote,.side-bottom{display:none}.main-nav button{font-size:0;justify-content:center;padding:16px 10px}.main-nav button>span{font-size:24px}.workspace{margin-left:80px;padding:0 25px}.hero-visual .floating-word{width:205px}.floating-word small{font-size:9px}.hero-copy h2{font-size:28px}.hero-copy p{font-size:10px}.topbar .eyebrow{font-size:8px}.home-grid{gap:14px}.scope-row{gap:10px}.scope-row small{font-size:8px}.section-title>span{font-size:8px}.mini-games{gap:10px}.settings-grid{gap:14px}.audio-tag{display:none}}
@media(max-width:650px){.sidebar{inset:auto 0 0;width:100%;height:70px;padding:5px 8px 9px;border-right:0;border-top:1px solid var(--line)}.brand{display:none}.main-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.main-nav button{font-size:8px;flex-direction:column;gap:5px;padding:8px 0;border-radius:10px}.main-nav button>span{font-size:21px}.workspace{margin:0;padding:0 19px 75px;width:100%}.topbar{height:80px}.topbar .eyebrow{font-size:7px;letter-spacing:1px;max-width:180px}.topbar p{font-size:10px}.connection-pill{font-size:8px;padding:8px;max-width:150px;white-space:normal}.page-heading{margin:27px 0 20px;align-items:start;gap:12px}.page-heading h1{font-size:26px;letter-spacing:-1px}.page-heading .eyebrow{font-size:7px;letter-spacing:1.1px}.page-heading p{font-size:10px;line-height:1.9;max-width:350px}.page-heading>.button{font-size:9px;padding:10px;margin-top:20px}.hero-card{grid-template-columns:1fr;min-height:0;margin-bottom:26px}.hero-copy{padding:26px 24px;max-width:100%;position:relative}.hero-copy h2{font-size:30px;max-width:240px}.hero-copy p{font-size:10px;max-width:270px}.hero-copy>.button{margin-top:18px}.hero-visual{position:absolute;inset:0 0 0 auto;width:43%;pointer-events:none;opacity:.25}.floating-word,.word-two{display:none}.hero-star{font-size:70px;top:45px;right:10px}.hero-circle{bottom:36px;left:30px}.orbit{right:-220px;top:5px}.orbit.two{right:-230px;top:-35px}.section-title{margin-bottom:13px}.section-title h2{font-size:15px}.section-title>span{font-size:8px;text-align:right;max-width:150px}.week-strip{gap:5px;margin-bottom:24px}.week-day{padding:11px 1px 10px;border-radius:9px;gap:5px}.week-day>span{font-size:7px}.week-day strong{font-size:20px}.week-day small{font-size:6px}.home-grid{grid-template-columns:1fr;gap:14px;margin-bottom:27px}.panel{padding:21px;border-radius:13px}.scope-row b{font-size:11px}.scope-row small{font-size:9px}.stat-pair strong{font-size:31px}.progress-panel .stat-pair{margin-top:15px}.progress-panel .stat-pair>div{display:flex;align-items:center;gap:12px}.progress-panel .stat-pair span{margin:0;font-size:9px;max-width:65px}.progress-panel p{font-size:9px}.mini-games{grid-template-columns:repeat(2,1fr);gap:12px}.mini-game{padding:18px}.mini-game>span{margin-bottom:14px}.mini-game small{font-size:9px}.mini-game em{margin-top:13px}.site-footer{font-size:8px;margin-top:15px;padding-bottom:10px}.site-footer>span{font-size:6px}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-card{padding:19px 16px;min-height:220px}.mode-card h2{font-size:14px}.mode-card p{font-size:9px}.mode-icon{width:44px;height:44px;font-size:24px;margin-bottom:18px}.scope-bar{margin:19px 0;gap:12px;align-items:center}.scope-select{flex:1;min-width:150px;font-size:9px}.scope-select select{width:100%;font-size:11px;padding:12px}.count-label{font-size:9px;padding:5px 0}.scope-bar>.search-input{width:100%;flex:auto}.scope-bar>.button{font-size:10px}.vocab-row{gap:12px;padding:15px 0}.vocab-image{width:52px;height:55px;border-radius:8px}.vocab-text h2{font-size:14px}.vocab-text h2 small{display:block;font-size:8px;margin:3px 0}.vocab-text p{font-size:11px}.vocab-text>small{font-size:7px}.ipa{font-size:10px}.row-actions{flex-direction:column;gap:4px}.icon-button{width:29px;height:29px;font-size:15px}.library-header>span:last-child{font-size:7px}.import-panel{padding:20px}.import-top{align-items:start;flex-direction:column;gap:16px}.import-top p{font-size:9px}.import-top label{width:100%;justify-content:space-between}.import-top select{max-width:170px}.import-panel textarea{padding:14px;font-size:11px}.import-actions{gap:14px}.import-actions>.small{margin:0}.import-actions>small{margin-left:0;font-size:8px;width:100%}.preview-bottom{align-items:stretch;flex-direction:column;gap:14px}.preview-bottom>span{font-size:9px}.gentle-note{padding:16px;gap:12px}.gentle-note p{font-size:9px}.settings-grid{grid-template-columns:1fr}.settings-grid .panel{padding:23px}.settings-grid .button{font-size:11px}.file-label{margin-left:0}.study-top{align-items:start;padding:22px 0 15px}.study-top>span{font-size:9px;max-width:180px;text-align:right;line-height:1.8}.study-top .text-button{font-size:10px}dialog{padding:28px 21px}dialog>h2{font-size:20px}.form-pair{gap:10px}.edit-form{gap:18px}.image-gallery{grid-template-columns:repeat(2,1fr);gap:10px}.image-gallery img{height:120px}#image-search{gap:8px}#image-search>.button{padding:12px;font-size:10px}#toast{left:50%;bottom:85px;width:calc(100% - 30px);font-size:11px;transform:translateX(-50%);padding:14px 18px}.empty-state{padding:60px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.voice-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.voice-row>div{flex:1;min-width:0}.voice-row b,.voice-row small{display:block}.voice-row b{font-size:12px}.voice-row small{font-size:10px;color:var(--muted);margin:5px 0}.voice-row audio{width:100%;max-width:330px;height:34px;margin-top:8px}.voice-row>.button{font-size:10px;padding:11px;margin:0}#voice-search{display:flex;gap:14px;align-items:end;margin:22px 0}#voice-search label{flex:1}.job-note>.text-button{display:block;font-size:9px}
.check-row{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:400}.check-row input{accent-color:var(--green);width:16px;height:16px}.form-actions,.settings-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.form-actions .button{margin-top:8px}.settings-buttons>.text-button{margin-top:12px}#byok-form .small-note{margin-top:4px}#byok-form select{font-size:12px}#byok-form label>small{font-size:9px;color:var(--muted);font-weight:400}.settings-grid [hidden]{display:none!important}

/* Image search, refresh and direct-link picker. */
.image-search-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:-6px 0 20px}.image-search-tools .button{padding:10px 14px;font-size:11px}.image-search-tools .small-note{margin:0 0 0 auto;font-size:9px}.image-link-panel{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.image-link-panel h3{font-size:16px;font-weight:600}.image-link-panel>.small-note{margin:8px 0 14px}.image-link-panel #image-link-form{display:flex;gap:10px;align-items:center}.image-link-panel input{min-width:0;flex:1;font-size:12px}.image-link-panel .button{font-size:11px;padding:12px 15px}.image-link-panel [hidden]{display:none!important}#image-link-preview{font-size:11px;line-height:1.8;color:var(--muted);margin-top:15px}#image-link-preview img{display:block;width:100%;height:200px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:var(--soft)}#image-link-preview .small-note{margin-top:10px}#save-image-link{margin-top:14px}.image-gallery button:hover{border-color:#859e70}.image-gallery button:focus-visible{outline:3px solid #c8a36b;outline-offset:3px}
@media(max-width:650px){.image-search-tools{gap:8px;margin:0 0 18px}.image-search-tools .button{font-size:10px;padding:10px 12px}.image-search-tools .small-note{margin:0;width:100%}.image-link-panel #image-link-form{align-items:stretch;flex-direction:column}.image-link-panel .button{font-size:10px}#image-link-preview img{height:170px}}


/* EngNet 4 — separate pages, clear light/dark foundations and subject colors. */
:root{--bg:#f7f9fd;--surface:#fff;--ink:#17233d;--muted:#62708a;--line:#e1e7f0;--green:#405bdb;--soft:#eef2ff;--accent:#fb8a58;--shadow:0 6px 22px #20386305;color:var(--ink);background:var(--bg);font-size:14px}
[hidden]{display:none!important}
body{color:var(--ink);background:var(--bg)}
button,input,textarea,select{font-size:13px}input,textarea,select{border-color:var(--line);border-radius:11px;background:var(--surface);color:var(--ink);padding:12px 14px}
input::placeholder,textarea::placeholder{color:#8993a5}input:focus,textarea:focus,select:focus{outline:2px solid #7c92ee;outline-offset:2px}
button:focus-visible,a:focus-visible{outline:3px solid #5277ee;outline-offset:4px}
h1{font-size:34px;line-height:1.35;letter-spacing:-1.1px;color:var(--ink)}h2{font-size:18px;color:var(--ink);font-weight:650;letter-spacing:-.3px}
p{line-height:1.8}small{font-size:11px}.muted{font-size:13px;line-height:1.9;color:var(--muted)}.small-note{font-size:11px;line-height:1.9;color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.4px;color:#6b7c9d}.warm-dot{color:#f08359}
.sidebar{width:238px;padding:31px 20px 21px;background:var(--surface);border-right:1px solid var(--line);overflow:auto}
.brand{font-size:30px;gap:12px;margin:0 7px 37px;color:var(--ink);min-height:48px}.brand-icon{width:40px;height:42px;background:#405bdb;color:#fff;border-radius:12px;flex-shrink:0}.brand-icon>span{background:#4fd2d5;color:#14325c;border-color:var(--surface);right:-7px;bottom:-6px}.brand small{font-size:7px;letter-spacing:1.8px;color:var(--muted)}.brand-dot{color:#f08359}
.side-label{font-size:9px;letter-spacing:1.6px;font-weight:600;color:#8591a7;margin:0 13px 11px}.utility-label{margin-top:29px}
.main-nav,.utility-nav{display:grid;gap:5px}.main-nav button,.utility-nav button{width:100%;display:flex;align-items:center;gap:13px;text-align:left;border-radius:10px;padding:12px 14px;background:transparent;color:#63728d;font-size:12px;font-weight:500;min-height:45px}
.main-nav button>span:first-child,.utility-nav button>span:first-child{width:22px;font-size:22px;text-align:center;line-height:1;flex-shrink:0}.main-nav button>.nav-label,.utility-nav button>.nav-label{font-size:12px;line-height:1.4;width:auto;text-align:left;white-space:normal}
.main-nav button:hover,.utility-nav button:hover{background:#f4f6fc;color:#304bc5}.main-nav button.active,.utility-nav button.active{background:#ebefff;color:#3754d1;font-weight:650}
.utility-nav button{font-size:11px;min-height:41px;padding-top:10px;padding-bottom:10px}.utility-nav button>.nav-label{font-size:11px}.utility-nav button>span:first-child{font-size:19px}
.side-bottom{margin-top:auto;padding-top:20px;padding-bottom:1px;font-size:8px;letter-spacing:1.9px;color:#8390a6;border-color:var(--line)}.side-bottom>span{color:#4b69d1;font-weight:700}
.workspace{margin-left:238px;padding:0 40px;min-width:0}.topbar{height:93px;gap:15px;position:relative;border-color:var(--line)}.topbar-context>.eyebrow{font-size:8px;letter-spacing:1.4px;color:#7b88a1}.topbar-line{display:flex;align-items:center;gap:11px;margin-top:5px}.topbar-line strong{font-size:12px;font-weight:600;color:#344462}.topbar-line>span{font-size:12px;color:#b3bdce}.topbar p{font-size:11px;color:var(--muted);margin:0}.topbar-actions{display:flex;align-items:center;gap:10px}.connection-pill{font-size:10px;background:var(--surface);border-color:var(--line);padding:10px 12px;color:#576780}.connection-pill i{background:#a7b3ca}.connection-pill.online{background:#effaf7;border-color:#cde9df;color:#22725d}.connection-pill.online i{background:#2aa984}.utility-toggle{display:none}
.mobile-utilities{position:absolute;right:0;top:76px;width:250px;padding:9px;background:var(--surface);border:1px solid var(--line);box-shadow:0 14px 40px #1e355d25;border-radius:14px;z-index:45}.mobile-utilities button{display:flex;align-items:center;gap:13px;width:100%;padding:13px;border-radius:9px;text-align:left;font-size:12px;color:var(--muted)}.mobile-utilities button>span:first-child{width:23px;font-size:20px}.mobile-utilities button.active{color:#405bdb;background:var(--soft)}
#main{max-width:1240px;min-height:calc(100vh - 183px);padding-bottom:30px}.page-heading{margin:34px 0 27px;align-items:center;gap:20px}.page-heading .eyebrow{margin-bottom:7px}.page-heading p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:10px}.page-heading>.button{font-size:11px}.button{font-size:12px;padding:12px 18px;border-radius:10px;gap:10px;line-height:1.6;min-height:43px;font-weight:500}.button.primary{background:#405bdb;border-color:#405bdb;color:white}.button.primary:hover{background:#334cc4;border-color:#334cc4}.button.secondary{background:var(--surface);border-color:var(--line);color:#455777}.button.secondary:hover{background:#eef2ff;border-color:#bccafa}.text-button{font-size:11px;color:#4d67c3}.text-button.danger{color:#c65454}
.hero-card.home-hero{background:linear-gradient(115deg,#3454d7 0%,#4e56d9 57%,#7153d4 100%);border:0;border-radius:20px;min-height:300px;grid-template-columns:1.1fr .9fr;margin:0 0 33px;align-items:center;box-shadow:0 13px 35px #4159ca12;isolation:isolate}
.home-hero .hero-copy{padding:32px 34px;position:relative;z-index:2}.home-hero .tag{font-size:8px;letter-spacing:1.6px;color:#f0f2ff;background:#ffffff19;border:1px solid #ffffff29;padding:7px 10px;display:inline-block;border-radius:6px}.home-hero h2{font-size:34px;line-height:1.38;letter-spacing:-1px;color:white;font-weight:650;margin:17px 0 11px}.home-hero .hero-copy p{color:#dde5ff;font-size:11px}.home-hero .button.primary{margin:23px 0 0;padding:13px 17px;background:white;color:#3651c8;border:1px solid white;box-shadow:0 4px 15px #1e2e8520}.home-hero .button.primary:hover{background:#edf3ff}.home-hero .button b{font-weight:700}.home-hero .button>span{margin-left:14px}.today-summary{position:relative;z-index:2;align-self:center;background:#fff;border:1px solid #ffffffa3;box-shadow:0 10px 30px #1d2e8920;padding:23px 26px;border-radius:17px;margin:25px 32px 25px 15px;transform:rotate(2deg)}.today-summary-label{font-size:8px;letter-spacing:1.5px;color:#8995b2;font-weight:600}.today-total{display:flex;gap:17px;align-items:center;padding:12px 0 16px;border-bottom:1px solid #e8edf7}.today-total strong{font-size:76px;line-height:1.1;font-weight:650;letter-spacing:-5px;color:#3853c9}.today-total>span{font-size:12px;line-height:1.9;color:#75829f}.today-composition{display:flex;flex-direction:column;gap:10px;margin-top:16px}.today-composition>span{font-size:10px;color:#6c7893;display:flex;align-items:center;gap:8px}.today-composition b{font-size:12px;color:#34466d;font-weight:650}.dot-blue,.dot-coral{width:7px;height:7px;border-radius:50%;display:inline-block;background:#5779ef}.dot-coral{background:#ef9069}.home-hero-orbit{position:absolute;border:1px solid #ffffff20;border-radius:50%;width:430px;height:430px;right:-70px;top:-72px;z-index:0}.home-hero-orbit:after{content:'';position:absolute;inset:35px;border:1px solid #ffffff15;border-radius:50%}.home-section{margin:0 0 29px}.section-title{margin-bottom:16px}.section-title h2{font-size:17px;font-weight:650}.section-title>span{font-size:10px;color:#7b89a1}
.week-strip{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:0}.week-day{position:relative;align-items:flex-start;gap:6px;overflow:hidden;background:var(--day-bg,#eef2ff);border:1px solid transparent;border-radius:13px;padding:16px 16px 14px;color:var(--day-color,#4566c6);transition:transform .15s,box-shadow .15s;min-height:116px}.week-day:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:var(--day-color)}.week-day>span:first-child{font-size:10px;color:var(--day-color);font-weight:600}.week-day strong{font-size:28px;letter-spacing:-1px;font-weight:650;color:var(--day-color)}.week-day small{font-size:8px;color:var(--day-color);opacity:.8}.week-day .weekday-arrow{position:absolute;right:11px;bottom:15px;font-size:13px;opacity:.65}.week-day.selected{background:var(--day-color);border-color:var(--day-color);box-shadow:0 8px 20px color-mix(in srgb,var(--day-color) 20%,transparent)}.week-day.selected>span:first-child,.week-day.selected strong,.week-day.selected small,.week-day.selected .weekday-arrow{color:#fff;opacity:1}.week-day:hover{transform:translateY(-3px);border-color:var(--day-color)}
.weekday-monday{--day-color:#4168dc;--day-bg:#edf2ff}.weekday-tuesday{--day-color:#05869b;--day-bg:#e6f8fb}.weekday-wednesday{--day-color:#8655c8;--day-bg:#f2ecfc}.weekday-thursday{--day-color:#cc6c32;--day-bg:#fff0e5}.weekday-friday{--day-color:#c65582;--day-bg:#feebf2}.weekday-saturday{--day-color:#248b73;--day-bg:#e5f6f0}.weekday-sunday{--day-color:#a88116;--day-bg:#fff7db}
.home-focus-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.focus-card{display:flex;align-items:center;text-align:left;gap:15px;padding:22px;border:1px solid var(--line);background:var(--surface);border-radius:14px;min-width:0}.focus-card:hover{border-color:#b7c6ee;box-shadow:var(--shadow)}.focus-icon{width:43px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:24px;flex-shrink:0}.focus-icon.coral{background:#fff0e6;color:#d97e49}.focus-icon.blue{background:#eaf0ff;color:#5579d9}.focus-card>span:nth-child(2){flex:1;min-width:0}.focus-card b{font-size:12px;display:block;font-weight:600;color:var(--ink)}.focus-card small{font-size:9px;color:var(--muted);display:block;margin-top:7px;line-height:1.9}.focus-card strong{font-size:25px;letter-spacing:-1px;font-weight:600;color:var(--ink)}.focus-card>span:last-child{color:#8293b8;font-size:16px}
.scope-bar{display:flex;align-items:center;gap:18px;padding:17px 20px;background:var(--surface);border:1px solid var(--line);border-radius:13px;margin:24px 0}.scope-select{min-width:210px;font-size:10px;gap:7px;color:var(--muted)}.scope-select select{font-size:12px;padding:10px 12px;min-width:230px}.count-label{font-size:11px;color:var(--muted);padding:10px 0}.count-label>b{color:#405bdb}.search-input{font-size:12px;background:var(--bg)}
.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.mode-card{padding:0;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:17px;min-height:0;display:flex;align-items:stretch;position:relative;transition:border-color .15s,transform .15s,box-shadow .15s}.mode-card:hover{transform:translateY(-3px);border-color:var(--mode-color);box-shadow:0 13px 26px #273a700a}.mode-art{display:grid;place-items:center;width:100%;height:142px;position:relative;overflow:hidden;isolation:isolate;background:var(--mode-bg)}.mode-art-symbol{position:relative;font-size:65px;font-weight:700;line-height:1;letter-spacing:-6px;color:var(--mode-color);z-index:2;transform:rotate(-10deg)}.mode-art-orbit{position:absolute;width:160px;height:160px;right:-10px;top:-50px;border:2px solid color-mix(in srgb,var(--mode-color) 16%,transparent);border-radius:50%;transform:rotate(-15deg)}.mode-art-orbit:after{content:'';position:absolute;width:90px;height:90px;top:32px;left:-94px;border:2px solid color-mix(in srgb,var(--mode-color) 12%,transparent);border-radius:23px;transform:rotate(20deg)}.mode-art-dot{position:absolute;width:18px;height:18px;left:21%;top:28px;background:color-mix(in srgb,var(--mode-color) 30%,transparent);border-radius:5px;transform:rotate(20deg)}.mode-card-copy{width:100%;padding:22px 25px 24px}.mode-number{font-size:8px;font-weight:600;letter-spacing:1.7px;color:var(--mode-color)}.mode-card h2{font-size:21px;font-weight:650;margin-top:10px}.mode-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 22px}.mode-start{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--mode-color);font-weight:600}.mode-start>span{font-size:17px}.game-flashcards{--mode-color:#4366d7;--mode-bg:#eaf0ff}.game-typing{--mode-color:#d66d48;--mode-bg:#fff0e7}.game-listening{--mode-color:#008e9d;--mode-bg:#e1f7f7}.game-quiz{--mode-color:#8c55c8;--mode-bg:#f1e9fc}.game-match{--mode-color:#4873da;--mode-bg:#e9f1ff}.game-blocks{--mode-color:#d37d26;--mode-bg:#fff0da}.game-gems{--mode-color:#9261ce;--mode-bg:#f1e8fb}.game-blast{--mode-color:#078c9c;--mode-bg:#dff6f9}.games-grid .mode-art-symbol{font-size:78px}.games-grid .mode-art{height:167px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:27px;box-shadow:var(--shadow)}.panel>h2{font-size:18px;margin-bottom:17px}.settings-single-page{display:grid;grid-template-columns:1fr;width:min(100%,780px);gap:20px}.settings-single-page .panel{padding:29px}.settings-single-page .muted{font-size:12px}.settings-single-page .small-note{font-size:11px}.settings-grid .button{font-size:12px;margin-top:19px}.settings-grid form{margin-top:23px;gap:15px}.settings-grid form .button{margin-top:0}.settings-grid label{font-size:12px}.settings-grid label>small{font-size:10px!important}.settings-grid .check-row{font-size:11px}.settings-grid .form-actions{gap:17px}.settings-grid .form-actions .button{margin-top:0}.settings-grid #forget-key{font-size:11px}.settings-buttons{gap:11px}.settings-grid select,.settings-grid input{font-size:13px}.export-panel{background:var(--surface)}.export-symbol{color:#4e70d9;background:#edf2ff;border-color:#d3ddfb}.stat-pair strong{font-size:38px;color:var(--ink);font-weight:600;letter-spacing:-1px}.stat-pair span{font-size:11px;color:var(--muted)}.stat-pair>div+div{border-color:var(--line)}.job-note{font-size:11px;line-height:1.9;color:#9b674a}.appearance-panel{max-width:780px}.appearance-panel .theme-row{margin-top:25px;padding:23px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:14px}.appearance-panel .theme-row input{width:23px;height:23px;accent-color:#405bdb}.check-row input{accent-color:#405bdb}.connected-text{color:#21856a;font-size:12px}
.library-header{padding:0 3px 14px;font-size:11px;color:var(--muted)}.library-header>span:last-child{font-size:9px;letter-spacing:1px}.vocab-list{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.vocab-row{padding:18px 20px;border-color:var(--line);gap:18px}.vocab-row:last-child{border-bottom:0}.vocab-image{width:70px;height:68px;border-radius:10px}.image-empty{background:#eaf0ff;color:#7b92ca}.vocab-text h2{font-size:16px;font-weight:600}.vocab-text h2 small{color:#6f819e;font-size:9px}.ipa{color:#7886a0;font-size:11px}.vocab-text p{color:#3f5276;font-size:12px}.vocab-text>small{color:#8a96aa;font-size:9px}.audio-tag{font-size:9px;color:#aa7837;background:#fff9ed;border-color:#f1e2c2}.audio-tag.ready{color:#28775d;border-color:#cce7dc;background:#effaf5}.icon-button{color:#5d78ba;background:var(--surface);border-color:var(--line)}.icon-button:hover{background:#edf2ff;border-color:#c1d0f3}.load-more{margin-top:23px}
.import-panel{padding:27px}.import-top h2{font-size:18px}.import-top p{font-size:11px;line-height:1.8;color:var(--muted)}.import-top p>span{color:#a3b3d3}.import-top>label{font-size:11px}.import-top select{font-size:12px}.import-panel textarea{background:#f8faff;border-color:#bac9ef;font-size:12px;line-height:2.1}.import-actions>small{font-size:10px;color:var(--muted)}.gentle-note{background:#edf5ff;border-color:#d8e5fb}.gentle-note>span{color:#6c8ad3}.gentle-note p{font-size:11px;line-height:1.9;color:#5d7398}.preview-table-wrap{border-color:var(--line);border-radius:13px;background:var(--surface)}.preview-table th{background:#eef3ff;color:#566f9c;font-size:11px}.preview-table td input:not([type=checkbox]){font-size:12px}.preview-bottom>span{font-size:11px;color:var(--muted)}.invalid-row{background:#fff0ec}.form-error{color:#ba4e42}
.study-top{padding:28px 0 22px}.study-top>.text-button{font-size:12px}.study-top>span{font-size:11px;color:var(--muted)}
dialog{border-color:var(--line);background:var(--surface);color:var(--ink);box-shadow:0 30px 100px #10234635;padding:32px;border-radius:19px}dialog::backdrop{background:#13223f80}dialog>h2{font-size:22px}.modal-close{color:#7788a3}.modal-close:hover{background:var(--soft)}.edit-form{gap:19px}.edit-form>label{font-size:12px}.edit-media>span{color:var(--muted);font-size:11px}.image-gallery span,.image-gallery small{color:var(--muted)}.image-gallery button{background:var(--surface);border-color:var(--line)}.image-gallery button:hover{border-color:#6683d7}.image-link-panel{border-color:var(--line)}.image-link-panel h3{font-size:17px}.image-search-tools .small-note{color:var(--muted)}.voice-row{border-color:var(--line)}.voice-row b{font-size:13px}.voice-row small{font-size:11px;color:var(--muted)}.voice-row>.button{font-size:11px}.file-label{cursor:pointer}
.site-footer{border-color:var(--line);font-size:9px;color:#8390a8;padding:21px 0 23px;margin-top:20px}.site-footer>span{font-size:8px;letter-spacing:1.1px}.empty-state{color:var(--muted)}.empty-state h1,.empty-state h2{color:var(--ink)}.empty-state p{font-size:13px}#toast{background:#344fbd;color:white;box-shadow:0 8px 35px #173d8130;font-size:12px}#toast.error{background:#a54846}.loader{border-color:#e1e7f0;border-top-color:#405bdb}
[data-theme=dark]{--bg:#0b1324;--surface:#131f34;--ink:#edf2ff;--muted:#a0b1cb;--line:#293952;--green:#5878f0;--soft:#1c2d50;--accent:#ff9d6b;--shadow:0 7px 25px #0000000c;color:var(--ink);background:var(--bg)}
[data-theme=dark] .sidebar{background:#101b2e}[data-theme=dark] .brand,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] .focus-card b,[data-theme=dark] .focus-card strong{color:var(--ink)}[data-theme=dark] .brand-icon{background:#5272ec}[data-theme=dark] .brand-icon>span{border-color:#101b2e;background:#55d1d5;color:#16305a}[data-theme=dark] .main-nav button,[data-theme=dark] .utility-nav button{color:#a9b8d0}[data-theme=dark] .main-nav button:hover,[data-theme=dark] .utility-nav button:hover{background:#192b48;color:#dae4ff}[data-theme=dark] .main-nav button.active,[data-theme=dark] .utility-nav button.active{background:#243b6c;color:#c3d2ff}[data-theme=dark] .side-label,[data-theme=dark] .side-bottom{color:#8297b8}[data-theme=dark] .side-bottom>span{color:#97b1ff}[data-theme=dark] .topbar-line strong{color:#d4dff3}[data-theme=dark] .topbar-line>span{color:#4e6486}[data-theme=dark] .connection-pill{background:#17253d;color:#aec0dc}[data-theme=dark] .connection-pill.online{background:#183a38;border-color:#285c54;color:#98d6bb}[data-theme=dark] .eyebrow,[data-theme=dark] .topbar-context>.eyebrow{color:#92a6ca}[data-theme=dark] .button.primary{background:#5272ec;border-color:#5272ec}[data-theme=dark] .button.primary:hover{background:#6482f2;border-color:#6482f2}[data-theme=dark] .button.secondary{background:#17253d;border-color:#354866;color:#d4def0}[data-theme=dark] .button.secondary:hover{background:#223655;border-color:#5170a4}[data-theme=dark] .text-button{color:#9bb5ff}[data-theme=dark] .text-button.danger{color:#ffa098}[data-theme=dark] .hero-card.home-hero{background:linear-gradient(115deg,#223e9e 0%,#3d42a4 60%,#6543a2 100%)}[data-theme=dark] .home-hero h2{color:#fff}[data-theme=dark] .home-hero .hero-copy p{color:#dce6ff}[data-theme=dark] .home-hero .button.primary{background:#f4f7ff;color:#3651ba;border-color:#f4f7ff}[data-theme=dark] .today-summary{background:#162549;border-color:#5064a1}[data-theme=dark] .today-total{border-color:#354a75}[data-theme=dark] .today-total strong{color:#b7c9ff}[data-theme=dark] .today-total>span,[data-theme=dark] .today-composition>span{color:#a9bbdf}[data-theme=dark] .today-composition b{color:#ecf1ff}[data-theme=dark] .today-summary-label{color:#9cb2dd}[data-theme=dark] .week-day{background:color-mix(in srgb,var(--day-color) 12%,#131f34);border-color:color-mix(in srgb,var(--day-color) 20%,#293952)}[data-theme=dark] .week-day.selected{background:color-mix(in srgb,var(--day-color) 46%,#172540);border-color:var(--day-color)}[data-theme=dark] .week-day.selected>span:first-child,[data-theme=dark] .week-day.selected strong,[data-theme=dark] .week-day.selected small{color:white}[data-theme=dark] .weekday-monday{--day-color:#8eacff}[data-theme=dark] .weekday-tuesday{--day-color:#68c5db}[data-theme=dark] .weekday-wednesday{--day-color:#bd97ed}[data-theme=dark] .weekday-thursday{--day-color:#f0ad75}[data-theme=dark] .weekday-friday{--day-color:#ec99b7}[data-theme=dark] .weekday-saturday{--day-color:#75c9ac}[data-theme=dark] .weekday-sunday{--day-color:#e8cc77}[data-theme=dark] .focus-icon.coral{background:#44302a;color:#efb184}[data-theme=dark] .focus-icon.blue{background:#253b6b;color:#a2baff}[data-theme=dark] .count-label>b{color:#acc2ff}[data-theme=dark] .scope-bar{background:var(--surface)}[data-theme=dark] .mode-card{background:var(--surface)}[data-theme=dark] .mode-art{background:color-mix(in srgb,var(--mode-color) 16%,#17233a)}[data-theme=dark] .mode-card h2{color:var(--ink)}[data-theme=dark] .game-flashcards,[data-theme=dark] .game-match{--mode-color:#9db8ff}[data-theme=dark] .game-typing{--mode-color:#edaa83}[data-theme=dark] .game-listening,[data-theme=dark] .game-blast{--mode-color:#7bced8}[data-theme=dark] .game-quiz,[data-theme=dark] .game-gems{--mode-color:#c0a2ef}[data-theme=dark] .game-blocks{--mode-color:#efb267}[data-theme=dark] .export-panel{background:var(--surface)}[data-theme=dark] .export-symbol{background:#243b6d;border-color:#405b91;color:#b6c9ff}[data-theme=dark] .appearance-panel .theme-row{background:#101a2d}[data-theme=dark] .vocab-text p{color:#b9c9e3}[data-theme=dark] .vocab-text h2 small,[data-theme=dark] .ipa{color:#9cafce}[data-theme=dark] .vocab-text>small{color:#7f96b6}[data-theme=dark] .audio-tag{background:#332c1e;border-color:#69512f;color:#d5b77a}[data-theme=dark] .audio-tag.ready{background:#183b33;border-color:#2d6654;color:#92d5b7}[data-theme=dark] .icon-button{background:#182943;color:#a9beec}[data-theme=dark] .image-empty{background:#233a68;color:#a7beee}[data-theme=dark] .import-panel textarea{background:#0e1a2f;border-color:#39527e;color:#e8f0ff}[data-theme=dark] .gentle-note{background:#152844;border-color:#2c476c}[data-theme=dark] .gentle-note p{color:#a4badc}[data-theme=dark] .gentle-note>span{color:#9cb9f8}[data-theme=dark] .preview-table th{background:#1b2c49;color:#bdcdec}[data-theme=dark] .invalid-row{background:#442e2b}[data-theme=dark] .job-note{color:#d6ae8d}[data-theme=dark] .connected-text{color:#91d2b6}[data-theme=dark] .mobile-utilities button{color:#b1c3e0}[data-theme=dark] .mobile-utilities button.active{background:#243c6c;color:#c1d4ff}
@media(min-width:1550px){.workspace{padding:0 60px}.hero-card.home-hero{min-height:330px}.home-hero .hero-copy{padding:36px 40px}.home-hero h2{font-size:39px}.today-summary{margin-right:42px;padding:27px 31px}.today-total strong{font-size:88px}.week-day{min-height:126px}}
@media(max-width:1180px){.sidebar{width:214px;padding:29px 15px 20px}.workspace{margin-left:214px;padding:0 28px}.hero-card.home-hero{grid-template-columns:1.1fr .9fr;min-height:290px}.home-hero .hero-copy{padding:28px}.home-hero h2{font-size:31px}.today-summary{margin-right:24px;margin-left:5px;padding:23px 21px}.today-total strong{font-size:65px}.today-total>span{font-size:10px}.today-composition>span{font-size:9px}.week-day{padding:15px 12px 13px}.mode-art{height:126px}.games-grid .mode-art{height:147px}.mode-card-copy{padding:22px}.page-heading h1{font-size:31px}.topbar-context>.eyebrow{font-size:7px}}
@media(max-width:950px){.sidebar{width:78px;padding:27px 10px 20px;overflow:visible}.brand{font-size:0;display:flex;margin:0 auto 28px}.brand>span:last-child{display:none}.main-nav button,.utility-nav button{justify-content:center;padding:12px 7px;min-height:44px}.main-nav button>.nav-label,.utility-nav button>.nav-label{display:none}.side-label,.side-bottom{display:none}.utility-nav{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.workspace{margin-left:78px;padding:0 24px}.home-hero h2{font-size:30px}.today-summary{padding:20px}.today-composition>span{font-size:8px}.focus-card{padding:20px 16px;gap:12px}.focus-card small{font-size:8px}.focus-card strong{font-size:23px}.week-strip{gap:7px}.week-day{padding:14px 9px 12px;min-height:110px}.week-day>span:first-child{font-size:9px}.week-day strong{font-size:25px}.section-title h2{font-size:16px}}
@media(max-width:700px){.sidebar{inset:auto 0 0;width:100%;height:72px;padding:5px 8px 8px;overflow:visible;background:var(--surface);border:0;border-top:1px solid var(--line);box-shadow:0 -4px 20px #13295905}.brand,.utility-nav,.utility-label{display:none}.main-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.main-nav button{flex-direction:column;gap:5px;padding:8px 2px;min-height:54px}.main-nav button>span:first-child{font-size:22px;width:25px}.main-nav button>.nav-label{display:block;width:auto;font-size:8px;line-height:1.2;text-align:center}.workspace{margin-left:0;padding:0 18px 78px;width:100%}.topbar{height:79px;gap:10px}.topbar-context>.eyebrow{font-size:6px;letter-spacing:1px;max-width:210px;line-height:1.8}.topbar-line{gap:7px;margin-top:5px;flex-wrap:wrap;row-gap:2px}.topbar-line strong{font-size:10px}.topbar-line>span{font-size:10px}.topbar p{font-size:9px}.connection-pill{font-size:8px;max-width:132px;padding:8px 9px;white-space:normal;line-height:1.6;gap:6px}.connection-pill i{flex-shrink:0}.topbar-actions{gap:7px}.utility-toggle{display:block;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:16px;color:var(--ink);flex-shrink:0}.mobile-utilities{top:65px;right:0;width:min(265px,90vw)}.page-heading{margin:26px 0 21px;gap:13px;align-items:flex-start}.page-heading h1{font-size:27px;letter-spacing:-1px;max-width:360px}.page-heading .eyebrow{font-size:7px;letter-spacing:1px}.page-heading p{font-size:11px;line-height:1.85;margin-top:9px}.page-heading>.button{font-size:9px;padding:9px 11px;min-height:36px;margin-top:16px;white-space:nowrap}.button{font-size:11px;padding:12px 15px;min-height:43px}.hero-card.home-hero{grid-template-columns:1fr;min-height:0;border-radius:17px;margin-bottom:27px}.home-hero .hero-copy{padding:25px 24px 23px}.home-hero .tag{font-size:7px;letter-spacing:1.2px;padding:6px 9px}.home-hero h2{font-size:30px;line-height:1.4;margin-top:16px}.home-hero .hero-copy p{font-size:10px;max-width:280px}.home-hero .button.primary{margin-top:19px;padding:11px 14px;font-size:10px}.today-summary{margin:0 21px 21px;padding:16px 18px;transform:none;border-radius:12px}.today-summary-label{font-size:7px;letter-spacing:1.2px}.today-total{padding:9px 0 12px;gap:14px}.today-total strong{font-size:56px;letter-spacing:-3px}.today-total>span{font-size:10px}.today-composition{flex-direction:row;flex-wrap:wrap;gap:10px 14px;margin-top:12px}.today-composition>span{font-size:9px;gap:6px}.today-composition b{font-size:10px}.home-hero-orbit{width:350px;height:350px;right:-190px;top:20px}.home-section{margin-bottom:25px}.section-title{gap:12px;margin-bottom:14px}.section-title h2{font-size:15px;line-height:1.5}.section-title>span{font-size:8px;max-width:125px;text-align:right;line-height:1.7}.week-strip{gap:5px}.week-day{padding:11px 4px 12px;border-radius:9px;min-height:88px;align-items:center;gap:5px}.week-day>span:first-child{font-size:7px;white-space:nowrap}.week-day strong{font-size:22px;letter-spacing:-.8px}.week-day small{font-size:6px}.week-day .weekday-arrow{display:none}.home-focus-grid{grid-template-columns:1fr;gap:12px}.focus-card{padding:18px;gap:13px}.focus-icon{width:38px;height:42px;font-size:22px;border-radius:11px}.focus-card b{font-size:11px}.focus-card small{font-size:9px;margin-top:5px}.focus-card strong{font-size:24px}.focus-card>span:last-child{font-size:14px}.scope-bar{padding:16px;margin:20px 0;gap:12px;align-items:center}.scope-select{min-width:150px;flex:1;font-size:9px}.scope-select select{width:100%;min-width:0;font-size:11px}.count-label{font-size:9px;padding:3px 0}.mode-grid{grid-template-columns:1fr;gap:16px}.mode-card{display:grid;grid-template-columns:113px minmax(0,1fr);min-height:165px;border-radius:14px;align-items:stretch}.mode-art,.games-grid .mode-art{width:100%;height:100%;min-height:175px}.mode-art-symbol{font-size:46px;letter-spacing:-3px}.games-grid .mode-art-symbol{font-size:54px}.mode-art-orbit{width:125px;height:125px;right:-61px;top:-25px}.mode-art-orbit:after{width:60px;height:60px;left:-58px;top:50px;border-radius:17px}.mode-art-dot{width:12px;height:12px;left:14px;top:23px}.mode-card-copy{padding:19px 17px}.mode-number{font-size:7px;letter-spacing:1.2px}.mode-card h2{font-size:18px;margin-top:8px}.mode-card p{font-size:10px;line-height:1.85;margin:8px 0 14px}.mode-start{font-size:9px}.mode-start>span{font-size:15px}.panel,.settings-single-page .panel{padding:23px}.panel>h2{font-size:18px}.settings-single-page{width:100%}.settings-grid .muted{font-size:11px}.settings-grid .small-note{font-size:10px}.settings-grid .button{font-size:11px;margin-top:16px}.settings-grid form{gap:16px}.settings-grid input,.settings-grid select{font-size:12px}.settings-grid .check-row{font-size:10px}.settings-grid label{font-size:11px}.settings-buttons{gap:10px}.settings-buttons .button{width:100%;margin-top:10px}.settings-buttons>.text-button{margin-top:4px}.stat-pair strong{font-size:35px}.stat-pair span{font-size:10px}.appearance-panel .theme-row{padding:19px;font-size:12px}.vocab-row{padding:16px 13px;gap:12px}.vocab-image{width:49px;height:55px;border-radius:8px}.vocab-text h2{font-size:14px}.vocab-text h2 small{font-size:8px}.vocab-text p{font-size:11px}.vocab-text>small{font-size:8px}.ipa{font-size:10px}.row-actions{gap:5px}.icon-button{width:29px;height:29px;font-size:15px}.library-header{font-size:9px}.library-header>span:last-child{font-size:7px}.import-panel{padding:21px}.import-top{gap:17px}.import-top h2{font-size:17px}.import-top p{font-size:9px}.import-top>label{width:100%;font-size:10px}.import-panel textarea{font-size:11px;padding:15px;line-height:2}.import-actions{gap:14px}.import-actions>small{font-size:9px;margin:0}.gentle-note{padding:16px;gap:12px}.gentle-note p{font-size:10px}.preview-bottom>span{font-size:10px}.preview-table th{font-size:10px}.preview-table td input:not([type=checkbox]){font-size:11px}.study-top{padding:22px 0 18px}.study-top>.text-button{font-size:10px}.study-top>span{font-size:9px;max-width:180px;text-align:right}dialog{padding:27px 21px}dialog>h2{font-size:20px}.site-footer{font-size:8px;line-height:1.8;gap:18px;margin-top:18px;padding:18px 0}.site-footer>span{font-size:6px;letter-spacing:.6px;max-width:110px;text-align:right}#toast{left:50%;bottom:88px;font-size:11px;width:calc(100% - 30px);padding:14px 18px}[data-theme=dark] .sidebar{background:#101b2e}}
@media(max-width:370px){.workspace{padding-left:14px;padding-right:14px}.topbar-context>.eyebrow{max-width:180px}.connection-pill{max-width:110px;font-size:7px}.topbar-line>span{display:none}.topbar-line{flex-direction:column;align-items:flex-start;gap:2px}.page-heading h1{font-size:25px}.page-heading>.button{font-size:8px;padding:9px}.week-day>span:first-child{font-size:6px}.week-day strong{font-size:20px}.mode-card{grid-template-columns:95px minmax(0,1fr)}.mode-card-copy{padding:18px 14px}.mode-card h2{font-size:17px}.home-hero h2{font-size:28px}}

/* Keep the primary mobile action and weekly navigation near the first viewport. */
.mode-card>.mode-art:first-child{background:var(--mode-bg)}
[data-theme=dark] .mode-card>.mode-art:first-child{background:color-mix(in srgb,var(--mode-color) 16%,#17233a)}
.home-hero h2{max-width:none}
@media(max-width:700px){.home-hero h2{max-width:none;font-size:29px}.today-summary{display:flex;gap:16px;align-items:center;padding:15px 17px}.today-summary-label{display:none}.today-total{border:0;padding:0;gap:10px;flex-shrink:0}.today-total strong{font-size:47px}.today-total>span{font-size:8px;line-height:1.8;max-width:45px}.today-composition{display:flex;flex-direction:column;gap:9px;margin:0;padding-left:14px;border-left:1px solid #e3e9f8}.today-composition>span{font-size:8px;gap:5px}.today-composition b{font-size:10px}[data-theme=dark] .today-composition{border-color:#354a75}}

/* Screen controls keep the same navigation and study route at every size. */
html{min-height:100%;scrollbar-gutter:stable}
body{overflow-x:hidden}
.topbar-start{display:flex;align-items:center;gap:16px;min-width:0}
.topbar-context{min-width:0}
.shell-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:36px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:10px;flex-shrink:0}
.shell-control:hover{background:var(--soft)}
.sidebar-toggle{width:36px;padding:0}
.sidebar-toggle-icon{font-size:27px;line-height:1;transform:translateY(-1px)}
.mobile-menu-icon{display:none}
.fullscreen-icon{font-size:21px;line-height:1}
.topbar-actions{flex-shrink:0}
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.app-shell.sidebar-collapsed .sidebar{width:78px;padding:27px 10px 20px}
.app-shell.sidebar-collapsed .brand{font-size:0;display:flex;margin:0 auto 28px}
.app-shell.sidebar-collapsed .brand>span:last-child,.app-shell.sidebar-collapsed .side-label,.app-shell.sidebar-collapsed .side-bottom,.app-shell.sidebar-collapsed .nav-label{display:none}
.app-shell.sidebar-collapsed .main-nav button,.app-shell.sidebar-collapsed .utility-nav button{justify-content:center;padding:12px 7px;min-height:44px}
.app-shell.sidebar-collapsed .utility-nav{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}
.app-shell.sidebar-collapsed .workspace{margin-left:78px}
.study-top{display:flex;align-items:center;gap:16px}
.study-scope{margin-left:auto}
.study-fullscreen-toggle{font-size:10px}
.study-screen-controls{display:flex;gap:7px;align-items:center;margin-left:auto;z-index:1}
body[data-page=study] .topbar .fullscreen-toggle{display:none}
body[data-page=study],body[data-page=games],body.is-fullscreen{height:var(--app-height,100dvh);overflow:hidden;overscroll-behavior:none}
body[data-page=study] .app-shell,body[data-page=games] .app-shell,body.is-fullscreen .app-shell{height:var(--app-height,100dvh);min-height:0}
body[data-page=study] .workspace,body[data-page=games] .workspace,body.is-fullscreen .workspace{display:flex;flex-direction:column;height:100%;min-height:0}
body[data-page=study] .topbar,body[data-page=games] .topbar{height:70px;min-height:70px;flex-shrink:0}
body[data-page=study] .site-footer,body[data-page=games] .site-footer{display:none}
body.is-fullscreen #main{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.is-fullscreen .site-footer{display:none}
body[data-page=study] #main{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
body[data-page=study] .study-top{padding:12px 0;min-height:58px;flex-shrink:0}
body[data-page=study] #study-container{flex:1;min-height:0;width:100%;overflow:hidden;padding-bottom:12px}
body[data-page=study] .app-shell>.sidebar,body[data-page=study] .workspace>.topbar{display:none}
body[data-page=study] .app-shell .workspace{margin:0;padding:0 28px;width:100%}
body[data-page=study] #main{width:100%;max-width:none;padding-bottom:0}
body[data-page=study] .study-top{height:58px;min-height:58px;max-width:1400px;width:100%;margin:0 auto;border-bottom:1px solid var(--line);position:relative}
body[data-page=study] .study-top>.text-button{font-size:13px;z-index:1}
body[data-page=study] .study-scope{position:absolute;left:50%;transform:translateX(-50%);margin:0;font-size:11px;text-align:center;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-page=study] .app-shell.study-nav-open .sidebar{position:fixed;display:flex;inset:65px auto 12px 12px;width:234px;height:auto;max-height:calc(var(--app-height,100dvh) - 77px);padding:24px 18px;border:1px solid var(--line);border-radius:15px;box-shadow:0 18px 55px #080c2538;overflow-y:auto;z-index:50}
body[data-page=study] .app-shell.study-nav-open .brand{display:flex;font-size:30px;margin:0 0 28px 6px}
body[data-page=study] .app-shell.study-nav-open .brand>span:last-child{display:block}
body[data-page=study] .app-shell.study-nav-open .side-label{display:block;font-size:8px;margin-bottom:12px}
body[data-page=study] .app-shell.study-nav-open .side-bottom{display:none}
body[data-page=study] .app-shell.study-nav-open .main-nav{display:grid;grid-template-columns:1fr;gap:5px}
body[data-page=study] .app-shell.study-nav-open .main-nav button,body[data-page=study] .app-shell.study-nav-open .utility-nav button{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;padding:11px 13px;min-height:40px}
body[data-page=study] .app-shell.study-nav-open .nav-label{display:block;width:auto;text-align:left;font-size:11px}
body[data-page=study] .app-shell.study-nav-open .utility-nav{display:grid;gap:4px;margin:4px 0 0;padding:0;border:0}
body[data-page=study] .app-shell.study-nav-open .utility-label{display:block;margin-top:22px}
body[data-study-kind=game]{background:#09072c;color:#f4f4ff}
body[data-study-kind=game] .app-shell>.sidebar,body[data-study-kind=game] .workspace>.topbar{display:none}
body[data-study-kind=game] .app-shell .workspace{margin:0;padding:0 28px;width:100%;background:#09072c}
body[data-study-kind=game] #main{width:100%;max-width:none;padding-bottom:0}
body[data-study-kind=game] .study-top{height:58px;min-height:58px;max-width:1400px;width:100%;margin:0 auto;border-bottom:1px solid #ffffff18;position:relative}
body[data-study-kind=game] .study-top>.text-button{color:#f5f4ff;font-size:13px;z-index:1}
body[data-study-kind=game] .study-scope{position:absolute;left:50%;transform:translateX(-50%);margin:0;color:#c7c5e0;font-size:11px;text-align:center;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-study-kind=game] .study-screen-controls .shell-control{border-color:#ffffff30;background:#ffffff0a;color:#f4f4ff}
body[data-study-kind=game] .study-screen-controls .shell-control:hover{background:#ffffff15}
body[data-page=games] #main{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-bottom:22px}
body[data-page=games] .page-heading{margin:26px 0 14px;flex-shrink:0}
body[data-page=games] .page-heading h1{font-size:31px}
body[data-page=games] .page-heading p{font-size:11px;margin-top:8px}
body[data-page=games] .scope-bar{padding:12px 18px;margin:4px 0 18px;flex-shrink:0}
body[data-page=games] .games-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:16px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
body[data-page=games] .mode-card{display:flex;flex-direction:column;min-height:290px;height:100%;overflow:hidden}
body[data-page=games] .mode-art{flex:1;min-height:95px;max-height:48%;height:auto;flex-shrink:1}
body[data-page=games] .mode-art-symbol{font-size:65px}
body[data-page=games] .mode-card-copy{padding:20px 18px;min-height:165px;flex-shrink:0}
body[data-page=games] .mode-card h2{font-size:20px}
body[data-page=games] .mode-card p{font-size:11px;line-height:1.7;margin:9px 0 18px}
@media(min-width:701px) and (max-width:950px){
  .app-shell:not(.sidebar-collapsed) .sidebar{width:214px;padding:29px 15px 20px}
  .app-shell:not(.sidebar-collapsed) .brand{font-size:30px;margin:0 0 36px 6px}
  .app-shell:not(.sidebar-collapsed) .brand>span:last-child{display:block}
  .app-shell:not(.sidebar-collapsed) .side-label,.app-shell:not(.sidebar-collapsed) .side-bottom{display:flex}
  .app-shell:not(.sidebar-collapsed) .main-nav button,.app-shell:not(.sidebar-collapsed) .utility-nav button{justify-content:flex-start;padding:12px}
  .app-shell:not(.sidebar-collapsed) .nav-label{display:block;font-size:12px;text-align:left}
  .app-shell:not(.sidebar-collapsed) .workspace{margin-left:214px}
  .topbar{gap:9px}.topbar-start{gap:10px}.topbar-context>.eyebrow{display:none}.connection-pill{font-size:8px;padding:8px;max-width:140px}
  .fullscreen-toggle .fullscreen-label{display:none}
  body[data-page=games] .games-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
  body[data-page=games] .mode-card{min-height:150px;display:grid;grid-template-columns:75px minmax(0,1fr)}
  body[data-page=games] .mode-art{max-height:none;min-height:0;height:100%}
  body[data-page=games] .mode-art-symbol{font-size:42px}
  body[data-page=games] .mode-card-copy{padding:16px 14px;min-height:0}
  body[data-page=games] .mode-card h2{font-size:18px}
  body[data-page=games] .mode-card p{font-size:10px;margin:7px 0 10px}
}
@media(max-width:700px){
  html{scrollbar-gutter:auto}
  .topbar{height:70px}.topbar-start{gap:9px}.topbar-context>.eyebrow{display:none}.topbar-line{margin:0}.topbar-line>span,.topbar-line p{display:none}.topbar-line strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shell-control{min-width:34px;min-height:34px;padding:6px;border-radius:9px}
  .sidebar-toggle-icon{display:none}.mobile-menu-icon{display:block;font-size:17px}
  .fullscreen-toggle .fullscreen-label,.study-fullscreen-toggle .fullscreen-label{display:none}
  .connection-pill{max-width:120px;padding:7px 9px;font-size:8px}
  .app-shell .sidebar{height:calc(72px + env(safe-area-inset-bottom,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));width:100%}
  .app-shell .workspace{margin-left:0;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .app-shell.sidebar-collapsed .sidebar{display:none}
  .app-shell.sidebar-collapsed .workspace{margin-left:0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .app-shell .main-nav button{min-height:54px}
  body[data-page=study] .topbar,body[data-page=games] .topbar{height:56px;min-height:56px}
  body[data-page=study] .topbar .connection-pill{display:none}
  body[data-page=study] .study-top{min-height:49px;padding:7px 0;gap:9px}
  body[data-page=study] .study-top>.text-button{font-size:10px;white-space:nowrap}
  .study-top .study-scope{font-size:9px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none}
  body[data-page=study] #study-container{padding-bottom:8px}
  body[data-page=study] .app-shell .workspace{padding:0 12px}
  body[data-page=study] .study-top{height:48px;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
  body[data-page=study] .study-top>.text-button{font-size:12px;max-width:100%;justify-self:start;overflow:hidden;text-overflow:ellipsis}
  body[data-page=study] .study-scope{position:static;transform:none;font-size:9px;max-width:100%;width:100%}
  body[data-page=study] .app-shell.study-nav-open .sidebar{inset:55px auto 8px 8px;max-height:calc(var(--app-height,100dvh) - 63px)}
  body[data-study-kind=game] .app-shell .workspace{padding:0 12px}
  body[data-study-kind=game] .study-top{height:48px;min-height:48px}
  body[data-study-kind=game] .study-top>.text-button{font-size:12px}
  body[data-study-kind=game] .study-scope{font-size:9px;max-width:100%}
  body[data-page=games] #main{padding-bottom:12px}
  body[data-page=games] .page-heading{margin:18px 0 10px;gap:8px}
  body[data-page=games] .page-heading h1{font-size:25px}
  body[data-page=games] .page-heading .eyebrow{font-size:6px}
  body[data-page=games] .page-heading p{font-size:10px;line-height:1.7;margin-top:6px}
  body[data-page=games] .page-heading>.button{font-size:8px;min-height:32px;padding:7px 9px;margin-top:14px}
  body[data-page=games] .scope-bar{padding:10px 12px;gap:8px;margin:3px 0 12px}
  body[data-page=games] .scope-select{min-width:0;font-size:8px;gap:5px}
  body[data-page=games] .scope-select select{font-size:10px;padding:8px 9px}
  body[data-page=games] .count-label{font-size:8px;max-width:115px}
  body[data-page=games] .games-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
  body[data-page=games] .mode-card{min-height:180px;display:flex;border-radius:13px}
  body[data-page=games] .mode-art{flex:1;min-height:43px;max-height:40%;height:auto}
  body[data-page=games] .mode-art-symbol{font-size:41px}
  body[data-page=games] .mode-card-copy{padding:11px 12px;min-height:119px}
  body[data-page=games] .mode-number{font-size:6px}
  body[data-page=games] .mode-card h2{font-size:17px;margin-top:5px}
  body[data-page=games] .mode-card p{font-size:9px;line-height:1.65;margin:6px 0 10px}
  body[data-page=games] .mode-start{font-size:8px}
  body.is-fullscreen #toast,body[data-page=study] #toast,body[data-page=games] #toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  body:has(.sidebar-collapsed) #toast{bottom:18px}
}
@media(max-height:650px){
  body[data-page=games] .page-heading{margin:10px 0}
  body[data-page=games] .page-heading .eyebrow,body[data-page=games] .page-heading p{display:none}
  body[data-page=games] .page-heading h1{font-size:24px}
  body[data-page=games] .page-heading>.button{margin-top:0}
  body[data-page=games] .scope-bar{padding:8px 12px;margin:0 0 10px}
  body[data-page=games] .mode-card{min-height:155px}
  body[data-page=games] .mode-card-copy{padding:11px 12px;min-height:108px}
  body[data-page=games] .mode-card p{margin:5px 0 9px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.workspace{transition:none}}

.image-meaning-context{padding:12px 15px;background:var(--soft);border-radius:9px;font-size:13px;margin:15px 0}.image-query-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.image-query-suggestions .text-button{border:1px solid var(--line);border-radius:20px;padding:7px 12px}.image-source-label{max-width:320px;margin:15px 0}.image-gallery b{display:block;font-size:11px;line-height:1.6;padding:8px 9px 0;overflow-wrap:anywhere}.account-page{max-width:1000px;margin:auto}.utility-nav [data-nav=account][data-sync=syncing]::after{content:'↻';margin-left:auto}.utility-nav [data-nav=account][data-sync=offline]::after{content:'!';margin-left:auto;color:#df8955}

/* Anchor the study stage inside the visible area when a phone pans to its keyboard. */
body[data-page=study]{position:fixed;inset:0;width:100%;min-height:0}
body[data-page=study] #app{position:fixed;top:var(--app-offset-top,0px);left:0;width:100%;height:var(--app-height,100dvh);min-height:0;overflow:hidden}
@media(max-width:1000px){
  body[data-page=study] .st-mode-typing .st-content>.st-question,
  body[data-page=study] .st-mode-listening .st-content>.st-question{justify-content:flex-start}
}
body[data-page=study].is-keyboard-open .study-top{height:32px;min-height:32px;padding:2px 0;display:flex}
body[data-page=study].is-keyboard-open .study-scope,
body[data-page=study].is-keyboard-open .study-screen-controls,
body[data-page=study].is-keyboard-open .st-session-progress,
body[data-page=study].is-keyboard-open .st-game-menu{display:none}
body[data-page=study].is-keyboard-open #study-container{min-height:0;padding-bottom:6px}
body[data-page=study].is-keyboard-open .st-content>.st-question{display:flex;flex-direction:column;justify-content:flex-start;align-content:start;min-height:0;height:100%;width:min(760px,100%);padding:12px 14px;border-radius:15px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:10px}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-eyebrow{font-size:9px;line-height:1.3;flex-shrink:0}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-prompt{font-size:22px;line-height:1.3;margin:6px 0 7px;flex-shrink:0;max-height:130px;overflow:auto}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-muted{font-size:11px;line-height:1.4;flex-shrink:0}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-answer-form{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;gap:8px;margin:10px 0 6px;flex-shrink:0;align-self:stretch}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-answer-form>.st-answer-input{min-height:42px;font-size:16px;padding:8px 10px}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-answer-form>.st-button{width:auto;min-height:42px;padding:8px 13px;font-size:12px;flex-shrink:0}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-actions{margin:6px 0 0;gap:4px;flex-shrink:0}
body[data-page=study].is-keyboard-open .st-content>.st-question>.st-actions>.st-button{min-height:30px;padding:4px 7px;font-size:10px}
@media(min-width:620px){
  body[data-page=study].is-keyboard-open .st-content>.st-question{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);grid-template-rows:auto auto auto;gap:5px 18px}
  body[data-page=study].is-keyboard-open .st-content>.st-question>.st-eyebrow{grid-column:1;grid-row:1;align-self:start}
  body[data-page=study].is-keyboard-open .st-content>.st-question>.st-prompt{grid-column:1;grid-row:2;margin:0;align-self:start}
  body[data-page=study].is-keyboard-open .st-content>.st-question>.st-muted{grid-column:1;align-self:start}
  body[data-page=study].is-keyboard-open .st-content>.st-question>.st-answer-form{grid-column:2;grid-row:1/3;margin:0;align-self:start}
  body[data-page=study].is-keyboard-open .st-content>.st-question>.st-actions{grid-column:2;grid-row:3;margin:0;align-self:start}
}

/* EngNet v7.0 Upgrades: Bulk Select, Custom Group Management & Rolling Study */
.scope-controls-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; flex: 1; }
.batch-action-buttons { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.small-btn { padding: 0.42rem 0.78rem !important; font-size: 0.85rem !important; min-height: 2.1rem !important; }
.danger-btn { color: #b42318 !important; border-color: rgba(180, 35, 24, 0.35) !important; }
.button.primary.danger-btn { background: #b42318 !important; color: #ffffff !important; }
.bulk-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; background: var(--surface-2, rgba(39, 61, 53, 0.05)); border-radius: 12px; margin-bottom: 0.65rem; }
.bulk-left, .bulk-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.bulk-select-all { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; cursor: pointer; }
.vocab-check-wrap { display: inline-flex; align-items: center; justify-content: center; padding: 0.25rem; cursor: pointer; }
.vocab-check { width: 1.15rem; height: 1.15rem; cursor: pointer; accent-color: #273d35; }
.vocab-row.is-selected { outline: 2px solid #273d35; background: rgba(39, 61, 53, 0.06); }
.merge-batch-list { max-height: 240px; overflow-y: auto; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; padding: 0.65rem; display: flex; flex-direction: column; gap: 0.45rem; }
.hero-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 0.5rem; }
.rolling-limit-picker { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; background: rgba(255,255,255,0.14); padding: 0.4rem 0.75rem; border-radius: 10px; }
.rolling-limit-picker select { font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 6px; }
.import-meta-fields { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* EngNet v9.0 Upgrades: Excel 4-Column Upload & Direct Gmail Lesson Sharing */
.excel-upload-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; margin: 0.85rem 0; background: var(--soft, rgba(39, 61, 53, 0.05)); border: 1px dashed var(--line, rgba(0,0,0,0.18)); border-radius: 12px; }
.excel-sheet-picker label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; margin: 0; }
.excel-sheet-picker select { min-width: 220px; padding: 0.45rem 0.7rem; border-radius: 8px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.share-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.share-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.85rem; padding: 0.9rem 1.05rem; }
.share-row .vocab-text { flex: 1 1 240px; }
@media (max-width: 700px) {
  .app-shell:not(.study-nav-open) .main-nav { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 2px !important; }
  .app-shell:not(.study-nav-open) .main-nav button { padding: 6px 2px !important; font-size: 9px !important; }
}

/* EngNet v10.0 Upgrades: 7-Weekday Share Explorer, Live MP3 Sync, Edit Suggestions & Split Batch UI */
.share-weekday-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0; }
.share-day-chip { display: inline-flex; align-items: center; gap: 0.28rem; font-size: 0.78rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--soft, rgba(39, 61, 53, 0.06)); border: 1px solid var(--line, rgba(0,0,0,0.1)); }
.share-day-chip.has-words { background: rgba(23, 92, 211, 0.08); border-color: rgba(23, 92, 211, 0.25); color: var(--ink); font-weight: 600; }
.share-day-chip.empty-day { opacity: 0.55; }
.share-row.has-pending-sug { border: 2px solid #dc6803 !important; background: rgba(220, 104, 3, 0.04); }
.sug-alert-banner { margin-top: 0.5rem; padding: 0.45rem 0.75rem; border-radius: 8px; background: rgba(220, 104, 3, 0.12); color: #b54708; font-size: 0.85rem; }
.shared-explorer { display: flex; flex-direction: column; gap: 0.9rem; max-width: 960px; }
.shared-explorer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.85rem; }
.shared-week-strip { display: grid; grid-template-columns: repeat(8, minmax(78px, 1fr)); gap: 0.45rem; overflow-x: auto; padding-bottom: 0.25rem; }
.shared-day-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.55rem 0.65rem; border-radius: 11px; border: 1px solid var(--line, rgba(0,0,0,0.12)); background: var(--surface, #fff); cursor: pointer; text-align: left; transition: transform .12s ease, border-color .12s ease; }
.shared-day-tab span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; opacity: 0.75; }
.shared-day-tab strong { font-size: 1.15rem; line-height: 1.1; }
.shared-day-tab small { font-size: 0.7rem; opacity: 0.7; }
.shared-day-tab.selected { border: 2px solid #175cd3; background: rgba(23, 92, 211, 0.07); transform: translateY(-1px); }
.shared-batches-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.5rem 0.75rem; background: var(--soft, rgba(0,0,0,0.04)); border-radius: 10px; font-size: 0.82rem; }
.shared-batch-pill { border: 1px solid var(--line, rgba(0,0,0,0.14)); border-radius: 999px; padding: 0.25rem 0.65rem !important; font-size: 0.8rem !important; }
.shared-batch-pill.selected { background: #273d35 !important; color: #fff !important; }
.shared-vocab-list { max-height: 52vh; overflow-y: auto; padding-right: 0.25rem; }
.suggestions-review-list { display: flex; flex-direction: column; gap: 1rem; max-height: 68vh; overflow-y: auto; }
.sug-card { padding: 1rem !important; border: 1px solid var(--line, rgba(0,0,0,0.14)); border-radius: 12px; }
.sug-badge { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.sug-badge.pending { background: rgba(220, 104, 3, 0.14); color: #b54708; }
.sug-badge.approved { background: rgba(6, 118, 71, 0.14); color: #067647; }
.sug-badge.rejected { background: rgba(180, 35, 24, 0.14); color: #b42318; }
.diff-table td.diff-old { background: rgba(180, 35, 24, 0.06); color: #912018; }
.diff-table td.diff-new { background: rgba(6, 118, 71, 0.08); color: #065f46; }
.split-subpanel { padding: 0.75rem 0.9rem; background: var(--soft, rgba(0,0,0,0.03)); border-radius: 10px; border: 1px solid var(--line, rgba(0,0,0,0.1)); }
.split-pick-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.45rem 0; }

/* EngNet v11.0 Upgrades: Strict 0px Horizontal Overflow on Mobile (406px), Progress Bar, Speed Pill, Undo Banner & Batch Image Review */
html, body { max-width: 100%; overflow-x: hidden; }
.workspace, #main, .panel, .settings-grid, .share-grid, .edit-form, .edit-form label, .scope-bar, .scope-controls-wrap, .scope-select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.edit-form input, .edit-form select, .edit-form textarea, .scope-select select, .excel-sheet-picker select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.15rem; width: 100%; }
@media (max-width: 860px) {
  .share-grid, .settings-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .shared-week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.speed-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--line, rgba(0,0,0,0.14)); border-radius: 10px; background: var(--surface, #fff); font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.speed-pill select { border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; padding: 0 2px; cursor: pointer; outline: none; }
.progress-metrics-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.6rem; margin: 0.85rem 0 1.1rem; }
.metric-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 0.18rem; padding: 0.65rem 0.85rem; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,0.12)); background: var(--surface, #fff); cursor: pointer; text-align: left; transition: transform .12s ease; }
.metric-chip:hover { transform: translateY(-1px); }
.metric-chip span { font-size: 0.74rem; opacity: 0.78; }
.metric-chip strong { font-size: 1.05rem; }
.metric-chip.green { border-left: 4px solid #067647; }
.metric-chip.blue { border-left: 4px solid #175cd3; }
.metric-chip.orange { border-left: 4px solid #dc6803; }
.metric-chip.purple { border-left: 4px solid #6941c6; }
.undo-import-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; margin: 0.75rem 0; border-radius: 12px; background: rgba(6, 118, 71, 0.08); border: 1px solid rgba(6, 118, 71, 0.28); font-size: 0.9rem; }
.card-example { font-size: 0.82rem; color: var(--muted, #475467); margin: 0.2rem 0; font-style: normal; }
.batch-img-review-modal { display: flex; flex-direction: column; gap: 0.85rem; max-width: 920px; }
.bimg-word-banner { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--soft, rgba(0,0,0,0.04)); }
.bimg-current-preview .vocab-image { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.bimg-search-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bimg-search-bar input { flex: 1 1 200px; min-width: 0; }
.bimg-gallery { max-height: 48vh; overflow-y: auto; }
.bimg-candidate-card b { color: #067647; }

.st-session{--st-ink:var(--ink,#273d35);--st-muted:var(--muted,#738172);--st-accent:var(--green,#294c3b);--st-line:var(--line,#e4e8de);color:var(--st-ink);max-width:1120px;margin:0 auto}.st-session *{box-sizing:border-box}.st-session button,.st-session input,.st-session select{font-family:inherit}.st-session [hidden]{display:none!important}.st-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.st-header h2{font-size:28px;line-height:1.2;margin:0 0 8px}.st-muted{color:var(--st-muted);font-size:14px;line-height:1.65}.st-header p{margin:0}.st-session-progress{display:flex;align-items:center;min-height:42px;border-top:1px solid var(--st-line);border-bottom:1px solid var(--st-line);margin-bottom:24px}.st-progress{font-size:13px;font-weight:600;color:var(--st-muted)}.st-content{min-height:420px}.st-notice{font-size:14px;color:#9a5418;line-height:1.5}.st-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;border:1px solid #cdd7e6;border-radius:12px;padding:10px 17px;color:var(--st-ink);background:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,transform .15s,border-color .15s}.st-button:hover:not(:disabled){background:#f1f5fd;border-color:#8a9edb}.st-button:focus-visible,.st-answer-input:focus-visible,.st-speed:focus-visible{outline:3px solid #e5b348;outline-offset:3px}.st-button:disabled{opacity:.5;cursor:default}.st-primary{background:var(--st-accent);border-color:var(--st-accent);color:white}.st-primary:hover:not(:disabled){background:#386048;color:white}.st-warning{background:#fff7ed;border-color:#f1c68d;color:#a65d0c}.st-quiet{background:transparent;border-color:transparent;color:var(--st-muted)}.st-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:18px 0}.st-question{background:white;border:1px solid var(--st-line);border-radius:24px;padding:34px;max-width:760px;margin:0 auto;box-shadow:0 12px 35px #182b5010}.st-eyebrow{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6b7d9b}.st-prompt{font-size:28px;line-height:1.45;margin:18px 0 10px;overflow-wrap:anywhere}.st-answer-form{display:flex;gap:10px;margin:24px 0 14px}.st-answer-input{width:100%;min-width:0;border:1px solid #bbc9de;background:#fbfcff;border-radius:12px;padding:14px 16px;color:#18263b;font-size:18px}.st-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.st-answer-option{min-height:66px;font-size:17px;overflow-wrap:anywhere;white-space:normal}.st-feedback:empty{display:none}.st-feedback{padding:18px;border-radius:14px;margin-top:22px;line-height:1.6}.st-feedback strong{display:block;font-size:18px}.st-feedback p{margin:9px 0}.st-feedback .st-button{margin-top:10px}.st-feedback small{display:block}.st-good{background:#ecf8f1;border:1px solid #b9dfc9;color:#17603e}.st-needs-work{background:#fff6e9;border:1px solid #efcf9e;color:#84500d}.st-flash-wrap{max-width:800px;margin:auto;text-align:center}.st-position{font-size:13px;color:var(--st-muted);margin-bottom:16px}.st-flashcard{width:100%;min-height:340px;padding:40px;border-radius:26px;border:1px solid #d5dfef;box-shadow:0 20px 45px #233b6810;display:flex;flex-direction:column;gap:18px;background:white;white-space:normal;text-align:center}.st-flashcard .st-flash-title{font-size:clamp(28px,4vw,48px);line-height:1.3;overflow-wrap:anywhere}.st-ipa{font-size:21px;color:#697d98}.st-example{font-size:17px;line-height:1.6;font-weight:400}.st-flash-image{max-width:100%;max-height:220px;object-fit:contain;border-radius:16px;display:block;margin:0 auto}.st-result{max-width:740px;margin:30px auto;text-align:center;padding:42px 30px;background:white;border:1px solid var(--st-line);border-radius:26px}.st-result h3{font-size:28px;line-height:1.3}.st-result p{color:var(--st-muted);line-height:1.7}.st-result .st-button{margin:6px}.st-result-icon{width:64px;height:64px;display:inline-grid;place-items:center;border-radius:50%;background:#e6f5ed;color:#218456;font-size:32px}.st-result-stats{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;margin:25px 0}.st-game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.st-game-toolbar p{margin:0}.st-clock{font-size:24px;color:var(--st-accent);font-variant-numeric:tabular-nums}.st-match-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}.st-match-tile{min-height:125px;border-radius:18px;font-size:18px;padding:20px;white-space:normal;overflow-wrap:anywhere;box-shadow:0 5px 10px #233b6807}.st-selected{border-color:#648363!important;box-shadow:0 0 0 3px #64836322}.st-matched{background:#edf8f2!important;border-color:#88c7a8!important;color:#27704c!important;opacity:.5!important}.st-mismatch{background:#fff0ee!important;border-color:#e9a59c!important}.st-round-complete{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap;padding:25px 0}.st-blocks,.st-gems,.st-blast{max-width:900px;margin:auto}.st-block-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;padding:12px;background:#e8edf6;border-radius:18px;max-width:510px;margin:24px auto 16px;aspect-ratio:1}.st-block-cell{aspect-ratio:1;min-height:0;padding:0;border:0;background:#fff;border-radius:5px}.st-block-cell:hover:not(:disabled){background:#d7e1f7}.st-filled{background:#5579e0!important;box-shadow:inset 0 3px 0 #ffffff45,inset 0 -3px 0 #1c3a9855}.st-can-place{background:#aec3ff!important}.st-cannot-place{background:#f3b7ae!important}.st-piece-tray{display:flex;justify-content:center;gap:18px;min-height:100px}.st-piece{width:110px;min-height:100px;display:grid;place-items:center;padding:9px;border:1px solid var(--st-line)}.st-piece-mini{display:grid;grid-template-columns:repeat(3,18px);grid-template-rows:repeat(3,18px);gap:3px}.st-piece-mini span{border-radius:3px}.st-mini-filled{background:#d39755;box-shadow:inset 0 2px 0 #ffffff55}.st-game-question{margin-top:28px}.st-gem-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:13px;background:#edf0fa;border-radius:20px;max-width:510px;margin:24px auto 18px}.st-gem{aspect-ratio:1;min-height:0;padding:4px;font-size:35px;border-radius:14px;border:2px solid #fff;line-height:1;box-shadow:0 3px 5px #293c6e10}.st-gem-0{background:#e1e9ff;color:#4d6fd6}.st-gem-1{background:#ffe3dc;color:#df7956}.st-gem-2{background:#e6ddff;color:#8a61d3}.st-gem-3{background:#d6f1e9;color:#4a9b80}.st-gem-4{background:#fff0c8;color:#c49636}.st-gem:hover:not(:disabled){filter:brightness(.98);transform:translateY(-2px)}.st-gems .st-muted,.st-blocks>.st-muted{text-align:center}.st-blast-field{position:relative;min-height:390px;border-radius:22px;overflow:hidden;border:1px solid #23335c;background:radial-gradient(ellipse at 20% 20%,#31456b55,transparent 50%),radial-gradient(ellipse at 80% 70%,#63518955,transparent 50%),#142039;background-image:radial-gradient(#ffffff70 1px,transparent 1px),radial-gradient(ellipse at 30% 40%,#354a7655,transparent 60%);background-size:37px 39px,auto}.st-blast-prompt{font-size:25px;line-height:1.45;margin:16px 0 20px}.st-asteroid{position:absolute;left:5%;top:calc(20px + var(--lane) * 85px);max-width:76%;min-width:150px;min-height:63px;background:#f7f4f0;color:#19273a;border:2px solid #d7cbb8;box-shadow:inset -7px -4px 0 #d2c8b8;border-radius:30px 35px 27px 38px;padding:12px 22px;overflow-wrap:anywhere;animation:st-orbit var(--travel) ease-in-out infinite alternate}.st-target-key{display:inline-grid;place-items:center;width:23px;height:23px;flex-shrink:0;border-radius:50%;background:#e3dacc;font-size:12px}.st-paused .st-asteroid{animation-play-state:paused}.st-blast-single{display:flex;flex-direction:column;justify-content:center;padding:25px;color:white}.st-speed{border:1px solid #c5d0df;border-radius:8px;padding:8px 10px;background:white;color:#18263b}.st-inline-label{font-size:14px}.st-blast .st-feedback{max-width:none}.st-blast .st-answer-form{margin:10px 0}.st-blast .st-answer-input{font-size:17px}@keyframes st-orbit{0%{left:5%;transform:translateY(0) rotate(-1deg)}100%{left:20%;transform:translateY(7px) rotate(1deg)}}
@media(max-width:700px){.st-header{gap:12px}.st-header h2{font-size:23px}.st-header .st-button{font-size:12px;white-space:nowrap;padding:8px 10px}.st-header p{font-size:12px}.st-question{padding:24px 20px;border-radius:20px}.st-prompt{font-size:24px}.st-answer-form{flex-wrap:wrap}.st-answer-form .st-button{width:100%}.st-answer-input{font-size:17px}.st-match-grid{grid-template-columns:repeat(3,1fr);gap:9px}.st-match-tile{min-height:105px;padding:12px 8px;font-size:15px;border-radius:14px}.st-flashcard{min-height:300px;padding:28px 20px}.st-flashcard .st-flash-title{font-size:33px}.st-flash-wrap .st-actions{gap:7px}.st-flash-wrap .st-button{font-size:13px;padding:9px 12px}.st-block-grid{gap:4px;padding:9px}.st-piece-tray{gap:10px}.st-piece{width:90px;min-height:88px}.st-gem-grid{gap:5px;padding:10px}.st-gem{font-size:29px;border-radius:11px}.st-blast-field{min-height:385px}.st-asteroid{max-width:77%;font-size:14px;padding:10px 13px}.st-result{padding:30px 18px}.st-result h3{font-size:25px}.st-result-stats{gap:12px;font-size:14px}.st-answer-grid{grid-template-columns:1fr}.st-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.st-session *{animation:none!important;transition:none!important}.st-asteroid{left:10%}}
[data-theme="dark"] .st-session{--st-ink:#e0e8f5;--st-muted:#a7b7d0;--st-line:#344461}[data-theme="dark"] .st-question,[data-theme="dark"] .st-flashcard,[data-theme="dark"] .st-result{background:#1b2b45}[data-theme="dark"] .st-session .st-button{background:#243652;color:#e0e8f5;border-color:#4a5d7c}[data-theme="dark"] .st-session .st-primary{background:#4266dd;border-color:#4266dd;color:white}[data-theme="dark"] .st-answer-input{background:#132039;color:#e0e8f5;border-color:#4a5d7c}[data-theme="dark"] .st-block-cell{background:#2d405c}[data-theme="dark"] .st-block-grid{background:#132039}[data-theme="dark"] .st-good{background:#183d32;color:#c0ecd4}[data-theme="dark"] .st-needs-work{background:#483a27;color:#f4d8ab}

.st-photo-credit{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:12px 0 0;font-size:11px;color:var(--st-muted)}.st-photo-credit a{color:inherit;text-underline-offset:3px}.st-photo-credit .st-photo-label{background:var(--soft,#eef1e7);padding:3px 8px;border-radius:5px}

.st-answer-form>.st-button{flex-shrink:0;white-space:nowrap}

/* Study controls and richer game mechanics. */
.st-session-progress{justify-content:space-between;gap:16px}.st-next-control{min-width:44px;min-height:36px;font-size:22px;padding:0 12px;line-height:1}.st-options{border:1px solid var(--st-line);border-radius:12px;background:var(--surface,#fff);margin:0 0 22px;padding:12px 16px;font-size:12px}.st-options>summary{font-weight:600;cursor:pointer;color:var(--st-muted)}.st-option-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding-top:18px}.st-option-fields label{font-size:12px;display:grid;gap:8px}.st-option-fields select{font-size:12px;padding:8px 10px}.st-option-fields .st-check-option{display:flex;align-items:center;gap:10px;line-height:1.5}.st-check-option input{width:17px;height:17px;accent-color:var(--st-accent);padding:0}.st-image-answers .st-answer-option{min-height:140px;padding:8px}.st-image-answers img{display:block;width:100%;height:150px;object-fit:contain;border-radius:9px}.st-flash-navigation{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:14px}.st-flash-navigation .st-position{margin:0}.st-flash-navigation button{font-size:26px;padding:0 12px}.st-flip-card{perspective:1300px;display:block;background:none!important;border:0!important;box-shadow:none;padding:0!important;height:430px;min-height:0;touch-action:pan-y}.st-flip-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.22,.8,.3,1);border-radius:26px}.st-is-flipped .st-flip-inner{transform:rotateY(180deg)}.st-flip-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #dbe4d7;border-radius:26px;padding:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;overflow:auto;box-shadow:0 15px 35px #263b3610;line-height:1.5}.st-flip-front{background:linear-gradient(145deg,#fff,#f0f5ec)}.st-flip-back{transform:rotateY(180deg);background:linear-gradient(145deg,#fff8ed,#f6efe0);border-color:#e7dac2}.st-flip-face .st-eyebrow{padding:4px 9px;border-radius:5px;background:#e3ebdc;color:#61794f}.st-flip-back .st-eyebrow{background:#f0dfc0;color:#9b7237}.st-flip-face .st-flash-title{font-size:clamp(28px,3.2vw,44px)}.st-flip-face .st-example{font-size:14px;max-width:90%}.st-flip-face .st-flash-image{max-height:150px}.st-flip-face[aria-hidden=true]{pointer-events:none}.st-question{touch-action:pan-y}.st-piece{touch-action:none;user-select:none}.st-piece-drag-ghost{position:fixed;z-index:10000;pointer-events:none;opacity:.85;padding:8px;border-radius:12px;background:#fff9;box-shadow:0 8px 20px #23362233}.st-piece-ghost-mini{grid-template-columns:repeat(3,24px);grid-template-rows:repeat(3,24px)}.st-gem-grid{touch-action:none}.st-gem{position:relative;touch-action:none;user-select:none}.st-gem-shape{line-height:1;pointer-events:none}.st-gem-bonus{position:absolute;right:1px;bottom:2px;font-size:11px;font-weight:800;background:#fff;color:#573c67;border-radius:7px;padding:3px 5px;line-height:1;box-shadow:0 2px 4px #0002;pointer-events:none}.st-gem-bomb{border:3px solid #786497;box-shadow:inset 0 0 0 2px #fff7,0 3px 9px #79629730}.st-gem-rock{background:#7a817c!important;color:#d1d4cf!important;border-color:#626d66!important;box-shadow:inset 4px 4px 0 #a8afa480,inset -5px -3px 0 #424b4770;opacity:1!important}.st-moves-meter{max-width:510px;margin:12px auto;height:12px;border-radius:10px;background:#e0e6d7;overflow:hidden}.st-moves-meter>span{display:block;height:100%;background:linear-gradient(90deg,#8ca77c,#d3aa66);border-radius:10px;transition:width .3s}.st-blast-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px;background:var(--surface,#fff);border:1px solid var(--st-line);border-radius:16px;margin-bottom:20px}.st-blast-options label{font-size:11px;display:grid;gap:9px}.st-blast-options select{width:100%;padding:9px;font-size:11px}.st-blast-field{min-height:calc(80px + var(--target-count,4) * 73px);transition:box-shadow .3s}.st-asteroid{top:calc(18px + var(--lane) * 73px);min-height:58px;font-size:15px;max-width:73%;animation-duration:var(--travel);will-change:transform,left}.st-target-word{overflow-wrap:anywhere;line-height:1.4}.st-target-word mark{background:#f2ce6f;color:#313a2e;padding:1px 0;border-radius:2px}.st-target-locked{border-color:#e6bb52!important;box-shadow:0 0 0 3px #e6bb5250,inset -7px -4px 0 #d2c8b8}.st-power-asteroid{position:absolute;bottom:12px;right:13px;border-radius:50%;background:#f8cf6e!important;color:#4e3d20!important;border:2px solid #ffe9a5!important;font-size:24px;width:45px;height:45px;padding:0;min-height:45px;animation:st-power-pulse 1.4s ease-in-out infinite alternate}.st-power-active{box-shadow:inset 0 0 50px #eab94b55;border-color:#e8bf59}.st-blast-typing{margin:20px 0 8px}.st-exploding{animation:st-explode .4s ease-out forwards!important;pointer-events:none}.st-blast-single{min-height:300px}.st-blast-typing .st-answer-input{font-size:18px}.st-feedback .st-answer-form{margin-bottom:12px}@keyframes st-explode{to{transform:scale(1.5);opacity:0;filter:blur(10px)}}@keyframes st-power-pulse{to{box-shadow:0 0 18px #f7d57888;transform:scale(1.08)}}
[data-theme="dark"] .st-flip-front{background:linear-gradient(145deg,#233a2e,#1c2d27);border-color:#49604d}[data-theme="dark"] .st-flip-back{background:linear-gradient(145deg,#453d2f,#332e25);border-color:#6b5a3d}[data-theme="dark"] .st-options,[data-theme="dark"] .st-blast-options{background:#1f3027}
@media(max-width:700px){.st-option-fields{grid-template-columns:1fr}.st-blast-options{grid-template-columns:1fr 1fr;padding:14px;gap:12px}.st-flip-card{height:390px}.st-flip-face{padding:22px 17px}.st-flip-face .st-flash-title{font-size:29px}.st-gem-bonus{font-size:9px;padding:3px}.st-asteroid{font-size:12px;min-height:55px;padding:8px 10px;max-width:72%}.st-asteroid .st-target-key{width:19px;height:19px;font-size:10px}.st-blast-options select{font-size:10px}.st-moves-meter{height:10px}.st-image-answers img{height:125px}}

.st-game-menu{display:flex;gap:8px;border-bottom:1px solid var(--st-line);padding-bottom:12px;margin-bottom:24px}.st-game-menu>.st-button{min-height:38px;font-size:12px;padding:8px 14px}.st-menu-active{background:var(--st-accent)!important;color:white!important;border-color:var(--st-accent)}.st-settings-dialog{width:min(640px,calc(100vw - 24px));max-height:85vh;border:1px solid var(--st-line);border-radius:20px;padding:24px;background:var(--surface,#fff);color:var(--st-ink);box-shadow:0 20px 80px #152b4033}.st-settings-dialog::backdrop{background:#172b3c88;backdrop-filter:blur(3px)}.st-options-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.st-options-header h3{font-size:19px;margin:0}.st-options-tabs{display:flex;gap:10px;margin-bottom:20px;border-bottom:1px solid var(--st-line);padding-bottom:12px}.st-options-tabs>.st-button{font-size:12px;padding:8px 13px;min-height:38px}.st-game-rules{font-size:14px;line-height:1.8}.st-game-rules h3{font-size:19px;margin:0 0 12px}.st-game-rules p{line-height:1.8}.st-game-specific-options .st-blast-options{grid-template-columns:1fr 1fr;margin-top:22px;padding:18px}.st-options-open .st-asteroid,.st-options-open .st-power-asteroid{animation-play-state:paused!important}.st-flip-face{touch-action:none}.st-block-playfield{position:relative;padding-bottom:6px;min-height:500px}.st-block-playfield>.st-block-grid,.st-block-playfield>.st-piece-tray{transition:filter .2s}.st-awaiting-answer>.st-block-grid,.st-awaiting-answer>.st-piece-tray{filter:blur(4px);pointer-events:none;opacity:.55}.st-block-overlay{position:absolute;inset:0;z-index:5;background:#233c3222;border-radius:18px;display:flex;align-items:center;justify-content:center;padding:20px;margin:0;overflow:auto}.st-block-overlay>.st-question{width:100%;max-width:590px;box-shadow:0 15px 60px #1d332940;padding:25px}.st-block-overlay .st-prompt{font-size:24px}.st-block-overlay .st-answer-option{min-height:48px;font-size:15px}.st-block-overlay .st-actions{margin:12px 0}.st-block-overlay .st-actions>.st-button{min-height:36px;font-size:12px;padding:7px 9px}.st-block-overlay .st-feedback{padding:14px;margin-top:12px}.st-block-overlay .st-feedback strong{font-size:16px}.st-block-overlay .st-feedback p{font-size:13px}.st-piece-mini{grid-template-columns:repeat(var(--shape-cols,3),15px);grid-template-rows:repeat(var(--shape-rows,3),15px);gap:3px}.st-piece-ghost-mini{grid-template-columns:repeat(var(--shape-cols,3),var(--ghost-cell,30px));grid-template-rows:repeat(var(--shape-rows,3),var(--ghost-cell,30px));gap:3px}.st-piece-tray{align-items:center;min-height:110px}.st-piece{width:125px;min-height:110px}.st-flip-face .st-flash-image{order:3;max-height:140px}.st-flip-front>.st-muted{order:4}.st-flip-front .st-ipa{order:2}.st-flip-front .st-flash-title{order:1}
@media(max-width:700px){.st-game-menu{gap:5px}.st-game-menu>.st-button{font-size:11px;padding:8px 11px}.st-settings-dialog{padding:19px}.st-block-overlay{padding:9px}.st-block-overlay>.st-question{padding:19px 15px}.st-block-overlay .st-prompt{font-size:21px}.st-block-playfield{min-height:500px}.st-block-overlay .st-answer-grid{grid-template-columns:1fr 1fr;gap:8px}.st-piece{width:96px;min-height:105px;padding:7px}.st-piece-mini{grid-template-columns:repeat(var(--shape-cols,3),12px);grid-template-rows:repeat(var(--shape-rows,3),12px)}.st-piece-ghost-mini{grid-template-columns:repeat(var(--shape-cols,3),var(--ghost-cell,24px));grid-template-rows:repeat(var(--shape-rows,3),var(--ghost-cell,24px))}.st-block-overlay .st-actions{gap:5px}.st-block-overlay .st-actions>.st-button{font-size:10px;padding:6px}.st-block-overlay .st-question>.st-muted{font-size:12px}}

.st-flip-front:has(.st-flash-image){gap:10px;padding:24px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;justify-items:center}.st-flip-front:has(.st-flash-image) .st-flash-image{height:100%;max-height:155px;min-height:0;max-width:100%;object-fit:contain}.st-flip-front:has(.st-flash-image) .st-flash-title{font-size:clamp(25px,3vw,37px)}.st-flip-front:has(.st-flash-image) .st-muted{font-size:12px}.st-flip-front:has(.st-flash-image) .st-ipa{font-size:17px}

/* Only the colored polyomino cells are painted: tray and drag wrappers stay transparent. */
.st-session .st-piece,.st-session .st-piece:hover,.st-session .st-piece.st-selected,[data-theme="dark"] .st-session .st-piece{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px;outline-offset:3px}.st-session .st-piece .st-piece-mini>span{background:transparent;border:0;box-shadow:none;outline:0}.st-session .st-piece .st-piece-mini>.st-mini-filled,.st-piece-drag-ghost .st-mini-filled{background:var(--piece-color,#21bdd0)!important;border:0!important;box-shadow:inset 0 2px 0 #ffffff50,inset 0 -2px 0 #1b375330!important;border-radius:3px}.st-session .st-piece.st-selected .st-mini-filled{filter:brightness(1.12);outline:1px solid #ffffff70;outline-offset:-1px}.st-piece-drag-ghost{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0;opacity:.92}.st-piece-drag-ghost .st-piece-mini>span:not(.st-mini-filled){background:transparent;border:0;box-shadow:none}.st-block-grid>.st-block-cell{min-width:0!important;width:100%;height:100%;aspect-ratio:1;justify-self:stretch;background:#dbe4e7;border:1px solid #c8d4d8;border-radius:4px;box-shadow:inset 0 1px 1px #ffffff35}.st-block-grid>.st-filled{background:var(--block-color,#21bdd0)!important;border-color:#ffffff25;box-shadow:inset 0 3px 0 #ffffff45,inset 0 -3px 0 #1a3c5c35}.st-block-grid>.st-can-place{background:color-mix(in srgb,var(--st-accent) 38%,#dce8e7)!important;border-color:#789d93}.st-block-grid>.st-cannot-place{background:#edb5ab!important;border-color:#cb9085}[data-theme="dark"] .st-block-grid>.st-block-cell{background:#293b44;border-color:#3b505c}[data-theme="dark"] .st-block-grid>.st-filled{background:var(--block-color,#21bdd0)!important;border-color:#ffffff35}.st-session .st-piece:disabled{opacity:.36}

.st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),18px);grid-template-rows:repeat(var(--shape-rows,3),18px)}@media(max-width:700px){.st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),15px);grid-template-rows:repeat(var(--shape-rows,3),15px)}}

/* A true pre-game landing; game objects and clocks are created only after Play. */
.st-game-intro{max-width:820px;min-height:490px;padding:50px 35px;background:var(--surface,#fff);border:1px solid var(--st-line);border-radius:28px;text-align:center;margin:10px auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.st-game-intro h3{font-size:38px;letter-spacing:-1px;margin:15px 0 12px;line-height:1.25}.st-game-intro>p{max-width:540px;font-size:15px;line-height:1.9;color:var(--st-muted)}.st-intro-art{position:relative;width:130px;height:130px;margin-bottom:27px;display:grid;place-items:center;border-radius:30px;background:#e9edff;transform:rotate(-8deg);color:#4962d9}.st-intro-art>span{font-size:72px;line-height:1;transform:rotate(8deg)}.st-intro-art i{position:absolute;width:13px;height:13px;background:#f1bd65;border-radius:4px;right:-10px;top:17px;transform:rotate(20deg)}.st-intro-art i:nth-of-type(2){left:-12px;bottom:15px;top:auto;right:auto;background:#73b3c6}.st-intro-art i:nth-of-type(3){right:13px;top:-16px;width:9px;height:9px;background:#bd8cd4}.st-intro-blocks .st-intro-art{color:#da9550;background:#fff0d9}.st-intro-gems .st-intro-art{color:#a15ac8;background:#f4e7fb}.st-intro-blast .st-intro-art{color:#659bc8;background:#e2eff9}.st-intro-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:30px}.st-intro-actions .st-big-play{font-size:18px;min-width:170px;min-height:53px}.st-at-game-menu .st-next-control{visibility:hidden}.st-game-menu:has(>.st-button:only-child){justify-content:flex-end;border:0;margin-bottom:12px;padding-bottom:0}.st-mode-match .st-match-surface{border:1px solid var(--st-line);border-radius:25px;background:var(--surface,#fff);padding:28px}.st-question{position:relative;isolation:isolate;min-height:340px}.st-question-feedback-layer{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px;border-radius:inherit;background:#e9eef4b8;backdrop-filter:blur(4px)}.st-question-feedback-layer>.st-feedback{width:100%;max-width:580px;max-height:100%;overflow:auto;margin:0;padding:25px;box-shadow:0 14px 42px #1c314b25;border-radius:18px}.st-question-feedback-layer .st-feedback strong{font-size:23px}.st-question-feedback-layer .st-feedback p{font-size:17px;overflow-wrap:anywhere}.st-question-feedback-layer .st-feedback .st-button{min-height:44px}.st-answer-revealed>.st-answer-grid,.st-answer-revealed>.st-answer-form{pointer-events:none}.st-block-overlay .st-question-feedback-layer{background:#e9eef4dc}.st-block-overlay .st-question-feedback-layer .st-feedback{max-width:100%;padding:20px}.st-game-intro .st-eyebrow{margin-top:5px}
@media(max-width:700px){.st-game-intro{padding:35px 22px;min-height:450px;border-radius:22px}.st-game-intro h3{font-size:31px}.st-game-intro>p{font-size:13px}.st-intro-art{width:105px;height:105px;margin-bottom:23px}.st-intro-art>span{font-size:60px}.st-intro-actions{gap:9px}.st-intro-actions .st-big-play{width:100%;min-height:50px}.st-intro-actions .st-button{font-size:13px}.st-mode-match .st-match-surface{padding:19px 13px}.st-question-feedback-layer{padding:12px}.st-question-feedback-layer>.st-feedback{padding:20px 15px}.st-question-feedback-layer .st-feedback strong{font-size:20px}.st-question-feedback-layer .st-feedback p{font-size:15px}.st-question-feedback-layer .st-answer-form{gap:9px}.st-question-feedback-layer .st-answer-input{font-size:15px}}

.st-gem-playfield{position:relative;max-width:550px;margin:auto;min-height:390px}.st-gem-question-overlay{position:absolute;inset:0;z-index:7;background:#25364944;border-radius:22px;display:flex;align-items:center;justify-content:center;padding:12px;margin:0;overflow:auto}.st-gem-playfield.st-awaiting-answer>.st-gem-grid{filter:blur(3px);opacity:.5;pointer-events:none}.st-gem-question-overlay>.st-question{padding:25px 22px;width:100%;max-width:510px;min-height:340px}.st-gem-question-overlay .st-prompt{font-size:23px}.st-gem-question-overlay .st-answer-option{min-height:48px;font-size:15px}.st-gem-question-overlay .st-actions{gap:6px;margin:12px 0}.st-gem-question-overlay .st-actions>.st-button{font-size:11px;padding:7px 9px;min-height:36px}.st-blast-arena{position:relative;border-radius:22px;isolation:isolate}.st-blast-arena>.st-feedback{position:absolute;z-index:5;left:7%;right:7%;top:50%;transform:translateY(-50%);max-height:90%;overflow:auto;padding:25px;box-shadow:0 18px 60px #09142577;border:1px solid #ffffff60;border-radius:18px;margin:0}.st-match-surface{position:relative;min-height:430px;isolation:isolate}.st-match-round-overlay,.st-match-result-layer{position:absolute;inset:0;z-index:7;display:flex;align-items:center;justify-content:center;background:#e9eef5ce;backdrop-filter:blur(3px);border-radius:inherit;padding:20px}.st-match-round-overlay .st-round-complete{display:flex;flex-direction:column;background:var(--surface,#fff);border:1px solid var(--st-line);padding:30px;border-radius:20px;text-align:center;box-shadow:0 15px 50px #22365322}.st-match-result-layer{overflow:auto;align-items:flex-start}.st-match-result-layer .st-result{width:100%;margin:10px 0;padding:25px}.st-match-done>.st-match-grid,.st-match-done>.st-game-toolbar,.st-match-done>.st-muted,.st-match-done>.st-match-round-overlay{visibility:hidden}.st-match-done{min-height:600px}.st-gem-question-overlay .st-question-feedback-layer{background:#e9eef4e6}
@media(max-width:700px){.st-gem-playfield{min-height:400px}.st-gem-question-overlay{padding:8px}.st-gem-question-overlay>.st-question{padding:20px 14px}.st-gem-question-overlay .st-prompt{font-size:21px}.st-gem-question-overlay .st-answer-grid{grid-template-columns:1fr 1fr;gap:7px}.st-gem-question-overlay .st-actions>.st-button{font-size:10px;padding:6px}.st-blast-arena>.st-feedback{left:5%;right:5%;padding:20px 15px}.st-match-result-layer{padding:10px}.st-match-result-layer .st-result{padding:22px 12px}.st-match-result-layer .st-result h3{font-size:23px}.st-match-round-overlay{padding:15px}}

.st-match-round-overlay,.st-match-result-layer,.st-result,.st-blast-arena>.st-feedback{touch-action:pan-y}

.st-local-next{font-size:25px!important;min-width:58px;min-height:46px;line-height:1;padding:8px 16px!important}.st-round-complete .st-local-next{min-width:76px}

/* Viewport study stage: the application shell supplies a fixed-height container. */
body[data-page=study] .st-session{height:100%;min-height:0;max-width:none;display:flex;flex-direction:column;position:relative;gap:0;overflow:hidden}body[data-page=study] .st-header{display:none}body[data-page=study] .st-session-progress{flex:0 0 34px;min-height:34px;max-height:34px;margin:0;padding:0 4px;border:0;font-size:11px;gap:8px}body[data-page=study] .st-progress{font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body[data-page=study] .st-next-control{min-height:28px;max-height:28px;min-width:35px;font-size:21px;padding:0 9px}body[data-page=study] .st-game-menu{flex:0 0 34px;min-height:34px;max-height:34px;margin:0;padding:0 4px;align-items:center;border:0}body[data-page=study] .st-game-menu>.st-button{min-height:29px;max-height:29px;font-size:11px;padding:3px 10px}body[data-page=study] .st-content{flex:1;min-height:0;position:relative;width:100%;overflow:hidden;container-type:size}body[data-page=study] .st-notice:empty{display:none}body[data-page=study] .st-notice{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);z-index:25;max-width:90%;max-height:55px;font-size:10px;background:#302b51;color:#f8e3a9;padding:7px 12px;border-radius:8px;overflow:auto}body[data-page=study] .st-content>.st-question{height:min(100%,620px);max-height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:clamp(17px,3vh,35px);overflow:hidden}body[data-page=study] .st-prompt{font-size:clamp(21px,3.7vh,31px);line-height:1.35;margin:13px 0 8px}body[data-page=study] .st-question>.st-muted{margin:0;line-height:1.4;font-size:12px}body[data-page=study] .st-question>.st-actions{margin:12px 0 5px;gap:7px}body[data-page=study] .st-answer-grid{margin-top:16px;gap:10px}body[data-page=study] .st-answer-form{margin:16px 0 8px}body[data-page=study] .st-answer-input{min-height:44px;padding:10px 13px;font-size:17px}body[data-page=study] .st-question-feedback-layer>.st-feedback{max-height:calc(100% - 12px);padding:20px;overflow:auto}body[data-page=study] .st-question-feedback-layer .st-feedback p{font-size:16px;line-height:1.5}body[data-page=study] .st-result{max-height:100%;height:100%;min-height:0;margin:0 auto;padding:clamp(16px,3vh,35px);overflow:auto}body[data-page=study] .st-game-intro{height:100%;min-height:0;max-height:100%;margin:0 auto;padding:clamp(15px,4vh,40px);overflow:hidden;width:min(850px,100%)}body[data-page=study] .st-game-intro h3{font-size:clamp(24px,5vh,38px);margin:10px 0}body[data-page=study] .st-game-intro>p{font-size:13px;line-height:1.65;max-width:540px}body[data-page=study] .st-intro-art{width:clamp(65px,16vh,125px);height:clamp(65px,16vh,125px);margin-bottom:clamp(12px,3vh,25px)}body[data-page=study] .st-intro-art>span{font-size:clamp(40px,9vh,70px)}body[data-page=study] .st-intro-actions{margin-top:clamp(12px,3vh,25px)}body[data-page=study] .st-flash-wrap{height:100%;width:min(900px,100%);display:flex;flex-direction:column;min-height:0;margin:auto;overflow:hidden}body[data-page=study] .st-flash-navigation{flex:0 0 30px;margin:0 0 8px;height:30px}body[data-page=study] .st-flip-card{height:auto;flex:1;min-height:120px;max-height:none;width:100%}body[data-page=study] .st-flip-face{padding:20px;gap:14px;overflow:hidden}body[data-page=study] .st-flip-face .st-flash-title{font-size:clamp(24px,4.8vh,43px)}body[data-page=study] .st-flip-face .st-flash-image{max-height:min(23vh,180px);max-width:100%;object-fit:contain}body[data-page=study] .st-photo-credit{margin:4px 0;flex:0 0 auto;min-height:0;font-size:9px}body[data-page=study] .st-flash-wrap>.st-actions{flex:0 0 auto;margin:9px 0 5px;gap:8px}body[data-page=study] .st-flash-wrap>.st-muted{min-height:0;max-height:30px;margin:0;font-size:10px;line-height:1.4}body[data-page=study] .st-flip-front:has(.st-flash-image){grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:8px}body[data-page=study] .st-game-surface{--st-ink:#f5f5ff;--st-muted:#c1bddc;--st-accent:#514de8;--st-line:#ffffff20;color:#f5f5ff;background:#09072c}body[data-page=study] .st-game-surface .st-button{color:#f5f5ff;background:#242144;border-color:#514d70}body[data-page=study] .st-game-surface .st-primary{background:#5753e8;border-color:#7571f5;color:#fff}body[data-page=study] .st-game-surface .st-game-intro{background:#121037;border-color:#ffffff1a;color:#f5f5ff}body[data-page=study] .st-game-surface .st-intro-art{background:#33265b;color:#c7a8ff}body[data-page=study] .st-game-surface .st-game-toolbar{flex:0 0 35px;min-height:35px;margin:0;gap:10px;font-size:12px}body[data-page=study] .st-game-surface .st-game-toolbar>.st-button{min-height:30px;max-height:30px;font-size:11px;padding:5px 12px}body[data-page=study] .st-game-surface .st-clock{font-size:21px;color:#d4c4ff}body[data-page=study] .st-game-surface .st-eyebrow{color:#b3a8da}body[data-page=study] .st-game-surface .st-result{background:#151239;border-color:#ffffff25;color:#f5f5ff}body[data-page=study] .st-game-surface .st-result p{color:#bdb7d9}body[data-page=study] .st-mode-match .st-match-surface{height:100%;max-height:100%;padding:18px;display:flex;flex-direction:column;background:#121037;border-color:#ffffff20;overflow:hidden;min-height:0}body[data-page=study] .st-mode-match .st-match-surface>.st-muted{font-size:11px;margin:3px 0 12px;line-height:1.45}body[data-page=study] .st-match-grid{flex:1;min-height:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:12px}body[data-page=study] .st-match-tile{min-height:0;max-height:100%;padding:12px;font-size:clamp(15px,2.4vh,22px);line-height:1.4;overflow-wrap:anywhere;background:#262347;border-color:#4b4667;display:flex;flex-direction:column;justify-content:center;gap:7px;overflow:hidden}body[data-page=study] .st-match-image{display:block;max-height:55%;width:100%;object-fit:contain;border-radius:9px;min-height:0}body[data-page=study] .st-match-label{max-height:100%;overflow:auto}.st-match-image{max-width:100%;max-height:90px;object-fit:contain;border-radius:8px}body[data-page=study] .st-round-complete,body[data-page=study] .st-match-round-overlay .st-round-complete{background:#211c49;color:#f5f5ff;border-color:#575077}body[data-page=study] .st-match-round-overlay,body[data-page=study] .st-match-result-layer{background:#080624bc}body[data-page=study] .st-blocks,body[data-page=study] .st-gems{height:100%;min-height:0;max-height:100%;width:100%;max-width:none;display:flex;flex-direction:column;margin:0;overflow:hidden}body[data-page=study] .st-blocks>.st-muted,body[data-page=study] .st-gems>.st-muted{display:none}body[data-page=study] .st-blocks>.st-muted[role=status],body[data-page=study] .st-gems>.st-muted[role=status]{display:block;flex:0 0 24px;min-height:24px;margin:0;font-size:10px;line-height:1.4;overflow:hidden;text-align:center;padding:5px}body[data-page=study] .st-block-playfield{flex:1;min-height:0;max-height:100%;width:100%;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;justify-items:center;column-gap:20px;padding:0;overflow:hidden}body[data-page=study] .st-block-grid{width:var(--block-board-size);height:var(--block-board-size);aspect-ratio:1;grid-area:1/2;max-width:100%;max-height:100%;margin:0;padding:12px;gap:5px;background:#131733;flex:none}body[data-page=study] .st-block-grid>.st-block-cell{min-height:0;min-width:0;max-width:100%;max-height:100%;background:#2d3953;border-color:#36435e;box-shadow:inset 0 1px 0 #ffffff10}body[data-page=study] .st-piece-tray{grid-area:1/1;flex-direction:column;min-height:0;height:100%;width:140px;gap:14px;justify-content:center;align-items:center;padding:10px 0}body[data-page=study] .st-session .st-piece{width:130px;min-height:90px;max-height:110px;flex:0 1 100px}body[data-page=study] .st-block-overlay{position:absolute;inset:0;min-height:0;max-height:100%;padding:12px}body[data-page=study] .st-block-overlay>.st-question,body[data-page=study] .st-gem-question-overlay>.st-question{height:min(100%,560px);max-height:100%;min-height:0;overflow:hidden;padding:22px;display:flex;flex-direction:column;justify-content:center;background:#18153c;border-color:#514a78;color:#f5f5ff}body[data-page=study] .st-game-surface .st-question>.st-muted{color:#bbb5d6}body[data-page=study] .st-game-surface .st-question .st-answer-option{background:#262047;border-color:#615680;color:#f5f5ff}body[data-page=study] .st-game-surface .st-answer-input{background:#0d0b2b;border-color:#615680;color:#fff}body[data-page=study] .st-game-surface .st-question-feedback-layer{background:#09072cdc}body[data-page=study] .st-game-surface .st-good{background:#173f36;color:#d9fff0;border-color:#4bb896}body[data-page=study] .st-game-surface .st-needs-work{background:#4c293f;color:#ffe1ee;border-color:#aa6088}body[data-page=study] .st-gem-playfield{flex:1;min-height:0;max-height:100%;width:100%;max-width:none;display:flex;align-items:center;justify-content:center;margin:0;overflow:hidden}body[data-page=study] .st-gem-grid{width:var(--gem-board-size);height:var(--gem-board-size);max-height:100%;max-width:100%;aspect-ratio:1;margin:0;padding:10px;gap:7px;background:#1f193e}body[data-page=study] .st-gem{min-height:0;min-width:0;max-width:100%;max-height:100%;padding:3px;font-size:clamp(19px,4vh,36px);color:var(--gem-ink,#fff);background:var(--gem-color,#5a4297)!important;border:1px solid #ffffff35;box-shadow:inset 0 3px 0 #ffffff20,inset 0 -3px 0 #0002}.st-gem-0{--gem-color:#4b67d9;--gem-ink:#e8eeff}.st-gem-1{--gem-color:#d47078;--gem-ink:#fff0e5}.st-gem-2{--gem-color:#a26bd7;--gem-ink:#f4e6ff}.st-gem-3{--gem-color:#42ae9c;--gem-ink:#d9fff3}.st-gem-4{--gem-color:#e4b34e;--gem-ink:#fff6da}body[data-page=study] .st-moves-meter{flex:0 0 9px;height:9px;min-height:9px;width:min(450px,85%);margin:6px auto 9px;background:#2e2648}body[data-page=study] .st-gems>.st-actions{flex:0 0 39px;margin:3px 0;min-height:39px}body[data-page=study] .st-gems>.st-actions>.st-button{min-height:32px;font-size:11px;padding:5px 12px}body[data-page=study] .st-blast{height:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;width:100%;max-width:none;margin:0;overflow:hidden}body[data-page=study] .st-blast>.st-muted:not([role=status]){display:none}body[data-page=study] .st-blast>.st-game-toolbar{flex:0 0 30px;min-height:30px}body[data-page=study] .st-blast-arena{flex:1;min-height:0;overflow:hidden}body[data-page=study] .st-blast-field{height:100%;min-height:0!important;max-height:100%;overflow:hidden}body[data-page=study] .st-blast-prompt{font-size:clamp(17px,3vh,25px);margin:0;text-align:center;line-height:1.35;max-height:70px;overflow:auto}body[data-page=study] .st-blast-typing{flex:0 0 auto;margin:5px 0 0;min-height:40px}body[data-page=study] .st-blast-typing>.st-answer-input{min-height:38px;font-size:14px;padding:8px 13px}body[data-page=study] .st-blast-typing>.st-button{min-height:38px;padding:7px 15px}body[data-page=study] .st-blast>p[role=status]{flex:0 0 18px;max-height:18px;margin:0;font-size:10px;line-height:1.5;overflow:hidden}.st-match-surface:has(.st-match-tile:nth-child(7):last-child){grid-template-rows:auto auto minmax(0,1fr)}
@media(max-width:600px) and (orientation:portrait){body[data-page=study] .st-session-progress{flex-basis:31px;min-height:31px;max-height:31px}body[data-page=study] .st-progress{font-size:9px}body[data-page=study] .st-game-menu{flex-basis:31px;min-height:31px;max-height:31px}body[data-page=study] .st-content>.st-question{width:100%;border-radius:19px;padding:21px 17px}body[data-page=study] .st-question>.st-actions>.st-button{font-size:11px;min-height:38px;padding:7px 10px}body[data-page=study] .st-answer-grid{grid-template-columns:1fr 1fr;gap:8px}body[data-page=study] .st-answer-option{min-height:60px;font-size:15px;padding:10px}body[data-page=study] .st-block-playfield{display:flex;flex-direction:column;justify-content:center;gap:12px}body[data-page=study] .st-block-grid{flex:none;max-height:calc(100% - 115px)}body[data-page=study] .st-piece-tray{width:100%;height:95px;min-height:95px;max-height:95px;flex:none;flex-direction:row;gap:5px;padding:0}body[data-page=study] .st-session .st-piece{width:31%;min-width:0;min-height:75px;max-height:90px;flex:0 1 100px}body[data-page=study] .st-mode-match .st-match-surface{padding:12px}body[data-page=study] .st-match-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:8px}body[data-page=study] .st-match-tile{font-size:15px;padding:8px;border-radius:12px}body[data-page=study] .st-match-image{max-height:52%}body[data-page=study] .st-flash-navigation{flex-basis:28px;height:28px;margin-bottom:7px}body[data-page=study] .st-photo-credit{font-size:8px;gap:5px}body[data-page=study] .st-flash-wrap>.st-actions{gap:6px}body[data-page=study] .st-flash-wrap>.st-actions>.st-button{font-size:11px;padding:8px 10px;min-height:38px}body[data-page=study] .st-game-intro{padding:24px 17px}body[data-page=study] .st-game-intro h3{font-size:30px}body[data-page=study] .st-game-intro>p{font-size:12px}body[data-page=study] .st-settings-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 22px);padding:18px}body[data-page=study] .st-block-overlay>.st-question,body[data-page=study] .st-gem-question-overlay>.st-question{padding:20px 15px}}
@media(max-height:500px) and (orientation:landscape){body[data-page=study] .st-session-progress{flex-basis:24px;min-height:24px;max-height:24px}body[data-page=study] .st-game-menu{flex-basis:26px;min-height:26px;max-height:26px}body[data-page=study] .st-game-menu>.st-button{font-size:10px;min-height:24px;padding:2px 9px}body[data-page=study] .st-content>.st-question{padding:13px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);column-gap:20px;align-content:center;justify-items:stretch}body[data-page=study] .st-question>.st-eyebrow{grid-column:1;align-self:end;font-size:9px}body[data-page=study] .st-content>.st-question>.st-prompt{grid-column:1;grid-row:2;align-self:start;margin:7px 0;font-size:23px}body[data-page=study] .st-content>.st-question>.st-muted{grid-column:1;font-size:10px}body[data-page=study] .st-content>.st-question>.st-answer-grid,body[data-page=study] .st-content>.st-question>.st-answer-form{grid-column:2;grid-row:1/4;margin:0;align-self:center}body[data-page=study] .st-content>.st-question>.st-actions{grid-column:2;grid-row:4;margin:3px 0;gap:4px}body[data-page=study] .st-content>.st-question>.st-actions>.st-button{min-height:28px;font-size:9px;padding:4px 7px}body[data-page=study] .st-content>.st-question>.st-answer-form{flex-wrap:nowrap}body[data-page=study] .st-content>.st-question>.st-answer-form>.st-button{width:auto;min-height:37px}body[data-page=study] .st-content>.st-question>.st-answer-grid{grid-template-columns:1fr 1fr;gap:7px}body[data-page=study] .st-answer-option{font-size:13px;min-height:42px;padding:8px}body[data-page=study] .st-flash-wrap{position:relative;padding-right:175px}body[data-page=study] .st-flash-wrap>.st-actions{position:absolute;right:0;top:45px;bottom:15px;width:160px;display:grid;grid-template-columns:1fr;align-content:center;margin:0;gap:6px}body[data-page=study] .st-flash-wrap>.st-actions>.st-button{font-size:11px;min-height:34px;padding:5px 9px}body[data-page=study] .st-flip-card{min-height:100px}body[data-page=study] .st-flip-face{gap:6px;padding:12px}body[data-page=study] .st-flip-face .st-flash-title{font-size:25px}body[data-page=study] .st-flip-face .st-ipa{font-size:14px}body[data-page=study] .st-flip-face .st-muted{font-size:9px}body[data-page=study] .st-flip-face .st-flash-image{max-height:75px}body[data-page=study] .st-flip-front:has(.st-flash-image){grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:5px 14px}body[data-page=study] .st-flip-front:has(.st-flash-image)>.st-eyebrow{grid-column:1;grid-row:1}body[data-page=study] .st-flip-front:has(.st-flash-image)>.st-flash-title{grid-column:1;grid-row:2;font-size:23px}body[data-page=study] .st-flip-front:has(.st-flash-image)>.st-ipa{grid-column:1;grid-row:3}body[data-page=study] .st-flip-front:has(.st-flash-image)>.st-flash-image{grid-column:2;grid-row:1/4;height:100%;max-height:125px}body[data-page=study] .st-flip-front:has(.st-flash-image)>.st-muted{display:none}body[data-page=study] .st-flash-navigation{margin-bottom:2px;flex-basis:24px;height:24px}body[data-page=study] .st-photo-credit{font-size:8px;margin:2px 0}body[data-page=study] .st-block-playfield{column-gap:15px;grid-template-columns:120px minmax(0,1fr);max-width:600px}body[data-page=study] .st-piece-tray{width:120px;gap:5px}body[data-page=study] .st-session .st-piece{width:110px;min-height:42px;max-height:62px;flex:0 1 60px}body[data-page=study] .st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),10px);grid-template-rows:repeat(var(--shape-rows,3),10px)}body[data-page=study] .st-block-grid{padding:8px;gap:3px}body[data-page=study] .st-block-overlay>.st-question,body[data-page=study] .st-gem-question-overlay>.st-question{padding:12px 18px;display:grid;grid-template-columns:1fr 1fr;column-gap:16px}body[data-page=study] .st-block-overlay .st-question>.st-prompt,body[data-page=study] .st-gem-question-overlay .st-question>.st-prompt{font-size:21px;margin:8px 0;grid-column:1}body[data-page=study] .st-block-overlay .st-question>.st-answer-grid,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-grid{grid-column:2;grid-row:1/4;margin:0}body[data-page=study] .st-block-overlay .st-question>.st-actions,body[data-page=study] .st-gem-question-overlay .st-question>.st-actions{grid-column:2;grid-row:4}body[data-page=study] .st-block-overlay .st-question>.st-muted,body[data-page=study] .st-gem-question-overlay .st-question>.st-muted{font-size:9px}body[data-page=study] .st-gem-grid{gap:4px;padding:7px}body[data-page=study] .st-gem{font-size:21px}body[data-page=study] .st-gem-bonus{font-size:7px;padding:2px}body[data-page=study] .st-moves-meter{display:none}body[data-page=study] .st-gems>.st-actions{flex-basis:28px;min-height:28px;margin:0}body[data-page=study] .st-gems>.st-actions>.st-button{min-height:26px;padding:3px 8px;font-size:9px}body[data-page=study] .st-game-intro{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:30px;align-content:center;justify-items:center;padding:15px 30px}body[data-page=study] .st-intro-art{grid-column:1;grid-row:1/5;width:90px;height:90px;margin:0}body[data-page=study] .st-game-intro>.st-eyebrow,body[data-page=study] .st-game-intro>h3,body[data-page=study] .st-game-intro>p,body[data-page=study] .st-game-intro>.st-intro-actions{grid-column:2}body[data-page=study] .st-game-intro h3{font-size:25px;margin:7px 0}body[data-page=study] .st-game-intro>p{font-size:10px;line-height:1.6}body[data-page=study] .st-intro-art>span{font-size:55px}body[data-page=study] .st-intro-actions{margin-top:12px;gap:8px}body[data-page=study] .st-intro-actions .st-big-play{min-height:38px;font-size:14px;width:auto;min-width:130px}body[data-page=study] .st-intro-actions>.st-button{min-height:34px;font-size:11px;padding:7px 11px}body[data-page=study] .st-mode-match .st-match-surface{padding:10px}body[data-page=study] .st-mode-match .st-match-surface>.st-muted{display:none}body[data-page=study] .st-match-grid{gap:7px}body[data-page=study] .st-match-tile{font-size:13px;border-radius:10px;padding:7px}body[data-page=study] .st-match-image{max-height:48%}body[data-page=study] .st-game-surface .st-game-toolbar{flex-basis:28px;min-height:28px;font-size:10px}body[data-page=study] .st-game-surface .st-clock{font-size:17px}body[data-page=study] .st-blast-top{max-height:48px}body[data-page=study] .st-blast-prompt{font-size:16px;max-height:40px}body[data-page=study] .st-blast-typing{min-height:32px}body[data-page=study] .st-blast-typing>.st-answer-input{min-height:30px;font-size:12px}body[data-page=study] .st-blast-typing>.st-button{min-height:30px;font-size:11px}body[data-page=study] .st-blast>p[role=status]{display:none}}

/* Keep the game chrome to one compact status/menu row; center board with its side tray. */
body[data-page=study] .st-game-surface .st-session-progress{flex:0 0 25px;min-height:25px;max-height:25px;padding-right:145px}body[data-page=study] .st-game-surface>.st-game-menu{position:absolute;top:0;right:0;width:140px;height:25px;min-height:25px;max-height:25px;z-index:22;justify-content:flex-end}body[data-page=study] .st-game-surface>.st-game-menu>.st-button{min-height:24px;max-height:24px;font-size:10px;padding:2px 10px}body[data-page=study] .st-game-surface .st-progress{font-size:9px}body[data-page=study] .st-game-surface .st-next-control{min-width:30px;min-height:22px;max-height:22px;font-size:17px}body[data-page=study] .st-block-playfield{max-width:var(--block-group-width);grid-template-columns:140px minmax(0,1fr);column-gap:24px}body[data-page=study] .st-block-grid{justify-self:start}body[data-page=study] .st-blocks>.st-game-toolbar{max-width:var(--block-group-width);width:100%;margin:auto}body[data-page=study] .st-gems>.st-game-toolbar{max-width:650px;width:100%;margin:auto}
@media(max-width:600px) and (orientation:portrait){body[data-page=study] .st-block-playfield{display:grid;grid-template-columns:63px minmax(0,1fr);column-gap:12px;max-width:var(--block-group-width)}body[data-page=study] .st-block-grid{grid-area:1/2;max-height:100%;padding:7px;gap:3px}body[data-page=study] .st-piece-tray{grid-area:1/1;width:63px;max-width:63px;min-height:0;max-height:100%;height:100%;flex-direction:column;gap:12px;justify-content:center}body[data-page=study] .st-session .st-piece{width:63px;min-height:70px;max-height:95px;flex:0 1 85px;padding:4px!important}body[data-page=study] .st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),10px);grid-template-rows:repeat(var(--shape-rows,3),10px);gap:2px}body[data-page=study] .st-game-surface .st-session-progress{padding-right:122px}body[data-page=study] .st-game-surface>.st-game-menu{width:120px}body[data-page=study] .st-game-surface>.st-game-menu>.st-button{font-size:9px;padding:2px 7px}}
@media(max-height:500px) and (orientation:landscape){body[data-page=study] .st-game-surface .st-session-progress{flex-basis:22px;min-height:22px;max-height:22px}body[data-page=study] .st-block-playfield{grid-template-columns:120px minmax(0,1fr);column-gap:14px;max-width:calc(var(--block-board-size) + 138px)}}

body[data-page=study] .st-match-grid{grid-auto-rows:minmax(0,1fr)}body[data-page=study] .st-session-progress>.st-quiet{font-size:9px;min-height:23px;padding:2px 7px}body[data-page=study] .st-game-surface .st-settings-dialog{background:#17133b;border-color:#575078;color:#f5f5ff}body[data-page=study] .st-game-surface .st-settings-dialog select{background:#282148;color:#f5f5ff;border-color:#5f557d}body[data-page=study] .st-game-surface .st-settings-dialog label,body[data-page=study] .st-game-surface .st-settings-dialog .st-muted{color:#c8c1e3}

@media(max-height:500px) and (orientation:landscape){body[data-page=study] .st-block-overlay>.st-question,body[data-page=study] .st-gem-question-overlay>.st-question{width:min(720px,100%);max-width:none;height:100%;max-height:100%;grid-template-columns:minmax(0,1fr) minmax(280px,1.25fr);grid-template-rows:18px minmax(35px,1fr) 18px 65px;gap:4px 16px;justify-content:stretch;align-content:stretch;padding:10px 16px}body[data-page=study] .st-block-overlay .st-question>.st-eyebrow,body[data-page=study] .st-gem-question-overlay .st-question>.st-eyebrow{grid-column:1;grid-row:1;font-size:8px;align-self:end}body[data-page=study] .st-block-overlay .st-question>.st-prompt,body[data-page=study] .st-gem-question-overlay .st-question>.st-prompt{grid-column:1;grid-row:2;align-self:center;margin:0;font-size:20px}body[data-page=study] .st-block-overlay .st-question>.st-muted,body[data-page=study] .st-gem-question-overlay .st-question>.st-muted{grid-column:1;grid-row:3;font-size:9px}body[data-page=study] .st-block-overlay .st-question>.st-answer-grid,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-grid{grid-column:2;grid-row:1/4;grid-template-columns:1fr 1fr;gap:6px;margin:0;min-height:0;height:100%;align-self:stretch}body[data-page=study] .st-block-overlay .st-question>.st-answer-grid>.st-button,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-grid>.st-button{min-height:0;height:100%;font-size:12px;padding:6px 9px}body[data-page=study] .st-block-overlay .st-question>.st-actions,body[data-page=study] .st-gem-question-overlay .st-question>.st-actions{grid-column:1/3;grid-row:4;width:100%;height:60px;min-height:0;max-height:60px;display:flex;justify-content:center;gap:5px;margin:0;align-content:center}body[data-page=study] .st-block-overlay .st-question>.st-actions>.st-button,body[data-page=study] .st-gem-question-overlay .st-question>.st-actions>.st-button{font-size:9px;min-height:27px;padding:3px 7px}body[data-page=study] .st-block-overlay .st-question>.st-answer-form,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-form{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;justify-content:center;gap:8px;margin:0}body[data-page=study] .st-block-overlay .st-question>.st-answer-form>.st-button,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-form>.st-button{min-height:33px;width:100%;padding:6px}body[data-page=study] .st-block-overlay .st-question>.st-answer-form>.st-answer-input,body[data-page=study] .st-gem-question-overlay .st-question>.st-answer-form>.st-answer-input{min-height:35px;font-size:13px;padding:8px}}

@media(max-height:500px) and (orientation:landscape){body[data-page=study] .st-block-overlay,body[data-page=study] .st-gem-question-overlay{position:fixed;inset:90px 55px 20px;z-index:35;padding:8px;border-radius:19px;background:#0b092bda}body[data-page=study] .st-block-overlay>.st-question,body[data-page=study] .st-gem-question-overlay>.st-question{width:100%;max-width:760px;height:100%;margin:auto;grid-template-columns:minmax(140px,1fr) minmax(240px,1.2fr)}body[data-page=study] .st-block-overlay .st-question>.st-prompt,body[data-page=study] .st-gem-question-overlay .st-question>.st-prompt{overflow-wrap:normal;word-break:normal;max-height:100%;overflow:auto}body[data-page=study] .st-block-overlay .st-question>.st-eyebrow,body[data-page=study] .st-gem-question-overlay .st-question>.st-eyebrow{white-space:normal;line-height:1.3;overflow:hidden}}

body[data-page=study] .st-piece-tray{width:165px}body[data-page=study] .st-session .st-piece{width:165px;min-height:100px;max-height:160px;flex:0 1 150px}body[data-page=study] .st-block-playfield{grid-template-columns:165px minmax(0,1fr);column-gap:15px}body[data-page=study] .st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),28px);grid-template-rows:repeat(var(--shape-rows,3),28px);gap:3px}
@media(max-width:600px) and (orientation:portrait){body[data-page=study] .st-block-playfield{grid-template-columns:70px minmax(0,1fr);column-gap:8px}body[data-page=study] .st-piece-tray{width:70px;max-width:70px}body[data-page=study] .st-session .st-piece{width:70px;min-height:70px;max-height:110px;flex:0 1 100px}body[data-page=study] .st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),12px);grid-template-rows:repeat(var(--shape-rows,3),12px);gap:2px}}
@media(max-height:500px) and (orientation:landscape){body[data-page=study] .st-block-playfield{grid-template-columns:120px minmax(0,1fr);column-gap:14px}body[data-page=study] .st-piece-tray{width:120px;gap:4px}body[data-page=study] .st-session .st-piece{width:115px;min-height:36px;max-height:68px;flex:0 1 65px}body[data-page=study] .st-session .st-piece-mini:not(.st-piece-ghost-mini){grid-template-columns:repeat(var(--shape-cols,3),12px);grid-template-rows:repeat(var(--shape-rows,3),12px);gap:2px}}
.st-flash-wrap{transform:translateX(0);transition:transform .16s ease-out;touch-action:pan-y}
.st-flash-wrap.st-swiping{transform:translateX(var(--swipe-offset,0));transition:none}
.st-gem-grid,.st-gem{touch-action:none;user-select:none;-webkit-user-select:none}
.st-gem{position:relative;cursor:grab;transition:transform .18s ease,filter .15s;will-change:transform}
.st-gem.st-gem-grabbed{z-index:8;cursor:grabbing;transition:none!important;filter:brightness(1.3);box-shadow:0 8px 25px #0007}
.st-gem.st-gem-neighbour{z-index:6;transition:none!important;filter:brightness(1.1)}
.st-gem.st-gem-swapping{z-index:7;transition:transform .18s ease!important}
.st-gem-settling .st-gem-shape{animation:st-gem-arrival .22s ease-out}
@keyframes st-gem-arrival{from{transform:scale(.65);opacity:.3}to{transform:scale(1);opacity:1}}
.st-session-progress .st-previous-control{margin-left:auto}
.st-question-review{position:absolute;inset:0;z-index:60;background:#0b1238ed;backdrop-filter:blur(7px);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;color:#fff;text-align:center;touch-action:pan-y}
.st-question-review h3{font-size:clamp(20px,4vw,32px);margin:15px 0}.st-question-review p{font-size:16px;line-height:1.7;max-width:650px}.st-review-controls{display:flex;gap:20px;margin-top:24px}
/* Faceted jewels remain visibly draggable; the cell frame is quiet. */
.st-session .st-gem:not(.st-gem-rock){background:#211d4b!important;border:1px solid #655a9b45!important;box-shadow:inset 0 1px 3px #0003;border-radius:12px;display:grid;place-items:center;padding:5px}
.st-gem-0{--gem-base:#5ea9ff;--gem-shadow:#2363ad}.st-gem-1{--gem-base:#ff62c3;--gem-shadow:#9c1676}.st-gem-2{--gem-base:#a98aff;--gem-shadow:#6536b9}.st-gem-3{--gem-base:#48e8c4;--gem-shadow:#087f74}.st-gem-4{--gem-base:#ffd86b;--gem-shadow:#ab7611}
.st-gem:not(.st-gem-rock) .st-gem-shape{display:block;position:relative;width:78%;height:78%;min-height:18px;aspect-ratio:1;font-size:0!important;filter:drop-shadow(0 4px 3px #0005);background:conic-gradient(from 30deg at 50% 45%,#ffffff88,transparent 24%,#0002 25%,transparent 47%,#ffffff4d 48%,transparent 72%,#0002 73%,#ffffff88),linear-gradient(145deg,var(--gem-base),var(--gem-shadow));clip-path:polygon(24% 3%,77% 3%,100% 30%,86% 83%,50% 100%,12% 83%,0 30%)}
.st-gem-0 .st-gem-shape{clip-path:polygon(15% 0,85% 0,100% 17%,100% 83%,85% 100%,15% 100%,0 83%,0 17%)!important;border-radius:18%}
.st-gem-1 .st-gem-shape{clip-path:polygon(50% 0,90% 25%,100% 62%,70% 94%,30% 94%,0 62%,10% 25%)!important;border-radius:45%}
.st-gem-3 .st-gem-shape{clip-path:polygon(0 12%,50% 0,100% 12%,84% 59%,50% 100%,16% 59%)!important}
.st-gem-4 .st-gem-shape{clip-path:polygon(50% 0,86% 20%,100% 50%,86% 80%,50% 100%,14% 80%,0 50%,14% 20%)!important}
.st-gem-bomb .st-gem-shape::after{content:'✹';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:clamp(20px,4vw,42px);text-shadow:0 0 8px #fff}
.st-gem-grid .st-gem-bonus{background:#102941dd;color:white;border:1px solid #a2fff2;border-radius:7px;z-index:3;padding:2px 5px;right:2px;bottom:2px;font-size:clamp(9px,1.5vw,12px)}
.st-session .st-gem.st-selected{border-color:#f8df7a!important;box-shadow:inset 0 0 0 2px #f8df7a}
.st-question-feedback-layer,.st-question-review,.st-flash-wrap{touch-action:pan-y}

.st-flash-front .st-front-audio{position:absolute;right:18px;top:16px;font-size:12px;min-height:36px;padding:7px 12px;z-index:3;background:var(--surface,#fff);border-radius:20px}.st-flash-front .st-eyebrow{padding:0 100px}.st-flashcard[role=group]{cursor:pointer}.st-flashcard[role=group]:focus-visible{outline:3px solid #d5b05a;outline-offset:4px}@media(max-width:600px){.st-flash-front .st-front-audio{right:10px;top:9px;font-size:10px;min-height:32px;padding:6px 9px}.st-flash-front .st-eyebrow{padding:0 65px}}

.account-page{max-width:900px;margin:0 auto;padding-bottom:28px}.account-content{display:grid;gap:20px}.account-content .panel{padding:28px}.account-content p{font-size:13px;line-height:1.8;color:var(--muted)}.account-content h2{font-size:21px;margin-bottom:14px;overflow-wrap:anywhere}.account-content h3{font-size:16px;margin-bottom:9px}.account-auth{max-width:540px;width:100%;margin:auto}.account-tabs{display:flex;gap:10px;margin-bottom:25px}.account-tabs>.button.active{background:var(--green);color:white;border-color:var(--green)}.account-form{display:grid;gap:18px;margin:22px 0}.account-form label{font-size:13px}.account-form input{width:100%}.account-form>.button{justify-self:start}.account-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.account-notice{padding:15px 0;font-size:13px;line-height:1.7;color:var(--ink);white-space:pre-wrap}.account-notice:empty{display:none}.account-notice.error,.account-content .account-error{color:#b84f3d}.account-sync-status{padding:12px 15px;background:var(--soft);border-radius:9px;margin-top:18px}.account-setup details{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.account-setup summary,.account-password summary{cursor:pointer;font-size:14px;font-weight:600}.account-conflict{padding:20px 0;border-top:1px solid var(--line)}.account-conflict>.button{margin:10px 10px 0 0}.account-transfer .button{margin-top:15px}.account-password{margin-top:0}[data-theme=dark] .account-notice.error,[data-theme=dark] .account-content .account-error{color:#ffb1a4}@media(max-width:650px){.account-content .panel{padding:22px 18px}.account-content h2{font-size:19px}.account-content p{font-size:12px}.account-actions>.button{width:100%}.account-tabs>.button{flex:1;font-size:11px;padding:10px}.account-form>.button{width:100%}.account-content{gap:15px}}

.account-page .page-heading{display:block}.account-page .page-heading h1{margin-bottom:12px}.account-page .page-heading p{max-width:620px}.account-auto-note{margin-top:8px}
