:root{
  --bg:#0b1220;
  --panel:#101a2c;
  --stroke:#1c2a44;
  --text:#eaf0ff;
  --muted:#9aa6c4;
  --green:#2ee59d;
  --blue:#5aa8ff;
  --yellow:#f3c969;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 700px at 30% 0%, #142543 0%, var(--bg) 55%);
  color:var(--text);
}

.topbar{
  padding: 22px 18px 14px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

.title{ font-weight:800; font-size:28px; }
.subtitle{ margin-top:4px; color:var(--muted); font-size:14px; }

.topbar-actions{ display:flex; gap:10px; }
.icon-btn{
  border:1px solid var(--stroke);
  background: rgba(16,26,44,.55);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
  font-size:16px;
  cursor:pointer;
}

.container{
  padding: 8px 18px 90px;
  max-width: 900px;
  margin: 0 auto;
}

.card{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
}

.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  font-size:13px;
}
.chip-green{ color: var(--green); }

.stat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 8px;
}
.stat-value{ font-size: 26px; font-weight: 800; }
.stat-label{ color: var(--muted); font-size: 12px; margin-top: 6px; }

.green{ color: var(--green); }
.blue{ color: var(--blue); }
.muted{ color: var(--muted); }
.small{ font-size:12px; }
.micro{ font-size:11px; margin-top:6px; }

.section-title{ margin-top: 18px; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom: 10px;
}
.section-h2{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}

.list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top:10px;
}

.session-card{
  background: rgba(12,20,36,.35);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.grow{ flex:1; }

.btn{
  border-radius: 14px;
  border: 1px solid rgba(28,42,68,.9);
  padding: 12px 14px;
  background: rgba(12,20,36,.55);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.btn.primary{
  border-color: rgba(46,229,157,.35);
  color: #05130d;
  background: linear-gradient(180deg, rgba(46,229,157,.95), rgba(46,229,157,.75));
}
.smallbtn{
  padding: 10px 12px;
  font-size: 13px;
}
.btn.danger{
  border-color: rgba(255,90,90,.35);
  color: #ffd7d7;
}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 680px){
  .stat-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(28,42,68,.9);
  background: rgba(12,20,36,.55);
  color: var(--text);
  outline:none;
}
select{
  min-height: 44px; /* fixes tiny dropdown feeling */
}
input::placeholder{ color: rgba(154,166,196,.7); }
input:focus, select:focus{
  border-color: rgba(90,168,255,.65);
}

.inline-row{
  display:flex;
  gap:10px;
  margin-top:8px;
}
.inline-row input{ flex:1; }

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.mini-label{
  font-size: 11px;
  color: rgba(154,166,196,.85);
  margin-bottom: 6px;
}

.warn{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(243,201,105,.45);
  background: rgba(243,201,105,.12);
  color: rgba(243,201,105,.95);
  font-weight: 800;
}

.hidden{ display:none !important; }