:root{--navy:#112d66;--blue:#0b54b8;--cyan:#28c5f4;--red:#f52d59;--yellow:#ffd332;--orange:#ff8d25;--cream:#fff9e8;--paper:#fffdfa;--line:#ffc64a;--shadow:0 6px 0 rgba(87,37,19,.55),0 13px 25px #061f4d28}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:ui-rounded,"Arial Rounded MT Bold",Arial,sans-serif;color:var(--navy)}body{background:repeating-linear-gradient(135deg,#243d9e,#243d9e 35px,#2843aa 35px,#2843aa 70px)}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:4px solid #00dbe5;outline-offset:2px}button:disabled{opacity:.43;cursor:not-allowed}
.game-header{background:linear-gradient(180deg,#fa5162,#d40b48);border-bottom:5px solid #ffc82e;box-shadow:0 4px 0 #672447}.header-inner{max-width:1760px;margin:auto;min-height:71px;padding:6px clamp(10px,2vw,27px);display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;gap:9px;align-items:center;cursor:pointer;min-width:0}.brand-icon{width:44px;height:44px;display:grid;place-items:center;font-size:27px;border:2px solid #fff7b0;border-radius:13px;background:#6826bb;box-shadow:inset 0 -4px #40127b}.brand-name strong{display:block;font-size:clamp(25px,3.5vw,38px);line-height:1;letter-spacing:-1.7px;font-weight:1000;color:#ffe329;text-shadow:-2px -2px #63228e,2px -2px #63228e,-2px 2px #63228e,3px 4px #542f9d}.brand-name strong span{color:#fff}.brand-name small{display:block;margin-top:4px;color:#fff8ce;font-size:9px;letter-spacing:2px;font-weight:950}.header-actions{display:flex;gap:7px;align-items:center;flex-wrap:nowrap}.header-actions button{white-space:nowrap;flex-shrink:0}.level-pill,.top-help,.mini-btn{border:2px solid #fff5ae;border-radius:10px;min-height:40px;padding:6px 11px;font-size:13px;font-weight:950;color:#fff;box-shadow:0 3px 0 #9e3042;background:linear-gradient(#2496ec,#1761bc)}.top-help{background:linear-gradient(#f7b428,#e27504);color:#562200}.mini-btn{min-width:40px;font-size:18px;padding:5px 8px}.wrap{max-width:1760px;margin:auto;padding:13px clamp(9px,1.5vw,23px) 18px}.topline{display:flex;align-items:center;justify-content:space-between;padding:10px 15px 11px;background:#fff8e4;border:3px solid #ffcc43;border-radius:14px;box-shadow:0 4px 0 #a65315;margin-bottom:13px;gap:14px;min-height:77px}.top-title{min-width:0}.crumb{display:inline-block;background:#ffdf38;color:#78291c;padding:3px 8px;border-radius:7px;font-size:10px;letter-spacing:1px;font-weight:1000}.topline h1{font-size:clamp(20px,2.2vw,30px);letter-spacing:-.6px;margin:4px 0 2px;line-height:1.08;font-weight:1000}.topline p{font-size:clamp(11px,1vw,13px);color:#577096;margin:0;font-weight:750;line-height:1.15}.stepnav{display:flex;gap:7px;flex-shrink:0}.nav-arrow{width:36px;height:36px;border:2px solid #165bbb;color:white;font-size:24px;font-weight:900;border-radius:10px;background:linear-gradient(#54bfff,#148cda);box-shadow:0 3px 0 #0a3c85}.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(228px,20vw,310px);gap:13px;align-items:start}.workarea{min-width:0}.stage-card{background:#fff;border:5px solid #ffcd3a;border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.stage-top{min-height:40px;background:linear-gradient(#fffbea,#ffe7a5);border-bottom:3px solid #f6ae16;padding:4px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.stage-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:1000}.live-dot{height:10px;width:10px;background:#2dca5f;border:2px solid white;border-radius:99px;box-shadow:0 0 0 1px #268c46}.live-dot.active{background:#ff9328;animation:pulse .5s infinite alternate}@keyframes pulse{to{opacity:.3}}.stage-count{font-size:11px;color:#607293;font-weight:850;border-left:2px solid #ead8b9;padding-left:9px}.stage-stats{display:flex;align-items:center;gap:10px;font-weight:900;font-size:11px;color:#365da2}.time{display:inline-block;padding:5px 9px;border:1px solid #c7d5fd;border-radius:8px;background:#fff;font-variant-numeric:tabular-nums}.canvas-frame{width:100%;position:relative;background:#d7efff}.canvas-frame canvas{display:block;width:100%;height:auto;aspect-ratio:840 / 500;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none}.stage-hud{position:absolute;top:8px;left:8px;background:#ffefb8e8;border:1px solid #d6a344;border-radius:8px;color:#a14610;font-size:10px;font-weight:1000;padding:5px 7px;pointer-events:none}.zoom-btn{position:absolute;bottom:8px;right:8px;border:2px solid #82d1f5;background:#ecfbffef;border-radius:9px;color:#134a84;padding:6px 8px;font-size:11px;font-weight:900}.canvas-bottom{background:#fdf4d6;min-height:38px;border-top:3px solid #ffc42e;padding:5px 9px;display:flex;align-items:center;justify-content:space-between;gap:10px}.instruction{display:flex;gap:7px;align-items:center;color:#354b78;font-size:12px;font-weight:850}.instr-icon{background:#fff;border:1px solid #eed092;color:#ad5410;padding:4px;border-radius:6px}.hint-btn{background:linear-gradient(#fff487,#ffd024);border:2px solid #e69a18;box-shadow:0 2px #b85e10;border-radius:8px;color:#864309;font-weight:900;padding:6px 12px;white-space:nowrap;font-size:11px}.action-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#fff8e8;margin-top:10px;border-radius:14px;border:3px solid #ffc93e;padding:9px;box-shadow:0 3px 0 #9b551d}.playbtn,.secbtn,.iconbtn{height:48px;border-radius:9px;font-weight:1000;display:flex;align-items:center;justify-content:center;gap:7px;border:3px solid rgba(255,255,255,.83);color:#fff;text-shadow:0 2px 0 #0003;box-shadow:inset 0 -4px #0002,0 4px 0 #162f71;font-size:13px}.playbtn{background:linear-gradient(#56fa52,#02ad33);flex:1 1 210px;padding:5px 15px;font-size:clamp(14px,1.5vw,20px)}.playbtn span:first-child{font-size:24px}.secbtn{padding:5px 11px;background:linear-gradient(#be69ff,#8d1df3)}.secbtn.danger{background:linear-gradient(#ff7f83,#ef2b4b)}.edit-actions{display:flex;align-items:center;gap:5px;border-left:2px dashed #eabb6a;padding-left:10px}.edit-title{font-size:9px;font-weight:1000;max-width:53px;color:#8a5816;line-height:1.15}.iconbtn{min-width:44px;padding:6px;background:linear-gradient(#58dbff,#1686e8);font-size:22px}.sidebar{display:flex;flex-direction:column;gap:13px;min-width:0}.side-card{background:#fff8e8;border:4px solid #ffc22c;border-radius:15px;box-shadow:0 4px 0 #9e4d15,0 9px 0 #0b2c7c;padding:10px}.section-head{display:flex;justify-content:space-between;gap:4px;align-items:center;background:linear-gradient(#ff6178,#d92757);color:#fff;margin:-10px -10px 10px;border-bottom:3px solid #ffc433;border-radius:10px 10px 0 0;padding:10px 9px;min-height:43px}.section-head h2{margin:0;font-size:16px;letter-spacing:.3px;font-weight:1000;text-shadow:0 2px #8c1a45}.mini-label{background:#102f79;color:#fff7a0;border:1px solid #489de2;border-radius:7px;padding:4px 5px;font-size:9px;font-weight:1000}.tool-tabs{display:flex;gap:4px;margin-bottom:9px}.tool-tab{flex:1;min-width:0;border:2px solid #277fcd;border-radius:8px;font-size:10px;font-weight:1000;color:#184c90;background:linear-gradient(#c7eaff,#6dcbff);padding:7px 2px;box-shadow:0 2px 0 #1259a8}.tool-tab.active{background:linear-gradient(#fff9a8,#ffc92e);color:#84410d;border-color:#da820b;box-shadow:0 2px 0 #9c5a10}.part-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:min(56vh,545px);overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#ffbd38 #fff4cc;scrollbar-width:thin;padding:2px}.part-btn{min-width:0;min-height:76px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 1px;border:2px solid #82ccf4;border-radius:9px;background:linear-gradient(#effaff,#c7ecff);color:#0b376c;box-shadow:inset 0 2px #fff}.part-btn.chosen{border-color:#ec8f0c;background:linear-gradient(#fffba1,#ffc72b);box-shadow:0 0 0 2px #ffed7d,inset 0 2px #fff}.part-btn:hover:not(:disabled){background:linear-gradient(#fffdd1,#a8f5fe)}.part-emoji{display:flex;align-items:center;justify-content:center;height:42px;line-height:1;font-size:29px}.part-img{max-width:100%;width:55px;height:40px;object-fit:contain}.part-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:1000}.count{position:absolute;top:2px;right:2px;font-size:9px;background:#fa2d5a;color:white;border-radius:8px;padding:1px 4px;border:1px solid white;font-weight:900}.partfoot{font-size:10px;color:#506e97;line-height:1.25;margin:8px 1px}.ball-picker{border-top:2px dashed #ffc348;padding-top:9px;margin-top:9px}.picker-label{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;font-weight:1000;color:#992846;margin-bottom:6px}.tip-chip{border-radius:5px;background:#ffdf72;padding:2px 4px;color:#834411;font-size:9px}.ball-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.ball-option{min-width:0;background:#fff;border:2px solid #90d8ff;border-radius:8px;padding:4px 1px;display:flex;align-items:center;flex-direction:column;gap:3px}.ball-option.selected{background:#fff7ae;border-color:#fd8e18;box-shadow:inset 0 0 0 1px #fbd335}.ball-glyph{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#ffcc3e}.ball-img{width:29px;height:29px;object-fit:contain}.ball-name{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:clip;max-width:100%;letter-spacing:-.3px;font-weight:800;color:#204b78}.objective{background:#ecffdf;border:2px solid #c8e69e;border-radius:9px;padding:10px}.objective strong{display:block;color:#148044;font-size:12px}.objective p{margin:3px 0 0;font-size:12px;line-height:1.35;color:#42658a}.fact-row{display:flex;justify-content:space-between;gap:8px;border-top:1px dashed #e3d4af;margin-top:8px;padding-top:8px;color:#687b97;font-size:11px}.fact-row strong{color:#0a4192}.progress-card{background:#153f91;color:white}.progress-text{font-size:11px;color:#ffebb7}.progress-track{background:#082b74;height:11px;border-radius:20px;overflow:hidden;margin-top:10px}.progress-fill{height:100%;background:linear-gradient(90deg,#ff9322,#ffe335)}.progress-foot{display:flex;justify-content:space-between;gap:9px;font-size:10px;color:#fff3be;margin-top:8px;font-weight:900}.bottom-note{font-size:10px;text-align:center;color:#ffe5ac;line-height:1.3;margin-top:17px}
/* The short interactive, nonmodal tutorial is the main onboarding feature. */
.coach[hidden],.coach-target[hidden]{display:none!important}.coach{position:relative;z-index:2;display:flex;gap:11px;align-items:center;min-height:70px;padding:9px 12px;background:linear-gradient(105deg,#fff9c1,#ffe4b8);border-bottom:3px solid #ffb128}.coach-face{display:grid;place-items:center;flex-shrink:0;width:45px;height:45px;font-size:28px;background:#fff;border:3px solid #fec331;border-radius:50%}.coach-message{min-width:0;flex:1}.coach-step{font-size:10px;color:#d22b5a;letter-spacing:1px;font-weight:1000}.coach-message strong{display:block;font-size:15px;line-height:1.15;margin:2px 0 4px;color:#1a4288}.coach-message p{font-size:12px;font-weight:760;color:#5c6183;margin:0;line-height:1.3}.coach-close{align-self:start;background:white;border:2px solid #fac640;border-radius:8px;color:#995215;font-size:18px;font-weight:900;padding:2px 7px}.part-btn.tour-focus,.iconbtn.tour-focus,.playbtn.tour-focus{outline:4px solid #ffff9a;box-shadow:0 0 0 7px #ff8a00,0 0 20px 8px #fff254;animation:coachBlink .9s infinite alternate;position:relative;z-index:3}@keyframes coachBlink{to{filter:brightness(1.15);box-shadow:0 0 0 8px #ffb310,0 0 27px 10px #fff254}}.coach-target{pointer-events:none;position:absolute;z-index:3;width:12%;height:18%;border:4px dashed #ff9212;border-radius:50%;background:#ffea5070;animation:targetPulse .85s infinite alternate;box-shadow:0 0 0 4px #fff8bb99,0 0 24px #f88708}.coach-arrow{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);white-space:nowrap;border-radius:7px;background:#fff7a5;border:2px solid #ec8d17;color:#ad4300;padding:4px 7px;font-weight:1000;font-size:10px}@keyframes targetPulse{to{background:#ffea501b;box-shadow:0 0 0 13px #ffe64019}}.coach-step-success{color:#197b44}
/* dialogs */.overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:12px;background:#061747c4;z-index:50}.overlay.visible{display:flex}.modal{max-height:90vh;overflow:auto;width:min(570px,100%);padding:24px;background:#fff7df;border:5px solid #ffbf2b;border-radius:19px;box-shadow:0 7px 0 #a14b1b,0 20px 50px #0009;position:relative}.modal h2{margin:5px 0 11px;font-size:27px;color:#153b84}.modal p{color:#4b648b;font-size:13px;line-height:1.55}.close-modal{position:absolute;right:11px;top:11px;border:2px solid #ffc737;border-radius:8px;background:#f33561;color:#fff;font-size:21px;width:36px;height:36px}.eyebrow{color:#d62351;font-weight:1000;font-size:11px}.lv-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lv-card{min-height:83px;border:2px solid #1683dd;border-radius:11px;background:linear-gradient(#b5edff,#6cbeed);padding:8px 4px;color:#0a3678;display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center}.lv-card b{font-size:21px}.lv-card small{font-size:9px;font-weight:900}.lv-card .lv-stars{font-size:13px;color:#db8007}.lv-card.current{background:linear-gradient(#fff9a4,#ffcb35);border-color:#ed8509}.helpsteps{display:flex;flex-direction:column;gap:9px;margin:13px 0}.helpstep{display:flex;gap:9px;padding:8px;background:#fff;border:1px solid #f3d8a6;border-radius:10px}.helpnum{width:26px;height:26px;flex-shrink:0;background:#fbba1b;color:#713b11;border-radius:50%;display:grid;place-items:center;font-weight:1000}.helpstep strong{display:block;color:#194782;font-size:13px}.helpstep span{color:#5e6e8e;font-size:12px}.win-modal{text-align:center}.win-gear{font-size:54px}.win-stars{font-size:50px;color:#ffb10c}.win-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.win-actions .secbtn{min-width:140px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,9px);background:#ffe54b;color:#69371c;padding:12px 18px;border:3px solid #fe9324;border-radius:13px;font-weight:900;font-size:13px;box-shadow:0 6px 0 #9c4a11;pointer-events:none;opacity:0;transition:.2s;z-index:99;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1100px){.game-header .header-inner{min-height:69px}.part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1300px){.workspace{grid-template-columns:minmax(0,1fr) 295px}.part-grid{max-height:min(62vh,610px)}.wrap{padding-top:11px}}
/* iPad and phone landscape retain the tool shelf on the right. */
@media(min-width:700px) and (max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 222px;gap:8px}.part-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:55vh}.part-btn{min-height:67px}.side-card{padding:7px}.section-head{margin:-7px -7px 8px}.ball-option{padding:2px 0}.ball-glyph,.ball-img{height:25px;width:25px}.ball-name{font-size:7px}.action-row{padding:5px;gap:5px}.secbtn{padding:5px 7px}.edit-actions{padding-left:5px}.edit-title{display:none}}
/* On portrait phones, full-width canvas must win over a tiny, unusable right column. The palette becomes a compact horizontal tray immediately below. */
@media(max-width:699px) and (orientation:portrait){.game-header .header-inner{padding:5px 7px;min-height:58px}.brand-icon{height:37px;width:37px;font-size:22px}.brand-name strong{font-size:23px}.brand-name small{font-size:6px;letter-spacing:.6px}.header-actions{gap:4px}.top-help{font-size:0!important;padding:4px 5px;min-width:36px}.top-help:before{content:'✨';font-size:17px}.level-pill{font-size:10px;min-height:35px;padding:5px}.mini-btn{min-height:35px;min-width:30px;font-size:16px;padding:4px}.wrap{padding:6px}.topline{min-height:58px;padding:5px 8px;margin-bottom:7px;border-width:2px}.topline h1{font-size:19px}.topline p{font-size:10px;line-height:1.2}.crumb{font-size:9px}.nav-arrow{width:29px;height:29px;font-size:18px}.workspace{display:flex;flex-direction:column;gap:9px}.workarea,.sidebar{width:100%}.stage-card{border-width:3px;border-radius:11px}.stage-top{padding:4px 6px;min-height:29px}.stage-title{font-size:10px}.stage-count{font-size:9px}.stage-tiny{display:none}.time{padding:3px 6px;font-size:10px}.stage-hud{font-size:8px;top:4px;left:4px}.zoom-btn{font-size:8px;padding:4px 5px}.canvas-bottom{padding:4px;min-height:34px}.instruction{font-size:10px}.hint-btn{font-size:10px;padding:5px 7px}.action-row{margin-top:6px;gap:4px;padding:5px;display:grid;grid-template-columns:1.3fr .9fr .7fr;box-shadow:none;border-width:2px}.playbtn,.secbtn{font-size:10px;height:41px;min-width:0;min-height:0;padding:3px 2px;line-height:1.05;text-align:center}.playbtn span:first-child{font-size:15px}.edit-actions{grid-column:1/-1;border-left:0;border-top:1px dashed #efbe6d;justify-content:flex-end;padding:5px 0 0}.edit-title{font-size:9px;max-width:none;margin-right:auto}.iconbtn{height:34px;min-width:55px;font-size:20px}.sidebar{display:flex;flex-direction:column}.parts-card{padding:6px}.section-head{margin:-6px -6px 6px;min-height:34px;padding:7px}.section-head h2{font-size:13px}.tool-tabs{margin-bottom:6px}.tool-tab{font-size:10px;padding:5px}.part-grid{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;scroll-snap-type:x proximity;padding-bottom:6px}.part-btn{flex:0 0 73px;min-height:72px;scroll-snap-align:start}.part-emoji{height:39px}.part-img{width:51px;height:37px}.partfoot{font-size:10px;margin:4px 1px}.ball-picker{padding-top:5px;margin-top:5px}.ball-options{grid-template-columns:repeat(5,1fr)}.info-card,.progress-card{display:none}.coach{min-height:64px;padding:5px 7px;gap:6px}.coach-face{height:37px;width:37px;font-size:22px}.coach-step{font-size:8px}.coach-message strong{font-size:12px}.coach-message p{font-size:10px}.coach-close{font-size:14px}.bottom-note{font-size:9px}.modal{padding:15px}.lv-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-height:500px) and (orientation:landscape){.game-header .header-inner{min-height:46px;padding:2px 8px}.brand-icon{height:32px;width:32px;font-size:18px}.brand-name strong{font-size:23px}.brand-name small{font-size:7px}.level-pill,.top-help,.mini-btn{min-height:31px;padding:3px 6px;font-size:10px}.wrap{padding:4px 7px}.topline{min-height:44px;margin-bottom:5px;padding:4px 10px}.topline h1{font-size:17px}.topline p{font-size:10px}.crumb{font-size:8px}.workspace{grid-template-columns:minmax(0,1fr) 190px;gap:7px}.stage-card{border-width:3px}.stage-top{min-height:27px;padding:3px 6px}.stage-tiny{display:none}.canvas-bottom{min-height:26px;padding:3px 6px}.instruction{font-size:10px}.action-row{margin-top:4px;padding:3px;gap:3px}.playbtn,.secbtn,.iconbtn{height:33px;font-size:10px;padding:2px 5px}.playbtn span:first-child{font-size:14px}.edit-title{display:none}.part-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:48vh}.part-btn{min-height:60px}.part-emoji{height:30px}.part-img{height:29px}.ball-picker{display:none}.info-card,.progress-card{display:none}.coach{min-height:48px;padding:4px}.coach-face{width:33px;height:33px;font-size:20px}.coach-message strong{font-size:11px}.coach-message p{font-size:9px}.bottom-note{display:none}}

.snap-switch{border:2px solid #82c9f2;border-radius:8px;background:#e6f9ff;color:#14538f;padding:5px 7px;font-size:10px;font-weight:1000;white-space:nowrap}
@media(max-width:699px) and (orientation:portrait){.snap-switch{font-size:9px;padding:3px 4px}}
@media(max-height:500px) and (orientation:landscape){.snap-switch{padding:2px 4px;font-size:9px}}

/* Make the game title readable instead of truncating it on portrait phones. */
@media(max-width:699px) and (orientation:portrait){
 .game-header .header-inner{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:5px 8px 6px}
 .game-header .brand{width:100%;justify-content:center}
 .game-header .brand-name strong{font-size:28px}
 .game-header .brand-name small{font-size:8px;letter-spacing:1.3px}
 .game-header .header-actions{width:100%;justify-content:center}
 .game-header .level-pill{flex:1;max-width:190px}
 .game-header .top-help{font-size:10px!important;flex:1;max-width:140px}
 .game-header .top-help:before{content:none}
}

/* WACKADOODLE 4.0: category-first searchable toolbox. Large playfield stays dominant. */
.tool-tabs{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.tool-tab{flex:0 1 auto;font-size:11px!important;padding:6px 8px!important;white-space:nowrap}
.tool-searchbar{display:flex;align-items:center;gap:5px;background:#fffef3;border:2px solid #f6bd37;border-radius:10px;padding:4px 7px;margin:7px 0}
.tool-searchbar input{outline:none;border:none;background:transparent;min-width:0;flex:1;font:800 12px ui-rounded,Arial,sans-serif;color:#144783}
.tool-searchbar input::placeholder{color:#8c91ad;font-weight:700}
.tool-searchbar input:focus{outline:none}
.tool-searchbar:focus-within{border-color:#ff3f7a;box-shadow:0 0 0 2px #ffb4d4}
#toolSearchClear{border:0;background:#e2f4ff;border-radius:7px;color:#154e96;font-size:18px;min-width:24px;height:26px}
.tool-info{display:flex;gap:7px;align-items:center;min-height:53px;border:2px solid #f5cd67;background:#fff6d3;border-radius:10px;padding:6px;margin-bottom:7px;color:#113d83}
.tool-info-icon{font-size:26px;flex-shrink:0}.tool-info strong{font-size:12px;display:block}.tool-info small{font-size:10px;display:block;line-height:1.25;margin-top:2px}
.tool-group-tip{font-size:10px;color:#6e6d9c;text-align:center;margin:5px 0 0}
.part-grid{scrollbar-gutter:stable}
.part-btn:active{transform:translateY(2px)}
.part-emoji .tool-emoji{font-size:30px}
@media (min-width:1100px){.part-grid{max-height:min(50vh,445px)}.sidebar .parts-card{padding-bottom:10px}}
@media(max-width:699px) and (orientation:portrait){
 .tool-info{min-height:37px;padding:3px 6px}.tool-info-icon{font-size:18px}.tool-info strong{font-size:10px}.tool-info small{font-size:9px}
 .tool-searchbar{margin:4px 0}.part-grid{max-height:none;max-width:100%;overflow-x:auto;flex-wrap:nowrap}
 .part-btn{flex:0 0 79px}.tool-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .tool-tab{font-size:10px!important;padding:5px!important;flex:0 0 auto}
 .tool-group-tip{display:none}
}
@media(max-height:500px) and (orientation:landscape){.tool-info{display:none}.tool-searchbar{margin:3px 0;padding:2px 4px}.tool-tab{font-size:9px!important;padding:3px 4px!important}.part-grid{max-height:38vh}.tool-group-tip{display:none}}

.empty-tools{font-size:11px;color:#973858;padding:8px;grid-column:1/-1;text-align:center}
.idea-presets[hidden]{display:none}.idea-presets{margin:9px 0 5px;border:2px solid #ffc638;border-radius:9px;background:#fffbe7;padding:6px}
.idea-presets summary{font-size:11px;font-weight:1000;color:#814213;cursor:pointer}
.idea-presets .demo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-top:7px}
.idea-presets button{border:1px solid #f2ac29;border-radius:7px;background:#fff;padding:7px 3px;font-size:10px;font-weight:900;color:#154a91}
.idea-presets p{font-size:10px;color:#704e20;margin:5px 0 0}
@media(max-width:699px) and (orientation:portrait){.idea-presets{margin:5px 0}}
