/* NPC INTELLECT 2.7: responsive control geometry, indigo callouts, subtle AI visuals */
:root{--npc-ai-ink:#101b35;--npc-ai-indigo:#4f46e5;--npc-ai-lilac:#818cf8}
body.npc-intellect-page #studentForm.grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:16px!important;align-items:end!important}
body.npc-intellect-page #studentForm.grid>label{min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;line-height:1.3!important}
body.npc-intellect-page #studentForm.grid>label :is(input,select){box-sizing:border-box!important;width:100%!important;height:54px!important;min-height:54px!important;margin:0!important;padding:10px 14px!important;border-radius:13px!important}
body.npc-intellect-page #studentForm.grid>.actions{display:flex!important;align-items:flex-end!important;justify-content:stretch!important;min-width:0!important;margin:0!important;padding:0!important}
body.npc-intellect-page #studentForm.grid>.actions button{box-sizing:border-box!important;width:100%!important;height:54px!important;min-height:54px!important;margin:0!important;padding:10px 12px!important;white-space:nowrap!important;border-radius:13px!important}
body.npc-intellect-form .field>.callout,body.npc-intellect-form .callout{background:#eef2ff!important;background-image:linear-gradient(115deg,#eef2ff,#f8f9ff)!important;border:1px solid #a5b4fc!important;color:#101b35!important;box-shadow:none!important}
body.npc-intellect-form .field>.callout *,body.npc-intellect-form .callout *{color:#101b35!important}
body.npc-intellect-form .field>.callout:before{content:'✦';color:#4f46e5!important;margin-right:7px}
body.npc-intellect-page .npc-ai-ambient{position:fixed;right:-130px;top:22vh;width:280px;height:280px;pointer-events:none;z-index:0;opacity:.08;border:1px solid #6366f1;border-radius:50%;box-shadow:0 0 0 32px #6366f112,0 0 0 75px #6366f108;animation:npc-ai-float 14s ease-in-out infinite alternate}
body.npc-intellect-page .npc-ai-ambient:before,body.npc-intellect-page .npc-ai-ambient:after{content:'';position:absolute;inset:38px;border:1px dashed #6366f1;border-radius:50%;animation:npc-ai-spin 24s linear infinite}
body.npc-intellect-page .npc-ai-ambient:after{inset:85px;border-style:solid;animation-direction:reverse}
@keyframes npc-ai-float{from{transform:translateY(-18px) scale(.95)}to{transform:translateY(24px) scale(1.04)}}
@keyframes npc-ai-spin{to{transform:rotate(360deg)}}
body.npc-intellect-page .npc-v26-network{gap:9px!important;border-color:#6d76a5!important;background:#111c35!important;box-shadow:0 6px 20px #101b3650!important}
body.npc-intellect-page .npc-v26-network:before{content:'✦';font-size:14px;color:#a5b4fc;animation:npc-ai-spark 4s ease-in-out infinite}
@keyframes npc-ai-spark{0%,100%{opacity:.55;transform:rotate(0deg)}50%{opacity:1;transform:rotate(35deg)}}
body.npc-intellect-page :is(button,.btn):not(:disabled):hover{box-shadow:0 7px 18px #4338ca25!important;transform:translateY(-1px)}
body.npc-intellect-page :is(button,.btn):not(:disabled):active{transform:translateY(0) scale(.985)!important}
body.npc-intellect-page :is(input,select,textarea):focus-visible{outline:2px solid #818cf8!important;outline-offset:2px!important}
@media(max-width:1200px){body.npc-intellect-page #studentForm.grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.npc-intellect-page #studentForm.grid>.actions{grid-column:1/-1!important;justify-content:flex-end!important}body.npc-intellect-page #studentForm.grid>.actions button{width:min(100%,230px)!important}}
@media(max-width:640px){body.npc-intellect-page #studentForm.grid{grid-template-columns:minmax(0,1fr)!important}body.npc-intellect-page #studentForm.grid>.actions{grid-column:auto!important}body.npc-intellect-page #studentForm.grid>.actions button{width:100%!important}body.npc-intellect-page .npc-ai-ambient{display:none}}
@media(prefers-reduced-motion:reduce){body.npc-intellect-page .npc-ai-ambient,body.npc-intellect-page .npc-ai-ambient:before,body.npc-intellect-page .npc-ai-ambient:after,body.npc-intellect-page .npc-v26-network:before{animation:none!important}}
@media print{body.npc-intellect-page .npc-ai-ambient{display:none!important}}
