/* STEM Mầm Non – Teacher Tools v1.2.2 | Theme-native page, wide plugin content. */
.smn-tt-app{--tt-ink:#243f37;--tt-forest:#18523e;--tt-muted:#63756b;--tt-stroke:#e2eae3;--tt-mint:#e5f4ea;--tt-paper:#fff;--tt-soft:#f7faf6;--tt-shadow:0 14px 45px rgba(38,71,54,.07);font-family:inherit!important;color:var(--tt-ink);font-size:15px;line-height:1.58;min-width:0;width:100%}
.smn-tt-app *,.smn-tt-app *::before,.smn-tt-app *::after{box-sizing:border-box}
.smn-tt-app :is(h1,h2,h3,h4,p){margin:0!important;padding:0;line-height:1.35}
.smn-tt-app :is(h1,h2,h3){letter-spacing:-.03em;color:var(--tt-forest)!important;font-family:inherit!important}
.smn-tt-app a{text-decoration:none!important}
.smn-tt-app a:focus-visible,.smn-tt-app button:focus-visible,.smn-tt-app :is(input,textarea,select):focus-visible{outline:3px solid #51a98a!important;outline-offset:2px}
.smn-tt-app button,.smn-tt-app :is(input,textarea,select){font-family:inherit!important;font-size:inherit;line-height:1.35;letter-spacing:normal;text-transform:none}
.smn-tt-app button{cursor:pointer}
.smn-tt-app button:disabled{opacity:.5;cursor:not-allowed}
.smn-tt-app .smn-tt-shell{width:min(1200px,calc(100% - 40px));margin:0 auto;padding:20px 0 58px;isolation:isolate}
.smn-tt-app .smn-tt-overline{font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#3c8a69!important;line-height:1.5}
.smn-tt-app .smn-tt-btn{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:11px 15px;min-height:44px;white-space:normal;background:var(--tt-paper);color:var(--tt-forest)!important;box-shadow:none;font-size:13px;font-weight:800;text-align:center;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.smn-tt-app .smn-tt-btn:hover:not(:disabled){transform:translateY(-1px);background:#edf6ef}
.smn-tt-app .smn-tt-primary{background:var(--tt-forest)!important;border-color:var(--tt-forest)!important;color:#fff!important}
.smn-tt-app .smn-tt-primary:hover:not(:disabled){background:#287557!important}
.smn-tt-app .smn-tt-ghost{border-color:#d9e4dd!important;background:#fff!important;color:#305b47!important}
.smn-tt-app .smn-tt-subtle{border-color:transparent!important;background:#eef5f0!important;color:#34644d!important}
.smn-tt-app .smn-tt-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:center;gap:30px;padding:58px clamp(22px,5.1vw,70px);border-radius:36px 11px 36px 11px;background:radial-gradient(ellipse at 89% 12%,#d8e9fb 0,transparent 33%),radial-gradient(ellipse at 47% 102%,#ffead9 0,transparent 41%),linear-gradient(135deg,#eaf7ed,#f9f8e9);position:relative;overflow:hidden;min-height:410px}
.smn-tt-app .smn-tt-hero h1{font-size:clamp(31px,4.6vw,51px);line-height:1.16!important;margin:14px 0 18px!important;font-weight:850;letter-spacing:-.055em}
.smn-tt-app .smn-tt-hero h1 em{font-style:normal;color:#e57855}
.smn-tt-app .smn-tt-hero p{font-size:16px;color:#4f6b5c;max-width:510px;line-height:1.8;margin-bottom:24px!important}
.smn-tt-app .smn-tt-hero .smn-tt-primary{border-radius:30px;padding:13px 24px}
.smn-tt-app .smn-tt-hero-points{display:flex;gap:16px;flex-wrap:wrap;margin-top:22px;font-size:12px;color:#527460;font-weight:750}
.smn-tt-app .smn-tt-hero-art{height:300px;position:relative;display:flex;align-items:center;justify-content:center}
.smn-tt-app .smn-tt-art-wheel{width:257px;height:257px;display:grid;place-items:center;border-radius:50%;border:9px solid white;box-shadow:0 21px 40px #6a907637,0 0 0 1px #dcebe0;background:conic-gradient(#e48b78 0 60deg,#ebc66f 60deg 120deg,#89bf99 120deg 180deg,#7abbd4 180deg 240deg,#9f9ddd 240deg 300deg,#cf93bd 300deg 360deg);transform:rotate(-17deg)}
.smn-tt-app .smn-tt-art-wheel b{display:grid;place-items:center;background:white;color:#e6a65e;border:3px solid #edf2e7;border-radius:50%;font-size:52px;width:85px;height:85px}
.smn-tt-app .smn-tt-art-dice,.smn-tt-app .smn-tt-art-clock,.smn-tt-app .smn-tt-art-flower{position:absolute;display:grid;place-items:center;box-shadow:0 9px 22px #456d5930}
.smn-tt-app .smn-tt-art-dice{left:0;bottom:0;border-radius:22px;background:white;font-size:69px;color:#946cbe;width:105px;height:98px;transform:rotate(11deg)}
.smn-tt-app .smn-tt-art-clock{top:0;right:5px;border-radius:18px;background:#fff;font-size:24px;font-weight:900;color:#36886e;padding:15px 23px;transform:rotate(10deg)}
.smn-tt-app .smn-tt-art-flower{right:2px;bottom:8px;background:#ffedd9;color:#e4a54b;width:54px;height:54px;border-radius:50%;font-size:39px;transform:rotate(-20deg)}
.smn-tt-app .smn-tt-directory{padding-top:52px;scroll-margin-top:34px}
.smn-tt-app .smn-tt-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}
.smn-tt-app .smn-tt-section-head h2{font-size:clamp(25px,3vw,34px);font-weight:850;margin:6px 0 10px!important}
.smn-tt-app .smn-tt-section-head p{color:var(--tt-muted);font-size:14px}
.smn-tt-app .smn-tt-count{border-radius:100px;background:#e9f5ed;color:#317354;padding:7px 13px;white-space:nowrap;font-size:12px;font-weight:800}
.smn-tt-app .smn-tt-filterline{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap}
.smn-tt-app .smn-tt-search{min-width:260px;max-width:400px;flex:1;display:flex;align-items:center;gap:10px;border-radius:14px;border:1px solid var(--tt-stroke);padding:0 15px;background:white;height:48px}
.smn-tt-app .smn-tt-search span{font-size:29px;font-weight:300;color:#638d79}
.smn-tt-app .smn-tt-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;min-width:0;width:100%;padding:0!important;color:var(--tt-ink)}
.smn-tt-app .smn-tt-pills{display:flex;gap:6px;flex-wrap:wrap}
.smn-tt-app .smn-tt-pills button{font-size:12px;border:1px solid var(--tt-stroke);background:white;border-radius:100px;padding:9px 14px;min-height:42px;color:#4f695b;font-weight:750}
.smn-tt-app .smn-tt-pills button.active{color:white;background:#2a7455;border-color:#2a7455}
.smn-tt-app .smn-tt-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.smn-tt-app .smn-tt-card{min-width:0;min-height:255px;padding:25px;display:flex;flex-direction:column;border:1px solid #e7eee6;border-radius:23px 7px 23px 7px;background:white;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.smn-tt-app .smn-tt-card:hover{transform:translateY(-5px);box-shadow:var(--tt-shadow);border-color:#c9e3d1}
.smn-tt-app .smn-tt-card-icon{height:61px;width:66px;border-radius:17px;display:grid;place-items:center;font-size:35px;font-weight:750;background:#e7f5ed;color:#308362;margin-bottom:15px}
.smn-tt-app .smn-tt-violet .smn-tt-card-icon,.smn-tt-app .smn-tt-tool-icon.smn-tt-violet{background:#eee9fc;color:#7c5aac}
.smn-tt-app .smn-tt-peach .smn-tt-card-icon,.smn-tt-app .smn-tt-tool-icon.smn-tt-peach{background:#fff0e4;color:#d67b4c}
.smn-tt-app .smn-tt-blue .smn-tt-card-icon,.smn-tt-app .smn-tt-tool-icon.smn-tt-blue{background:#e4f3fa;color:#4089b5}
.smn-tt-app .smn-tt-yellow .smn-tt-card-icon,.smn-tt-app .smn-tt-tool-icon.smn-tt-yellow{background:#fcf3d8;color:#ae8c33}
.smn-tt-app .smn-tt-rose .smn-tt-card-icon,.smn-tt-app .smn-tt-tool-icon.smn-tt-rose{background:#fdeaf0;color:#b96b85}
.smn-tt-app .smn-tt-tool-icon.smn-tt-mint{background:#e7f5ed;color:#308362}
.smn-tt-app .smn-tt-card-category{font-size:11px;color:#599477;font-weight:850;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}
.smn-tt-app .smn-tt-card h3{font-size:19px;font-weight:850;margin-bottom:7px!important}
.smn-tt-app .smn-tt-card p{color:#65796b;font-size:13px;line-height:1.6!important;margin-bottom:20px!important;flex:1}
.smn-tt-app .smn-tt-card-go{display:flex;justify-content:space-between;align-items:center;color:#286448;font-weight:800;font-size:13px;border-top:1px solid #eef1eb;padding-top:14px}
.smn-tt-app .smn-tt-card-go b{font-size:19px}
.smn-tt-app .smn-tt-empty{padding:50px;text-align:center;background:#f7faf7;border-radius:18px}
.smn-tt-app .smn-tt-bottom-note{margin-top:35px;padding:23px 26px;display:flex;align-items:center;gap:20px;background:#eaf5eb;border-radius:23px 8px 23px 8px}
.smn-tt-app .smn-tt-bottom-note .smn-tt-bottom-icon{display:grid;place-items:center;font-size:38px;color:#518c6c;width:63px;height:63px;border-radius:20px;background:white;flex-shrink:0}
.smn-tt-app .smn-tt-bottom-note strong{font-size:16px}.smn-tt-app .smn-tt-bottom-note p{font-size:13px;color:#526c5a;margin-top:4px!important;line-height:1.65}
/* Tool detail */
.smn-tt-app .smn-tt-tool-page{padding-top:24px}
.smn-tt-app .smn-tt-breadcrumb{display:flex;gap:10px;align-items:center;font-size:12px;margin:0 0 25px!important;color:#6c8074}
.smn-tt-app .smn-tt-breadcrumb a{font-weight:800;color:#397759!important}
.smn-tt-app .smn-tt-tool-header{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.smn-tt-app .smn-tt-tool-icon{width:76px;height:76px;border-radius:22px;display:grid;place-items:center;font-size:43px;flex-shrink:0}
.smn-tt-app .smn-tt-tool-header h1{font-size:clamp(27px,3vw,35px);font-weight:850;margin:3px 0 5px!important}
.smn-tt-app .smn-tt-tool-header p{color:#647c6f;font-size:14px}
.smn-tt-app .smn-tt-safety{display:flex;align-items:center;gap:13px;border-radius:13px;background:#edf7ef;border:1px solid #d9eade;padding:12px 16px;margin-bottom:18px;color:#446b54}
.smn-tt-app .smn-tt-safety>span{font-size:25px;flex-shrink:0}
.smn-tt-app .smn-tt-safety div{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.smn-tt-app .smn-tt-safety strong{font-size:12px;color:#235b3f}.smn-tt-app .smn-tt-safety div>span{font-size:12px;line-height:1.5}
.smn-tt-app .smn-tt-tool-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:18px}
.smn-tt-app .smn-tt-tool-actions-left,.smn-tt-app .smn-tt-tool-actions-right{display:flex;gap:8px;flex-wrap:wrap}
.smn-tt-app .smn-tt-workspace{display:grid;grid-template-columns:minmax(235px,340px) minmax(0,1fr);gap:20px;align-items:start}
.smn-tt-app .smn-tt-panel{background:#fff;border:1px solid var(--tt-stroke);border-radius:23px;box-shadow:0 8px 30px rgba(32,60,45,.035);overflow:hidden;min-width:0}
.smn-tt-app .smn-tt-editor{padding:22px}
.smn-tt-app .smn-tt-panel-heading{display:flex;gap:12px;align-items:center;margin-bottom:20px}
.smn-tt-app .smn-tt-small-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#e7f4e9;color:#367b58;font-size:23px}
.smn-tt-app .smn-tt-panel-heading h2{font-size:17px;font-weight:850}.smn-tt-app .smn-tt-panel-heading p{font-size:12px;color:#809083;margin-top:3px!important}
.smn-tt-app .smn-tt-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:850;color:#405d49;margin-bottom:18px}
.smn-tt-app .smn-tt-field small{font-size:11px;font-weight:500;color:#819186}
.smn-tt-app .smn-tt-field :is(input,textarea,select){border-radius:11px!important;border:1px solid #dbe6dd!important;color:#324f3c!important;background:#fcfefc!important;box-shadow:none!important;outline:none;max-width:100%;width:100%;padding:12px 13px!important;font-size:13px!important;font-weight:500;line-height:1.55!important}
.smn-tt-app .smn-tt-field textarea{resize:vertical;min-height:190px;tab-size:4}
.smn-tt-app .smn-tt-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.smn-tt-app .smn-tt-edit-stats{display:flex;justify-content:space-between;gap:5px;color:#849487;font-size:11px;margin-top:-12px;margin-bottom:18px}
.smn-tt-app .smn-tt-editor .smn-tt-btn{width:100%;margin-bottom:9px}
.smn-tt-app .smn-tt-editor-tip{font-size:11px!important;color:#7b8b7e;margin-top:6px!important;line-height:1.6!important}
.smn-tt-app .smn-tt-play-panel{padding:0;min-height:580px}
.smn-tt-app .smn-tt-play-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 23px;border-bottom:1px solid #e7eee8;gap:15px}
.smn-tt-app .smn-tt-play-heading h2{font-size:18px;font-weight:850;margin-top:2px!important}
.smn-tt-app .smn-tt-live-badge{font-weight:850;font-size:11px;border-radius:100px;background:#ecf6ee;color:#3b8b63;padding:6px 10px;white-space:nowrap}
.smn-tt-app .smn-tt-live-badge.done{background:#e0f5e9;color:#1f8053}
.smn-tt-app .smn-tt-stage{padding:26px;min-height:445px;position:relative;outline:none}
.smn-tt-app .smn-tt-footnote{font-size:12px;color:#789082;margin-top:17px;text-align:center}
.smn-tt-app .smn-tt-toast{position:fixed;bottom:25px;right:25px;z-index:999999;max-width:min(440px,calc(100vw - 40px));background:#20563e;color:white;font-size:13px;font-weight:750;padding:14px 20px;border-radius:14px;box-shadow:0 13px 30px #263f3370}
.smn-tt-app .smn-tt-toast[data-type='error']{background:#a53e43}.smn-tt-app .smn-tt-toast[data-type='success']{background:#217a54}
.smn-tt-app .smn-tt-alert{padding:35px;background:#fff6ee;border-radius:12px}
/* Wheel */
.smn-tt-app .smn-tt-wheel-layout{display:grid;grid-template-columns:minmax(240px,1fr) minmax(145px,.64fr);align-items:center;gap:25px;min-height:390px}
.smn-tt-app .smn-tt-wheel-wrap{position:relative;display:grid;place-items:center;width:min(100%,345px);aspect-ratio:1;margin:0 auto}
.smn-tt-app .smn-tt-wheel{border:10px solid white;border-radius:50%;width:100%;height:100%;position:relative;box-shadow:0 8px 26px #47745a35,0 0 0 2px #edf3ea;transition:transform 4.3s cubic-bezier(.12,.66,.12,1);overflow:hidden}
.smn-tt-app .smn-tt-wheel-label{position:absolute;left:50%;top:50%;transform-origin:0 0;font-size:10px;font-weight:850;line-height:1;max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#213d35;text-shadow:0 1px 1px #ffffffa0;text-align:center}
.smn-tt-app .smn-tt-wheel-center{position:absolute;width:73px;height:73px;border-radius:50%;background:white;border:4px solid #f0f4ec;display:grid;place-items:center;color:#daa252;font-size:38px;box-shadow:0 3px 12px #475c492e}
.smn-tt-app .smn-tt-pointer{position:absolute;top:-13px;z-index:2;color:#214e39;font-size:41px;line-height:1;filter:drop-shadow(0 2px 1px #fff)}
.smn-tt-app .smn-tt-wheel-result{display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:center}
.smn-tt-app .smn-tt-wheel-value{color:#235640;font-size:clamp(18px,2.2vw,24px);line-height:1.3;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-wheel-result p{font-size:12px;color:#819288;margin-bottom:7px!important}
/* Dice */
.smn-tt-app .smn-tt-dice-layout{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:14px;min-height:395px;text-align:center}
.smn-tt-app .smn-tt-die-face{border-radius:35px;display:grid;place-items:center;width:166px;height:166px;background:linear-gradient(145deg,#e9e0fc,#fdfbff);border:5px solid white;box-shadow:0 8px 0 #d7cef0,0 15px 32px #6e528429;color:#875bc0;transform:rotate(-5deg);margin-bottom:15px}
.smn-tt-app .smn-tt-die-face span{font-size:108px;line-height:1}
.smn-tt-app .smn-tt-die-face.rolling{animation:smn-tt-shake .16s infinite alternate}
@keyframes smn-tt-shake{to{transform:rotate(8deg) translateY(-4px)}}
.smn-tt-app .smn-tt-dice-result{font-size:clamp(19px,2.6vw,27px);font-weight:850;color:#264c3b;text-wrap:balance}
.smn-tt-app .smn-tt-dice-layout p{color:#8a968e;font-size:12px}
/* timer */
.smn-tt-app .smn-tt-timer-layout{min-height:400px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:25px}
.smn-tt-app .smn-tt-clock{width:min(300px,80%);aspect-ratio:1;display:grid;place-items:center;border-radius:50%;padding:16px;background:conic-gradient(#438d70 calc(var(--p)*100%),#e5eee8 0);box-shadow:0 7px 20px #457a5a1b}
.smn-tt-app .smn-tt-clock-inner{width:100%;height:100%;background:white;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center;padding:16px}
.smn-tt-app .smn-tt-clock-time{font-size:clamp(42px,5vw,64px);font-weight:850;letter-spacing:-.07em;font-variant-numeric:tabular-nums;color:#1c533c}
.smn-tt-app .smn-tt-clock-inner small{font-size:11px;color:#94a094}
.smn-tt-app .smn-tt-clock-bar{background:linear-gradient(145deg,#e9f5ec,#f7fcf7);border-radius:28px;width:min(390px,100%);aspect-ratio:1.65}
.smn-tt-app .smn-tt-clock-bar .smn-tt-clock-inner{border-radius:22px}
.smn-tt-app .smn-tt-timer-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.smn-tt-app .smn-tt-timer-progress{width:min(390px,95%);height:8px;border-radius:20px;background:#e6eee7;overflow:hidden}
.smn-tt-app .smn-tt-timer-progress div{width:100%;height:100%;border-radius:inherit;background:#4e9877}
/* Games shared */
.smn-tt-app .smn-tt-game-status{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#65816c;padding:0 0 19px;font-weight:750;flex-wrap:wrap}
.smn-tt-app .smn-tt-game-status strong{color:#2e7b52;font-size:13px}
.smn-tt-app .smn-tt-game-hint{font-size:12px!important;color:#788e7c;margin:16px 0!important}
.smn-tt-app .smn-tt-game-again{margin-top:16px}
.smn-tt-app .smn-tt-match-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.smn-tt-app .smn-tt-match-layout h3,.smn-tt-app .smn-tt-sort-bank h3,.smn-tt-app .smn-tt-sort-heading{font-size:13px;font-weight:850;color:#44664e!important;margin-bottom:10px!important}
.smn-tt-app .smn-tt-match-col{display:flex;flex-direction:column;gap:9px}
.smn-tt-app .smn-tt-match-card{min-height:65px;width:100%;padding:13px 10px;text-align:center;line-height:1.35;background:#f7faf7;border:2px solid #e0ebe2;border-radius:13px;color:#365745;font-size:14px;font-weight:750;overflow-wrap:anywhere;transition:background .15s,border .15s,transform .15s}
.smn-tt-app .smn-tt-match-card:hover:not(:disabled){background:#edf6f0;transform:translateY(-1px)}
.smn-tt-app .smn-tt-match-card.selected{border-color:#e3ac66;background:#fff2db}
.smn-tt-app .smn-tt-match-card.correct{background:#dff6e7;border-color:#82c7a0;color:#357a4e;opacity:.75}
.smn-tt-app .smn-tt-match-card.wrong{border-color:#e89392;background:#fce7e7}
.smn-tt-app .smn-tt-sort-bank{border:1px dashed #b8d0bd;border-radius:14px;background:#fafdfb;padding:15px;margin-bottom:19px}
.smn-tt-app .smn-tt-sort-items{display:flex;gap:8px;flex-wrap:wrap}
.smn-tt-app .smn-tt-sort-item{border-radius:100px;border:2px solid #dce9df;background:white;padding:9px 13px;color:#31583e;font-size:13px;font-weight:750;touch-action:manipulation}
.smn-tt-app .smn-tt-sort-item.selected{border-color:#e4aa62;background:#fff1de}
.smn-tt-app .smn-tt-sort-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.smn-tt-app .smn-tt-sort-group{text-align:center;border:2px dashed var(--group);background:#fbfdfb;border-radius:14px;min-height:155px;padding:15px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;color:#3b5e4b}
.smn-tt-app .smn-tt-sort-group:hover,.smn-tt-app .smn-tt-sort-group.dragover{background:#eef8ef}
.smn-tt-app .smn-tt-sort-group strong{font-size:15px}.smn-tt-app .smn-tt-sort-group small{font-size:11px;color:#899d8d;font-weight:500}
.smn-tt-app .smn-tt-sort-done{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.smn-tt-app .smn-tt-sorted-label{padding:5px 7px;background:#e5f6e8;border-radius:8px;font-size:11px;color:#286c4b;font-weight:750}
.smn-tt-app .smn-tt-sequence-rows{display:flex;flex-direction:column;gap:9px}
.smn-tt-app .smn-tt-seq-item{display:flex;align-items:center;gap:11px;border-radius:12px;border:1px solid #e0e9e1;background:#fbfdfb;padding:10px 12px;min-height:65px;color:#3c5f46;font-size:13px;touch-action:manipulation}
.smn-tt-app .smn-tt-seq-drag{font-size:21px;color:#9bac9e;cursor:grab}
.smn-tt-app .smn-tt-seq-item>b{display:grid;place-items:center;width:31px;height:31px;background:#e7f4e9;color:#377654;border-radius:9px;flex-shrink:0}
.smn-tt-app .smn-tt-seq-item>span:nth-child(3){flex:1;font-weight:700;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-seq-buttons{display:flex;flex-direction:column;gap:4px}
.smn-tt-app .smn-tt-seq-buttons button{min-height:24px;min-width:30px;border:1px solid #e3eae3;border-radius:6px;background:white;color:#3d7757;font-weight:900;line-height:1;padding:4px}
.smn-tt-app .smn-tt-sequence-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}
.smn-tt-app .smn-tt-sequence-feedback{margin-top:16px;line-height:1.6;font-size:14px;font-weight:750;color:#55735d}
.smn-tt-app .smn-tt-sequence-feedback.good{color:#23844f}.smn-tt-app .smn-tt-sequence-feedback.try{color:#b28032}
.smn-tt-app .smn-tt-play-panel:fullscreen{overflow-y:auto;padding:3vh 4vw;background:#f8fcf8;border-radius:0}
.smn-tt-app .smn-tt-play-panel:fullscreen .smn-tt-stage{max-width:1100px;margin:auto;width:100%}
.smn-tt-app .smn-tt-play-panel:fullscreen .smn-tt-wheel-wrap{width:min(58vh,530px)}
@media(max-width:1050px){.smn-tt-app .smn-tt-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-tt-app .smn-tt-wheel-layout{grid-template-columns:1fr}.smn-tt-app .smn-tt-wheel-wrap{width:min(300px,100%)}.smn-tt-app .smn-tt-wheel-result{max-width:350px;margin:0 auto;width:100%}.smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(225px,300px) minmax(0,1fr)}.smn-tt-app .smn-tt-stage{padding:20px}}
@media(max-width:800px){.smn-tt-app .smn-tt-workspace{grid-template-columns:1fr}.smn-tt-app .smn-tt-play-panel{min-height:470px}.smn-tt-app .smn-tt-editor{padding:17px}.smn-tt-app .smn-tt-hero{grid-template-columns:1fr}.smn-tt-app .smn-tt-hero-art{height:190px;max-width:270px;margin:-5px auto 0}.smn-tt-app .smn-tt-art-wheel{width:190px;height:190px}.smn-tt-app .smn-tt-art-dice{width:75px;height:70px;font-size:49px}.smn-tt-app .smn-tt-art-clock{padding:10px 13px;font-size:17px}.smn-tt-app .smn-tt-art-flower{width:45px;height:45px;font-size:29px}.smn-tt-app .smn-tt-tool-actions-left,.smn-tt-app .smn-tt-tool-actions-right{flex:1}.smn-tt-app .smn-tt-tool-actions-left .smn-tt-btn{flex:1}.smn-tt-app .smn-tt-filterline{align-items:stretch}.smn-tt-app .smn-tt-search{max-width:none}}
@media(max-width:560px){.smn-tt-app .smn-tt-shell{width:calc(100% - 24px);padding-top:10px}.smn-tt-app .smn-tt-hero{padding:32px 21px 22px;border-radius:24px 8px 24px 8px;gap:12px}.smn-tt-app .smn-tt-hero h1{font-size:33px}.smn-tt-app .smn-tt-hero p{font-size:14px}.smn-tt-app .smn-tt-directory{padding-top:33px}.smn-tt-app .smn-tt-cards{grid-template-columns:1fr;gap:12px}.smn-tt-app .smn-tt-card{min-height:210px;padding:20px}.smn-tt-app .smn-tt-section-head{align-items:start}.smn-tt-app .smn-tt-count{margin-top:10px}.smn-tt-app .smn-tt-bottom-note{padding:18px;align-items:flex-start}.smn-tt-app .smn-tt-bottom-note .smn-tt-bottom-icon{width:44px;height:44px;font-size:26px}.smn-tt-app .smn-tt-tool-header{gap:12px}.smn-tt-app .smn-tt-tool-icon{width:57px;height:57px;font-size:32px;border-radius:15px}.smn-tt-app .smn-tt-tool-header h1{font-size:24px}.smn-tt-app .smn-tt-tool-header p{font-size:12px}.smn-tt-app .smn-tt-safety div{display:block}.smn-tt-app .smn-tt-safety div>span{display:block;margin-top:3px}.smn-tt-app .smn-tt-tool-actions .smn-tt-btn{font-size:12px;min-height:42px;padding:8px 10px}.smn-tt-app .smn-tt-tool-actions-right{justify-content:space-between}.smn-tt-app .smn-tt-play-heading{padding:15px;align-items:flex-start}.smn-tt-app .smn-tt-play-heading h2{font-size:16px}.smn-tt-app .smn-tt-stage{padding:16px}.smn-tt-app .smn-tt-wheel-layout{gap:17px}.smn-tt-app .smn-tt-wheel-wrap{width:min(270px,96%)}.smn-tt-app .smn-tt-wheel-label{font-size:9px}.smn-tt-app .smn-tt-match-layout{gap:9px}.smn-tt-app .smn-tt-match-card{min-height:62px;padding:8px;font-size:12px}.smn-tt-app .smn-tt-sort-groups{grid-template-columns:1fr}.smn-tt-app .smn-tt-seq-item{padding:8px;gap:6px}.smn-tt-app .smn-tt-seq-drag{font-size:14px}.smn-tt-app .smn-tt-seq-item>b{width:26px;height:28px}.smn-tt-app .smn-tt-toast{bottom:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.smn-tt-app *,.smn-tt-app *::before,.smn-tt-app *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Give file actions comfortable tap targets on narrow screens. */
@media(max-width:800px){
  .smn-tt-app .smn-tt-tool-actions{flex-direction:column;align-items:stretch}
  .smn-tt-app .smn-tt-tool-actions-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;flex:0 auto}
  .smn-tt-app .smn-tt-tool-actions-left [data-action="upload"]{grid-column:1/-1}
  .smn-tt-app .smn-tt-tool-actions-right{display:flex;width:100%;gap:8px;flex:0 auto;justify-content:space-between}
  .smn-tt-app .smn-tt-tool-actions-right [data-action="export"]{flex:1}
  .smn-tt-app .smn-tt-tool-actions-right [data-action="fullscreen"]{min-width:48px}
}

/* v1.1.0: Activity sharing and PowerPoint/embed presentation view. */
.smn-tt-app [hidden]{display:none!important}
.smn-tt-app .smn-tt-share-layer{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;overflow:auto;background:rgba(15,39,27,.63);padding:18px}
.smn-tt-app .smn-tt-share-dialog{background:#fff;border-radius:24px;max-width:720px;max-height:calc(100dvh - 36px);overflow:auto;width:100%;padding:27px;box-shadow:0 22px 95px #11291e4d;color:#264d3b;scrollbar-width:thin}
.smn-tt-app .smn-tt-share-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.smn-tt-app .smn-tt-share-head h2{font-size:24px;margin:4px 0 0!important}
.smn-tt-app .smn-tt-share-close{font-size:17px;display:grid;place-items:center;flex-shrink:0;height:38px;width:38px;background:#f1f5f2;border:1px solid #e1e9e1;border-radius:12px;color:#395c46}
.smn-tt-app .smn-tt-share-intro,.smn-tt-app .smn-tt-share-note{font-size:12px;line-height:1.65!important;color:#647c6d;margin-bottom:14px!important}
.smn-tt-app .smn-tt-share-status{padding:10px 14px;border:1px solid #dbe9dc;border-radius:11px;background:#edf7ef;font-size:12px;font-weight:650;line-height:1.55!important;color:#286843;margin:0 0 18px!important}
.smn-tt-app .smn-tt-share-status[data-type="warning"]{background:#fff6e7;border-color:#ead4ad;color:#886328}
.smn-tt-app .smn-tt-share-field{display:flex;flex-direction:column;gap:8px;margin:0 0 17px;font-size:13px}
.smn-tt-app .smn-tt-share-field strong{font-size:13px;color:#234f3a}
.smn-tt-app .smn-tt-share-field small{font-size:11px;color:#75877a;line-height:1.5}
.smn-tt-app .smn-tt-share-field textarea{resize:vertical;background:#f9fbf9!important;border:1px solid #d7e7d9!important;border-radius:10px!important;padding:11px 12px!important;font-size:11px!important;line-height:1.5!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;white-space:pre-wrap;overflow-wrap:anywhere;min-height:54px;max-height:110px;width:100%;color:#365445!important}
.smn-tt-app .smn-tt-share-field .smn-tt-btn{align-self:flex-start;font-size:12px;min-height:38px;padding:8px 12px}
.smn-tt-app .smn-tt-share-note{padding:13px 14px;margin:0!important;background:#f3f8f3;border-radius:12px}
/* Minimal standalone HTML player; no WP theme header/footer. */
.smn-tt-embed-body{margin:0!important;background:#eef6ef!important;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px}
.smn-tt-embed-body .smn-tt-app{height:100dvh;min-height:320px;margin:0;display:flex;flex-direction:column}
.smn-tt-embed-body .smn-tt-embed-shell{display:flex;flex-direction:column;gap:0;width:100%;height:100%;min-height:0;overflow:hidden;background:#f8fbf8}
.smn-tt-embed-body .smn-tt-embed-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;background:#fff;border-bottom:1px solid #dce8de;padding:9px 18px;min-height:54px}
.smn-tt-embed-body .smn-tt-embed-logo{display:flex;align-items:center;gap:7px;color:#286c4b;font-size:14px;font-weight:650;min-width:0}
.smn-tt-embed-body .smn-tt-embed-logo span{font-size:11px;color:#738b77;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smn-tt-embed-body .smn-tt-embed-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.smn-tt-embed-body .smn-tt-embed-controls :is(a,button){font-size:12px;font-weight:750;min-height:34px;padding:7px 11px;border:1px solid #dbe9dc;border-radius:9px;color:#236043;background:#f9fcf9;white-space:nowrap;cursor:pointer;text-decoration:none}
.smn-tt-embed-body .smn-tt-embed-controls :is(a,button):hover{background:#e7f5e9}
.smn-tt-embed-body .smn-tt-embed-shell>.smn-tt-play-panel{flex:1;min-height:0;border:none;border-radius:0;display:flex;flex-direction:column;overflow:hidden;box-shadow:none;background:#f8fbf8}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-play-heading{flex:0 0 auto;padding:12px 22px;background:#fff}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-play-heading h2{font-size:clamp(17px,2.8vw,25px)}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-stage{flex:1;min-height:0;overflow:auto;padding:22px;display:block}
.smn-tt-embed-body .smn-tt-embed-warning{background:#fff0dc;border:1px solid #edcda8;color:#745127;font-size:12px;padding:7px 15px;margin:0!important}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-wheel-layout{max-width:1080px;margin:0 auto;min-height:100%;align-items:center}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-wheel-wrap{width:min(40vw,53vh,360px);max-width:100%}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-timer-layout{min-height:100%}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-dice-layout{min-height:100%}
.smn-tt-embed-body .smn-tt-embed-shell :is(.smn-tt-match-layout,.smn-tt-sort-groups,.smn-tt-sequence-rows){max-width:1150px;margin-left:auto;margin-right:auto}
.smn-tt-embed-body .smn-tt-embed-shell .smn-tt-toast{z-index:1000}
@media(max-width:710px){
 .smn-tt-app .smn-tt-share-dialog{padding:17px;max-height:calc(100dvh - 20px)}
 .smn-tt-app .smn-tt-share-layer{padding:10px}
 .smn-tt-app .smn-tt-share-head h2{font-size:21px}
 .smn-tt-embed-body .smn-tt-embed-bar{padding:7px 10px}
 .smn-tt-embed-body .smn-tt-embed-logo{font-size:12px}
 .smn-tt-embed-body .smn-tt-embed-controls :is(a,button){font-size:11px;min-height:32px;padding:6px 7px}
 .smn-tt-embed-body .smn-tt-embed-shell .smn-tt-stage{padding:11px}
 .smn-tt-embed-body .smn-tt-embed-shell .smn-tt-wheel-wrap{width:min(240px,65vw)}
 .smn-tt-embed-body .smn-tt-embed-shell .smn-tt-play-heading{padding:9px 13px}
}
@media(min-width:720px){
 .smn-tt-embed-body .smn-tt-embed-shell .smn-tt-wheel-layout{grid-template-columns:minmax(240px,1fr) minmax(240px,.82fr);gap:26px;align-items:center}
 .smn-tt-embed-body .smn-tt-embed-shell .smn-tt-wheel-result{width:100%;margin:auto;max-width:340px}
}


/* v1.2.2: THEME-NATIVE CONTENT. Do not replace WordPress templates or style
   header/footer. This breakout affects only the interactive shortcode and
   works even inside Gutenberg's centered/is-layout-constrained content area. */
.smn-tt-app.smn-tt-native-wide{
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:min(1360px,calc(100vw - 48px))!important;
  max-width:none!important;
  margin:0!important;
  float:none;
  clear:both;
}
.smn-tt-app.smn-tt-native-wide>.smn-tt-shell{
  width:100%;
  max-width:none;
  padding:clamp(20px,3vw,46px) 0 70px;
}
/* Some block themes constrain or clip descendants of the content block. */
body.smn-tt-theme-layout .wp-block-post-content:has(.smn-tt-native-wide),
body.smn-tt-theme-layout .entry-content:has(.smn-tt-native-wide),
body.smn-tt-theme-layout .wp-block-shortcode:has(.smn-tt-native-wide){
  overflow:visible!important;
}
/* Only prevent the theme's generic content width from forcing our app narrow. */
body.smn-tt-content-wide .smn-tt-app.smn-tt-native-wide{
  flex-basis:auto;
  box-sizing:border-box;
}
.smn-tt-app.smn-tt-native-wide .smn-tt-hero{
  grid-template-columns:minmax(0,1.14fr) minmax(300px,.86fr);
  min-height:385px;
  gap:clamp(24px,4vw,60px);
  padding:clamp(35px,4.5vw,64px) clamp(26px,5vw,76px);
}
.smn-tt-app.smn-tt-native-wide .smn-tt-hero-copy{min-width:0}
.smn-tt-app.smn-tt-native-wide .smn-tt-hero h1{font-size:clamp(34px,4.3vw,58px)}
.smn-tt-app.smn-tt-native-wide .smn-tt-hero-art{min-width:0}
.smn-tt-app .smn-tt-hero-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.smn-tt-app .smn-tt-hero-mini{font-size:12px;color:#4b775e;font-weight:650}
.smn-tt-app .smn-tt-art-note{position:absolute;right:12px;bottom:1px;background:#fff;color:#447b57;border-radius:100px;padding:9px 15px;font-size:12px;font-weight:850;box-shadow:0 7px 19px #24503818;transform:rotate(-6deg)}
/* Workspace respects actual available width: the wheel cannot force a third offscreen column. */
.smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:22px;min-width:0}
.smn-tt-app .smn-tt-workspace>*{min-width:0;max-width:100%}
.smn-tt-app .smn-tt-play-panel{container-type:inline-size;container-name:smnplay;min-width:0}
.smn-tt-app .smn-tt-stage{min-width:0;max-width:100%;overflow-x:clip}
.smn-tt-app .smn-tt-wheel-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:24px;align-items:center;min-width:0;max-width:100%}
.smn-tt-app .smn-tt-wheel-wrap{width:min(100%,350px);max-width:100%;min-width:0;justify-self:center}
.smn-tt-app .smn-tt-wheel-result{min-width:0;max-width:350px;width:100%;margin:0 auto}
.smn-tt-app .smn-tt-wheel-value{word-break:normal;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-wheel-layout .smn-tt-btn{max-width:100%;white-space:normal}
.smn-tt-app .smn-tt-match-layout{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.smn-tt-app .smn-tt-sort-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
.smn-tt-app .smn-tt-editor{overflow-wrap:anywhere}
.smn-tt-app .smn-tt-tool-actions .smn-tt-btn{min-width:0}
.smn-tt-app .smn-tt-play-heading{min-width:0}
.smn-tt-app .smn-tt-play-heading>div{min-width:0}
/* Container queries react to actual sidebar/editor width, not only viewport width. */
@container smnplay (max-width:650px){
 .smn-tt-app .smn-tt-wheel-layout{grid-template-columns:1fr;gap:20px;min-height:unset;padding-top:10px;padding-bottom:12px}
 .smn-tt-app .smn-tt-wheel-wrap{width:min(100%,345px)}
 .smn-tt-app .smn-tt-wheel-result{max-width:400px}
 .smn-tt-app .smn-tt-match-layout{grid-template-columns:1fr}
}
@media(max-width:980px){
  .smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(0,280px) minmax(0,1fr)}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero{grid-template-columns:minmax(0,1fr) minmax(205px,.8fr);gap:20px;padding:38px 36px}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero h1{font-size:clamp(33px,4.8vw,47px)}
}
@media(max-width:760px){
  .smn-tt-app.smn-tt-native-wide{width:calc(100vw - 32px)!important}
  .smn-tt-app.smn-tt-native-wide>.smn-tt-shell{padding:20px 0 55px}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero{grid-template-columns:1fr;padding:32px 24px 25px;min-height:0;gap:12px}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero-art{height:205px;width:min(300px,100%);margin:auto}
  .smn-tt-app.smn-tt-native-wide .smn-tt-art-wheel{width:192px;height:192px}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero h1{font-size:clamp(32px,7.5vw,45px)}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero p{font-size:14px;line-height:1.7!important}
  .smn-tt-app.smn-tt-native-wide .smn-tt-directory{padding-top:34px}
  .smn-tt-app .smn-tt-workspace{grid-template-columns:1fr}
  .smn-tt-app .smn-tt-play-panel{min-height:0}
}
@media(max-width:450px){
  .smn-tt-app.smn-tt-native-wide{width:calc(100vw - 24px)!important}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero{padding:28px 19px 20px}
  .smn-tt-app.smn-tt-native-wide .smn-tt-hero h1{font-size:33px}
  .smn-tt-app .smn-tt-play-heading{padding:14px;flex-wrap:wrap}
  .smn-tt-app .smn-tt-wheel-wrap{width:min(100%,290px)}
}

/* v1.2.1 | Wheel labels: center each caption in its slice at every viewport width.
   Previous fixed 103px offset and chained transforms shifted captions off-center. */
.smn-tt-app .smn-tt-wheel-label{
  position:absolute;
  width:32%;
  max-width:none;
  padding:0 2px;
  margin:0;
  font-size:10px;
  font-weight:850;
  line-height:1.18;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  pointer-events:none;
  transform-origin:center center;
  box-sizing:border-box;
}


/* v1.3: image-first preschool activities. Larger picture targets; teacher labels optional. */
.smn-tt-app .smn-tt-picto {display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;max-width:128px;min-height:72px;aspect-ratio:1;line-height:1;margin:0 auto;overflow:hidden;border-radius:16px;background:linear-gradient(140deg,#fbfffa,#eff7e9)}
.smn-tt-app .smn-tt-picto img{max-height:100%;height:100%;width:100%;object-fit:contain;display:block}
.smn-tt-app .smn-tt-picture-emoji{font-size:clamp(40px,5.2vw,65px);line-height:1.1;display:block;white-space:nowrap}
.smn-tt-app .smn-tt-picto-caption{display:block;font-size:clamp(13px,1.2vw,17px);font-weight:800;line-height:1.2;max-width:100%;overflow-wrap:anywhere;text-align:center}
.smn-tt-app .smn-tt-match-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px;min-width:0;cursor:pointer;padding:9px;background:white}
.smn-tt-app .smn-tt-match-card .smn-tt-picto{min-height:78px;max-width:114px}
.smn-tt-app .smn-tt-match-card:focus-visible,.smn-tt-app .smn-tt-sort-item:focus-visible,.smn-tt-app .smn-tt-sort-group:focus-visible{outline:4px solid #efb853;outline-offset:2px}
.smn-tt-app .smn-tt-sort-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(106px,1fr));gap:10px}
.smn-tt-app .smn-tt-sort-item{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:106px;border-radius:16px;padding:8px;cursor:pointer}
.smn-tt-app .smn-tt-sort-item .smn-tt-picto{max-width:98px;min-height:76px}
.smn-tt-app .smn-tt-sort-group{gap:8px;min-height:166px;background:#fff;cursor:pointer}
.smn-tt-app .smn-tt-sort-group .smn-tt-picto{max-width:103px;min-height:67px}
.smn-tt-app .smn-tt-sort-group small{display:none}
.smn-tt-app .smn-tt-sorted-label{display:flex;flex-direction:column;align-items:center;min-width:54px}
.smn-tt-app .smn-tt-picto-small{max-width:42px!important;width:42px!important;min-height:38px!important;max-height:42px!important;border-radius:7px!important}
.smn-tt-app .smn-tt-picto-small .smn-tt-picture-emoji{font-size:28px}
.smn-tt-app .smn-tt-seq-item{cursor:pointer;min-height:98px;display:flex;align-items:center;gap:10px}
.smn-tt-app .smn-tt-seq-item.smn-tt-seq-selected{background:#fff2d8;border:3px solid #e5b252}
.smn-tt-app .smn-tt-seq-content{flex:1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.smn-tt-app .smn-tt-seq-content .smn-tt-picto{width:86px;max-width:86px;min-height:75px;margin:0}
.smn-tt-app .smn-tt-seq-content .smn-tt-picto-caption{flex:1;text-align:left}
.smn-tt-app .smn-tt-wheel-emoji{font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif!important;font-size:clamp(20px,2.8vw,32px)!important;max-width:60px!important;line-height:1.1!important;overflow:visible!important;text-overflow:clip!important}
.smn-tt-app .smn-tt-wheel-picked,.smn-tt-app .smn-tt-dice-picked{height:72px;font-size:56px;display:flex;align-items:center;justify-content:center;line-height:1;min-width:0}
.smn-tt-app .smn-tt-wheel-picked img,.smn-tt-app .smn-tt-dice-picked img{height:70px;width:90px;object-fit:contain}
.smn-tt-app .smn-tt-picture-editor{margin-top:17px;padding-top:13px;border-top:1px solid #e0ebe1}
.smn-tt-app .smn-tt-picture-head{display:flex;flex-direction:column;gap:5px;margin-bottom:11px}
.smn-tt-app .smn-tt-picture-head strong{font-size:15px}
.smn-tt-app .smn-tt-picture-head small,.smn-tt-app .smn-tt-picture-help{font-size:11px;line-height:1.6;color:#6b806f}
.smn-tt-app .smn-tt-label-toggle{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;margin:12px 0!important}
.smn-tt-app .smn-tt-label-toggle input{width:18px;height:18px;accent-color:#25805d}
.smn-tt-app .smn-tt-picture-list{display:flex;flex-direction:column;gap:6px;max-height:330px;overflow:auto;padding:3px 2px}
.smn-tt-app .smn-tt-picture-row{display:grid;grid-template-columns:42px minmax(0,1fr) 65px 65px 24px;gap:5px;align-items:center;border:1px solid #e2ece4;border-radius:10px;background:white;padding:6px}
.smn-tt-app .smn-tt-picture-preview{height:42px;width:42px;border-radius:8px;background:#ecf5ec;display:grid;place-items:center;font-size:25px;overflow:hidden}
.smn-tt-app .smn-tt-picture-preview img{height:100%;width:100%;object-fit:contain}
.smn-tt-app .smn-tt-picture-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#3d6850}
.smn-tt-app .smn-tt-picture-emoji-input{min-width:0!important;width:100%!important;min-height:36px;padding:4px!important;font-size:17px!important;text-align:center}
.smn-tt-app .smn-tt-picture-upload{cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:7px;min-height:36px;background:#eaf4eb;color:#236c4a;font-size:11px;font-weight:800}
.smn-tt-app .smn-tt-picture-remove{font-size:23px;color:#a04e3e;min-height:30px;background:transparent;cursor:pointer}
@media(max-width:610px){
 .smn-tt-app .smn-tt-match-layout{gap:7px}
 .smn-tt-app .smn-tt-match-card{min-height:92px;padding:5px}
 .smn-tt-app .smn-tt-match-card .smn-tt-picto{min-height:65px;max-width:85px}
 .smn-tt-app .smn-tt-picture-emoji{font-size:43px}
 .smn-tt-app .smn-tt-sort-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .smn-tt-app .smn-tt-sort-item{min-height:100px}
 .smn-tt-app .smn-tt-seq-item{gap:6px;min-height:86px}
 .smn-tt-app .smn-tt-seq-content .smn-tt-picto{width:66px;max-width:66px;min-height:66px}
 .smn-tt-app .smn-tt-picture-row{grid-template-columns:35px minmax(0,1fr) 48px 53px 22px;gap:4px}
 .smn-tt-app .smn-tt-picture-preview{width:35px;height:35px}
 .smn-tt-app .smn-tt-picture-label{font-size:10px}
}

.smn-tt-app .smn-tt-wheel-emoji img{width:48px;height:48px;object-fit:contain;display:block}
/* In mobile view the children's game comes before the teacher's text editor. */
@media(max-width:800px){.smn-tt-app .smn-tt-workspace>.smn-tt-play-panel{order:1}.smn-tt-app .smn-tt-workspace>.smn-tt-editor{order:2}}
@media(max-width:560px){.smn-tt-app .smn-tt-wheel-emoji img{width:34px;height:34px}}

/* Child mode: teachers can enter an uncluttered picture-play view without a new page. */
.smn-tt-app.smn-tt-child-mode .smn-tt-workspace{display:block;max-width:1160px;margin:0 auto}
.smn-tt-app.smn-tt-child-mode .smn-tt-workspace>.smn-tt-editor{display:none!important}
.smn-tt-app.smn-tt-child-mode .smn-tt-safety,.smn-tt-app.smn-tt-child-mode .smn-tt-footnote{display:none!important}
.smn-tt-app.smn-tt-child-mode .smn-tt-stage{min-height:540px}
.smn-tt-app [data-action="childmode"][aria-pressed="true"]{background:#f7e3a8!important;color:#26513e!important;border-color:#e8c26c!important}

/* v1.4.0: compact theme spacing, large type, responsive editor. */
body.smn-tt-theme-layout :is(main,#content,.wp-block-post-content,.entry-content,.wp-block-shortcode):has(.smn-tt-app){padding-block:0!important;margin-block:0!important;min-height:0!important}
body.smn-tt-theme-layout .wp-block-group:has(.smn-tt-app):not(:has(header,footer,.wp-block-template-part)){padding-block:0!important;margin-block:0!important;min-height:0!important}
body.smn-tt-theme-layout .wp-block-post-content:has(.smn-tt-app)>*{margin-block:0!important}
.smn-tt-app{font-size:17px;line-height:1.6}
.smn-tt-app .smn-tt-shell,.smn-tt-app.smn-tt-native-wide>.smn-tt-shell{padding:14px 0 26px!important}
.smn-tt-app .smn-tt-tool-page{padding-top:10px!important}
.smn-tt-app .smn-tt-breadcrumb{margin-bottom:16px!important;font-size:14px}
.smn-tt-app .smn-tt-btn{font-size:15px;min-height:46px}
.smn-tt-app .smn-tt-overline,.smn-tt-app .smn-tt-card-category{font-size:13px}
.smn-tt-app .smn-tt-hero p,.smn-tt-app.smn-tt-native-wide .smn-tt-hero p{font-size:18px}
.smn-tt-app .smn-tt-hero-points,.smn-tt-app .smn-tt-hero-mini,.smn-tt-app .smn-tt-count{font-size:14px}
.smn-tt-app .smn-tt-directory{padding-top:32px}
.smn-tt-app .smn-tt-section-head p,.smn-tt-app .smn-tt-tool-header p,.smn-tt-app .smn-tt-card p,.smn-tt-app .smn-tt-bottom-note p,.smn-tt-app .smn-tt-card-go,.smn-tt-app .smn-tt-pills button{font-size:16px}
.smn-tt-app .smn-tt-card h3{font-size:23px}
.smn-tt-app .smn-tt-bottom-note{margin-top:24px}
.smn-tt-app .smn-tt-bottom-note strong,.smn-tt-app .smn-tt-panel-heading h2,.smn-tt-app .smn-tt-play-heading h2{font-size:21px}
.smn-tt-app .smn-tt-field,.smn-tt-app .smn-tt-label-toggle,.smn-tt-app .smn-tt-picture-head small,.smn-tt-app .smn-tt-picture-help,.smn-tt-app .smn-tt-field small,.smn-tt-app .smn-tt-panel-heading p,.smn-tt-app .smn-tt-editor-tip,.smn-tt-app .smn-tt-footnote,.smn-tt-app .smn-tt-live-badge,.smn-tt-app .smn-tt-edit-stats{font-size:14px!important}
.smn-tt-app .smn-tt-field :is(input,textarea,select){font-size:16px!important}
.smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:20px}
.smn-tt-app .smn-tt-editor{padding:20px;min-width:0}
.smn-tt-app .smn-tt-panel-heading{flex-wrap:wrap;align-items:center}
.smn-tt-app .smn-tt-expand-editor,.smn-tt-app .smn-tt-presets button,.smn-tt-app .smn-tt-row-buttons button{min-height:40px;border:1px solid #d6e4da;background:#f1f7f2;border-radius:9px;padding:6px 10px;color:#20583e;font-size:14px;font-weight:750;line-height:1.2}
.smn-tt-app .smn-tt-expand-editor{margin-left:auto}
.smn-tt-app.smn-tt-editor-wide .smn-tt-workspace{grid-template-columns:minmax(0,1fr)}
.smn-tt-app.smn-tt-editor-wide .smn-tt-editor{order:0}
.smn-tt-app.smn-tt-editor-wide .smn-tt-play-panel{order:1}
.smn-tt-app.smn-tt-editor-wide .smn-tt-picture-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.smn-tt-app .smn-tt-settings-box{background:#f1f7f2;border:1px solid #dce9de;padding:14px;border-radius:14px;margin-bottom:18px;display:grid;gap:9px}
.smn-tt-app .smn-tt-settings-box .smn-tt-field{margin-bottom:0}
.smn-tt-app .smn-tt-row-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0}
.smn-tt-app .smn-tt-lines-count{font-size:14px;color:#587465}
.smn-tt-app .smn-tt-row-editor{display:grid;gap:9px;margin-bottom:10px;max-height:520px;overflow-y:auto;overflow-x:hidden;padding:3px}
.smn-tt-app .smn-tt-edit-row{display:grid;grid-template-columns:27px minmax(0,1fr);gap:6px;align-items:center;border:1px solid #dce9de;padding:9px;border-radius:12px;background:#fff;min-width:0}
.smn-tt-app .smn-tt-row-index{font-weight:800;color:#42765b;font-size:15px;text-align:center}
.smn-tt-app .smn-tt-row-fields{min-width:0;display:grid;gap:5px}
.smn-tt-app .smn-tt-row-fields input{min-width:0!important;width:100%!important;max-width:100%;border:1px solid #dce7de!important;border-radius:8px!important;padding:9px!important;background:#fbfdfb!important;color:#244a36!important;font-size:16px!important}
.smn-tt-app .smn-tt-row-buttons{grid-column:2;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.smn-tt-app .smn-tt-row-buttons button{min-width:36px;padding:4px 8px}
.smn-tt-app .smn-tt-row-buttons [data-del]{color:#9a3b32;background:#fff1ed}
.smn-tt-app .smn-tt-bulk-edit{margin:10px 0 15px;border:1px solid #dce9de;border-radius:10px;padding:10px;font-size:15px}
.smn-tt-app .smn-tt-bulk-edit summary{cursor:pointer;font-weight:700}
.smn-tt-app .smn-tt-bulk-edit .smn-tt-field{margin:10px 0 0}
.smn-tt-app .smn-tt-picture-list{max-height:580px;overflow-y:auto;overflow-x:hidden;gap:9px;padding:3px}
.smn-tt-app .smn-tt-picture-row{grid-template-columns:56px minmax(0,1fr) minmax(0,1fr) 42px;gap:7px;padding:10px;min-width:0}
.smn-tt-app .smn-tt-picture-preview{width:56px;height:56px;font-size:35px;grid-column:1;grid-row:1}
.smn-tt-app .smn-tt-picture-label{grid-column:2/-1;grid-row:1;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;font-size:15px;font-weight:700;line-height:1.4}
.smn-tt-app .smn-tt-picture-emoji-input{grid-column:1/3;grid-row:2;min-height:42px;font-size:16px!important}
.smn-tt-app .smn-tt-picture-upload{grid-column:3;grid-row:2;font-size:13px;min-height:42px;text-align:center;line-height:1.2;padding:5px}
.smn-tt-app .smn-tt-picture-remove{grid-column:4;grid-row:2;min-width:0!important;width:100%;min-height:42px;padding:4px!important;border:1px solid #dbe6dd!important;border-radius:8px!important;font-size:19px!important;background:#fff!important}
.smn-tt-app .smn-tt-picture-head strong{font-size:19px}
.smn-tt-app .smn-tt-presets{display:flex;gap:7px;flex-wrap:wrap;margin:-5px 0 17px}
.smn-tt-app .smn-tt-timer-layout{--timer-accent:#438d70;--timer-soft:#e5eee8;--timer-size:330px;--timer-text:clamp(48px,8vw,92px)}
.smn-tt-app .smn-tt-timer-normal{--timer-size:260px;--timer-text:clamp(36px,6vw,60px)}
.smn-tt-app .smn-tt-timer-huge{--timer-size:490px;--timer-text:clamp(54px,11vw,138px)}
.smn-tt-app .smn-tt-theme-sun{--timer-accent:#ba7826;--timer-soft:#fff0c9}
.smn-tt-app .smn-tt-theme-ocean{--timer-accent:#2879ad;--timer-soft:#e2f2fc}
.smn-tt-app .smn-tt-theme-berry{--timer-accent:#8056b3;--timer-soft:#f0e9fb}
.smn-tt-app .smn-tt-timer-layout .smn-tt-clock{width:min(var(--timer-size),100%);background:conic-gradient(var(--timer-accent) calc(var(--p)*100%),var(--timer-soft) 0)}
.smn-tt-app .smn-tt-timer-layout .smn-tt-clock-time{font-size:min(var(--timer-text),18cqw);color:var(--timer-accent);line-height:1.12;letter-spacing:-.04em}
.smn-tt-app .smn-tt-timer-layout .smn-tt-clock-bar,.smn-tt-app .smn-tt-timer-layout .smn-tt-clock-digits,.smn-tt-app .smn-tt-timer-layout .smn-tt-clock-hourglass{background:var(--timer-soft);border-radius:26px;width:min(100%,calc(var(--timer-size)*1.4));aspect-ratio:auto;min-height:210px}
.smn-tt-app .smn-tt-clock-digits .smn-tt-clock-inner,.smn-tt-app .smn-tt-clock-hourglass .smn-tt-clock-inner{border-radius:20px;min-height:170px}
.smn-tt-app .smn-tt-clock-hourglass .smn-tt-clock-inner{padding:14px;gap:5px}
.smn-tt-app .smn-tt-clock-hourglass .smn-tt-clock-time{font-size:clamp(30px,5vw,52px)}
.smn-tt-app .smn-tt-sandglass{height:clamp(90px,17vh,175px);max-width:100%;color:var(--timer-accent)}
.smn-tt-app .smn-tt-sand-top{transform-box:fill-box;transform-origin:center bottom;transform:scaleY(var(--p))}
.smn-tt-app .smn-tt-sand-bottom{transform-box:fill-box;transform-origin:center bottom;transform:scaleY(calc(1 - var(--p)))}
.smn-tt-app .smn-tt-timer-progress{width:min(100%,calc(var(--timer-size)*1.35));height:20px;background:var(--timer-soft)}
.smn-tt-app .smn-tt-timer-progress>div{background:var(--timer-accent)}
.smn-tt-app .smn-tt-hide-time .smn-tt-clock-time{display:none}
.smn-tt-app .smn-tt-clock-finished .smn-tt-clock-inner{background:#fff5d8}
.smn-tt-app .smn-tt-picto-caption,.smn-tt-app .smn-tt-game-hint{font-size:16px}
@media(max-width:1050px){.smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(0,345px) minmax(0,1fr)}}
@media(max-width:800px){.smn-tt-app .smn-tt-workspace{grid-template-columns:minmax(0,1fr)}.smn-tt-app .smn-tt-editor{padding:14px}.smn-tt-app .smn-tt-expand-editor{display:none}.smn-tt-app .smn-tt-hero p,.smn-tt-app.smn-tt-native-wide .smn-tt-hero p{font-size:16px}.smn-tt-app .smn-tt-row-editor,.smn-tt-app .smn-tt-picture-list{max-height:480px}}
.smn-tt-app.smn-tt-child-mode .smn-tt-workspace{display:block}
.smn-tt-embed-body .smn-tt-timer-layout .smn-tt-clock{max-height:62vh;max-width:100%}

/* v1.5.0 – picture-first activities. Scope all rules to plugin content. */
.smn-tt-app .smn-tt-new-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:10px 14px;border-radius:14px;background:#eaf5ed;color:#20543e;font-size:16px;font-weight:750}
.smn-tt-app .smn-tt-new-footer,.smn-tt-app .smn-tt-flash-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.smn-tt-app .smn-tt-new-feedback{min-height:32px;text-align:center;margin-top:14px;font-weight:800;font-size:clamp(16px,2vw,23px);color:#20543e;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(7px,1.4vw,16px);max-width:880px;margin:auto}
.smn-tt-app .smn-tt-memory-card{min-width:0;min-height:76px;aspect-ratio:1.07;border:2px solid #d8d8ec;border-radius:18px;background:linear-gradient(145deg,#e7e0f9,#c7b8ef);display:grid;place-items:center;padding:8px;box-shadow:0 4px 0 #b9a6e1;color:#49377d!important}
.smn-tt-app .smn-tt-memory-card.is-open{background:#f8fcf7;border-color:#dbe9dc;box-shadow:none}
.smn-tt-app .smn-tt-memory-card.is-found{background:#e0f0e5;border:3px solid #459769;opacity:1;box-shadow:none}
.smn-tt-app .smn-tt-memory-back{font-size:clamp(28px,4vw,60px);font-weight:900;line-height:1}
.smn-tt-app .smn-tt-memory-face{width:100%;max-width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.smn-tt-app .smn-tt-memory-face .smn-tt-picto{max-width:clamp(44px,8vw,96px);min-height:0;background:transparent}
.smn-tt-app .smn-tt-memory-face .smn-tt-picture-emoji{font-size:clamp(32px,5vw,70px)}
.smn-tt-app .smn-tt-memory-face .smn-tt-picto-caption{font-size:clamp(10px,1.25vw,15px)}
.smn-tt-app .smn-tt-count-objects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:clamp(10px,2vw,24px);border-radius:24px;background:#fff9eb;border:1px solid #f0e3c8;min-height:130px;max-width:780px;margin:0 auto;justify-content:center}
.smn-tt-app .smn-tt-count-object{min-width:0;display:grid;place-items:center;gap:5px;text-align:center}
.smn-tt-app .smn-tt-count-object .smn-tt-picto{max-width:104px;min-height:0;background:#fff}
.smn-tt-app .smn-tt-count-object .smn-tt-picture-emoji{font-size:clamp(26px,5vw,66px)}
.smn-tt-app .smn-tt-count-prompt{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:16px 0}
.smn-tt-app .smn-tt-count-prompt strong{font-size:clamp(20px,2.7vw,29px);color:#18523e}
.smn-tt-app .smn-tt-number-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:12px;max-width:560px;margin:auto}
.smn-tt-app .smn-tt-number-choices button{border:2px solid #d9e9df;border-radius:18px;background:#fff;min-height:96px;padding:8px;display:grid;justify-items:center;align-content:center;gap:4px;color:#18523e!important}
.smn-tt-app .smn-tt-number-choices button>b{font-size:clamp(34px,5vw,60px);line-height:1}
.smn-tt-app .smn-tt-number-dots{font-size:12px;letter-spacing:2px;max-width:62px;line-height:1.2;overflow-wrap:anywhere;color:#4e8a73}
.smn-tt-app .smn-tt-number-choices .is-correct{background:#dcf3e3;border-color:#3e9662;opacity:1}
.smn-tt-app .smn-tt-number-choices .is-wrong{background:#fff0df;border-color:#e4a66a}
.smn-tt-app .smn-tt-new-finish{text-align:center;display:grid;justify-items:center;gap:15px;padding:30px 10px}
.smn-tt-app .smn-tt-new-finish>span{font-size:90px;line-height:1}
.smn-tt-app .smn-tt-flash-picture{width:100%;max-width:600px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:auto;padding:18px;border-radius:24px;background:#f5faf2;border:2px solid #d9e8d7;color:#18523e!important;min-height:180px}
.smn-tt-app .smn-tt-flash-picture .smn-tt-picto{width:min(80%,270px);max-width:270px;min-height:0;background:transparent}
.smn-tt-app .smn-tt-flash-picture .smn-tt-picture-emoji{font-size:clamp(100px,17vw,210px)}
.smn-tt-app .smn-tt-flash-picture .smn-tt-picto-caption,.smn-tt-app .smn-tt-flash-name{font-size:clamp(23px,4vw,40px);font-weight:850;text-align:center;color:#18523e;margin-top:10px;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-flash-controls .smn-tt-btn{min-width:62px;font-size:20px}
.smn-tt-app .smn-tt-robot-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start;gap:18px;max-width:1000px;margin:auto}
.smn-tt-app :is(.smn-tt-robot-grid,.smn-tt-robot-edit-grid){display:grid;grid-template-columns:repeat(var(--cols,5),minmax(0,1fr));gap:4px;background:#d9e9d7;padding:6px;border-radius:14px;min-width:0}
.smn-tt-app .smn-tt-robot-cell,.smn-tt-app .smn-tt-robot-edit-grid button{aspect-ratio:1;min-width:0;border:1px solid #d7e6d7;background:#f8fcf5;border-radius:8px;display:grid;place-items:center;position:relative;padding:0;color:#28735a!important;font-size:clamp(18px,3vw,39px);line-height:1}
.smn-tt-app .smn-tt-robot-edit-grid button{font-size:clamp(16px,2.3vw,26px)}
.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="X"]{background:#e9e6dd}
.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="G"]{background:#fff0bd}
.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="S"]{background:#cfece2}
.smn-tt-app .smn-tt-robot-dot{opacity:.25}
.smn-tt-app .smn-tt-robot-avatar{position:absolute;inset:3%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#d9f3fa;border:2px solid #4c9bb5;border-radius:12%;z-index:1;box-shadow:0 3px 7px #20493a24}
.smn-tt-app .smn-tt-robot-avatar b{font-size:clamp(16px,2.7vw,38px);line-height:1}.smn-tt-app .smn-tt-robot-avatar em{font-size:clamp(12px,1.6vw,21px);line-height:1;font-style:normal;font-weight:900}
.smn-tt-app .smn-tt-robot-commands,.smn-tt-app .smn-tt-robot-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.smn-tt-app :is(.smn-tt-robot-commands,.smn-tt-robot-palette) button,.smn-tt-app .smn-tt-robot-queue button{border:1px solid #c6e0df;background:#edf8fa;border-radius:12px;min-height:42px;padding:8px;color:#215b6e!important;font-weight:800;display:grid;place-items:center;gap:3px;min-width:0;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-robot-commands button b{font-size:clamp(26px,3vw,42px);line-height:1}
.smn-tt-app .smn-tt-robot-palette button[aria-pressed="true"]{outline:3px solid #459a75;background:#e0f2e5}
.smn-tt-app .smn-tt-robot-queue{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:9px;min-height:62px;background:#f5f9f4;border:1px dashed #b6d2bd;border-radius:14px}
.smn-tt-app .smn-tt-robot-queue button{font-size:24px;width:42px;height:42px;padding:3px}.smn-tt-app .smn-tt-robot-queue .is-active{background:#ffdf7c;opacity:1;border-color:#b48c28;outline:2px solid #b48c28}
.smn-tt-app .smn-tt-robot-queue>span{font-size:14px;color:#617e6e}
.smn-tt-app :is(.smn-tt-memory-back,.smn-tt-memory-face,.smn-tt-flash-name,.smn-tt-count-next)[hidden]{display:none!important}
.smn-tt-embed-body .smn-tt-flash-picture .smn-tt-picto{max-width:min(270px,38vh)}
.smn-tt-embed-body .smn-tt-flash-picture .smn-tt-picture-emoji{font-size:min(180px,31vh)}
.smn-tt-embed-body .smn-tt-robot-grid{max-width:min(100%,62vh);margin:auto;width:100%}
@media(max-width:900px){.smn-tt-app .smn-tt-robot-layout{grid-template-columns:1fr}.smn-tt-app .smn-tt-robot-grid{width:min(100%,440px);margin:auto}.smn-tt-app .smn-tt-robot-cell{font-size:clamp(20px,5vw,40px)}}
@media(max-width:540px){.smn-tt-app .smn-tt-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.smn-tt-app .smn-tt-memory-card{padding:4px;min-height:65px;border-radius:12px}.smn-tt-app .smn-tt-count-objects{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.smn-tt-app .smn-tt-number-choices{gap:6px}.smn-tt-app .smn-tt-number-choices button{min-height:74px;padding:4px}.smn-tt-app .smn-tt-new-status{font-size:14px}.smn-tt-app .smn-tt-robot-avatar b{font-size:clamp(22px,6vw,38px)}}

/* v1.5.1: audio controls shared by web, fullscreen and standalone HTML. */
.smn-tt-app .smn-tt-audio{margin:0 18px 10px;padding:0;border:1px solid #dce8df;border-radius:14px;background:#f6faf7;color:var(--tt-ink);font-size:14px;min-width:0;max-width:100%;box-sizing:border-box}
.smn-tt-app .smn-tt-audio summary{padding:10px 14px;font-weight:750;cursor:pointer;list-style-position:inside;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.smn-tt-app .smn-tt-audio-badge{font-size:12px;font-weight:600;color:#456c5b;background:#e4f1e7;border-radius:30px;padding:3px 9px}
.smn-tt-app .smn-tt-audio-body{padding:0 14px 12px;display:grid;gap:10px}.smn-tt-app .smn-tt-audio-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px 14px;align-items:center}.smn-tt-app .smn-tt-audio-settings label{min-width:0;font-size:14px;line-height:1.45;font-weight:650;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.smn-tt-app .smn-tt-audio-settings input[type=checkbox]{width:18px;height:18px;accent-color:#18523e;margin:0;flex:0 0 auto}.smn-tt-app .smn-tt-audio-settings select{width:100%;min-width:0;max-width:100%;padding:7px;border:1px solid #d4e4d8;background:#fff;border-radius:8px;color:#243f37;font-size:14px}.smn-tt-app .smn-tt-audio-range input{width:100%;min-width:0;margin:0;accent-color:#287a5c}.smn-tt-app .smn-tt-audio-range output{margin-left:auto;font-variant-numeric:tabular-nums}.smn-tt-app .smn-tt-audio-test{display:flex;flex-wrap:wrap;gap:8px}.smn-tt-app .smn-tt-audio-status{margin:0!important;font-size:13px;line-height:1.5}.smn-tt-app .smn-tt-audio-body small{color:#536b60;font-size:12px}.smn-tt-app .smn-tt-embed-shell .smn-tt-audio{margin:4px 12px 6px}.smn-tt-app .smn-tt-audio:not([open]) .smn-tt-audio-body{display:none!important}@media(max-width:480px){.smn-tt-app .smn-tt-audio{margin:4px 8px 8px}.smn-tt-app .smn-tt-audio-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-tt-app .smn-tt-audio-select{grid-column:1/-1}.smn-tt-app .smn-tt-audio summary{font-size:13px}.smn-tt-app .smn-tt-audio-test .smn-tt-btn{white-space:normal}}
/* v1.5.2 – visual map editor and card-based coding. */
.smn-tt-app .smn-tt-map-editor{display:grid;gap:10px;min-width:0}.smn-tt-app .smn-tt-map-editor select{width:100%;max-width:100%;min-width:0;font-size:15px;padding:9px;border:1px solid #d2e3d6;border-radius:9px;background:#fff;color:#243f37}.smn-tt-app .smn-tt-map-size{display:grid;grid-template-columns:1fr 1fr;gap:10px}.smn-tt-app .smn-tt-map-size label{display:grid;gap:4px;font-size:14px;font-weight:700}.smn-tt-app .smn-tt-map-hint{font-size:14px;line-height:1.45;margin:0;color:#48695a}.smn-tt-app .smn-tt-map-editor .smn-tt-robot-palette{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.smn-tt-app .smn-tt-robot-palette button{padding:6px 3px;min-height:70px;background:#fff}.smn-tt-app .smn-tt-robot-palette button b{font-size:30px;line-height:1.05}.smn-tt-app .smn-tt-robot-palette button small{font-size:11px;line-height:1.15;text-align:center}.smn-tt-app .smn-tt-map-selected{font-size:14px;font-weight:750;color:#205b43}.smn-tt-app .smn-tt-map-tools,.smn-tt-app .smn-tt-map-directions{display:flex;gap:6px;flex-wrap:wrap}.smn-tt-app :is(.smn-tt-map-tools,.smn-tt-map-directions,.smn-tt-station) button{border:1px solid #d0e1d5;background:#fff;border-radius:8px;padding:8px;color:#245340;font-size:13px;font-weight:750;min-height:38px}.smn-tt-app .smn-tt-map-directions button{flex:1;font-size:26px}.smn-tt-app .smn-tt-map-directions button[aria-pressed=true]{background:#18523e;color:#fff}.smn-tt-app .smn-tt-robot-edit-grid button{font-size:clamp(17px,2.35vw,32px);border-radius:5px;min-width:0}.smn-tt-app .smn-tt-robot-edit-grid button sup{font-size:12px;position:absolute;bottom:1px;right:2px;top:auto}.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="A"]{background:#fce1e1;color:#b43d44!important}.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="B"]{background:#d7efdb;color:#277344!important}.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="C"]{background:#d9eafa;color:#306b9d!important}.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="E"],.smn-tt-app :is(.smn-tt-robot-cell,.smn-tt-robot-edit-grid button)[data-tile="H"]{background:#f8e2f0;color:#a23e77!important}.smn-tt-app .smn-tt-robot-advanced{border:1px solid #d5e5da;border-radius:10px;padding:10px;background:#fff}.smn-tt-app .smn-tt-robot-advanced summary,.smn-tt-app .smn-tt-robot-extra summary{cursor:pointer;font-weight:750;font-size:15px;margin-bottom:7px}.smn-tt-app .smn-tt-station{margin:8px 0;padding:8px;border:1px solid #e0ebe2;border-radius:10px}.smn-tt-app .smn-tt-station-queue,.smn-tt-app .smn-tt-station-add{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.smn-tt-app .smn-tt-station button{font-size:18px;padding:4px 7px;min-height:34px}.smn-tt-app .smn-tt-robot-v152{grid-template-columns:minmax(0,1fr);max-width:1050px;gap:15px}.smn-tt-app .smn-tt-robot-map-wrap{min-width:0}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-grid{width:min(100%,500px);margin:auto;gap:4px}.smn-tt-app .smn-tt-map-banner{display:flex;justify-content:space-between;gap:5px;max-width:500px;margin:0 auto 8px;font-size:15px;font-weight:800;color:#245340}.smn-tt-app .smn-tt-map-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 12px;font-size:13px;margin-top:8px}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-cell.is-visited[data-tile="."]{background:#d8ecd5}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-cell{font-size:clamp(20px,3.35vw,42px)}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-avatar b{font-size:clamp(13px,3vw,33px)}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-avatar em{font-size:clamp(10px,1.5vw,18px)}.smn-tt-app .smn-tt-robot-avatar.is-lit{background:#ffed97;border-color:#d3a728;box-shadow:0 0 12px #f5ce52}.smn-tt-app .smn-tt-robot-avatar i{position:absolute;font-size:13px;bottom:0;right:0;font-style:normal;color:#7454a9}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-commands{grid-template-columns:repeat(auto-fit,minmax(66px,1fr));gap:6px;margin:8px 0}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-commands button{min-height:64px;padding:6px 3px}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-commands small{font-size:11px;line-height:1.15}.smn-tt-app .smn-tt-robot-extra{border:1px solid #e0ebe2;border-radius:10px;padding:8px;margin:8px 0}.smn-tt-app .smn-tt-robot-extra small,.smn-tt-app .smn-tt-robot-queue-help{font-size:12px;line-height:1.45;color:#526b60}.smn-tt-app .smn-tt-robot-numbers{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}.smn-tt-app .smn-tt-robot-numbers button{border:1px solid #bfc9d2;background:#edf1f5;border-radius:6px;padding:5px 0;min-width:0;color:#354b60;font-size:20px;line-height:1.3}.smn-tt-app .smn-tt-robot-numbers small{display:none}.smn-tt-app .smn-tt-robot-v152 [data-kind="loop"]{background:#fff0b6!important;color:#725209!important;border-color:#e3ca74!important}.smn-tt-app .smn-tt-robot-v152 [data-kind="action"]{background:#e7f2d2!important;color:#426826!important;border-color:#c3dca2!important}.smn-tt-app .smn-tt-robot-v152 [data-kind="number"]{background:#edf1f5!important;color:#354b60!important;border-color:#c6d0da!important}.smn-tt-app .smn-tt-robot-fixed{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;font-size:24px!important;font-weight:800;background:#ffdf89;color:#60480d!important;flex:none}.smn-tt-app .smn-tt-robot-fixed[data-kind="end"]{background:#f9cccc;color:#a8323b!important}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-queue .is-active{outline:3px solid #f2aa23!important;opacity:1!important}.smn-tt-app .smn-tt-robot-controls{gap:6px}.smn-tt-app .smn-tt-robot-controls .smn-tt-btn{flex:1;white-space:normal;font-size:14px;padding:9px}.smn-tt-app .smn-tt-robot-v152 .smn-tt-new-feedback{min-height:24px;text-align:center;margin-top:8px}.smn-tt-app.smn-tt-child-mode .smn-tt-robot-v152,.smn-tt-embed-body .smn-tt-robot-v152{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}@media(max-width:760px){.smn-tt-app.smn-tt-child-mode .smn-tt-robot-v152,.smn-tt-embed-body .smn-tt-robot-v152{grid-template-columns:1fr}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-grid{max-width:100%}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-cell{font-size:clamp(15px,5vw,35px)}.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-avatar b{font-size:clamp(12px,4vw,30px)}}

.smn-tt-app .smn-tt-robot-mission{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:500px;margin:0 auto 10px;padding:10px 12px;border-radius:12px;background:#edf5e9;color:#245340;font-size:15px;font-weight:650;line-height:1.4}.smn-tt-app .smn-tt-robot-read{border:1px solid #d0e1d5;background:#fff;border-radius:8px;padding:7px;font-size:20px;line-height:1;flex:none}.smn-tt-app .smn-tt-robot-cell[data-tile="."],.smn-tt-app .smn-tt-robot-edit-grid button[data-tile="."]{background:linear-gradient(135deg,#f8faf5,#e7efe1);border:1px solid #d4e3d1}.smn-tt-app .smn-tt-robot-cell.is-visited[data-tile="."] .smn-tt-robot-dot{font-weight:900;opacity:.8;color:#408e6d;font-size:28px}.smn-tt-app .smn-tt-robot-cell.is-visited:is([data-tile="A"],[data-tile="B"],[data-tile="C"]):after{content:'✓';position:absolute;top:3px;right:4px;font-size:14px;color:#18523e;font-weight:900}
/* v1.5.3 – consistent SVG programming cards and separate programs */
.smn-tt-app .smn-tt-robot-v153{grid-template-columns:minmax(0,1fr);max-width:1320px;gap:20px;align-items:start}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-grid{width:min(100%,570px)}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-icon{width:28px;height:28px;display:block;flex:none;margin:0 auto}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 12px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button{display:grid;justify-items:center;gap:3px;min-width:0;border:1px solid #d1ded6;border-radius:12px;background:#f4f8f5;color:#23513f;padding:9px 3px;font-size:12px;font-weight:750;line-height:1.2;text-align:center;overflow-wrap:normal}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button[data-program=A]{background:#fae4e6;color:#a83a48}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button[data-program=B]{background:#e0f3e6;color:#216b45}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button[data-program=C]{background:#e0edf9;color:#225c90}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button[aria-pressed=true]{outline:3px solid currentColor;outline-offset:-3px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button.is-executing{box-shadow:0 0 0 3px #eab940}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs small{font-size:11px;font-weight:650}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{display:grid;grid-template-columns:repeat(auto-fill,minmax(55px,1fr));gap:6px;margin:0 0 12px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette button{height:66px;min-height:66px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border-radius:10px;padding:4px 2px;color:#fff!important;background:#227ba2;border-color:#227ba2;box-shadow:inset 0 -3px 0 #0002}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette button small{font-size:10px;line-height:1.13;text-align:center;font-weight:750;white-space:normal;word-break:normal;overflow-wrap:normal}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-digit{font-size:25px;font-weight:850;line-height:1}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=number]{background:#526577!important;border-color:#526577!important;color:#fff!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=loop]{background:#f4ca65!important;border-color:#d4a742!important;color:#533a08!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=action]{background:#387c57!important;border-color:#387c57!important;color:#fff!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue{min-height:64px;gap:5px;padding:8px;align-content:start}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue button{width:41px;height:46px;background:#227ba2;color:#fff!important;border-radius:8px;border:1px solid #227ba2}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue button.is-selected{outline:3px solid #243f37;outline-offset:2px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-fixed{height:46px;width:41px;border-radius:8px}.smn-tt-app .smn-tt-robot-v153 [data-track=A]{background:#fae4e6;color:#a83a48!important}.smn-tt-app .smn-tt-robot-v153 [data-track=B]{background:#e0f3e6;color:#216b45!important}.smn-tt-app .smn-tt-robot-v153 [data-track=C]{background:#e0edf9;color:#225c90!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-edit{display:flex;gap:6px;margin:9px 0;flex-wrap:wrap}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-edit button{display:flex;align-items:center;justify-content:center;min-height:40px;min-width:44px;border:1px solid #d2e1d6;border-radius:9px;background:#f5f9f5;color:#23513f;padding:5px 9px;font-weight:700;font-size:13px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-edit button:last-child{margin-left:auto}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-edit .smn-tt-code-icon{width:22px;height:22px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls{display:flex;flex-wrap:wrap;gap:6px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls button{display:flex;justify-content:center;align-items:center;gap:5px;min-height:48px;flex:1;white-space:nowrap}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls .smn-tt-code-icon{width:18px;height:18px;margin:0}
.smn-tt-app .smn-tt-robot-v153 button:disabled{opacity:.5;cursor:default}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-station{display:grid;justify-items:center;gap:2px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-station small{font-size:12px;font-weight:800}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-avatar b{width:65%;display:grid;place-items:center}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-avatar b svg{width:100%;height:auto;color:#235d77}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-avatar em svg{width:15px;height:15px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-gear svg{width:15px;height:15px;animation:smn-tt-gear-spin .8s linear infinite}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-gear.reverse svg{animation-direction:reverse}@keyframes smn-tt-gear-spin{to{transform:rotate(360deg)}}
.smn-tt-app.smn-tt-child-mode .smn-tt-robot-v153,.smn-tt-embed-body .smn-tt-robot-v153,.smn-tt-app .smn-tt-play-panel:fullscreen .smn-tt-robot-v153{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1320px}
.smn-tt-app.smn-tt-robot-page.smn-tt-child-mode .smn-tt-tool-actions-left,.smn-tt-app.smn-tt-robot-page.smn-tt-child-mode :is([data-action=export],[data-action=html],[data-action=share]),.smn-tt-app.smn-tt-robot-page.smn-tt-child-mode .smn-tt-tool-header{display:none!important}
@media(max-width:760px){.smn-tt-app.smn-tt-child-mode .smn-tt-robot-v153,.smn-tt-embed-body .smn-tt-robot-v153,.smn-tt-app .smn-tt-play-panel:fullscreen .smn-tt-robot-v153{grid-template-columns:minmax(0,1fr)}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button{font-size:11px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls button{font-size:12px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-station svg{width:20px;height:20px}}

.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{display:flex;flex-direction:column;gap:7px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:6px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number]{grid-template-columns:repeat(9,minmax(0,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number] button{min-height:40px;height:40px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number] small{display:none}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop]{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button{flex-direction:row;height:42px;min-height:42px;gap:7px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] svg{margin:0;width:23px;height:23px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette button small{font-size:11px}.smn-tt-app.smn-tt-robot-page.smn-tt-child-mode .smn-tt-audio:not([open]){display:none}.smn-tt-app.smn-tt-robot-page.smn-tt-child-mode [data-action=childmode]{background:#18523e!important;color:#fff!important}
@media(max-width:480px){.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group{grid-template-columns:repeat(auto-fit,minmax(53px,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number]{grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-digit{font-size:21px}}

/* v1.5.4 – matched loop cards; distinguish start/end by the boundary mark. */
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button{min-height:58px;height:58px;gap:10px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] .smn-tt-loop-icon{width:32px;height:32px;flex:none;margin:0;stroke-width:1.45;overflow:visible}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button small{font-size:13px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue .smn-tt-loop-icon{width:28px;height:28px;overflow:visible;stroke-width:1.4}
@media(max-width:480px){.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button{gap:5px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button small{font-size:12px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] .smn-tt-loop-icon{width:27px;height:27px}}

/* v1.6.0 lesson modes */
.smn-tt-app .smn-tt-gigo-selector{padding:16px;background:#edf5ef;border:1px solid #d6e6d9;border-radius:16px;margin-bottom:18px;display:grid;gap:10px}.smn-tt-app .smn-tt-gigo-modes{display:flex;flex-wrap:wrap;gap:8px}.smn-tt-app .smn-tt-gigo-modes button,.smn-tt-app .smn-tt-gigo-food button{flex:1;min-width:0;white-space:normal;padding:12px;border:1px solid #ceded3;border-radius:12px;background:#fff;color:#184e3c;font-weight:700;cursor:pointer}.smn-tt-app .smn-tt-gigo-modes button[aria-pressed=true],.smn-tt-app .smn-tt-gigo-modes button[data-gigo-load=demo],.smn-tt-app .smn-tt-gigo-modes button[data-food-run]{background:#18523e;color:#fff}.smn-tt-app .smn-tt-gigo-options{display:grid;gap:10px}.smn-tt-app .smn-tt-gigo-options[hidden]{display:none}.smn-tt-app .smn-tt-gigo-options p{margin:0;font-size:15px}.smn-tt-app .smn-tt-gigo-options small{font-size:12px;line-height:1.45}.smn-tt-app .smn-tt-gigo-sandwich{padding:20px;display:grid;gap:16px}.smn-tt-app .smn-tt-gigo-food{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.smn-tt-app .smn-tt-gigo-food button{font-size:clamp(28px,5vw,64px);display:grid;place-items:center;gap:5px;min-height:100px}.smn-tt-app .smn-tt-gigo-food small{font-size:14px}.smn-tt-app .smn-tt-gigo-food-queue{display:flex;flex-wrap:wrap;gap:8px;padding:15px;border:2px dashed #bdd8c8;border-radius:14px;font-size:20px}.smn-tt-app .smn-tt-gigo-food-queue span{padding:8px;background:#eef5ee;border-radius:9px}@media(max-width:600px){.smn-tt-app .smn-tt-gigo-food{grid-template-columns:repeat(2,minmax(0,1fr))}}

.smn-tt-app .smn-tt-gigo-mission{font-size:15px;margin:8px 0 0;color:#315a48;text-align:center;line-height:1.5}.smn-tt-app .smn-tt-event-sequences{margin-top:14px;border-top:1px solid #d9e5dc;padding-top:14px}.smn-tt-app [data-event-editor]{margin-top:12px;display:grid;gap:7px}.smn-tt-app [data-event-list]{display:flex;gap:5px;flex-wrap:wrap}.smn-tt-app [data-event-list] button{border:1px solid #cddcd2;background:#fff;color:#23513f;border-radius:8px;padding:7px;cursor:pointer}.smn-tt-app.smn-tt-child-mode .smn-tt-gigo-mission{font-size:16px}

/* v1.6.2 – Gigo-style cards and continuous top-view simulation */
.smn-tt-app .smn-tt-sim-grid{position:relative;isolation:isolate;overflow:hidden}
.smn-tt-app .smn-tt-sim-robot{position:absolute;z-index:5;pointer-events:none;transform:translate(-50%,-50%);display:grid;place-items:center;transition:left var(--sim-ms,0ms) linear,top var(--sim-ms,0ms) linear;filter:drop-shadow(0 2px 2px #172a3850)}
.smn-tt-app .smn-tt-sim-robot .smn-tt-sim-body{width:100%;height:100%;display:block;overflow:visible;transform-origin:50% 50%;transition:transform var(--sim-ms,0ms) ease-in-out}
.smn-tt-app .smn-tt-sim-gear-mount{visibility:hidden}.smn-tt-app .smn-tt-sim-robot.has-gear .smn-tt-sim-gear-mount{visibility:visible}
.smn-tt-app .smn-tt-sim-gear{transform-box:fill-box;transform-origin:center;transition-property:transform;transition-timing-function:linear}
.smn-tt-app .smn-tt-sim-robot .smn-tt-sim-sound{display:none;position:absolute;right:-6%;top:-4%;background:#fff;color:#276d3e;border:1px solid #40995c;border-radius:50%;font-size:clamp(14px,2vw,22px);font-weight:900;line-height:1;padding:4px;box-shadow:0 2px 4px #0002}
.smn-tt-app .smn-tt-sim-robot.is-sounding .smn-tt-sim-sound{display:block;animation:smn-tt-sim-pulse .55s ease-in-out infinite alternate}
@keyframes smn-tt-sim-pulse{from{transform:scale(.9);opacity:.75}to{transform:scale(1.2);opacity:1}}
.smn-tt-app .smn-tt-sim-status,.smn-tt-app .smn-tt-sim-speed{width:min(100%,570px);margin:8px auto 0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#234c40;font-size:14px;font-weight:750}
.smn-tt-app .smn-tt-sim-status{background:#f2f6f1;border:1px solid #d5e5d8;border-radius:10px;padding:7px 11px}.smn-tt-app .smn-tt-sim-status [data-sim-action]{font-weight:800;text-align:right}
.smn-tt-app .smn-tt-sim-speed{padding:8px 0}.smn-tt-app .smn-tt-sim-speed select{max-width:100%;flex:1;min-width:145px;border:1px solid #c9ded0;border-radius:9px;background:#fff;color:#234c40;font-size:14px;font-weight:750;padding:8px 10px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label{font-size:12px;font-weight:800;color:#44695a;margin:3px 0 5px}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=move],.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=gear]{background:#007eaa!important;border-color:#00749e!important;color:white!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=sound]{background:#3f8546!important;border-color:#38773e!important;color:white!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=light],.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=lightfx]{background:#b3d33c!important;border-color:#85a424!important;color:#294518!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=loop]{background:#ffdf19!important;border-color:#d6b71d!important;color:#504709!important}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=number]{background:#677178!important;border-color:#606970!important;color:white!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-fixed[data-kind=start]{background:#ffcb36;color:#4c692d!important}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-fixed[data-kind=end]{background:#e82f40;color:white!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette button{min-height:60px;height:auto;min-width:0;padding:5px 2px;border-radius:7px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group{grid-template-columns:repeat(auto-fill,minmax(63px,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number]{grid-template-columns:repeat(9,minmax(0,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop]{grid-template-columns:repeat(2,minmax(0,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button{min-height:48px;height:auto}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number] button{min-height:39px;height:39px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue button.is-active{opacity:1!important;outline:3px solid #f2a516!important;outline-offset:2px!important;box-shadow:0 0 0 5px #fff4ca!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{max-height:410px;overflow-y:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#b5d2be transparent}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] .smn-tt-code-icon{width:28px;height:28px;margin:0}
@media(max-width:480px){.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group{grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=number]{grid-template-columns:repeat(9,minmax(0,1fr))}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{max-height:310px}.smn-tt-app .smn-tt-sim-status,.smn-tt-app .smn-tt-sim-speed{font-size:13px}}
@media(prefers-reduced-motion:reduce){.smn-tt-app .smn-tt-sim-robot.is-sounding .smn-tt-sim-sound{animation:none}}

/* v1.6.4 Vietnamese voice playback feedback */
.smn-tt-app .smn-tt-flash-voice-status{font-size:14px;line-height:1.5;min-height:22px;text-align:center;color:#48695a;margin:8px auto 4px;max-width:620px;padding:0 10px}.smn-tt-app .smn-tt-flash-voice-status[data-error=true]{color:#a03d35;font-weight:650}.smn-tt-app .smn-tt-audio-settings label:has([data-audio=onlineVoice]){white-space:normal}

/* v1.6.5 – distinct modules, presentation controls, compact robot editor */
.smn-tt-app [data-tool-color=wheel],.smn-tt-app[data-tool-color=wheel]{--module:#176a79;--module-bg:#e8f5f7}
.smn-tt-app [data-tool-color=timer],.smn-tt-app[data-tool-color=timer]{--module:#a44f22;--module-bg:#fff1e7}
.smn-tt-app [data-tool-color=dice],.smn-tt-app[data-tool-color=dice]{--module:#6951a1;--module-bg:#f1edfb}
.smn-tt-app [data-tool-color=matching],.smn-tt-app[data-tool-color=matching]{--module:#245d9a;--module-bg:#eaf2ff}
.smn-tt-app [data-tool-color=sorting],.smn-tt-app[data-tool-color=sorting]{--module:#8b650c;--module-bg:#fff6db}
.smn-tt-app [data-tool-color=memory],.smn-tt-app[data-tool-color=memory]{--module:#994079;--module-bg:#faedf6}
.smn-tt-app [data-tool-color=counting],.smn-tt-app[data-tool-color=counting]{--module:#47672b;--module-bg:#eef6e5}
.smn-tt-app [data-tool-color=flashcards],.smn-tt-app[data-tool-color=flashcards]{--module:#a34649;--module-bg:#fceff0}
.smn-tt-app [data-tool-color=robot],.smn-tt-app[data-tool-color=robot]{--module:#176280;--module-bg:#e7f3fb}
.smn-tt-app [data-tool-color=sequence],.smn-tt-app[data-tool-color=sequence]{--module:#4e5595;--module-bg:#eeeffb}
.smn-tt-app .smn-tt-card[data-tool-color]{background:linear-gradient(145deg,var(--module-bg),#fff 85%);border-top:5px solid var(--module)}
.smn-tt-app .smn-tt-card[data-tool-color] :is(.smn-tt-card-icon,.smn-tt-card-category,.smn-tt-card-go,h3){color:var(--module)!important}
.smn-tt-app .smn-tt-card[data-tool-color] .smn-tt-card-icon,.smn-tt-app[data-tool-color] .smn-tt-tool-icon{background:var(--module-bg);color:var(--module)}
.smn-tt-app[data-tool-color] :is(.smn-tt-play-heading,.smn-tt-panel-heading){background:var(--module-bg);border-bottom:1px solid color-mix(in srgb,var(--module) 22%,white)}
.smn-tt-app[data-tool-color] .smn-tt-panel-heading{padding:10px;border-radius:12px}
.smn-tt-app[data-tool-color] :is(.smn-tt-tool-header h1,.smn-tt-play-heading h2){color:var(--module)!important}
.smn-tt-app .smn-tt-play-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.smn-tt-app :is([data-play-full],[data-action=fullscreen],[data-embed-action=full]){background:#245d9a!important;border:1px solid #245d9a!important;color:white!important;font-weight:800;min-height:40px;padding:9px 12px;border-radius:10px;white-space:normal}
.smn-tt-app [data-action=childmode]{background:#704b9d!important;border-color:#704b9d!important;color:white!important}
.smn-tt-app .smn-tt-expanded{position:fixed!important;inset:0!important;z-index:2147483000!important;max-width:none!important;width:100%!important;height:100dvh!important;min-height:0!important;overflow:auto!important;border:0!important;border-radius:0!important;background:#fff!important;padding:0!important;display:block!important}
body.smn-tt-expanded-body{overflow:hidden!important}
.smn-tt-app .smn-tt-play-panel:fullscreen .smn-tt-play-heading,.smn-tt-app .smn-tt-expanded .smn-tt-play-heading{position:sticky;top:0;z-index:5;background:var(--module-bg,#eaf4ee)}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls{width:min(100%,570px);margin:5px auto 10px;gap:6px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-run,.smn-tt-app .smn-tt-run-shortcut{background:#157447!important;color:white!important;border-color:#157447!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-step{background:#225f9d!important;color:#fff!important;border-color:#225f9d!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-stop{background:#aa3c4a!important;color:white!important;border-color:#aa3c4a!important}
.smn-tt-app .smn-tt-run-shortcut{width:100%;margin-top:8px}
.smn-tt-app .smn-tt-program-toggle{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;padding:11px 12px;margin-bottom:8px;border:1px solid #b9ccd9;border-radius:10px;background:#e7f3fb;color:#174a68;font-size:14px;font-weight:800;text-align:left}
.smn-tt-app .smn-tt-program-toggle small{margin-left:auto;font-size:12px;font-weight:700}
.smn-tt-app .smn-tt-program-content[hidden]{display:none!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family{--family:#275d84;--family-bg:#e8f3fc;border:1px solid var(--family);border-radius:9px;background:var(--family-bg);padding:0;overflow:hidden;flex:none}
.smn-tt-app .smn-tt-code-family[data-family=gear]{--family:#6051a0;--family-bg:#f0ecfa}
.smn-tt-app .smn-tt-code-family[data-family=sound]{--family:#316b48;--family-bg:#e7f4e9}
.smn-tt-app .smn-tt-code-family[data-family=light]{--family:#526818;--family-bg:#f0f6d8}
.smn-tt-app .smn-tt-code-family[data-family=lightfx]{--family:#a14b25;--family-bg:#fff0e4}
.smn-tt-app .smn-tt-code-family[data-family=loop]{--family:#826407;--family-bg:#fff5c9}
.smn-tt-app .smn-tt-code-family[data-family=number]{--family:#4d5b68;--family-bg:#edf1f5}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label{display:flex;gap:5px;align-items:center;cursor:pointer;margin:0;padding:9px 10px;color:var(--family);font-size:13px;font-weight:850;list-style:none}
.smn-tt-app .smn-tt-code-family-label::-webkit-details-marker{display:none}
.smn-tt-app .smn-tt-code-family-label small{font-size:11px;margin-left:auto;font-weight:700}
.smn-tt-app .smn-tt-code-family-label:after{content:'▾';font-size:14px}
.smn-tt-app details[open]>.smn-tt-code-family-label:after{content:'▴'}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family .smn-tt-code-group{padding:0 6px 6px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button{min-height:58px;height:auto;display:flex;flex-direction:row;gap:5px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-loop-icon{width:32px;height:32px;flex:0 0 auto;overflow:visible}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue .smn-tt-loop-icon{width:29px;height:29px}
.smn-tt-app .smn-tt-robot-map-wrap{scroll-margin-top:70px}
@media(max-width:760px){
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{max-height:none;overflow:visible}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-grid{width:min(100%,420px,calc(46dvh * var(--cols) / var(--rows, 1)));max-width:100%}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls button{min-height:44px;font-size:12px;padding:7px 4px;white-space:normal}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls .smn-tt-code-icon{width:15px;height:15px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs{margin-bottom:7px}
.smn-tt-app .smn-tt-play-tools{justify-content:flex-start}
.smn-tt-app .smn-tt-play-heading{gap:8px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=loop] button small{font-size:11px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-loop-icon{width:27px;height:27px}
}


/* v1.6.7 simplified step setup */
.smn-tt-app .smn-tt-setup-flow{display:grid;gap:12px}
.smn-tt-app .smn-tt-step-card{border:1px solid #d8e6dc;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 1px 0 #00000008}
.smn-tt-app .smn-tt-step-card>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer}
.smn-tt-app .smn-tt-step-card>summary::-webkit-details-marker{display:none}
.smn-tt-app .smn-tt-step-card>summary strong{display:block;font-size:16px;color:#204d3c}
.smn-tt-app .smn-tt-step-card>summary small{display:block;font-size:12px;color:#5d766c;line-height:1.35}
.smn-tt-app .smn-tt-step-badge{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;font-weight:800;flex:none;background:#18523e;color:#fff}
.smn-tt-app .smn-tt-step-body{padding:0 16px 16px;display:grid;gap:12px}
.smn-tt-app .smn-tt-step-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.smn-tt-app .smn-tt-step-note{background:#f8faf8;border:1px dashed #cadbd0;border-radius:10px;padding:9px 12px;font-size:13px;color:#446456}
.smn-tt-app .smn-tt-step-actions{display:flex;gap:8px;flex-wrap:wrap}
.smn-tt-app .smn-tt-step-checks{display:grid;gap:8px}
.smn-tt-app .tone-mode>summary{background:#eef6ff}.smn-tt-app .tone-mode .smn-tt-step-badge{background:#3a78c2}
.smn-tt-app .tone-map>summary{background:#eef9f2}.smn-tt-app .tone-map .smn-tt-step-badge{background:#2d8a57}
.smn-tt-app .tone-run>summary{background:#fff7e8}.smn-tt-app .tone-run .smn-tt-step-badge{background:#ca8b24}
.smn-tt-app .tone-advanced>summary{background:#f6efff}.smn-tt-app .tone-advanced .smn-tt-step-badge{background:#7d5ac7}
.smn-tt-app .tone-map .smn-tt-robot-edit-grid{margin-top:2px}
@media(max-width:760px){.smn-tt-app .smn-tt-step-grid{grid-template-columns:1fr}.smn-tt-app .smn-tt-step-card>summary{padding:12px 14px}.smn-tt-app .smn-tt-step-body{padding:0 14px 14px}}

/* v1.6.9: focused robot playback, independent main and subprogram views */
.smn-tt-app .smn-tt-robot-v153.is-running :is(.smn-tt-code-palette,.smn-tt-code-edit,.smn-tt-run-shortcut){display:none!important}
.smn-tt-app :is(.smn-tt-run-label,.smn-tt-run-sub,.smn-tt-gigo-food)[hidden]{display:none!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-run-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-weight:800;font-size:14px;color:#245340;margin:6px 0}
.smn-tt-app .smn-tt-run-label small{font-weight:650;font-size:12px;color:#516c60}
.smn-tt-app .smn-tt-run-sub{padding:9px;margin-top:8px;border:1px solid #c8d8e7;border-radius:12px;background:#f1f6fb}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-robot-queue button:disabled{opacity:1;cursor:default}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-robot-queue button.is-last-main{outline:2px dashed #946719!important;outline-offset:2px}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-code-tabs button.is-executing{outline:2px solid #bc800c;outline-offset:1px}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-program-toggle:disabled{opacity:1;cursor:default}

/* v1.6.9 — compact robot controls and focus mode */
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-header{gap:10px;margin-bottom:10px}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-icon{width:48px;height:48px;border-radius:12px;font-size:27px}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-header h1{font-size:clamp(21px,2.4vw,27px);margin:1px 0 2px!important}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-header p{font-size:13px;line-height:1.4}
.smn-tt-app.smn-tt-robot-page .smn-tt-safety{padding:6px 10px;gap:7px;margin-bottom:9px;border-radius:9px}
.smn-tt-app.smn-tt-robot-page .smn-tt-safety>span{font-size:17px}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-actions{gap:6px;padding-bottom:9px}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-actions :is(.smn-tt-tool-actions-left,.smn-tt-tool-actions-right){gap:5px}
.smn-tt-app.smn-tt-robot-page .smn-tt-tool-actions .smn-tt-btn{padding:6px 9px;min-height:36px;font-size:12px;line-height:1.25}
.smn-tt-app[data-tool-color=robot] .smn-tt-play-heading{padding:8px 12px;gap:6px}
.smn-tt-app[data-tool-color=robot] .smn-tt-play-heading h2{font-size:17px;line-height:1.25;margin:0!important}
.smn-tt-app[data-tool-color=robot] .smn-tt-play-heading .smn-tt-overline{font-size:10px;line-height:1.2}
.smn-tt-app[data-tool-color=robot] .smn-tt-audio{margin:0 10px 6px;border-radius:9px}
.smn-tt-app[data-tool-color=robot] .smn-tt-audio summary{padding:6px 10px;min-height:30px;gap:4px;font-size:12px}
.smn-tt-app[data-tool-color=robot] .smn-tt-audio-badge{padding:1px 6px;font-size:10px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-program-toggle{padding:6px 9px;margin-bottom:5px;border-radius:8px;font-size:13px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs{gap:4px;margin:0 0 6px;grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;min-height:36px;padding:4px 6px;border-radius:7px;font-size:11px;line-height:1.2}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button .smn-tt-code-icon{width:17px;height:17px;flex:none}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button small{font-size:10px;margin:0}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls{margin:4px auto 6px;gap:4px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls button{min-height:36px;padding:5px 7px;font-size:12px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-sim-status,.smn-tt-app .smn-tt-robot-v153 .smn-tt-sim-speed{margin:4px auto 0;gap:5px;font-size:12px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-sim-status{padding:4px 7px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-sim-speed{padding:2px 0}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-sim-speed select{padding:4px 7px;font-size:12px;min-height:30px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label{padding:5px 8px;font-size:12px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{gap:4px}
.smn-tt-app.smn-tt-robot-running .smn-tt-workspace{grid-template-columns:minmax(0,1fr);gap:0}
.smn-tt-app.smn-tt-robot-running .smn-tt-workspace>.smn-tt-editor:not(.smn-tt-expanded){display:none!important}
.smn-tt-app.smn-tt-robot-running .smn-tt-tool-actions-left,.smn-tt-app.smn-tt-robot-running .smn-tt-safety,.smn-tt-app.smn-tt-robot-running .smn-tt-tool-header p,.smn-tt-app.smn-tt-robot-running .smn-tt-footnote,.smn-tt-app.smn-tt-robot-running :is([data-action=export],[data-action=html],[data-action=share]){display:none!important}
.smn-tt-app.smn-tt-robot-running .smn-tt-tool-actions-right{width:auto;flex-wrap:wrap;justify-content:flex-start}
.smn-tt-app.smn-tt-robot-running .smn-tt-robot-v153{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-robot-queue{padding:5px;min-height:45px;gap:4px}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-run-sub{padding:6px;margin-top:6px}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-run-label{margin:3px 0;font-size:12px}
@media(max-width:760px){.smn-tt-app.smn-tt-robot-running .smn-tt-robot-v153{grid-template-columns:minmax(0,1fr);gap:10px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs button{min-height:40px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls button{min-height:40px}.smn-tt-app.smn-tt-robot-page .smn-tt-tool-actions .smn-tt-btn{min-height:40px}}

/* v1.7.0 — container-aware settings, compact command headers and adjustable palette */
.smn-tt-app .smn-tt-setup-flow{container-type:inline-size;min-width:0;gap:8px}
.smn-tt-app .smn-tt-setup-flow :is(.smn-tt-step-card,.smn-tt-step-body,.smn-tt-step-grid,.smn-tt-field,.smn-tt-gigo-selector,.smn-tt-gigo-options,.smn-tt-map-size){min-width:0;max-width:100%}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary{display:grid!important;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:8px;padding:10px!important;margin:0!important;position:static!important;list-style:none!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary>div{min-width:0;overflow-wrap:break-word}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary::before,.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label::before{content:none!important;display:none!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary::after,.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label::after{content:'▾'!important;display:block!important;position:static!important;inset:auto!important;transform:none!important;width:16px!important;height:auto!important;line-height:1!important;float:none!important;font-size:14px!important;text-align:center;background:none!important;border:0!important;margin:0!important;padding:0!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card[open]>summary::after,.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family[open]>.smn-tt-code-family-label::after{content:'▴'!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary strong{font-size:15px!important;line-height:1.3}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-card>summary small{font-size:12px!important;line-height:1.3}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-body{padding:10px!important;gap:9px;margin:0!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-map-editor{border:0;border-radius:0;background:#f5f9f5}
.smn-tt-app .smn-tt-setup-flow .smn-tt-robot-advanced{padding:0!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px}
.smn-tt-app .smn-tt-setup-flow .smn-tt-field{margin:0!important;gap:4px;font-size:13px!important;line-height:1.35}
.smn-tt-app .smn-tt-setup-flow :is(input:not([type=checkbox]):not([type=hidden]),select){width:100%!important;max-width:100%!important;min-width:0!important;font-size:14px!important;padding:8px!important;line-height:1.35!important;min-height:38px}
.smn-tt-app .smn-tt-setup-flow .smn-tt-gigo-selector{padding:9px!important;margin:0!important;gap:8px}
.smn-tt-app .smn-tt-setup-flow .smn-tt-gigo-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));gap:6px}
.smn-tt-app .smn-tt-setup-flow .smn-tt-gigo-modes button{font-size:13px!important;line-height:1.35!important;padding:8px 5px!important;min-height:38px;overflow-wrap:normal!important;word-break:normal!important}
.smn-tt-app .smn-tt-setup-flow .smn-tt-map-size{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.smn-tt-app .smn-tt-setup-flow :is(.smn-tt-map-hint,.smn-tt-gigo-options p,.smn-tt-step-note){font-size:13px!important;line-height:1.45!important}
@container (max-width:300px){.smn-tt-app .smn-tt-setup-flow .smn-tt-step-grid{grid-template-columns:minmax(0,1fr)}.smn-tt-app .smn-tt-setup-flow .smn-tt-gigo-modes{grid-template-columns:minmax(0,1fr)}}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette{display:flex;flex-direction:column;justify-content:flex-start;align-content:flex-start;align-items:stretch;gap:5px!important;height:auto;min-height:0;max-height:var(--smn-palette-limit,360px)!important;overflow:auto!important;padding:3px 5px 3px 3px;margin:0!important;overscroll-behavior:contain}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family{flex:0 0 auto!important;margin:0!important;min-height:0!important;max-width:100%}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label{display:grid!important;grid-template-columns:minmax(0,1fr) auto 16px;gap:9px!important;align-items:center;position:static!important;margin:0!important;padding:7px 9px!important;min-height:32px!important;list-style:none!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label span{min-width:0;overflow-wrap:break-word;font-size:13px!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family-label small{position:static!important;inset:auto!important;white-space:nowrap!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.3!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family:not([open])>.smn-tt-code-group{display:none!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-palette-resize{display:flex;align-items:center;gap:6px;margin:4px 0 9px;min-width:0}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-palette-grip{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #afc8bb;background:#f0f7f2;color:#245340;border-radius:7px;padding:5px 6px;min-height:34px;min-width:0;cursor:ns-resize;touch-action:none;user-select:none;font-size:12px!important;line-height:1.2}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-palette-grip:focus-visible{outline:2px solid #24744e;outline-offset:2px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-palette-resize button{flex:none;min-height:34px;border:1px solid #b8d0c1;border-radius:7px;background:white;color:#245340;padding:5px 8px;font-size:12px!important;line-height:1.2}
.smn-tt-app .smn-tt-robot-v153.is-running .smn-tt-palette-resize{display:none!important}
.smn-tt-app .smn-tt-sim-robot .smn-tt-sim-lamp{transform-box:fill-box;transform-origin:center;transition:r .12s ease;}
.smn-tt-app .smn-tt-sim-robot.is-lit .smn-tt-sim-lamp{r:8.2px;stroke:#fff;stroke-width:1.5}

/* v1.7.1 — map icons larger, loop arrows lighter */
.smn-tt-app .smn-tt-robot-edit-grid{padding:7px;gap:5px}
.smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-grid{gap:5px}
.smn-tt-app .smn-tt-robot-cell .smn-tt-robot-dot{font-size:1.05em}
@media(max-width:480px){
  .smn-tt-app .smn-tt-robot-palette button{min-height:66px}
  .smn-tt-app .smn-tt-robot-palette button b{font-size:28px}
  .smn-tt-app .smn-tt-robot-edit-grid button{font-size:clamp(16px,4.8vw,28px)}
  .smn-tt-app .smn-tt-robot-v152 .smn-tt-robot-cell{font-size:clamp(18px,5.4vw,38px)}
}

/* v1.8.0 – full-viewport presentation, original board overlays and conditional cards */
.smn-tt-app [hidden]{display:none!important}
.smn-tt-app .smn-tt-ready-presets{border:1px solid #c5dfcb;background:#edf7ee;border-radius:12px;padding:12px;margin-bottom:12px}.smn-tt-app .smn-tt-ready-presets small{color:#42634c;font-size:12px}
.smn-tt-app [data-free-map]{display:grid;gap:10px;min-width:0}.smn-tt-app .smn-tt-official-preview{display:block;width:100%;height:auto;object-fit:contain;border-radius:10px;margin-top:8px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family[data-family=condition]{--family:#a22d66;--family-bg:#fce7f1}
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-code-palette,.smn-tt-robot-queue) [data-kind=condition]{background:#d64c90!important;border:1px solid #a72865!important;color:#fff!important}
.smn-tt-app .smn-tt-condition-symbol{font-weight:900;font-size:clamp(12px,1.5vw,22px);line-height:1.1;display:block}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group[data-group=condition]{grid-template-columns:repeat(auto-fit,minmax(65px,1fr))}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image{background-position:center;background-size:100% 100%;background-repeat:no-repeat;gap:0!important;padding:0!important;aspect-ratio:var(--cols)/var(--rows);border-radius:5px}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image .smn-tt-robot-cell{background:transparent!important;border:.8px solid rgba(255,255,255,.14);border-radius:0;box-shadow:none;min-height:0;aspect-ratio:1}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-source-map .smn-tt-robot-cell>*{visibility:hidden}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-source-map .smn-tt-robot-cell{font-size:0;border-color:transparent}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image .smn-tt-robot-cell.is-visited{background:#7cde9e2a!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image:not(.smn-tt-source-map) .smn-tt-robot-cell[data-tile=X]{background:#413b3877!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image:not(.smn-tt-source-map) .smn-tt-robot-cell[data-tile=G]{background:#ffe9a66b!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded){width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:auto!important;background:#f8fcf8!important;display:flex!important;flex-direction:column!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-play-heading{flex:0 0 auto;padding:10px 2vw!important;position:sticky;top:0;z-index:20}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-stage{flex:1 0 auto;width:100%!important;max-width:none!important;min-height:calc(100dvh - 125px)!important;margin:0!important;padding:clamp(10px,2vw,32px)!important;overflow:visible!important;box-sizing:border-box}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-game-title{font-size:clamp(20px,2.4vw,38px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-layout{max-width:none!important;width:100%;min-height:calc(100dvh - 210px);grid-template-columns:minmax(0,1.4fr) minmax(0,.7fr);align-items:center}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-wrap{width:min(100%,70dvh,61vw)!important;max-width:none!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-label{font-size:clamp(12px,1.5vw,28px)!important;max-width:42%}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-value{font-size:clamp(28px,3.8vw,62px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-dice-layout,.smn-tt-timer-layout){min-height:calc(100dvh - 170px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-die-face{width:min(44dvh,42vw)!important;height:min(44dvh,42vw)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-die-face span{font-size:min(30dvh,28vw)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-dice-result{font-size:clamp(26px,4vw,60px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-clock{width:min(62dvh,85vw)!important;max-width:none!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-clock-bar,.smn-tt-clock-digits,.smn-tt-clock-hourglass){width:min(80vw,1200px)!important;min-height:min(50dvh,380px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-clock-time{font-size:clamp(48px,12dvh,140px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-match-layout,.smn-tt-sort-groups,.smn-tt-sequence-rows,.smn-tt-memory-grid,.smn-tt-count-objects,.smn-tt-number-choices){width:100%;max-width:none!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card{min-height:clamp(75px,12dvh,150px);flex-direction:row}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-picto-caption,.smn-tt-sort-group strong,.smn-tt-seq-item){font-size:clamp(18px,2vw,32px)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card .smn-tt-picto{max-width:min(18vw,170px);min-height:0}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-sort-items{grid-template-columns:repeat(auto-fit,minmax(min(145px,25vw),1fr))}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-sort-group{min-height:25dvh}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-memory-grid{grid-template-columns:repeat(auto-fit,minmax(min(18vw,150px),1fr))}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-memory-card{aspect-ratio:auto;height:clamp(90px,22dvh,220px)}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-memory-face,.smn-tt-count-object) .smn-tt-picto{max-width:min(20vw,160px)}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) :is(.smn-tt-memory-face,.smn-tt-count-object) .smn-tt-picture-emoji{font-size:clamp(40px,9dvh,100px)}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-flash-picture{max-width:none!important;min-height:55dvh}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-flash-picture .smn-tt-picto{width:min(45vw,48dvh);max-width:none!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-flash-picture .smn-tt-picture-emoji{font-size:min(40dvh,38vw)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-flash-picture img{max-height:44dvh;width:auto;object-fit:contain}
@media(min-width:761px){
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153,.smn-tt-embed-body .smn-tt-app .smn-tt-robot-v153{max-width:none!important;width:100%;grid-template-columns:minmax(0,1fr) minmax(230px,28%)!important;gap:clamp(8px,1.2vw,24px);align-items:start}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153.is-running,.smn-tt-embed-body .smn-tt-app .smn-tt-robot-v153.is-running{grid-template-columns:minmax(0,1fr) minmax(185px,21%)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-robot-grid,.smn-tt-embed-body .smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-grid{width:min(100%,calc(max(200px,100dvh - 260px) * var(--cols) / var(--rows,1)))!important;max-width:none!important;margin:8px auto!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 :is(.smn-tt-robot-controls,.smn-tt-sim-status,.smn-tt-sim-speed,.smn-tt-gigo-mission){width:100%!important;max-width:none!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-program{max-height:calc(100dvh - 140px);overflow-y:auto;min-width:0}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-code-palette{max-height:min(var(--smn-palette-limit,360px),45dvh)!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-code-palette button{min-height:48px!important}
}
@media(max-width:760px){.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-layout{grid-template-columns:1fr!important;min-height:0}.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-wrap{width:min(80vw,62dvh)!important}}

/* Presentation tuning after 1440 x 900 browser check */
.smn-tt-app .smn-tt-if-hint{font-size:11px;line-height:1.45;color:#7b2856;padding:0 8px 7px;margin:0!important}
.smn-tt-app .smn-tt-event-tile{display:grid;place-items:center;gap:2px}.smn-tt-app .smn-tt-event-tile small{font-size:11px;font-weight:850;line-height:1;color:#285e4d}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-emoji{font-size:clamp(30px,6.5dvh,76px)!important;max-width:22%!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-emoji img{width:clamp(42px,8dvh,90px);height:clamp(42px,8dvh,90px)}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-wheel-picked{font-size:clamp(46px,10dvh,100px)}
@media(min-width:761px){
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-layout{grid-template-columns:1fr 1fr!important;gap:14px}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card{height:clamp(74px,12dvh,112px);min-height:0;padding:5px 10px;justify-content:center;gap:12px}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card .smn-tt-picto{height:clamp(54px,10dvh,88px);width:clamp(54px,10dvh,88px);max-width:none;margin:0;min-height:0}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card .smn-tt-picture-emoji{font-size:clamp(32px,6dvh,68px)}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-match-card .smn-tt-picto-caption{flex:0 1 auto;text-align:left}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-robot-grid{width:min(100%,calc(max(200px,100dvh - 286px) * var(--cols) / var(--rows,1)))!important}
.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-sim-speed{padding:1px 0}.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-map-banner{padding:2px 0!important}
}

/* v1.8.1 – compact toolbar, illustrated presets, countdown gallery and interactive board. */
.smn-tt-app .smn-tt-actions-compact{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px!important;flex-wrap:wrap;padding-bottom:12px}
.smn-tt-app .smn-tt-actions-compact :is(.smn-tt-tool-actions-left,.smn-tt-tool-actions-right){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:auto;gap:6px!important}
.smn-tt-app .smn-tt-actions-compact .smn-tt-btn{font-size:13px;min-height:39px;padding:7px 11px;gap:5px;white-space:nowrap}
.smn-tt-app .smn-tt-action-menu{position:relative;min-width:0;margin:0;z-index:25}
.smn-tt-app .smn-tt-action-menu[open]{z-index:35}
.smn-tt-app .smn-tt-action-menu summary{list-style:none;cursor:pointer;display:flex}
.smn-tt-app .smn-tt-action-menu summary::-webkit-details-marker{display:none}
.smn-tt-app .smn-tt-action-pop{position:absolute;top:calc(100% + 5px);left:0;min-width:168px;max-width:calc(100vw - 32px);display:grid;gap:5px;background:#fff;border:1px solid #d4e4d9;border-radius:12px;padding:6px;box-shadow:0 8px 24px #143b2926;z-index:40}
.smn-tt-app .smn-tt-action-pop .smn-tt-btn{justify-content:flex-start;white-space:normal;text-align:left}
.smn-tt-app.smn-tt-child-mode .smn-tt-actions-compact .smn-tt-tool-actions-left,.smn-tt-app.smn-tt-robot-running .smn-tt-actions-compact .smn-tt-tool-actions-left{display:none!important}
@media(max-width:560px){.smn-tt-app .smn-tt-actions-compact{justify-content:flex-start!important;gap:5px!important}.smn-tt-app .smn-tt-actions-compact :is(.smn-tt-tool-actions-left,.smn-tt-tool-actions-right){display:flex;width:auto;gap:5px!important;justify-content:flex-start}.smn-tt-app .smn-tt-actions-compact .smn-tt-btn{font-size:12px;min-height:40px;padding:6px 8px}.smn-tt-app .smn-tt-action-pop{min-width:135px}}
.smn-tt-app .smn-tt-ready-presets summary{cursor:pointer;color:#24513d;margin:0 0 5px}
.smn-tt-app .smn-tt-ready-presets summary small{font-weight:400;margin-left:5px}
.smn-tt-app .smn-tt-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}
.smn-tt-app .smn-tt-preset-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:78px;min-width:0;border:1px solid #d0e3d5;border-radius:10px;background:#fff;color:#28533d;text-align:center;padding:7px 4px;line-height:1.25}
.smn-tt-app .smn-tt-preset-grid button:hover,.smn-tt-app .smn-tt-preset-grid button[aria-pressed=true]{border-color:#218661;background:#dff4e7;box-shadow:inset 0 0 0 1px #218661}
.smn-tt-app .smn-tt-preset-grid button>span{display:block;font-size:clamp(22px,2.4vw,29px);line-height:1.3;letter-spacing:-.05em;white-space:normal;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-preset-grid button small{font-size:11px;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-clock-gallery{border:1px solid #d7e7da;background:#f1f8f2;padding:10px;border-radius:12px;margin-bottom:14px}
.smn-tt-app .smn-tt-clock-decoration{font-size:clamp(40px,8vh,85px);line-height:1;display:block}
.smn-tt-app .smn-tt-clock-sun{--timer-accent:#c78217;--timer-soft:#fff2bf;border:8px solid #f9d466;box-shadow:0 0 0 5px #fff0bd}
.smn-tt-app .smn-tt-clock-cloud{background:#e1f1fb!important;border-radius:38% 42% 32% 36%!important;aspect-ratio:1.35!important;border:5px solid #b4d9ef;--timer-accent:#2875a2}
.smn-tt-app .smn-tt-clock-rainbow{background:conic-gradient(#ef8d8d,#f6c966,#a5cb76,#6cb6d8,#ad9adb,#ef8d8d)!important;padding:16px}
.smn-tt-app .smn-tt-clock-segments{background:repeating-conic-gradient(transparent 0deg 26deg,#fff 26deg 30deg),conic-gradient(var(--timer-accent) calc(var(--p)*100%),var(--timer-soft) 0)!important}
.smn-tt-app .smn-tt-clock-flip{width:min(100%,calc(var(--timer-size)*1.45))!important;background:#253b3c!important;border-radius:22px!important;aspect-ratio:1.65!important;min-height:180px}
.smn-tt-app .smn-tt-clock-flip .smn-tt-clock-inner{background:#213131!important;color:#fff;border-radius:15px;min-height:150px}
.smn-tt-app .smn-tt-clock-flip .smn-tt-clock-time{background:linear-gradient(#394f4e 0 49%,#132524 49% 51%,#304846 51%);border-radius:10px;padding:.1em .2em;color:#fff!important;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.smn-tt-app .smn-tt-clock-flip :is(.smn-tt-overline,small){color:#d1e6d8!important}
.smn-tt-app .smn-tt-clock-analog .smn-tt-clock-inner{gap:5px;padding:8px}
.smn-tt-app .smn-tt-analog-face{width:min(55%,170px);aspect-ratio:1;position:relative;border:3px solid var(--timer-accent);border-radius:50%;background:#fff;flex:none}
.smn-tt-app .smn-tt-analog-face i{position:absolute;inset:4%;transform:rotate(calc(var(--tick)*30deg));pointer-events:none}
.smn-tt-app .smn-tt-analog-face i:before{content:'';position:absolute;top:0;left:49%;width:2%;height:8%;background:var(--timer-accent);border-radius:2px}
.smn-tt-app .smn-tt-analog-face b{position:absolute;left:48%;bottom:50%;width:4%;height:40%;background:var(--timer-accent);border-radius:4px;transform-origin:50% 100%;transform:rotate(calc(var(--p)*360deg));transition:transform .3s linear}
.smn-tt-app .smn-tt-analog-face:after{content:'';position:absolute;inset:46%;background:var(--timer-accent);border-radius:50%}
.smn-tt-app .smn-tt-clock-analog .smn-tt-clock-time{font-size:clamp(25px,4vw,48px)!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell{position:relative;overflow:visible}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-object{position:absolute;right:3%;top:3%;z-index:3;display:none;align-items:center;justify-content:center;width:31%;aspect-ratio:1;max-width:42px;min-width:14px;border-radius:50%;background:#fffef1;border:1px solid #327f58;box-shadow:0 2px 4px #172d2540;font-size:clamp(10px,1.6vw,22px);line-height:1;pointer-events:none}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-source-map .smn-tt-map-object{visibility:visible;display:flex;opacity:.92}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell.is-object-active .smn-tt-map-object,.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell.is-object-done .smn-tt-map-object{display:flex;visibility:visible}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell.is-object-active .smn-tt-map-object{background:#fff4b8;animation:smn-tt-object-bounce .55s ease-in-out infinite alternate;outline:2px solid #e3a329}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell.is-object-done .smn-tt-map-object{border:2px solid #25835c}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image .smn-tt-robot-cell.is-visited{background:transparent!important}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image .smn-tt-robot-cell.is-object-active{box-shadow:inset 0 0 0 2px #edb23d!important}
@keyframes smn-tt-object-bounce{from{transform:translateY(0)}to{transform:translateY(-4px)}}
.smn-tt-app .smn-tt-sim-robot .smn-tt-sim-sound{box-sizing:border-box;width:clamp(19px,40%,44px);height:auto;aspect-ratio:1/1;padding:3px;top:2%;right:0;line-height:1;flex:none;border-radius:50%;border:1px solid #40995c}
.smn-tt-app .smn-tt-sim-robot.is-sounding .smn-tt-sim-sound{display:grid;place-items:center;animation:smn-tt-object-bounce .55s ease-in-out infinite alternate}
.smn-tt-app .smn-tt-sim-sound svg{display:block;width:100%;height:100%;aspect-ratio:1;max-width:100%;max-height:100%;flex:none}
@media(min-width:761px){.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153.is-running{grid-template-columns:minmax(0,1fr) minmax(175px,19%)!important}.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-robot-v153 .smn-tt-robot-grid{width:min(100%,calc(max(200px,100dvh - 220px) * var(--cols) / var(--rows,1)))!important}.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-clock-analog .smn-tt-clock-time{font-size:clamp(34px,5dvh,65px)!important}.smn-tt-app :is(.smn-tt-play-panel:fullscreen,.smn-tt-play-panel.smn-tt-expanded) .smn-tt-clock-flip{width:min(80vw,850px)!important}}
@media(prefers-reduced-motion:reduce){.smn-tt-app .smn-tt-robot-cell.is-object-active .smn-tt-map-object,.smn-tt-app .smn-tt-sim-robot.is-sounding .smn-tt-sim-sound{animation:none}}

.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-object.is-object-action{background:#fff;outline:2px solid #30a4bf;box-shadow:0 0 0 5px #ffffff75;animation:smn-tt-object-bounce .35s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-object.is-object-action{animation:none}}

/* v1.8.2 – compact controls, stable playback layout, physical interaction models. */
.smn-tt-app .smn-tt-actions-compact details.smn-tt-action-menu{border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0!important;min-width:0!important;width:auto!important;min-height:0!important;display:block!important;flex:0 0 auto!important}
.smn-tt-app .smn-tt-actions-compact details.smn-tt-action-menu>summary{margin:0!important;min-height:36px!important;width:auto!important;padding:6px 11px!important;border:1px solid #d1e2d8!important;box-shadow:none!important;border-radius:9px!important;background:#fff!important;color:#24513d!important;list-style:none!important;display:flex!important;gap:4px!important}
.smn-tt-app .smn-tt-actions-compact details.smn-tt-action-menu>summary::marker{content:''}.smn-tt-app .smn-tt-actions-compact details.smn-tt-action-menu>summary::after{content:none!important}
.smn-tt-app .smn-tt-demo-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:4px 0 7px;font-size:12px;color:#426052;min-width:0}.smn-tt-app .smn-tt-demo-bar button{border:1px solid #a7c6da;background:#eff7fc;color:#245f84;border-radius:8px;padding:7px 10px;min-height:34px;font-weight:800;cursor:pointer;white-space:nowrap}.smn-tt-app .smn-tt-demo-bar button[aria-pressed=true]{background:#24659c;color:#fff;border-color:#24659c}.smn-tt-app .smn-tt-demo-bar span{flex:1 1 110px;line-height:1.35}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-physical-prop{position:absolute!important;right:0;top:0;width:59%;height:66%;min-width:0!important;min-height:0!important;padding:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:4;cursor:pointer;filter:drop-shadow(0 2px 1px #17313c44);overflow:visible;line-height:1}
.smn-tt-app .smn-tt-physical-svg{width:100%;height:100%;max-height:100%;display:block;overflow:visible;flex:1 1 auto;min-height:0}.smn-tt-app .smn-tt-physical-prop>span{background:#fffef1e8;padding:2px 3px;border-radius:4px;font-size:clamp(8px,1vw,13px);color:#23443a;font-weight:800;white-space:normal;text-align:center;line-height:1.1;max-width:100%}
.smn-tt-app .smn-tt-physical-prop.is-coupled .smn-tt-physical-svg{filter:drop-shadow(0 0 3px #e9b83c)}.smn-tt-app .smn-tt-prop-gear,.smn-tt-app .smn-tt-prop-rotor{transform-box:fill-box;transform-origin:center;transition-property:transform;transition-timing-function:linear}.smn-tt-app .smn-tt-physical-prop.is-empty .smn-tt-prop-rotor{visibility:hidden}.smn-tt-app .smn-tt-physical-prop.is-complete .smn-tt-flame{opacity:0;transition:opacity .6s}.smn-tt-app .smn-tt-physical-prop.is-complete>span{background:#dff3e6;color:#145b39}.smn-tt-app .smn-tt-transfer{position:absolute;z-index:9;transform:translate(-50%,-50%);font-size:clamp(18px,3vw,42px);line-height:1;pointer-events:none;filter:drop-shadow(0 2px 2px #334d3566)}
.smn-tt-app .smn-tt-arm-left,.smn-tt-app .smn-tt-arm-right{transform-box:fill-box;transition:transform .4s ease;transform-origin:bottom center}.smn-tt-app .arms-open .smn-tt-arm-left{transform:rotate(-35deg)}.smn-tt-app .arms-open .smn-tt-arm-right{transform:rotate(35deg)}
.smn-tt-app .smn-tt-robot-v153.is-executing-program .smn-tt-robot-queue button:disabled{opacity:1;cursor:default}.smn-tt-app .smn-tt-robot-v153.is-executing-program .smn-tt-robot-queue .is-last-main{outline:2px dashed #946719!important;outline-offset:2px}.smn-tt-app .smn-tt-robot-v153.is-executing-program .smn-tt-code-tabs .is-executing{outline:2px solid #bc800c;outline-offset:1px}.smn-tt-app .smn-tt-robot-v153.is-executing-program .smn-tt-code-palette button:disabled{opacity:.72}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family:not([open]){min-height:0!important;padding-bottom:0!important}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family:not([open]) .smn-tt-code-group{display:none!important}

.smn-tt-app .smn-tt-robot-v153 .smn-tt-source-map .smn-tt-robot-cell>.smn-tt-physical-prop{visibility:visible!important}
.smn-tt-app .smn-tt-actions-compact details.smn-tt-action-menu>summary::before{content:none!important;display:none!important}

/* v1.8.3: consistent preset pictograms */
.smn-tt-app .smn-tt-preset-art{display:flex;align-items:center;justify-content:center;gap:3px;min-height:38px}.smn-tt-app .smn-tt-preset-art img{width:30px;height:30px;object-fit:contain;flex:none}.smn-tt-app .smn-tt-preset-art span{display:inline-block;line-height:1.15}

/* v1.8.4 — physical models occupy the adjacent printed bay; the robot stays centred on the command tile. */
.smn-tt-app .smn-tt-robot-v153 .smn-tt-physical-prop.smn-tt-bay-prop{left:50%!important;top:50%!important;right:auto!important;width:73%!important;height:78%!important;transform:translate(-50%,-50%);z-index:4}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-physical-prop.smn-tt-bay-prop>span{font-size:clamp(6px,.85vw,11px);padding:1px 2px;max-width:100%;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-physical-prop.smn-tt-passive-prop{width:28%!important;height:31%!important;right:1%!important;top:1%!important;z-index:3}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-physical-prop.smn-tt-passive-prop>span{display:none}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell[data-tile=X]>.smn-tt-passive-prop{width:70%!important;height:70%!important;right:15%!important;top:15%!important}
.smn-tt-app .smn-tt-robot-v153 .is-model-bay{cursor:default}

/* v1.9.0 – modular scene editor and calibrated mechanical interface */
.smn-tt-app .smn-tt-gigo-modes{display:flex;flex-wrap:wrap;gap:8px}.smn-tt-app .smn-tt-gigo-modes>button{flex:1 1 145px;min-height:48px;text-align:center}.smn-tt-design-panel,.smn-tt-free-scene{border:1px solid #d6e7dd;border-radius:14px;padding:12px;margin:0 0 12px;background:#f7faf7}.smn-tt-design-panel[hidden],.smn-tt-free-scene[hidden],.smn-tt-app [data-piece-panel][hidden],.smn-tt-app [data-object-panel][hidden],.smn-tt-app [data-surface-panel][hidden],.smn-tt-app .smn-tt-robot-palette[hidden]{display:none!important}.smn-tt-layer-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.smn-tt-layer-tabs button,.smn-tt-piece-library button{background:#fff!important;border:1px solid #c7d9cf!important;color:#23483a!important;border-radius:8px!important;padding:6px!important;cursor:pointer}.smn-tt-layer-tabs [aria-pressed=true],.smn-tt-piece-library [aria-pressed=true]{outline:2px solid #238663;outline-offset:-2px;background:#e1f1e7!important}.smn-tt-piece-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;max-height:285px;overflow:auto;padding:3px}.smn-tt-piece-library img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px}.smn-tt-piece-library small{display:block;font-size:10px;line-height:1.15;margin-top:4px}.smn-tt-app .smn-tt-scene-grid{gap:0!important;padding:0!important;overflow:hidden;border-radius:9px;background:#dce8d9}.smn-tt-app .smn-tt-scene-grid :is(.smn-tt-robot-cell,button[data-cell]){background:transparent!important;border:.8px solid rgba(255,255,255,.16)!important;border-radius:0!important;isolation:isolate;box-shadow:none;position:relative}.smn-tt-app .smn-tt-cell-skin{position:absolute;inset:0;background-size:100% 100%;background-position:center;pointer-events:none;z-index:-1;display:block}.smn-tt-app .smn-tt-scene-grid .smn-tt-robot-dot{opacity:0}.smn-tt-app .smn-tt-editor-mark{position:relative;font-size:clamp(16px,2.6vw,29px);filter:drop-shadow(0 1px 2px #fff);z-index:1}.smn-tt-app .smn-tt-editor-object{position:absolute;bottom:1px;left:2px;right:2px;background:#fffde8dd;font-size:9px;line-height:1.1;padding:2px;border-radius:3px}.smn-tt-app .smn-tt-scene-grid .smn-tt-robot-cell[data-tile=X]{box-shadow:inset 0 0 0 2px #9f776b80!important}.smn-tt-app .smn-tt-robot-cell.is-object-active{box-shadow:inset 0 0 0 2px #efb83b!important}.smn-tt-app .smn-tt-physical-prop.smn-tt-bay-prop{width:100%!important;height:100%!important;left:0!important;top:0!important;transform:none!important;display:grid;place-items:center;filter:none}.smn-tt-app .smn-tt-bay-prop .smn-tt-physical-svg{position:absolute;width:77%;height:77%;left:11.5%;top:6%;filter:drop-shadow(0 2px 1px #263e3544)}.smn-tt-app .smn-tt-bay-prop>span{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:95%;font-size:clamp(6px,.8vw,11px);z-index:2;border:1px solid #ffffff80}.smn-tt-app .smn-tt-bay-gear{position:absolute;transform:translate(-50%,-50%);overflow:visible;z-index:3;filter:drop-shadow(0 1px 1px #40305266)}.smn-tt-app .smn-tt-physical-prop.is-coupled .smn-tt-physical-svg{filter:drop-shadow(0 0 3px #e9b83c80)}.smn-tt-app .smn-tt-source-map .smn-tt-robot-cell{border-color:transparent!important}.smn-tt-app .smn-tt-scene-grid .smn-tt-robot-cell .smn-tt-map-object{background:#fff9e0cc;border-radius:50%}.smn-tt-app .smn-tt-scene-grid .smn-tt-robot-cell:has(.smn-tt-map-object)>svg,.smn-tt-app .smn-tt-scene-grid .smn-tt-robot-cell:has(.smn-tt-map-object)>.smn-tt-code-station{z-index:1}

.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-cell .smn-tt-physical-prop.smn-tt-bay-prop{left:0!important;top:0!important;right:auto!important;width:100%!important;height:100%!important;transform:none!important;max-width:none!important;max-height:none!important;}

.smn-tt-app .smn-tt-editor-prop{display:block;width:100%;height:100%;max-height:60px;overflow:visible}.smn-tt-app .smn-tt-editor-mark:has(.smn-tt-editor-prop){width:72%;height:72%;filter:none}.smn-tt-app .smn-tt-void-skin{background:#e9ede9!important}.smn-tt-app .smn-tt-custom-background[hidden]{display:none!important}

/* v1.9.1 – breathable controls, grouped vector tile library, manually assembled boards. */
.smn-tt-app .smn-tt-setup-flow .smn-tt-step-body{padding:16px!important;gap:16px!important}
.smn-tt-app .smn-tt-map-editor [data-free-map]{display:grid;gap:16px;min-width:0}
.smn-tt-app .smn-tt-map-editor [data-free-map][hidden],.smn-tt-app .smn-tt-free-presets[hidden],.smn-tt-app .smn-tt-piece-library button[hidden],.smn-tt-app .smn-tt-step-actions button[hidden]{display:none!important}
.smn-tt-app .smn-tt-map-editor :is(.smn-tt-design-panel,.smn-tt-free-scene){display:grid;gap:14px;padding:16px;margin:0;background:#f8fbf9;border:1px solid #d4e4da;border-radius:16px}
.smn-tt-app .smn-tt-map-editor :is(.smn-tt-design-panel,.smn-tt-free-scene)[hidden]{display:none!important}
.smn-tt-app .smn-tt-map-editor :is(.smn-tt-field,.smn-tt-map-size>label){display:grid!important;gap:7px!important;margin:0!important;font-size:14px!important;line-height:1.4!important;font-weight:700}
.smn-tt-app .smn-tt-map-editor :is(select,input[type=file]){min-height:46px!important;padding:10px 12px!important;margin:0!important;line-height:1.4!important}
.smn-tt-app .smn-tt-map-editor .smn-tt-step-grid,.smn-tt-app .smn-tt-map-editor .smn-tt-map-size,.smn-tt-app .smn-tt-piece-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.smn-tt-app .smn-tt-layer-tabs,.smn-tt-app .smn-tt-map-tools,.smn-tt-app .smn-tt-map-directions,.smn-tt-app .smn-tt-step-actions,.smn-tt-app .smn-tt-gigo-modes{display:flex;flex-wrap:wrap;gap:12px!important;margin:0!important;align-items:stretch}
.smn-tt-app .smn-tt-layer-tabs button,.smn-tt-app .smn-tt-map-tools button,.smn-tt-app .smn-tt-map-directions button,.smn-tt-app .smn-tt-custom-background button,.smn-tt-app .smn-tt-piece-erase{min-height:44px!important;padding:10px 16px!important;border-radius:10px!important;line-height:1.25!important;font-size:14px!important;margin:0!important;box-shadow:none!important}
.smn-tt-app .smn-tt-layer-tabs button{flex:0 1 auto;font-weight:750!important}
.smn-tt-app .smn-tt-layer-tabs button[aria-pressed=true]{background:#dff1e7!important;border-color:#29805d!important;color:#175b40!important;outline:none!important;box-shadow:inset 0 0 0 1px #29805d!important}
.smn-tt-app .smn-tt-map-editor :is([data-piece-panel],[data-object-panel]){display:grid;gap:14px}
.smn-tt-app .smn-tt-map-editor :is([data-piece-panel],[data-object-panel])[hidden]{display:none!important}
.smn-tt-app .smn-tt-piece-library{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px;max-height:405px;padding:4px;align-content:start;scrollbar-gutter:stable}
.smn-tt-app .smn-tt-piece-library button{min-width:0!important;padding:7px!important;border-radius:11px!important;display:flex;flex-direction:column;gap:7px;align-items:stretch;text-align:center;box-shadow:0 2px 4px #264c3510;min-height:0!important}
.smn-tt-app .smn-tt-piece-library button img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:5px;background:#eaf1e9;display:block;image-rendering:auto}
.smn-tt-app .smn-tt-piece-library button small{font-size:11.5px!important;line-height:1.3;min-height:29px;margin:0;font-weight:650;overflow-wrap:anywhere}
.smn-tt-app .smn-tt-piece-library button[aria-pressed=true]{background:#dff1e7!important;outline:2px solid #238663;outline-offset:-2px}
.smn-tt-app .smn-tt-piece-erase{justify-self:start;border:1px solid #d3dfd7!important;background:#fff!important;color:#315b49!important;font-weight:700}
.smn-tt-app .smn-tt-design-help,.smn-tt-app .smn-tt-map-editor :is([data-object-panel],[data-piece-panel]) p{font-size:13px!important;line-height:1.6!important;color:#416656;margin:0!important}
.smn-tt-app .smn-tt-custom-background{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center}.smn-tt-app .smn-tt-custom-background .smn-tt-field{grid-column:1/-1}.smn-tt-app .smn-tt-custom-background small{font-size:12px;color:#547467;line-height:1.4}
.smn-tt-app .smn-tt-robot-palette{gap:12px!important;margin:0!important}.smn-tt-app .smn-tt-robot-palette button{min-height:54px!important;padding:9px!important}
.smn-tt-app .smn-tt-robot-edit-grid .smn-tt-void-skin{background:repeating-linear-gradient(135deg,#f5f8f5 0 8px,#edf2ee 8px 9px)!important}
.smn-tt-app .smn-tt-scene-grid .smn-tt-cell-skin{overflow:hidden}.smn-tt-app .smn-tt-official-preview{image-rendering:auto;width:100%;height:auto;display:block;object-fit:contain;margin:10px 0 0;border-radius:7px}
.smn-tt-app .smn-tt-source-reference{margin:12px 0 0!important;padding:8px!important;border:1px solid #d8e5db!important;border-radius:8px!important;background:#fff!important}.smn-tt-app .smn-tt-source-reference summary{font-size:12px;cursor:pointer;color:#466855}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls{gap:12px!important}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-tabs{gap:8px!important}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-family{margin-bottom:8px!important}.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-group,.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue{gap:7px!important}
@media(max-width:600px){.smn-tt-app .smn-tt-setup-flow .smn-tt-step-body{padding:12px!important;gap:13px!important}.smn-tt-app .smn-tt-map-editor :is(.smn-tt-design-panel,.smn-tt-free-scene){padding:12px;gap:12px}.smn-tt-app .smn-tt-map-editor .smn-tt-step-grid{grid-template-columns:1fr}.smn-tt-app .smn-tt-piece-library{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:9px;max-height:350px}.smn-tt-app .smn-tt-layer-tabs button{flex:1 1 100px;padding:9px!important}.smn-tt-app .smn-tt-custom-background{grid-template-columns:1fr}.smn-tt-app .smn-tt-map-tools button{flex:1 1 130px}.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-controls{gap:6px!important}}

/* Keep scrollable tile cards at intrinsic height, even inside narrow setup columns. */
.smn-tt-app .smn-tt-piece-library{grid-auto-rows:max-content!important;align-items:start!important;align-content:start!important}
.smn-tt-app .smn-tt-piece-library button{height:auto!important;max-height:none!important;min-height:0!important;align-self:start!important;overflow:hidden!important}
.smn-tt-app .smn-tt-piece-library button img{flex:none!important;height:auto!important;max-height:none!important;width:100%!important;aspect-ratio:1/1!important;object-fit:contain!important}
.smn-tt-app .smn-tt-piece-library button small{flex:none!important;display:block!important;height:auto!important;white-space:normal!important}

/* v1.9.2 – softer board grid lines. */
.smn-tt-app .smn-tt-robot-v153 .smn-tt-map-image{position:relative;overflow:hidden}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-source-map{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}

/* v1.9.3 — keep each robot command token on one line, including IF/DO/ELSE. */
.smn-tt-app .smn-tt-robot-v153 :is(.smn-tt-robot-queue,.smn-tt-code-palette) .smn-tt-condition-symbol {
  display:block!important; white-space:nowrap!important; word-break:normal!important;
  overflow-wrap:normal!important; line-height:1!important; letter-spacing:0!important;
  font-size:17px!important; text-align:center!important; max-width:100%;
}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue button {
  flex:0 0 auto!important; box-sizing:border-box!important; white-space:nowrap!important;
  word-break:normal!important; overflow-wrap:normal!important;
}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue button[data-kind=condition] {
  width:41px!important; min-width:41px!important; height:46px!important;
  padding:2px!important; display:grid!important; place-items:center!important;
}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue .smn-tt-condition-symbol[data-condition=ELSE] {
  font-size:12px!important;
}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-robot-queue .smn-tt-condition-symbol:is([data-condition=AND],[data-condition=OR],[data-condition=DO],[data-condition=IF]) {
  font-size:15px!important;
}
.smn-tt-app .smn-tt-robot-v153 .smn-tt-code-palette .smn-tt-condition-symbol[data-condition=ELSE] {
  font-size:15px!important;
}
