:root {
  --carbon: #0b0b0c;
  --warm: #f6f5f2;
  --white: #fff;
  --fog: #e7e7e4;
  --hairline: #c9cbcd;
  --graphite: #5a5d60;
  --direction: #165dff;
  --direction-pale: #eaf0ff;
  --green: #16734b;
  --amber-pale: #fff4d6;
  --red: #b42318;
  --red-pale: #fdecea;
  --ivory: var(--warm);
  --ink: var(--carbon);
  --line: var(--hairline);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.site-header {
  align-items: center;
  background: var(--carbon);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
}

.brand {
  align-items: center;
  color: white;
  display: inline-flex;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.far-mark {
  display: block;
  height: 30px;
  width: 24px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--direction);
  outline-offset: 2px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 5px var(--direction);
}

.session { align-items: center; display: flex; gap: 14px; }
.session form { margin: 0; }
.session button {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 14px;
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 72px 24px;
}

.eyebrow {
  color: var(--carbon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  color: var(--carbon);
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 10px 0 18px;
}

h2 { color: var(--carbon); }
.intro { font-size: 1.1rem; max-width: 670px; }

.notice {
  background: var(--direction-pale);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin: 26px 0;
  padding: 14px 18px;
}

.notice.error {
  background: var(--red-pale);
  border-color: var(--red);
}

.workspace-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workspace-card,
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgb(11 11 12 / 6%);
  padding: 24px;
}

.workspace-card a,
.primary {
  background: var(--carbon);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
  min-height: 44px;
  padding: 11px 17px;
  text-decoration: none;
}

.role {
  background: var(--direction-pale);
  border-radius: 999px;
  color: var(--direction);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.section-heading { margin-top: 44px; }

.auth-card {
  margin: 8vh auto;
  max-width: 480px;
  padding: 34px;
}

.auth-card label { display: block; font-weight: 700; margin-bottom: 6px; }
.auth-card input {
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  min-height: 44px;
  padding: 11px;
  width: 100%;
}

.auth-card > p {
  color: #52657a;
  line-height: 1.55;
}

.auth-card form {
  margin-top: 26px;
}

.field-group {
  margin-bottom: 18px;
}

.field-error {
  margin-top: 6px;
  color: #a33f36;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-card .primary {
  width: 100%;
  min-height: 46px;
  font-weight: 800;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--direction);
  font-weight: 800;
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .session > span { display: none; }
  .page { padding-top: 46px; }
}

.pilot-agreement-card {
  max-width: 760px;
}

.pilot-agreement-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding-left: 1.25rem;
}

.pilot-agreement-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.85rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pilot-agreement-check input {
  width: auto;
  margin-top: 0.2rem;
}
