:root {
  --bg: #03122f;
  --card: #081b45;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #9fb2d7;
  --green: #22c55e;
  --blue: #38bdf8;
  --orange: #f59e0b;
  --red: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #0b234f 0%, #03122f 55%, #020b20 100%);
  color: var(--text);
}
a { color: #7dd3fc; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 28px; }
.hidden { display: none !important; }
.card {
  background: rgba(8, 27, 69, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.login-card { max-width: 560px; margin: 64px auto; text-align: center; }
.topbar, .scope-card { margin-bottom: 22px; }
.topbar, .section-head, .topbar-actions, .header-actions, .actions-row, .session-grid { display: flex; gap: 12px; }
.topbar, .section-head { align-items: center; justify-content: space-between; }
.topbar h1 { margin: 0 0 10px; font-size: 2.35rem; }
.section-head h2 { margin: 0 0 8px; font-size: 1.55rem; }
.muted { color: var(--muted); line-height: 1.55; }
.compact { margin-top: 12px; font-size: .92rem; }
.badge {
  padding: 10px 14px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #d9f5ff;
  border-radius: 999px;
  background: rgba(11, 71, 113, 0.35);
  white-space: nowrap;
}
.grid { display: grid; gap: 18px; margin-bottom: 22px; }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-panels { grid-template-columns: 1.1fr 0.9fr; }
.card h3 { margin: 0 0 12px; font-size: 1.1rem; color: #dbeafe; }
.card > div:last-child { font-size: 2rem; font-weight: 700; }
.form-grid { display: grid; gap: 14px; margin-top: 8px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-row { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; color: #d6e5ff; font-weight: 600; }
input, select, textarea, button {
  width: 100%;
  font: inherit;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
}
input, select, textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
select[multiple] { min-height: 220px; }
textarea { resize: vertical; }
button {
  padding: 12px 16px;
  border: none;
  color: #03122f;
  background: linear-gradient(135deg, #22c55e, #2dd4bf);
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.actions-row { margin-top: 16px; }
.actions-row button { width: auto; min-width: 190px; }
.stack-list { display: grid; gap: 14px; }
.row-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(5, 16, 40, 0.38);
}
.row-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.row-head h3 { margin: 0 0 6px; font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .95rem; }
.tag-row { display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0; }
.tag {
  padding: 6px 10px; border-radius: 999px; font-size: .86rem;
  border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(255,255,255,.05);
}
.tag.pending { border-color: rgba(245, 158, 11, .45); color: #fde68a; }
.tag.arrived { border-color: rgba(56, 189, 248, .45); color: #bae6fd; }
.tag.checked_in { border-color: rgba(34, 197, 94, .45); color: #bbf7d0; }
.tag.absent { border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.inline-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.inline-actions button { width:auto; min-width: 150px; }
.label-inline { display:block; color: var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 4px; }
.session-grid { margin-left:auto; align-items:center; }
.session-grid > div { min-width: 150px; }
#attendanceSheet { margin-top: 18px; overflow-x: auto; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sheet-table th, .sheet-table td { border-bottom: 1px solid rgba(148,163,184,.18); padding: 12px 10px; vertical-align: top; }
.sheet-table th { text-align: left; color: #dbeafe; font-size: .83rem; text-transform: uppercase; letter-spacing: .06em; }
.sheet-sign { min-width: 150px; height: 42px; border-bottom: 1px dashed rgba(148,163,184,.35); }
@media (max-width: 1100px) {
  .stats-4, .two-panels, .two-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 18px; }
  .topbar, .section-head, .topbar-actions, .header-actions, .actions-row, .session-grid { flex-direction: column; align-items: stretch; }
  .stats-4, .two-panels, .two-col { grid-template-columns: 1fr; }
  .session-grid { margin-left: 0; }
  .actions-row button, .inline-actions button { width: 100%; }
}
@media print {
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .topbar, .scope-card, .login-card, .two-panels, .header-actions, .inline-actions, .actions-row { display: none !important; }
  .card { box-shadow: none; border: none; background: #fff; color: #000; padding: 0; }
  .sheet-table th, .sheet-table td { border-color: #bbb; color: #000; }
}


.launch-actions input { max-width: 150px; }
.launch-grid { display:grid; gap:14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.launch-card {
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6, 22, 58, .85), rgba(3, 15, 38, .9));
}
.launch-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.launch-vs { display:grid; gap:10px; margin-top: 12px; }
.launch-team {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.14);
}
.launch-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(148,163,184,.24);
  color: var(--muted);
  text-align:center;
}
@media print {
  #launchBox { display:none !important; }
}
