:root{font-family:system-ui,sans-serif;color:#112743;background:#eef5fc;--navy:#08254e;--blue:#075bbb;--line:#c9dbee;--white:#fff}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit}
button{cursor:pointer;color:inherit;border:1px solid var(--line);border-radius:.55rem;background:#eaf3fc;padding:.6rem .75rem;font-weight:650}
button:hover{filter:brightness(.94)}
:focus-visible{outline:3px solid #e8a316;outline-offset:2px}
h1,h2,p{margin:0} h2{font-size:1.12rem} p{line-height:1.45}
.top,footer{background:var(--navy);color:white}
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.4rem}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:white;flex-shrink:0}
.brand strong{font-size:clamp(1.05rem,2vw,1.8rem);letter-spacing:.02em}
.brand small{display:block;font-style:italic}
.mark{color:#75d5ff;font-size:2.7rem;line-height:1}
.stages{display:flex;list-style:none;justify-content:center;gap:clamp(.15rem,1.2vw,1rem);margin:0;padding:0;overflow:auto}
.stages button,.profile{background:none;border:0;color:white}
.stages button{padding:.2rem;font-size:.83rem;white-space:nowrap}
.stages span,.profile span{display:grid;place-items:center;margin:0 auto .3rem;border-radius:50%;background:#abc2da;color:#0b2b53;width:2rem;height:2rem}
.stages .done span{background:#259162;color:white}
.stages [aria-current] span{background:#f5fbff;box-shadow:0 0 0 3px #23a1ec}
.profile{font-size:.85rem}
.layout{flex:1;display:grid;grid-template-columns:13rem minmax(0,1fr) minmax(15rem,20rem)}
.sidebar{background:linear-gradient(150deg,#12386a,#061d40);color:white;padding:.65rem}
.side-group{margin:.75rem 0 .25rem;padding-left:.45rem;color:#c0d8f3;font-size:.77rem;text-transform:uppercase}
.sidebar button{display:block;text-align:left;background:none;color:white;border:0;width:100%;font-size:.86rem;padding:.48rem}
.sidebar button:hover,.sidebar .active{background:#0861be}
main,.right{padding:.8rem;min-width:0}
.right{padding-left:0}
.hero{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-radius:.75rem;padding:1.1rem;color:white;background:radial-gradient(ellipse at 85% 140%,#147c92 0%,transparent 60%),linear-gradient(112deg,#092747,#154e52 70%,#276342);min-height:6.4rem}
.hero h1{font-size:clamp(1.3rem,2.3vw,2rem);line-height:1.1;margin-bottom:.35rem}
.quote{font-style:italic;text-align:right;font-size:.9rem}
.tabs,.tracking-tabs,.skills,.prompt{display:flex;gap:.4rem}
.tabs{overflow:auto;margin:.65rem 0 .45rem}
.tabs button{white-space:nowrap;font-size:.84rem}
.primary,.selected{background:var(--blue);color:white;border-color:var(--blue)}
.card{background:#f9fcff;border:1px solid var(--line);box-shadow:0 2px 6px #18487516;border-radius:.75rem;padding:.85rem;margin-bottom:.65rem}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.project-name{font-size:1.15rem;color:#064d99;font-weight:750;margin:.25rem 0}
.metrics,.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin-top:.65rem}
.metric,.product{border-radius:.65rem;background:#dceeff;padding:.65rem;text-align:center}
.metric strong,.product .icon{display:block;font-size:1.45rem}
.metric:nth-child(2),.product:nth-child(2){background:#d4f6e3}
.metric:nth-child(3),.product:nth-child(5){background:#ffead5}
.metric:nth-child(4){background:#ffeecc}
.product{min-height:6rem}
.product small{display:block;font-weight:450}
.product:nth-child(3),.product:nth-child(8){background:#e9dfff}
.product:nth-child(4),.product:nth-child(6){background:#cff5f5}
.product:nth-child(7){background:#fbd9ec}
.hint{background:#eae8fb;border-radius:.35rem;padding:.36rem .55rem;margin:.4rem 0}
fieldset{border:0;padding:0;margin:0 0 .55rem;min-width:0}
.skills{flex-wrap:wrap}
.skills label{display:flex;align-items:center;gap:.25rem;background:#eaf4fc;border-radius:.35rem;padding:.3rem .42rem;font-size:.88rem}
.prompt input{flex:1;min-width:0}
input,textarea,select{color:inherit;background:white;border:1px solid #9cb6cf;border-radius:.45rem;padding:.55rem}
.guidance{padding-top:.7rem}
.tracking h2{background:linear-gradient(100deg,#0a3267,#1159a4);color:white;padding:.7rem .8rem;margin:-.85rem -.85rem .6rem;border-radius:.7rem .7rem 0 0}
.tracking-tabs button{flex:1;padding:.45rem .2rem;font-size:.8rem}
#tracking-panel{margin:.7rem 0}
.status-title{font-weight:750;margin-top:.65rem}
.record{display:flex;align-items:center;gap:.55rem;padding:.45rem 0;border-bottom:1px solid #e0eaf3}
.record span:first-child{font-size:1.05rem}
.record small{display:block;color:#4a6078}
.wide{width:100%}
.defense{background:linear-gradient(125deg,#10366a,#14255d);color:white;border-radius:.75rem;padding:.9rem}
.defense h2{color:#ffdc67}
.defense p{margin:.35rem 0 .65rem}
.defense button{background:#ffcb46;border-color:#ffcb46;color:#34260a}
footer{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;gap:.65rem;font-size:.82rem}
footer button{background:#133966;color:white;padding:.25rem .6rem}
dialog{width:min(39rem,calc(100% - 2rem));max-height:85vh;border:1px solid var(--line);border-radius:.8rem;color:inherit;padding:1rem}
dialog::backdrop{background:#04152bb3}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.8rem}
.editor{display:grid;gap:.65rem;margin-top:.75rem}
.editor label{display:grid;gap:.3rem}
.editor input,.editor select,.editor textarea{width:100%}
.editor button{justify-self:start}
.file-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--line);padding:.5rem 0;overflow-wrap:anywhere}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
progress{width:100%;accent-color:var(--blue)}
@media(max-width:1150px){.layout{grid-template-columns:11rem minmax(0,1fr)}.right{grid-column:2;padding:.1rem .8rem .8rem;display:grid;grid-template-columns:1fr 1fr;gap:.65rem;align-items:start}.sidebar{grid-row:span 2}.top{flex-wrap:wrap}.stages{order:3;width:100%;justify-content:space-between}.profile b{display:none}}
@media(max-width:700px){.layout{display:block}.sidebar{overflow:auto;padding:.35rem}.sidebar nav{display:flex;align-items:center;width:max-content}.sidebar button{white-space:nowrap;width:auto}.side-group{display:none}.right{display:block;padding:.8rem}.tracking{margin-bottom:.65rem}.quote,footer span:nth-child(2){display:none}.metrics,.products{grid-template-columns:repeat(2,minmax(0,1fr))}.card-head,.prompt{flex-wrap:wrap}.prompt input{min-width:12rem}}
