:root {
  color-scheme: dark;
  --ink: #071523;
  --ink-2: #0a1d2d;
  --panel: #0d2233;
  --panel-2: #102b3d;
  --line: rgba(158, 195, 216, .15);
  --text: #e8f3f8;
  --muted: #93aebb;
  --cyan: #58d9e9;
  --cyan-dark: #173c4d;
  --orange: #ffbd72;
  --green: #79e2b0;
  --red: #ff928a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 72% 0%, rgba(20, 75, 98, .19), transparent 38rem), var(--ink); color: var(--text); }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #a1f3fb; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.topbar { min-height: 74px; padding: 0 max(22px, calc((100vw - 1160px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(5, 17, 28, .87); }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--text); font-size: 12px; letter-spacing: .13em; font-weight: 750; }
.brand b { color: var(--cyan); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(88, 217, 233, .55); color: var(--cyan); font-size: 12px; letter-spacing: 0; transform: skew(-6deg); }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.main-nav a { color: #b7cbd5; }
.main-nav a:hover { color: var(--cyan); }
.nav-form { margin: 0; }
.nav-button { border: 0; padding: 7px 0; background: transparent; color: #b7cbd5; cursor: pointer; }
.nav-button:hover { color: var(--cyan); }
.main-nav .nav-cta { padding: 10px 14px; color: var(--ink); background: var(--cyan); border-radius: 3px; font-weight: 750; }
.hero { min-height: 540px; padding-block: 76px 66px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 580px; }
.eyebrow { margin: 0 0 15px; color: var(--cyan); font-size: 10px; font-weight: 750; letter-spacing: .17em; }
.pulse-dot, .status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(121, 226, 176, .65); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(38px, 5.5vw, 67px); line-height: 1.02; letter-spacing: -.045em; }
h1 span { color: var(--cyan); }
h2 { margin-bottom: 10px; font-size: 21px; letter-spacing: -.025em; }
h3 { margin-bottom: 7px; font-size: 17px; }
.hero-lead { max-width: 510px; color: #b0c4cf; font-size: 17px; line-height: 1.7; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; font-weight: 720; font-size: 13px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.button-primary { color: #04131c; background: var(--cyan); }
.button-primary:hover { color: #04131c; background: #8aecf5; }
.button-secondary { color: #d8e8ef; background: transparent; border-color: rgba(150, 190, 210, .3); }
.button-secondary:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(88, 217, 233, .06); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-full { width: 100%; margin-top: 8px; }
.disclaimer { max-width: 490px; margin: 22px 0 0; color: #78919f; font-size: 11px; line-height: 1.6; }
.radar-panel { position: relative; min-height: 370px; overflow: hidden; padding: 19px; border: 1px solid rgba(88, 217, 233, .2); background: linear-gradient(145deg, rgba(11, 40, 56, .75), rgba(6, 21, 33, .9)); }
.radar-label, .radar-coordinates { display: flex; justify-content: space-between; color: #82a1b1; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.radar-grid { position: absolute; inset: 62px 24px 48px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle, transparent 0 18%, rgba(80, 150, 166, .25) 18.2% 18.5%, transparent 18.7% 38%, rgba(80, 150, 166, .22) 38.2% 38.5%, transparent 38.7% 59%, rgba(80, 150, 166, .19) 59.2% 59.5%, transparent 59.7%), linear-gradient(90deg, transparent 49.8%, rgba(80, 150, 166, .2) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, rgba(80, 150, 166, .2) 50%, transparent 50.2%); }
.radar-grid:after { position: absolute; inset: 0; content: ""; background: radial-gradient(ellipse at 50% 53%, rgba(16, 73, 86, .22), transparent 60%); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, transparent 0 53%, rgba(75, 235, 218, .18) 65%, transparent 66% 100%); }
.radar-eye { position: absolute; z-index: 1; top: 42%; left: 47%; width: 32px; height: 25px; border: 1px solid var(--orange); border-radius: 48% 52% 39% 61%; box-shadow: 0 0 20px rgba(255, 189, 114, .35); transform: rotate(-24deg); }
.radar-ring { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.ring-one { top: 30%; left: 28%; }.ring-two { bottom: 28%; right: 29%; }
.radar-coordinates { position: absolute; right: 19px; bottom: 18px; left: 19px; }
.feature-band { border-block: 1px solid var(--line); background: rgba(10, 29, 45, .63); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; padding-block: 37px; }
.feature-index { color: var(--cyan); font-size: 9px; letter-spacing: .14em; font-weight: 750; }
.feature-grid h2 { margin: 12px 0 7px; font-size: 18px; }
.feature-grid p, .callout p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 58px 64px; }
.callout h2 { margin-bottom: 7px; font-size: 25px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); color: #728a97; font-size: 10px; }
.page-header { padding-block: 50px 26px; }
.page-header h1 { margin-bottom: 11px; font-size: clamp(33px, 4.2vw, 48px); }
.page-header p:not(.eyebrow) { max-width: 700px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.page-header-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(150deg, rgba(13, 34, 51, .97), rgba(9, 27, 41, .97)); box-shadow: 0 13px 30px rgba(0, 0, 0, .12); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; padding-top: 9px; }
.dashboard-main { padding: 23px; }
.dashboard-side { display: grid; align-content: start; gap: 18px; }
.mini-panel { padding: 20px; }
.mini-panel h2 { margin: 6px 0; }
.mini-panel .eyebrow { margin-bottom: 13px; }
.muted { color: var(--muted); }
.profile-avatar { display: grid; place-items: center; width: 40px; height: 40px; margin-block: 18px 13px; border: 1px solid rgba(88, 217, 233, .48); border-radius: 50%; color: var(--cyan); background: var(--cyan-dark); font-weight: 750; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: 12px; }
.flight-list { border-top: 1px solid var(--line); }
.flight-row { min-height: 70px; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 14px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.flight-code { color: #78a5b6; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.flight-row-title { display: grid; gap: 5px; color: var(--text); font-size: 13px; }
.flight-row-title small { color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border: 1px solid rgba(150, 190, 210, .18); border-radius: 20px; color: #b6c9d2; background: rgba(150, 190, 210, .07); font-size: 9px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.status-recruiting, .status-briefing { color: var(--cyan); border-color: rgba(88, 217, 233, .25); background: rgba(88, 217, 233, .08); }
.status-ready, .status-completed { color: var(--green); border-color: rgba(121, 226, 176, .25); background: rgba(121, 226, 176, .07); }
.status-in_flight { color: var(--orange); border-color: rgba(255, 189, 114, .27); background: rgba(255, 189, 114, .08); }
.status-cancelled, .status-disconnected { color: #a1b0b8; }
.empty-state { padding: 36px 16px; text-align: center; }
.empty-state p { max-width: 480px; margin: 0 auto 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-icon { display: block; margin-bottom: 12px; color: var(--cyan); font-size: 30px; }
.two-column-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-block: 34px 63px; }
.simple-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.simple-list li { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.simple-list li span { color: var(--muted); }
.board-meta { display: flex; justify-content: space-between; padding-block: 13px; border-block: 1px solid var(--line); color: #85a1ae; font-size: 10px; letter-spacing: .09em; }
.board-meta .pulse-dot { width: 6px; height: 6px; }
.flight-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-block: 22px 65px; }
.flight-card { min-height: 270px; display: flex; flex-direction: column; padding: 19px; }
.card-topline, .card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flight-card h2 { margin: 19px 0 4px; font-size: 18px; }
.flight-card h2 a { color: var(--text); }
.flight-card h2 a:hover { color: var(--cyan); }
.flight-card > .muted { min-height: 22px; margin-bottom: 14px; font-size: 11px; }
.flight-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0 0 18px; }
.flight-facts div { min-width: 0; }
.flight-facts dt, .overview-grid small, .mission-objectives small, .open-stations > small { margin-bottom: 5px; color: #7f9ca9; font-size: 8px; letter-spacing: .1em; font-weight: 750; }
.flight-facts dd { margin: 0; overflow: hidden; color: #d8e7ed; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; }
.text-link { font-weight: 700; }
.empty-wide { grid-column: 1 / -1; padding: 60px 20px; }
.auth-shell { min-height: 590px; display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 90px; align-items: center; padding-block: 55px 75px; }
.auth-intro h1 { font-size: clamp(42px, 5vw, 58px); }
.auth-intro p:not(.eyebrow) { max-width: 460px; color: var(--muted); line-height: 1.75; }
.auth-panel { padding: 27px; }
.auth-panel h2 { margin-bottom: 20px; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field label, .control-form label { color: #bdd0d9; font-size: 11px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea, .control-form input, .control-form select { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid rgba(145, 182, 200, .24); border-radius: 3px; outline: none; color: var(--text); background: #081927; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .control-form input:focus, .control-form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(88, 217, 233, .11); }
.form-field input[type=checkbox] { width: auto; min-height: 0; }
.form-field small { color: #819ba8; font-size: 10px; line-height: 1.5; }
.form-field ul { margin: 0; padding-left: 17px; color: #819ba8; font-size: 10px; line-height: 1.5; }
.field-error, .form-errors { color: #ffaaa4 !important; }
.form-errors { margin-bottom: 13px; font-size: 12px; }
.form-footnote { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.messages { padding-top: 13px; }
.message { margin: 0; padding: 10px 13px; border: 1px solid rgba(88, 217, 233, .2); color: #d9f7fa; background: rgba(88, 217, 233, .07); font-size: 12px; }
.message + .message { margin-top: 7px; }
.message-error { border-color: rgba(255, 146, 138, .3); color: #ffc1bc; background: rgba(255, 146, 138, .07); }
.narrow { max-width: 720px; }
.host-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 18px; padding-bottom: 60px; }
.host-layout > .panel { padding: 25px; }
.stacked-form { max-width: 650px; }
.info-panel { align-self: start; }
.info-panel p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.7; }
.quiet-rule { height: 1px; margin: 20px 0; background: var(--line); }
.room-header { align-items: center; }
.room-header h1 { margin-bottom: 8px; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding-bottom: 65px; }
.room-main, .room-side { display: grid; align-content: start; gap: 16px; }
.room-main > .panel, .room-side > .panel { padding: 21px; }
.visibility-tag { padding: 5px 9px; border: 1px solid var(--line); color: #91aab5; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-block: 17px; border-top: 1px solid var(--line); }
.overview-grid div { display: grid; gap: 6px; }
.overview-grid strong { font-size: 12px; font-weight: 600; }
.mission-objectives { padding-top: 14px; border-top: 1px solid var(--line); }
.mission-objectives p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.crew-list { display: grid; }
.crew-row { min-height: 67px; display: grid; grid-template-columns: 32px minmax(88px, .8fr) minmax(130px, 1.2fr) auto auto; gap: 11px; align-items: center; border-top: 1px solid var(--line); }
.crew-avatar { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(88, 217, 233, .25); border-radius: 50%; color: var(--cyan); background: rgba(88, 217, 233, .07); font-size: 11px; font-weight: 750; }
.crew-name, .crew-position { display: grid; gap: 4px; min-width: 0; }
.crew-name strong, .crew-position strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crew-name small, .crew-position small { color: var(--muted); font-size: 8px; letter-spacing: .04em; }
.crew-row .status-pill { justify-self: end; }
.inline-form { margin: 0; }
.button-danger { border: 0; color: #dc9992; background: transparent; font-size: 10px; cursor: pointer; }
.button-danger:hover { color: var(--red); }
.open-stations { padding-top: 15px; border-top: 1px solid var(--line); }
.open-stations > small { display: block; margin-bottom: 9px; }
#open-position-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.station-chip { padding: 5px 9px; border: 1px dashed rgba(137, 173, 191, .28); color: #98b2be; font-size: 9px; }
.my-station h2, .future-panel h2 { margin-block: 6px 9px; }
.connection-note { display: flex; gap: 8px; align-items: start; margin: 17px 0; padding: 11px; border: 1px solid var(--line); color: #b8cbd3; font-size: 10px; }
.connection-note .status-dot { flex: 0 0 auto; margin-top: 3px; background: #889ca6; box-shadow: none; }
.connection-note small { display: block; margin-top: 5px; color: #8197a2; line-height: 1.4; }
.leave-form { margin-top: 13px; text-align: center; }
.button-text { border: 0; color: #a8bbc4; background: transparent; font-size: 10px; cursor: pointer; }
.button-text:hover { color: var(--red); }
.future-panel .muted { font-size: 11px; line-height: 1.6; }
.control-form { display: grid; grid-template-columns: auto minmax(130px, 1fr) auto; gap: 9px; align-items: center; padding-block: 10px; border-top: 1px solid var(--line); }
.control-form label { font-size: 10px; }
.control-form input, .control-form select { min-height: 37px; padding: 7px 9px; font-size: 11px; }
.control-form .button { min-height: 37px; padding-inline: 11px; font-size: 10px; }
.add-crew-form { grid-template-columns: 1fr 1fr auto; }
.add-crew-form label:first-child { grid-column: 1; }
.add-crew-form label:nth-of-type(2) { grid-column: 2; }
.add-crew-form input { grid-column: 1; }
.add-crew-form select { grid-column: 2; }
.add-crew-form button { grid-column: 3; grid-row: 2; }
.add-crew-form .form-errors { grid-column: 1 / -1; }
.footer { margin-top: auto; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 52px; }
  .radar-panel { min-height: 310px; }
  .dashboard-grid, .room-layout { grid-template-columns: 1fr; }
  .dashboard-side { grid-template-columns: 1fr 1fr; }
  .flight-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-layout { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr minmax(300px, 410px); gap: 35px; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 30px, 1160px); }
  .topbar { min-height: 64px; padding-inline: 15px; }
  .brand { font-size: 9px; letter-spacing: .08em; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav { gap: 12px; font-size: 11px; }
  .main-nav a:nth-child(2) { display: none; }
  .main-nav .nav-cta { padding: 8px; }
  .hero { min-height: auto; padding-block: 44px 38px; }
  .hero-lead { font-size: 15px; }
  .radar-panel { min-height: 260px; }
  .radar-grid { inset: 50px 20px 40px; }
  .feature-grid { grid-template-columns: 1fr; gap: 23px; padding-block: 28px; }
  .callout { align-items: start; flex-direction: column; padding-block: 40px; }
  .footer { flex-direction: column; gap: 7px; }
  .page-header { padding-block: 36px 20px; }
  .page-header-row { align-items: start; flex-direction: column; }
  .dashboard-main, .room-main > .panel, .room-side > .panel { padding: 16px; }
  .dashboard-side { grid-template-columns: 1fr; }
  .flight-row { grid-template-columns: 1fr auto; gap: 8px; padding-block: 12px; }
  .flight-row-title { grid-row: 2; }
  .flight-row > span:last-child { display: none; }
  .flight-card-grid { grid-template-columns: 1fr; }
  .two-column-sections { grid-template-columns: 1fr; gap: 27px; }
  .auth-shell { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-block: 40px 55px; }
  .auth-intro h1 { font-size: 39px; }
  .auth-panel { padding: 20px; }
  .host-layout > .panel { padding: 17px; }
  .room-header { align-items: start; }
  .crew-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding-block: 9px; }
  .crew-position { grid-column: 2; }
  .crew-row .status-pill { grid-column: 3; grid-row: 1 / span 2; }
  .crew-row .inline-form { grid-column: 3; grid-row: 3; justify-self: end; }
  .overview-grid { gap: 14px; }
  .control-form, .add-crew-form { grid-template-columns: 1fr; }
  .add-crew-form label, .add-crew-form input, .add-crew-form select, .add-crew-form button { grid-column: 1 !important; grid-row: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
