.pilot-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100dvh;
}
.pilot-sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
}
.pilot-sidebar .brand {
  padding: 0 9px;
}
.pilot-sidebar .brand small {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-left: auto;
}
.pilot-sidebar nav {
  display: grid;
  gap: 8px;
}
.project-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px 10px;
  border-radius: 10px;
  width: 100%;
}
.project-choice > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
}
.project-choice.active {
  background: var(--raised);
}
.project-choice b {
  font-size: 12px;
}
.project-choice small {
  font-size: 10px;
}
.pilot-side-bottom {
  margin-top: auto;
  padding: 0 9px;
}
.pilot-side-bottom p {
  font-size: 11px;
  margin-bottom: 8px;
}
.pilot-side-bottom small {
  font-size: 10px;
}
.pilot-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pilot-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.pilot-header small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--subtle);
}
.pilot-header h1 {
  font-size: 17px;
  margin: 4px 0 0;
}
.pilot-tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.pilot-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 28px max(26px, calc((100% - 1000px) / 2));
  scrollbar-gutter: stable;
}
.pilot-intro {
  display: flex;
  gap: 18px;
  padding: 0 0 12px;
  max-width: 820px;
}
.assistant-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 11px;
  flex: none;
}
.pilot-intro h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 10px;
  letter-spacing: -0.04em;
}
.pilot-intro p {
  font-size: 13px;
  margin-bottom: 12px;
  max-width: 720px;
}
.pilot-card {
  background: var(--sidebar);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 21px;
  margin: 18px 0;
}
.pilot-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.pilot-card p {
  font-size: 12px;
  margin: 0 0 14px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.section-heading .primary {
  flex: none;
}
.section-heading p {
  margin-bottom: 8px;
}
.checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0;
}
.checks > div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 13px 11px;
  background: var(--base);
}
.checks span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  min-height: 30px;
}
.checks b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}
.checks [data-state='pass'] b {
  color: #a6d6b8;
}
.checks [data-state='fail'] b {
  color: var(--danger);
}
.checks [data-state='running'] b {
  color: var(--accent);
}
.pilot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.pilot-gallery article {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sidebar);
}
.fixture-placeholder {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  color: var(--subtle);
  background: linear-gradient(150deg, #2a302e, #171d1d);
  font-size: 12px;
  overflow: hidden;
}
.fixture-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 13px 15px;
}
.gallery-caption b {
  display: block;
  font-size: 12px;
}
.gallery-caption small {
  font-size: 10px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pilot-card .quiet-button,
.pilot-composer .quiet-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
}
.pilot-card .primary,
.pilot-composer .primary {
  font-size: 12px;
}
.pilot-composer {
  border-top: 1px solid var(--line-soft);
  padding: 15px max(26px, calc((100% - 1000px) / 2));
  background: var(--base);
}
.composer-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--subtle);
  margin-bottom: 10px;
}
.pilot-composer p {
  font-size: 11px;
  margin: 8px 0 0;
}
.pilot-composer .primary span {
  margin-left: 10px;
  font-size: 10px;
  opacity: 0.7;
}
#access-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
#access-form label {
  flex: 1;
  font-size: 11px;
}
#access-form .primary {
  margin-bottom: 0;
}
#pilot-video {
  display: none;
  width: 100%;
  max-height: 350px;
  border-radius: 8px;
  background: #111;
  margin: 14px 0;
}
#pilot-video[src] {
  display: block;
}
.network-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.network-form label {
  font-size: 11px;
}
.network-form select {
  font-size: 12px;
}
.pilot-card small {
  font-size: 10px;
}
progress {
  width: 100%;
  height: 6px;
  margin: 15px 0;
  accent-color: var(--accent);
}
#toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 40px #0008;
  padding: 12px 18px;
  max-width: 90vw;
  font-size: 12px;
  z-index: 20;
}
body[data-authenticated='true'] #access-card {
  display: none;
}
@media (max-width: 1100px) {
  .checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pilot-sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .pilot-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .pilot-layout {
    display: block;
  }
  .pilot-sidebar {
    display: none;
  }
  .pilot-main {
    height: 100dvh;
  }
  .pilot-header {
    padding: 15px 18px;
  }
  .pilot-scroll {
    padding: 22px 16px;
  }
  .pilot-intro {
    gap: 12px;
  }
  .pilot-intro h2 {
    font-size: 20px;
  }
  .pilot-intro p {
    font-size: 12px;
  }
  .pilot-card {
    padding: 16px;
    margin: 15px 0;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading .primary {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .checks > div {
    padding: 11px;
  }
  .checks span {
    min-height: 0;
  }
  .pilot-gallery {
    gap: 10px;
  }
  .gallery-caption {
    padding: 10px;
  }
  .gallery-caption b {
    font-size: 11px;
  }
  .gallery-caption small {
    font-size: 9px;
  }
  .pilot-composer {
    padding: 11px 16px;
  }
  .pilot-composer .button-row {
    gap: 6px;
  }
  .pilot-composer .primary,
  .pilot-composer .quiet-button {
    font-size: 10px;
    padding: 8px 9px;
    min-height: 38px;
  }
  .pilot-composer p {
    font-size: 10px;
  }
  .composer-label {
    font-size: 8px;
    margin-bottom: 6px;
  }
  #access-form {
    display: block;
  }
  #access-form button {
    margin-top: 12px;
  }
  .network-form {
    grid-template-columns: 1fr 1fr;
  }
  .pilot-tag {
    font-size: 9px;
  }
  #toast {
    bottom: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

#access-card,#logout{display:none!important}
