/* KAVYNT Pilot Command Center — approved design system */
:root{--kp-bg:#020d1a;--kp-panel:#071a2e;--kp-panel2:#0b2745;--kp-line:#24425f;--kp-gold:#e7b85a;--kp-gold2:#f3d18a;--kp-text:#f4f7fb;--kp-muted:#aab9ca;--kp-blue:#4b9df2;--kp-green:#5bdfae;color-scheme:dark}
*{box-sizing:border-box}
html{background:var(--kp-bg)!important}
body{background:radial-gradient(circle at 78% -15%,rgba(34,79,119,.42),transparent 42rem),linear-gradient(145deg,#020a14,#06182b 58%,#020d1a) fixed!important;color:var(--kp-text)!important;min-height:100vh;-webkit-font-smoothing:antialiased}
header{background:rgba(2,13,26,.96)!important;border-color:var(--kp-line)!important;color:#fff!important}
h1,h2,h3,h4,legend,summary,label,strong{color:#fff!important}
p,li,small,.muted{color:var(--kp-muted)!important}
a{color:var(--kp-gold2)!important}
main{background:transparent!important}
.card,.gate-card,.stat,.item,.auth-card,.path-card,.security{
 background:linear-gradient(145deg,rgba(11,39,69,.96),rgba(5,23,42,.98))!important;
 color:var(--kp-text)!important;border:1px solid var(--kp-line)!important;
 box-shadow:0 16px 38px rgba(0,0,0,.2)!important
}
.card,.gate-card,.auth-card,.path-card{border-radius:12px!important}
.notice{border-left:3px solid var(--kp-gold)!important}
input,select,textarea,fieldset{background:#041426!important;color:#fff!important;border-color:#31516f!important}
input::placeholder,textarea::placeholder{color:#7f94a9!important}
button,.button,.btn,input[type=submit]{background:linear-gradient(135deg,var(--kp-gold2),#dca544)!important;color:#061426!important;border:1px solid var(--kp-gold2)!important;font-weight:800!important;box-shadow:0 8px 20px rgba(220,165,68,.18)!important}
button.secondary,.button.secondary,.tab-button{background:#071a2e!important;color:#fff!important;border-color:#355979!important;box-shadow:none!important}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.05)}
button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid rgba(231,184,90,.3)!important;outline-offset:2px!important}
.tag,.badge{color:var(--kp-gold2)!important;background:rgba(231,184,90,.11)!important;border-color:rgba(231,184,90,.36)!important}
.charge,.action-item,.billing-state{background:rgba(4,20,38,.72)!important;border-color:var(--kp-line)!important}
.billing-state.approved{border-left-color:var(--kp-green)!important}.billing-state.disputed{border-left-color:#ef7474!important}
table{background:var(--kp-panel)!important;color:#fff!important}thead{background:var(--kp-panel2)!important}th,td,tr{border-color:var(--kp-line)!important}
#status.error,.status.error{color:#ff9393!important}.status.good{color:var(--kp-green)!important}
footer{background:#020a14!important;color:#91a5ba!important;border-color:var(--kp-line)!important}

/* Pilot workspace shell */
body.pilot-command header{position:fixed!important;inset:0 auto 0 0;width:245px;padding:0!important;z-index:20;border-right:1px solid var(--kp-line)!important;border-bottom:0!important}
body.pilot-command header>div{height:100%;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:26px 18px!important;gap:10px!important}
body.pilot-command header h1{font-size:1.15rem!important;letter-spacing:.15em!important;padding:0 10px 24px;margin:0 0 12px!important;border-bottom:1px solid var(--kp-line);color:#fff!important}
body.pilot-command .pilot-mark{color:var(--kp-gold)!important}
body.pilot-command .pilot-nav{display:grid;gap:6px}
body.pilot-command .pilot-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:7px;text-decoration:none;color:#dce7f1!important}
body.pilot-command .pilot-nav a:hover,body.pilot-command .pilot-nav a.active{background:linear-gradient(90deg,#164877,#0b2948)!important;border-left:3px solid var(--kp-gold);color:#fff!important}
body.pilot-command #identity{font-size:.78rem;color:var(--kp-muted);overflow-wrap:anywhere;margin-top:auto}
body.pilot-command header>div>a:not(.pilot-nav a){text-decoration:none;padding:9px 10px}
body.pilot-command #signOut{width:100%;margin:8px 0 0!important}
body.pilot-command main{max-width:1500px!important;margin:0 0 0 245px!important;padding:32px 3vw 70px!important}
body.pilot-command main:before{content:"Pilot Command Center";display:block;color:#fff;font-size:clamp(1.8rem,3vw,2.8rem);font-weight:800;letter-spacing:-.035em;margin:0 0 24px}
body.pilot-command .card{padding:22px!important;margin-bottom:16px!important}
body.pilot-command .grid{gap:14px!important}
body.pilot-command details>summary{font-size:1.05rem;padding:3px 0}
body.pilot-command #workspace>.card:first-child{border-top:2px solid var(--kp-gold)!important}
body.pilot-command #actionCenter{border-left:3px solid var(--kp-gold)!important}

/* Sign-in screen */
body.portal-command header{border-bottom:1px solid rgba(231,184,90,.24)!important}
body.portal-command .auth-card{border-color:rgba(231,184,90,.42)!important;box-shadow:0 28px 65px rgba(0,0,0,.38)!important}
body.portal-command .intro h1{color:#fff!important}body.portal-command .feature{color:var(--kp-muted)!important}
body.portal-command .feature-icon{background:var(--kp-gold)!important;color:#061426!important}
body.portal-command .paths{border-color:var(--kp-line)!important}

/* Admin */
body.admin-command .bar{background:#020d1a!important;border-color:var(--kp-line)!important}
body.admin-command .brand{color:var(--kp-gold)!important}
body.admin-command .readiness-grid{gap:12px!important}

@media(max-width:820px){
 body.pilot-command header{position:static!important;width:auto!important;border-right:0!important;border-bottom:1px solid var(--kp-line)!important}
 body.pilot-command header>div{height:auto;display:flex!important;flex-direction:row!important;align-items:center!important;padding:15px 16px!important;gap:9px!important}
 body.pilot-command header h1{padding:0!important;margin:0 auto 0 0!important;border:0;font-size:.95rem!important}
 body.pilot-command .pilot-nav{display:none}
 body.pilot-command #identity{display:none}
 body.pilot-command header>div>a:not(.pilot-nav a){display:none}
 body.pilot-command #signOut{width:auto;margin:0!important;padding:9px 12px!important}
 body.pilot-command main{margin:0!important;padding:24px 13px 50px!important}
 body.pilot-command main:before{font-size:1.75rem}
}

/* Contrast correction: KAVYNT platform identity */
body.portal-command .brand{color:#f3d18a!important;font-weight:900!important;text-shadow:0 1px 16px rgba(231,184,90,.18)}
body.portal-command .company{color:#ffffff!important;font-weight:800!important;opacity:1!important}
body.portal-command .tagline{color:#dce7f1!important;font-weight:600!important;opacity:1!important}
body.portal-command .badge{color:#f3d18a!important;font-weight:900!important;opacity:1!important;letter-spacing:.12em}

/* Keep portal surfaces consistent with the approved deep-blue theme. */
body.portal-command .intro{
 background:linear-gradient(145deg,#0b2745,#05172a)!important;
 color:var(--kp-text)!important;border-color:var(--kp-line)!important;
 box-shadow:0 16px 38px rgba(0,0,0,.2)!important
}
body.portal-command .auth-tabs{background:#041426!important}
body.portal-command .tab-button.active{
 background:var(--kp-gold)!important;color:#061426!important;
 border-color:var(--kp-gold2)!important
}
body.portal-command .status.error{background:#381c2b!important;color:#ffc2c2!important}
body.portal-command .status.good{background:#0b352e!important;color:#8cf0c8!important}
body.portal-command .status.info{background:#102e50!important;color:#d2e6ff!important}
