/* ==== NEO — "PLASMA FORGE" theme layer (2026-11-18) ====
   Loaded after style.css. Every restyle is scoped to html.neo, so taking that class off
   (the NEO / CLASSIC switch in the drawing's status bar) brings the old look back at once.
   New parts (status bar, command palette) are not scoped: they look the same in both themes. */

html.neo{
  --canvas:#04060b; --surface-soft:#080c13; --surface-card:#0f1520; --surface-elevated:#151d2b; --hairline:#27344a;
  --body:#b4c0d2; --body-strong:#e3ebf7; --muted:#7385a0;
  --accent-steel:#3aa0ff; --accent-teal:#1fd3bd;
  --neo-a:#39d6ff; --neo-b:#8b6cff; --neo-c:#ffb547;
  --neo-grad:linear-gradient(100deg,#39d6ff 0%,#6aa5ff 52%,#9d7bff 100%);
  --neo-line:rgba(148,190,255,.13); --neo-line-2:rgba(148,190,255,.26);
  --neo-display:'Chakra Petch','Space Grotesk','Kanit',sans-serif;
  --neo-ease:cubic-bezier(.2,.8,.2,1);
  scrollbar-color:rgba(120,160,220,.34) transparent;
}
html.neo body{-webkit-font-smoothing:antialiased;}
html.neo ::selection{background:rgba(57,214,255,.32); color:#fff;}
html.neo select option{background:#0d131d; color:#e8f1ff;}

/* ---- living background: aurora + engineering grid + a lamp that follows the cursor ---- */
.neo-bg{display:none;}
html.neo .neo-bg{display:block; position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; background:
  radial-gradient(1200px 700px at 12% -10%, rgba(57,214,255,.10), transparent 60%),
  radial-gradient(1000px 700px at 96% 4%, rgba(139,108,255,.10), transparent 62%),
  radial-gradient(900px 600px at 50% 112%, rgba(255,181,71,.055), transparent 60%), #04060b;}
.neo-bg i{position:absolute; display:block; border-radius:50%; will-change:transform;}
.neo-bg .ng{inset:0; border-radius:0; background-image:
  linear-gradient(rgba(148,190,255,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(148,190,255,.06) 1px,transparent 1px),
  linear-gradient(rgba(148,190,255,.028) 1px,transparent 1px), linear-gradient(90deg,rgba(148,190,255,.028) 1px,transparent 1px);
  background-size:120px 120px,120px 120px,24px 24px,24px 24px;
  -webkit-mask-image:radial-gradient(120% 95% at 50% 0%,#000 20%,transparent 88%); mask-image:radial-gradient(120% 95% at 50% 0%,#000 20%,transparent 88%);}
.neo-bg .n1{width:46vw; height:46vw; left:-12vw; top:-18vw; background:radial-gradient(circle,rgba(57,214,255,.20),transparent 66%); animation:neoDrift1 46s ease-in-out infinite alternate;}
.neo-bg .n2{width:42vw; height:42vw; right:-12vw; top:6vh; background:radial-gradient(circle,rgba(139,108,255,.19),transparent 66%); animation:neoDrift2 58s ease-in-out infinite alternate;}
.neo-bg .n3{width:38vw; height:38vw; left:30vw; bottom:-24vw; background:radial-gradient(circle,rgba(255,181,71,.10),transparent 66%); animation:neoDrift3 64s ease-in-out infinite alternate;}
.neo-bg .nl{width:680px; height:680px; left:-340px; top:-340px; opacity:0; transition:opacity .5s;
  background:radial-gradient(circle,rgba(57,214,255,.17),rgba(139,108,255,.07) 38%,transparent 68%);}
.neo-bg.lit .nl{opacity:1;}
@keyframes neoDrift1{to{transform:translate3d(9vw,7vh,0) scale(1.12);}}
@keyframes neoDrift2{to{transform:translate3d(-8vw,10vh,0) scale(.9);}}
@keyframes neoDrift3{to{transform:translate3d(-10vw,-6vh,0) scale(1.15);}}

/* ---- energy line under the tool bar ---- */
html.neo .accent-stripe{height:3px; margin:11px 0 18px; position:relative; overflow:hidden;
  background:linear-gradient(90deg,transparent,var(--neo-line-2) 10%,var(--neo-line-2) 90%,transparent) center/100% 1px no-repeat;}
html.neo .accent-stripe::after{content:''; position:absolute; top:0; left:0; width:220px; height:3px; border-radius:3px;
  background:linear-gradient(90deg,transparent,#39d6ff 35%,#fff 50%,#9d7bff 65%,transparent); animation:neoBeamX 7.5s cubic-bezier(.6,0,.4,1) infinite;}
@keyframes neoBeamX{0%{transform:translateX(-240px); opacity:0;} 8%{opacity:1;} 86%{opacity:1;} 100%{transform:translateX(100vw); opacity:0;}}

/* ---- first paint after the gate opens: the two columns rise in ---- */
html.neo body:not(.ag-locked) .grid > *{animation:neoRise .75s var(--neo-ease) backwards;}
html.neo body:not(.ag-locked) .grid > :nth-child(2){animation-delay:.09s;}
@keyframes neoRise{from{opacity:0; transform:translateY(18px) scale(.992);}}

/* ---- favourite tool chips (top) + category strip (right) ---- */
html.neo .tp-fav, html.neo .tp-fav-add{border-radius:16px;}
html.neo .tp-fav:not(.active), html.neo .tp-fav-add{background:linear-gradient(180deg,rgba(22,31,46,.80),rgba(9,13,21,.84)); border-color:var(--neo-line-2);}
html.neo .tp-fav:not(.active):hover, html.neo .tp-fav-add:hover{border-color:#4fc3f7;}
html.neo .tp-fav .tool-icon{margin-bottom:-6px;}   /* the rendered tools are taller than the old drawings */
html.neo .tp-fav.active{box-shadow:0 0 0 1px rgba(57,214,255,.35), inset 0 -2px 0 #39d6ff, 0 14px 34px -16px rgba(57,214,255,.75);}
html.neo .tp-fav-name, html.neo .tp-tab-name, html.neo .tp-head-text b, html.neo .tool-chip-label{font-family:var(--neo-display);}
html.neo .tp-tab-no{background:rgba(57,214,255,.13); color:#9fe6ff;}
html.neo .tp-tab.cur .tp-tab-no{background:var(--neo-grad); color:#04121c;}
@media (min-width:701px){
  html.neo .tp-strip{border-radius:20px 0 0 20px; background:linear-gradient(180deg,rgba(17,24,36,.92),rgba(7,10,16,.94));
    box-shadow:-18px 20px 50px -24px rgba(0,0,0,.95), inset 1px 0 0 var(--neo-line-2), inset 0 1px 0 var(--neo-line), inset 0 -1px 0 var(--neo-line);}
}
html.neo .tp-panel{background:linear-gradient(180deg,#121a27,#070a10); border-color:var(--neo-line-2);}

/* ---- control panel ---- */
html.neo .panel{background:linear-gradient(180deg,rgba(19,26,38,.86),rgba(8,12,19,.91)); border-color:var(--neo-line-2); border-radius:20px;
  box-shadow:0 34px 70px -34px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);}
html.neo body.cp-folded .cp-dock > .panel{background:linear-gradient(180deg,#131a26,#080c13);}
html.neo body.cp-folded .cp-rail{background:linear-gradient(180deg,rgba(19,26,38,.9),rgba(8,12,19,.93)); border-color:var(--neo-line-2); border-radius:16px;}
html.neo body.cp-folded .cp-design{border-radius:16px;}
html.neo #cpPanel{counter-reset:neo-sec;}
html.neo .cp-head-title{font-family:var(--neo-display); font-size:14px; color:var(--body-strong);}
html.neo .cp-hbtn, html.neo .tp-hbtn{border-radius:10px;}

/* section heads: numbered capsules instead of the three-colour underline */
html.neo .panel h2{counter-increment:neo-sec; justify-content:flex-start; gap:10px; margin:16px -8px 12px; padding:9px 12px;
  font:600 13px/1.3 var(--neo-display); letter-spacing:1.3px; border-radius:12px; border:1px solid var(--neo-line);
  background:linear-gradient(90deg,rgba(57,214,255,.12),rgba(139,108,255,.05) 55%,rgba(255,255,255,.012));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05); transition:border-color .2s, background .2s, color .15s;}
html.neo .panel h2::before{content:counter(neo-sec,decimal-leading-zero); flex-shrink:0; padding:4px 6px; border-radius:6px;
  font:700 10.5px/1 'JetBrains Mono',monospace; letter-spacing:.5px; color:#04121c; background:var(--neo-grad); box-shadow:0 0 14px -2px rgba(57,214,255,.7);}
html.neo .panel h2::after{display:none;}
html.neo .panel h2 > :last-child, html.neo #cpPanel h2.pe-h .pe-chev{margin-left:auto;}
html.neo #cpPanel h2.pe-h{border-radius:12px;}
html.neo #cpPanel h2.pe-h:hover{border-color:rgba(57,214,255,.5); color:#fff;}
html.neo #cpPanel h2.pe-h.pe-closed{background:rgba(255,255,255,.02);}
html.neo #cpPanel h2.pe-h.pe-closed::before{background:rgba(148,190,255,.16); color:#9fb6d6; box-shadow:none;}

/* fields: instrument read-outs */
html.neo .field label{color:#a9b8cc;}
html.neo .field input[type=number], html.neo .field input[type=text], html.neo .step-row input, html.neo .step-corner select, html.neo .step-corner input{
  background:rgba(4,7,12,.62); border-radius:10px; caret-color:var(--neo-a); transition:border-color .18s ease, box-shadow .22s ease, background .2s ease;}
html.neo .field input[type=number]:hover, html.neo .field input[type=text]:hover, html.neo .step-row input:hover{background:rgba(10,16,26,.8);}
html.neo #cpPanel select{border-radius:10px !important; cursor:pointer; background-color:#0d131d; color:var(--on-dark); border:1px solid var(--hairline); padding:6px 8px; font-family:'Kanit',sans-serif;}
html.neo .field input:focus, html.neo .step-row input:focus, html.neo #cpPanel select:focus{outline:none; border-color:var(--neo-a) !important;
  box-shadow:0 0 0 3px rgba(57,214,255,.14), 0 0 24px -6px rgba(57,214,255,.75);}
html.neo .field input.warn{border-color:var(--accent-amber);}
html.neo .field input.err, html.neo .step-row input.err{border-color:var(--danger); box-shadow:0 0 0 2px rgba(239,83,80,.2);}
html.neo .stepper button, html.neo .step-row .rm{border-radius:9px;}
html.neo .addstep-btn{border-radius:12px; border-color:var(--neo-line-2); color:#cfe9ff; font-family:var(--neo-display); transition:background .2s, border-color .2s, box-shadow .2s;}
html.neo .addstep-btn:hover{background:rgba(57,214,255,.08); border-color:var(--neo-a); box-shadow:0 0 22px -8px rgba(57,214,255,.7);}

/* check boxes become switches */
html.neo #cpPanel input[type=checkbox]{-webkit-appearance:none; appearance:none; width:36px !important; height:20px !important; flex-shrink:0; margin:0 2px;
  position:relative; vertical-align:middle; border-radius:20px; cursor:pointer; background:#070b12; border:1px solid var(--neo-line-2);
  transition:background .25s, border-color .25s, box-shadow .25s;}
html.neo #cpPanel input[type=checkbox]::before{content:''; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#6f819c;
  transition:transform .26s cubic-bezier(.3,1.5,.5,1), background .2s, box-shadow .2s;}
html.neo #cpPanel input[type=checkbox]:hover{border-color:rgba(57,214,255,.6);}
html.neo #cpPanel input[type=checkbox]:checked{background:linear-gradient(90deg,rgba(57,214,255,.5),rgba(139,108,255,.5)); border-color:rgba(57,214,255,.85); box-shadow:0 0 14px -3px rgba(57,214,255,.8);}
html.neo #cpPanel input[type=checkbox]:checked::before{transform:translateX(16px); background:#fff; box-shadow:0 0 8px rgba(57,214,255,.95);}
html.neo #cpPanel input[type=checkbox]:focus-visible{outline:2px solid var(--neo-a); outline-offset:2px;}
html.neo #cpPanel input[type=checkbox]:disabled{opacity:.4; cursor:not-allowed;}

/* panel action buttons */
html.neo .panel-actions .act-btn{border-radius:11px; background:rgba(255,255,255,.035); border-color:var(--neo-line-2); transition:background .2s, border-color .2s, box-shadow .2s, transform .15s;}
html.neo .panel-actions .act-btn:hover:not(:disabled){background:rgba(57,214,255,.09); border-color:rgba(57,214,255,.65); box-shadow:0 0 20px -8px rgba(57,214,255,.75);}
html.neo .panel-actions .act-btn:active:not(:disabled){transform:scale(.97);}

/* ---- drawing panel ---- */
html.neo .drawing-panel{background:linear-gradient(180deg,rgba(17,23,34,.86),rgba(7,10,16,.93)); border-color:var(--neo-line-2); border-radius:20px;
  box-shadow:0 34px 70px -34px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);}
html.neo .drawing-toolbar{background:linear-gradient(180deg,rgba(255,255,255,.035),transparent); border-bottom-color:var(--neo-line); padding:14px 16px;}
html.neo .drawing-toolbar select{border-radius:12px !important; background-color:#0a0f18 !important; border-color:var(--neo-line-2) !important;
  font-family:var(--neo-display) !important; letter-spacing:.4px; cursor:pointer; transition:border-color .2s, box-shadow .2s;}
html.neo .drawing-toolbar select:hover, html.neo .drawing-toolbar select:focus{outline:none; border-color:var(--neo-a) !important;
  box-shadow:0 0 0 3px rgba(57,214,255,.13), 0 0 24px -6px rgba(57,214,255,.7);}
html.neo .toolbar-divider{background:linear-gradient(180deg,transparent,var(--neo-line-2),transparent);}
html.neo .color-toggle, html.neo .dw-btn{border-radius:12px;}

/* buttons: glass, a light sweep on hover; the main export glows */
html.neo .dl-btn{font-family:var(--neo-display); border-radius:12px; border-color:var(--neo-line-2); color:#dbe7f6;
  background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.16) 50%,transparent 58%) 130% 0/260% 100% no-repeat, rgba(255,255,255,.035);
  transition:background-position .7s var(--neo-ease), border-color .2s, box-shadow .25s, color .2s, transform .15s;}
html.neo .dl-btn:hover{background-position:-30% 0; background-color:rgba(57,214,255,.09); color:#fff; border-color:rgba(57,214,255,.7);
  box-shadow:0 0 0 1px rgba(57,214,255,.18), 0 10px 26px -12px rgba(57,214,255,.8);}
html.neo .dl-btn:active{transform:translateY(1px) scale(.98);}
html.neo .dl-btn.primary{color:#04121c; border-color:transparent;
  background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.55) 50%,transparent 58%) 130% 0/260% 100% no-repeat, var(--neo-grad);
  box-shadow:0 10px 28px -10px rgba(57,214,255,.85), inset 0 1px 0 rgba(255,255,255,.55);}
html.neo .dl-btn.primary:hover{background-position:-30% 0; color:#04121c; border-color:transparent;
  box-shadow:0 0 0 1px rgba(255,255,255,.35), 0 14px 36px -10px rgba(57,214,255,1), inset 0 1px 0 rgba(255,255,255,.6);}

/* the sheet floats on a lit stage */
html.neo .canvas-area{position:relative; padding:14px 22px 20px;
  background:radial-gradient(110% 80% at 50% 0%,rgba(57,214,255,.075),transparent 62%), rgba(3,5,9,.5);}
html.neo svg#drawing{border-radius:10px; box-shadow:0 0 0 1px rgba(148,190,255,.2), 0 36px 80px -34px #000, 0 0 90px -34px rgba(57,214,255,.5);}

/* sheet tabs: capsules */
html.neo .sheet-modes{gap:7px; margin-top:16px;}
html.neo .sheet-modes button{border-radius:999px; border-color:var(--neo-line-2); background:rgba(255,255,255,.03); color:#b9c7da; font-family:var(--neo-display);
  transition:background .2s, border-color .2s, color .2s, box-shadow .25s, transform .15s;}
html.neo .sheet-modes button:hover{border-color:rgba(57,214,255,.7); color:#fff; background:rgba(57,214,255,.08);}
html.neo .sheet-modes button:active{transform:scale(.97);}
html.neo .sheet-modes button.on{background:var(--neo-grad); color:#04121c; border-color:transparent; font-weight:600;
  box-shadow:0 8px 24px -10px rgba(57,214,255,.9), inset 0 1px 0 rgba(255,255,255,.5);}
html.neo .sheet-modes .sm-sep{background:linear-gradient(180deg,transparent,var(--neo-line-2),transparent);}

/* ---- status bar over the drawing (both themes) ---- */
.neo-hudbar{container-type:inline-size; display:flex; align-items:center; gap:10px; min-height:30px; margin:0 0 10px; font:500 11px/1 'JetBrains Mono',monospace; letter-spacing:1.2px; color:#7f93af;}
.neo-live{display:inline-flex; align-items:center; gap:7px; height:26px; padding:0 10px; border-radius:999px; border:1px solid rgba(148,190,255,.2); background:rgba(6,10,16,.6);}
.neo-live i{width:7px; height:7px; border-radius:50%; background:#2ee6a6; box-shadow:0 0 8px #2ee6a6;}
.neo-live b{font-weight:700; color:#bfeedd;}
.neo-live.hit i{animation:neoHit .7s ease-out;}
@keyframes neoHit{0%{transform:scale(2.4); background:#fff; box-shadow:0 0 18px #39d6ff;} 100%{transform:none;}}
.neo-hud-type{font:600 12px/1 'Chakra Petch','Space Grotesk',sans-serif; letter-spacing:2px; color:#cfe9ff; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;}
.neo-hud-sp{flex:1 1 0; min-width:0;}
.neo-live, .neo-kbtn, .neo-tbtn{flex-shrink:0; white-space:nowrap;}
@container (max-width:560px){ .neo-kbtn kbd, .neo-hud-type{display:none;} }
@container (max-width:400px){ .neo-live-t, .neo-kbtn span{display:none;} }
.neo-kbtn, .neo-tbtn{display:inline-flex; align-items:center; gap:8px; height:28px; padding:0 10px; border-radius:999px; cursor:pointer;
  border:1px solid rgba(148,190,255,.24); background:rgba(10,15,24,.7); color:#b9c9de; font:400 12.5px/1 'Kanit',sans-serif; letter-spacing:.2px;
  transition:border-color .2s, color .2s, box-shadow .25s, background .2s;}
.neo-kbtn:hover, .neo-tbtn:hover{border-color:#39d6ff; color:#fff; background:rgba(57,214,255,.1); box-shadow:0 0 22px -8px rgba(57,214,255,.9);}
.neo-kbtn:focus-visible, .neo-tbtn:focus-visible{outline:2px solid #39d6ff; outline-offset:2px;}
.neo-kbtn kbd, .neo-pal kbd{font:600 10px/1 'JetBrains Mono',monospace; padding:3px 5px; border-radius:5px; border:1px solid rgba(148,190,255,.28); background:rgba(148,190,255,.08); color:#a9c3e4;}
.neo-tbtn{font:600 10.5px/1 'JetBrains Mono',monospace; letter-spacing:1.4px; gap:7px;}
.neo-tbtn span{opacity:.4; transition:opacity .2s, color .2s;}
.neo-tbtn i{position:relative; width:26px; height:14px; border-radius:14px; background:rgba(148,190,255,.18); border:1px solid rgba(148,190,255,.3);}
.neo-tbtn i::after{content:''; position:absolute; top:1px; left:1px; width:10px; height:10px; border-radius:50%; background:#9fb6d6; transform:translateX(12px); transition:transform .25s cubic-bezier(.3,1.5,.5,1), background .2s;}
.neo-tbtn span:last-child{opacity:1; color:#fff;}
html.neo .neo-tbtn span:last-child{opacity:.4; color:inherit;}
html.neo .neo-tbtn span:first-child{opacity:1; color:#7fe3ff;}
html.neo .neo-tbtn i::after{transform:none; background:#39d6ff; box-shadow:0 0 8px #39d6ff;}

/* corner brackets + scan beam on the sheet (NEO only) */
.neo-hud{display:none;}
html.neo .neo-hud{display:block; position:absolute; pointer-events:none; z-index:2;}
.neo-hud b{position:absolute; width:20px; height:20px; border:2px solid #39d6ff; filter:drop-shadow(0 0 6px rgba(57,214,255,.8)); opacity:.9;}
.neo-hud b:nth-child(1){top:-7px; left:-7px; border-right:0; border-bottom:0; border-radius:6px 0 0 0;}
.neo-hud b:nth-child(2){top:-7px; right:-7px; border-left:0; border-bottom:0; border-radius:0 6px 0 0;}
.neo-hud b:nth-child(3){bottom:-7px; left:-7px; border-right:0; border-top:0; border-radius:0 0 0 6px;}
.neo-hud b:nth-child(4){bottom:-7px; right:-7px; border-left:0; border-top:0; border-radius:0 0 6px 0;}
.neo-hud u{position:absolute; inset:0; overflow:hidden; border-radius:10px;}
.neo-hud u::after{content:''; position:absolute; top:0; bottom:0; left:0; width:160px; opacity:0;
  background:linear-gradient(90deg,transparent,rgba(57,214,255,.10) 60%,rgba(120,220,255,.42) 96%,#eaffff 100%);}
.neo-hud.scan u::after{animation:neoScan .95s cubic-bezier(.5,0,.3,1);}
@keyframes neoScan{0%{transform:translateX(-170px); opacity:1;} 85%{opacity:1;} 100%{transform:translateX(var(--neo-w,1400px)); opacity:0;}}

/* ---- command palette (Ctrl+K) ---- */
.neo-pal{position:fixed; inset:0; z-index:9000; display:none; align-items:flex-start; justify-content:center; padding:11vh 16px 0;
  background:rgba(2,4,8,.6); -webkit-backdrop-filter:blur(10px) saturate(140%); backdrop-filter:blur(10px) saturate(140%);}
.neo-pal.on{display:flex; animation:neoFade .16s ease;}
.neo-pal-box{width:min(700px,100%); max-height:74vh; display:flex; flex-direction:column; overflow:hidden; border-radius:22px;
  background:linear-gradient(180deg,rgba(21,29,43,.97),rgba(8,12,19,.985)); border:1px solid rgba(148,190,255,.26);
  box-shadow:0 40px 120px -20px #000, 0 0 0 1px rgba(57,214,255,.08), 0 0 110px -30px rgba(57,214,255,.55); animation:neoPop .24s cubic-bezier(.2,.9,.3,1.15);}
.neo-pal-in{display:flex; align-items:center; gap:12px; padding:17px 20px; border-bottom:1px solid rgba(148,190,255,.14); color:#39d6ff;}
.neo-pal-in input{flex:1; min-width:0; background:none; border:0; outline:0; color:#fff; font:500 19px/1.3 'Chakra Petch','Kanit',sans-serif; caret-color:#39d6ff;}
.neo-pal-in input::placeholder{color:#5f7592;}
.neo-pal-list{flex:1; overflow-y:auto; padding:6px 8px 10px; scrollbar-width:thin; scrollbar-color:rgba(120,160,220,.34) transparent;}
.neo-pal-g{padding:12px 12px 6px; font:600 10.5px/1 'JetBrains Mono',monospace; letter-spacing:2.2px; color:#6f86a6;}
.neo-pal-i{display:flex; align-items:center; gap:12px; width:100%; padding:7px 12px; border-radius:12px; border:1px solid transparent; background:none;
  color:#d5e2f3; text-align:left; cursor:pointer; font:500 15px/1.25 'Chakra Petch','Kanit',sans-serif; letter-spacing:.3px;}
.neo-pal-i .ic{width:100px; height:44px; flex-shrink:0; display:grid; place-items:center; color:#8fb4dc;}
.neo-pal-i .ic svg{display:block; max-width:100%; max-height:100%;}
.neo-pal-i .ic .tool-icon{width:100px; height:44px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.6));}
.neo-pal-i .tx{flex:1; min-width:0;}
.neo-pal-i small{display:block; margin-top:2px; font:300 12px/1.2 'Kanit',sans-serif; letter-spacing:0; color:#7f93af;}
.neo-pal-i .k{flex-shrink:0; font:500 10px/1 'JetBrains Mono',monospace; letter-spacing:1.4px; color:#5f7592;}
.neo-pal-i.cur .k{color:#2ee6a6;}
.neo-pal-i.sel{background:linear-gradient(90deg,rgba(57,214,255,.17),rgba(139,108,255,.08)); border-color:rgba(57,214,255,.5); color:#fff; box-shadow:0 0 26px -10px rgba(57,214,255,.85);}
.neo-pal-none{padding:34px 12px; text-align:center; font:300 14px 'Kanit',sans-serif; color:#6f86a6;}
.neo-pal-foot{display:flex; align-items:center; gap:16px; padding:10px 18px; border-top:1px solid rgba(148,190,255,.12); font:300 11.5px/1 'Kanit',sans-serif; color:#6f86a6;}
.neo-pal-foot span{display:inline-flex; align-items:center; gap:6px;}
@keyframes neoFade{from{opacity:0;}}
@keyframes neoPop{from{opacity:0; transform:translateY(-14px) scale(.97);}}

@media (max-width:700px){ .neo-kbtn kbd, .neo-hud-type{display:none;} html.neo .canvas-area{padding:10px 10px 14px;} .neo-pal{padding-top:6vh;} }
@media (prefers-reduced-motion:reduce){
  .neo-bg i, html.neo .accent-stripe::after, html.neo body:not(.ag-locked) .grid > *, .neo-hud.scan u::after, .neo-live.hit i, .neo-pal.on, .neo-pal-box{animation:none !important;}
}
@media print{ .neo-bg, .neo-hudbar, .neo-hud, .neo-pal{display:none !important;} }
