:root {
  color-scheme: light;
  --pilot-navy: #10243d;
  --pilot-red: #bd2739;
  --pilot-blue: #285678;
  --pilot-muted: #4c6479;
  --pilot-line: #d9e3ed;
}

body { background: #f4f7fa; color: var(--pilot-navy); font: 16px/1.55 system-ui, sans-serif; }
[hidden] { display: none !important; }
.pilot-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.pilot-top { background: #fff; border-bottom: 1px solid var(--pilot-line); }
.pilot-top-inner { min-height: 66px; display: flex; justify-content: space-between; align-items: center; }
.pilot-top .welcome-brand { font: 800 21px system-ui, sans-serif; letter-spacing: -.02em; }
.pilot-association { color: var(--pilot-blue); font-weight: 650; font-size: 14px; }
.pilot-nav { background: #fff; border-bottom: 1px solid var(--pilot-line); }
.pilot-nav nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.pilot-nav a { display: inline-block; padding: 10px 2px; color: var(--pilot-blue); text-decoration: none; font-size: 14px; font-weight: 650; }
.pilot-nav a[aria-current] { color: var(--pilot-red); box-shadow: inset 0 -2px var(--pilot-red); }
.pilot-nav .signout { margin-left: auto; }
main.pilot-wrap { padding: 30px 0 56px; }
.pilot-hero {
  display: flex; align-items: end; min-height: 480px; padding: clamp(24px, 6vw, 68px);
  border-radius: 20px; color: white; background: linear-gradient(90deg,#0b2038fa,#0b203880 68%,#0b20381a), url('/arena.webp') center/cover;
}
.pilot-hero h1 { font-size: clamp(36px, 7vw, 68px); color: white; }
.pilot-hero p { max-width: 530px; }
.pilot-kicker { font-weight: 750; color: #ffd0d4; font-size: 14px; letter-spacing: .12em; }
.pilot-heading { display:flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pilot-heading p, .pilot-panel p { margin: 6px 0 0; }
.pilot-wrap h1 { font-weight: 800; letter-spacing: -.05em; line-height: 1.08; margin: 0; }
.pilot-wrap h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; }
.pilot-button { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 42px; border-radius: 8px; border: 1px solid transparent; background: var(--pilot-red); color: #fff; padding: 8px 15px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pilot-button.secondary { background: white; border-color: var(--pilot-line); color: var(--pilot-blue); }
.pilot-button:disabled { opacity: .55; cursor: wait; }
.pilot-hero .pilot-button { margin-top: 12px; }
.pilot-panel { border: 1px solid var(--pilot-line); padding: 20px; background: white; border-radius: 13px; margin: 0 0 14px; }
.pilot-panel small, .pilot-muted { color: var(--pilot-muted); }
.pilot-auth { max-width: 460px; margin: 30px auto; }
.pilot-auth form { margin-top: 18px; }
.pilot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pilot-grid .pilot-panel { margin: 0; }
.pilot-card-head, .pilot-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pilot-card-head { justify-content: space-between; margin-bottom: 10px; }
.pilot-actions { margin-top: 15px; }
.pilot-status { border-radius: 6px; background: #e9f1f8; color: #234961; padding: 2px 8px; font-size: 14px; font-weight: 650; }
.pilot-price { font-size: 19px; font-weight: 800; }
.pilot-form, .pilot-filters { display: grid; gap: 12px; }
.pilot-filters { grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); align-items: end; margin-bottom: 20px; }
.pilot-form .pilot-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); }
.pilot-wrap label, #pilot-dialog label { display: grid; gap: 4px; font-size: 14px; font-weight: 650; }
.pilot-wrap input, .pilot-wrap select, #pilot-dialog input, #pilot-dialog select, #pilot-dialog textarea {
  min-width: 0; width: 100%; border: 1px solid #aebfd0; border-radius: 7px; padding: 9px 10px; background: white; color: var(--pilot-navy); font: 16px/1.3 system-ui, sans-serif;
}
#pilot-dialog { border: 1px solid var(--pilot-line); border-radius: 14px; padding: 22px; width: min(540px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--pilot-navy); }
#pilot-dialog::backdrop { background: #0d243bc2; }
#dialog-title { margin: 0 0 10px; font-size: 24px; }
.pilot-error { color: #a51d31; margin: 0; }
.pilot-feedback { position: fixed; inset: auto 18px 12px auto; background: var(--pilot-navy); color: white; padding: 10px 15px; border-radius: 8px; max-width: calc(100% - 36px); }
.pilot-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.pilot-calendar > * { padding: 6px; min-height: 36px; }
.pilot-calendar button { border: 1px solid var(--pilot-line); border-radius: 6px; background: #fff; color: var(--pilot-navy); cursor: pointer; font: inherit; }
.pilot-calendar button[aria-pressed="true"] { border-color: var(--pilot-blue); background: #e7f0f8; font-weight: 750; }
.pilot-calendar small { display: block; }
.pilot-list { padding-left: 22px; overflow-wrap: anywhere; }
@media(max-width:520px) {
  .pilot-wrap { width: calc(100% - 24px); }
  .pilot-hero { min-height: 380px; }
  .pilot-calendar > * { padding: 3px; font-size: 13px; }
}
