.pilot-workspace-overlay {
  --pilot-workspace-mobile-width: 460px;
  --pilot-workspace-tablet-width: 760px;
  --pilot-workspace-desktop-width: 1120px;
  --pilot-workspace-wide-width: 1180px;
  --pilot-workspace-editor-width: 760px;
  --pilot-workspace-operational-editor-width: 920px;
  --pilot-workspace-edge-gap: 32px;
}

.pilot-workspace-toggle {
  flex: 0 0 auto;
  overflow: hidden;
}

.pilot-workspace-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.pilot-workspace-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.46);
}

.pilot-workspace-overlay.hidden {
  display: none;
}

.pilot-workspace-modal {
  position: relative;
  box-sizing: border-box;
  width: min(var(--pilot-workspace-mobile-width), calc(100vw - var(--pilot-workspace-edge-gap)));
  max-height: min(680px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.pilot-profile-editor {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  width: min(520px, calc(100vw - var(--pilot-workspace-edge-gap)));
  max-height: min(720px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.pilot-profile-editor.hidden {
  display: none;
}

.pilot-workspace-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 67, 54, 0.5);
  border-radius: 8px;
  background: transparent;
  color: rgba(244, 67, 54, 0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pilot-workspace-close:hover {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.pilot-workspace-header {
  padding: 18px 56px 12px 18px;
  border-bottom: 1px solid var(--border);
}

.pilot-workspace-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.pilot-workspace-storage-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-certification-banner {
  display: grid;
  gap: 5px;
  margin: 0 18px 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: 8px;
}

.pilot-certification-banner.hidden {
  display: none;
}

.pilot-certification-banner.success {
  border-color: rgba(46, 204, 113, 0.42);
  background: rgba(46, 204, 113, 0.12);
}

.pilot-certification-banner.warning {
  border-color: rgba(255, 193, 7, 0.48);
  background: rgba(255, 193, 7, 0.14);
}

.pilot-certification-banner.danger {
  border-color: rgba(244, 67, 54, 0.5);
  background: rgba(244, 67, 54, 0.13);
}

.pilot-certification-banner.info {
  border-color: rgba(33, 150, 243, 0.46);
  background: rgba(33, 150, 243, 0.13);
}

.pilot-certification-banner-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.pilot-certification-banner-heading {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pilot-certification-banner-controls {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.pilot-certification-banner-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pilot-certification-banner-chevron {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 10px;
  line-height: 1;
}

.pilot-certification-banner-message,
.pilot-certification-banner-detail {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.pilot-certification-banner-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.pilot-certification-banner-expanded {
  display: grid;
  gap: 7px;
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pilot-certification-banner-expanded[hidden] {
  display: none;
}

body.theme-light .pilot-certification-banner-status {
  background: rgba(255, 255, 255, 0.58);
}

body.theme-light .pilot-certification-banner-chevron {
  background: rgba(255, 255, 255, 0.58);
}

.pilot-profile-editor-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-workspace-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 16px;
}

.pilot-workspace-section h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.pilot-profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pilot-profile-section-header h3 {
  min-width: 0;
}

.pilot-section-tab {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.pilot-cloud-account-tab-title,
.pilot-cloud-account-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pilot-cloud-account-tab-title {
  flex: 1 1 auto;
}

.pilot-cloud-account-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 193, 7, 0.58);
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.12);
  color: #f7c744;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

body.theme-light .pilot-cloud-account-badge {
  border-color: rgba(162, 116, 0, 0.38);
  background: rgba(255, 193, 7, 0.16);
  color: #795600;
}

.pilot-section-tab::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.68;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.pilot-workspace-collapsible.is-open .pilot-section-tab::after {
  opacity: 1;
  transform: rotate(225deg) translate(-2px, -1px);
}

.pilot-section-tab:focus-visible {
  outline: 2px solid rgba(255, 193, 7, 0.65);
  outline-offset: 4px;
  border-radius: 4px;
}

.pilot-section-body[hidden] {
  display: none;
}

.pilot-workspace-collapsible:not(.is-open) .pilot-profile-section-header {
  margin-bottom: 0;
}

.pilot-workspace-section + .pilot-workspace-section {
  margin-top: 10px;
}

.pilot-workspace-placeholder {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.pilot-profile-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pilot-cloud-account-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pilot-cloud-account-intro,
.pilot-cloud-account-register-notice {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-cloud-account-intro,
body.theme-light .pilot-cloud-account-register-notice {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-cloud-account-intro p,
.pilot-cloud-account-register-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pilot-cloud-account-intro p + p,
.pilot-cloud-account-register-notice p + .pilot-cloud-account-actions {
  margin-top: 8px;
}

.pilot-cloud-account-paid-note {
  color: var(--text) !important;
  font-weight: 800;
}

.pilot-cloud-account-register-notice h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-cloud-account-switcher,
.pilot-cloud-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot-cloud-account-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-cloud-account-form {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-cloud-account-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pilot-cloud-account-message {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pilot-cloud-account-message.success {
  border-color: rgba(46, 204, 113, 0.48);
  background: rgba(46, 204, 113, 0.1);
}

.pilot-cloud-account-message.warning {
  border-color: rgba(255, 193, 7, 0.48);
  background: rgba(255, 193, 7, 0.1);
}

.pilot-cloud-account-message.error {
  border-color: rgba(244, 67, 54, 0.5);
  background: rgba(244, 67, 54, 0.1);
}

.pilot-profile-completion,
.pilot-profile-summary-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

body.theme-light .pilot-profile-completion,
body.theme-light .pilot-profile-summary-section {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-profile-completion {
  padding: 11px;
}

.pilot-profile-completion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pilot-profile-completion-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-profile-completion-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.pilot-profile-progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

body.theme-light .pilot-profile-progress-track {
  background: rgba(0, 0, 0, 0.09);
}

.pilot-profile-progress-value {
  height: 100%;
  border-radius: inherit;
  background: #2ecc71;
  transition: width 0.18s ease;
}

.pilot-profile-completion-detail {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.pilot-profile-summary-section {
  padding: 12px;
  min-width: 0;
}

.pilot-profile-summary-heading {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-profile-summary-item {
  display: grid;
  grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.pilot-profile-summary-heading + .pilot-profile-summary-item {
  border-top: 0;
  padding-top: 0;
}

.pilot-profile-summary-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-profile-summary-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pilot-component-summary-value {
  display: flex;
  min-width: 0;
}

.pilot-component-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #63a7ff;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.pilot-component-link:hover {
  text-decoration: underline;
}

.pilot-profile-section-empty {
  padding: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.pilot-profile-primary-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pilot-public-id-value {
  padding: 4px 0 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pilot-public-id-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.pilot-public-id-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pilot-public-id-feedback {
  min-height: 18px;
  color: #2ecc71;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pilot-profile-person-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.pilot-profile-person-header + .pilot-profile-summary-item {
  border-top: 1px solid var(--border);
}

.pilot-profile-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.pilot-profile-avatar.is-cropping {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 8px;
  cursor: pointer;
}

.pilot-profile-avatar.is-cropping::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

body.theme-light .pilot-profile-avatar.is-cropping::after {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
}

body.theme-light .pilot-profile-avatar {
  background: rgba(0, 0, 0, 0.04);
}

.pilot-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-profile-avatar.is-cropping img {
  object-fit: contain;
}

.pilot-profile-person-title {
  min-width: 0;
}

.pilot-profile-person-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pilot-profile-person-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-profile-certificate-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-profile-certificate-list li {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.pilot-profile-certificate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pilot-profile-certificate-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.pilot-profile-certificate-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.pilot-profile-certificate-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pilot-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(46, 204, 113, 0.45);
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.13);
  color: #5ee083;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pilot-category-badge.neutral {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.pilot-category-line {
  color: #5ee083;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pilot-category-line.neutral {
  color: var(--muted);
}

body.theme-light .pilot-category-badge {
  color: #16803b;
}

body.theme-light .pilot-category-line {
  color: #16803b;
}

body.theme-light .pilot-category-badge.neutral {
  background: rgba(0, 0, 0, 0.025);
  color: var(--muted);
}

.pilot-profile-certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pilot-certificate-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.pilot-certificate-status.is-valid {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.14);
  color: #5ee083;
}

.pilot-certificate-status.is-expiring {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.15);
  color: #ffd666;
}

.pilot-certificate-status.is-expired {
  border-color: rgba(244, 67, 54, 0.5);
  background: rgba(244, 67, 54, 0.14);
  color: #ff8a80;
}

body.theme-light .pilot-profile-certificate-list li {
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .pilot-certificate-status.is-valid {
  color: #16803b;
}

body.theme-light .pilot-certificate-status.is-expiring {
  color: #936500;
}

body.theme-light .pilot-certificate-status.is-expired {
  color: #b42318;
}

.pilot-profile-insurance-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pilot-profile-insurance-date {
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.pilot-flight-log-card {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pilot-flight-log-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pilot-flight-log-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-flight-log-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pilot-flight-log-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(5, 100, 252, 0.55);
  border-radius: 999px;
  background: rgba(5, 100, 252, 0.14);
  color: #8ebcff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pilot-flight-log-unavailable ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.pilot-flight-log-availability {
  font-weight: 800;
}

.pilot-flight-log-unavailable .pilot-profile-secondary {
  margin-top: 10px;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.pilot-flight-log-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
}

.pilot-flight-log-import.hidden {
  display: none;
}

.pilot-flight-log-import .pilot-profile-action {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.pilot-flight-log-import .pilot-profile-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.pilot-flight-log-supported {
  flex: 1 0 100%;
}

.pilot-flight-log-status {
  flex: 1 1 170px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-flight-log-status.success {
  color: #54d38a;
}

.pilot-flight-log-status.error {
  color: #ff6b6b;
}

.pilot-fleet-sync-summary {
  flex: 1 0 100%;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid rgba(46, 204, 113, 0.34);
  border-radius: 8px;
  background: rgba(46, 204, 113, 0.08);
}

.pilot-fleet-sync-summary.hidden {
  display: none;
}

.pilot-fleet-sync-summary h5 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-fleet-sync-drone-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.pilot-fleet-sync-summary-section {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(46, 204, 113, 0.22);
}

.pilot-fleet-sync-summary-section h6 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pilot-fleet-sync-summary-section ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-fleet-sync-summary-section li {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
}

.pilot-fleet-sync-summary dl {
  display: grid;
  grid-template-columns: minmax(112px, 42%) 1fr;
  gap: 5px 9px;
  margin: 0;
}

.pilot-fleet-sync-summary dt,
.pilot-fleet-sync-summary dd {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.32;
}

.pilot-fleet-sync-summary dt {
  color: var(--muted);
}

.pilot-fleet-sync-summary dd {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pilot-privacy-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(244, 67, 54, 0.22);
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.06);
}

.pilot-privacy-panel + .pilot-privacy-panel {
  margin-top: 10px;
}

.pilot-privacy-panel-critical {
  border-color: rgba(244, 67, 54, 0.42);
}

.pilot-privacy-panel h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.pilot-privacy-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pilot-privacy-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-privacy-status.success {
  color: #54d38a;
}

.pilot-privacy-status.error {
  color: #ff6b6b;
}

.pilot-cloud-deletion-dialog-status {
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.pilot-cloud-deletion-dialog-status.success {
  border-color: rgba(84, 211, 138, 0.4);
  background: rgba(84, 211, 138, 0.08);
}

.pilot-cloud-deletion-dialog-status.error {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.08);
}

.pilot-confirm-dialog {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(380px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(244, 67, 54, 0.35);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.pilot-confirm-dialog.hidden {
  display: none;
}

.pilot-confirm-dialog h3,
.pilot-confirm-dialog p {
  margin: 0;
}

.pilot-confirm-dialog h3 {
  color: var(--text);
  font-size: 17px;
}

.pilot-confirm-dialog p,
.pilot-confirm-dialog li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pilot-confirm-dialog ul {
  margin: 0;
  padding-left: 18px;
}

.pilot-cloud-deletion-confirm-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pilot-cloud-deletion-confirm-label strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

#pilot-cloud-deletion-confirm-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.pilot-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.pilot-profile-action,
.pilot-profile-primary,
.pilot-profile-secondary {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.pilot-profile-action,
.pilot-profile-primary {
  background: #0564fc;
  border-color: #0564fc;
  color: #fff;
}

.pilot-profile-section-header .pilot-profile-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.pilot-profile-action:hover,
.pilot-profile-primary:hover {
  filter: brightness(1.08);
}

.pilot-profile-secondary {
  background: transparent;
  color: var(--text);
}

.pilot-profile-secondary:hover {
  background: var(--hover-bg);
}

.pilot-profile-secondary.danger {
  border-color: rgba(244, 67, 54, 0.55);
  color: #f44336;
}

.pilot-profile-secondary.hidden {
  display: none;
}

.pilot-profile-form {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 16px;
}

.pilot-profile-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-profile-form fieldset {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-profile-form legend {
  padding: 0 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.pilot-profile-fieldset-note {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-profile-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pilot-profile-form input[type="text"],
.pilot-profile-form input[type="email"],
.pilot-profile-form input[type="tel"],
.pilot-profile-form input[type="date"],
.pilot-profile-form input[type="number"],
.pilot-cloud-account-form input[type="text"],
.pilot-cloud-account-form input[type="email"],
.pilot-cloud-account-form input[type="password"],
.pilot-profile-form select,
.pilot-profile-form textarea {
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}

.pilot-profile-form textarea {
  min-height: 82px;
  resize: vertical;
  line-height: 1.35;
}

.pilot-profile-form select {
  color-scheme: dark;
}

.pilot-profile-form select option {
  background: #1f242b;
  color: #f5f7fb;
}

body.theme-light .pilot-profile-form input[type="text"],
body.theme-light .pilot-profile-form input[type="email"],
body.theme-light .pilot-profile-form input[type="tel"],
body.theme-light .pilot-profile-form input[type="date"],
body.theme-light .pilot-profile-form input[type="number"],
body.theme-light .pilot-cloud-account-form input[type="text"],
body.theme-light .pilot-cloud-account-form input[type="email"],
body.theme-light .pilot-cloud-account-form input[type="password"],
body.theme-light .pilot-profile-form select,
body.theme-light .pilot-profile-form textarea {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-cloud-account-form input:disabled,
.pilot-cloud-account-form button:disabled,
.pilot-cloud-account-actions button:disabled,
.pilot-cloud-account-switcher button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pilot-cloud-account-actions button.is-static-disabled:disabled {
  cursor: not-allowed;
}

body.theme-light .pilot-profile-form select {
  color-scheme: light;
}

body.theme-light .pilot-profile-form select option {
  background: #ffffff;
  color: #1f2933;
}

.pilot-profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
}

.pilot-profile-check.hidden,
.pilot-profile-fieldset-note.hidden {
  display: none;
}

.pilot-profile-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pilot-profile-check span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.pilot-drone-sts-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 0.7fr);
  gap: 9px 12px;
  align-items: end;
  min-width: 0;
}

.pilot-drone-sts-check {
  align-self: center;
  min-width: 0;
}

.pilot-drone-sts-grid input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.pilot-drone-sts-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pilot-profile-certificates {
  display: grid;
  gap: 10px;
}

.pilot-certificate-editor {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-certificate-editor {
  background: rgba(0, 0, 0, 0.018);
}

.pilot-certificate-editor.is-owned {
  border-color: rgba(46, 204, 113, 0.32);
  background: rgba(46, 204, 113, 0.055);
}

body.theme-light .pilot-certificate-editor.is-owned {
  background: rgba(46, 204, 113, 0.08);
}

.pilot-certificate-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pilot-certificate-possessed {
  min-width: 0;
}

.pilot-certificate-possessed span {
  font-size: 14px;
  font-weight: 800;
}

.pilot-certificate-editor-status[hidden],
.pilot-certificate-fields[hidden] {
  display: none;
}

.pilot-certificate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pilot-certificate-field {
  display: grid;
  gap: 5px;
}

.pilot-certificate-field:nth-child(3),
.pilot-certificate-field:nth-child(4) {
  grid-column: 1 / -1;
}

.pilot-certificate-field-wide {
  grid-column: 1 / -1;
}

.pilot-certificate-field textarea {
  min-height: 96px;
}

.pilot-certification-privileges {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.pilot-certification-privileges-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.pilot-profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pilot-profile-photo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot-profile-photo-button {
  display: inline-flex;
  align-items: center;
}

#pilot-profile-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.pilot-profile-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px -18px -16px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.pilot-workspace-places-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pilot-fleet-overview {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.pilot-fleet-overview.hidden {
  display: none;
}

.pilot-fleet-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pilot-fleet-overview-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-fleet-overview-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.pilot-fleet-overview-stats span {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pilot-fleet-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.pilot-fleet-overview-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

body.theme-light .pilot-fleet-overview-card {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-fleet-overview-card h5 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-fleet-chart-canvas {
  width: 100%;
  height: 190px;
  display: block;
}

.pilot-fleet-chart-legend-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-fleet-chart-legend-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.pilot-fleet-chart-legend-list i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--fleet-color);
}

.pilot-fleet-chart-legend-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-fleet-chart-legend-list b {
  color: var(--muted);
  font-size: 11px;
}

.pilot-fleet-overview-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-fleet-calendar {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pilot-fleet-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-fleet-calendar-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pilot-fleet-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 9px;
}

.pilot-fleet-calendar-month {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pilot-fleet-calendar-month h6 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-fleet-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.pilot-fleet-calendar-day {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(127, 143, 166, 0.28);
  border-radius: 999px;
  background: rgba(127, 143, 166, 0.08);
}

.pilot-fleet-calendar-day.is-level-1 { background: rgba(99, 167, 255, 0.28); border-color: rgba(99, 167, 255, 0.38); }
.pilot-fleet-calendar-day.is-level-2 { background: rgba(99, 167, 255, 0.44); border-color: rgba(99, 167, 255, 0.56); }
.pilot-fleet-calendar-day.is-level-3 { background: rgba(99, 167, 255, 0.62); border-color: rgba(99, 167, 255, 0.72); }
.pilot-fleet-calendar-day.is-level-4 { background: rgba(45, 121, 214, 0.82); border-color: rgba(45, 121, 214, 0.9); }
.pilot-fleet-calendar-day.is-level-5 { background: #1d5fae; border-color: #1d5fae; }

.pilot-fleet-overview-map {
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pilot-fleet-map-cluster {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 167, 255, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 900;
}

.pilot-fleet-map-cluster.is-single {
  width: 16px;
  height: 16px;
  margin: 9px;
  background: #27ae60;
}

.pilot-organization-members {
  margin-top: 12px;
}

.pilot-operator-invitation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 18px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(5, 100, 252, 0.42);
  border-radius: 8px;
  background: rgba(5, 100, 252, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.pilot-operator-invitation-banner.hidden {
  display: none;
}

.pilot-workspace-section.hidden {
  display: none;
}

.pilot-operator-invitation-banner .pilot-profile-secondary {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(5, 100, 252, 0.18);
}

.pilot-organization-members-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

body.theme-light .pilot-organization-members-card {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-organization-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pilot-organization-members-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-organization-members-list {
  display: grid;
  gap: 8px;
}

.pilot-organization-members-group {
  display: grid;
  gap: 8px;
}

.pilot-organization-members-group + .pilot-organization-members-group {
  margin-top: 12px;
}

.pilot-organization-members-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pilot-organization-member {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-organization-member {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-certificates-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-certificates-dashboard h5 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.pilot-certificates-dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
}

.pilot-certificates-dashboard-row strong {
  color: var(--text);
  font-size: 14px;
}

.pilot-shared-certificates,
.pilot-certificate-sharing-notice,
.pilot-operator-invitation-disclosure {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-operator-invitation-disclosure {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pilot-shared-certificates.success {
  border-color: rgba(40, 167, 69, 0.35);
}

.pilot-shared-certificates.warning {
  border-color: rgba(255, 193, 7, 0.45);
}

.pilot-shared-certificates.danger {
  border-color: rgba(220, 53, 69, 0.45);
}

.pilot-shared-certificates-header,
.pilot-shared-certificates-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pilot-shared-certificates-badge {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.pilot-shared-certificates-source,
.pilot-shared-certificates-summary,
.pilot-shared-certificates-next,
.pilot-shared-certificates-row,
.pilot-shared-certificates-note,
.pilot-certificate-sharing-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pilot-shared-certificates-details summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.pilot-shared-certificates-details[open] {
  display: grid;
  gap: 6px;
}

.pilot-certificate-sharing-notice strong {
  color: var(--text);
  font-size: 13px;
}

.pilot-workspace-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pilot-workspace-archive-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.pilot-workspace-place {
  width: 100%;
  display: grid;
  gap: 9px;
  text-align: left;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body.theme-light .pilot-workspace-place {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-workspace-place.is-archived {
  border-style: dashed;
  opacity: 0.78;
}

.pilot-workspace-place-name {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.pilot-workspace-place-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pilot-workspace-place-type {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.pilot-workspace-place-coordinates {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.pilot-workspace-place-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-workspace-place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-workspace-place-tags li {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
}

.pilot-workspace-drone-details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.pilot-workspace-drone-details .pilot-profile-summary-item {
  grid-template-columns: minmax(92px, 34%) 1fr;
  padding: 6px 0;
}

.pilot-drone-detail-dialog {
  position: absolute;
  z-index: 5;
  inset: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
}

.pilot-drone-detail-dialog.hidden {
  display: none;
}

.pilot-drone-detail-content {
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 16px;
}

.pilot-flight-record-section > .pilot-profile-summary-item {
  display: none;
}

.pilot-drone-qtb-section > .pilot-qtb-full-row {
  grid-column: 1 / -1;
}

.pilot-flight-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.pilot-flight-record-item:first-of-type {
  border-top: 0;
}

.pilot-flight-record-item .pilot-profile-summary-item {
  padding: 0;
  border-top: 0;
}

.pilot-battery-history-summary {
  min-width: 0;
}

.pilot-battery-indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  min-width: 0;
}

.pilot-battery-indicator {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-battery-indicator {
  background: rgba(13, 71, 161, 0.035);
}

.pilot-battery-indicator-header {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pilot-battery-indicator-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.pilot-battery-indicator-value {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pilot-battery-indicator-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .pilot-battery-indicator-track {
  background: rgba(13, 71, 161, 0.08);
}

.pilot-battery-indicator-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #63a7ff;
}

.pilot-battery-indicator-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.pilot-battery-info-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-battery-info-card {
  background: rgba(13, 71, 161, 0.035);
}

.pilot-battery-info-card h5 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.pilot-battery-info-card p,
.pilot-battery-info-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pilot-battery-info-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-battery-info-card li {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.pilot-battery-info-card li::before {
  content: "\2713";
  margin-right: 7px;
  color: #27ae60;
}

.pilot-battery-warning-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pilot-battery-warning {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-battery-warning h5,
.pilot-battery-warning p {
  margin: 0;
}

.pilot-battery-warning h5 {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.pilot-battery-warning p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pilot-battery-warning.is-green {
  border-left-color: #27ae60;
}

.pilot-battery-warning.is-yellow {
  border-left-color: #f2c94c;
}

.pilot-battery-warning.is-orange {
  border-left-color: #f2994a;
}

.pilot-battery-warning.is-info {
  border-left-color: #63a7ff;
}

.pilot-flight-record-actions,
.pilot-flight-detail-navigation,
.pilot-flight-chart-toolbar,
.pilot-flight-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pilot-flight-detail-navigation {
  justify-content: flex-start;
}

.pilot-flight-chart {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 0 12px;
  border-top: 1px solid var(--border);
}

.pilot-flight-chart:first-of-type {
  border-top: 0;
}

.pilot-flight-chart-toolbar {
  justify-content: space-between;
}

.pilot-flight-chart-toolbar h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.pilot-flight-chart-legend {
  color: var(--muted);
  font-size: 12px;
}

.pilot-flight-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pilot-flight-chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.pilot-flight-chart-swatch.is-left {
  background: #2f80ed;
}

.pilot-flight-chart-swatch.is-right {
  background: #f2994a;
}

.pilot-flight-chart-canvas {
  width: 100%;
  max-width: 100%;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: crosshair;
}

.pilot-flight-quality-section {
  min-width: 0;
}

.pilot-flight-quality-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pilot-flight-quality-dial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  min-width: 0;
}

.pilot-flight-quality-dial {
  --quality-color: #27ae60;
  min-width: 0;
  min-height: 154px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transform: scale(1);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pilot-flight-quality-dial:hover,
.pilot-flight-quality-dial:focus-visible,
.pilot-flight-quality-dial.is-selected {
  transform: translateY(-1px) scale(1.015);
}

.pilot-flight-quality-dial:focus-visible {
  outline: 2px solid var(--quality-color);
  outline-offset: 2px;
}

.pilot-flight-quality-dial.is-green {
  --quality-color: #27ae60;
}

.pilot-flight-quality-dial.is-green:hover,
.pilot-flight-quality-dial.is-green:focus-visible,
.pilot-flight-quality-dial.is-green.is-selected {
  border-color: rgba(39, 174, 96, 0.76);
  background: rgba(39, 174, 96, 0.11);
  box-shadow: 0 0 0 1px rgba(39, 174, 96, 0.34);
}

.pilot-flight-quality-dial.is-yellow {
  --quality-color: #f2c94c;
}

.pilot-flight-quality-dial.is-yellow:hover,
.pilot-flight-quality-dial.is-yellow:focus-visible,
.pilot-flight-quality-dial.is-yellow.is-selected {
  border-color: rgba(242, 201, 76, 0.8);
  background: rgba(242, 201, 76, 0.12);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.34);
}

.pilot-flight-quality-dial.is-orange {
  --quality-color: #f2994a;
}

.pilot-flight-quality-dial.is-orange:hover,
.pilot-flight-quality-dial.is-orange:focus-visible,
.pilot-flight-quality-dial.is-orange.is-selected {
  border-color: rgba(242, 153, 74, 0.82);
  background: rgba(242, 153, 74, 0.12);
  box-shadow: 0 0 0 1px rgba(242, 153, 74, 0.34);
}

.pilot-flight-quality-dial.is-red {
  --quality-color: #eb5757;
}

.pilot-flight-quality-dial.is-red:hover,
.pilot-flight-quality-dial.is-red:focus-visible,
.pilot-flight-quality-dial.is-red.is-selected {
  border-color: rgba(235, 87, 87, 0.82);
  background: rgba(235, 87, 87, 0.12);
  box-shadow: 0 0 0 1px rgba(235, 87, 87, 0.34);
}

.pilot-flight-quality-dial-ring {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--quality-color) var(--dial-fill), rgba(127, 143, 166, 0.22) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pilot-flight-quality-dial-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: var(--panel);
  border: 1px solid rgba(127, 143, 166, 0.16);
}

.pilot-flight-quality-dial-value {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.pilot-flight-quality-dial-title {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pilot-flight-quality-dial-tone {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-flight-quality-coach {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pilot-flight-quality-coach.is-updating {
  opacity: 0.88;
  transform: translateY(2px);
}

.pilot-flight-quality-headline {
  --headline-color: #27ae60;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(39, 174, 96, 0.44);
  border-radius: 8px;
  background: rgba(39, 174, 96, 0.1);
}

.pilot-flight-quality-headline.is-good {
  --headline-color: #f2c94c;
  border-color: rgba(242, 201, 76, 0.5);
  background: rgba(242, 201, 76, 0.1);
}

.pilot-flight-quality-headline.is-warning {
  --headline-color: #f2994a;
  border-color: rgba(242, 153, 74, 0.5);
  background: rgba(242, 153, 74, 0.1);
}

.pilot-flight-quality-headline.is-critical {
  --headline-color: #eb5757;
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.1);
}

.pilot-flight-quality-headline.is-needs-improvement {
  --headline-color: #f2994a;
  border-color: rgba(242, 153, 74, 0.5);
  background: rgba(242, 153, 74, 0.1);
}

.pilot-flight-quality-headline.is-high-risk {
  --headline-color: #eb5757;
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.1);
}

.pilot-flight-quality-headline-marker {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--headline-color);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.18);
}

.pilot-flight-quality-headline.is-good .pilot-flight-quality-headline-marker {
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.18);
}

.pilot-flight-quality-headline.is-warning .pilot-flight-quality-headline-marker {
  box-shadow: 0 0 0 4px rgba(242, 153, 74, 0.18);
}

.pilot-flight-quality-headline.is-critical .pilot-flight-quality-headline-marker {
  box-shadow: 0 0 0 4px rgba(235, 87, 87, 0.18);
}

.pilot-flight-quality-headline.is-needs-improvement .pilot-flight-quality-headline-marker {
  box-shadow: 0 0 0 4px rgba(242, 153, 74, 0.18);
}

.pilot-flight-quality-headline.is-high-risk .pilot-flight-quality-headline-marker {
  box-shadow: 0 0 0 4px rgba(235, 87, 87, 0.18);
}

.pilot-flight-quality-headline strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-flight-quality-headline p,
.pilot-flight-quality-coach p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pilot-flight-quality-headline-meta {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.pilot-flight-quality-overall-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-flight-quality-coach > h4,
.pilot-flight-quality-coach-selected h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}

.pilot-flight-quality-coach-hint {
  color: var(--text) !important;
  font-weight: 800;
}

.pilot-flight-quality-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.pilot-flight-quality-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pilot-flight-quality-chip.is-green {
  border-color: rgba(39, 174, 96, 0.44);
  background: rgba(39, 174, 96, 0.1);
}

.pilot-flight-quality-chip.is-yellow {
  border-color: rgba(242, 201, 76, 0.5);
  background: rgba(242, 201, 76, 0.1);
}

.pilot-flight-quality-chip.is-orange {
  border-color: rgba(242, 153, 74, 0.5);
  background: rgba(242, 153, 74, 0.1);
}

.pilot-flight-quality-chip.is-red {
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.1);
}

.pilot-flight-quality-coach-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.pilot-flight-quality-score {
  --quality-color: #27ae60;
  min-width: 78px;
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.44);
}

.pilot-flight-quality-score.is-green {
  --quality-color: #27ae60;
}

.pilot-flight-quality-score.is-yellow {
  --quality-color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
  border-color: rgba(242, 201, 76, 0.5);
}

.pilot-flight-quality-score.is-orange {
  --quality-color: #f2994a;
  background: rgba(242, 153, 74, 0.12);
  border-color: rgba(242, 153, 74, 0.5);
}

.pilot-flight-quality-score.is-red {
  --quality-color: #eb5757;
  background: rgba(235, 87, 87, 0.12);
  border-color: rgba(235, 87, 87, 0.5);
}

.pilot-flight-quality-score span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.pilot-flight-quality-score strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.pilot-flight-quality-score small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.pilot-flight-quality-coach-block {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-top: 3px;
}

.pilot-flight-quality-coach-block h5 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.pilot-flight-quality-coach-block ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.pilot-flight-quality-coach-block li {
  padding-left: 1px;
}

.pilot-flight-quality-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-flight-quality-metric span,
.pilot-flight-quality-event span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-flight-quality-metric strong,
.pilot-flight-quality-event strong,
.pilot-flight-quality-observation strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pilot-flight-quality-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pilot-flight-quality-events,
.pilot-flight-quality-observations,
.pilot-flight-quality-suggestions,
.pilot-flight-quality-evidence {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-event,
.pilot-flight-quality-observation,
.pilot-flight-quality-suggestion {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 9px;
  border-left: 3px solid rgba(99, 167, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-flight-quality-event-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-event-icon {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(99, 167, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 167, 255, 0.14);
}

.pilot-flight-quality-event.is-warning .pilot-flight-quality-event-icon {
  background: #f2994a;
  box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.16);
}

.pilot-flight-quality-event.is-critical .pilot-flight-quality-event-icon {
  background: #eb5757;
  box-shadow: 0 0 0 3px rgba(235, 87, 87, 0.16);
}

.pilot-flight-quality-severity {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border: 1px solid rgba(99, 167, 255, 0.34);
  border-radius: 999px;
  color: #8ebcff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-flight-quality-severity.is-warning {
  border-color: rgba(242, 153, 74, 0.42);
  color: #f2994a;
}

.pilot-flight-quality-severity.is-critical {
  border-color: rgba(235, 87, 87, 0.42);
  color: #eb5757;
}

.pilot-flight-quality-event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  min-width: 0;
  margin: 2px 0 0;
}

.pilot-flight-quality-event-details dt,
.pilot-flight-quality-event-details dd,
.pilot-flight-quality-data-quality span,
.pilot-flight-quality-data-quality strong,
.pilot-flight-quality-score-overview span,
.pilot-flight-quality-score-overview strong,
.pilot-flight-quality-score-factor span,
.pilot-flight-quality-score-factor b {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
}

.pilot-flight-quality-event-details dt,
.pilot-flight-quality-data-quality span,
.pilot-flight-quality-score-overview span,
.pilot-flight-quality-score-factor span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-flight-quality-event-details dd,
.pilot-flight-quality-data-quality strong,
.pilot-flight-quality-score-overview strong,
.pilot-flight-quality-score-factor b {
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pilot-flight-quality-data-quality {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-data-quality div,
.pilot-flight-quality-score-overview div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-flight-quality-evidence {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.pilot-flight-quality-score-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-score-factors {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pilot-flight-quality-score-factor {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.pilot-flight-quality-score-factor > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-flight-quality-score-factor p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pilot-flight-quality-score-details summary {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.pilot-flight-quality-score-details[open] summary {
  margin-bottom: 7px;
}

.pilot-flight-quality-suggestion {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.pilot-flight-quality-overflow-note {
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 800;
}

.pilot-flight-quality-event.is-warning,
.pilot-flight-quality-observation.is-warning {
  border-left-color: #f2994a;
}

.pilot-flight-quality-event.is-critical,
.pilot-flight-quality-observation.is-critical {
  border-left-color: #eb5757;
}

body.theme-light .pilot-flight-quality-dial {
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .pilot-flight-quality-dial-ring::before {
  background: var(--panel);
  border-color: rgba(12, 25, 44, 0.12);
}

body.theme-light .pilot-flight-quality-metric,
body.theme-light .pilot-flight-quality-event,
body.theme-light .pilot-flight-quality-observation,
body.theme-light .pilot-flight-quality-suggestion,
body.theme-light .pilot-flight-quality-data-quality div,
body.theme-light .pilot-flight-quality-score-overview div,
body.theme-light .pilot-flight-quality-score-factor {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-flight-replay-section {
  min-width: 0;
}

.pilot-flight-replay-toolbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(200px, 0.35fr) auto minmax(280px, 1fr);
  align-items: end;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.pilot-flight-replay-mode-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pilot-flight-replay-mode-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-flight-replay-mode {
  min-height: 34px;
  min-width: min(220px, 100%);
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  color-scheme: dark;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.pilot-flight-replay-mode option {
  background: var(--panel);
  color: var(--text);
}

body.theme-light .pilot-flight-replay-mode {
  background: rgba(0, 0, 0, 0.025);
  color-scheme: light;
}

.pilot-flight-replay-layer-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.pilot-flight-replay-layer-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pilot-flight-replay-layer-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0564fc;
}

.pilot-flight-replay-wind-mode {
  min-height: 34px;
  max-width: 112px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  color-scheme: dark;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.pilot-flight-replay-wind-mode-label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

body.theme-light .pilot-flight-replay-wind-mode {
  background: rgba(0, 0, 0, 0.025);
  color-scheme: light;
}

body.theme-light .pilot-flight-replay-wind-mode-label {
  background: rgba(0, 0, 0, 0.025);
}

.pilot-flight-replay-player {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pilot-flight-replay-play,
.pilot-flight-replay-speed-button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.pilot-flight-replay-play {
  min-width: 72px;
  background: #0564fc;
  border-color: #0564fc;
  color: #fff;
}

.pilot-flight-replay-range {
  width: 100%;
  min-width: 0;
  accent-color: #0564fc;
}

.pilot-flight-replay-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.pilot-flight-replay-speed {
  display: inline-flex;
  gap: 4px;
}

.pilot-flight-replay-speed-button {
  min-width: 38px;
  padding: 6px 7px;
}

.pilot-flight-replay-speed-button.is-active {
  border-color: #0564fc;
  background: rgba(5, 100, 252, 0.16);
  color: #8ebcff;
}

body.theme-light .pilot-flight-replay-speed-button.is-active {
  color: #064fbf;
}

.pilot-flight-replay-map {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-flight-replay-map .leaflet-control-attribution {
  font-size: 10px;
}

.pilot-flight-weather-panel {
  position: absolute;
  right: 12px;
  bottom: 168px;
  z-index: 701;
  width: min(268px, calc(100% - 24px));
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 18, 32, 0.86);
  color: #f8fafc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.theme-light .pilot-flight-weather-panel {
  border-color: rgba(12, 25, 44, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #172033;
  box-shadow: 0 14px 34px rgba(12, 25, 44, 0.18);
}

.pilot-flight-weather-title {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-flight-weather-body {
  display: grid;
  gap: 9px;
}

.pilot-flight-weather-section {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.pilot-flight-weather-section.is-attenuated {
  opacity: 0.62;
}

.pilot-flight-weather-section.is-historical {
  border-left: 3px solid #8ebcff;
}

.pilot-flight-weather-section.is-estimated {
  border-left: 3px solid #5ee49d;
}

.pilot-flight-weather-row-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pilot-flight-weather-label,
.pilot-flight-weather-meta,
.pilot-flight-weather-subtitle,
.pilot-flight-weather-note,
.pilot-flight-weather-altitude,
.pilot-flight-weather-status {
  color: rgba(248, 250, 252, 0.7);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

body.theme-light .pilot-flight-weather-label,
body.theme-light .pilot-flight-weather-meta,
body.theme-light .pilot-flight-weather-subtitle,
body.theme-light .pilot-flight-weather-note,
body.theme-light .pilot-flight-weather-altitude,
body.theme-light .pilot-flight-weather-status {
  color: rgba(23, 32, 51, 0.64);
}

.pilot-flight-weather-value {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

body.theme-light .pilot-flight-weather-value {
  color: #172033;
}

.pilot-flight-weather-value strong {
  font-size: 13px;
  font-weight: 900;
}

.pilot-flight-weather-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.pilot-flight-weather-chip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.pilot-flight-weather-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(142, 188, 255, 0.18);
  color: #b9d5ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.pilot-flight-weather-chip-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pilot-flight-weather-chip-text small {
  color: rgba(248, 250, 252, 0.62);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.pilot-flight-weather-chip-text strong {
  min-width: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pilot-flight-weather-chip.is-temp .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-clear .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-partly .pilot-flight-weather-chip-icon {
  background: rgba(242, 201, 76, 0.2);
  color: #ffe08a;
}

.pilot-flight-weather-chip.is-humidity .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-cloudy .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-fog .pilot-flight-weather-chip-icon {
  background: rgba(142, 188, 255, 0.2);
  color: #b9d5ff;
}

.pilot-flight-weather-chip.is-rain .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-snow .pilot-flight-weather-chip-icon,
.pilot-flight-weather-chip.is-storm .pilot-flight-weather-chip-icon {
  background: rgba(91, 214, 255, 0.2);
  color: #96e8ff;
}

body.theme-light .pilot-flight-weather-section,
body.theme-light .pilot-flight-weather-chip {
  background: rgba(12, 25, 44, 0.055);
}

body.theme-light .pilot-flight-weather-chip-text small {
  color: rgba(23, 32, 51, 0.58);
}

body.theme-light .pilot-flight-weather-chip-text strong {
  color: #172033;
}

.pilot-flight-weather-arrow {
  flex: 0 0 auto;
  position: relative;
  width: 24px;
  height: 14px;
  transform: rotate(var(--wind-to-heading));
  transform-origin: center;
}

.pilot-flight-weather-arrow::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 15px;
  border-top: 2px solid #8ebcff;
}

.pilot-flight-weather-arrow::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #8ebcff;
}

.pilot-flight-weather-reliability {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-flight-weather-reliability.is-high {
  color: #5ee49d;
}

.pilot-flight-weather-reliability.is-medium {
  color: #8ebcff;
}

.pilot-flight-weather-reliability.is-low {
  color: #f2c94c;
}

.pilot-flight-weather-reliability.is-unreliable {
  color: #ff9f9f;
}

body.theme-light .pilot-flight-weather-reliability {
  border-top-color: rgba(12, 25, 44, 0.12);
  color: #172033;
}

body.theme-light .pilot-wind-diagnostics-intro {
  background: rgba(0, 0, 0, 0.02);
}

.pilot-wind-diagnostics {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.pilot-wind-diagnostics-summary {
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  user-select: none;
}

.pilot-wind-diagnostics-body {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
  min-width: 0;
}

.pilot-wind-diagnostics-intro {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-wind-diagnostics-intro h4,
.pilot-wind-diagnostics-intro p {
  margin: 0;
}

.pilot-wind-diagnostics-intro h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-diagnostics-intro p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pilot-wind-diagnostics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.pilot-wind-diagnostics-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-wind-diagnostics-metric span,
.pilot-wind-diagnostics-status,
.pilot-wind-diagnostics-readout {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-wind-diagnostics-metric strong {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pilot-wind-diagnostics-chart-host,
.pilot-wind-diagnostics-charts {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pilot-wind-diagnostics-series-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-wind-diagnostics-series-title,
.pilot-wind-diagnostics-series-toggle {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.pilot-wind-diagnostics-series-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  user-select: none;
}

.pilot-wind-diagnostics-series-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #2f80ed;
}

.pilot-wind-diagnostics-series-toggle i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.pilot-wind-diagnostics-series-toggle.is-disabled {
  opacity: 0.5;
}

.pilot-wind-solver-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 100, 252, 0.055);
}

.pilot-wind-solver-header,
.pilot-wind-solver-state h5 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pilot-wind-solver-header h4,
.pilot-wind-solver-state h5 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-solver-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.pilot-wind-solver-states {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pilot-wind-solver-state {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-wind-solver-builder {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-wind-solver-builder h5 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-solver-aborted {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(235, 87, 87, 0.38);
  border-radius: 8px;
  background: rgba(235, 87, 87, 0.12);
}

.pilot-wind-solver-aborted strong {
  color: #ff9f9f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-solver-aborted span {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-wind-solver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.pilot-wind-solver-segment-list {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pilot-wind-solver-segment-list span,
.pilot-wind-solver-residuals span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.pilot-wind-solver-segment-list strong,
.pilot-wind-solver-residuals strong {
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pilot-wind-solver-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-solver-residuals {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.pilot-wind-solver-residuals div {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.pilot-wind-solver-residuals .is-supported strong {
  color: #5ee49d;
}

.pilot-wind-solver-residuals .is-rejected strong {
  color: #ff9f9f;
}

.pilot-wind-diagnostics-chart,
.pilot-wind-diagnostics-segments {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pilot-wind-diagnostics-chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.pilot-wind-diagnostics-chart-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.pilot-wind-diagnostics-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  min-width: 0;
}

.pilot-wind-diagnostics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.pilot-wind-diagnostics-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.pilot-wind-diagnostics-canvas {
  width: 100%;
  height: 240px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  cursor: crosshair;
}

.pilot-wind-diagnostics-canvas.is-quality {
  height: 280px;
}

.pilot-wind-diagnostics-canvas.is-confidence,
.pilot-wind-diagnostics-canvas.is-dispersion {
  height: 220px;
}

.pilot-wind-diagnostics-segment-canvas {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  cursor: crosshair;
}

.pilot-wind-diagnostics-tooltip {
  position: absolute;
  z-index: 4;
  width: min(320px, calc(100% - 16px));
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 18, 32, 0.96);
  color: #f8fafc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

body.theme-light .pilot-wind-diagnostics-tooltip {
  border-color: rgba(12, 25, 44, 0.16);
  background: rgba(255, 255, 255, 0.97);
  color: #172033;
  box-shadow: 0 12px 28px rgba(12, 25, 44, 0.18);
}

.pilot-wind-diagnostics-tooltip-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 4px 9px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.25;
}

.pilot-wind-diagnostics-tooltip-grid span {
  color: rgba(248, 250, 252, 0.68);
  font-weight: 800;
}

.pilot-wind-diagnostics-tooltip-grid strong {
  min-width: 0;
  color: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.theme-light .pilot-wind-diagnostics-tooltip-grid span {
  color: rgba(23, 32, 51, 0.62);
}

body.theme-light .pilot-wind-diagnostics-tooltip-grid strong {
  color: #172033;
}

.pilot-flight-weather-status {
  margin: 0;
}

.pilot-flight-replay-sticks {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 700;
  width: min(268px, calc(100% - 24px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 18, 32, 0.86);
  color: #f8fafc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.theme-light .pilot-flight-replay-sticks {
  border-color: rgba(12, 25, 44, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #172033;
  box-shadow: 0 14px 34px rgba(12, 25, 44, 0.18);
}

.pilot-flight-replay-sticks-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.pilot-flight-replay-sticks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pilot-flight-replay-stick-pad {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.pilot-flight-replay-stick-label {
  color: rgba(248, 250, 252, 0.78);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

body.theme-light .pilot-flight-replay-stick-label {
  color: rgba(23, 32, 51, 0.68);
}

.pilot-flight-replay-stick-zone {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(5, 100, 252, 0.22) 0 2px, transparent 3px),
    rgba(15, 23, 42, 0.54);
}

body.theme-light .pilot-flight-replay-stick-zone {
  border-color: rgba(71, 85, 105, 0.28);
  background:
    radial-gradient(circle at center, rgba(5, 100, 252, 0.16) 0 2px, transparent 3px),
    rgba(241, 245, 249, 0.78);
}

.pilot-flight-replay-stick-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(148, 163, 184, 0.42);
  transform: translate(-50%, -50%);
}

.pilot-flight-replay-stick-cross.is-x {
  width: 56px;
  height: 1px;
}

.pilot-flight-replay-stick-cross.is-y {
  width: 1px;
  height: 56px;
}

.pilot-flight-replay-stick-knob {
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #28d17c;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
  transition: transform 80ms linear;
}

.pilot-flight-replay-stick-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  color: rgba(248, 250, 252, 0.7);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

body.theme-light .pilot-flight-replay-stick-values {
  color: rgba(23, 32, 51, 0.64);
}

.pilot-flight-replay-sticks-status {
  min-height: 12px;
  margin-top: 6px;
  color: rgba(248, 250, 252, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

body.theme-light .pilot-flight-replay-sticks-status {
  color: rgba(23, 32, 51, 0.62);
}

.pilot-flight-replay-sticks:not(.is-empty) .pilot-flight-replay-sticks-status {
  display: none;
}

.pilot-flight-replay-marker {
  background: transparent;
  border: 0;
}

.pilot-flight-replay-marker span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--marker-color);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.pilot-flight-replay-drone-marker {
  background: transparent;
  border: 0;
}

.pilot-flight-replay-drone-marker span {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: rotate(var(--replay-heading));
  transform-origin: center;
}

.pilot-flight-replay-drone-marker span::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 24px solid #0564fc;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.42));
}

.pilot-flight-replay-drone-marker span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(4px);
}

.pilot-wind-analysis-arrow {
  overflow: visible;
  background: transparent;
  border: 0;
}

.pilot-wind-analysis-arrow span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--wind-length);
  height: 0;
  border-top: 3px solid var(--wind-color);
  border-radius: 999px;
  transform: rotate(var(--wind-heading));
  transform-origin: left center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42));
}

.pilot-wind-analysis-arrow span::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--wind-color);
}

.pilot-wind-analysis-arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -7px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--wind-color);
}

.pilot-wind-analysis-tooltip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(10, 18, 32, 0.94);
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pilot-wind-analysis-tooltip-content {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  min-width: 118px;
  font-size: 11px;
  line-height: 1.25;
}

.pilot-wind-analysis-tooltip-content strong {
  color: rgba(248, 250, 252, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.pilot-wind-analysis-tooltip-content span {
  color: #fff;
  font-weight: 900;
  text-align: right;
}

body.theme-light .pilot-wind-analysis-tooltip {
  border-color: rgba(12, 25, 44, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: #172033;
  box-shadow: 0 10px 28px rgba(12, 25, 44, 0.18);
}

body.theme-light .pilot-wind-analysis-tooltip-content strong {
  color: rgba(23, 32, 51, 0.62);
}

body.theme-light .pilot-wind-analysis-tooltip-content span {
  color: #172033;
}

.pilot-flight-replay-telemetry {
  grid-column: 1 / -1;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

body.theme-light .pilot-flight-replay-telemetry {
  background: rgba(0, 0, 0, 0.018);
}

.pilot-flight-replay-telemetry-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.pilot-flight-replay-telemetry-table th,
.pilot-flight-replay-telemetry-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.pilot-flight-replay-telemetry-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-flight-replay-telemetry-table tbody tr {
  cursor: pointer;
}

.pilot-flight-replay-telemetry-table tbody tr:hover {
  background: var(--hover-bg);
}

.pilot-flight-replay-telemetry-table tbody tr.is-active {
  background: rgba(5, 100, 252, 0.22);
  box-shadow: inset 4px 0 0 #0564fc;
}

.pilot-flight-replay-log-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilot-flight-chart-readout {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pilot-workspace-place-actions,
.pilot-workspace-place-delete-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pilot-workspace-place-delete-confirm.hidden {
  display: none;
}

.pilot-workspace-place-action {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.pilot-workspace-place-action:hover {
  background: var(--hover-bg);
}

.pilot-workspace-place-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pilot-workspace-place-action:disabled:hover {
  background: transparent;
}

.pilot-workspace-place-action.primary {
  background: #0564fc;
  border-color: #0564fc;
  color: #fff;
}

.pilot-workspace-place-action.danger {
  border-color: rgba(244, 67, 54, 0.55);
  color: #f44336;
}

.pilot-workspace-place-delete-confirm {
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(244, 67, 54, 0.35);
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.08);
}

.pilot-workspace-place-delete-confirm span {
  flex: 1 1 150px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pilot-workspace-empty {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.pilot-workspace-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.pilot-place-errors {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(244, 67, 54, 0.45);
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.09);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.pilot-place-errors.hidden {
  display: none;
}

.pilot-place-errors ul {
  margin: 0;
  padding-left: 18px;
}

.pilot-place-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pilot-place-coordinate-grid > div {
  min-width: 0;
}

.pilot-place-map-center {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .pilot-workspace-overlay {
    align-items: flex-start;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px;
  }

  .pilot-workspace-modal {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
  }

  .pilot-profile-editor {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
  }

  .pilot-workspace-header {
    padding: 16px 52px 11px 14px;
  }

  .pilot-workspace-content {
    padding: 12px 14px 14px;
  }

  .pilot-certification-banner {
    margin: 0 14px 12px;
  }

  .pilot-profile-form {
    padding: 12px 14px 14px;
  }

  .pilot-profile-summary-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .pilot-profile-completion-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pilot-profile-actions {
    margin: 4px -14px -14px;
    padding: 12px 14px 14px;
  }

  .pilot-certificate-editor-header {
    align-items: flex-start;
  }

  .pilot-certificate-fields {
    grid-template-columns: 1fr;
  }

  .pilot-place-coordinate-grid {
    grid-template-columns: 1fr;
  }

  .pilot-drone-sts-grid {
    grid-template-columns: 1fr;
  }

  .pilot-workspace-place-header {
    flex-direction: column;
    gap: 5px;
  }

  .pilot-workspace-place-type {
    max-width: 100%;
    text-align: left;
  }

  .pilot-flight-replay-toolbar {
    grid-template-columns: 1fr;
  }

  .pilot-flight-replay-player {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pilot-flight-replay-layer-controls {
    flex-wrap: wrap;
  }

  .pilot-flight-replay-time,
  .pilot-flight-replay-speed {
    grid-column: 1 / -1;
  }

  .pilot-flight-replay-speed {
    justify-content: flex-start;
  }

  .pilot-flight-quality-coach-selected {
    grid-template-columns: 1fr;
  }

  .pilot-flight-quality-score {
    justify-items: start;
    width: 100%;
    box-sizing: border-box;
  }

  .pilot-flight-quality-metrics {
    grid-template-columns: 1fr;
  }

  .pilot-flight-quality-event-details,
  .pilot-flight-quality-data-quality,
  .pilot-flight-quality-score-overview {
    grid-template-columns: 1fr;
  }

  .pilot-flight-replay-sticks {
    right: 8px;
    bottom: 8px;
    width: min(230px, calc(100% - 16px));
    padding: 8px;
  }

  .pilot-flight-weather-panel {
    right: 8px;
    bottom: 150px;
    width: min(230px, calc(100% - 16px));
    padding: 8px;
  }

  .pilot-wind-diagnostics-body {
    padding: 0 10px 10px;
  }

  .pilot-wind-diagnostics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-wind-solver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-wind-diagnostics-chart-header {
    display: grid;
  }

  .pilot-wind-diagnostics-legend {
    justify-content: flex-start;
  }

  .pilot-wind-diagnostics-canvas {
    height: 220px;
  }

  .pilot-wind-diagnostics-canvas.is-quality {
    height: 280px;
  }

  .pilot-flight-replay-stick-zone {
    width: 64px;
    height: 64px;
  }

  .pilot-flight-replay-stick-cross.is-x {
    width: 46px;
  }

  .pilot-flight-replay-stick-cross.is-y {
    height: 46px;
  }

  .pilot-flight-replay-stick-values {
    font-size: 8px;
  }
}

@media (min-width: 641px) {
  .pilot-workspace-overlay {
    --pilot-workspace-edge-gap: 48px;
    padding: 24px;
  }

  .pilot-workspace-modal {
    width: min(var(--pilot-workspace-tablet-width), calc(100vw - var(--pilot-workspace-edge-gap)));
    max-height: min(720px, calc(100dvh - 48px));
  }

  .pilot-profile-editor {
    width: min(640px, calc(100vw - var(--pilot-workspace-edge-gap)));
    max-height: min(760px, calc(100dvh - 48px));
  }

  .pilot-profile-summary-item,
  .pilot-workspace-drone-details .pilot-profile-summary-item {
    grid-template-columns: minmax(112px, 30%) minmax(0, 1fr);
  }

  #pilot-section-privacy-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
  }

  #pilot-section-privacy-body[hidden] {
    display: none;
  }

  #pilot-section-privacy-body .pilot-privacy-panel + .pilot-privacy-panel {
    margin-top: 0;
  }

  .pilot-workspace-drones-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .pilot-fleet-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-fleet-overview-card-wide {
    grid-column: 1 / -1;
  }

  .pilot-workspace-places-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (min-width: 1024px) {
  .pilot-workspace-overlay {
    --pilot-workspace-edge-gap: 72px;
    padding: 36px;
  }

  .pilot-workspace-modal {
    width: min(var(--pilot-workspace-desktop-width), calc(100vw - var(--pilot-workspace-edge-gap)));
    max-height: min(820px, calc(100dvh - 72px));
  }

  .pilot-profile-editor {
    width: min(var(--pilot-workspace-editor-width), calc(100vw - var(--pilot-workspace-edge-gap)));
    max-height: min(820px, calc(100dvh - 72px));
  }

  .pilot-drone-editor {
    width: min(var(--pilot-workspace-operational-editor-width), calc(100vw - var(--pilot-workspace-edge-gap)));
  }

  .pilot-workspace-header {
    padding: 20px 60px 14px 22px;
  }

  .pilot-workspace-content,
  .pilot-drone-detail-content {
    padding: 18px 22px 22px;
  }

  .pilot-profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .pilot-profile-completion {
    grid-column: 1 / -1;
  }

  .pilot-cloud-account-card {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
  }

  .pilot-organization-members-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .pilot-workspace-drones-grid {
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  }

  .pilot-fleet-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-workspace-places-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .pilot-workspace-drone-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .pilot-workspace-drone-details .pilot-profile-summary-item {
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  }

  .pilot-drone-detail-dialog {
    inset: 18px;
  }

  .pilot-drone-detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
  }

  .pilot-drone-detail-content > .pilot-profile-summary-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0 18px;
  }

  .pilot-drone-detail-content > .pilot-profile-summary-section > .pilot-profile-summary-heading,
  .pilot-drone-detail-content > .pilot-profile-summary-section > .pilot-profile-primary-value,
  .pilot-drone-detail-content > .pilot-profile-summary-section > .pilot-profile-section-empty,
  .pilot-flight-record-section,
  .pilot-flight-report-section,
  .pilot-flight-charts-section,
  .pilot-flight-quality-section,
  .pilot-flight-detail-navigation {
    grid-column: 1 / -1;
  }

  .pilot-flight-record-section .pilot-flight-record-item,
  .pilot-flight-record-section > .pilot-profile-summary-item {
    grid-column: 1 / -1;
  }

  .pilot-flight-charts-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .pilot-flight-replay-section {
    grid-column: 1 / -1;
  }

  .pilot-flight-charts-section > .pilot-profile-summary-heading {
    grid-column: 1 / -1;
  }

  .pilot-flight-quality-section > .pilot-profile-summary-heading {
    grid-column: 1 / -1;
  }

  .pilot-flight-quality-layout {
    grid-column: 1 / -1;
    grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 1.05fr);
    align-items: start;
    gap: 16px;
  }

  .pilot-flight-quality-coach {
    min-height: 100%;
    padding-top: 0;
    padding-left: 16px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .pilot-flight-replay-map {
    height: 420px;
  }

  .pilot-flight-chart-canvas {
    height: 300px;
  }
}

@media (min-width: 1280px) {
  .pilot-workspace-overlay {
    --pilot-workspace-edge-gap: 96px;
    padding: 42px 48px;
  }

  .pilot-workspace-modal {
    width: min(var(--pilot-workspace-wide-width), calc(100vw - var(--pilot-workspace-edge-gap)));
  }
}

.pilot-document-registry {
  display: grid;
  gap: 12px;
}

.pilot-document-header,
.pilot-document-toolbar,
.pilot-document-row,
.pilot-document-actions,
.pilot-document-header-actions,
.pilot-document-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pilot-document-header {
  justify-content: space-between;
  align-items: flex-start;
}

.pilot-document-header h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.pilot-document-header-actions,
.pilot-document-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pilot-document-header-actions button,
.pilot-document-actions button,
.pilot-document-breadcrumb button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pilot-document-actions button.danger {
  border-color: rgba(244, 67, 54, 0.45);
  color: #f44336;
}

.pilot-document-breadcrumb {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.pilot-document-breadcrumb button {
  min-height: 26px;
  padding: 3px 7px;
}

.pilot-document-toolbar {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(110px, auto));
}

.pilot-document-toolbar input,
.pilot-document-toolbar select,
.pilot-document-dialog input,
.pilot-document-dialog select,
.pilot-document-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.pilot-document-list {
  display: grid;
  gap: 8px;
}

.pilot-document-row {
  justify-content: space-between;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pilot-document-row.is-expiring {
  border-left: 4px solid rgba(255, 193, 7, 0.75);
}

.pilot-document-row.is-expired {
  border-left: 4px solid rgba(244, 67, 54, 0.8);
}

.pilot-document-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1 1 180px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.pilot-document-main strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.pilot-document-main span,
.pilot-document-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pilot-document-meta {
  min-width: 160px;
  display: grid;
  gap: 2px;
}

.pilot-document-message {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.pilot-document-message.success {
  background: rgba(46, 204, 113, 0.13);
  color: #2ecc71;
}

.pilot-document-message.error {
  background: rgba(244, 67, 54, 0.13);
  color: #f44336;
}

.pilot-document-dialog {
  position: sticky;
  bottom: 0;
  z-index: 3;
  max-height: min(620px, 78dvh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.pilot-document-dialog h4 {
  margin: 0 0 10px;
}

.pilot-document-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pilot-document-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0 0 12px;
}

.pilot-document-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pilot-document-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .pilot-document-header,
  .pilot-document-row {
    display: grid;
  }

  .pilot-document-toolbar,
  .pilot-document-date-grid {
    grid-template-columns: 1fr;
  }

  .pilot-document-actions,
  .pilot-document-header-actions {
    justify-content: flex-start;
  }
}
