:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #f6f7f9; color: #111; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 18px; }
h1 { margin: 12px 0 6px; }
h2 { margin: 0; font-size: 18px; }
.muted { color: #666; }
.small { font-size: 12px; }
.mt { margin-top: 14px; }

.card {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 12px;
  padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
label { display: block; font-size: 13px; color: #333; margin-bottom: 6px; }
input, textarea {
  width: 100%; box-sizing: border-box; padding: 10px;
  border: 1px solid #ddd; border-radius: 10px; font-size: 14px;
}
textarea { resize: vertical; }
.hint { margin-top: 6px; font-size: 12px; color: #777; }
.actions { display: flex; gap: 10px; justify-content: flex-end; }
button {
  padding: 10px 12px; border: 1px solid #111; border-radius: 10px;
  background: #111; color: #fff; cursor: pointer; font-weight: 600;
}
button.secondary { background: #fff; color: #111; border-color: #ddd; }
button:disabled { opacity: .6; cursor: not-allowed; }

.status { padding: 10px; border-radius: 10px; background: #f2f4f7; border: 1px solid #e5e7eb; }
.row { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

.tabs { display: flex; gap: 8px; }
.tab { background: #fff; border: 1px solid #ddd; color: #111; }
.tab.active { background: #111; color: #fff; border-color: #111; }

.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border-bottom: 1px solid #eee; padding: 10px; text-align: left; font-size: 14px; }
th { position: sticky; top: 0; background: #fff; z-index: 1; }

.hidden { display: none; }
.pre { background: #0b1020; color: #d7e0ff; padding: 12px; border-radius: 12px; overflow: auto; max-height: 420px; }
a { color: inherit; }

.flight-highlight-u100 {
  background-color: #ffebee;
  color: #b00020;
  font-weight: 700;
}

.flight-highlight-u25 {
   background-color: #fff3e0;
   color: #c62828;
  font-weight: 700;
}

.badge-flight {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.badge-u100 {
  background: #ffebee;
  color: #b00020;
  border: 1px solid #ef9a9a;
}

.badge-u25 {
  background: #fff3e0;
  color: #c62828;
  border: 1px solid #ffb74d;
}

.badge-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.flight-club-glider {
  font-weight: bold;
}

.badge-u25-pilot {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.pilot-u25 {
  font-weight: 700;
}
