:root {
  --navy:#142c31; --deep:#102125; --green:#166654; --mint:#dcece4; --paper:#f6f7f0;
  --white:#fff; --ink:#172d30; --muted:#526762; --line:#d9e2d9; --gold:#e5be67;
  font: 16px/1.5 Inter, "Segoe UI", sans-serif;
  color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box }
body { margin:0 }
button,input,textarea,select { font:inherit }
a { color:var(--green) }
a:hover { text-decoration:underline }
button,a,input,select,textarea { outline-offset:4px }
button { cursor:pointer }
button:disabled { cursor:wait; opacity:.65 }
[hidden] { display:none!important }
h1,h2,h3,p { margin:0 }
h1,h2 { letter-spacing:-.045em; line-height:1.12 }
h1 { font-size:clamp(2.25rem,5vw,4rem) }
h2 { font-size:clamp(1.55rem,3.5vw,2.3rem) }
h3 { font-size:1.1rem }
small,.muted { color:var(--muted) }
.logo { display:inline-grid; place-items:center; padding:.35rem; width:3rem; aspect-ratio:1; background:var(--gold); color:var(--deep); border-radius:.8rem; font:700 1.25rem Georgia,serif }
.brand { display:flex; gap:.75rem; align-items:center; font-size:.95rem; font-weight:750; line-height:1.2 }
.eyebrow { font-size:.73rem; font-weight:750; text-transform:uppercase; letter-spacing:.15em }
.login { min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr }
.login-art { position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:space-between; gap:4rem; min-height:100%; padding:clamp(2rem,6vw,6rem); background:var(--deep); color:white }
.login-art .eyebrow,.hero .eyebrow { color:var(--gold) }
.login-art h1 { position:relative; margin:.55rem 0 1rem; font-family:Georgia,serif; font-weight:400; max-width:12ch }
.login-art p { position:relative; color:#c5d5ca; max-width:33ch }
.login-art .brand,.login-art .eyebrow { position:relative; z-index:1 }
.orbit { position:absolute; right:-25vw; bottom:-30vw; width:64vw; aspect-ratio:1; border:1px solid #45645b; border-radius:50%; box-shadow:0 0 0 32px #26433d,0 0 0 33px #45645b,0 0 0 65px #213b36,0 0 0 66px #45645b; background:radial-gradient(circle at 25% 25%,#315549,transparent 55%) }
.login-panel { align-self:center; width:min(100%, 36rem); padding:clamp(1.25rem,6vw,5rem); margin-inline:auto }
.login-panel h2 { margin-bottom:.65rem }
.switcher { display:grid; grid-template-columns:repeat(3,1fr); gap:.25rem; padding:.25rem; margin:1.5rem 0; background:#e8ede4; border-radius:.65rem }
.switcher a { text-align:center; padding:.5rem; text-decoration:none; color:var(--ink); border-radius:.45rem }
.switcher [aria-current] { background:white; box-shadow:0 1px 4px #142c311a; color:var(--green); font-weight:700 }
form,.stack { display:grid; gap:.85rem }
label { display:grid; gap:.3rem; font-size:.9rem; font-weight:650 }
input,select,textarea { width:100%; padding:.63rem .72rem; color:var(--ink); border:1px solid #b9c9bf; border-radius:.55rem; background:#fff }
textarea { min-height:6rem; resize:vertical }
.primary,.secondary,.link-button { display:inline-block; width:fit-content; border-radius:.55rem; padding:.6rem .94rem; font-weight:700; text-decoration:none }
.primary { border:1px solid var(--green); color:white; background:var(--green) }
.primary:hover { background:#105141 }
.secondary { color:var(--green); background:white; border:1px solid #b9c9bf }
.secondary:hover { background:#eef5ed }
.link-button { color:var(--green); background:none; border:none; padding:.35rem .15rem }
.demo { margin-top:1rem }
.shell { max-width:1280px; margin:auto; padding:0 2rem 3rem }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.25rem 0 }
.profile { display:flex; gap:1rem; align-items:center }
.profile span { font-size:.9rem; font-weight:650 }
.hero { position:relative; overflow:hidden; background:var(--navy); color:white; padding:clamp(1.5rem,5vw,3.4rem); border-radius:1.2rem; min-height:12rem; display:grid; align-content:center; gap:.5rem }
.hero:after { content:""; pointer-events:none; position:absolute; width:30rem; aspect-ratio:1; right:-12rem; top:-13rem; border:1px solid #51776c; border-radius:50%; box-shadow:0 0 0 1.7rem #25453f,0 0 0 1.75rem #51776c,0 0 0 3.5rem #1e3b38,0 0 0 3.55rem #51776c }
.hero>* { position:relative; z-index:1 }
.hero h1 { font-family:Georgia,serif; font-weight:400 }
.hero p { color:#c5d5ca }
main { display:grid; gap:1.45rem }
.section-title,.row,.toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem }
.toolbar { justify-content:flex-start }
.filters { display:flex; gap:.75rem; flex-wrap:wrap }
.filters select { width:auto }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1rem }
.card,.panel { border:1px solid var(--line); border-radius:1rem; background:white; padding:1.15rem }
.course-card { min-height:11rem; align-content:space-between; border-top:4px solid var(--green) }
.course-card:nth-child(even) { border-top-color:#ca9a38 }
.course-card h3 { font-size:1.37rem; margin:.2rem 0 }
.tag { display:inline-block; width:max-content; font-size:.76rem; font-weight:700; color:#235747; background:var(--mint); padding:.19rem .55rem; border-radius:99px }
.tag.pending,.tag.blocked { color:#66390c; background:#f8e9c9 }
.panel h2 { font-size:1.5rem }
.item-list { display:grid; gap:.65rem }
.item-row,.message { padding:.8rem; border:1px solid var(--line); border-radius:.7rem }
.item-row h3 { margin:.12rem 0 }
.body-copy { white-space:pre-wrap; overflow-wrap:anywhere }
fieldset { min-width:0; display:grid; gap:.65rem; border:1px solid var(--line); border-radius:.7rem; padding:.75rem }
legend { font-weight:700; padding:0 .35rem }
.choice { display:flex; align-items:center; gap:.5rem; font-weight:500 }
.choice input { width:auto }
details summary { color:var(--green); font-weight:700; cursor:pointer }
details[open] summary { margin-bottom:.65rem }
.table-wrap { overflow-x:auto }
table { border-collapse:collapse; width:100%; text-align:left; font-size:.9rem }
th,td { padding:.7rem .55rem; border-bottom:1px solid var(--line); vertical-align:top }
th { white-space:nowrap }
td form { min-width:13rem }
#feedback:not(:empty) { position:fixed; bottom:1rem; right:1rem; z-index:5; max-width:min(calc(100vw - 2rem),30rem); padding:.65rem 1rem; color:#fff; background:#164c3e; border-radius:.65rem; box-shadow:0 5px 20px #142c3130 }
#feedback.error:not(:empty) { background:#852e2e }
@media(max-width:760px) {
  .login { grid-template-columns:1fr }
  .login-art { padding:1.5rem; gap:1.2rem }
  .orbit { width:90vw; right:-50vw; bottom:-70vw }
  .login-panel { align-self:start; padding-top:2rem }
  .shell { padding-inline:1rem }
  .profile span { display:none }
}
