:root {
  --bg: #0d1321;
  --bg-soft: #111a2e;
  --card: rgba(13, 19, 33, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #98a2b3;
  --accent: #ffd166;
  --accent-2: #7dd3fc;
  --danger: #ff8fa3;
  --ok: #9ef0c2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 209, 102, 0.14), transparent 24%),
    linear-gradient(160deg, #08101d 0%, #10192d 56%, #1b2440 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.page-shell { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 60px; }
.topbar {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 22px; border: 1px solid var(--card-border); border-radius: 24px;
  background: rgba(10, 15, 28, 0.72); backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.topbar h1, .hero h2, .card h3 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--accent-2); margin: 0 0 8px; }
.topnav { display: flex; gap: 14px; flex-wrap: wrap; }
.topnav a, .secondary-btn, .badge {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(255,255,255,.04);
}
.content { padding-top: 24px; }
.hero {
  display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
  padding: 24px 0 18px;
}
.hero p { color: var(--muted); max-width: 68ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two-col { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.action-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.card {
  border: 1px solid var(--card-border); border-radius: 24px; padding: 18px;
  background: var(--card); backdrop-filter: blur(16px); box-shadow: 0 18px 60px rgba(0,0,0,.2);
}
.project-card { min-height: 160px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.stacked { flex-direction: column; }
.action-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; }
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff8fa3); color: #141414; font-weight: 700;
}
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.form-card { max-width: 760px; }
.wide { max-width: 980px; }
form p { display: flex; flex-direction: column; gap: 6px; }
input, select, textarea {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: var(--text); padding: 12px 14px;
}
select { color: var(--text); }
select option {
  color: #111827 !important;
  background: #ffffff;
}
select option:checked,
select option:hover {
  background: #dbeafe;
  color: #0f172a;
}
select:invalid {
  color: var(--muted);
}
textarea { min-height: 120px; resize: vertical; }
.messages { display: grid; gap: 10px; margin-bottom: 16px; }
.message { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); }
.message.success { border-color: rgba(158, 240, 194, .28); }
.message.error { border-color: rgba(255, 143, 163, .28); }
.badge { color: var(--accent); }
.list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.list .warning { color: #ffd166; }
.list .info { color: #7dd3fc; }
.list .ok { color: var(--ok); }
.compact { gap: 4px; }
.table-wrap { overflow: auto; }
.timetable { width: 100%; border-collapse: collapse; min-width: 720px; }
.timetable th, .timetable td { border: 1px solid rgba(255,255,255,.08); padding: 10px; text-align: center; }
.timetable th { background: rgba(255,255,255,.04); }
.slot { min-height: 54px; }
.filled { background: rgba(255, 209, 102, .14); }
@media (max-width: 760px) {
  .hero, .topbar { flex-direction: column; align-items: stretch; }
  .two-col { grid-template-columns: 1fr; }
}
@media print {
  body { background: white; color: black; }
  .topbar, .no-print, .secondary-btn, .primary-btn { display: none !important; }
  .card { box-shadow: none; background: white; color: black; }
}
