:root {
  color-scheme: dark;
  --bg: #0b1118;
  --rail: #0d1823;
  --panel: #141e29;
  --panel-2: #172433;
  --line: #2a3848;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #eef4fb;
  --muted: #aab7c7;
  --blue: #2f88ff;
  --brand-blue: #6b6bf9;
  --green: #62ce4d;
  --amber: #ff9f1c;
  --teal: #2dd4bf;
  --red: #ff493d;
  --purple: #b36bff;
  --sticky-table-header-top: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 68% 3%, rgba(47, 136, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #090f15, #111922 55%, #0e151d);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  /* Column flex so the site footer sits at the viewport bottom on short
     pages (e.g. Admin) instead of hiding below the fold; long pages push
     it down in normal flow. The workspace grows to fill the gap. */
  display: flex;
  flex-direction: column;
}

/* ---------- Unauthenticated landing gate ---------------------------------- */

body[data-auth-gate] .app-shell {
  display: none;
}

.auth-landing .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg);
  overflow-y: auto;
}

.auth-landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 880px;
}

.auth-landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-landing-brand .brand-mark {
  width: 70px;
  height: 70px;
}

.auth-landing-name {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.auth-landing-panel {
  position: relative;
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* Panel keeps a fixed grid template (2fr/1fr) regardless of mode so the
   overall size never changes between login and signup. We swap which
   column the main form occupies by reordering its children instead of
   changing the grid columns. */
.auth-landing-state {
  display: none;
  grid-template-columns: 2fr 1fr;
  min-height: 480px;
}

.auth-landing-panel[data-mode="login"] .auth-landing-state--login {
  display: grid;
}

.auth-landing-panel[data-mode="signup"] .auth-landing-state--signup {
  display: grid;
}

.auth-landing-panel[data-mode="reset"] .auth-landing-state--reset {
  display: grid;
}

/* In the signup state, the form (main) sits on the right (2fr) and the
   aside on the left (1fr). Source order is aside-then-main, so we use
   `order` to put the aside in column 1 and the main in column 2 without
   changing grid-template-columns. */
.auth-landing-state--signup .auth-landing-aside { order: 1; }
.auth-landing-state--signup .auth-landing-main  { order: 2; }

.auth-landing-main {
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.auth-landing-main h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.auth-landing-aside {
  padding: 40px 32px;
  background: linear-gradient(160deg, var(--brand-blue), #3a3aa8);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.auth-landing-aside h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.auth-landing-aside p {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.auth-landing-switch {
  margin-top: 8px;
  min-width: 140px;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-landing-switch:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Icon-only third-party buttons, side-by-side */
.auth-landing-oauth {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.auth-oauth-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-oauth-icon:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.auth-oauth-icon[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-landing-divider {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 2px;
}

.auth-landing-divider::before,
.auth-landing-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 110px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-landing-divider::before { left: 0; }
.auth-landing-divider::after { right: 0; }

.auth-landing-divider span {
  padding: 0 10px;
}

.auth-landing-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.forgot-password-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.forgot-password-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Uniform text-field styling for all three inputs so name/email/password
   render at the exact same width. */
.auth-landing-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.auth-landing-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.auth-landing-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(47, 136, 255, 0.25);
}

.auth-landing-forgot {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.auth-landing-forgot:hover {
  color: var(--text);
  text-decoration: underline;
}

.auth-landing-resend {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--brand-blue);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}

.auth-landing-resend:hover:not(:disabled) {
  text-decoration: underline;
}

.auth-landing-resend:disabled {
  color: var(--muted);
  cursor: default;
}

.auth-landing-error {
  margin: 0;
  width: 100%;
  text-align: center;
}

.auth-landing-submit {
  align-self: center;
  margin-top: 6px;
  min-width: 160px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Emphasized primary CTA — intentionally NOT the theme blue so the
   user's eye lands on the action we want them to take. */
.auth-landing-submit--primary {
  background: linear-gradient(135deg, #ff7a3d, #ff4d6d);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-landing-submit--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.45);
}

.auth-landing-submit--primary:active {
  transform: translateY(1px);
}

.auth-landing-submit--primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-landing-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .auth-landing-panel[data-mode="login"] .auth-landing-state--login,
  .auth-landing-panel[data-mode="signup"] .auth-landing-state--signup,
  .auth-landing-panel[data-mode="reset"] .auth-landing-state--reset {
    grid-template-columns: 1fr;
  }
  .auth-landing-state--signup .auth-landing-aside { order: 2; }
  .auth-landing-state--signup .auth-landing-main  { order: 1; }
  .auth-landing-main {
    padding: 28px 24px;
  }
  .auth-landing-aside {
    padding: 28px 24px;
  }
}

.brand {
  display: inline-grid;
  grid-template-columns: 70px max-content;
  align-items: center;
  column-gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  font-size: 25px;
}

.brand-name-main {
  color: #ffffff;
}

.brand-name-accent {
  color: var(--brand-blue);
}

.brand-wordmark {
  color: #ffffff;
  white-space: nowrap;
}

.brand small,
.muted,
.subhead {
  color: var(--muted);
}

.brand small {
  font-size: 0.8em;
}

.top-nav {
  display: flex;
  justify-content: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.aircraft-section-nav {
  display: none;
}

.top-nav.aircraft-section-nav {
  gap: 22px;
}

body[data-active-view="aircraft"] .public-nav,
body[data-active-view="dashboard"] .public-nav,
body[data-active-view="admin"] .public-nav,
body[data-active-view="account"] .public-nav {
  display: none;
}

/* The aircraft section tabs stay visible on every signed-in view — including
   Admin and My Account — so they double as the way back into the workspace
   (the separate "My Aircraft" return button was removed in favor of this). */
body[data-active-view="aircraft"] .aircraft-section-nav,
body[data-active-view="dashboard"] .aircraft-section-nav,
body[data-active-view="admin"] .aircraft-section-nav,
body[data-active-view="account"] .aircraft-section-nav {
  display: flex;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(235, 243, 255, 0.92);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 140ms ease, opacity 140ms ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: #ffffff;
}

.nav-item.is-active::after {
  background: rgba(105, 165, 255, 0.92);
  opacity: 1;
  transform: scaleX(1);
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
}

.workspace {
  min-width: 0;
  padding: 0 10px 28px;
  flex: 1 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer-links a {
  color: rgba(235, 243, 255, 0.82);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer-links a:hover {
  color: #ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: space-between;
  column-gap: 14px;
  row-gap: 8px;
  padding: 6px 0 10px;
  background: linear-gradient(180deg, rgba(11, 17, 24, 0.98), rgba(11, 17, 24, 0.82));
  backdrop-filter: blur(16px);
}

.topbar-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  column-gap: 22px;
  min-width: 0;
}

.topbar-primary .brand {
  grid-column: 1;
  justify-self: start;
}

.topbar-primary .top-nav {
  grid-column: 2;
  justify-self: center;
}

.topbar-page {
  display: contents;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 2px;
  font-size: clamp(20px, 2.25vw, 27px);
  letter-spacing: 0;
}

.subhead {
  grid-column: 1;
  grid-row: 3;
  margin-bottom: 0;
  font-size: 12px;
}

.flight-control-row {
  display: flex;
  grid-column: 2;
  grid-row: 2 / span 2;
  align-items: center;
  justify-self: center;
  gap: 8px;
  width: min(100%, 782px);
  max-width: 100%;
}

.flight-picker {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: max-content minmax(220px, 1fr);
  gap: 11.5px;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.flight-picker select {
  display: none;
  width: 100%;
  min-width: 0;
  min-height: 31.05px;
  padding: 0 13.8px;
  font-size: 11.5px;
  font-weight: 700;
}

.flight-menu {
  position: relative;
  min-width: 0;
}

.flight-menu-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(121, 142, 165, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 37, 51, 0.96), rgba(13, 24, 35, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
  color: var(--text);
  gap: 10px;
  padding: 0 10px 0 13px;
  text-align: left;
}

.flight-menu-button:hover,
.flight-menu.is-open .flight-menu-button {
  border-color: rgba(47, 136, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(29, 46, 63, 0.98), rgba(14, 27, 40, 0.98));
}

.flight-menu-button:focus-visible {
  outline: 2px solid rgba(47, 136, 255, 0.72);
  outline-offset: 2px;
}

.flight-menu-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-menu-button svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.flight-menu.is-open .flight-menu-button svg {
  transform: rotate(180deg);
}

.flight-menu-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.flight-menu-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  width: min(720px, max(100%, calc(100vw - 32px)));
  max-height: min(520px, calc(100vh - 150px));
  overflow: auto;
  border: 1px solid rgba(121, 142, 165, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(12, 22, 32, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 8px;
}

.flight-menu-group + .flight-menu-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.flight-menu-group-label {
  padding: 7px 9px 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flight-menu-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 35px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dce8f5;
  column-gap: 8px;
  padding: 7px 10px 7px 5px;
  text-align: left;
}

.flight-menu-option:hover,
.flight-menu-option:focus-visible {
  background: rgba(47, 136, 255, 0.14);
  color: var(--text);
  outline: none;
}

.flight-menu-option.is-selected {
  background: rgba(47, 136, 255, 0.22);
  color: var(--text);
}

.flight-menu-option.is-flagged {
  color: #ffd399;
}

.flight-menu-option:disabled {
  color: rgba(170, 183, 199, 0.48);
  cursor: not-allowed;
}

.flight-menu-check {
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.flight-menu-option-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  gap: 5.75px;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 2px 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-user:hover,
.topbar-user:focus-visible {
  color: #cdeeff;
}

.topbar-user:focus-visible {
  outline: 2px solid rgba(142, 217, 255, 0.72);
  outline-offset: 4px;
  border-radius: 999px;
}

.topbar-user:hover .topbar-user-icon,
.topbar-user:focus-visible .topbar-user-icon {
  border-color: rgba(142, 217, 255, 0.96);
  background: rgba(47, 136, 255, 0.18);
}

.topbar-user-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8ed9ff;
  border: 1px solid rgba(142, 217, 255, 0.72);
  border-radius: 50%;
  background: rgba(47, 136, 255, 0.09);
}

.topbar-user-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-user-name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-adjacent-actions {
  display: flex;
  align-items: center;
  gap: 5.75px;
  flex: 0 0 auto;
}

.flight-adjacent-actions .secondary-action,
.flight-adjacent-actions .primary-action,
.topbar .top-actions .primary-action,
.topbar .top-actions .secondary-action {
  min-height: 25.3px;
  border-radius: 5.75px;
  padding: 0 9.2px;
  font-size: 11.5px;
  line-height: 1;
}

.flight-adjacent-actions .icon-action,
.topbar .top-actions .icon-action {
  width: 27.6px;
  min-width: 27.6px;
  padding: 0;
}

.flight-adjacent-actions .icon-action svg,
.topbar .top-actions .icon-action svg {
  width: 13.8px;
  height: 13.8px;
  stroke-width: 2.4;
}

.flight-adjacent-actions .report-action,
.topbar .top-actions .report-action {
  width: auto;
  min-width: 89.7px;
}

.topbar .top-actions .primary-action {
  box-shadow: 0 5.75px 13.8px rgba(47, 136, 255, 0.18);
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6.9px;
}

.button-with-icon svg {
  width: 14.95px;
  height: 14.95px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-label {
  white-space: nowrap;
}

.primary-action,
.secondary-action {
  min-height: 40px;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, filter 160ms ease;
}

.icon-action {
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.icon-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.danger-action {
  color: #ffb4ad;
  border-color: rgba(255, 73, 61, 0.36);
}

.danger-action:hover {
  background: rgba(255, 73, 61, 0.12);
}

.danger-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.report-action {
  width: 146px;
  white-space: nowrap;
}

.report-action:hover:not(:disabled),
.report-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.82);
  background: rgba(47, 136, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.16), 0 10px 24px rgba(47, 136, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.report-action.is-generating {
  cursor: progress;
  font-size: 14px;
}

.report-action.is-generating::after {
  content: "";
  display: inline-block;
  min-width: 1.2em;
  text-align: left;
  animation: reportDots 1s steps(4, end) infinite;
}

@keyframes reportDots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

@keyframes aiWorkSpin {
  to {
    transform: rotate(360deg);
  }
}


@keyframes aiWorkNoticeSlideIn {
  from {
    transform: translate3d(calc(100% + 18px), 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.report-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.aircraft-edit-dialog .report-status.is-active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: rgba(190, 202, 218, 0.86);
  font-weight: 800;
}

.aircraft-edit-dialog .report-status.is-success {
  color: #8ee7b0;
}

.aircraft-edit-dialog .report-status.is-error {
  color: #ffaaa5;
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid rgba(138, 184, 255, 0.38);
  border-radius: 8px;
  background: rgba(18, 31, 47, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  color: #edf5ff;
  font-weight: 800;
}

.app-toast.is-success {
  border-color: rgba(91, 214, 132, 0.45);
  color: #bff5ce;
}

.app-toast.is-error {
  border-color: rgba(255, 118, 112, 0.54);
  color: #ffc5c1;
}

.ai-work-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1010;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(460px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(138, 184, 255, 0.42);
  border-radius: 8px;
  background: rgba(18, 31, 47, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  color: #edf5ff;
  animation: aiWorkNoticeSlideIn 220ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.ai-work-notice[hidden] {
  display: none;
}

.ai-work-notice.is-ready {
  border-color: rgba(91, 214, 132, 0.5);
}

.ai-work-notice.is-error {
  border-color: rgba(255, 118, 112, 0.58);
}

.upload-work-notice {
  right: 16px;
  bottom: 16px;
}

.ai-work-notice.has-upload-queue {
  width: min(560px, calc(100vw - 48px));
}

.ai-work-notice.has-upload-queue .ai-work-notice-copy {
  grid-column: 2 / -1;
}

.ai-work-notice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.16);
  color: #b9d7ff;
}

.ai-work-notice.is-ready .ai-work-notice-icon {
  background: rgba(98, 206, 77, 0.15);
  color: #bff5ce;
}

.ai-work-notice.is-error .ai-work-notice-icon {
  background: rgba(255, 73, 61, 0.15);
  color: #ffc5c1;
}

.ai-work-notice-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-work-notice-copy {
  min-width: 0;
}

.ai-work-notice-copy strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(247, 250, 255, 0.98);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.ai-work-notice-copy p {
  margin: 0;
  color: rgba(213, 225, 240, 0.88);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ai-work-notice-link {
  color: #b9d7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ai-work-notice-action,
.ai-work-notice-dismiss {
  border: 1px solid rgba(138, 184, 255, 0.34);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.16);
  color: #f7fbff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.ai-work-notice-action {
  min-height: 32px;
  padding: 0 11px;
  white-space: nowrap;
}

.ai-work-notice-dismiss {
  min-height: 32px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 240, 250, 0.88);
  white-space: nowrap;
}

.ai-work-notice-action:hover,
.ai-work-notice-action:focus-visible,
.ai-work-notice-dismiss:hover,
.ai-work-notice-dismiss:focus-visible {
  border-color: rgba(138, 184, 255, 0.72);
  background: rgba(47, 136, 255, 0.24);
  outline: none;
}

.upload-queue-list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 8px;
  max-height: min(320px, 46vh);
  margin: 0;
  padding: 2px 0 0;
  overflow: auto;
  list-style: none;
}

.upload-queue-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(138, 184, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.upload-queue-row.is-error {
  border-color: rgba(255, 118, 112, 0.42);
  background: rgba(255, 73, 61, 0.08);
}

.upload-queue-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #7fb7ff;
  box-shadow: 0 0 0 4px rgba(127, 183, 255, 0.12);
}

.upload-queue-row.is-ready .upload-queue-dot,
.upload-queue-row.is-duplicate .upload-queue-dot {
  background: #8ee7b0;
  box-shadow: 0 0 0 4px rgba(142, 231, 176, 0.12);
}

.upload-queue-row.is-error .upload-queue-dot {
  background: #ffaaa5;
  box-shadow: 0 0 0 4px rgba(255, 170, 165, 0.14);
}

.upload-queue-row-copy {
  min-width: 0;
}

.upload-queue-row-copy strong,
.upload-queue-row-copy span,
.upload-queue-row-copy p {
  display: block;
  overflow-wrap: anywhere;
}

.upload-queue-row-copy strong {
  color: rgba(247, 250, 255, 0.98);
  font-size: 12px;
  line-height: 1.2;
}

.upload-queue-row-copy span {
  margin-top: 2px;
  color: rgba(213, 225, 240, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.upload-queue-row-copy p {
  margin: 4px 0 0;
  color: rgba(213, 225, 240, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.upload-queue-status {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid rgba(138, 184, 255, 0.24);
  border-radius: 999px;
  background: rgba(47, 136, 255, 0.12);
  color: rgba(237, 245, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.upload-queue-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.upload-queue-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 118, 112, 0.42);
  border-radius: 8px;
  background: rgba(255, 73, 61, 0.12);
  color: #ffe1df;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.upload-queue-actions button:hover,
.upload-queue-actions button:focus-visible {
  border-color: rgba(255, 170, 165, 0.72);
  background: rgba(255, 73, 61, 0.2);
  outline: none;
}

.ai-work-notice.has-upload-queue .ai-work-notice-action {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
}

.ai-work-notice.has-upload-queue .ai-work-notice-dismiss {
  grid-column: 4;
  grid-row: 3;
  justify-self: end;
}

.ai-work-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 250px;
  padding: 0 12px;
  border: 1px solid rgba(47, 136, 255, 0.42);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.08);
  color: #cfe6ff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ai-work-chip[hidden] {
  display: none;
}

.ai-work-chip strong,
.ai-work-chip span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-work-chip span:last-child {
  color: rgba(194, 211, 231, 0.86);
  font-weight: 750;
}

.ai-work-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(138, 184, 255, 0.24);
  border-top-color: #8ab8ff;
  border-radius: 50%;
  animation: aiWorkSpin 900ms linear infinite;
}

#aircraftReviewSettingsStatus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  min-height: 20px;
  color: rgba(190, 202, 218, 0.86);
  font-weight: 700;
}

#aircraftReviewSettingsStatus[data-tone="success"] {
  color: #8ee7b0;
}

#aircraftReviewSettingsStatus[data-tone="info"] {
  color: rgba(138, 184, 255, 0.88);
}

.primary-action {
  border-color: rgba(47, 136, 255, 0.7);
  background: linear-gradient(180deg, #358cff, #176be2);
  box-shadow: 0 10px 24px rgba(47, 136, 255, 0.25);
}

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

.report-tabs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.report-tabs-row .report-action {
  width: auto;
  min-width: 118px;
  min-height: 28px;
  margin-left: 0;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}

.dashboard-flight-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-flight-picker select {
  display: none;
  width: clamp(210px, 19vw, 285px);
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background: rgba(17, 31, 48, 0.92);
  color: rgba(235, 243, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-flight-picker select:focus-visible {
  border-color: rgba(82, 153, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.14);
  outline: none;
}

.dashboard-flight-menu {
  width: clamp(210px, 19vw, 285px);
}

.dashboard-flight-menu-button {
  min-height: 28px;
  border-radius: 8px;
  padding: 0 8px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-flight-menu-panel {
  right: 0;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  min-width: 100%;
  max-height: min(560px, calc(100vh - 135px));
}

.report-tabs-row .report-action + .sensitivity-inline {
  margin-left: 0;
}

.sensitivity-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--muted);
}

.sensitivity-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: rgba(195, 207, 221, 0.94);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.sensitivity-field-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(138, 184, 255, 0.96);
  stroke-width: 2.1;
  stroke-linecap: round;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1100px) {
  .report-tabs-row {
    flex-wrap: wrap;
  }

  .tabs {
    flex: 1 1 100%;
  }

  .dashboard-flight-picker {
    margin-left: auto;
  }

  .sensitivity-field {
    margin-left: 0;
  }
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  background: rgba(12, 23, 35, 0.28);
  padding: 8px 11px 9px;
  color: rgba(174, 188, 207, 0.66);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.tab-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.76;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.tab:hover,
.tab:focus-visible {
  border-color: rgba(105, 165, 255, 0.22);
  background: rgba(22, 39, 59, 0.72);
  color: var(--text);
  outline: none;
}

.tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.18);
}

.tab.is-active {
  border-color: rgba(105, 165, 255, 0.32);
  border-bottom-color: rgba(105, 165, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(39, 66, 97, 0.58), rgba(17, 31, 48, 0.94)),
    rgba(17, 31, 48, 0.94);
  color: rgba(236, 244, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 9px 24px rgba(0, 0, 0, 0.2);
}

.tab:hover .tab-icon,
.tab:focus-visible .tab-icon,
.tab.is-active .tab-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition:
    background 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.tab.is-active::after {
  background: rgba(105, 165, 255, 0.9);
  opacity: 1;
  transform: scaleX(1);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

body[data-active-view="aircraft"] #view-home.is-active {
  display: none;
}

body[data-active-view="aircraft"] #view-aircraft {
  display: block;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: calc(100vh - 132px);
  padding: clamp(34px, 6vw, 84px) 0 clamp(24px, 4vw, 54px);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.86) 0%, rgba(11, 17, 24, 0.4) 42%, rgba(11, 17, 24, 0) 100%),
    image-set(
      url("assets/home-hero-cockpit.webp") type("image/webp"),
      url("assets/glass_cockpit.png") type("image/png")
    ) center 54% / cover no-repeat;
  opacity: 1;
  filter: saturate(1.1) contrast(1.04);
}

.home-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.58) 0%, rgba(11, 17, 24, 0.01) 38%, rgba(11, 17, 24, 0.72) 100%),
    radial-gradient(circle at 75% 46%, rgba(47, 136, 255, 0.18), transparent 34rem);
}

.home-hero-copy {
  max-width: 720px;
  padding-top: 24px;
}

.home-hero-copy h1 {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero-lede {
  max-width: 660px;
  margin-bottom: 26px;
  color: rgba(218, 228, 241, 0.86);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.home-hero-actions .primary-action,
.home-hero-actions .secondary-action {
  min-width: 190px;
}

.home-advisory-note {
  max-width: 590px;
  margin: 0;
  color: rgba(170, 183, 199, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.home-product-preview {
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(28, 42, 57, 0.86), rgba(13, 24, 36, 0.88)),
    var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.home-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.home-preview-topline span {
  color: rgba(235, 243, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-preview-screen {
  position: relative;
  margin: 16px;
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(4, 10, 17, 0.86);
  aspect-ratio: 1.63;
}

.home-preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), inset 0 -42px 80px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.home-preview-screen picture,
.home-preview-screen img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-preview-screen img {
  object-fit: cover;
  object-position: 50% 24%;
}

.home-preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 18px;
  color: rgba(170, 183, 199, 0.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature-band article {
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.home-supported .eyebrow {
  color: rgba(170, 183, 199, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 21px 0;
}

.home-feature-band article {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  min-height: 158px;
  padding: 17px;
}

.home-feature-band article:nth-child(4) {
  grid-column: 2 / span 2;
}

.home-feature-band article:nth-child(5) {
  grid-column: 4 / span 2;
}

.home-feature-card--phase,
.home-feature-card--visual,
.home-feature-card--text {
  display: flex;
  flex-direction: column;
}

.home-feature-card--text {
  justify-content: space-between;
}

.home-feature-art {
  position: relative;
  min-height: 69px;
  margin: 17px -7px -7px;
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(4, 10, 17, 0.72);
}

.home-feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), inset 0 -21px 39px rgba(4, 10, 17, 0.32);
  pointer-events: none;
}

.home-feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-feature-band h2,
.home-supported h2 {
  margin-bottom: 8px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 18px;
  line-height: 1.12;
}

.home-feature-band p {
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 12px;
  line-height: 1.55;
}

.home-supported p {
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  line-height: 1.55;
}

.home-supported-note {
  margin: 0;
  max-width: 34ch;
  padding: 13px 0 0 18px;
  border-top: 0;
  border-left: 1px solid rgba(127, 164, 210, 0.18);
  font-size: 13px;
}

.home-supported {
  display: grid;
  gap: 22px;
  scroll-margin-top: 104px;
  padding: 46px 0 58px;
  border-top: 1px solid rgba(127, 164, 210, 0.14);
}

.home-supported-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  align-items: end;
  gap: clamp(20px, 4vw, 44px);
}

.home-supported-copy > div {
  max-width: 720px;
}

.home-supported-copy > div > p:not(.eyebrow) {
  max-width: 68ch;
}

.home-monitor-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.home-monitor-grid article {
  display: grid;
  grid-template-rows: auto minmax(54px, auto);
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.78), rgba(15, 24, 34, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-monitor-grid figure {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1586 / 992;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 136, 255, 0.11), transparent 56%),
    rgba(6, 13, 22, 0.72);
}

.home-monitor-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -34px 56px rgba(4, 10, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.home-monitor-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.home-monitor-grid span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(235, 243, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.home-monitor-card-more {
  grid-column: auto;
}

.home-monitor-card-more figure {
  aspect-ratio: 1586 / 992;
}

.home-monitor-card-more img {
  filter: saturate(0.84) brightness(0.82);
  object-fit: cover;
}

body[data-active-view="home"] .topbar-user {
  display: none;
}

body[data-active-view="faq"] .topbar-user,
body[data-active-view="pricing"] .topbar-user,
body[data-active-view="about"] .topbar-user,
body[data-active-view="contact"] .topbar-user,
body[data-active-view="terms"] .topbar-user,
body[data-active-view="privacy"] .topbar-user,
body[data-active-view="dashboard-guide"] .topbar-user,
body[data-active-view="detection-guide"] .topbar-user {
  display: none;
}

/* Admin view: hide the in-app flight chrome (page title, subhead, flight log
   picker). These elements live in the shared topbar outside any `.view`
   section, so without this rule they leak through behind/around the admin
   page (e.g. "N000XX · Generated Garmin-style sample", "Flight log", etc.).
   The aircraft section tabs stay visible as the way back into the app. */
body[data-active-view="admin"] .topbar-page {
  display: none;
}

.public-page {
  padding: clamp(28px, 5vw, 70px) 0 clamp(40px, 6vw, 78px);
}

.dashboard-guide-page {
  padding-top: 0;
}

.dashboard-guide-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 0.9fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  min-height: calc(100vh - 128px);
  padding: clamp(34px, 5vw, 70px) 0 clamp(26px, 4vw, 52px);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  overflow: hidden;
}

.dashboard-guide-hero::before,
.dashboard-guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dashboard-guide-hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.88) 0%, rgba(11, 17, 24, 0.52) 46%, rgba(11, 17, 24, 0.12) 100%),
    url("assets/legacy_cockpit.png") center 50% / cover no-repeat;
  opacity: 0.82;
  filter: saturate(0.82) contrast(1.02);
}

.dashboard-guide-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.72) 0%, rgba(11, 17, 24, 0.18) 42%, rgba(11, 17, 24, 0.84) 100%),
    radial-gradient(circle at 78% 38%, rgba(47, 136, 255, 0.14), transparent 34rem);
}

.dashboard-guide-hero-copy {
  max-width: 760px;
}

.dashboard-guide-hero-copy .eyebrow,
.dashboard-guide-section-copy .eyebrow {
  margin: 0 0 10px;
  color: rgba(170, 183, 199, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-guide-hero h1 {
  margin: 0 0 18px;
  max-width: 11ch;
  color: rgba(247, 251, 255, 0.98);
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.dashboard-guide-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(218, 228, 241, 0.88);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.58;
}

.dashboard-guide-hero-image,
.dashboard-guide-media,
.dashboard-guide-image-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 18, 27, 0.72);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-guide-hero-image img,
.dashboard-guide-media img,
.dashboard-guide-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-guide-hero-image {
  aspect-ratio: 1.42;
}

.dashboard-guide-jumps {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  background: rgba(8, 15, 22, 0.86);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.dashboard-guide-jumps::-webkit-scrollbar {
  display: none;
}

.dashboard-guide-jumps a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(127, 164, 210, 0.2);
  border-radius: 999px;
  color: rgba(225, 235, 247, 0.9);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  background: rgba(13, 25, 37, 0.78);
}

/* Back-to-top control: only on the How It Works guide view. */
.dashboard-guide-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(127, 164, 210, 0.32);
  border-radius: 999px;
  color: #eef4fb;
  background: linear-gradient(180deg, rgba(23, 36, 51, 0.96), rgba(13, 24, 35, 0.96));
  box-shadow: 0 8px 24px rgba(4, 9, 15, 0.5), inset 0 0 0 1px rgba(127, 164, 210, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* Gate to the guide view: hidden (and non-interactive) everywhere else. */
body:not([data-active-view="dashboard-guide"]) .dashboard-guide-to-top {
  display: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-to-top:hover {
  border-color: rgba(47, 136, 255, 0.7);
  background: linear-gradient(180deg, rgba(32, 52, 74, 0.98), rgba(18, 31, 45, 0.98));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-to-top:focus-visible {
  outline: 2px solid rgba(139, 214, 255, 0.95);
  outline-offset: 3px;
}

/* Visible keyboard focus for every in-guide link (timeline, coda, cross-links). */
body[data-active-view="dashboard-guide"] .dashboard-guide-page a:focus-visible {
  outline: 2px solid rgba(139, 214, 255, 0.95);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-guide-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none;
  }
  body[data-active-view="dashboard-guide"] .dashboard-guide-to-top.is-visible {
    transform: none;
  }
}

.dashboard-guide-workflow,
.dashboard-guide-section,
.dashboard-guide-media-section {
  margin-top: clamp(28px, 5vw, 64px);
}

.dashboard-guide-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13, 25, 37, 0.62);
}

.dashboard-guide-workflow article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid rgba(127, 164, 210, 0.12);
}

.dashboard-guide-workflow article:last-child {
  border-right: 0;
}

.dashboard-guide-workflow span {
  display: block;
  margin-bottom: 26px;
  color: rgba(139, 214, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dashboard-guide-workflow h2,
.dashboard-guide-panel h3,
.dashboard-guide-callout-grid h3,
.dashboard-guide-page-list h3 {
  margin: 0 0 10px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.dashboard-guide-workflow p,
.dashboard-guide-panel p,
.dashboard-guide-callout-grid p,
.dashboard-guide-page-list p {
  margin: 0;
  color: rgba(196, 209, 224, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-section,
.dashboard-guide-media-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.46fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(127, 164, 210, 0.14);
  scroll-margin-top: 76px;
}

.dashboard-guide-section--reverse,
.dashboard-guide-media-section {
  grid-template-columns: minmax(320px, 0.54fr) minmax(0, 0.9fr);
}

.dashboard-guide-section--reverse .dashboard-guide-section-copy {
  order: 2;
}

.dashboard-guide-section-copy h2 {
  margin: 0 0 14px;
  max-width: 760px;
  color: rgba(245, 248, 255, 0.96);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.dashboard-guide-section-copy > p {
  max-width: 820px;
  margin: 0 0 16px;
  color: rgba(205, 218, 232, 0.9);
  font-size: 16px;
  line-height: 1.62;
}

.dashboard-guide-section-copy ul {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(196, 209, 224, 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-panel {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.68);
}

.dashboard-guide-media {
  aspect-ratio: 1.42;
}

.dashboard-guide-image-card {
  aspect-ratio: 1.55;
  padding: 0;
}

.dashboard-guide-callout-grid,
.dashboard-guide-page-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.dashboard-guide-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-guide-callout-grid article,
.dashboard-guide-page-list article {
  padding: 18px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.62);
}

.dashboard-guide-hero--tutorial {
  grid-template-columns: minmax(0, 0.72fr) minmax(416px, 0.8fr);
  min-height: clamp(430px, 56vw, 660px);
}

.dashboard-guide-hero--tutorial .dashboard-guide-hero-copy {
  max-width: 720px;
}

.dashboard-guide-hero--tutorial h1 {
  max-width: 12ch;
  font-size: clamp(38px, 4.8vw, 66px);
}

.dashboard-guide-hero-image {
  align-self: center;
}

.dashboard-guide-hero-image img,
.dashboard-guide-screenshot-card img,
.dashboard-guide-large-screenshot img,
.dashboard-guide-screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-guide-hero-image img {
  width: calc(100% + 2px);
  max-width: none;
  margin-left: -2px;
}

.dashboard-guide-hero-image figcaption,
.dashboard-guide-screenshot-card figcaption,
.dashboard-guide-screenshot-grid figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
  color: rgba(196, 209, 224, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-guide-tutorial-intro,
.dashboard-guide-step,
.dashboard-guide-anatomy,
.dashboard-guide-gallery {
  margin-top: clamp(30px, 5vw, 68px);
  padding-top: clamp(18px, 3vw, 30px);
  border-top: 1px solid rgba(127, 164, 210, 0.14);
  scroll-margin-top: 76px;
}

.dashboard-guide-tutorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(420px, 0.8fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.dashboard-guide-step {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  gap: clamp(20px, 3.6vw, 44px);
  align-items: start;
}

.dashboard-guide-step--settings {
  grid-template-columns: minmax(0, 900px) minmax(360px, 430px);
  gap: clamp(18px, 2.2vw, 30px);
  justify-content: center;
}

.dashboard-guide-step--settings .dashboard-guide-section-copy {
  width: 100%;
}

.dashboard-guide-step--settings .dashboard-guide-section-copy h2 {
  max-width: 820px;
  font-size: clamp(30px, 3vw, 42px);
}

.dashboard-guide-step--settings .dashboard-guide-section-copy > p {
  max-width: 780px;
}

.dashboard-guide-step--settings .dashboard-guide-section-copy ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.dashboard-guide-step--settings .dashboard-guide-section-copy ol li {
  min-height: 112px;
}

.dashboard-guide-step--settings .dashboard-guide-section-copy ol span {
  display: block;
}

.dashboard-guide-step--settings .dashboard-guide-callout-grid {
  margin-top: 18px;
}

.dashboard-guide-step--settings .dashboard-guide-callout-grid article {
  padding: 16px;
}

.dashboard-guide-step--upload {
  grid-template-columns: minmax(320px, 0.5fr) minmax(0, 0.9fr);
  gap: clamp(18px, 2.2vw, 30px);
}

.dashboard-guide-step--upload .dashboard-guide-section-copy h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.2vw, 44px);
}

.dashboard-guide-step--upload .dashboard-guide-section-copy > p {
  max-width: 820px;
}

.dashboard-guide-step--upload .dashboard-guide-section-copy ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.dashboard-guide-step--upload .dashboard-guide-section-copy ol li {
  min-height: 104px;
}

.dashboard-guide-step--upload .dashboard-guide-section-copy ol span {
  display: block;
}

.dashboard-guide-upload-media {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  justify-self: end;
  align-self: start;
}

.dashboard-guide-cgr-pairing-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.62);
}

.dashboard-guide-cgr-pairing-card img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.9);
}

.dashboard-guide-cgr-pairing-card h3 {
  margin: 0 0 5px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-guide-cgr-pairing-card p {
  margin: 0;
  color: rgba(196, 209, 224, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-guide-review-shot {
  width: 100%;
  max-width: none;
  justify-self: end;
}

.dashboard-guide-playback-shot {
  width: 115%;
  max-width: none;
}

.dashboard-guide-step--findings {
  grid-template-columns: minmax(480px, 0.82fr) minmax(0, 0.84fr);
  gap: clamp(20px, 2.8vw, 38px);
}

.dashboard-guide-step--findings .dashboard-guide-section-copy {
  min-width: 0;
}

.dashboard-guide-step--playback {
  grid-template-columns: minmax(0, 0.77fr) minmax(480px, 0.83fr);
}

.dashboard-guide-step--reporting {
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 0.8fr);
}

.dashboard-guide-step--reverse {
  grid-template-columns: minmax(420px, 0.72fr) minmax(0, 0.88fr);
}

.dashboard-guide-step--reverse .dashboard-guide-section-copy {
  order: 2;
}

.dashboard-guide-step-list,
.dashboard-guide-section-copy ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.dashboard-guide-step-list li,
.dashboard-guide-section-copy ol li {
  position: relative;
  min-height: 58px;
  padding: 14px 16px 14px 54px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.62);
  color: rgba(196, 209, 224, 0.88);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-guide-step-list li::before,
.dashboard-guide-section-copy ol li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(75, 132, 255, 0.18);
  color: rgba(158, 219, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-guide-step-list strong,
.dashboard-guide-section-copy ol strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 15px;
}

.dashboard-guide-step-list span {
  display: block;
}

.dashboard-guide-callout-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-guide-note,
.dashboard-guide-screenshot-card,
.dashboard-guide-large-screenshot,
.dashboard-guide-screenshot-grid figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.68);
}

.dashboard-guide-screenshot-stack {
  display: grid;
  gap: 14px;
  align-self: start;
}

.dashboard-guide-settings-shots {
  width: min(100%, 430px);
  min-width: 0;
  justify-self: start;
}

.dashboard-guide-note {
  margin-top: 20px;
  padding: 18px;
}

.dashboard-guide-note h3 {
  margin: 0 0 8px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 17px;
}

.dashboard-guide-note p {
  margin: 0;
  color: rgba(196, 209, 224, 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-screenshot-card img,
.dashboard-guide-large-screenshot img,
.dashboard-guide-screenshot-grid img {
  background: rgba(5, 10, 16, 0.9);
}

.dashboard-guide-screenshot-card--wide {
  align-self: stretch;
}

.dashboard-guide-flights-shot {
  align-self: start;
}

.dashboard-guide-flights-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-guide-graph-shot {
  align-self: start;
}

.dashboard-guide-graph-shot img {
  aspect-ratio: 2.05;
  object-fit: cover;
  object-position: top center;
}

.dashboard-guide-anatomy {
  display: grid;
  grid-template-columns: minmax(360px, 620px) minmax(0, 680px);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
  justify-content: center;
}

.dashboard-guide-anatomy .dashboard-guide-section-copy {
  grid-column: 1 / -1;
  width: min(100%, 1330px);
  justify-self: center;
}

.dashboard-guide-large-screenshot {
  width: 100%;
  justify-self: end;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.dashboard-guide-feature-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: start;
}

.dashboard-guide-feature-map article {
  position: relative;
  min-height: 150px;
  padding: 18px 18px 18px 62px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.62);
}

.dashboard-guide-feature-map span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(75, 132, 255, 0.18);
  color: rgba(158, 219, 255, 0.96);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-guide-feature-map h3 {
  margin: 0 0 8px;
  color: rgba(245, 248, 255, 0.96);
  font-size: 17px;
  line-height: 1.2;
}

.dashboard-guide-feature-map p {
  margin: 0;
  color: rgba(196, 209, 224, 0.88);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.dashboard-guide-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-guide-screenshot-grid figure {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dashboard-guide-screenshot-grid img {
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: top center;
}

.dashboard-guide-screenshot-grid figcaption {
  flex: 1;
}

.dashboard-guide-screenshot-grid figcaption strong {
  color: rgba(245, 248, 255, 0.96);
}

.dashboard-guide-pdf-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.dashboard-guide-pdf-gallery figure {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  margin: 0;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.68);
}

.dashboard-guide-pdf-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: top center;
  background: rgba(5, 10, 16, 0.9);
}

.dashboard-guide-pdf-gallery figcaption {
  flex: 1;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
  color: rgba(196, 209, 224, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-guide-pdf-gallery figcaption strong {
  color: rgba(245, 248, 255, 0.96);
}

.pricing-page {
  display: none;
  padding-top: 0;
}

.pricing-page.is-active {
  display: block;
}

.pricing-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  min-height: calc(100vh - 126px);
  padding: clamp(34px, 5vw, 72px) 0 clamp(28px, 4vw, 54px);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  overflow: hidden;
}

.pricing-hero::before,
.pricing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pricing-hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 17, 24, 0.92) 0%, rgba(11, 17, 24, 0.48) 48%, rgba(11, 17, 24, 0.2) 100%),
    radial-gradient(circle at 68% 18%, rgba(47, 136, 255, 0.16), transparent 31rem),
    url("assets/cockpit_approach.png") center 48% / cover no-repeat;
  filter: saturate(0.88) contrast(1.02);
}

.pricing-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.18), rgba(11, 17, 24, 0.74)),
    radial-gradient(circle at 42% 30%, rgba(255, 159, 28, 0.08), transparent 22rem);
}

.pricing-hero-copy {
  max-width: 740px;
}

.pricing-hero-copy h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 5.6vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.pricing-hero-copy > p {
  max-width: 670px;
  margin: 0 0 24px;
  color: rgba(218, 228, 241, 0.88);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 650;
  line-height: 1.55;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.pricing-hero-actions .primary-action,
.pricing-hero-actions .secondary-action {
  min-width: 172px;
}

.pricing-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-proof-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(127, 164, 210, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pricing-proof-grid svg,
.pricing-evidence-panel header svg {
  width: 24px;
  height: 24px;
  color: #8ab8ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-proof-grid article > svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(47, 136, 255, 0.52);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.1);
}

.pricing-proof-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #8ab8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.15;
  text-transform: uppercase;
}

.pricing-proof-grid span {
  color: rgba(213, 225, 240, 0.8);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.pricing-evidence-panel,
.pricing-dashboard-preview,
.pricing-plan-card,
.pricing-fleet-section,
.pricing-pack-grid article,
.pricing-faq-strip article {
  border: 1px solid rgba(121, 142, 165, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(12, 22, 32, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.pricing-evidence-panel {
  overflow: hidden;
}

.pricing-dashboard-preview {
  position: relative;
  margin: 0;
  min-height: 430px;
  padding: 10px;
  overflow: hidden;
  border-color: rgba(138, 184, 255, 0.28);
  border-left-color: transparent;
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(12, 22, 32, 0.98));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(47, 136, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pricing-dashboard-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 4px 10px;
  color: rgba(213, 225, 240, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pricing-dashboard-caption strong {
  color: #edf5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-dashboard-image-frame {
  position: relative;
  min-height: 384px;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.34);
  border-left-color: transparent;
  border-radius: 6px;
  background: rgba(4, 10, 17, 0.86);
}

.pricing-dashboard-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 -70px 90px rgba(4, 10, 17, 0.26);
  pointer-events: none;
}

.pricing-dashboard-image-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 6px;
  background: rgba(4, 10, 17, 0.98);
  pointer-events: none;
}

.pricing-dashboard-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 384px;
  object-fit: cover;
  object-position: 50% 0%;
}

.pricing-evidence-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.pricing-evidence-panel header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pricing-evidence-panel header strong {
  color: #edf5ff;
  font-size: 14px;
  font-weight: 850;
}

.pricing-evidence-panel header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(213, 225, 240, 0.88);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-evidence-panel header span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 206, 77, 0.55);
}

.pricing-evidence-summary {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  border-bottom: 1px solid var(--line-soft);
}

.pricing-evidence-summary > div,
.pricing-evidence-panel footer > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line-soft);
}

.pricing-evidence-summary > div:last-child,
.pricing-evidence-panel footer > div:last-child {
  border-right: 0;
}

.pricing-evidence-summary span,
.pricing-evidence-panel footer span {
  display: block;
  margin-bottom: 8px;
  color: rgba(213, 225, 240, 0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pricing-evidence-summary strong {
  display: block;
  color: rgba(238, 244, 251, 0.96);
  font-size: 14px;
  font-weight: 850;
}

.pricing-evidence-summary strong.is-green {
  color: #8ee7b0;
  font-size: 28px;
  line-height: 1;
}

.pricing-evidence-summary p,
.pricing-evidence-panel footer p {
  margin: 6px 0 0;
  color: rgba(213, 225, 240, 0.8);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.pricing-evidence-summary a {
  display: inline-flex;
  margin-top: 8px;
  color: #69a5ff;
  font-size: 12px;
  font-weight: 850;
}

.pricing-trace {
  height: 172px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.pricing-trace svg {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 74px, rgba(255, 255, 255, 0.045) 75px),
    repeating-linear-gradient(180deg, transparent 0, transparent 38px, rgba(255, 255, 255, 0.045) 39px),
    rgba(47, 136, 255, 0.05);
}

.pricing-trace path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.pricing-trace path:first-child {
  stroke: #2f88ff;
}

.pricing-trace path:last-child {
  stroke: #ff9f1c;
}

.pricing-evidence-panel footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pricing-owner-section,
.pricing-prebuy-section,
.pricing-fleet-section,
.pricing-faq-strip {
  margin-top: 28px;
}

.pricing-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.pricing-section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #69a5ff;
}

.pricing-section-heading h2 {
  max-width: 1040px;
  margin: 0;
  color: rgba(247, 250, 255, 0.98);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.pricing-section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pricing-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 365px;
  padding: 18px;
}

.pricing-plan-card.is-recommended {
  border-color: rgba(255, 159, 28, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(255, 159, 28, 0.09),
    0 18px 40px rgba(0, 0, 0, 0.36);
}

.pricing-plan-ribbon {
  /* Pinned to the card's top-right corner so it never pushes the plan name
     down a line (.pricing-plan-card is the positioning context). */
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 159, 28, 0.44);
  border-radius: 8px;
  background: rgba(255, 159, 28, 0.1);
  color: #ffd399;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pricing-plan-card h3 {
  margin: 0 0 8px;
  color: #69a5ff;
  font-size: 20px;
  line-height: 1.12;
}

.pricing-plan-card.is-recommended h3 {
  color: var(--amber);
}

.pricing-plan-card > p {
  min-height: 44px;
  margin: 0 0 15px;
  color: rgba(213, 225, 240, 0.8);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.pricing-plan-price strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.pricing-plan-price span {
  color: rgba(213, 225, 240, 0.74);
  font-size: 12px;
  font-weight: 750;
}

.pricing-multi-engine-price {
  margin: -10px 0 16px;
  color: rgba(170, 183, 199, 0.78);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.pricing-plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.pricing-plan-card li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 8px;
  color: rgba(238, 244, 251, 0.9);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-plan-card li::before {
  content: "✓";
  color: #69a5ff;
  font-weight: 900;
}

.pricing-plan-card .primary-action,
.pricing-plan-card .secondary-action {
  width: 100%;
  margin-top: auto;
}

.pricing-disabled-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  filter: saturate(0.78);
}

.pricing-prebuy-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 12px;
}

.pricing-prebuy-intro,
.pricing-prebuy-card {
  border: 1px solid rgba(121, 142, 165, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(12, 22, 32, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.pricing-prebuy-intro {
  padding: 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 159, 28, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(20, 31, 43, 0.98), rgba(12, 22, 32, 0.98));
}

.pricing-prebuy-intro h2 {
  margin: 0 0 10px;
  color: #ffd399;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
}

.pricing-prebuy-intro p:not(.eyebrow) {
  margin: 0;
  color: rgba(213, 225, 240, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-prebuy-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 22px;
  border-color: rgba(255, 159, 28, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 159, 28, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.pricing-prebuy-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid rgba(255, 159, 28, 0.42);
  border-radius: 8px;
  background: rgba(255, 159, 28, 0.1);
  color: #ffd399;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-prebuy-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.pricing-prebuy-card li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 8px;
  color: rgba(238, 244, 251, 0.9);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-prebuy-card li::before {
  content: "✓";
  color: #ffb14f;
  font-weight: 900;
}

.pricing-prebuy-card > p {
  margin: 0 0 18px;
  color: rgba(213, 225, 240, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-prebuy-card .secondary-action {
  width: 100%;
  margin-top: auto;
}

.pricing-fleet-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  overflow: hidden;
}

.pricing-fleet-intro {
  padding: 22px;
  border-right: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 14% 18%, rgba(45, 212, 191, 0.12), transparent 18rem),
    rgba(45, 212, 191, 0.025);
}

.pricing-fleet-intro > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid rgba(255, 159, 28, 0.42);
  border-radius: 8px;
  background: rgba(255, 159, 28, 0.1);
  color: #ffd399;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-fleet-intro h2 {
  margin: 0 0 10px;
  color: #5df0da;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
}

.pricing-fleet-intro p {
  margin: 0 0 18px;
  color: rgba(213, 225, 240, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-fleet-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-fleet-cards article {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px;
  border-right: 1px solid var(--line-soft);
}

.pricing-fleet-cards article:last-child {
  border-right: 0;
}

.pricing-fleet-cards h3 {
  margin: 0 0 10px;
  color: #5df0da;
  font-size: 17px;
}

.pricing-fleet-cards strong {
  display: block;
  margin-bottom: 13px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1;
}

.pricing-fleet-cards p {
  margin: 0 0 18px;
  color: rgba(213, 225, 240, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.pricing-fleet-cards .secondary-action {
  width: 100%;
  margin-top: auto;
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(45, 212, 191, 0.1);
  color: #baf7ee;
}

.pricing-pack-grid,
.pricing-faq-strip {
  display: grid;
  gap: 12px;
}

.pricing-pack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.pricing-pack-grid article,
.pricing-faq-strip article {
  min-height: 132px;
  padding: 18px;
}

.pricing-pack-grid h3,
.pricing-faq-strip h2 {
  margin: 0 0 8px;
  color: rgba(247, 250, 255, 0.98);
  font-size: 17px;
  line-height: 1.15;
}

.pricing-pack-grid p,
.pricing-faq-strip p {
  margin: 0;
  color: rgba(213, 225, 240, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-pack-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
}

.pricing-faq-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 10px;
}

@media (max-width: 1120px) {
  .pricing-hero,
  .pricing-prebuy-section,
  .pricing-section-heading,
  .pricing-fleet-section {
    grid-template-columns: 1fr;
  }

  .pricing-hero {
    min-height: auto;
  }

  .pricing-dashboard-preview,
  .pricing-dashboard-image-frame,
  .pricing-dashboard-preview img {
    min-height: 380px;
  }

  .pricing-proof-grid,
  .pricing-plan-grid,
  .pricing-prebuy-card ul,
  .pricing-pack-grid,
  .pricing-faq-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-fleet-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .pricing-hero-copy h1 {
    font-size: 40px;
  }

  .pricing-dashboard-preview,
  .pricing-dashboard-image-frame,
  .pricing-dashboard-preview img {
    min-height: 300px;
  }

  .pricing-proof-grid,
  .pricing-plan-grid,
  .pricing-fleet-cards,
  .pricing-prebuy-card ul,
  .pricing-pack-grid,
  .pricing-faq-strip,
  .pricing-evidence-summary,
  .pricing-evidence-panel footer {
    grid-template-columns: 1fr;
  }

  .pricing-evidence-summary > div,
  .pricing-evidence-panel footer > div,
  .pricing-fleet-cards article {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .pricing-evidence-summary > div:last-child,
  .pricing-evidence-panel footer > div:last-child,
  .pricing-fleet-cards article:last-child {
    border-bottom: 0;
  }

  .pricing-hero-actions .primary-action,
  .pricing-hero-actions .secondary-action {
    width: 100%;
  }
}

.public-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: stretch;
  gap: clamp(18px, 3vw, 34px);
  min-height: clamp(330px, 44vw, 520px);
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(12, 22, 33, 0.9), rgba(15, 27, 39, 0.72)),
    url("assets/glass_cockpit.png") center 52% / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 22px 64px rgba(0, 0, 0, 0.24);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 15, 21, 0.84), rgba(9, 15, 21, 0.38) 55%, rgba(9, 15, 21, 0.66)),
    radial-gradient(circle at 78% 25%, rgba(45, 212, 191, 0.15), transparent 26rem);
  pointer-events: none;
}

.public-page--about .public-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.68fr);
  min-height: clamp(420px, 46vw, 650px);
  background:
    linear-gradient(120deg, rgba(8, 16, 24, 0.96) 0%, rgba(12, 23, 35, 0.74) 54%, rgba(8, 16, 24, 0.5) 100%),
    url("assets/about-laptop-hangar.png") center 50% / cover no-repeat;
}

.public-page--about .public-image-panel {
  width: min(100%, 680px);
  justify-self: end;
}

.public-page--about .public-hero h1 {
  max-width: 12ch;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-hero-actions .primary-action,
.about-hero-actions .secondary-action {
  min-width: 168px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 850;
}

.public-page--faq .public-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 0.72fr);
}

.public-page--faq .public-image-panel {
  align-self: center;
  width: min(100%, 850px);
  justify-self: end;
  transform: translateY(-18px);
}

.public-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}

.public-hero .eyebrow {
  color: rgba(170, 183, 199, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(40px, 6.8vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.public-page--contact .public-hero h1 {
  max-width: 14ch;
  font-size: clamp(36px, 5.6vw, 74px);
}

.public-page--contact .public-hero {
  background:
    linear-gradient(120deg, rgba(9, 15, 23, 0.94) 0%, rgba(9, 15, 23, 0.62) 47%, rgba(9, 15, 23, 0.24) 100%),
    url("assets/contact-ramp-cessna.png") center 50% / cover no-repeat;
}

.public-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(218, 228, 241, 0.88);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.58;
}

.public-hero-panel,
.public-image-panel {
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 18, 27, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.public-hero-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.public-hero-panel span {
  color: #8ed9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero-panel strong {
  color: rgba(245, 248, 255, 0.96);
  font-size: 22px;
  line-height: 1.15;
}

.public-hero-panel p {
  color: rgba(170, 183, 199, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.public-image-panel {
  aspect-ratio: 16 / 9;
}

.public-image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-grid,
.public-card-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-grid {
  counter-reset: faq-card;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid article,
.public-card-row article {
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.82), rgba(15, 24, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.faq-grid article {
  counter-increment: faq-card;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 210px;
  padding: 22px;
}

.faq-grid article::before {
  content: counter(faq-card, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(139, 214, 255, 0.26);
  border-radius: 999px;
  color: rgba(143, 221, 255, 0.96);
  background: rgba(25, 115, 184, 0.14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faq-grid h2,
.public-card-row h2 {
  margin: 0;
  color: rgba(245, 248, 255, 0.96);
  font-size: 20px;
  line-height: 1.16;
}

.faq-grid p,
.public-card-row p {
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 13px;
  line-height: 1.58;
}

.faq-grid p {
  font-size: 15.5px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr) minmax(88px, 120px);
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  padding: clamp(34px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.about-story h2 {
  margin: 0;
  max-width: 12ch;
  color: rgba(245, 248, 255, 0.98);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-story > p {
  max-width: 78ch;
  margin: 0;
  color: rgba(184, 200, 218, 0.92);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.68;
}

.about-trace-motif {
  display: grid;
  gap: 9px;
}

.about-trace-motif span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(103, 168, 255, 0.72), rgba(45, 212, 191, 0.7), transparent);
}

.about-trace-motif span:nth-child(2n) {
  background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.62), rgba(103, 168, 255, 0.62), transparent);
  transform: translateX(-12px);
}

.about-ai-harness {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(34px, 5vw, 72px) 0;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.about-ai-harness-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.about-ai-harness-copy .eyebrow {
  margin: 0;
  color: #ffb13d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-ai-harness-copy h2 {
  max-width: 15ch;
  margin: 0;
  color: rgba(245, 248, 255, 0.98);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-ai-harness-copy p {
  max-width: 76ch;
  margin: 0;
  color: rgba(184, 200, 218, 0.92);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.68;
}

.about-ai-harness-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  min-height: clamp(390px, 31vw, 480px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.98) 0%, rgba(7, 16, 24, 0.82) 42%, rgba(7, 16, 24, 0.18) 72%, rgba(7, 16, 24, 0.06) 100%),
    linear-gradient(180deg, rgba(18, 32, 45, 0.64), rgba(13, 24, 35, 0.76)),
    url("assets/detector-harness-bg.png") 64% 50% / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 54px rgba(0, 0, 0, 0.18);
}

.about-ai-harness-panel::before {
  content: "";
  position: absolute;
  inset: clamp(34px, 4vw, 48px) auto clamp(128px, 10vw, 156px) clamp(39px, 4vw, 55px);
  z-index: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.8), rgba(255, 177, 61, 0.82));
  opacity: 0.82;
}

.about-ai-harness-panel > * {
  position: relative;
  z-index: 1;
}

.about-ai-harness-panel ol {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-ai-harness-panel li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 12px 14px 12px 0;
  border: 1px solid rgba(127, 164, 210, 0.12);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.2), rgba(7, 16, 24, 0.62));
  backdrop-filter: blur(8px);
}

.about-ai-harness-panel li span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #2dd4bf;
  color: #07151c;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.about-ai-harness-panel li:nth-child(3) span {
  background: #ffb13d;
}

.about-ai-harness-panel strong {
  display: inline-block;
  width: fit-content;
  margin: 0 0 6px;
  padding: 7px 14px;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 999px;
  color: rgba(245, 248, 255, 0.98);
  background: rgba(7, 16, 24, 0.58);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-ai-harness-panel li p {
  grid-column: 2;
  margin: 0;
  color: rgba(174, 189, 205, 0.9);
  font-size: 14px;
  line-height: 1.48;
}

.about-ai-harness-quote {
  width: min(610px, 100%);
  margin: auto 0 0;
  padding: 18px 20px;
  border-left: 4px solid #2dd4bf;
  border-radius: 8px;
  color: rgba(245, 248, 255, 0.98);
  background: linear-gradient(90deg, rgba(7, 16, 24, 0.88), rgba(7, 16, 24, 0.64));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.18;
}

.about-workflow,
.about-principles,
.about-closing {
  padding: clamp(34px, 5vw, 72px) 0;
}

.about-workflow {
  position: relative;
  isolation: isolate;
  padding-top: clamp(38px, 5vw, 70px);
  padding-bottom: clamp(38px, 5vw, 70px);
}

.about-workflow::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(47, 136, 255, 0.12), transparent 42rem),
    linear-gradient(90deg, transparent, rgba(15, 31, 45, 0.6) 18%, rgba(12, 24, 36, 0.74) 50%, rgba(15, 31, 45, 0.58) 82%, transparent);
  opacity: 0.84;
}

.about-section-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 4vw, 48px);
  margin-bottom: 24px;
}

.about-section-copy h2,
.about-closing-copy h2 {
  margin: 0;
  color: rgba(245, 248, 255, 0.98);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-section-copy p,
.about-closing-copy p {
  max-width: 78ch;
  margin: 0;
  color: rgba(184, 200, 218, 0.92);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.68;
}

.about-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 64px);
}

.about-workflow .about-section-copy {
  display: block;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.about-workflow .about-section-copy h2 {
  max-width: none;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
}

.about-workflow-step {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  min-height: 0;
  padding: 0;
  text-align: center;
}

.about-workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(112px, 9vw, 142px);
  right: calc(clamp(26px, 4vw, 64px) * -0.68);
  width: clamp(48px, 5vw, 92px);
  height: 16px;
  background: linear-gradient(90deg, rgba(142, 157, 176, 0.16), rgba(142, 157, 176, 0.46));
  clip-path: polygon(0 44%, 82% 44%, 82% 14%, 100% 50%, 82% 86%, 82% 56%, 0 56%);
}

.about-principle-card svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-workflow-icon {
  display: block;
  width: clamp(132px, 12vw, 178px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 26px rgba(45, 212, 191, 0.18));
}

.about-principle-card svg {
  width: 34px;
  height: 34px;
  color: #2dd4bf;
  stroke-width: 1.8;
}

.about-workflow-step > span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5aa9ff, #276fc7);
  box-shadow: 0 0 0 1px rgba(141, 196, 255, 0.32), 0 10px 24px rgba(47, 136, 255, 0.28);
  color: #eaf5ff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.about-workflow-step h3,
.about-principle-card h3 {
  margin: 0;
  color: rgba(245, 248, 255, 0.98);
  font-size: 19px;
  line-height: 1.15;
}

.about-workflow-step > p,
.about-principle-card p {
  margin: 0;
  color: rgba(174, 189, 205, 0.9);
  font-size: 15px;
  line-height: 1.45;
}

.about-workflow-step > p {
  max-width: 24ch;
}

.about-principles {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  border-top: 1px solid rgba(127, 164, 210, 0.14);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.about-principles .about-section-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  margin-bottom: 0;
}

.about-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-principle-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 226px;
  padding: 22px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 32, 45, 0.8), rgba(13, 24, 35, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.about-principle-card:nth-child(2) svg {
  color: #67a8ff;
}

.about-principle-card:nth-child(3) svg {
  color: #ffb13d;
}

.about-closing {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.about-closing-copy {
  display: grid;
  gap: 18px;
  max-width: 700px;
}

.legal-page {
  max-width: 1120px;
  margin: 0 auto;
}

.legal-page-header {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 56px) 0 24px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.16);
}

.legal-page-header .eyebrow {
  margin: 0;
  color: rgba(170, 183, 199, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page-header h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-page-header p {
  max-width: 78ch;
  margin: 0;
  color: rgba(218, 228, 241, 0.88);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.58;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.legal-content article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.82), rgba(15, 24, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.legal-content h2 {
  margin: 0;
  color: rgba(245, 248, 255, 0.96);
  font-size: 20px;
  line-height: 1.16;
}

.legal-content p {
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 15px;
  line-height: 1.62;
}

.detection-guide-page {
  padding-top: clamp(22px, 3vw, 38px);
}

.detection-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.detection-guide-hero .eyebrow {
  margin: 0 0 9px;
  color: rgba(170, 183, 199, 0.88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detection-guide-hero h1 {
  margin: 0 0 8px;
  max-width: none;
  color: rgba(245, 248, 255, 0.96);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.detection-guide-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(196, 209, 224, 0.88);
  font-size: 15px;
  line-height: 1.5;
}

.detection-guide-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: end;
  align-items: flex-end;
  gap: 7px;
  color: rgba(196, 209, 224, 0.86);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.detection-guide-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 6px;
  background: rgba(18, 31, 44, 0.72);
  color: rgba(225, 235, 247, 0.92);
  font-size: 12px;
  font-weight: 750;
}

.detection-guide-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}

.detection-guide-search {
  position: relative;
  display: block;
}

.detection-guide-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.detection-guide-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(127, 164, 210, 0.26);
  border-radius: 8px;
  outline: none;
  background: rgba(10, 22, 32, 0.82);
  color: rgba(238, 245, 255, 0.96);
  font: inherit;
  font-size: 14px;
}

.detection-guide-search input::placeholder {
  color: rgba(170, 183, 199, 0.72);
}

.detection-guide-search input:focus {
  border-color: rgba(139, 214, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(65, 160, 230, 0.12);
}

.detection-guide-family-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

.detection-guide-family-filter button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-left: 0;
  background: rgba(12, 24, 35, 0.76);
  color: rgba(218, 228, 241, 0.9);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.detection-guide-family-filter button:first-child {
  border-left: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 7px 0 0 7px;
}

.detection-guide-family-filter button:last-child {
  border-radius: 0 7px 7px 0;
}

.detection-guide-family-filter button:hover,
.detection-guide-family-filter button.is-active {
  color: rgba(245, 248, 255, 0.98);
  background: rgba(64, 147, 221, 0.16);
}

.detection-guide-family-filter button.is-active {
  box-shadow: inset 0 -2px 0 #8ed9ff;
}

.detection-guide-family-filter strong {
  color: #8ed9ff;
  font-size: 11px;
}

.detection-guide-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.detection-guide-index {
  position: static;
}

.detection-guide-index > div {
  display: grid;
  gap: 14px;
}

.detection-guide-index section {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.12);
}

.detection-guide-index h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px;
  color: rgba(170, 183, 199, 0.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detection-guide-index h2 span {
  color: #8ed9ff;
}

.detection-guide-index a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 6px;
  color: rgba(218, 228, 241, 0.86);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.detection-guide-index a img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.88;
}

.detection-guide-index a:hover,
.detection-guide-index a.is-active {
  color: rgba(245, 248, 255, 0.98);
  background: rgba(64, 147, 221, 0.14);
}

.detection-guide-content {
  display: grid;
  gap: 14px;
}

.detection-guide-card,
.detection-guide-empty {
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 31, 44, 0.86), rgba(13, 24, 35, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.detection-guide-card {
  display: grid;
  gap: 0;
  padding: 0;
  scroll-margin-top: 96px;
}

.detection-guide-empty {
  padding: 26px;
}

.detection-guide-card-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 24px);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.detection-guide-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(139, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(65, 160, 230, 0.08);
}

.detection-guide-card-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.detection-guide-card header span {
  display: inline-block;
  margin-bottom: 6px;
  color: #8ed9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detection-guide-card h2,
.detection-guide-empty h2 {
  margin: 0 0 7px;
  color: rgba(245, 248, 255, 0.96);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.08;
  letter-spacing: 0;
}

.detection-guide-card header p,
.detection-guide-empty p,
.detection-guide-note {
  margin: 0;
  color: rgba(196, 209, 224, 0.9);
  font-size: 14px;
  line-height: 1.55;
}

.detection-threshold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.detection-threshold {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(139, 214, 255, 0.16);
  border-radius: 8px;
  background: rgba(21, 38, 52, 0.72);
}

.detection-threshold span {
  color: rgba(170, 183, 199, 0.88);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.detection-threshold strong {
  align-self: end;
  color: rgba(245, 248, 255, 0.96);
  font-size: 19px;
  line-height: 1.1;
}

.detection-threshold-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px clamp(18px, 2.4vw, 24px);
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.detection-threshold-row > strong {
  margin-right: 4px;
  color: #8ed9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detection-threshold-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(139, 214, 255, 0.14);
  border-radius: 6px;
  background: rgba(8, 18, 27, 0.34);
  color: rgba(170, 183, 199, 0.88);
  font-size: 12px;
  line-height: 1.2;
}

.detection-threshold-pill strong {
  color: rgba(245, 248, 255, 0.94);
  font-size: 13px;
  white-space: nowrap;
}

.detection-guide-section-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(150px, 1fr) minmax(190px, 1.25fr) minmax(190px, 1.18fr) minmax(190px, 1.12fr);
}

.detection-guide-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px clamp(16px, 2vw, 22px);
  border-left: 1px solid rgba(127, 164, 210, 0.14);
}

.detection-guide-section:first-child {
  border-left: 0;
}

.detection-guide-section h3 {
  margin: 0;
  color: rgba(191, 238, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.detection-guide-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(196, 209, 224, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

.detection-guide-muted {
  margin: 0;
  color: rgba(170, 183, 199, 0.82);
  font-size: 13px;
}

.detection-guide-note {
  padding: 15px clamp(18px, 2.4vw, 24px);
  border-top: 1px solid rgba(127, 164, 210, 0.12);
}

.about-engine-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(8, 15, 23, 0.78);
  aspect-ratio: 1448 / 1086;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.about-engine-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.04), rgba(7, 12, 18, 0.16)),
    linear-gradient(90deg, rgba(7, 12, 18, 0.34), transparent 18%, transparent 82%, rgba(7, 12, 18, 0.34));
  pointer-events: none;
}

.about-engine-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.about-closing .about-engine-figure {
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.public-card-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-card-row article,
.contact-update-section {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.public-card-row article {
  min-height: 176px;
}

.contact-update-section {
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 36px);
  margin-top: 18px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.82), rgba(15, 24, 34, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.contact-update-copy {
  display: grid;
  gap: 12px;
}

.contact-update-copy h2 {
  max-width: 14ch;
  margin: 0;
  color: rgba(245, 248, 255, 0.96);
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.02;
}

.contact-update-copy p {
  max-width: 40ch;
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 15px;
  line-height: 1.58;
}

.contact-update-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-update-form label {
  display: grid;
  gap: 7px;
}

.contact-update-form__wide {
  grid-column: 1 / -1;
}

.contact-update-form span {
  color: rgba(218, 228, 241, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.contact-update-form input,
.contact-update-form select,
.contact-update-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 8px;
  color: rgba(245, 248, 255, 0.96);
  background: rgba(7, 12, 18, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.contact-update-form input,
.contact-update-form select {
  padding: 0 13px;
}

.contact-update-form textarea {
  resize: vertical;
  padding: 12px 13px;
}

.contact-update-form input:focus,
.contact-update-form select:focus,
.contact-update-form textarea:focus {
  outline: 2px solid rgba(142, 217, 255, 0.42);
  outline-offset: 2px;
  border-color: rgba(142, 217, 255, 0.5);
}

.contact-update-form .primary-action {
  justify-self: start;
  min-width: 168px;
}

.contact-form-status {
  align-self: center;
  margin: 0;
  color: rgba(170, 183, 199, 0.9);
  font-size: 13px;
  line-height: 1.4;
}

.contact-form-status[data-tone="success"] {
  color: rgba(119, 228, 174, 0.96);
}

.contact-form-status[data-tone="error"] {
  color: rgba(255, 139, 132, 0.96);
}

.dashboard-review-context {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

.dashboard-empty-aircraft {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  border: 1px dashed rgba(127, 164, 210, 0.24);
  border-radius: 12px;
  background: rgba(127, 164, 210, 0.04);
}

.dashboard-empty-aircraft-inner {
  display: grid;
  gap: 8px;
  max-width: 420px;
  text-align: center;
}

.dashboard-empty-aircraft-inner strong {
  color: rgba(245, 248, 255, 0.96);
  font-size: 18px;
  line-height: 1.25;
}

.dashboard-empty-aircraft-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-empty-aircraft-action {
  justify-self: center;
  margin-top: 8px;
}

#view-dashboard.is-empty-aircraft > *:not(#dashboardEmptyAircraftState) {
  display: none !important;
}

.dashboard-review-primary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-review-primary span,
.dashboard-review-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-review-primary strong {
  overflow: hidden;
  color: rgba(245, 248, 255, 0.96);
  font-size: 19.8px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-review-primary small {
  overflow: hidden;
  color: rgba(170, 183, 199, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-review-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  margin: 0;
}

.dashboard-review-details div {
  display: grid;
  gap: 2px;
  min-width: 82px;
}

.dashboard-review-details dd {
  margin: 0;
  color: rgba(231, 239, 250, 0.9);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.ai-summary-panel {
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  border-color: rgba(92, 139, 182, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(40, 139, 215, 0.11), transparent 42%),
    linear-gradient(145deg, rgba(9, 22, 35, 0.98), rgba(5, 15, 26, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(0, 0, 0, 0.2);
}

.ai-summary-panel[hidden] {
  display: none;
}

.ai-summary-panel.is-ai-review-intro {
  background:
    linear-gradient(90deg, rgba(7, 16, 27, 0.97) 0%, rgba(8, 18, 30, 0.91) 44%, rgba(8, 18, 30, 0.73) 100%),
    radial-gradient(circle at 78% 54%, rgba(47, 136, 255, 0.13), transparent 36%),
    url("assets/ai-summary-building-bg.png") right center / cover no-repeat;
}

.ai-summary-panel.is-ai-review-intro .ai-summary-topbar {
  background: rgba(7, 18, 30, 0.58);
}

.dashboard-ai-summary-panel {
  margin-bottom: 14px;
  scroll-margin-top: 18px;
}

.ai-summary-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.22);
  background: rgba(7, 18, 30, 0.42);
}

.ai-summary-topbar .chart-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-summary-regenerate-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ai-summary-topbar .secondary-action {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(134, 167, 203, 0.25);
  background: linear-gradient(180deg, rgba(31, 48, 68, 0.92), rgba(15, 28, 43, 0.92));
  color: rgba(240, 246, 255, 0.95);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-summary-topbar .secondary-action:hover,
.ai-summary-topbar .secondary-action:focus-visible {
  border-color: rgba(76, 166, 255, 0.64);
  background: linear-gradient(180deg, rgba(38, 67, 96, 0.95), rgba(18, 38, 61, 0.95));
}

.ai-summary-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.ai-summary-heading h2 {
  margin: 0;
  color: rgba(247, 250, 255, 0.98);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.ai-summary-meta {
  margin: 0;
  color: rgba(143, 158, 178, 0.94);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ai-summary-meta span {
  color: rgba(74, 166, 255, 0.96);
}

.ai-summary-empty-card {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(220px, 310px);
  align-items: center;
  justify-content: center;
  gap: 42px;
  min-height: 246px;
  padding: 34px clamp(28px, 7vw, 110px);
}

.ai-summary-empty-content {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.ai-summary-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(92, 174, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.2), rgba(47, 136, 255, 0.08)),
    rgba(12, 30, 49, 0.82);
  color: rgba(153, 205, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px rgba(47, 136, 255, 0.1);
}

.ai-summary-empty-icon svg {
  width: 42px;
  height: 42px;
}

.ai-summary-empty-icon-frame {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.5;
}

.ai-summary-empty-icon-sparkle,
.ai-summary-empty-icon-text {
  fill: currentColor;
  stroke: none;
}

.ai-summary-empty-icon-sparkle.is-small {
  opacity: 0.95;
}

.ai-summary-empty-content strong {
  display: block;
  color: rgba(247, 250, 255, 0.98);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.15;
}

.ai-summary-empty-content p {
  max-width: 720px;
  margin: 9px 0 18px;
  color: rgba(186, 199, 218, 0.94);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.ai-summary-empty-content .primary-action {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 8px;
}

.ai-summary-empty-preview {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(115, 151, 190, 0.17);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 47, 66, 0.62), rgba(12, 26, 41, 0.42)),
    rgba(7, 18, 30, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-summary-empty-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: rgba(47, 136, 255, 0.72);
}

.ai-summary-empty-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 3px;
}

.ai-summary-empty-preview-header span,
.ai-summary-empty-preview-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(159, 191, 226, 0.16);
}

.ai-summary-empty-preview-header span:first-child {
  width: 92px;
  background: rgba(76, 166, 255, 0.36);
}

.ai-summary-empty-preview-header span:last-child {
  width: 42px;
}

.ai-summary-empty-preview-line {
  width: 76%;
}

.ai-summary-empty-preview-line.is-long {
  width: 92%;
}

.ai-summary-empty-preview-line.is-short {
  width: 58%;
}

.ai-summary-empty-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.ai-summary-empty-preview-chips span {
  padding: 4px 8px;
  border: 1px solid rgba(115, 151, 190, 0.18);
  border-radius: 6px;
  background: rgba(8, 18, 30, 0.42);
  color: rgba(177, 195, 217, 0.68);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* In-panel placement of the shared gauge card (.dashboard-loading-card):
   center it within the AI review body and cap its width. */
.ai-summary-loading-card {
  width: min(100%, 640px);
  margin: 4px auto;
}

/* The full-dashboard flight-loading overlay already covers the whole load; don't
   stack the in-panel AI loader behind it. It reappears once the overlay clears,
   if the AI summary is still loading. */
#view-dashboard.is-flight-loading .ai-summary-loading-card {
  display: none;
}

.ai-summary-headline {
  margin: 0;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.22);
  color: rgba(232, 240, 252, 0.96);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.ai-summary-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 31%);
  min-height: 244px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.22);
}

.ai-summary-quick-read {
  padding: 24px 28px 22px;
}

.ai-summary-quick-read-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ai-summary-quick-read-header h3 {
  flex: 0 0 auto;
}

.ai-summary-review-focus {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 20px 16px;
  border-left: 1px solid rgba(108, 143, 177, 0.22);
}

.ai-summary-quick-read h3,
.ai-summary-review-focus h3,
.ai-summary-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(76, 166, 255, 0.96);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-advisory-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  padding: 8px 10px;
  border: 1px solid rgba(115, 151, 190, 0.16);
  border-left: 2px solid rgba(76, 166, 255, 0.52);
  border-radius: 6px;
  background: rgba(9, 22, 36, 0.28);
  color: rgba(170, 183, 199, 0.82);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.ai-summary-advisory-label {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(76, 166, 255, 0.22);
  border-radius: 999px;
  background: rgba(47, 136, 255, 0.1);
  color: rgba(153, 205, 255, 0.95);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-narrative-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid rgba(108, 143, 177, 0.14);
}

.ai-summary-narrative-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0 15px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.14);
}

.ai-summary-narrative-label {
  padding-top: 3px;
  color: rgba(76, 166, 255, 0.88);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-narrative-copy {
  min-width: 0;
  color: rgba(201, 213, 231, 0.94);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.ai-summary-narrative-copy p {
  margin: 0;
  text-align-last: left;
}

.ai-summary-narrative-copy p + p {
  margin-top: 8px;
}

.ai-summary-narrative-copy strong {
  color: rgba(242, 248, 255, 0.98);
  font-weight: 850;
}

.ai-summary-engine-summaries,
.ai-summary-shared-context,
.ai-summary-exploratory {
  padding: 24px 28px 28px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.22);
}

.ai-summary-engine-summaries-heading,
.ai-summary-shared-context-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
}

.ai-summary-engine-summaries-heading .eyebrow,
.ai-summary-shared-context-heading .eyebrow {
  margin: 0 0 4px;
  color: rgba(76, 166, 255, 0.78);
}

.ai-summary-engine-summaries-heading h3,
.ai-summary-shared-context-heading h3 {
  margin: 0;
  color: rgba(239, 246, 255, 0.98);
  font-size: 17px;
}

.ai-summary-engine-summaries-heading > p,
.ai-summary-shared-context-heading > p {
  max-width: 540px;
  margin: 0;
  color: rgba(169, 185, 205, 0.84);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.ai-summary-engine-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-summary-engine-summary {
  min-width: 0;
  padding: 18px 20px 8px;
  border: 1px solid rgba(92, 154, 214, 0.25);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(25, 55, 84, 0.3), rgba(9, 24, 39, 0.2)),
    rgba(7, 18, 30, 0.34);
}

.ai-summary-engine-summary > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 143, 177, 0.16);
}

.ai-summary-engine-summary > header p,
.ai-summary-engine-summary > header h4 {
  margin: 0;
}

.ai-summary-engine-summary > header p {
  color: rgba(146, 169, 194, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-engine-summary > header h4 {
  margin-top: 2px;
  color: rgba(243, 248, 255, 0.98);
  font-size: 18px;
}

.ai-summary-engine-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(76, 166, 255, 0.32);
  border-radius: 9px;
  background: rgba(47, 136, 255, 0.11);
  color: rgba(160, 210, 255, 0.98);
  font-size: 15px;
  font-weight: 900;
}

.ai-summary-engine-summary .ai-summary-narrative-list {
  margin-top: 8px;
  border-top: 0;
}

.ai-summary-engine-summary .ai-summary-narrative-item {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0 13px;
}

.ai-summary-engine-summary .ai-summary-narrative-copy {
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.ai-summary-shared-context {
  background: rgba(8, 20, 33, 0.28);
}

.ai-summary-exploratory {
  background:
    radial-gradient(circle at 92% 0%, rgba(109, 76, 255, 0.12), transparent 34%),
    rgba(10, 19, 34, 0.58);
}

.ai-summary-exploratory-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.ai-summary-exploratory-heading .eyebrow {
  margin: 0 0 4px;
  color: rgba(171, 147, 255, 0.92);
}

.ai-summary-exploratory-heading h3 {
  margin: 0;
  color: rgba(244, 241, 255, 0.98);
  font-size: 18px;
}

.ai-summary-exploratory-badge {
  padding: 5px 9px;
  border: 1px solid rgba(171, 147, 255, 0.3);
  border-radius: 999px;
  background: rgba(109, 76, 255, 0.1);
  color: rgba(204, 192, 255, 0.94);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-summary-exploratory-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(171, 147, 255, 0.2);
  border-radius: 9px;
  background: rgba(57, 39, 105, 0.13);
}

.ai-summary-exploratory-notice p {
  margin: 0;
  color: rgba(184, 197, 216, 0.88);
  font-size: 12px;
  line-height: 1.5;
}

.ai-summary-exploratory-notice strong {
  color: rgba(235, 240, 249, 0.98);
}

.ai-summary-exploratory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ai-summary-exploratory-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(119, 137, 179, 0.24);
  border-radius: 10px;
  background: rgba(7, 17, 30, 0.52);
}

.ai-summary-exploratory-item > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: rgba(151, 170, 193, 0.88);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-summary-exploratory-scope {
  color: rgba(190, 174, 255, 0.96);
}

.ai-summary-exploratory-classification {
  align-self: flex-start;
  margin-top: 12px;
  padding: 4px 7px;
  border: 1px solid rgba(116, 163, 210, 0.24);
  border-radius: 999px;
  background: rgba(45, 103, 156, 0.12);
  color: rgba(165, 207, 246, 0.94);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-summary-exploratory-classification[data-classification="unusual-unconfirmed-pattern"] {
  border-color: rgba(201, 170, 78, 0.28);
  background: rgba(138, 101, 23, 0.13);
  color: rgba(241, 208, 116, 0.94);
}

.ai-summary-exploratory-item h4 {
  margin: 8px 0 7px;
  color: rgba(240, 245, 252, 0.98);
  font-size: 15px;
}

.ai-summary-exploratory-copy {
  color: rgba(197, 209, 225, 0.94);
  font-size: 13px;
  line-height: 1.55;
}

.ai-summary-exploratory-copy p {
  margin: 0;
}

.ai-summary-exploratory-unconfirmed {
  margin: 9px 0 0;
  color: rgba(218, 191, 115, 0.9);
  font-size: 11px;
  line-height: 1.45;
}

.ai-summary-exploratory-traces {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.ai-summary-exploratory-traces > span {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(101, 134, 169, 0.22);
  border-radius: 7px;
  background: rgba(20, 39, 58, 0.55);
  color: rgba(203, 215, 230, 0.94);
  font-size: 11px;
}

.ai-summary-exploratory-traces b {
  color: rgba(136, 197, 255, 0.96);
  font-size: 10px;
}

.ai-summary-exploratory-traces small {
  color: rgba(145, 163, 184, 0.84);
  font-size: 9px;
}

.ai-summary-exploratory-open {
  align-self: flex-start;
  margin-top: auto;
}

.ai-summary-phase-disclosure {
  border-bottom: 1px solid rgba(108, 143, 177, 0.14);
}

.ai-summary-phase-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 0;
  color: rgba(76, 166, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-summary-phase-disclosure summary::-webkit-details-marker {
  display: none;
}

.ai-summary-phase-disclosure summary b {
  color: rgba(176, 213, 247, 0.92);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.ai-summary-phase-disclosure-body {
  display: grid;
}

.ai-summary-focus-item[data-ai-summary-health-key],
.ai-summary-standout-item[data-ai-summary-health-key],
.ai-summary-evidence-row[data-ai-summary-health-key] {
  cursor: pointer;
}

.ai-summary-focus-item[data-ai-summary-health-key]:hover,
.ai-summary-focus-item[data-ai-summary-health-key]:focus-visible,
.ai-summary-standout-item[data-ai-summary-health-key]:hover,
.ai-summary-standout-item[data-ai-summary-health-key]:focus-visible,
.ai-summary-evidence-row[data-ai-summary-health-key]:hover,
.ai-summary-evidence-row[data-ai-summary-health-key]:focus-visible {
  border-color: rgba(76, 166, 255, 0.42);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 0 1px rgba(76, 166, 255, 0.12);
}

.ai-summary-evidence-graph {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 14px 0 4px;
  padding: 11px 12px 12px;
  border: 1px solid rgba(115, 151, 190, 0.16);
  border-radius: 7px;
  background: rgba(7, 19, 31, 0.42);
}

.ai-summary-evidence-graph figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ai-summary-evidence-graph figcaption span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ai-summary-evidence-graph figcaption strong {
  color: rgba(235, 244, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.ai-summary-evidence-graph figcaption small {
  color: rgba(154, 171, 193, 0.9);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ai-summary-graph-open {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
}

.ai-summary-evidence-graph canvas {
  display: block;
  width: 100%;
  height: 178px;
}

.ai-summary-disclosure > .ai-summary-evidence-graph {
  margin: 0 16px 14px;
}

.ai-summary-focus-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 151, 190, 0.17);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(27, 47, 66, 0.72), rgba(16, 32, 48, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-summary-focus-item div {
  min-width: 0;
}

.ai-summary-focus-item strong {
  display: block;
  color: rgba(239, 245, 255, 0.94);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.ai-summary-focus-item p {
  margin: 3px 0 0;
  color: rgba(167, 181, 201, 0.92);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.ai-summary-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 37%) minmax(0, 1fr);
  border-bottom: 1px solid rgba(108, 143, 177, 0.22);
}

.ai-summary-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px 24px;
}

.ai-summary-standouts {
  border-right: 1px solid rgba(108, 143, 177, 0.22);
}

.ai-summary-standout-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-summary-standout-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 82px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(108, 143, 177, 0.17);
}

.ai-summary-standout-item > .ai-summary-card-icon,
.ai-summary-standout-item > .ai-summary-status {
  margin-top: 3px;
}

.ai-summary-standout-item > div {
  min-width: 0;
}

.ai-summary-standout-item:last-child {
  border-bottom: 0;
}

.ai-summary-standout-item strong {
  display: block;
  color: rgba(240, 246, 255, 0.95);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.ai-summary-standout-copy {
  display: grid;
  gap: 7px;
  margin-top: 5px;
}

.ai-summary-standout-copy p {
  margin: 0;
  color: rgba(186, 199, 218, 0.92);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-summary-status {
  justify-self: end;
  min-width: 64px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.ai-summary-status-watch {
  color: rgba(255, 165, 38, 0.95);
}

.ai-summary-status-caution {
  color: rgba(255, 205, 92, 0.95);
}

.ai-summary-status-good {
  color: rgba(95, 213, 119, 0.95);
}

.ai-summary-evidence-table {
  display: grid;
  gap: 7px;
}

.ai-summary-evidence-head,
.ai-summary-evidence-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
}

.ai-summary-evidence-head {
  display: none;
  padding: 0 18px;
  color: rgba(148, 162, 181, 0.86);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-evidence-row {
  min-height: 68px;
  padding: 10px 18px;
  border: 1px solid rgba(115, 151, 190, 0.15);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(27, 47, 66, 0.64), rgba(16, 32, 48, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-summary-evidence-row > .ai-summary-card-icon {
  grid-row: 1 / span 2;
}

.ai-summary-evidence-row strong {
  min-width: 0;
  color: rgba(238, 244, 253, 0.94);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.ai-summary-evidence-row p {
  display: grid;
  grid-column: 2 / 3;
  gap: 2px;
  margin: 0;
  color: rgba(177, 190, 208, 0.92);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.ai-summary-evidence-row p b {
  color: rgba(236, 243, 253, 0.94);
  font-weight: 850;
}

.ai-summary-source-count {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(75, 166, 255, 0.95), rgba(35, 115, 210, 0.95));
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.ai-summary-evidence-more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 0;
  color: rgba(162, 177, 198, 0.88);
  font-size: 12px;
  font-weight: 760;
}

.ai-summary-evidence-more button {
  border: 0;
  background: transparent;
  color: rgba(91, 177, 255, 0.96);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ai-summary-evidence-more button:hover,
.ai-summary-evidence-more button:focus-visible {
  color: rgba(185, 223, 255, 0.98);
  outline: none;
}

.ai-summary-card-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.ai-summary-topbar .secondary-action .ai-summary-card-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  font-size: 17px;
}

.ai-summary-disclosure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 20px;
}

.ai-summary-disclosure {
  border: 1px solid rgba(115, 151, 190, 0.16);
  border-radius: 8px;
  background: rgba(10, 27, 42, 0.64);
}

.ai-summary-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  color: rgba(76, 166, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-summary-disclosure summary::-webkit-details-marker {
  display: none;
}

.ai-summary-disclosure summary span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-summary-disclosure summary .ai-summary-card-icon {
  display: inline-grid;
  place-items: center;
  text-align: center;
}

.ai-summary-card-glyph {
  display: block;
  line-height: 1;
}

.ai-summary-disclosure summary .ai-summary-icon-context .ai-summary-card-glyph {
  transform: translateY(-2px);
}

.ai-summary-disclosure summary b {
  color: rgba(94, 178, 255, 0.96);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.ai-summary-disclosure-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 14px;
}

.ai-summary-disclosure-item {
  display: grid;
  gap: 5px;
}

.ai-summary-disclosure-item + .ai-summary-disclosure-item {
  padding-top: 12px;
  border-top: 1px solid rgba(115, 151, 190, 0.12);
}

.ai-summary-disclosure-item h4 {
  margin: 0;
  color: rgba(235, 243, 255, 0.95);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.ai-summary-disclosure-body p {
  margin: 0;
  color: rgba(190, 204, 222, 0.92);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.ai-summary-disclosure-item div {
  display: grid;
  gap: 7px;
}

.ai-summary-empty,
.ai-summary-error {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ai-summary-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: rgba(255, 176, 168, 0.94);
  padding: 14px 18px;
}

.ai-summary-error p {
  margin: 0;
}

.ai-summary-limit-notice {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) minmax(148px, 180px);
  align-items: center;
  gap: 18px;
  min-height: 156px;
  padding: 24px clamp(24px, 5vw, 64px);
  border-left: 3px solid rgba(245, 158, 11, 0.88);
  background:
    linear-gradient(90deg, rgba(104, 63, 8, 0.22), rgba(23, 31, 39, 0.42) 52%, rgba(12, 22, 35, 0.18));
}

.ai-summary-limit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(251, 191, 36, 0.48);
  border-radius: 8px;
  background: rgba(120, 75, 9, 0.2);
  color: rgba(253, 230, 138, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-summary-limit-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.ai-summary-limit-icon circle {
  fill: currentColor;
  stroke: none;
}

.ai-summary-limit-copy {
  min-width: 0;
}

.ai-summary-limit-eyebrow {
  margin: 0 0 4px;
  color: rgba(253, 230, 138, 0.82);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-limit-copy h3 {
  margin: 0;
  color: rgba(255, 247, 222, 0.98);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.ai-summary-limit-copy > p:not(.ai-summary-limit-eyebrow) {
  max-width: 720px;
  margin: 7px 0 0;
  color: rgba(222, 210, 184, 0.95);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.ai-summary-limit-renewal {
  display: block;
  margin-top: 7px;
  color: rgba(186, 199, 218, 0.86);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.ai-summary-limit-usage {
  display: grid;
  gap: 7px;
  justify-items: end;
  min-width: 0;
}

.ai-summary-limit-usage strong {
  color: rgba(255, 247, 222, 0.98);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.ai-summary-limit-usage strong span {
  color: rgba(253, 230, 138, 0.88);
  font-size: 12px;
  font-weight: 750;
}

.ai-summary-limit-meter {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.15);
}

.ai-summary-limit-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.28);
}

.ai-summary-limit-caption {
  color: rgba(186, 199, 218, 0.78);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .ai-summary-topbar,
  .ai-summary-heading {
    align-items: flex-start;
  }

  .ai-summary-heading {
    display: grid;
    gap: 6px;
  }

  .ai-summary-brief-grid,
  .ai-summary-detail-grid,
  .ai-summary-disclosure-grid,
  .ai-summary-empty-card {
    grid-template-columns: 1fr;
  }

  .ai-summary-empty-preview {
    max-width: 360px;
  }

  .ai-summary-limit-notice {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .ai-summary-limit-usage {
    grid-column: 2;
    justify-items: start;
    width: min(220px, 100%);
  }

  .ai-summary-evidence-graph canvas {
    height: 160px;
  }

  .ai-summary-review-focus,
  .ai-summary-standouts {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(108, 143, 177, 0.22);
  }

  .ai-summary-engine-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ai-summary-limit-notice {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 20px 16px;
  }

  .ai-summary-limit-usage {
    grid-column: auto;
    width: 100%;
  }

  .ai-work-notice {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    width: min(430px, calc(100vw - 32px));
    padding: 12px;
  }

  .upload-work-notice {
    right: 12px;
    bottom: 12px;
  }

  .ai-work-notice.has-upload-queue {
    width: min(430px, calc(100vw - 32px));
  }

  .ai-work-notice.has-upload-queue .ai-work-notice-copy {
    grid-column: 2;
  }

  .ai-work-notice-icon {
    width: 34px;
    height: 34px;
  }

  .ai-work-notice-action {
    grid-column: 2;
    justify-self: start;
  }

  .ai-work-notice.has-upload-queue .ai-work-notice-action {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

  .ai-work-notice-dismiss {
    grid-column: 3;
    grid-row: 1;
  }

  .ai-work-notice.has-upload-queue .ai-work-notice-dismiss {
    grid-column: 3;
    grid-row: 1;
  }

  .upload-queue-list {
    max-height: min(300px, 44vh);
  }

  .upload-queue-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .upload-queue-status {
    grid-column: 2;
    justify-self: start;
  }

  .upload-queue-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .ai-work-chip {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .ai-summary-topbar {
    display: grid;
    min-height: 0;
    padding: 16px;
  }

  .ai-summary-topbar .chart-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .ai-summary-regenerate-action {
    width: 100%;
  }

  .ai-summary-topbar .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .ai-summary-quick-read,
  .ai-summary-review-focus,
  .ai-summary-section,
  .ai-summary-engine-summaries,
  .ai-summary-shared-context,
  .ai-summary-exploratory {
    padding: 16px;
  }

  .ai-summary-engine-summaries-heading,
  .ai-summary-shared-context-heading,
  .ai-summary-exploratory-heading {
    display: grid;
    gap: 8px;
  }

  .ai-summary-engine-summaries-heading > p,
  .ai-summary-shared-context-heading > p {
    text-align: left;
  }

  .ai-summary-engine-summary {
    padding: 16px 16px 6px;
  }

  .ai-summary-engine-summary .ai-summary-narrative-item {
    grid-template-columns: 1fr;
  }

  .ai-summary-exploratory-list {
    grid-template-columns: 1fr;
  }

  .ai-summary-evidence-graph {
    padding: 10px;
  }

  .ai-summary-evidence-graph figcaption {
    display: grid;
  }

  .ai-summary-graph-open {
    justify-self: start;
  }

  .ai-summary-loading-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 18px 16px;
  }

  .ai-summary-panel.is-ai-review-intro {
    background:
      linear-gradient(180deg, rgba(7, 16, 27, 0.96) 0%, rgba(8, 18, 30, 0.88) 100%),
      url("assets/ai-summary-building-bg.png") center center / cover no-repeat;
  }

  .ai-summary-empty-card {
    gap: 20px;
    min-height: 0;
    padding: 22px 16px;
  }

  .ai-summary-empty-content {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .ai-summary-empty-icon {
    width: 46px;
    height: 46px;
  }

  .ai-summary-empty-icon svg {
    width: 33px;
    height: 33px;
  }

  .ai-summary-empty-content strong {
    font-size: 20px;
  }

  .ai-summary-narrative-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 13px 0;
  }

  .ai-summary-narrative-label {
    padding-top: 0;
  }

  .ai-summary-narrative-copy {
    font-size: 14px;
  }

  .ai-summary-standout-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .ai-summary-status {
    justify-self: start;
    grid-column: 2;
  }

  .ai-summary-evidence-head {
    display: none;
  }

  .ai-summary-evidence-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .ai-summary-evidence-row p {
    grid-column: 2 / -1;
  }

  .ai-summary-source-count {
    align-self: start;
  }

  .ai-summary-disclosure-grid {
    padding: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .ai-work-notice,
  .ai-work-spinner {
    animation: none;
  }
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  justify-content: start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.overview-score-row {
  margin-bottom: 12px;
}

.overview-score-row[hidden] {
  display: none;
}

.overview-score-row .multi-engine-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-score-row .multi-engine-overview.is-scoped {
  grid-template-columns: minmax(0, 1fr);
}

.overview-score-row .multi-engine-card {
  gap: 8px;
  padding: 10px;
}

.overview-score-row .multi-engine-card dl {
  gap: 5px;
}

.overview-score-row .multi-engine-card dl div {
  padding: 6px;
}

@media (min-width: 1500px) {
  .summary-band {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.scope-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.scope-switch button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 26, 40, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.scope-switch button:hover,
.scope-switch button:focus-visible,
.scope-switch button.is-active {
  border-color: rgba(47, 136, 255, 0.65);
  color: var(--text);
}

.scope-switch button:hover,
.scope-switch button:focus-visible {
  background: rgba(47, 136, 255, 0.14);
}

.scope-switch button.is-active {
  border-color: rgba(107, 174, 255, 0.95);
  background: #2f88ff;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(47, 136, 255, 0.22);
}

.scope-switch.is-multi-engine {
  align-items: center;
  gap: 8px;
}

.scope-engine-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.32);
}

.scope-switch .scope-aircraft-button,
.scope-switch .scope-engine-button {
  min-width: 112px;
  color: #dce7f3;
}

.scope-switch .scope-engine-button {
  border-color: rgba(47, 136, 255, 0.28);
  background: rgba(47, 136, 255, 0.08);
}

.scope-engine-divider {
  width: 1px;
  align-self: stretch;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.22);
}

.scope-sensitivity-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.scope-sensitivity-control .sensitivity-field {
  justify-content: flex-end;
}

.scope-sensitivity-control .sensitivity-inline {
  margin-left: 0;
}

.sensitivity-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.sensitivity-option {
  min-height: 24px;
  min-width: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.review-sensitivity .sensitivity-option {
  min-width: 48px;
  text-align: center;
}

.review-sensitivity .sensitivity-option[data-sensitivity="balanced"] {
  min-width: 82px;
}

.sensitivity-option:hover,
.sensitivity-option:focus-visible {
  background: rgba(47, 136, 255, 0.12);
  color: var(--text);
  outline: none;
}

.sensitivity-option.is-active {
  background: rgba(47, 136, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(138, 184, 255, 0.34);
  color: #ffffff;
}

.score-card,
.system-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.score-card[data-health-card],
.system-card[data-health-card] {
  cursor: pointer;
  outline: none;
}

.score-card[data-health-card] {
  grid-column: auto;
  min-height: 88px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.score-card[data-health-card]:hover,
.score-card[data-health-card]:focus-visible,
.score-card[data-health-card].is-selected,
.system-card[data-health-card]:hover,
.system-card[data-health-card]:focus-visible,
.system-card[data-health-card].is-selected {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(47, 136, 255, 0.18);
}

.score-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.score-card > div {
  min-width: 0;
}

.summary-band #healthGauge,
.overview-score-row #healthGauge {
  flex: 0 0 76px;
  width: 76px;
  max-width: 76px;
  height: 76px;
  max-height: 76px;
}

.score-card span {
  color: var(--green);
}

.score-card span.green {
  color: var(--green);
}

.score-card span.amber {
  color: var(--amber);
}

.score-card span.red {
  color: var(--red);
}

.score-card span.muted {
  color: var(--muted);
}

.cylinder-score-card {
  justify-content: center;
  text-align: center;
}

.cylinder-score-card > div {
  display: grid;
  justify-items: center;
}

.cylinder-summary-band[hidden] {
  display: none;
}

.cylinder-summary-band.is-one-row-compressed {
  grid-template-columns: repeat(var(--cylinder-summary-columns, 9), minmax(0, 1fr));
  gap: 8px;
}

.score-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.system-card {
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.35);
  overflow: hidden;
}

button.system-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.system-card > div {
  flex: 1 1 auto;
  min-width: 0;
}

.system-card p {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.system-card strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  max-width: 100%;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.system-card strong span {
  flex: 0 1 auto;
  font-size: 14px;
  color: var(--muted);
}

.system-card small {
  display: block;
  max-width: 100%;
  max-height: 2.6em;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.system-card small span {
  display: block;
}

.operating-context-cards {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.operating-context-cards[hidden] {
  display: none;
}

.operating-context-cards > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.operating-context-cards h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
}

.operating-context-intro {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.operating-context-cards > header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.operating-context-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.operating-context-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.35);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  outline: none;
  overflow: hidden;
}

.operating-context-card:hover,
.operating-context-card:focus-visible,
.operating-context-card.is-selected {
  border-color: rgba(49, 214, 200, 0.6);
  background: rgba(49, 214, 200, 0.09);
  box-shadow: inset 0 0 0 1px rgba(49, 214, 200, 0.16);
}

.operating-context-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(49, 214, 200, 0.38);
  background: rgba(49, 214, 200, 0.08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.operating-context-card.is-watch .operating-context-icon {
  border-color: rgba(255, 159, 28, 0.42);
  background: rgba(255, 159, 28, 0.09);
  color: var(--amber);
}

.operating-context-card > div {
  flex: 1 1 auto;
  min-width: 0;
}

.operating-context-card p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.operating-context-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.operating-context-card small {
  display: -webkit-box;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.system-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
}

.cylinder-summary-band.is-one-row-compressed .score-card,
.cylinder-summary-band.is-one-row-compressed .system-card {
  gap: 8px;
  min-height: 82px;
}

.cylinder-summary-band.is-one-row-compressed .system-card {
  padding: 8px;
}

.cylinder-summary-band.is-one-row-compressed .system-icon {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  font-size: 15px;
}

.cylinder-summary-band.is-one-row-compressed .score-label,
.cylinder-summary-band.is-one-row-compressed .system-card p {
  font-size: 13px;
}

.cylinder-summary-band.is-one-row-compressed .score-card strong {
  font-size: 30px;
}

.cylinder-summary-band.is-one-row-compressed .system-card strong {
  font-size: 22px;
}

.cylinder-summary-band.is-one-row-compressed .system-card strong span,
.cylinder-summary-band.is-one-row-compressed .system-card small {
  font-size: 12px;
}

.multi-engine-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.multi-engine-overview.is-scoped {
  grid-template-columns: minmax(0, 1fr);
}

.multi-engine-overview[hidden] {
  display: none;
}

.multi-engine-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 136, 255, 0.09), rgba(255, 255, 255, 0.015) 48%),
    rgba(8, 16, 26, 0.44);
}

.multi-engine-card[role="button"] {
  cursor: pointer;
}

.multi-engine-card[role="button"]:hover,
.multi-engine-card[role="button"]:focus-visible {
  border-color: rgba(47, 136, 255, 0.68);
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(47, 136, 255, 0.2),
    0 0 0 1px rgba(47, 136, 255, 0.08);
}

.multi-engine-card header {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.multi-engine-card header > span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(47, 136, 255, 0.35);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.12);
  color: #9dccff;
  font-size: 13px;
  font-weight: 900;
}

.multi-engine-card header div {
  min-width: 0;
}

.multi-engine-card p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.multi-engine-card strong {
  display: block;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-engine-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.multi-engine-card.is-aircraft dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multi-engine-card dl div {
  min-width: 0;
  padding: 7px;
  border-radius: 7px;
  background: rgba(3, 12, 22, 0.38);
}

.multi-engine-card dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.multi-engine-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-engine-card.is-delta {
  border-color: rgba(255, 159, 28, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 159, 28, 0.1), rgba(255, 255, 255, 0.015) 48%),
    rgba(8, 16, 26, 0.44);
}

.multi-engine-card.is-delta header > span {
  border-color: rgba(255, 159, 28, 0.4);
  background: rgba(255, 159, 28, 0.12);
  color: var(--amber);
}

.multi-engine-card.is-active {
  border-color: rgba(47, 136, 255, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(47, 136, 255, 0.24),
    0 0 0 1px rgba(47, 136, 255, 0.1);
}

.green {
  color: var(--green);
}

.amber {
  color: var(--amber);
}

.teal {
  color: var(--teal);
}

.blue {
  color: var(--blue);
}

.purple {
  color: var(--purple);
}

.red {
  color: var(--red);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.analysis-main-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.analysis-main-column:has(> .summary-band[data-health-scope="left"]),
.analysis-main-column:has(> .summary-band[data-health-scope="right"]) {
  gap: 6px;
}

.analysis-main-column:has(> .summary-band[data-health-scope="left"]) > .scope-switch,
.analysis-main-column:has(> .summary-band[data-health-scope="right"]) > .scope-switch {
  margin-bottom: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 30, 41, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chart-panel,
.insight-column .panel,
.finding-panel,
.parameter-panel,
.stacked-charts,
.aircraft-profile-panel,
.aircraft-fleet-panel,
.aircraft-form-panel,
.trend-toolbar,
.trend-chart-panel,
.trend-table-panel,
.placeholder-view .panel,
.overview-detector-visual-panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.chart-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-gesture-row {
  display: flex;
  justify-content: center;
  margin: 0 0 4px;
}

.chart-gesture-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.chart-actions .secondary-action,
.chart-actions select {
  min-height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
}

.chart-actions .chart-trend-return {
  border-color: rgba(47, 136, 255, 0.42);
  background: rgba(47, 136, 255, 0.13);
  color: #dbeafe;
  font-weight: 850;
}

.eyebrow {
  margin-bottom: 8px;
  color: #d8e4f0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.panel h2 {
  margin-bottom: 0;
  font-size: 18px;
}

select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101a25;
  color: var(--text);
  color-scheme: dark;
  padding: 0 12px;
}

select option,
select optgroup {
  background-color: #101a25;
  color: var(--text);
}

select option[value=""],
select option:disabled {
  color: var(--muted);
}

select option:hover,
select option:focus,
select option:checked {
  background-color: Highlight;
  color: HighlightText;
}

.chart-series-drawer {
  margin: 10px 0 0;
  border: 1px solid rgba(93, 119, 145, 0.4);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.42);
}

.chart-series-drawer[open] {
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.08), rgba(8, 16, 26, 0.5)),
    rgba(8, 16, 26, 0.54);
}

.chart-series-drawer summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.chart-series-drawer summary::-webkit-details-marker {
  display: none;
}

.chart-series-drawer summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--blue);
  transition: transform 0.16s ease;
}

.chart-series-drawer[open] summary::before {
  transform: rotate(90deg);
}

.chart-series-drawer summary span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chart-series-drawer summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.series-chip-strip {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 2px;
}

.series-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px 0 5px;
  border: 1px solid rgba(139, 178, 217, 0.32);
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.62);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 100ms ease, border-color 100ms ease;
}

.chart-series-drawer summary .series-chip-strip span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.series-chip:hover {
  border-color: rgba(138, 184, 255, 0.72);
}

.series-chip:focus-visible {
  outline: 2px solid rgba(104, 166, 255, 0.7);
  outline-offset: 1px;
}

.series-chip-grip {
  width: 12px;
  height: 12px;
  flex: none;
  fill: currentColor;
  color: rgba(139, 178, 217, 0.6);
}

.series-chip-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}

.series-chip.is-off {
  border-style: dashed;
  opacity: 0.5;
}

.series-chip.is-partial {
  opacity: 0.75;
}

.series-chip-add {
  border-style: dashed;
  color: var(--muted);
  padding: 0 10px;
}

.series-chip-add:hover {
  color: var(--text);
}

.series-chip-add svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.chart-series-drawer[open] .series-chip-add-closed,
.chart-series-drawer:not([open]) .series-chip-add-open {
  display: none;
}

.chart-series-drawer .legend-controls {
  margin: 0;
  padding: 0 12px 12px 34px;
}

.legend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.series-control-groups {
  display: grid;
  gap: 12px;
}

.series-control-group {
  display: grid;
  gap: 6px;
}

.series-control-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.series-control-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.series-control-subgroups {
  display: grid;
  gap: 10px;
}

.series-system-subgroups {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 26px;
  align-items: start;
}

.series-control-subgroup {
  display: grid;
  gap: 5px;
}

.series-control-subheading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
}

.series-pane-move {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid rgba(139, 178, 217, 0.32);
  border-radius: 4px;
  background: rgba(8, 16, 26, 0.72);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 80ms ease, color 80ms ease, border-color 80ms ease;
}

.series-control-items label:hover .series-pane-move,
.series-pane-move:focus-visible {
  opacity: 1;
}

.series-pane-move:hover {
  color: var(--text);
  border-color: rgba(138, 184, 255, 0.72);
}

.series-pane-reset {
  appearance: none;
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 16, 26, 0.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.series-pane-reset:hover {
  color: var(--text);
  border-color: rgba(138, 184, 255, 0.72);
}

.series-gesture-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0;
  padding: 10px 12px 12px 34px;
  border-top: 1px solid var(--line);
}

.series-gesture-hint-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.series-gesture-hint-items span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.series-gesture-hint-items svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.chart-series-drawer:not(:has(.series-control-group)) .series-gesture-hints {
  display: none;
}

.series-pane-drop-zone {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(138, 184, 255, 0.4);
  border-radius: 10px;
  background: rgba(14, 28, 45, 0.42);
  pointer-events: none;
}

.series-pane-drop-zone.is-primary {
  top: 4px;
  bottom: calc(50% + 3px);
}

.series-pane-drop-zone.is-secondary {
  top: calc(50% + 3px);
  bottom: 4px;
}

.series-pane-drop-zone span {
  padding: 6px 12px;
  border: 1px solid rgba(139, 178, 217, 0.44);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.series-pane-drop-zone.is-series-drop-active {
  border-color: rgba(138, 184, 255, 0.92);
  background: rgba(47, 136, 255, 0.18);
}

.series-control-group.is-series-drop-active {
  outline: 2px dashed rgba(138, 184, 255, 0.72);
  outline-offset: 4px;
  border-radius: 8px;
}

.series-pane-drag-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(138, 184, 255, 0.72);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.96);
  box-shadow: 0 24px 48px rgba(3, 8, 16, 0.44);
  opacity: 0.96;
  font-size: 12px;
  pointer-events: none;
}

.series-pane-drag-preview .series-pane-move {
  display: none;
}

body.is-series-pane-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.marker-detail {
  display: grid;
  gap: 8px;
  min-height: 0;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.62);
}

.chart-panel .marker-detail {
  margin-top: 6px;
}

.marker-detail-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  color: var(--text);
}

.marker-detail-title strong {
  flex: 0 0 112px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.marker-detail-title small {
  display: inline;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}

.marker-detail-title [data-marker-elapsed] {
  flex: 0 0 150px;
}

.marker-detail-title [data-marker-phase] {
  flex: 0 0 120px;
}

.marker-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: start;
}

.marker-detail-group {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.marker-detail-group h4 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.marker-detail-group > div {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 3px 12px;
}

.marker-detail-group.is-wide {
  width: max-content;
  min-width: 0;
}

.marker-detail-group.is-wide > div {
  grid-template-columns: repeat(2, max-content);
}

.marker-detail-group span,
.marker-detail-empty {
  max-width: 100%;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.legend-controls label,
.check-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6e1ed;
}

input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  --chart-gesture-top: 54px;
}

.chart-wrap .chart-gesture-row {
  position: absolute;
  top: var(--chart-gesture-top);
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateY(calc(-100% - 8px));
}

.chart-marker-overlay,
.chart-zoom-overlay {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 2;
}

.chart-marker-overlay {
  left: 0;
  width: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  will-change: transform;
}

.chart-zoom-overlay {
  background: rgba(47, 136, 255, 0.18);
  border: 2px solid rgba(104, 166, 255, 0.9);
}

.chart-cursor-time-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 116px;
  padding: 7px 9px;
  border: 1px solid rgba(139, 178, 217, 0.44);
  border-radius: 6px;
  background: rgba(5, 10, 18, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  color: #eef6ff;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 80ms ease;
}

.chart-cursor-time-tooltip.is-visible {
  opacity: 1;
}

.chart-cursor-time-tooltip strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.chart-cursor-time-tooltip span {
  color: #a8b7c8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.chart-panel > .chart-wrap {
  min-height: 0;
}

.engine-panel,
.flight-profile-panel,
.trend-panel {
  display: none;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}

.engine-panel.is-active,
.flight-profile-panel.is-active,
.trend-panel.is-active {
  display: grid;
}

.aircraft-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding-top: 2px;
}

.aircraft-tab {
  position: relative;
  padding: 6px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(174, 188, 207, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 140ms ease,
    opacity 140ms ease;
}

.aircraft-tab-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(174, 188, 207, 0.66);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease;
}

.aircraft-section-nav .aircraft-tab-dashboard {
  padding: 6px 11px 7px;
  border-color: rgba(105, 165, 255, 0.26);
  background: rgba(47, 136, 255, 0.08);
  color: rgba(235, 243, 255, 0.92);
}

.aircraft-section-nav .aircraft-tab-dashboard:hover,
.aircraft-section-nav .aircraft-tab-dashboard:focus-visible,
.aircraft-section-nav .aircraft-tab-dashboard.is-active {
  color: #ffffff;
}

.aircraft-tab-dashboard-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.aircraft-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0.45);
  opacity: 0;
  transition:
    background 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.aircraft-tab:hover,
.aircraft-tab:focus-visible {
  color: var(--text);
  outline: none;
}

.aircraft-tab-dashboard:hover,
.aircraft-tab-dashboard:focus-visible {
  border-color: rgba(105, 165, 255, 0.32);
  background: rgba(47, 136, 255, 0.1);
}

.aircraft-tab.is-active {
  color: rgba(236, 244, 255, 0.96);
}

.aircraft-tab-dashboard.is-active {
  border-color: rgba(105, 165, 255, 0.68);
  background: rgba(47, 136, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(105, 165, 255, 0.12);
}

.aircraft-tab.is-active::after {
  background: rgba(105, 165, 255, 0.9);
  opacity: 1;
  transform: scaleX(1);
}

.aircraft-tab-dashboard::after {
  display: none;
}

.aircraft-subpanel {
  display: none;
  min-width: 0;
  max-width: 100%;
}

.aircraft-subpanel.is-active {
  display: grid;
}

.maintenance-preview-panel {
  position: relative;
  gap: 16px;
  min-height: clamp(560px, calc(100dvh - 220px), 980px);
  overflow: hidden;
  border: 1px solid rgba(105, 165, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 62% 16%, rgba(47, 136, 255, 0.16), transparent 28rem),
    rgba(10, 18, 26, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.maintenance-preview-content {
  display: grid;
  gap: 16px;
  padding: 16px;
  opacity: 0.68;
  filter: blur(1.2px) saturate(0.86);
  transform: scale(0.996);
  pointer-events: none;
  user-select: none;
}

.maintenance-preview-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(7, 12, 18, 0.04), rgba(7, 12, 18, 0.34) 58%, rgba(7, 12, 18, 0.56)),
    rgba(8, 14, 20, 0.1);
  pointer-events: none;
}

.maintenance-coming-soon {
  position: absolute;
  left: 50%;
  top: clamp(150px, 24vh, 220px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(92%, 520px);
  padding: 30px 28px;
  border: 1px solid rgba(138, 184, 255, 0.32);
  border-radius: 12px;
  background: rgba(10, 18, 26, 0.78);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.maintenance-coming-soon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 159, 28, 0.42);
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.12);
  color: #ffd18a;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-coming-soon p {
  margin: 0;
  max-width: 38ch;
  color: rgba(226, 236, 248, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.maintenance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.maintenance-kpi-card,
.maintenance-log-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(105, 165, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 36, 51, 0.88), rgba(16, 28, 40, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.maintenance-kpi-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  min-height: 132px;
  padding: 18px;
}

.maintenance-kpi-card:has(.maintenance-kpi-side) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.maintenance-kpi-card p,
.maintenance-log-card p,
.maintenance-log-card h3 {
  margin: 0;
}

.maintenance-kpi-card p,
.maintenance-log-card small,
.maintenance-table th {
  color: rgba(204, 217, 232, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-kpi-card strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1.12;
}

.maintenance-kpi-card strong span,
.maintenance-kpi-card small,
.maintenance-table small {
  color: rgba(204, 217, 232, 0.66);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.maintenance-kpi-icon,
.maintenance-row-icon {
  color: rgba(226, 236, 248, 0.88);
  font-size: 26px;
  line-height: 1;
}

.maintenance-kpi-icon.is-blue,
.maintenance-row-icon.is-blue,
#aircraftMaintenancePanel .is-blue {
  color: #4b9bff;
}

.maintenance-kpi-icon.is-purple {
  color: var(--purple);
}

#aircraftMaintenancePanel .is-green {
  color: var(--green);
}

#aircraftMaintenancePanel .is-amber {
  color: var(--amber);
}

#aircraftMaintenancePanel .is-red {
  color: #ff6f62;
}

.maintenance-kpi-side {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 74px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-date {
  margin-top: 5px;
  font-size: 16px !important;
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-kpi-card > .maintenance-status {
  align-self: end;
  justify-self: end;
}

.maintenance-meter,
.maintenance-mini-meter {
  overflow: hidden;
  border: 1px solid rgba(169, 189, 212, 0.16);
  border-radius: 999px;
  background: rgba(169, 189, 212, 0.14);
}

.maintenance-meter {
  height: 9px;
  margin-top: 15px;
}

.maintenance-mini-meter {
  width: min(100%, 138px);
  height: 8px;
  margin-top: 7px;
}

.maintenance-meter span,
.maintenance-mini-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #62ce4d, #80d86b);
}

.maintenance-mini-meter.is-amber span {
  background: linear-gradient(90deg, #ff9f1c, #ffc047);
}

.maintenance-schedule-panel,
.maintenance-logbook-panel {
  padding: 18px;
}

.maintenance-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.maintenance-toolbar input {
  width: min(32vw, 280px);
  min-height: 38px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.64);
  color: var(--text);
  padding: 0 13px;
}

.maintenance-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(105, 165, 255, 0.14);
  border-radius: 8px;
}

.maintenance-table {
  min-width: 980px;
}

.maintenance-table th,
.maintenance-table td {
  padding: 13px 16px;
}

.maintenance-table tbody tr {
  background: rgba(18, 32, 46, 0.5);
}

.maintenance-table tbody tr + tr {
  border-top: 1px solid rgba(105, 165, 255, 0.1);
}

.maintenance-table td:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(238, 244, 251, 0.92);
  font-weight: 760;
}

.maintenance-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.maintenance-log-card {
  min-height: 148px;
  padding: 18px;
  border-left: 3px solid rgba(98, 206, 77, 0.72);
}

.maintenance-log-card.is-overdue {
  border-left-color: rgba(255, 73, 61, 0.82);
}

.maintenance-log-card .maintenance-status {
  position: absolute;
  right: 16px;
  top: 16px;
}

.maintenance-log-card h3 {
  padding-right: 104px;
  color: var(--text);
  font-size: 18px;
}

.maintenance-log-card p {
  color: rgba(204, 217, 232, 0.78);
  line-height: 1.45;
}

/* ---------- Real Maintenance page (issue #143) -----------------------------
   When the maintenance_enabled app-setting is on, the panel module adds
   .is-maintenance-live: the preview mock + Coming Soon overlay give way to
   live content in #aircraftMaintenanceContent. */

.maintenance-preview-panel.is-maintenance-live {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.maintenance-preview-panel.is-maintenance-live::after {
  content: none;
}

.maintenance-preview-panel.is-maintenance-live .maintenance-preview-content,
.maintenance-preview-panel.is-maintenance-live .maintenance-coming-soon {
  display: none;
}

.maintenance-live-content {
  display: grid;
  gap: 16px;
}

.maintenance-live-notice {
  border: 1px solid rgba(47, 136, 255, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(47, 136, 255, 0.07);
  font-size: 13.5px;
  line-height: 1.5;
}

.maintenance-live-notice.is-error {
  border-color: rgba(255, 73, 61, 0.4);
  background: rgba(255, 73, 61, 0.08);
}

.maintenance-retry {
  justify-self: start;
}

.maintenance-live-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.maintenance-live-panel .panel-header {
  padding: 16px 18px 0;
}

.maintenance-live-panel > form,
.maintenance-live-panel > p,
.maintenance-live-panel > .maintenance-timeline {
  margin: 0 18px;
}

.maintenance-header-actions {
  display: flex;
  gap: 10px;
}

.maintenance-baseline-form {
  display: grid;
  gap: 20px;
}

.maintenance-baseline-form .form-section-block {
  display: grid;
  gap: 10px;
}

.maintenance-engine-heading {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-required {
  color: var(--amber);
  font-style: normal;
}

.maintenance-form-hint,
.maintenance-timeline-locked,
.maintenance-timeline-empty,
.maintenance-baseline-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.maintenance-baseline-summary {
  padding: 0 18px;
}

.maintenance-live-kpis .maintenance-kpi-card {
  min-height: 116px;
  padding: 16px;
}

.maintenance-engine-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 6px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-entry-composer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.6);
}

.maintenance-entry-composer textarea {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(9, 15, 21, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  resize: vertical;
}

.maintenance-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.maintenance-timeline {
  display: grid;
  gap: 10px;
}

.maintenance-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.6);
}

.maintenance-entry.is-deleted {
  border-style: dashed;
  opacity: 0.62;
}

.maintenance-entry-main h4 {
  margin: 0 0 2px;
  font-size: 14px;
}

.maintenance-entry-main h4 .maintenance-engine-chip {
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.maintenance-entry-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.maintenance-entry-hours {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.maintenance-entry-hours b {
  color: var(--text);
  font-weight: 600;
}

.maintenance-entry-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.maintenance-entry-meta strong {
  color: var(--text);
  font-size: 13px;
}

.maintenance-entry-actions {
  display: flex;
  gap: 8px;
}

.maintenance-entry-action {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

/* ---------- Oil tracking (issue #160, Stage 2) ----------------------------- */

.maintenance-live-kpis .maintenance-meter {
  margin-top: 8px;
}

.maintenance-meter.is-due-soon span {
  background: linear-gradient(90deg, #ff9f1c, #ffb54d);
}

.maintenance-meter.is-overdue span {
  background: linear-gradient(90deg, #ff493d, #ff7a6b);
}

.maintenance-kpi-icon.is-oil-amber {
  color: var(--amber);
  background: rgba(255, 159, 28, 0.12);
}

.maintenance-kpi-icon.is-oil-red {
  color: var(--red);
  background: rgba(255, 73, 61, 0.12);
}

.maintenance-oil-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed rgba(45, 212, 191, 0.35);
  border-radius: 8px;
}

.maintenance-oil-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.maintenance-checkfield {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--text);
}

.maintenance-attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.maintenance-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(9, 15, 21, 0.5);
  font-size: 12.5px;
}

.maintenance-attach-chip.is-pending {
  border-style: dashed;
}

.maintenance-attach-remove {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.maintenance-attach-remove:hover {
  color: var(--red);
}

.maintenance-attach-add {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-style: dashed;
  border-color: rgba(47, 136, 255, 0.45);
  background: none;
  color: var(--blue);
  font-size: 12.5px;
  cursor: pointer;
}

/* Cylinders section: compression readings (neutral — no value coloring) */
.maintenance-comp-body {
  display: grid;
  gap: 16px;
  padding: 0 18px;
}

.maintenance-comp-engine {
  display: grid;
  gap: 10px;
}

.maintenance-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.maintenance-comp-cell {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.6);
}

.maintenance-comp-cell small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-comp-cell strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.maintenance-comp-cell strong span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.maintenance-comp-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.maintenance-comp-meta b {
  color: var(--text);
}

.maintenance-comp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
}

.maintenance-comp-input {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.maintenance-comp-input small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-comp-pair {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.maintenance-comp-pair input {
  width: 56px;
  min-height: 34px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(9, 15, 21, 0.6);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.maintenance-hours-update {
  margin-top: 10px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

/* Borescope image library (issues #145/#141) */
.maintenance-bs-date-group {
  display: grid;
  gap: 10px;
}

.maintenance-bs-date-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.maintenance-bs-date-head h3 {
  margin: 0;
  font-size: 14px;
}

.maintenance-bs-date-head small {
  color: var(--muted);
  font-size: 12px;
}

.maintenance-bs-inspection {
  display: grid;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.6);
}

.maintenance-bs-insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.maintenance-bs-insp-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.maintenance-bs-insp-title h4 {
  margin: 0;
  font-size: 13.5px;
}

.maintenance-bs-cyl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.maintenance-bs-cyl {
  display: grid;
  gap: 6px;
  align-content: start;
}

.maintenance-bs-cyl-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.maintenance-bs-cyl-label small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-bs-cyl-label span {
  color: var(--muted);
  font-size: 10px;
}

.maintenance-bs-thumbs {
  display: grid;
  gap: 5px;
}

.maintenance-bs-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: rgba(9, 15, 21, 0.7);
  cursor: pointer;
}

.maintenance-bs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maintenance-bs-thumb.is-heic,
.maintenance-bs-thumb.is-unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.maintenance-bs-flag {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.maintenance-bs-empty {
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(170, 183, 199, 0.35);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
  padding: 4px;
}

.maintenance-bs-empty.is-add {
  border-color: rgba(47, 136, 255, 0.45);
  color: var(--blue);
  cursor: pointer;
}

.maintenance-bs-detail {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed rgba(45, 212, 191, 0.35);
  border-radius: 8px;
}

.maintenance-bs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.maintenance-bs-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.maintenance-bs-tag.is-active {
  border-color: rgba(255, 159, 28, 0.55);
  color: var(--amber);
  background: rgba(255, 159, 28, 0.08);
}

.maintenance-bs-create {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.6);
}

/* Ignition (issue #146): magnetos + spark plug board */
.maintenance-mag-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.maintenance-mag-card {
  grid-template-columns: minmax(0, 1fr);
}

.maintenance-mag-lines {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.maintenance-mag-lines b {
  color: var(--text);
  font-weight: 600;
}

.maintenance-magt-row {
  display: grid;
  grid-template-columns: 90px repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.maintenance-magt-row > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.maintenance-plug-grid {
  display: grid;
  gap: 6px;
}

.maintenance-plug-row {
  display: grid;
  grid-template-columns: 64px repeat(var(--plug-cols, 6), minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.maintenance-plug-row > small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-plug-cell {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(9, 15, 21, 0.5);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.maintenance-plug-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.maintenance-plug-cell b {
  font-size: 13px;
}

.maintenance-plug-cell.is-after {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.06);
}

.maintenance-plug-cell input[type="text"],
.maintenance-plug-cell select {
  width: 100%;
  min-height: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 15, 21, 0.6);
  color: var(--text);
  font-size: 12px;
}

.maintenance-plug-cell select {
  cursor: pointer;
  text-align-last: center;
}

.maintenance-plug-check {
  cursor: pointer;
}

.maintenance-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 136, 255, 0.35);
  border-radius: 7px;
  background: rgba(47, 136, 255, 0.06);
  color: var(--blue);
  font-size: 12.5px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .maintenance-live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .maintenance-entry-meta {
    justify-items: start;
  }
}

.account-view {
  gap: 18px;
}

.account-preview-panel {
  position: relative;
  min-height: clamp(620px, calc(100dvh - 176px), 980px);
  overflow: hidden;
  border: 1px solid rgba(105, 165, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 8%, rgba(53, 190, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 78% 18%, rgba(255, 159, 28, 0.08), transparent 22rem),
    rgba(10, 18, 26, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-preview-content {
  display: grid;
  gap: 16px;
  padding: 18px;
  opacity: 0.7;
  filter: blur(1.3px) saturate(0.86);
  transform: scale(0.996);
  pointer-events: none;
  user-select: none;
}

.account-preview-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 40%, rgba(7, 12, 18, 0.02), rgba(7, 12, 18, 0.34) 56%, rgba(7, 12, 18, 0.6)),
    rgba(8, 14, 20, 0.12);
  pointer-events: none;
}

.account-coming-soon {
  position: absolute;
  left: 50%;
  top: clamp(180px, 32vh, 300px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(92%, 540px);
  padding: 32px 30px;
  border: 1px solid rgba(138, 184, 255, 0.34);
  border-radius: 12px;
  background: rgba(10, 18, 26, 0.8);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.account-coming-soon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 159, 28, 0.42);
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.12);
  color: #ffd18a;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-coming-soon h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.account-coming-soon p {
  margin: 0;
  max-width: 40ch;
  color: rgba(226, 236, 248, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.account-hero-row,
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.account-grid {
  align-items: start;
}

/* My Account sub-menu shell — mirrors the admin page's sidebar layout and
   reuses its .admin-sidebar component styles. */
.account-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

/* Plan cards inside the account column: reuse the marketing pricing cards but
   let them wrap instead of forcing four columns into a narrower pane. */
.account-pricing-grid {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* Sign-out confirmation is a short yes/no, so it takes half the default dialog width. */
.account-signout-dialog .upload-dialog-card { width: min(310px, calc(100vw - 32px)); }

.account-aircraft-required-dialog .upload-dialog-card { width: min(420px, calc(100vw - 32px)); }

/* Trial promo: wide enough to show all three plans on one row; on narrow
   screens the plan row scrolls horizontally instead of wrapping. */
/* Widen the DIALOG itself to match its card: the .upload-dialog base caps the
   element at 620px, so a wider card would overflow to the right and the popup
   would sit visibly off-center. Double class beats the base rule that appears
   later in this file (equal single-class specificity would lose on order). */
.upload-dialog.trial-promo-dialog { max-width: min(1040px, calc(100vw - 32px)); }
.trial-promo-dialog .upload-dialog-card { width: min(1040px, calc(100vw - 32px)); }
.trial-promo-dialog .pricing-plan-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.trial-promo-dialog .pricing-plan-card { scroll-snap-align: start; }

.account-plan-change-compare {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-plan-change-col {
  flex: 1;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.account-plan-change-col strong { font-size: 18px; }
.account-plan-change-col span { color: var(--muted); font-size: 13px; }

.account-plan-change-col.is-target {
  border-color: rgba(47, 136, 255, 0.55);
  background: rgba(47, 136, 255, 0.08);
}

.account-plan-change-arrow { color: var(--muted); font-size: 20px; }

.account-plan-change-gains ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.account-plan-change-gains li::before {
  content: "✓";
  color: #69a5ff;
  font-weight: 900;
  margin-right: 8px;
}

.account-plan-change-eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* Inline "< back" link beside the UPGRADE eyebrow. */
.account-plan-change-back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  text-transform: lowercase;
  color: var(--muted);
}

.account-plan-change-back:hover { color: var(--text); }

.account-plan-change-checkout { display: grid; gap: 10px; }

/* In-app payment step: a Stripe Payment Element (site-dark via the
   Appearance API) plus our own promo/pay controls. Height is capped so the
   form scrolls inside the container rather than growing the dialog past the
   viewport. */
#accountCheckoutEmbed {
  max-height: min(68vh, 680px);
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.account-checkout-promo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-checkout-promo input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.account-checkout-promo-status { color: var(--muted); font-size: 12px; }
.account-checkout-promo-status.is-error { color: #fca5a5; }

.account-checkout-error {
  margin: 0;
  color: #fca5a5;
  font-size: 13px;
}

.account-checkout-pay { width: 100%; }

/* Password managers (LastPass, 1Password, …) inject their autofill popups
   into the page, and page content can never stack above the browser's top
   layer — under showModal() those popups render as dead white boxes behind
   the dialog. The plan-change dialog therefore opens NON-modally
   (dialog.show()) in normal stacking order: extension popups (max z-index)
   win, and this scrim stands in for ::backdrop — same tint + blur, and it
   swallows clicks on the page behind. */
.account-plan-change-scrim {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 136, 255, 0.14), transparent 18rem),
    rgba(5, 10, 16, 0.74);
  backdrop-filter: blur(10px);
}

/* Non-modal dialogs don't get the top layer's automatic centering — pin and
   center this one explicitly, above the scrim. */
.account-plan-change-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 9601;
  max-height: 100dvh;
}

/* Second step: the embedded form replaces every other section of the modal. */
.account-plan-change-dialog.is-embed-active .account-plan-change-compare,
.account-plan-change-dialog.is-embed-active .account-plan-change-gains,
.account-plan-change-dialog.is-embed-active #accountPlanChangeCheckoutBtn {
  display: none;
}

/* Subscriber plan changes run inside the same comparison modal: a policy
   line explains when the change takes effect; after confirming, the modal
   swaps to a done state (comparison hidden, message + Close only). */
.account-plan-change-policy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* 30-day free-trial emphasis on the checkout modal: the "no charge for 30
   days" reassurance should read as a prominent, positive callout. */
.account-plan-change-policy.is-trial-notice {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 45%, transparent);
  background: color-mix(in srgb, var(--accent, #3b82f6) 12%, transparent);
}

.account-plan-change-dialog.is-change-done .account-plan-change-compare,
.account-plan-change-dialog.is-change-done .account-plan-change-gains {
  display: none;
}

.account-plan-change-dialog.is-change-done .account-plan-change-policy {
  color: var(--text);
}

/* The payment step keeps fixed header/pay-bar chrome with only the field
   area scrolling, so it needs modest width. The dialog ELEMENT must widen
   with its card: the base .upload-dialog caps at 620px and the browser
   centers that box — a wider card would overflow it sideways and sit
   visibly off-center. */
.account-plan-change-dialog.is-embed-active {
  max-width: min(720px, calc(100vw - 32px));
}

.account-plan-change-dialog.is-embed-active .upload-dialog-card {
  width: min(720px, calc(100vw - 32px));
}

/* Fixed chrome around a scrolling field area: the header (title, price line)
   and promo row and the Subscribe bar never scroll — only the payment-method
   selection between them does. The card is viewport-capped and the checkout
   region is a flexible grid track, so when Stripe expands a payment method's
   fields the growth is absorbed by the scroll area instead of pushing the
   Subscribe bar off-screen. */
.account-plan-change-dialog.is-embed-active .upload-dialog-card {
  max-height: calc(100dvh - 48px);
  grid-template-rows: auto minmax(0, 1fr);
}

.account-plan-change-dialog.is-embed-active .account-plan-change-checkout {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.account-plan-change-dialog.is-embed-active #accountCheckoutEmbed {
  max-height: none;
  min-height: 0;
}

.account-plan-change-plan-line {
  display: none;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.account-plan-change-dialog.is-embed-active .account-plan-change-plan-line { display: block; }

/* Active-plan deep link: informational — same plan on both sides makes the
   comparison row meaningless, so it hides along with the checkout button. */
.account-plan-change-dialog.is-active-plan .account-plan-change-compare { display: none; }

/* Promo entry lives on the right side of the payment-step header, bottom-
   aligned with the title/price block on the left — the two never stack. */
.account-plan-change-promo-row { display: none; }

.account-plan-change-dialog.is-embed-active .account-plan-change-promo-row {
  display: flex;
  margin-left: auto;
  margin-right: 12px;
  align-self: flex-end;
}

.account-plan-change-promo-row .account-checkout-promo input { max-width: 180px; }

.account-plan-change-paybar { display: none; }

.account-plan-change-dialog.is-embed-active .account-plan-change-paybar {
  display: grid;
  gap: 8px;
}

/* "Embedded" Stripe UI mode: the iframe form brings its own chrome — no
   container padding, and extra width for Stripe's two-column layout. */
.account-plan-change-dialog.is-embed-iframe,
.account-plan-change-dialog.is-embed-iframe .upload-dialog-card {
  max-width: min(980px, calc(100vw - 32px));
}

.account-plan-change-dialog.is-embed-iframe .upload-dialog-card {
  width: min(980px, calc(100vw - 32px));
}

.account-plan-change-dialog.is-embed-iframe #accountCheckoutEmbed {
  padding: 0;
  max-height: calc(100dvh - 170px);
}

.account-plan-change-dialog.is-embed-active #accountCheckoutEmbed {
  max-height: calc(100dvh - 170px);
}

/* Doubled class so these win over the later .admin-sidebar-item base rule;
   spacing matches the 2px gap of .admin-sidebar-nav items. */
.admin-sidebar-item.account-signout-item {
  margin-top: 2px;
  width: 100%;
  color: #f2998f;
}

.admin-sidebar-item.account-signout-item:hover {
  background: rgba(255, 73, 61, 0.12);
  color: #ffb4ad;
}

/* Bottom-aligned like the card CTAs and set in the same button type, but as
   plain gray text — no button chrome. Matches .pricing-plan-card > p in
   specificity to beat its blurb margins/typography. */
.pricing-plan-card > p.pricing-active-plan {
  margin: auto 0 0;
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-pending-plan { color: var(--amber); }

/* Single/multi-engine pricing toggle above the plan cards. Twin fleets are
   locked to twin (dimmed switch + info icon explaining eligibility). */
.account-engine-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.account-engine-toggle .account-engine-toggle-side { color: var(--text); }

/* Not eligible for single-engine pricing: the switch still works (the user may
   look at that pricing) but is dimmed, and the note below spells out why the
   cards in that view can't be picked. */
.account-engine-toggle.is-locked .admin-boolean-toggle { opacity: 0.55; }

.account-engine-ineligible-note {
  margin: -8px 0 14px;
  font-size: 13px;
  color: var(--amber);
}

.plan-selection-gate .account-engine-ineligible-note { margin: -10px auto 14px; }

/* Plan cards in a view the account can't buy from: visibly out of reach but
   still readable. */
.pricing-plan-card.is-plan-unavailable {
  opacity: 0.55;
  filter: saturate(0.4);
}

.pricing-plan-card.is-plan-unavailable .pricing-plan-ribbon { visibility: hidden; }

.account-engine-toggle-info {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #69a5ff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  line-height: 1;
}

.account-engine-dialog { max-width: 460px; }
.account-engine-dialog .upload-dialog-card { width: min(460px, calc(100vw - 32px)); }

/* Billing History tab: card-on-file row + inline update form (Payment
   Element in setup mode; inline so password-manager popups stack normally). */
.account-billing-payment-method {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-billing-card-form {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  display: grid;
  gap: 12px;
}

.account-billing-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Billing History tab: Stripe invoice table. Wide content scrolls inside the
   container instead of the page. */
.account-billing-history { overflow-x: auto; }

.billing-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.billing-history-table th,
.billing-history-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.billing-history-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.billing-history-table td.billing-history-amount { white-space: nowrap; }
.billing-history-table td.is-status-paid { color: var(--green); }

.billing-history-table td.billing-history-links { white-space: nowrap; }

.billing-history-table td.billing-history-links a {
  color: #69a5ff;
  text-decoration: none;
  margin-right: 12px;
}

.billing-history-table td.billing-history-links a:hover { text-decoration: underline; }

/* Undo button under a "Downgrade scheduled" badge: same chrome as the plan
   action buttons, green accent (this action KEEPS the current plan). The
   badge above it carries the margin:auto bottom-alignment. */
.pricing-plan-card .pricing-class-change,
.pricing-plan-card .pricing-cancel-pending {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border-radius: 7px;
  border: 1px solid rgba(98, 206, 77, 0.7);
  padding: 0 14px;
  background: rgba(98, 206, 77, 0.14);
  color: var(--green);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.pricing-plan-card .pricing-class-change:hover,
.pricing-plan-card .pricing-cancel-pending:hover { filter: brightness(1.12); }

/* The class switch sits where the plan action button would (bottom-pinned). */
.pricing-plan-card .pricing-class-change { margin-top: auto; }

.pricing-plan-card .pricing-class-change:disabled,
.pricing-plan-card .pricing-cancel-pending:disabled {
  cursor: wait;
  opacity: 0.72;
  filter: saturate(0.75);
}

@media (max-width: 760px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
}

.account-profile-panel,
.account-plan-panel,
.account-section-panel,
.account-activity-panel {
  border: 1px solid rgba(105, 165, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 36, 51, 0.88), rgba(16, 28, 40, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.account-profile-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 154px;
  padding: 22px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(142, 217, 255, 0.64);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(142, 217, 255, 0.34), transparent 42%),
    rgba(47, 136, 255, 0.16);
  color: #d7f4ff;
  font-size: 24px;
  font-weight: 850;
}

.account-profile-panel h2,
.account-plan-panel strong {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

.account-profile-panel p,
.account-plan-panel p,
.account-plan-panel span {
  margin: 0;
}

.account-profile-panel > div:not(.account-avatar) {
  display: grid;
  gap: 8px;
}

.account-profile-panel > div:not(.account-avatar) > p:last-child,
.account-plan-panel span {
  color: rgba(204, 217, 232, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.account-plan-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 154px;
  padding: 22px;
}

.account-plan-panel strong {
  font-size: clamp(24px, 2.3vw, 34px);
}

.account-section-panel {
  padding: 18px;
}

.account-profile-details-panel {
  min-width: 0;
}

.account-security-panel {
  align-self: start;
}

.account-management-panel {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.account-detail-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.account-detail-list div,
.account-activity-list div,
.account-event-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 34px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.account-detail-list dt {
  color: rgba(204, 217, 232, 0.62);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-detail-list dd {
  margin: 0;
  color: rgba(241, 247, 255, 0.92);
  font-size: 14px;
  font-weight: 760;
}

.account-toggle-list,
.account-activity-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.account-password-fields[hidden] {
  display: none;
}

.account-security-panel .account-activity-list {
  margin-top: 0;
}

.account-security-panel .account-activity-list div:first-child {
  border-top: 0;
}

.account-management-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-management-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  align-items: start;
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgba(105, 165, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.28);
}

.account-management-item.is-danger {
  border-color: rgba(255, 113, 113, 0.24);
  background: rgba(72, 20, 24, 0.18);
}

.account-management-item strong {
  color: rgba(241, 247, 255, 0.94);
  font-size: 14px;
  line-height: 1.2;
}

.account-management-item span {
  color: rgba(204, 217, 232, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.account-management-item .compact-action {
  justify-self: start;
  margin-top: 4px;
  white-space: nowrap;
}

.account-toggle-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: rgba(241, 247, 255, 0.9);
  font-size: 14px;
  font-weight: 760;
}

.account-toggle-list input {
  accent-color: #4b9bff;
}

.account-activity-list div {
  grid-template-columns: minmax(150px, 0.56fr) minmax(0, 1fr);
}

.account-activity-list strong,
.account-event-row strong {
  color: rgba(241, 247, 255, 0.92);
  font-size: 14px;
}

.account-activity-list span,
.account-event-row em,
.account-event-row time {
  color: rgba(204, 217, 232, 0.66);
  font-size: 13px;
  font-style: normal;
}

.account-aircraft-panel {
  grid-column: 1 / -1;
}

.account-aircraft-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-aircraft-list .empty-copy {
  margin: 0;
  color: rgba(204, 217, 232, 0.66);
  font-size: 14px;
  font-weight: 700;
}

.account-aircraft-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(105, 165, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.32);
}

.account-aircraft-identity {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.account-aircraft-identity > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-aircraft-thumb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(142, 217, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 28%, rgba(142, 217, 255, 0.26), transparent 44%),
    rgba(47, 136, 255, 0.12);
}

.account-aircraft-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-aircraft-thumb span {
  color: #d7f4ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.account-aircraft-row strong {
  color: rgba(241, 247, 255, 0.95);
  font-size: 16px;
  line-height: 1.15;
}

.account-aircraft-row span,
.account-aircraft-row dd {
  color: rgba(204, 217, 232, 0.68);
  font-size: 13px;
}

.account-aircraft-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.account-aircraft-row dl div {
  display: grid;
  gap: 3px;
}

.account-aircraft-row dt {
  color: rgba(204, 217, 232, 0.54);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-aircraft-row dd {
  margin: 0;
  font-weight: 750;
}

.account-aircraft-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-activity-panel {
  padding: 18px;
}

.account-event-row {
  grid-template-columns: 10px minmax(190px, 0.7fr) minmax(0, 1fr) auto;
}

.account-event-row span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b9bff;
  box-shadow: 0 0 0 4px rgba(75, 155, 255, 0.15);
}

#view-account .is-green {
  color: var(--green);
}

@media (max-width: 760px) {
  .account-preview-content {
    padding: 18px;
  }

  .account-hero-row,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-profile-panel .maintenance-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .account-event-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .account-management-item {
    min-height: 0;
  }

  .account-management-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-aircraft-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-aircraft-identity {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .account-aircraft-thumb {
    width: 62px;
    height: 48px;
  }

  .account-aircraft-row dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-aircraft-actions {
    justify-content: flex-start;
  }

  .account-aircraft-actions .compact-action {
    justify-self: start;
  }

  .account-event-row em {
    grid-column: 2 / -1;
  }
}

#aircraftFlightsPanel,
#aircraftUploadsPanel {
  max-height: clamp(360px, calc(100dvh - 280px), 720px);
  min-height: 0;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr);
}

#aircraftFlightsPanel {
  max-height: none;
  grid-template-rows: auto auto auto;
  overflow: visible;
}

#aircraftUploadsPanel {
  height: auto;
  max-height: none;
  grid-template-rows: auto auto;
  overflow: visible;
}

#aircraftFlightsPanel .panel-header,
#aircraftUploadsPanel .panel-header {
  min-height: 0;
  min-width: 0;
}

#aircraftFlightsPanel > *,
#aircraftUploadsPanel > * {
  min-width: 0;
}

.aircraft-flights-heading {
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 0 12px;
}

.aircraft-flights-heading > div {
  min-width: 0;
}

.aircraft-history-guidance {
  max-width: 68ch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.aircraft-flights-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.aircraft-flights-heading-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(216, 228, 240, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.aircraft-flights-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.28);
}

.aircraft-flights-metrics-grid .aircraft-activity-card {
  min-width: 0;
  max-width: none;
  gap: 1px;
  padding: 0 16px;
  border-right: 1px solid rgba(127, 164, 210, 0.16);
}

.aircraft-flights-metrics-grid .aircraft-activity-card:last-child {
  border-right: 0;
}

.aircraft-flights-metrics-grid .aircraft-activity-card strong {
  font-size: 1rem;
}

.aircraft-flights-metrics-grid .aircraft-activity-card small {
  margin-top: 0;
  line-height: 1.18;
}

.aircraft-flights-heading-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.aircraft-flights-heading-actions {
  display: inline-flex;
  gap: 8px;
}

.aircraft-flights-toolbar {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(220px, 300px)
    max-content
    max-content;
  align-items: end;
  gap: 16px;
  margin: 0 -18px;
  padding: 12px 18px 10px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
  background: rgba(7, 18, 30, 0.24);
}

.aircraft-flights-search,
.aircraft-flights-filter-field {
  display: grid;
  gap: 5px;
}

.aircraft-flights-search {
  min-width: 0;
}

.aircraft-flights-filter-field {
  min-width: 0;
}

.aircraft-flights-search > span:first-child,
.aircraft-flights-filter-field > span:first-child {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.aircraft-flights-search-shell,
.aircraft-flights-select-shell {
  height: 36px;
  min-height: 36px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.42);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.aircraft-flights-search-shell {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
}

.aircraft-flights-select-shell {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 11px;
}

.aircraft-flights-search-shell svg,
.aircraft-flights-select-shell svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(174, 188, 207, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.aircraft-flights-search-shell input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  outline: 0;
}

.aircraft-flights-select-shell select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 28px 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  outline: 0;
}

.aircraft-flights-search-shell kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 5px;
  background: rgba(138, 184, 255, 0.08);
  color: rgba(174, 188, 207, 0.76);
  font: inherit;
  font-size: 0.72rem;
}

.aircraft-flights-search-shell input::placeholder {
  color: rgba(174, 188, 207, 0.48);
}

.aircraft-flights-segmented {
  display: grid;
  grid-template-columns: max-content repeat(3, max-content);
  align-items: center;
  justify-self: start;
  flex: 0 0 auto;
  width: max-content;
  min-height: 36px;
  padding: 3px;
  border: 1px solid rgba(138, 184, 255, 0.15);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.34);
}

.aircraft-flights-segmented-label {
  padding: 0 11px 0 8px;
  color: rgba(174, 188, 207, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.aircraft-flights-segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(216, 228, 240, 0.64);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.aircraft-flights-segmented button:hover,
.aircraft-flights-segmented button:focus-visible {
  color: var(--text);
  outline: none;
}

.aircraft-flights-segmented button.is-active {
  background: rgba(47, 136, 255, 0.2);
  color: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(105, 165, 255, 0.16);
}

.aircraft-flights-segmented button[data-filter-value="review"].is-active {
  background: rgba(127, 29, 29, 0.2);
  color: #ffaaa7;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

.aircraft-flights-segmented button[data-filter-value="watch"].is-active {
  background: rgba(120, 53, 15, 0.2);
  color: #ffd76a;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.aircraft-flights-segmented button[data-filter-value="clear"].is-active {
  background: rgba(20, 83, 45, 0.2);
  color: #83df9b;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.24);
}

.aircraft-flights-toolbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.trend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.62);
}

.trend-dot-included {
  background: #72e39a;
  box-shadow: 0 0 10px rgba(114, 227, 154, 0.32);
}

.aircraft-flight-trend-header {
  min-width: 128px;
}

.aircraft-flight-trend-header-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aircraft-flight-trend-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aircraft-flight-trend-header-actions button {
  appearance: none;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 5px;
  background: rgba(8, 16, 26, 0.36);
  color: rgba(216, 228, 240, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}

.aircraft-flight-trend-header-actions button:hover,
.aircraft-flight-trend-header-actions button:focus-visible {
  border-color: rgba(105, 165, 255, 0.42);
  color: var(--text);
  outline: none;
}

@media (max-width: 1700px) {
  .aircraft-flights-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-flights-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
  }

  .aircraft-flights-metrics-grid .aircraft-activity-card:nth-child(3n) {
    border-right: 0;
  }

  .aircraft-flights-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 300px) max-content max-content;
  }

}

@media (max-width: 1120px) {
  .aircraft-flights-toolbar {
    grid-template-columns: minmax(260px, 1fr) max-content;
  }

  .aircraft-flights-search {
    grid-column: 1 / -1;
  }

  .aircraft-flights-filter-field {
    width: min(360px, 100%);
  }

  .aircraft-flights-toolbar-actions {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .aircraft-flights-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 100%;
    overflow: hidden;
  }

  .aircraft-flights-heading > div,
  .aircraft-flights-heading h2 {
    min-width: 0;
    max-width: 100%;
  }

  .aircraft-flights-metrics-grid {
    display: none;
  }

  .aircraft-flights-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .aircraft-flights-search,
  .aircraft-flights-filter-field,
  .aircraft-flights-segmented,
  .aircraft-flights-toolbar-actions {
    min-width: 0;
    width: 100%;
  }

  .aircraft-flights-toolbar-actions {
    justify-content: stretch;
  }

  .aircraft-flights-segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    max-width: 100%;
    overflow-x: auto;
  }

  .aircraft-flights-segmented-label {
    grid-column: 1 / -1;
    padding: 2px 6px 3px;
  }

  .aircraft-flights-segmented button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
  }

  .aircraft-flights-trend-cap {
    margin-left: 0;
  }
}

#aircraftFlightsPanel .table-wrap,
#aircraftUploadsPanel .table-wrap {
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

#aircraftFlightsPanel .table-wrap,
#aircraftUploadsPanel .table-wrap {
  /* History tables follow the document scroll so the page never grows a
     second vertical scrollbar. These wrappers must not establish a scroll
     container or their sticky headers cannot follow the page. */
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

#aircraftFlightsPanel .aircraft-flights-table th,
#aircraftUploadsPanel .aircraft-uploads-table th {
  top: calc(var(--sticky-table-header-top) + 16px);
  z-index: 3;
}

@media (max-width: 1100px) {
  #aircraftFlightsPanel .table-wrap,
  #aircraftUploadsPanel .table-wrap {
    /* Keep dense-table horizontal navigation on compact desktop/tablet
       widths, but let the wrapper grow to the full row height. */
    overflow: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }
}

.aircraft-upload-file {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.aircraft-upload-download {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

/* The download trigger is a <button> (so it can fetch with the auth header
   instead of top-level-navigating to the JWT-gated raw endpoint), but it must
   read as the plain filename link it replaced. Strip the user-agent button
   chrome while keeping the color/weight from the rule above. */
button.aircraft-upload-download {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  justify-self: start;
  text-align: left;
  cursor: pointer;
}

.aircraft-upload-download:hover,
.aircraft-upload-download:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.aircraft-upload-flight-summary {
  display: grid;
  gap: 4px;
  min-width: 120px;
}

.aircraft-upload-file span,
.aircraft-upload-flight-summary span,
.aircraft-upload-error {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.3;
}

.aircraft-upload-flight-summary-detail.is-paired {
  color: #7ddc8a;
}

.aircraft-upload-flight-summary-detail.is-unpaired {
  color: #f3a23a;
}

.aircraft-upload-error {
  color: #ffb4aa;
  margin-top: 4px;
}

.aircraft-upload-status {
  background: rgba(159, 179, 200, 0.12);
  border: 1px solid rgba(159, 179, 200, 0.22);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.aircraft-upload-status-completed {
  background: rgba(98, 206, 77, 0.14);
  border-color: rgba(98, 206, 77, 0.34);
}

.aircraft-upload-status-processing,
.aircraft-upload-status-queued,
.aircraft-upload-status-received {
  background: rgba(47, 136, 255, 0.14);
  border-color: rgba(47, 136, 255, 0.34);
}

.aircraft-upload-status-failed,
.aircraft-upload-status-unsupported {
  background: rgba(255, 73, 61, 0.14);
  border-color: rgba(255, 73, 61, 0.34);
}

.aircraft-upload-status-empty {
  background: rgba(159, 179, 200, 0.12);
  border-color: rgba(159, 179, 200, 0.28);
  color: var(--muted);
}

.aircraft-upload-reprocess-all {
  min-width: 150px;
  white-space: nowrap;
}

.aircraft-upload-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.aircraft-bulk-delete-action {
  min-width: 138px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.aircraft-flights-reanalyze-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 164px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.aircraft-flights-reanalyze-all-icon,
.aircraft-flights-reanalyze-all-icon svg {
  width: 15px;
  height: 15px;
}

.aircraft-flights-reanalyze-all-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.aircraft-flights-reanalyze-all-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.aircraft-flights-reanalyze-all-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.aircraft-flights-reanalyze-all:hover:not(:disabled),
.aircraft-flights-reanalyze-all:focus-visible {
  border-color: rgba(138, 184, 255, 0.72);
  background: rgba(47, 136, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.14), 0 8px 20px rgba(8, 16, 28, 0.24);
  color: #ffffff;
  filter: none;
  outline: none;
}

.aircraft-flights-reanalyze-all:hover:not(:disabled) .aircraft-flights-reanalyze-all-icon,
.aircraft-flights-reanalyze-all:focus-visible .aircraft-flights-reanalyze-all-icon {
  transform: rotate(-18deg);
}

.aircraft-upload-action {
  min-width: 104px;
  white-space: nowrap;
}

.aircraft-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aircraft-upload-delete-action {
  min-width: 40px;
  width: 40px;
  color: rgba(255, 180, 173, 0.82);
}

.aircraft-upload-delete-action:disabled {
  color: rgba(150, 166, 183, 0.38);
  border-color: rgba(127, 164, 210, 0.16);
}

.aircraft-flight-trend-cell {
  min-width: 118px;
}

.aircraft-flight-trend-toggle {
  position: relative;
  align-items: center;
  display: inline-flex;
  min-height: 30px;
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: rgba(216, 228, 240, 0.72);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
  white-space: nowrap;
}

.aircraft-flight-trend-toggle input {
  accent-color: var(--accent);
  block-size: 14px;
  inline-size: 14px;
  margin: 0;
}

.aircraft-flight-trend-toggle.is-included {
  border-color: rgba(105, 165, 255, 0.48);
  background: rgba(47, 136, 255, 0.16);
  color: #dbeafe;
}

.aircraft-flight-trend-toggle.is-excluded {
  border-color: rgba(148, 163, 184, 0.24);
  color: rgba(216, 228, 240, 0.6);
}

.aircraft-flight-trend-toggle.is-skipped {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 53, 15, 0.12);
  color: #fde68a;
}

.aircraft-flight-trend-toggle.is-too-short {
  border-color: rgba(148, 163, 184, 0.2);
  border-style: dashed;
  color: rgba(216, 228, 240, 0.55);
  cursor: not-allowed;
}

.aircraft-flight-trend-toggle.is-outside-window {
  opacity: 0.72;
}

.aircraft-flight-trend-window-note {
  display: block;
  margin-top: 4px;
  color: rgba(216, 228, 240, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.aircraft-flights-trend-cap {
  display: inline;
  margin-left: 8px;
  color: rgba(174, 188, 207, 0.5);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.aircraft-flights-trend-cap.is-capped {
  color: rgba(174, 188, 207, 0.62);
}

.engine-overview-panel,
.engine-cylinder-panel,
.profile-summary-panel,
.profile-phase-panel {
  padding: 18px;
}

.engine-overview-panel {
  display: grid;
  justify-items: start;
}

.overview-cylinder-panel {
  margin-top: 14px;
}

.engine-overview-panel > .panel-header,
.engine-overview-panel > .engine-scope-switch,
.engine-overview-panel > .engine-multi-summary,
.engine-overview-panel > .engine-triage-layout,
.engine-overview-panel > .engine-event-timeline,
.engine-overview-panel > .engine-supporting-checks {
  width: min(100%, 1080px);
}

.engine-diagnostic-grid,
.engine-cylinder-grid,
.profile-summary-grid {
  display: grid;
  gap: 12px;
}

.engine-diagnostic-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.engine-scope-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.52);
}

.engine-scope-switch[hidden],
.engine-multi-summary[hidden] {
  display: none;
}

.engine-scope-switch button {
  display: grid;
  grid-template-columns: auto;
  align-content: center;
  min-width: 104px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.engine-scope-switch button:hover,
.engine-scope-switch button:focus-visible,
.engine-scope-switch button.is-active {
  border-color: rgba(47, 136, 255, 0.58);
  background: rgba(47, 136, 255, 0.14);
  color: var(--text);
  outline: none;
}

.engine-scope-switch button span {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.engine-scope-switch button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.engine-multi-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.engine-supporting-checks .engine-diagnostic-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.engine-cylinder-grid {
  grid-template-columns: minmax(0, 1fr);
}

.profile-summary-grid {
  grid-template-columns: minmax(0, 1fr);
}

.profile-summary-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(11, 22, 34, 0.72);
}

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

.profile-summary-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-summary-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.profile-summary-subsection-header {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, rgba(255, 255, 255, 0.6));
}

.engine-triage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.engine-triage-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.engine-column-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-triage-summary,
.engine-review-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.72);
}

.engine-triage-summary {
  position: relative;
  overflow: hidden;
}

.engine-triage-summary.is-evidence-selected {
  border-color: rgba(255, 159, 28, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.24);
}

.engine-triage-summary::before,
.engine-review-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}

.engine-triage-summary.status-amber::before,
.engine-review-card.is-watch::before {
  background: var(--amber);
}

.engine-triage-summary.status-red::before,
.engine-review-card.is-review::before {
  background: var(--red);
}

.engine-triage-summary header,
.engine-review-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.engine-triage-summary h3,
.engine-review-card h3 {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.22;
}

.engine-triage-summary > p,
.engine-review-card > p {
  max-width: 760px;
}

.engine-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.engine-status.green {
  color: var(--green);
  border-color: rgba(98, 206, 77, 0.34);
  background: rgba(98, 206, 77, 0.08);
}

.engine-status.amber {
  color: var(--amber);
  border-color: rgba(255, 159, 28, 0.34);
  background: rgba(255, 159, 28, 0.08);
}

.engine-status.red {
  color: var(--red);
  border-color: rgba(255, 73, 61, 0.34);
  background: rgba(255, 73, 61, 0.08);
}

.engine-triage-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px;
  justify-items: end;
  white-space: nowrap;
}

.engine-triage-score strong {
  font-size: 42px;
  line-height: 0.95;
}

.engine-triage-score span,
.engine-triage-score small,
.engine-triage-meta,
.engine-review-meta,
.engine-event-note {
  color: var(--muted);
}

.engine-triage-score small {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-next-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.engine-next-actions li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce7f3;
}

.engine-next-actions li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.engine-lesson-heading {
  margin-top: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-lesson {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.engine-lesson div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-lesson span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-lesson p {
  margin: 0;
  color: #dce7f3;
  font-size: 13px;
  line-height: 1.35;
}

.engine-lesson.is-compact {
  grid-template-columns: 1fr;
}

.engine-explanation {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.engine-explanation summary {
  min-height: 34px;
  padding: 8px 10px;
  color: #dce7f3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.engine-explanation[open] {
  padding-bottom: 10px;
}

.engine-explanation .engine-lesson {
  margin: 0 10px;
}

.engine-supporting-lesson {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.engine-review-list {
  display: grid;
  gap: 12px;
}

.engine-review-card {
  position: relative;
  overflow: hidden;
}

.engine-review-card.is-clear::before {
  background: var(--green);
}

.engine-timeline-events button,
.engine-event-note {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #d6e1ed;
  font-size: 12px;
  font-weight: 750;
}

.compact-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.engine-event-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.52);
}

.engine-event-timeline[hidden] {
  display: none;
}

.engine-timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.engine-timeline-heading strong {
  color: var(--text);
}

.engine-event-chip.amber {
  border-color: rgba(255, 159, 28, 0.45);
}

.engine-event-chip.red {
  border-color: rgba(255, 73, 61, 0.5);
}

.engine-event-chip.green {
  border-color: rgba(16, 185, 129, 0.42);
}

.engine-timeline-events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.engine-timeline-events button {
  gap: 7px;
  cursor: pointer;
}

.engine-timeline-events button span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.engine-timeline-events button:hover,
.engine-timeline-events button:focus-visible,
.engine-timeline-events button.is-selected {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.16);
  outline: none;
}

.engine-timeline-events button.is-selected {
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.32);
}

.engine-event-selection {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.engine-event-selection span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-event-selection strong {
  color: var(--text);
  font-size: 14px;
}

.engine-event-selection p {
  margin: 0;
  color: #dce7f3;
  font-size: 13px;
  line-height: 1.35;
}

.engine-supporting-checks {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.42);
}

.engine-supporting-heading {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.engine-supporting-checks .engine-diagnostic-grid {
  padding: 0 8px 8px;
}

.engine-diagnostic-card,
.engine-cylinder-card,
.engine-cylinder-detail,
.profile-summary-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.72);
}

.engine-diagnostic-card.is-review,
.engine-cylinder-card.is-flagged {
  border-color: rgba(255, 73, 61, 0.52);
  box-shadow: inset 4px 0 0 rgba(255, 73, 61, 0.78);
}

.engine-diagnostic-card.is-watch,
.engine-cylinder-card.is-watch {
  border-color: rgba(255, 159, 28, 0.5);
  box-shadow: inset 4px 0 0 rgba(255, 159, 28, 0.78);
}

.engine-cylinder-card {
  cursor: pointer;
  outline: none;
}

.engine-cylinder-card:hover,
.engine-cylinder-card:focus-visible,
.engine-cylinder-card.is-selected {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.1);
}

.engine-cylinder-detail {
  grid-column: 1 / -1;
  border-color: rgba(47, 136, 255, 0.42);
  background: rgba(16, 35, 55, 0.8);
}

.engine-diagnostic-card header,
.engine-cylinder-card header,
.engine-cylinder-detail header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.engine-diagnostic-card h3,
.engine-cylinder-card h3,
.engine-cylinder-detail h3 {
  font-size: 18px;
}

.engine-diagnostic-card strong,
.profile-summary-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
}

.profile-summary-card strong {
  font-size: 21px;
  overflow-wrap: anywhere;
}

.profile-summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.engine-diagnostic-card p,
.engine-cylinder-card p,
.profile-summary-card span {
  color: var(--muted);
}

.engine-diagnostic-card.is-compact {
  padding: 10px;
}

.engine-diagnostic-card.is-compact header {
  gap: 8px;
  margin-bottom: 8px;
}

.engine-diagnostic-card.is-compact h3 {
  font-size: 15px;
  line-height: 1.15;
}

.engine-diagnostic-card.is-compact strong {
  font-size: 22px;
}

.engine-diagnostic-card.is-compact p {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.engine-diagnostic-card.is-compact .engine-supporting-lesson {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.engine-cylinder-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.engine-cylinder-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.engine-cylinder-detail-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.engine-cylinder-detail-grid span,
.engine-cylinder-detail-grid em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.engine-cylinder-detail-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 19px;
}

.engine-cylinder-detail p {
  margin-bottom: 0;
  color: var(--muted);
}

.engine-cylinder-stats span,
.engine-cylinder-flags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.engine-cylinder-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--amber);
}

.engine-cylinder-table-wrap {
  grid-column: 1 / -1;
}

.engine-cylinder-table td:first-child strong,
.engine-cylinder-table td:first-child small {
  display: block;
}

.engine-cylinder-table td:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.engine-cylinder-engine-row th {
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(47, 136, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.engine-cylinder-engine-row th span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(47, 136, 255, 0.35);
  border-radius: 7px;
  background: rgba(47, 136, 255, 0.14);
  color: #9dccff;
  font-size: 11px;
}

.engine-cylinder-averages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  grid-column: 1 / -1;
}

.engine-cylinder-averages div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 29, 45, 0.78);
}

.engine-cylinder-averages span,
.engine-cylinder-averages small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.engine-cylinder-averages strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.engine-cylinder-averages small {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}

.engine-cylinder-table {
  min-width: 940px;
}

.engine-cylinder-table tbody tr {
  cursor: pointer;
  outline: none;
}

.engine-cylinder-table tbody tr:hover,
.engine-cylinder-table tbody tr:focus-visible,
.engine-cylinder-table tbody tr.is-selected {
  background: rgba(47, 136, 255, 0.1);
}

.engine-cylinder-table tbody tr.is-flagged td:first-child {
  box-shadow: inset 4px 0 0 rgba(255, 73, 61, 0.78);
}

.engine-cylinder-table tbody tr.is-watch td:first-child {
  box-shadow: inset 4px 0 0 rgba(255, 159, 28, 0.78);
}

.engine-cylinder-table td {
  vertical-align: middle;
}

.engine-cylinder-table td:nth-child(7) {
  min-width: 220px;
  white-space: normal;
}

.engine-cylinder-table .engine-cylinder-flags {
  margin-top: 0;
}

.engine-cylinder-score {
  display: block;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.engine-cylinder-score + small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.phase-timeline {
  display: grid;
  gap: 14px;
}

.profile-mix-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-mix-rail {
  display: flex;
  min-width: 0;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-mix-segment {
  min-width: 7px;
  height: 100%;
}

.profile-mix-segment.ground,
.profile-mix-swatch.ground {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.86), rgba(255, 209, 102, 0.92));
}

.profile-mix-segment.airborne,
.profile-mix-swatch.airborne {
  background: linear-gradient(90deg, rgba(47, 136, 255, 0.9), rgba(45, 212, 191, 0.9));
}

.profile-mix-segment.off,
.profile-mix-swatch.off {
  background: rgba(150, 166, 183, 0.78);
}

.profile-mix-segment.unknown,
.profile-mix-swatch.unknown {
  background: rgba(179, 107, 255, 0.78);
}

.profile-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-mix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.profile-mix-legend b {
  color: var(--text);
  font-weight: 800;
}

.profile-mix-legend em {
  color: #c7d3e0;
  font-style: normal;
}

.profile-mix-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.profile-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-context-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 18, 29, 0.54);
}

.profile-context-card span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.profile-context-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile-context-card em {
  display: block;
  margin-top: 6px;
  color: #aab8c8;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.profile-brief-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-brief-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.profile-brief-header .eyebrow {
  margin: 0 0 5px;
}

.profile-brief-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
}

.profile-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.38);
  color: rgba(234, 242, 251, 0.92);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-source-chip[hidden] {
  display: none;
}

.profile-highlight-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.profile-route-map[hidden] {
  display: none;
}

.profile-route-map {
  display: grid;
  gap: 8px;
}

.profile-route-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(480px, 1.06fr);
  align-items: start;
  gap: 14px;
}

.profile-route-layout:has(.profile-route-map[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.profile-route-sidebar {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-route-layout:not(:has(.profile-route-map[hidden])) .profile-highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.playback-map-card.profile-route-map-card {
  grid-template-rows: auto minmax(420px, 50vh);
  min-height: 468px;
  border-color: rgba(138, 184, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 25, 39, 0.74);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.profile-route-map-card .playback-map-canvas {
  min-height: 420px;
}

.profile-route-map-card .playback-map-route-line {
  stroke: #35b7ff;
}

.profile-route-map-card .playback-map-route-line.is-future,
.profile-route-map-card .playback-map-route-shadow.is-future {
  opacity: 0.18;
}

.profile-route-scrubber {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(138, 184, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 15, 25, 0.72);
  color: rgba(202, 214, 229, 0.9);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.profile-route-scrubber button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 246, 255, 0.94);
  font: inherit;
  cursor: pointer;
}

.profile-route-scrubber button:hover,
.profile-route-scrubber button:focus-visible {
  border-color: rgba(53, 183, 255, 0.72);
  background: rgba(53, 183, 255, 0.14);
}

.profile-route-scrubber input {
  width: 100%;
  accent-color: #35b7ff;
}

.profile-route-scrubber output {
  min-width: 68px;
  color: #eef6ff;
  text-align: right;
}

.profile-highlight-card,
.profile-mix-card,
.profile-summary-section,
.profile-context-rail {
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 25, 39, 0.74);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.profile-highlight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 108px;
  gap: 16px;
  padding: 18px 20px;
}

.profile-highlight-icon,
.profile-context-icon {
  display: grid;
  place-items: center;
  color: #3b9dff;
}

.profile-highlight-icon {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(59, 157, 255, 0.72);
  border-radius: 999px;
}

.profile-highlight-icon svg {
  width: 30px;
  height: 30px;
}

.profile-highlight-icon svg.profile-airplane-icon {
  width: 28.8px;
  height: 28.8px;
  fill: currentColor;
  stroke: none;
}

.profile-highlight-icon svg.profile-distance-icon {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}

.profile-highlight-icon svg.profile-density-altimeter-icon {
  width: 36px;
  height: 36px;
}

.profile-highlight-icon svg,
.profile-context-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-highlight-icon svg {
  stroke-width: 2.15;
}

.profile-highlight-card span,
.profile-summary-row span,
.profile-context-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.profile-highlight-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.profile-highlight-card strong.profile-highlight-value--time {
  font-size: clamp(24px, 1.55vw, 30px);
  overflow-wrap: normal;
  white-space: nowrap;
}

.profile-highlight-card strong .profile-highlight-unit-inline {
  display: inline;
  margin: 0 0 0 0.22em;
  font-size: 0.42em;
  line-height: 1;
  vertical-align: baseline;
}

.profile-highlight-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.profile-mix-card {
  display: grid;
  gap: 13px;
  padding: 18px 20px 17px;
}

.profile-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.profile-section-heading h3,
.profile-summary-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

.profile-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.profile-mix-card .profile-mix-rail {
  height: 18px;
  border-color: rgba(138, 184, 255, 0.22);
}

.profile-mix-card .profile-mix-segment {
  min-width: 8px;
}

.profile-mix-range {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: -5px;
  color: var(--muted);
  font-size: 12px;
}

.profile-mix-card .profile-mix-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 18px;
}

.profile-mix-card .profile-mix-legend span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "swatch label"
    "swatch detail";
  align-items: start;
  gap: 2px 9px;
  min-width: 0;
}

.profile-mix-card .profile-mix-swatch {
  grid-area: swatch;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 3px;
}

.profile-mix-card .profile-mix-legend b {
  grid-area: label;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.profile-mix-card .profile-mix-legend em {
  display: inline;
  margin-left: 4px;
}

.profile-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.profile-summary-section {
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(10, 22, 35, 0.72);
}

.profile-summary-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.profile-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  min-height: 31px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(138, 184, 255, 0.13);
}

.profile-summary-row:last-child {
  border-bottom: 0;
}

.profile-summary-row strong {
  color: rgba(234, 242, 251, 0.94);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.profile-summary-row small {
  grid-column: 1 / -1;
  margin-top: -1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-summary-subsection-header {
  margin: 12px 0 5px;
}

.profile-context-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 18px 20px;
}

.profile-context-rail .profile-context-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  padding: 8px 22px;
  border: 0;
  border-right: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.profile-context-rail .profile-context-card:first-child {
  padding-left: 0;
}

.profile-context-rail .profile-context-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.profile-context-icon {
  width: 28px;
  height: 28px;
}

.profile-context-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.profile-context-rail .profile-context-card strong {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.12;
}

.profile-context-rail .profile-context-card em {
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .profile-highlight-grid,
  .profile-summary-grid,
  .profile-context-rail,
  .profile-mix-card .profile-mix-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-context-rail .profile-context-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 1040px) {
  .profile-route-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .profile-brief-panel {
    padding: 14px;
  }

  .profile-brief-header {
    display: grid;
  }

  .profile-highlight-grid,
  .profile-summary-grid,
  .profile-context-rail,
  .profile-mix-card .profile-mix-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .playback-map-card.profile-route-map-card {
    grid-template-rows: auto minmax(220px, 38vh);
    min-height: 268px;
  }

  .profile-route-map-card .playback-map-canvas {
    min-height: 220px;
  }

  .profile-highlight-card {
    min-height: 96px;
    padding: 16px;
  }

  .profile-mix-card,
  .profile-summary-section,
  .profile-context-rail {
    padding: 16px;
  }

  .profile-context-rail .profile-context-card,
  .profile-context-rail .profile-context-card:first-child,
  .profile-context-rail .profile-context-card:last-child {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(138, 184, 255, 0.16);
  }

  .profile-context-rail .profile-context-card:last-child {
    border-bottom: 0;
  }

  .profile-summary-row strong {
    white-space: normal;
  }
}

.graph-explorer-panel {
  display: none;
}

.graph-explorer-panel.is-active {
  display: block;
}

.raw-data-panel {
  display: none;
  gap: 14px;
}

.raw-data-panel.is-active {
  display: grid;
}

.raw-data-panel > .panel {
  padding: 18px 26px;
}

.raw-data-panel > .panel > .panel-header {
  margin-bottom: 16px;
}

.raw-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.raw-summary-card {
  min-height: 86px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.72);
}

.raw-summary-card span {
  display: block;
  color: var(--muted);
}

.raw-summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 21px;
}

.compact-header {
  margin-bottom: 12px;
}

.compact-header h2 {
  font-size: 20px;
}

.raw-preview-header-meta {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
  max-width: min(520px, 48vw);
}

.raw-preview-download-action {
  white-space: nowrap;
}

#rawPreviewNote {
  display: block;
  max-width: 100%;
  text-align: right;
  line-height: 1.25;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #132131;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  color: var(--text);
}

.table-sort-button:focus-visible {
  outline: 2px solid rgba(105, 165, 255, 0.72);
  outline-offset: 3px;
  border-radius: 4px;
}

.table-sort-indicator {
  position: relative;
  width: 8px;
  height: 12px;
  opacity: 0.48;
}

.table-sort-indicator::before,
.table-sort-indicator::after {
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  content: "";
}

.table-sort-indicator::before {
  top: 0;
  border-bottom: 5px solid currentColor;
}

.table-sort-indicator::after {
  bottom: 0;
  border-top: 5px solid currentColor;
}

.table-sort-button.is-active {
  color: var(--text);
}

.table-sort-button.is-active .table-sort-indicator {
  opacity: 0.95;
}

.table-sort-button.is-active[aria-pressed="true"] .table-sort-indicator::before {
  opacity: 0.32;
}

.table-sort-button.is-active[aria-pressed="true"] .table-sort-indicator::after {
  opacity: 1;
}

th[aria-sort="ascending"] .table-sort-button.is-active .table-sort-indicator::before {
  opacity: 1;
}

th[aria-sort="ascending"] .table-sort-button.is-active .table-sort-indicator::after {
  opacity: 0.32;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.aircraft-flights-table tbody tr,
.aircraft-uploads-table tbody tr {
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.aircraft-flights-table tbody tr[data-aircraft-flight-row] {
  cursor: pointer;
}

.aircraft-flights-table tbody tr > td,
.aircraft-uploads-table tbody tr > td {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.aircraft-flights-table tbody tr:hover > td,
.aircraft-uploads-table tbody tr:hover > td {
  background: rgba(47, 136, 255, 0.065);
  border-bottom-color: rgba(138, 184, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(138, 184, 255, 0.12), inset 0 -1px 0 rgba(138, 184, 255, 0.1);
}

.aircraft-flights-table tbody tr:hover > td:first-child,
.aircraft-uploads-table tbody tr:hover > td:first-child {
  box-shadow:
    inset 3px 0 0 rgba(105, 165, 255, 0.62),
    inset 0 1px 0 rgba(138, 184, 255, 0.12),
    inset 0 -1px 0 rgba(138, 184, 255, 0.1);
}

.aircraft-flights-table tbody tr.is-selected > td,
.aircraft-uploads-table tbody tr.is-selected > td {
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.18), rgba(47, 136, 255, 0.08)),
    rgba(8, 16, 26, 0.36);
  border-bottom-color: rgba(138, 184, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(138, 184, 255, 0.2),
    inset 0 -1px 0 rgba(138, 184, 255, 0.18);
}

.aircraft-flights-table tbody tr.is-selected > td:first-child,
.aircraft-uploads-table tbody tr.is-selected > td:first-child {
  box-shadow:
    inset 4px 0 0 rgba(105, 165, 255, 0.88),
    inset 0 1px 0 rgba(138, 184, 255, 0.2),
    inset 0 -1px 0 rgba(138, 184, 255, 0.18);
}

.aircraft-flights-table tbody tr.is-selected > td:last-child,
.aircraft-uploads-table tbody tr.is-selected > td:last-child {
  box-shadow:
    inset -4px 0 0 rgba(105, 165, 255, 0.74),
    inset 0 1px 0 rgba(138, 184, 255, 0.2),
    inset 0 -1px 0 rgba(138, 184, 255, 0.18);
}

.aircraft-flights-table tbody tr.is-selected:hover > td,
.aircraft-uploads-table tbody tr.is-selected:hover > td {
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.24), rgba(47, 136, 255, 0.12)),
    rgba(8, 16, 26, 0.42);
  border-bottom-color: rgba(138, 184, 255, 0.36);
}

.aircraft-flights-table tbody tr.is-unsupported {
  color: rgba(216, 228, 240, 0.52);
  background: rgba(255, 255, 255, 0.015);
}

.aircraft-flights-table tbody tr.is-unsupported:hover > td {
  background: rgba(138, 184, 255, 0.045);
}

.aircraft-flights-table tbody tr.is-unsupported.is-selected > td {
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.16), rgba(47, 136, 255, 0.075)),
    rgba(8, 16, 26, 0.34);
}

.aircraft-flights-table tbody tr.is-unsupported.is-selected:hover > td {
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.22), rgba(47, 136, 255, 0.11)),
    rgba(8, 16, 26, 0.4);
}

.aircraft-flights-table tbody tr.is-unsupported .secondary-action {
  opacity: 0.78;
}

.aircraft-flights-table tbody tr.is-plan-locked {
  color: rgba(216, 228, 240, 0.54);
  background: rgba(242, 181, 56, 0.035);
}

.aircraft-flights-table tbody tr.is-plan-locked > td:not(.aircraft-row-select-cell):not(.aircraft-flight-actions-cell) {
  opacity: 0.68;
}

.aircraft-flights-table tbody tr.is-plan-locked:hover > td {
  background: rgba(242, 181, 56, 0.055);
  border-bottom-color: rgba(242, 181, 56, 0.18);
  box-shadow: none;
}

.aircraft-flights-table tbody tr.is-plan-locked:hover > td:first-child {
  box-shadow: inset 3px 0 0 rgba(242, 181, 56, 0.5);
}

.aircraft-flights-table th:nth-child(3),
.aircraft-flights-table td:nth-child(3),
.aircraft-flights-table th:nth-child(4),
.aircraft-flights-table td:nth-child(4) {
  white-space: nowrap;
}

.aircraft-flights-table th:nth-child(5),
.aircraft-flights-table td:nth-child(5),
.aircraft-flights-table th:nth-child(6),
.aircraft-flights-table td:nth-child(6),
.aircraft-flights-table th:nth-child(7),
.aircraft-flights-table td:nth-child(7),
.aircraft-flights-table th:nth-child(8),
.aircraft-flights-table td:nth-child(8) {
  white-space: nowrap;
}

.aircraft-flight-scope-heading {
  display: inline-grid;
  gap: 2px;
  line-height: 1.18;
}

.aircraft-flight-scope-heading span {
  display: block;
}

.aircraft-flight-cgr-source {
  align-items: center;
  border: 1px solid rgba(159, 179, 200, 0.22);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  min-height: 28px;
  padding: 4px 9px;
  white-space: nowrap;
}

.aircraft-flight-cgr-source.is-paired {
  background: rgba(98, 206, 77, 0.14);
  border-color: rgba(98, 206, 77, 0.34);
  color: #7ddc8a;
}

.aircraft-flight-cgr-source.is-unmatched {
  background: rgba(243, 162, 58, 0.13);
  border-color: rgba(243, 162, 58, 0.36);
  color: #f3a23a;
}

.aircraft-flight-cgr-source.is-empty {
  background: rgba(159, 179, 200, 0.08);
  color: rgba(159, 179, 200, 0.62);
}

.aircraft-flight-date {
  display: grid;
  gap: 3px;
  min-width: 205px;
}

.aircraft-flight-date strong,
.aircraft-flight-duration {
  color: rgba(241, 246, 255, 0.94);
  font-weight: 760;
  letter-spacing: 0;
}

.aircraft-flight-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

/* Let a long date/source trigger wrap without forcing the table wider. */
.aircraft-flight-title-row > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.aircraft-flight-display {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: help;
  font: inherit;
  min-width: 0;
  padding: 0;
  position: relative;
  text-align: left;
}

button.aircraft-flight-display > strong:first-child {
  border-bottom: 1px dotted rgba(174, 188, 207, 0.7);
}

.aircraft-flight-display.is-static {
  cursor: default;
}

.aircraft-flight-display:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(105, 165, 255, 0.9);
  outline-offset: 3px;
}

.aircraft-flight-provenance-tooltip {
  background: #111c2b;
  border: 1px solid rgba(159, 179, 200, 0.3);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(1, 8, 18, 0.42);
  color: rgba(241, 246, 255, 0.94);
  display: grid;
  font-size: 0.74rem;
  font-weight: 520;
  gap: 3px;
  left: 0;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: min(360px, calc(100vw - 40px));
  min-width: 230px;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
  white-space: normal;
  z-index: 30;
}

.aircraft-flight-display:hover .aircraft-flight-provenance-tooltip,
.aircraft-flight-display:focus .aircraft-flight-provenance-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.aircraft-flight-provenance-label {
  color: rgba(174, 188, 207, 0.72);
  font-size: 0.65rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  margin-top: 5px;
  text-transform: uppercase;
}

.aircraft-flight-provenance-label:first-child {
  margin-top: 0;
}

.aircraft-flight-provenance-value {
  overflow-wrap: anywhere;
}

.aircraft-flight-analysis-update {
  align-items: center;
  background: rgba(243, 162, 58, 0.12);
  border: 1px solid rgba(243, 162, 58, 0.38);
  border-radius: 999px;
  color: #f7bd68;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  padding: 3px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.aircraft-flight-analysis-update.is-incompatible {
  background: rgba(255, 73, 61, 0.12);
  border-color: rgba(255, 73, 61, 0.35);
  color: #ffb4aa;
}

.aircraft-flight-analysis-update.is-parser {
  background: rgba(47, 136, 255, 0.12);
  border-color: rgba(105, 165, 255, 0.4);
  color: #b9d6ff;
}

.aircraft-flight-analysis-update.is-parser.is-unavailable {
  background: rgba(255, 73, 61, 0.12);
  border-color: rgba(255, 73, 61, 0.35);
  color: #ffb4aa;
}

.aircraft-analysis-update-notice,
.analysis-compatibility-banner {
  align-items: center;
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #fde68a;
  display: flex;
  gap: 10px;
  line-height: 1.4;
  padding: 10px 14px;
}

.aircraft-analysis-update-notice {
  border-left: 0;
  border-right: 0;
  justify-content: flex-start;
  padding: 16px 20px;
}

.analysis-compatibility-banner {
  border-radius: 10px;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.aircraft-analysis-update-notice.is-analysis-update,
.analysis-compatibility-banner.is-analysis-update {
  background: rgba(17, 30, 45, 0.92);
  border-color: rgba(138, 184, 255, 0.24);
  border-left: 3px solid rgba(217, 119, 6, 0.86);
  color: #d8e4f0;
}

.aircraft-analysis-update-notice strong,
.analysis-compatibility-banner strong {
  color: #fef3c7;
  flex: 0 0 auto;
}

.aircraft-analysis-update-notice span,
.analysis-compatibility-banner span {
  color: rgba(254, 243, 199, 0.86);
  font-size: 0.82rem;
}

.analysis-update-kicker {
  color: #f7bd68 !important;
  font-size: 0.68rem !important;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-compatibility-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.analysis-compatibility-action {
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.72);
  border-radius: 9px;
  color: #fef3c7;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 32px;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.analysis-compatibility-action:hover:not(:disabled),
.analysis-compatibility-action:focus-visible {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(245, 158, 11, 0.9);
  color: #fff7db;
}

.analysis-compatibility-action:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.72);
  outline-offset: 4px;
}

.analysis-compatibility-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.analysis-compatibility-body {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aircraft-analysis-update-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aircraft-analysis-update-body {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aircraft-analysis-update-copy strong {
  font-size: 0.98rem;
}

.aircraft-analysis-update-copy .analysis-update-kicker + strong,
.analysis-compatibility-copy .analysis-update-kicker + strong {
  font-size: 1.04rem;
}

.aircraft-analysis-update-copy span {
  font-size: 0.86rem;
}

.aircraft-analysis-update-action {
  border-color: rgba(217, 119, 6, 0.72);
  color: #fef3c7;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 32px;
  padding-inline: 12px;
  white-space: nowrap;
}

.aircraft-analysis-update-action:hover:not(:disabled),
.aircraft-analysis-update-action:focus-visible {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(245, 158, 11, 0.9);
  color: #fff7db;
}

@media (max-width: 760px) {
  .aircraft-analysis-update-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .aircraft-analysis-update-action {
    align-self: flex-start;
  }

  .aircraft-analysis-update-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-compatibility-banner,
  .analysis-compatibility-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-compatibility-body {
    align-items: flex-start;
    flex-direction: column;
  }
}

.aircraft-flight-source-download {
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(138, 184, 255, 0.08);
  border: 1px solid rgba(138, 184, 255, 0.2);
  border-radius: 6px;
  color: rgba(174, 188, 207, 0.72);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

.aircraft-flight-source-download svg {
  height: 15px;
  width: 15px;
}

.aircraft-flight-source-download svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.aircraft-flight-source-download:hover,
.aircraft-flight-source-download:focus-visible {
  background: rgba(105, 165, 255, 0.14);
  border-color: rgba(105, 165, 255, 0.46);
  color: rgba(198, 220, 255, 0.96);
  outline: none;
}

.aircraft-flight-duration {
  display: inline-flex;
  min-width: 62px;
}

.aircraft-flight-inline-status {
  color: rgba(216, 228, 240, 0.62);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.aircraft-flight-inline-status.is-plan-locked,
.aircraft-flight-route.is-plan-locked {
  color: rgba(247, 202, 93, 0.92);
  font-weight: 700;
}

/* "From > To" origin/arrival column (issue #214). */
.aircraft-flight-route-cell {
  white-space: nowrap;
}

.aircraft-flight-route {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(174, 188, 207, 0.7);
}

.aircraft-flight-route-ident {
  color: rgba(241, 246, 255, 0.9);
  font-weight: 680;
  letter-spacing: 0.01em;
}

.aircraft-flight-route-sep {
  color: rgba(174, 188, 207, 0.5);
}

.aircraft-flight-route-near {
  color: rgba(174, 188, 207, 0.62);
  font-size: 0.78rem;
  font-style: italic;
}

.aircraft-flight-route-empty {
  color: rgba(174, 188, 207, 0.4);
}

.aircraft-flight-route-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aircraft-flight-route-sort-arrow {
  color: rgba(174, 188, 207, 0.5);
}

.aircraft-flight-route-edit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.aircraft-flight-route-edit:hover,
.aircraft-flight-route-edit:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.aircraft-flight-route-edit.is-empty {
  color: rgba(174, 188, 207, 0.5);
  font-size: 0.82rem;
}

.aircraft-flight-route-edit.is-empty:hover,
.aircraft-flight-route-edit.is-empty:focus-visible {
  color: rgba(216, 228, 240, 0.88);
}

.aircraft-flight-route-pencil {
  opacity: 0;
  color: rgba(174, 188, 207, 0.6);
  font-size: 0.78rem;
  transition: opacity 0.12s ease;
}

.aircraft-flight-route-edit:hover .aircraft-flight-route-pencil,
.aircraft-flight-route-edit:focus-visible .aircraft-flight-route-pencil {
  opacity: 1;
}

.aircraft-flight-route-editor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aircraft-flight-route-input {
  width: 62px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(9, 15, 22, 0.6);
  color: rgba(241, 246, 255, 0.95);
  font: inherit;
  text-transform: uppercase;
}

.aircraft-flight-route-input:focus {
  outline: none;
  border-color: rgba(105, 165, 255, 0.72);
}

.aircraft-flight-route-editor-save,
.aircraft-flight-route-editor-cancel {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  color: rgba(216, 228, 240, 0.9);
  font: inherit;
  cursor: pointer;
}

.aircraft-flight-route-editor-save {
  border-color: rgba(105, 165, 255, 0.5);
  color: rgba(198, 220, 255, 0.96);
}

.aircraft-flight-route-editor-save:hover,
.aircraft-flight-route-editor-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.aircraft-flight-actions-cell {
  width: 1%;
}

.aircraft-row-select-header,
.aircraft-row-select-cell {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.aircraft-row-select-cell {
  cursor: pointer;
}

.aircraft-row-select-header input,
.aircraft-row-select-cell input {
  cursor: pointer;
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.aircraft-flight-flags-cell {
  text-align: center;
  width: 1%;
}

.aircraft-flight-analysis-update-header,
.aircraft-flight-analysis-update-cell {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

.aircraft-flight-analysis-update-header {
  color: rgba(191, 219, 254, 0.86);
}

.aircraft-flight-analysis-update-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px 5px 11px;
  border-color: rgba(105, 165, 255, 0.5);
  color: rgba(198, 220, 255, 0.96);
  background: rgba(30, 64, 175, 0.12);
  font-size: 12px;
  font-weight: 750;
}

.aircraft-flight-analysis-update-action:hover:not(:disabled),
.aircraft-flight-analysis-update-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.78);
  background: rgba(47, 136, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.aircraft-flight-analysis-update-action.is-generating {
  cursor: progress;
  border-color: rgba(138, 184, 255, 0.8);
  background: rgba(47, 136, 255, 0.2);
}

.aircraft-flight-analysis-update-action.is-generating .aircraft-flight-reanalyze-icon {
  animation: reportRegenerateSpin 0.9s linear infinite;
}

.aircraft-flight-analysis-update-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.aircraft-flight-analysis-update-empty {
  color: rgba(174, 188, 207, 0.38);
  font-weight: 700;
}

.aircraft-flight-flags-cell > .aircraft-flight-flags,
.aircraft-flight-flags-cell > .aircraft-flight-flags-stack {
  display: flex;
  width: max-content;
  margin-inline: auto;
}

.aircraft-flight-flags-stack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.aircraft-flight-flags {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: rgba(216, 228, 240, 0.68);
  background: rgba(15, 23, 42, 0.28);
  font-size: 13px;
  font-weight: 700;
}

.aircraft-flight-flags-review {
  border-color: rgba(248, 113, 113, 0.48);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.18);
}

.aircraft-flight-flags-high-cht {
  border-color: rgba(248, 113, 113, 0.85);
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.32);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18) inset;
}

.aircraft-flight-flags-watch {
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde68a;
  background: rgba(120, 53, 15, 0.16);
}

.aircraft-flight-flags-clear {
  justify-content: center;
  min-width: 56px;
  border-color: rgba(76, 201, 160, 0.44);
  color: #b9f4df;
  background: rgba(20, 83, 45, 0.16);
}

.aircraft-flight-flags-empty {
  justify-content: center;
  min-width: 56px;
  border-color: transparent;
  background: transparent;
  color: rgba(216, 228, 240, 0.5);
  font-size: 1rem;
  font-weight: 700;
}

.aircraft-flight-report-cell {
  width: 1%;
}

.aircraft-flight-ai-summary-cell {
  width: 1%;
}

.aircraft-flight-ai-summary-header {
  text-align: center;
}

.aircraft-flight-ai-summary-action {
  min-width: 136px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aircraft-flight-ai-summary-action.is-icon-only {
  width: 39px;
  min-width: 39px;
  min-height: 39px;
  padding: 0;
  border-color: rgba(167, 139, 250, 0.18);
  color: rgba(203, 213, 225, 0.78);
  background: rgba(15, 23, 42, 0.18);
}

.aircraft-flight-report-action {
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aircraft-flight-report-action.is-icon-only {
  width: 39px;
  min-width: 39px;
  min-height: 39px;
  padding: 0;
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(203, 213, 225, 0.76);
  background: rgba(15, 23, 42, 0.18);
}

.aircraft-flight-report-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.aircraft-flight-ai-summary-action:hover:not(:disabled),
.aircraft-flight-ai-summary-action:focus-visible,
.aircraft-flight-report-action:hover:not(:disabled),
.aircraft-flight-report-action:focus-visible,
.aircraft-flight-report-regenerate-action:hover:not(:disabled),
.aircraft-flight-report-regenerate-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.72);
  background: rgba(47, 136, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.14), 0 8px 20px rgba(47, 136, 255, 0.12);
  color: #f7fbff;
  outline: none;
}

.aircraft-flight-ai-summary-action.has-summary {
  border-color: rgba(167, 139, 250, 0.56);
  color: #ddd6fe;
  background: rgba(67, 56, 202, 0.16);
}

.aircraft-flight-ai-summary-action.has-summary:hover:not(:disabled),
.aircraft-flight-ai-summary-action.has-summary:focus-visible {
  border-color: rgba(196, 181, 253, 0.76);
  background: rgba(124, 58, 237, 0.16);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14), 0 8px 20px rgba(124, 58, 237, 0.1);
  color: #f5f3ff;
}

.aircraft-flight-ai-summary-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.aircraft-flight-icon-mark {
  color: currentColor;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-rendering: geometricPrecision;
}

.aircraft-flight-pdf-icon .aircraft-flight-icon-mark {
  font-size: 11px;
}

.aircraft-flight-ai-summary-icon-sparkle {
  position: absolute;
  right: 1px;
  top: 2px;
  width: 5px;
  height: 5px;
  color: #bfdbfe;
}

.aircraft-flight-ai-summary-action.is-icon-only .aircraft-flight-ai-summary-icon-sparkle {
  color: rgba(196, 181, 253, 0.58);
}

.aircraft-flight-ai-summary-icon-sparkle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.aircraft-flight-report-action.has-report {
  border-color: rgba(76, 201, 160, 0.52);
  color: #b9f4df;
  background: rgba(20, 83, 45, 0.16);
}

.aircraft-flight-report-action.is-stale {
  background: rgba(243, 162, 58, 0.12);
  border-color: rgba(243, 162, 58, 0.38);
  color: #f7bd68;
}

.aircraft-flight-report-action.has-report:hover:not(:disabled),
.aircraft-flight-report-action.has-report:focus-visible {
  border-color: rgba(94, 234, 212, 0.72);
  background: rgba(20, 184, 166, 0.15);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14), 0 8px 20px rgba(20, 184, 166, 0.1);
  color: #d8fff4;
}

.aircraft-flight-report-regenerate-action {
  width: 39px;
  min-width: 39px;
  min-height: 39px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(138, 184, 255, 0.46);
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.14);
}

.aircraft-flight-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.aircraft-flight-regenerate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.aircraft-flight-regenerate-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aircraft-flight-ai-summary-action.is-generating,
.aircraft-flight-report-action.is-generating,
.aircraft-flight-report-regenerate-action.is-generating,
.aircraft-flight-reanalyze-action.is-generating {
  cursor: progress;
}

.aircraft-flight-ai-summary-action.is-icon-only.is-generating .aircraft-flight-ai-summary-icon {
  animation: aiSummaryIconPulse 1.1s ease-in-out infinite;
}

.aircraft-flight-ai-summary-action.is-icon-only.is-generating .aircraft-flight-ai-summary-icon-sparkle {
  animation: aiSummarySparklePulse 0.8s ease-in-out infinite;
}

.aircraft-flight-report-regenerate-action.is-generating .aircraft-flight-regenerate-icon,
.aircraft-flight-reanalyze-action.is-generating .aircraft-flight-reanalyze-icon {
  animation: reportRegenerateSpin 0.9s linear infinite;
}

.aircraft-flight-reanalyze-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.aircraft-flights-reanalyze-all-icon,
.aircraft-flight-reanalyze-icon {
  transition: transform 160ms ease;
}

.aircraft-flight-reanalyze-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aircraft-flight-reanalyze-action:hover:not(:disabled),
.aircraft-flight-reanalyze-action:focus-visible,
.aircraft-flight-reprocess-action:hover:not(:disabled),
.aircraft-flight-reprocess-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.72);
  background: rgba(47, 136, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.14), 0 8px 20px rgba(8, 16, 28, 0.22);
  color: #ffffff;
  filter: none;
  outline: none;
}

.aircraft-flight-reanalyze-action:hover:not(:disabled) .aircraft-flight-reanalyze-icon,
.aircraft-flight-reanalyze-action:focus-visible .aircraft-flight-reanalyze-icon,
.aircraft-flight-reprocess-action:hover:not(:disabled) .aircraft-flight-reanalyze-icon,
.aircraft-flight-reprocess-action:focus-visible .aircraft-flight-reanalyze-icon {
  transform: rotate(-18deg);
}

.aircraft-flight-report-action.is-generating::after {
  content: "";
  display: inline-block;
  min-width: 1.2em;
  animation: reportDots 1s steps(4, end) infinite;
}

.aircraft-flight-report-action.is-icon-only.is-generating::after {
  content: none;
}

.aircraft-flight-report-action.is-icon-only.is-generating .aircraft-flight-pdf-icon {
  animation: reportIconPulse 1.1s ease-in-out infinite;
}

.aircraft-flight-report-action.is-icon-only.is-generating .aircraft-flight-icon-mark {
  font-size: 10px;
}

@keyframes reportRegenerateSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aiSummaryIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes aiSummarySparklePulse {
  0%,
  100% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.2) rotate(18deg);
    opacity: 1;
  }
}

@keyframes reportIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.aircraft-flight-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.aircraft-flight-actions .secondary-action {
  flex: 0 0 auto;
}

.aircraft-flight-open-action {
  min-width: 70px;
}

.aircraft-flight-open-action:hover:not(:disabled),
.aircraft-flight-open-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.76);
  background: rgba(138, 184, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(138, 184, 255, 0.14), 0 8px 20px rgba(8, 16, 28, 0.22);
  color: #ffffff;
  outline: none;
}

.raw-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.raw-grid > .panel {
  min-height: 0;
}

.raw-grid > .panel:last-child {
  position: static;
  display: block;
  max-height: none;
}

.raw-preview-panel {
  padding: 18px;
}

.data-quality-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-quality-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 22, 34, 0.72);
}

.data-quality-list li.is-warning {
  border-color: rgba(255, 159, 28, 0.45);
  background: rgba(41, 31, 17, 0.78);
}

.data-quality-list strong,
.data-quality-list span {
  display: block;
}

.data-quality-list span {
  margin-top: 4px;
  color: var(--muted);
}

.data-quality-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.data-quality-list details {
  margin-top: 10px;
}

.data-quality-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.88rem;
}

.engine-layout-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.engine-layout-options section {
  min-width: 0;
}

.engine-layout-options section strong {
  font-size: 0.82rem;
  color: var(--text);
}

.engine-layout-options pre {
  max-width: 100%;
  overflow: auto;
  margin: 6px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 12, 20, 0.76);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
  white-space: pre;
}

.parsed-preview-wrap {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.playback-panel {
  display: none;
}

.playback-panel.is-active {
  display: block;
}

.playback-shell-panel {
  padding: 0;
  border-color: rgba(96, 166, 255, 0.22);
  background: rgba(5, 12, 20, 0.64);
  overflow: hidden;
}

.playback-root {
  min-height: 426px;
}

.playback-instrument {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 426px;
  padding: clamp(7px, 0.9vw, 10px);
  overflow: hidden;
  border: 1px solid rgba(122, 191, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(47, 136, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(14, 29, 44, 0.96), rgba(5, 12, 20, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 44px rgba(47, 136, 255, 0.08);
}

.playback-main-column,
.playback-map-column {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
}

.playback-top-strip {
  display: grid;
  grid-template-columns: fit-content(660px) minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
  min-width: 0;
}

.playback-status-strip,
.playback-advisories,
.playback-tile,
.playback-cylinder-core,
.playback-controls,
.playback-timeline {
  min-width: 0;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
}

.playback-top-strip > div {
  min-width: 0;
}

.playback-status-strip,
.playback-advisories {
  min-height: 25px;
  padding: 4px 7px;
}

.playback-top-strip p,
.playback-top-strip strong,
.playback-top-strip small {
  display: block;
}

.playback-top-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.playback-top-strip strong {
  margin-top: 1px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1;
}

.playback-top-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.playback-status-strip,
.playback-advisory-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.playback-status-strip {
  align-content: center;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
}

.playback-advisories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.playback-advisories p {
  flex: 0 0 auto;
}

.playback-advisory-chips {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.playback-status-strip span,
.playback-advisory-chips span,
.playback-advisory-chips button {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce7f3;
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.playback-status-mode {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.08);
}

.playback-status-strip .playback-status-item {
  flex: 0 0 auto;
  gap: 3px;
  min-height: 20px;
}

.playback-status-item small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-status-item b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.playback-status-item b[data-status-value="phase"] {
  justify-content: flex-start;
  min-width: 7ch;
  text-align: left;
}

.playback-status-item b[data-status-value="elapsed"] {
  min-width: 8ch;
}

.playback-status-item b[data-status-value="time"] {
  min-width: 8ch;
}

.playback-status-item b[data-status-value="speed"] {
  min-width: 2ch;
}

.playback-advisory-chips span,
.playback-advisory-chips button {
  flex: 0 0 auto;
  color: var(--amber);
  border-color: rgba(255, 159, 28, 0.38);
  background: rgba(255, 159, 28, 0.09);
  text-transform: uppercase;
  white-space: nowrap;
}

.playback-advisory-chips button {
  gap: 5px;
  cursor: pointer;
}

.playback-advisory-engine {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 183, 77, 0.52);
  border-radius: 4px;
  background: rgba(255, 159, 28, 0.16);
  color: #ffd166;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.playback-advisory-chips button.is-danger .playback-advisory-engine {
  border-color: rgba(255, 135, 128, 0.58);
  background: rgba(255, 73, 61, 0.18);
  color: #ffd9d6;
}

.playback-advisory-chips button:hover,
.playback-advisory-chips button:focus-visible,
.playback-advisory-chips button.is-selected {
  border-color: rgba(255, 183, 77, 0.82);
  background: rgba(255, 159, 28, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.16), 0 0 16px rgba(255, 159, 28, 0.1);
  outline: none;
}

.playback-advisory-chips button.is-danger {
  color: #ffd9d6;
  border-color: rgba(255, 73, 61, 0.58);
  background: rgba(255, 73, 61, 0.12);
}

.playback-advisory-chips button.is-danger:hover,
.playback-advisory-chips button.is-danger:focus-visible,
.playback-advisory-chips button.is-danger.is-selected {
  border-color: rgba(255, 103, 94, 0.86);
  background: rgba(255, 73, 61, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 73, 61, 0.16), 0 0 16px rgba(255, 73, 61, 0.12);
}

.playback-advisory-empty {
  color: rgba(170, 183, 199, 0.82);
  border-color: rgba(139, 178, 217, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.playback-advisory-empty.is-panel-empty {
  margin-inline: auto;
  border-color: transparent;
  background: transparent;
  color: rgba(170, 183, 199, 0.62);
}

.playback-advisory-chips:has(.is-panel-empty) {
  justify-content: center;
  overflow: hidden;
}

.playback-alert-drawer {
  position: absolute;
  top: var(--playback-alert-top, 92px);
  right: clamp(10px, 1.15vw, 14px);
  z-index: 30;
  display: grid;
  gap: 8px;
  justify-self: end;
  width: min(620px, calc(100% - clamp(20px, 2.3vw, 28px)));
  max-height: min(520px, calc(100vh - 210px));
  min-width: 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 159, 28, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 159, 28, 0.08), rgba(3, 12, 22, 0) 45%),
    rgb(3, 12, 22);
  box-shadow: inset 3px 0 0 rgba(255, 159, 28, 0.72), 0 16px 32px rgba(0, 0, 0, 0.18);
  animation: playback-alert-slide-in 220ms cubic-bezier(0.2, 0.85, 0.2, 1);
  will-change: transform;
}

.playback-alert-drawer.is-danger {
  border-color: rgba(255, 73, 61, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 73, 61, 0.09), rgba(3, 12, 22, 0) 45%),
    rgb(3, 12, 22);
  box-shadow: inset 3px 0 0 rgba(255, 73, 61, 0.76), 0 16px 32px rgba(0, 0, 0, 0.18);
}

.playback-instrument.is-map-visible .playback-alert-drawer {
  position: static;
  width: 100%;
  max-height: none;
  overflow: visible;
  animation: none;
}

.playback-alert-drawer header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: start;
}

.playback-alert-drawer h3,
.playback-alert-drawer p,
.playback-alert-drawer small {
  margin: 0;
}

.playback-alert-drawer header p,
.playback-alert-list > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.playback-alert-drawer h3 {
  margin-top: 2px;
  color: var(--text);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.08;
}

.playback-alert-drawer header small {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.82);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.playback-alert-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.playback-alert-close::before,
.playback-alert-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.playback-alert-close::before {
  transform: rotate(45deg);
}

.playback-alert-close::after {
  transform: rotate(-45deg);
}

.playback-alert-close:hover,
.playback-alert-close:focus-visible,
.playback-alert-jump:hover,
.playback-alert-jump:focus-visible {
  border-color: rgba(47, 136, 255, 0.74);
  background: rgba(47, 136, 255, 0.16);
  outline: none;
}

.playback-alert-body {
  color: #dce7f3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.playback-alert-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: baseline;
  min-width: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(139, 178, 217, 0.13);
  border-bottom: 1px solid rgba(139, 178, 217, 0.13);
}

.playback-alert-evidence-title,
.playback-alert-evidence b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.playback-alert-evidence ul {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.playback-alert-evidence li {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  color: #dce7f3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.playback-alert-evidence li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.playback-alert-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.playback-alert-list ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.playback-alert-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
  color: #dce7f3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
}

.playback-alert-list b {
  color: var(--amber);
  font-size: 9px;
  font-weight: 900;
}

.playback-alert-list b.is-high {
  color: var(--red);
}

.playback-alert-list b.is-medium {
  color: var(--amber);
}

.playback-alert-list b.is-low {
  color: var(--muted);
}

.playback-alert-drawer footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.playback-alert-jump {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.playback-alert-drawer footer span {
  color: rgba(170, 183, 199, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes playback-alert-slide-in {
  from {
    transform: translate3d(calc(100% + 18px), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.playback-monitor-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(420px, 2fr) minmax(140px, 0.72fr);
  gap: 5px;
  align-items: stretch;
  min-width: 0;
}

.playback-monitor-grid.is-multi-engine {
  position: relative;
}

.playback-monitor-grid.is-multi-engine > .playback-engine-view {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.playback-monitor-grid.is-multi-engine > .playback-tile-stack:first-of-type {
  padding-top: 35px;
}

.playback-monitor-grid.is-delta-view > .playback-tile-stack:last-of-type {
  padding-top: 35px;
}

.playback-monitor-grid.is-delta-view > .playback-tile-stack {
  grid-template-rows: minmax(270px, 1fr);
  align-content: stretch;
}

.playback-monitor-grid.is-delta-view .playback-engine-delta-card {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 270px;
}

.playback-engine-view {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 3px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
}

.playback-engine-view span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-engine-view button {
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.playback-engine-view button:hover,
.playback-engine-view button:focus-visible,
.playback-engine-view button.is-active {
  border-color: rgba(47, 136, 255, 0.74);
  background: rgba(47, 136, 255, 0.16);
  outline: none;
}

.playback-tile-stack {
  display: grid;
  gap: 3px;
  align-content: start;
  min-width: 0;
}

.playback-engine-tile-title,
.playback-engine-delta-card {
  min-width: 0;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
}

.playback-engine-tile-title {
  display: grid;
  gap: 1px;
  min-height: 36px;
  padding: 6px 7px;
}

.playback-engine-tile-title span,
.playback-engine-delta-card header span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-engine-tile-title strong,
.playback-engine-delta-card header strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.05;
}

.playback-engine-delta-card {
  display: grid;
  gap: 5px;
  padding: 6px;
}

.playback-engine-delta-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.playback-engine-delta-card > div {
  display: grid;
  gap: 3px;
}

.playback-monitor-grid.is-delta-view .playback-engine-delta-card > div {
  grid-auto-rows: 1fr;
  gap: 6px;
}

.playback-delta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  min-height: 20px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce7f3;
}

.playback-monitor-grid.is-delta-view .playback-delta-row {
  min-height: 34px;
  padding: 5px 7px;
}

.playback-delta-row b {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.playback-delta-row strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.playback-monitor-grid.is-delta-view .playback-delta-row b {
  font-size: 10px;
}

.playback-monitor-grid.is-delta-view .playback-delta-row strong {
  font-size: 13px;
}

.playback-delta-meter {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(216, 232, 248, 0.34) calc(50% - 1px), rgba(216, 232, 248, 0.34) calc(50% + 1px), transparent calc(50% + 1px)),
    rgba(216, 232, 248, 0.11);
}

.playback-monitor-grid.is-delta-view .playback-delta-meter {
  height: 7px;
}

.playback-delta-meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--delta-width, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(85, 169, 255, 0.7), rgba(114, 215, 95, 0.9));
  box-shadow: 0 0 10px rgba(88, 181, 255, 0.18);
}

.playback-delta-row.is-positive .playback-delta-meter i,
.playback-delta-row.is-zero .playback-delta-meter i {
  left: 50%;
}

.playback-delta-row.is-negative .playback-delta-meter i {
  right: 50%;
  background: linear-gradient(90deg, rgba(255, 184, 77, 0.95), rgba(85, 169, 255, 0.65));
}

.playback-delta-row.is-missing .playback-delta-meter i {
  display: none;
}

.playback-delta-row.is-warning .playback-delta-meter i {
  background: linear-gradient(90deg, rgba(255, 132, 38, 0.95), rgba(255, 197, 91, 0.9));
  box-shadow: 0 0 12px rgba(255, 159, 28, 0.26);
}

.playback-delta-row.is-warning {
  color: var(--amber);
  background: rgba(255, 159, 28, 0.1);
}

.playback-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 6px;
  min-height: 44px;
  padding: 4px 6px;
}

.playback-tile span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.playback-tile strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(16px, 1.58vw, 20px);
  line-height: 0.95;
}

.playback-tile em {
  align-self: end;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.playback-tile-meter {
  display: grid;
  grid-column: 1 / -1;
  gap: 1px;
  margin-top: 1px;
}

.playback-tile-meter-track {
  display: grid;
  grid-template-columns: repeat(30, minmax(2px, 1fr));
  gap: 2px;
  height: 3px;
}

.playback-tile-meter-track i {
  min-width: 0;
  border-radius: 1px;
  background: rgba(142, 158, 176, 0.17);
  box-shadow: inset 0 0 0 1px rgba(216, 230, 244, 0.04);
}

.playback-tile-meter-track i.is-active {
  background: linear-gradient(180deg, rgba(99, 172, 255, 0.98), rgba(42, 122, 236, 0.78));
  box-shadow: 0 0 7px rgba(66, 153, 255, 0.23);
}

.playback-tile-meter-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(203, 213, 225, 0.72);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.playback-tile-meter-labels small {
  font-size: inherit;
}

.playback-tile.is-warning {
  border-color: rgba(255, 159, 28, 0.58);
  box-shadow: inset 0 0 22px rgba(255, 159, 28, 0.08);
}

.playback-tile.is-warning .playback-tile-meter-track i.is-active {
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.98), rgba(255, 132, 38, 0.8));
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.24);
}

.playback-cylinder-core {
  display: grid;
  grid-template-rows: minmax(192px, 1fr);
  gap: 4px;
  min-width: 0;
  padding: 6px;
}

.playback-cylinder-core.is-multi-engine {
  grid-template-rows: minmax(192px, 1fr);
}

.playback-monitor-grid.is-delta-view .playback-cylinder-core.is-multi-engine {
  grid-template-rows: minmax(330px, 1fr);
}

.playback-cylinders {
  display: grid;
  grid-template-columns: repeat(var(--playback-cylinder-count, 6), minmax(72px, 1fr));
  gap: clamp(5px, 0.7vw, 8px);
  align-items: stretch;
  min-width: 0;
  min-height: 192px;
}

.playback-engine-cylinder-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  min-width: 0;
}

.playback-engine-cylinder-group {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(168px, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(47, 136, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(5, 14, 24, 0.34);
}

.playback-engine-cylinder-group + .playback-engine-cylinder-group {
  border-left-color: rgba(255, 159, 28, 0.42);
  box-shadow: -7px 0 0 rgba(255, 255, 255, 0.035);
}

.playback-engine-cylinder-group header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 20px;
  padding: 0 30px;
}

.playback-engine-cylinder-group header span {
  display: inline-grid;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  place-items: center;
  min-width: 22px;
  min-height: 18px;
  border: 1px solid rgba(47, 136, 255, 0.34);
  border-radius: 5px;
  background: rgba(47, 136, 255, 0.1);
  color: #9dccff;
  font-size: 10px;
  font-weight: 900;
}

.playback-engine-cylinder-group header strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-engine-cylinder-group .playback-cylinders {
  grid-template-columns: repeat(var(--playback-cylinder-count, 6), minmax(44px, 1fr));
  min-height: 168px;
}

.playback-monitor-grid.is-delta-view .playback-engine-cylinder-group {
  grid-template-rows: auto minmax(306px, 1fr);
}

.playback-monitor-grid.is-delta-view .playback-engine-cylinder-group .playback-cylinders {
  min-height: 306px;
}

.playback-engine-cylinder-group .playback-cylinder {
  grid-template-rows: 16px minmax(110px, 1fr) 16px;
}

.playback-monitor-grid.is-delta-view .playback-engine-cylinder-group .playback-cylinder {
  grid-template-rows: 18px minmax(248px, 1fr) 18px;
}

.playback-engine-cylinder-group .playback-cylinder-scale {
  min-height: 110px;
}

.playback-monitor-grid.is-delta-view .playback-engine-cylinder-group .playback-cylinder-scale {
  min-height: 248px;
}

.playback-cylinder {
  position: relative;
  display: grid;
  grid-template-rows: 17px minmax(132px, 1fr) 17px;
  gap: 4px;
  height: 100%;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(139, 178, 217, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.playback-cylinder.is-focused {
  border-color: rgba(255, 159, 28, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.18), inset 0 0 24px rgba(255, 159, 28, 0.08);
}

.playback-cylinder.is-hot .playback-cylinder-number {
  color: var(--red);
}

.playback-cylinder-value,
.playback-cylinder-number {
  display: grid;
  place-items: center;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.playback-cylinder-value {
  color: #d7eaff;
  font-size: clamp(11px, 1.1vw, 14px);
}

.playback-cylinder-number {
  color: var(--muted);
  font-size: 13px;
}

.playback-cylinder-scale {
  position: relative;
  min-height: 132px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 26px),
    #07111c;
}

.playback-egt-bar {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 34%;
  min-height: 5%;
  border-radius: 8px 8px 0 0;
  background: #f7fbff;
  box-shadow: 0 0 12px rgba(247, 251, 255, 0.3);
  transition: height 150ms linear;
}

.playback-cht-bar {
  position: absolute;
  right: 10%;
  bottom: 0;
  display: block;
  width: 44%;
  min-height: 5%;
  border-radius: 7px 7px 0 0;
  color: var(--green);
  background: currentColor;
  box-shadow: 0 0 12px rgba(98, 206, 77, 0.46);
  transition: height 180ms linear;
  z-index: 2;
}

.playback-cht-bar.is-yellow {
  color: #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.54);
}

.playback-cht-bar.is-red {
  color: var(--red);
  box-shadow: 0 0 12px rgba(255, 73, 61, 0.58);
}

.playback-cht-bar b {
  position: absolute;
  top: auto;
  bottom: calc(100% + 3px);
  left: 72%;
  right: auto;
  transform: translateX(-50%);
  min-width: 27px;
  padding: 1px 3px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(3, 12, 22, 0.9);
  color: currentColor;
  font-size: clamp(9px, 0.95vw, 12px);
  line-height: 1;
  text-align: center;
  text-shadow: none;
}

.playback-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  justify-self: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 4px;
}

.playback-controls button {
  display: inline-grid;
  place-items: center;
  min-height: 25px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.playback-controls button:hover,
.playback-controls button:focus-visible,
.playback-speed-control button.is-active {
  border-color: rgba(47, 136, 255, 0.74);
  background: rgba(47, 136, 255, 0.16);
}

.playback-controls button:disabled,
.playback-controls button[aria-disabled="true"] {
  border-color: rgba(139, 178, 217, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.playback-controls button:disabled:hover,
.playback-controls button[aria-disabled="true"]:hover {
  border-color: rgba(139, 178, 217, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.playback-icon-button {
  min-width: 43px;
  padding: 0 6px;
}

.playback-play-button {
  min-width: 43px;
  padding: 0 6px;
}

.playback-reset-button {
  min-width: 58px;
  padding: 0 9px;
}

.playback-control-icon {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 18px;
}

.playback-control-icon::before,
.playback-control-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.playback-control-icon-play::before {
  top: 3px;
  left: 6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.playback-control-icon-pause::before,
.playback-control-icon-pause::after {
  top: 3px;
  width: 5px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}

.playback-control-icon-pause::before {
  left: 4px;
}

.playback-control-icon-pause::after {
  right: 4px;
}

.playback-control-icon-previous::before,
.playback-control-icon-next::before {
  top: 2px;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
}

.playback-control-icon-previous::before {
  left: 1px;
}

.playback-control-icon-next::before {
  right: 1px;
}

.playback-control-icon-previous::after {
  top: 3px;
  left: 6px;
  border-top: 6px solid transparent;
  border-right: 10px solid currentColor;
  border-bottom: 6px solid transparent;
}

.playback-control-icon-next::after {
  top: 3px;
  right: 6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.playback-speed-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(36px, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 8px;
}

.playback-speed-control button {
  min-width: 0;
  min-height: 23px;
  padding: 0 5px;
  border-radius: 6px;
}

.playback-map-toggle {
  min-width: 88px;
  min-height: 25px;
  padding: 0 10px;
}

.playback-map-toggle.is-active {
  border-color: rgba(47, 136, 255, 0.74);
  background: rgba(47, 136, 255, 0.16);
}

.playback-trace-stack {
  --playback-trace-scale: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.playback-trace-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.playback-trace-toolbar button {
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 6px;
  background: rgba(5, 17, 29, 0.8);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.playback-trace-toolbar button:hover,
.playback-trace-toolbar button:focus-visible,
.playback-trace-toolbar button.is-active {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.16);
  color: #e8f2ff;
}

.playback-trace-card {
  position: relative;
  display: grid;
  grid-template-rows: auto calc(144px * var(--playback-trace-scale));
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
}

.playback-trace-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 21px;
  padding: 4px 10px 0;
}

.playback-trace-card header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-trace-card header strong {
  color: #dce7f3;
  font-size: 12px;
}

.playback-trace-canvas {
  display: block;
  width: 100%;
  height: calc(144px * var(--playback-trace-scale));
  cursor: pointer;
}

.playback-trace-cursor,
.playback-trace-future {
  position: absolute;
  top: 21px;
  bottom: 18px;
  pointer-events: none;
}

.playback-trace-cursor {
  width: 2px;
  background: rgba(244, 248, 255, 0.94);
  box-shadow: 0 0 12px rgba(244, 248, 255, 0.62);
  z-index: 3;
}

.playback-trace-cursor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.96);
  transform: translateX(-50%);
}

.playback-trace-future {
  background: rgba(0, 0, 0, 0.24);
  z-index: 2;
}

.playback-map-card {
  display: grid;
  grid-template-rows: auto minmax(502px, 76vh);
  min-height: 544px;
  overflow: hidden;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.72);
}

.playback-attitude-card {
  display: grid;
  grid-template-rows: auto minmax(146px, auto);
  overflow: hidden;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(96, 166, 255, 0.18), transparent 58%),
    rgba(3, 12, 22, 0.78);
}

.playback-attitude-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 4px 10px;
  border-bottom: 1px solid rgba(139, 178, 217, 0.14);
  background: rgba(4, 15, 25, 0.72);
}

.playback-attitude-card header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-attitude-card header strong {
  display: block;
  color: #dce7f3;
  font-size: 13px;
  line-height: 1.08;
}

.playback-attitude-body {
  display: grid;
  place-items: center;
  min-height: 146px;
  padding: 6px 10px 8px;
}

.playback-attitude-body.has-tapes {
  grid-template-areas:
    "airspeed attitude altitude verticalSpeed";
  grid-template-columns: 52px minmax(166px, 252px) 58px 58px;
  gap: 7px;
}

.playback-attitude-body.has-tapes.has-env {
  grid-template-areas:
    "airspeed attitude altitude verticalSpeed environment";
  grid-template-columns: 52px minmax(166px, 252px) 58px 58px 154px;
}

.playback-attitude-svg {
  width: min(100%, 300px);
  min-width: 220px;
  height: auto;
  aspect-ratio: 240 / 156;
  filter: drop-shadow(0 11px 22px rgba(0, 0, 0, 0.24));
}

.playback-attitude-body.has-tapes .playback-attitude-svg {
  grid-area: attitude;
  width: min(100%, 252px);
  min-width: 166px;
}

.playback-attitude-tape,
.playback-attitude-tape-placeholder {
  width: 52px;
  min-height: 150px;
}

.playback-attitude-tape.is-airspeed,
.playback-attitude-tape-placeholder.is-airspeed {
  grid-area: airspeed;
}

.playback-attitude-tape.is-altitude,
.playback-attitude-tape-placeholder.is-altitude {
  grid-area: altitude;
  width: 58px;
}

.playback-attitude-tape.is-verticalSpeed,
.playback-attitude-tape-placeholder.is-verticalSpeed {
  grid-area: verticalSpeed;
  width: 58px;
}

.playback-attitude-tape.is-verticalSpeed .playback-attitude-tape-current {
  font-size: 10.4px;
}

.playback-attitude-env-stack {
  grid-area: environment;
  display: grid;
  grid-template-columns: repeat(2, 74px);
  grid-auto-rows: 1fr;
  align-self: stretch;
  width: 154px;
  min-height: 150px;
  gap: 6px;
}

.playback-attitude-env-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  gap: 3px;
  padding: 7px 6px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(9, 24, 38, 0.92), rgba(3, 12, 22, 0.78)),
    rgba(3, 12, 22, 0.74);
}

.playback-attitude-env-card span,
.playback-attitude-env-card small {
  color: rgba(180, 197, 218, 0.82);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-attitude-env-card b {
  color: #eef6ff;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.playback-attitude-tape {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  align-self: stretch;
  gap: 3px;
  padding: 6px 5px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(9, 24, 38, 0.92), rgba(3, 12, 22, 0.78)),
    rgba(3, 12, 22, 0.74);
}

.playback-attitude-tape-label,
.playback-attitude-tape small {
  color: rgba(180, 197, 218, 0.82);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-attitude-tape b {
  line-height: 1;
}

.playback-attitude-tape-current {
  min-width: 38px;
  padding: 3px 4px;
  border: 1px solid rgba(236, 245, 255, 0.35);
  border-radius: 4px;
  background: rgba(2, 8, 14, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 5px 12px rgba(0, 0, 0, 0.26);
  color: #eef6ff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.playback-attitude-tape.is-airspeed .playback-attitude-tape-current,
.playback-attitude-tape.is-altitude .playback-attitude-tape-current {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.playback-attitude-airspeed-window,
.playback-attitude-altitude-window,
.playback-attitude-vs-scale {
  position: relative;
  width: 100%;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(206, 229, 255, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    rgba(0, 7, 14, 0.5);
}

.playback-attitude-airspeed-window::after,
.playback-attitude-altitude-window::after,
.playback-attitude-vs-scale::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.playback-attitude-airspeed-tick,
.playback-attitude-altitude-tick,
.playback-attitude-vs-tick {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(232, 240, 250, 0.86);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.playback-attitude-airspeed-tick,
.playback-attitude-altitude-tick {
  justify-content: flex-end;
  padding-right: 5px;
}

.playback-attitude-airspeed-tick i,
.playback-attitude-altitude-tick i {
  width: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.54);
}

.playback-attitude-airspeed-tick.is-major i,
.playback-attitude-altitude-tick.is-major i {
  width: 15px;
  border-color: rgba(255, 255, 255, 0.82);
}

.playback-attitude-vs-scale {
  overflow: visible;
  width: 38px;
  border-color: transparent;
  background: transparent;
}

.playback-attitude-vs-scale::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  border-left: 2px solid rgba(206, 229, 255, 0.38);
}

.playback-attitude-vs-tick {
  left: 2px;
  right: 2px;
  justify-content: flex-start;
}

.playback-attitude-vs-tick i {
  position: absolute;
  left: 19px;
  width: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.playback-attitude-vs-tick b {
  position: absolute;
  left: 0;
  width: 14px;
  text-align: right;
}

.playback-attitude-vs-tick.is-major i {
  width: 14px;
  border-color: rgba(255, 255, 255, 0.86);
}

.playback-attitude-vs-bar {
  position: absolute;
  left: 26px;
  width: 7px;
  min-height: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #67dbff, #2f9bff);
  box-shadow: 0 0 10px rgba(78, 171, 255, 0.36);
}

.playback-attitude-tape.is-verticalSpeed.is-down .playback-attitude-vs-bar {
  background: linear-gradient(180deg, #ffcb68, #ff8f3d);
  box-shadow: 0 0 10px rgba(255, 159, 61, 0.34);
}

.playback-attitude-frame {
  fill: #06111d;
  stroke: rgba(206, 229, 255, 0.36);
  stroke-width: 2;
}

.playback-attitude-sky {
  fill: #2f9be8;
}

.playback-attitude-ground {
  fill: #92622f;
}

.playback-attitude-horizon-line {
  stroke: rgba(250, 253, 255, 0.92);
  stroke-width: 1.6;
}

.playback-attitude-pitch-tick line {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.playback-attitude-pitch-tick text {
  fill: rgba(255, 255, 255, 0.86);
  font-size: 8.5px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(2, 10, 17, 0.18);
  stroke-width: 0.8px;
}

.playback-attitude-roll-arc,
.playback-attitude-roll-tick {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-linecap: round;
}

.playback-attitude-roll-arc {
  stroke-width: 1.5;
}

.playback-attitude-roll-tick {
  stroke-width: 1.4;
}

.playback-attitude-roll-tick.is-major {
  stroke-width: 2;
}

.playback-attitude-roll-pointer path,
.playback-attitude-aircraft path,
.playback-attitude-aircraft rect {
  fill: #ecf533;
  stroke: rgba(19, 22, 9, 0.72);
  stroke-width: 1.4;
}

.playback-attitude-glass {
  fill: url("#playback-attitude-glass-gradient");
  pointer-events: none;
}

.playback-attitude-instrument-readout text {
  font-weight: 900;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(2, 10, 17, 0.42);
  stroke-width: 1.4px;
}

.playback-attitude-instrument-readout-label {
  fill: rgba(202, 218, 236, 0.72);
  font-size: 5.7px;
}

.playback-attitude-instrument-readout-value {
  fill: #eef6ff;
  font-size: 8.8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.playback-attitude-instrument-readout .is-pitch text {
  text-anchor: start;
}

.playback-attitude-instrument-readout .is-roll text {
  text-anchor: end;
}

.playback-map-column:has(.playback-attitude-card) .playback-map-card {
  grid-template-rows: auto minmax(360px, 1fr);
  min-height: 404px;
}

.playback-map-card.is-empty {
  grid-template-rows: auto auto;
  min-height: 0;
}

.playback-map-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  min-height: 46px;
  padding: 6px 10px 5px;
  border-bottom: 1px solid rgba(139, 178, 217, 0.14);
  background: rgba(4, 15, 25, 0.68);
}

.playback-map-card header span,
.playback-map-status small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-map-card header strong {
  display: block;
  color: #dce7f3;
  font-size: 13px;
}

.playback-map-card header > div:first-child {
  flex: 0 0 auto;
}

.playback-map-status {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.playback-map-header-actions {
  display: flex;
  flex: 1 1 340px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.playback-map-header-separator {
  flex: 0 0 auto;
  width: 1px;
  min-height: 28px;
  align-self: stretch;
  background: rgba(139, 178, 217, 0.3);
}

.playback-map-toolbar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 28px minmax(38px, auto) 28px;
  gap: 3px;
  align-self: stretch;
  padding: 2px;
  border: 1px solid rgba(139, 178, 217, 0.2);
  border-radius: 7px;
  background: rgba(4, 15, 25, 0.7);
}

.playback-map-toolbar button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef6ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.playback-map-toolbar button:hover,
.playback-map-toolbar button:focus-visible {
  border-color: rgba(47, 136, 255, 0.74);
  background: rgba(47, 136, 255, 0.16);
}

.playback-map-status span {
  display: grid;
  gap: 1px;
  flex: 0 0 auto;
  min-width: 56px;
  padding: 3px 6px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 6px;
  background: rgba(4, 15, 25, 0.62);
}

.playback-map-status span.is-phase {
  width: 92px;
}

.playback-map-status span.is-elapsed {
  width: 84px;
}

.playback-map-status span.is-alt {
  width: 72px;
}

.playback-map-status span.is-gs {
  width: 64px;
}

.playback-map-status b {
  overflow: hidden;
  color: #eef6ff;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-map-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.playback-map-canvas {
  position: relative;
  min-height: 502px;
  overflow: hidden;
  background: #101820;
  cursor: grab;
  touch-action: none;
  isolation: isolate;
}

.playback-map-canvas.is-dragging {
  cursor: grabbing;
}

.playback-map-tiles,
.playback-map-route {
  position: absolute;
  inset: 0;
}

.playback-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}

.playback-map-route {
  z-index: 2;
  pointer-events: none;
}

.playback-map-route-shadow,
.playback-map-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playback-map-route-shadow {
  stroke: rgba(1, 8, 14, 0.72);
  stroke-width: 7;
}

.playback-map-route-line {
  stroke: #ffb238;
  stroke-width: 3;
}

.playback-map-route-shadow.is-future,
.playback-map-route-line.is-future {
  opacity: 0.25;
}

.playback-map-route-shadow.is-traveled,
.playback-map-route-line.is-traveled {
  opacity: 1;
}

.playback-map-marker,
.playback-map-current {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.playback-map-marker {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(1, 8, 14, 0.48);
}

.playback-map-marker.is-start {
  background: #41c75b;
}

.playback-map-marker.is-end {
  background: #f05a4f;
}

.playback-map-current {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 18px solid #276ee8;
  border-left: 8px solid transparent;
  filter: drop-shadow(0 2px 6px rgba(1, 8, 14, 0.55));
  transform: translate(-50%, -50%) rotate(var(--track-heading, 0deg));
  transform-origin: 50% 62%;
}

.playback-map-attribution {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 5;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2933;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 1180px) {
  .playback-shell-panel:has(.playback-instrument.is-map-visible) {
    overflow: visible;
  }

  .playback-instrument.is-map-visible {
    grid-template-columns: minmax(650px, 1.14fr) minmax(380px, 0.74fr);
    align-items: start;
    overflow: visible;
  }

  .playback-instrument.is-map-visible .playback-map-column {
    position: sticky;
    top: 14px;
    align-self: start;
  }

  .playback-instrument.is-map-visible .playback-map-card {
    grid-template-rows: auto minmax(502px, calc(100vh - 120px));
    min-height: max(544px, calc(100vh - 72px));
  }

  .playback-instrument.is-map-visible .playback-map-column:has(.playback-attitude-card) .playback-map-card {
    grid-template-rows: auto minmax(360px, calc(100vh - 308px));
    min-height: max(404px, calc(100vh - 260px));
  }

  .playback-instrument.is-map-visible .playback-map-canvas {
    min-height: 502px;
  }

  .playback-instrument.is-map-visible .playback-monitor-grid {
    grid-template-columns: minmax(120px, 0.72fr) minmax(0, 2fr) minmax(120px, 0.72fr);
  }

  .playback-instrument.is-map-visible .playback-engine-cylinder-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .playback-instrument.is-map-visible .playback-cylinder-core {
    overflow: hidden;
  }

  .playback-instrument.is-map-visible .playback-cylinders {
    grid-template-columns: repeat(var(--playback-cylinder-count, 6), minmax(54px, 1fr));
    gap: clamp(4px, 0.55vw, 8px);
  }

  .playback-instrument.is-map-visible .playback-cylinder {
    padding: 5px;
  }

  .playback-instrument.is-map-visible .playback-cht-bar b {
    min-width: 26px;
    padding-inline: 3px;
    font-size: clamp(9px, 0.8vw, 12px);
  }
}

.playback-timeline {
  position: relative;
  display: grid;
  min-height: calc(43px + var(--playback-findings-row-height, 29px));
  margin-top: 10px;
  padding: 4px;
}

.playback-timeline-frame {
  display: grid;
  grid-template-columns: minmax(118px, 136px) minmax(0, 1fr);
  overflow: visible;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 28, 40, 0.7), rgba(2, 9, 16, 0.72)),
    rgba(3, 12, 22, 0.88);
}

.playback-timeline-labels,
.playback-timeline-body {
  display: grid;
  grid-template-rows: 17px var(--playback-findings-row-height, 29px) 23px;
}

.playback-timeline-labels {
  border-right: 1px solid rgba(139, 178, 217, 0.2);
  background: rgba(4, 15, 25, 0.82);
}

.playback-timeline-labels > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(139, 178, 217, 0.16);
  color: #5da6ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-timeline-labels > span:nth-child(2) {
  position: relative;
  color: #5da6ff;
}

.playback-findings-label {
  gap: 5px;
}

.playback-findings-label > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-finding-navigation {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 1px;
}

.playback-finding-nav-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5da6ff;
  cursor: pointer;
}

.playback-finding-nav-button:hover,
.playback-finding-nav-button:focus-visible {
  background: rgba(47, 136, 255, 0.16);
  color: #8fc3ff;
  outline: 1px solid rgba(74, 155, 255, 0.42);
  outline-offset: 1px;
}

.playback-finding-nav-button:disabled {
  color: rgba(93, 166, 255, 0.36);
  cursor: not-allowed;
  opacity: 0.58;
}

.playback-finding-nav-button .playback-control-icon {
  width: 12px;
  height: 12px;
}

.playback-finding-nav-button .playback-control-icon-previous::before,
.playback-finding-nav-button .playback-control-icon-next::before {
  display: none;
}

.playback-finding-nav-button .playback-control-icon-previous::after {
  top: 1px;
  left: 2px;
  border-top-width: 5px;
  border-right-width: 7px;
  border-bottom-width: 5px;
}

.playback-finding-nav-button .playback-control-icon-next::after {
  top: 1px;
  right: 2px;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 7px;
}

.playback-timeline-labels .playback-engine-track-labels {
  position: absolute;
  inset: 0 6px 0 auto;
  right: 6px;
  display: block;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  color: #78b8ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.playback-timeline-labels .playback-engine-track-labels b {
  position: absolute;
  top: var(--playback-engine-track-label-top, 13px);
  right: 0;
  display: flex;
  align-items: center;
  height: 13px;
  max-width: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-timeline-labels > span:last-child {
  border-bottom: 0;
}

.playback-timeline-body {
  position: relative;
  min-width: 0;
}

.playback-timeline-row,
.playback-ruler-row {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(139, 178, 217, 0.16);
}

.playback-ruler-row {
  overflow: visible;
  border-bottom: 0;
  background: rgba(1, 8, 14, 0.58);
}

.playback-phase-row {
  background: rgba(255, 255, 255, 0.03);
}

.playback-findings-row {
  background: rgba(3, 15, 24, 0.62);
}

.playback-phase-band,
.playback-marker {
  position: absolute;
}

.playback-phase-band {
  top: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(236, 244, 255, 0.84);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.9;
}

.playback-phase-band b {
  min-width: 0;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-phase-band.is-compact b {
  opacity: 0;
}

.playback-marker {
  top: 50%;
  width: 10px;
  height: 10px;
  min-height: 0;
  margin: -5px 0 0 -5px;
  padding: 0;
  border: 1px solid rgba(74, 155, 255, 0.82);
  border-radius: 2px;
  background: rgba(47, 136, 255, 0.78);
  cursor: pointer;
  transform: rotate(45deg);
  z-index: 8;
}

.playback-marker.is-finding {
  background: rgba(47, 136, 255, 0.78);
  border-color: rgba(74, 155, 255, 0.92);
}

.playback-marker.is-anomaly {
  background: var(--red);
  border: 0;
  border-radius: 999px;
  width: 4px;
  height: 14px;
  margin: -7px 0 0 -2px;
  box-shadow: 0 0 10px rgba(255, 73, 61, 0.38);
  transform: none;
}

.playback-marker.is-anomaly.is-review {
  background: rgba(255, 159, 28, 0.92);
  width: 3px;
  height: 12px;
  margin: -6px 0 0 -1.5px;
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.32);
}

.playback-marker.is-anomaly::before {
  content: "";
  position: absolute;
  inset: -7px;
}

.playback-condition-band {
  position: absolute;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 11px;
  min-width: 8px;
  padding: 0 7px 0 18px;
  border: 1px solid rgba(255, 159, 28, 0.62);
  border-radius: 4px;
  background: rgba(255, 159, 28, 0.16);
  color: #ffd166;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  z-index: 6;
}

.playback-condition-band.is-label-hidden {
  z-index: 5;
  padding: 0;
  opacity: 0.68;
}

.playback-condition-band span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.playback-findings-row .playback-marker {
  top: 7px;
}

.playback-condition-band:hover,
.playback-condition-band:focus-visible {
  border-color: rgba(255, 209, 102, 0.92);
  background: rgba(255, 159, 28, 0.26);
  outline: none;
}

.playback-condition-band.is-sensors {
  border-color: rgba(74, 155, 255, 0.68);
  background: rgba(47, 136, 255, 0.17);
  color: #9fc8ff;
}

.playback-condition-band.is-danger {
  border-color: rgba(255, 73, 61, 0.78);
  background: rgba(255, 73, 61, 0.22);
  color: #ffb4ad;
}

.playback-marker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
}

.playback-ruler-tick {
  position: absolute;
  top: 0;
  width: 1px;
  background: rgba(139, 178, 217, 0.18);
}

.playback-ruler-tick.is-minor {
  height: 8px;
}

.playback-ruler-tick.is-major {
  height: 13px;
  background: rgba(139, 178, 217, 0.28);
}

.playback-ruler-tick b {
  position: absolute;
  top: 14px;
  left: 50%;
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.playback-ruler-tick.is-first b {
  left: 0;
  transform: none;
}

.playback-ruler-tick.is-last b {
  left: auto;
  right: 0;
  transform: none;
}

.playback-timeline-cursor {
  position: absolute;
  top: -6px;
  bottom: 8px;
  left: var(--playback-handle-left, -999px);
  width: 2px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: translateX(-1px);
  z-index: 7;
}

.playback-timeline-cursor::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 23px;
  left: 0;
  width: 2px;
  background: #f4f8ff;
  box-shadow: 0 0 14px rgba(244, 248, 255, 0.72);
}

.playback-timeline-cursor::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(61, 149, 255, 0.95);
  border-radius: 999px;
  background: #dce7f3;
  box-shadow: 0 0 12px rgba(61, 149, 255, 0.72);
  cursor: ew-resize;
  pointer-events: auto;
  transform: translateX(-50%);
}

.playback-timeline-handle {
  position: absolute;
  top: -13px;
  left: var(--playback-handle-left, -999px);
  z-index: 12;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}

.playback-timeline-handle:active {
  cursor: pointer;
}

.playback-timeline-handle:focus-visible {
  outline: 2px solid rgba(61, 149, 255, 0.95);
  outline-offset: 2px;
}

.playback-timeline-cursor span {
  position: absolute;
  bottom: 4px;
  left: 50%;
  color: #3d95ff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(61, 149, 255, 0.32);
  transform: translateX(-50%);
}

.playback-scrubber {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  opacity: 0.001;
  pointer-events: none;
}

.playback-scrubber::-webkit-slider-thumb {
  width: 24px;
  height: 48px;
}

.playback-empty {
  margin: 0;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-weight: 800;
}

.explorer-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 12px 14px 14px;
}

.explorer-panel.is-ask-open {
  grid-template-columns: minmax(0, 1fr) clamp(400px, 31vw, 520px);
  grid-template-rows: auto auto auto auto;
  column-gap: 6px;
  row-gap: 6px;
}

.explorer-panel.is-ask-open > .panel-header,
.explorer-panel.is-ask-open > .special-tests-panel,
.explorer-panel.is-ask-open .explorer-ask-main {
  grid-column: 1;
}

.explorer-panel.is-ask-open > .panel-header {
  grid-row: 1;
}

.explorer-panel.is-ask-open > .special-tests-panel {
  grid-row: 2;
}

.explorer-panel.is-ask-open > .explorer-ask-layout {
  display: contents;
}

.explorer-panel.is-ask-open .explorer-ask-main {
  grid-row: 3;
}

.explorer-panel.is-ask-open .explorer-ask-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.explorer-panel.is-ask-open > .marker-detail {
  grid-column: 1 / -1;
  grid-row: 4;
}

.explorer-panel .panel-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-self: stretch;
  width: 100%;
  align-items: start;
  justify-content: stretch;
  margin-bottom: 0;
}

.explorer-panel .eyebrow {
  margin-bottom: 3px;
  font-size: 12px;
}

.explorer-panel .chart-actions {
  gap: 8px;
  max-width: 100%;
  justify-content: flex-end;
}

.explorer-panel .chart-actions .secondary-action,
.explorer-panel .chart-actions select {
  min-height: 32px;
  padding: 0 10px;
}

.chart-height-toggle {
  display: inline-flex;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 7px;
  background: rgba(5, 12, 22, 0.42);
}

.explorer-panel .chart-actions .explorer-toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(139, 178, 217, 0.2);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(220, 231, 243, 0.9);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.explorer-panel .chart-actions .explorer-toolbar-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.84;
}

.explorer-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.explorer-toolbar-divider {
  flex: none;
  width: 1px;
  height: 22px;
  background: rgba(139, 178, 217, 0.26);
}

.explorer-panel .chart-actions .explorer-toolbar-button .explorer-toolbar-caret {
  width: 11px;
  height: 11px;
  margin-left: -1px;
  opacity: 0.55;
  transition: transform 0.16s ease;
}

.explorer-panel .chart-actions .explorer-toolbar-button[aria-expanded="true"] .explorer-toolbar-caret {
  transform: rotate(180deg);
}

.explorer-panel .chart-actions .explorer-toolbar-button.is-active svg {
  opacity: 1;
}

.explorer-panel .chart-actions #explorerAskToggle {
  position: relative;
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(86, 168, 255, 0.64);
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.3), rgba(88, 208, 255, 0.13)),
    rgba(6, 18, 32, 0.82);
  color: #f3fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(88, 208, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.explorer-panel .chart-actions #explorerAskToggle svg {
  color: #78d8ff;
  opacity: 1;
}

.explorer-panel .chart-actions #explorerAskToggle::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  border: 1px solid rgba(88, 208, 255, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.explorer-panel .chart-actions #explorerAskToggle:hover,
.explorer-panel .chart-actions #explorerAskToggle:focus-visible {
  border-color: rgba(120, 216, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.44), rgba(88, 208, 255, 0.18)),
    rgba(8, 23, 42, 0.92);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(88, 208, 255, 0.24),
    0 0 22px rgba(47, 136, 255, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.explorer-panel .chart-actions #explorerAskToggle:hover::after,
.explorer-panel .chart-actions #explorerAskToggle:focus-visible::after,
.explorer-panel .chart-actions #explorerAskToggle.is-active::after {
  opacity: 1;
}

.explorer-panel .chart-actions #explorerAskToggle.is-active {
  border-color: rgba(120, 216, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(42, 131, 255, 0.62), rgba(88, 208, 255, 0.24)),
    rgba(8, 25, 48, 0.98);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(120, 216, 255, 0.56),
    0 0 0 1px rgba(120, 216, 255, 0.24),
    0 0 26px rgba(47, 136, 255, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

.chart-height-toggle .secondary-action {
  min-height: 30px;
  border-width: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
  box-shadow: none;
}

.chart-height-toggle .secondary-action:first-child {
  border-radius: 6px 0 0 6px;
}

.chart-height-toggle .secondary-action:last-child {
  border-radius: 0 6px 6px 0;
}

.chart-height-toggle .secondary-action + .secondary-action {
  border-left: 1px solid rgba(139, 178, 217, 0.18);
}

.chart-height-toggle .secondary-action:hover,
.chart-height-toggle .secondary-action:focus-visible {
  background: rgba(47, 136, 255, 0.11);
  color: #eef6ff;
}

.chart-height-toggle .secondary-action[aria-pressed="true"] {
  background: rgba(47, 136, 255, 0.2);
  color: #e8f2ff;
  box-shadow: inset 0 0 0 1px rgba(104, 166, 255, 0.42);
}

.explorer-panel .chart-actions .secondary-action:hover,
.explorer-panel .chart-actions .secondary-action:focus-visible {
  border-color: rgba(139, 178, 217, 0.38);
  background: rgba(47, 136, 255, 0.12);
  color: #e8f2ff;
}

.explorer-controls {
  max-width: 100%;
  margin-bottom: 0;
  min-width: 0;
}

.explorer-series-drawer {
  margin: 0;
  min-width: 0;
}

.explorer-series-drawer summary {
  width: fit-content;
  max-width: 100%;
}

.explorer-controls.series-control-groups {
  gap: 6px;
}

.explorer-controls .series-control-group {
  gap: 3px;
}

.explorer-controls .series-control-heading {
  font-size: 10px;
}

.explorer-controls .series-control-subgroups {
  gap: 5px;
}

.explorer-controls .series-control-subgroup {
  gap: 3px;
}

.explorer-controls .series-control-subheading {
  font-size: 11px;
}

.explorer-controls .series-control-items {
  gap: 5px 12px;
}

.explorer-controls label {
  gap: 6px;
  font-size: 13px;
  line-height: 1.1;
}

.explorer-controls input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.explorer-chart-wrap {
  --explorer-chart-height: clamp(360px, 54vh, 615px);
  height: var(--explorer-chart-height);
  min-height: 0;
  --chart-gesture-top: 42px;
}

.explorer-chart-wrap[data-has-split="true"] {
  --explorer-chart-height: clamp(450px, 67.5vh, 769px);
}

.explorer-chart-wrap[data-height-mode="tall"] {
  --explorer-chart-height: clamp(468px, 70.2vh, 800px);
}

.explorer-chart-wrap[data-height-mode="tall"][data-has-split="true"] {
  --explorer-chart-height: clamp(585px, 87.75vh, 1000px);
}

.explorer-chart-wrap canvas {
  display: block;
  height: 100%;
}

.explorer-ask-annotation-overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.explorer-ask-annotation-overlay.is-active {
  cursor: crosshair;
  pointer-events: auto;
  touch-action: none;
}

.explorer-ask-annotation-overlay.is-pan-ready {
  cursor: grab;
}

.explorer-ask-annotation-overlay.is-panning {
  cursor: grabbing;
}

.explorer-chart-wrap.is-ask-annotating #explorerChart {
  cursor: crosshair;
}

.explorer-panel.is-ask-open .explorer-chart-wrap {
  border-color: rgba(88, 208, 255, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(88, 208, 255, 0.12),
    0 0 0 1px rgba(88, 208, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.explorer-ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.explorer-ask-layout.is-ask-open {
  grid-template-columns: minmax(0, 1fr) clamp(400px, 31vw, 520px);
}

.explorer-ask-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.explorer-ask-panel[hidden] {
  display: none;
}

.explorer-ask-panel {
  position: sticky;
  top: calc(var(--sticky-table-header-top, 76px) + 10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 9px;
  height: 100%;
  max-height: min(760px, calc(100vh - var(--sticky-table-header-top, 76px) - 28px));
  min-width: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 12px;
  border: 1px solid rgba(88, 208, 255, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 136, 255, 0.28), transparent 30%),
    radial-gradient(circle at 0 0, rgba(88, 208, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 37, 64, 0.98), rgba(5, 13, 22, 0.97)),
    rgba(5, 13, 22, 0.94);
  box-shadow:
    inset 4px 0 0 rgba(120, 216, 255, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(88, 208, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.explorer-ask-panel > * {
  flex: 0 0 auto;
}

.explorer-ask-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  margin: -4px -4px 0;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(120, 216, 255, 0.17);
  background:
    linear-gradient(90deg, rgba(88, 208, 255, 0.09), rgba(47, 136, 255, 0.1), transparent 72%);
  border-radius: 7px 7px 0 0;
}

.explorer-ask-panel h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(88, 208, 255, 0.22);
}

.explorer-ask-close {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.explorer-ask-close svg {
  width: 15px;
  height: 15px;
  color: #dce7f3;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.explorer-ask-selection {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(139, 178, 217, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.028)),
    rgba(8, 21, 34, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.explorer-ask-selection span,
.explorer-ask-form label,
.explorer-ask-citations span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.explorer-ask-selection-top {
  display: grid;
  gap: 4px;
}

.explorer-ask-selection-top.is-unavailable strong {
  color: #ffd9d6;
}

.explorer-ask-selection strong {
  color: #eaf3ff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.explorer-ask-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.explorer-ask-selection-grid > div,
.explorer-ask-selection-note {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(139, 178, 217, 0.1);
  border-radius: 7px;
  background: rgba(3, 10, 18, 0.34);
}

.explorer-ask-selection small {
  min-width: 0;
  color: #b7c5d5;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.explorer-ask-annotate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: start;
  padding: 4px;
  border: 1px solid rgba(139, 178, 217, 0.13);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.36);
}

.explorer-ask-annotate-row .secondary-action {
  min-height: 30px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.explorer-ask-annotate-row .secondary-action:disabled,
.explorer-ask-annotate-row .secondary-action:disabled:hover,
.explorer-ask-annotate-row .secondary-action:disabled:focus-visible {
  border-color: transparent;
  background: transparent;
  color: rgba(220, 231, 243, 0.46);
  cursor: not-allowed;
  filter: none;
  outline: none;
}

.explorer-ask-annotate-toggle,
.explorer-ask-annotate-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
}

.explorer-ask-annotate-toggle svg,
.explorer-ask-annotate-arrow svg {
  width: 15px;
  height: 15px;
  color: var(--ask-pen-color, currentColor);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explorer-ask-annotate-toggle.is-active,
.explorer-ask-annotate-arrow.is-active {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.explorer-ask-annotate-undo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.explorer-ask-annotate-undo svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explorer-ask-color-palette {
  display: inline-grid;
  grid-template-columns: repeat(4, 21px);
  gap: 4px;
  align-items: center;
  padding: 0 2px;
}

.explorer-ask-color-swatch {
  position: relative;
  width: 21px;
  min-width: 21px;
  height: 21px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(139, 178, 217, 0.32);
  border-radius: 5px;
  background: var(--ask-swatch-color);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.explorer-ask-color-swatch.is-white {
  --ask-swatch-color: #ffffff;
}

.explorer-ask-color-swatch.is-yellow {
  --ask-swatch-color: #ffd166;
}

.explorer-ask-color-swatch.is-cyan {
  --ask-swatch-color: #5eead4;
}

.explorer-ask-color-swatch.is-magenta {
  --ask-swatch-color: #e879f9;
}

.explorer-ask-color-swatch.is-active,
.explorer-ask-color-swatch[aria-pressed="true"] {
  border-width: 2px;
  border-color: #ffffff;
  box-shadow:
    0 0 0 2px rgba(2, 9, 16, 0.96),
    0 0 0 4px rgba(47, 136, 255, 0.58),
    inset 0 0 0 1px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.explorer-ask-color-swatch:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.explorer-ask-color-swatch:hover:not(:disabled),
.explorer-ask-color-swatch:focus-visible {
  border-color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.explorer-ask-annotate-row .secondary-action:hover,
.explorer-ask-annotate-row .secondary-action:focus-visible {
  border-color: rgba(139, 178, 217, 0.24);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.explorer-ask-form {
  display: grid;
  gap: 7px;
}

.explorer-ask-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid rgba(139, 178, 217, 0.22);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.explorer-ask-form textarea:focus {
  border-color: rgba(47, 136, 255, 0.68);
  background: rgba(2, 9, 16, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.14);
}

.explorer-ask-form .primary-action {
  min-height: 40px;
  font-size: 13px;
  font-weight: 900;
}

.explorer-ask-question-meta {
  display: flex;
  justify-content: flex-end;
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.explorer-ask-question-meta span.is-near-limit {
  color: #ffd166;
}

.explorer-ask-question-meta span.is-at-limit {
  color: #ff9f1c;
}

.explorer-ask-answer {
  display: grid;
  flex: 0 0 auto;
  min-height: 112px;
  align-content: start;
}

.explorer-ask-save-row {
  display: grid;
  grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.explorer-ask-save-row .secondary-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.explorer-ask-save-row .secondary-action:not(:disabled) {
  border-color: rgba(138, 184, 255, 0.5);
  background: rgba(47, 136, 255, 0.14);
  color: #edf6ff;
}

.explorer-ask-save-status {
  min-width: 0;
  color: #9fb0c2;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.explorer-ask-save-status.is-saved {
  color: #8bd8d4;
}

.explorer-ask-save-status.is-error {
  color: #ffd9d6;
}

.explorer-ask-answer-card,
.explorer-ask-loading,
.explorer-ask-error,
.explorer-ask-empty {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.explorer-ask-answer-card {
  display: grid;
  gap: 10px;
  align-self: start;
}

.explorer-ask-answer-section {
  display: grid;
  gap: 4px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(139, 178, 217, 0.1);
}

.explorer-ask-answer-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.explorer-ask-answer-section h3 {
  margin: 0;
  color: #8bd8d4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.explorer-ask-answer-card p,
.explorer-ask-answer-section p {
  margin: 0;
  color: #dce7f3;
  font-size: 14px;
  line-height: 1.48;
}

.explorer-ask-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 4px;
}

.explorer-ask-citations b {
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(139, 178, 217, 0.11);
  color: #d8e7f8;
  font-size: 10px;
  line-height: 1;
}

.explorer-ask-loading,
.explorer-ask-empty {
  display: grid;
  gap: 4px;
  min-height: 100px;
  align-content: center;
  justify-items: start;
  color: #b7c5d5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.explorer-ask-empty strong {
  color: #dce7f3;
  font-size: 13px;
  line-height: 1.25;
}

.explorer-ask-empty small {
  max-width: 100%;
  color: #92a5b9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.explorer-ask-error {
  color: #ffd9d6;
  border-color: rgba(255, 73, 61, 0.34);
  background: rgba(255, 73, 61, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.explorer-ask-limit-notice {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 13px 14px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-left: 3px solid rgba(245, 158, 11, 0.88);
  border-radius: 8px;
}

.explorer-ask-limit-notice .ai-summary-limit-icon {
  width: 38px;
  height: 38px;
}

.explorer-ask-limit-notice .ai-summary-limit-icon svg {
  width: 26px;
  height: 26px;
}

.explorer-ask-limit-notice .ai-summary-limit-eyebrow {
  margin-bottom: 3px;
  font-size: 10px;
}

.explorer-ask-limit-notice .ai-summary-limit-copy h3 {
  font-size: 16px;
}

.explorer-ask-limit-notice .ai-summary-limit-copy > p:not(.ai-summary-limit-eyebrow) {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.42;
}

.explorer-ask-limit-notice .ai-summary-limit-renewal {
  margin-top: 5px;
  font-size: 11px;
}

.explorer-ask-limit-notice .ai-summary-limit-usage {
  display: none;
}

.explorer-ask-warning {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: 8px;
  color: #ffe9b3;
  background: rgba(245, 197, 66, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.explorer-ask-saved-list:empty {
  display: none;
}

.explorer-ask-saved-inner {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(139, 178, 217, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.explorer-ask-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.explorer-ask-saved-heading span {
  color: rgba(170, 183, 199, 0.92);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.explorer-ask-saved-heading strong {
  color: #dce7f3;
  font-size: 11px;
  font-weight: 900;
}

.explorer-ask-saved-items {
  display: grid;
  gap: 6px;
}

.explorer-ask-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: stretch;
}

.explorer-ask-saved-load {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.034);
  color: #dce7f3;
  text-align: left;
}

.explorer-ask-saved-load:hover,
.explorer-ask-saved-load:focus-visible,
.explorer-ask-saved-item.is-selected .explorer-ask-saved-load {
  border-color: rgba(45, 212, 191, 0.46);
  background: rgba(45, 212, 191, 0.08);
  outline: none;
}

.explorer-ask-saved-load strong,
.explorer-ask-saved-load span,
.explorer-ask-saved-load small,
.explorer-ask-saved-load em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.explorer-ask-saved-load strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.explorer-ask-saved-load span {
  color: #c4d2e1;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.explorer-ask-saved-load small,
.explorer-ask-saved-load em {
  color: #9fb0c2;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
}

.explorer-ask-saved-delete {
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.034);
  color: rgba(220, 231, 243, 0.74);
  font-size: 18px;
  line-height: 1;
}

.explorer-ask-saved-delete:hover,
.explorer-ask-saved-delete:focus-visible {
  border-color: rgba(255, 122, 112, 0.42);
  background: rgba(255, 73, 61, 0.1);
  color: #ffd4d1;
  outline: none;
}

.explorer-ask-boundary {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(139, 178, 217, 0.1);
  color: #9fb0c2;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .explorer-panel.is-ask-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-panel.is-ask-open > .panel-header,
  .explorer-panel.is-ask-open > .special-tests-panel,
  .explorer-panel.is-ask-open .explorer-ask-main,
  .explorer-panel.is-ask-open .explorer-ask-panel,
  .explorer-panel.is-ask-open > .marker-detail {
    grid-column: 1;
    grid-row: auto;
  }

  .explorer-ask-layout,
  .explorer-ask-layout.is-ask-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-ask-panel {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

  .explorer-ask-answer {
    min-height: 104px;
  }
}

#explorerChart.is-marking-special-test {
  cursor: ew-resize;
}

#explorerChart.is-marking-pilot-observation {
  cursor: crosshair;
}

#explorerPilotObservationToggle.is-active {
  border-color: rgba(82, 156, 255, 0.74);
  background: rgba(82, 156, 255, 0.18);
  color: #e7f1ff;
}

.pilot-observation-panel {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 8;
  display: grid;
  width: min(560px, calc(100% - 36px));
  max-height: calc(100% - 32px);
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 18px;
  border: 1px solid rgba(82, 156, 255, 0.46);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(29, 50, 76, 0.98), rgba(12, 25, 42, 0.98));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef5ff;
}

.pilot-observation-panel::-webkit-scrollbar {
  display: none;
}

.pilot-observation-panel[hidden] {
  display: none;
}

.pilot-observation-panel > header,
.pilot-observation-panel > footer,
.pilot-observation-panel > footer > div,
.pilot-observation-time-row,
.pilot-observation-saved-heading {
  display: flex;
  align-items: center;
}

.pilot-observation-panel > header {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(139, 178, 217, 0.12);
  background: #1c3451;
}

.pilot-observation-panel h2 {
  margin: 0;
  color: #f6f9ff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.pilot-observation-panel header p {
  margin: 5px 0 0;
  color: #b7c8dc;
  font-size: 12px;
  line-height: 1.35;
}

.pilot-observation-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b9c9da;
  cursor: pointer;
}

.pilot-observation-close:hover,
.pilot-observation-close:focus-visible {
  border-color: rgba(139, 178, 217, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.pilot-observation-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.pilot-observation-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pilot-observation-label {
  color: #dce8f6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-observation-label em {
  color: #8fa4ba;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.pilot-observation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pilot-observation-pills button,
.pilot-observation-reselect {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(139, 178, 217, 0.26);
  border-radius: 999px;
  background: rgba(3, 12, 22, 0.48);
  color: #c6d4e3;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pilot-observation-pills button:hover,
.pilot-observation-pills button:focus-visible,
.pilot-observation-reselect:hover,
.pilot-observation-reselect:focus-visible {
  border-color: rgba(82, 156, 255, 0.7);
  color: #f3f8ff;
}

.pilot-observation-pills button.is-selected,
.pilot-observation-reselect.is-active {
  border-color: rgba(82, 156, 255, 0.88);
  background: #2877d4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pilot-observation-time-row {
  gap: 7px;
}

.pilot-observation-selection {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(139, 178, 217, 0.24);
  border-radius: 9px;
  background: rgba(3, 12, 22, 0.22);
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}

.pilot-observation-selection[data-selection-state="selecting"] {
  border-color: rgba(82, 156, 255, 0.72);
  background: rgba(40, 119, 212, 0.08);
}

.pilot-observation-time-row input,
.pilot-observation-field textarea {
  min-width: 0;
  border: 1px solid rgba(139, 178, 217, 0.28);
  border-radius: 7px;
  outline: none;
  background: rgba(2, 10, 18, 0.68);
  color: #f2f7fd;
  font: inherit;
  font-size: 12px;
}

.pilot-observation-time-row input {
  width: 92px;
  padding: 8px 9px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pilot-observation-time-row input:focus,
.pilot-observation-field textarea:focus {
  border-color: rgba(82, 156, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(82, 156, 255, 0.14);
}

.pilot-observation-time-row input.is-invalid {
  border-color: rgba(255, 105, 97, 0.88);
}

.pilot-observation-reselect {
  margin-left: auto;
  border-radius: 7px;
  white-space: nowrap;
}

.pilot-observation-selecting-prompt {
  margin-left: auto;
  color: #c4d8ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.pilot-observation-selecting-prompt[hidden],
.pilot-observation-reselect[hidden] {
  display: none;
}

.pilot-observation-clear {
  min-height: 32px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #aebfd1;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pilot-observation-clear:hover,
.pilot-observation-clear:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #f3f8ff;
}

.pilot-observation-clear:disabled {
  color: rgba(174, 191, 209, 0.42);
  cursor: default;
}

.pilot-observation-clear:disabled:hover {
  background: transparent;
}

.pilot-observation-field > small,
.pilot-observation-selection > small {
  color: #8fa4ba;
  font-size: 10px;
  line-height: 1.3;
}

.pilot-observation-field textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.4;
}

.pilot-observation-note-count {
  justify-self: end;
}

.pilot-observation-analysis {
  min-height: 44px;
}

.pilot-observation-analysis-empty,
.pilot-observation-analysis-summary {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(139, 178, 217, 0.17);
  border-radius: 8px;
  background: rgba(3, 12, 22, 0.4);
  color: #aebfd1;
  font-size: 11px;
  line-height: 1.4;
}

.pilot-observation-analysis-summary {
  display: grid;
  gap: 4px;
  border-color: rgba(245, 183, 65, 0.36);
  background: rgba(98, 62, 8, 0.2);
}

.pilot-observation-analysis-summary[data-correlation-status="correlated-isolated-egt"],
.pilot-observation-analysis-summary[data-correlation-status="telemetry-match"],
.pilot-observation-analysis-summary[data-correlation-status="power-change-observed"],
.pilot-observation-analysis-summary[data-correlation-status="telemetry-change-observed"] {
  border-color: rgba(245, 183, 65, 0.58);
}

.pilot-observation-analysis-summary strong {
  color: #ffe0a6;
  font-size: 12px;
}

.pilot-observation-analysis-summary span {
  color: #c7d5e3;
}

.pilot-observation-saved-list:empty {
  display: none;
}

.pilot-observation-saved-list {
  display: grid;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
  padding-top: 3px;
  border-top: 1px solid rgba(139, 178, 217, 0.14);
}

.pilot-observation-saved-heading {
  justify-content: space-between;
  padding: 6px 2px 2px;
  color: #aebfd1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pilot-observation-saved-heading strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(82, 156, 255, 0.18);
  color: #dceaff;
}

.pilot-observation-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: stretch;
  border: 1px solid rgba(139, 178, 217, 0.15);
  border-radius: 7px;
  background: rgba(3, 12, 22, 0.34);
}

.pilot-observation-saved-item.is-selected {
  border-color: rgba(82, 156, 255, 0.6);
  background: rgba(82, 156, 255, 0.1);
}

.pilot-observation-saved-item > button:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 9px;
  border: 0;
  background: transparent;
  color: #eef5ff;
  text-align: left;
  cursor: pointer;
}

.pilot-observation-saved-item strong,
.pilot-observation-saved-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-observation-saved-item strong {
  font-size: 11px;
}

.pilot-observation-saved-item span {
  color: #9fb2c6;
  font-size: 10px;
}

.pilot-observation-saved-delete {
  width: 32px;
  border: 0;
  border-left: 1px solid rgba(139, 178, 217, 0.12);
  background: transparent;
  color: #91a5ba;
  cursor: pointer;
}

.pilot-observation-saved-delete:hover,
.pilot-observation-saved-delete:focus-visible {
  background: rgba(255, 105, 97, 0.12);
  color: #ffaaa4;
}

.pilot-observation-panel > footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 178, 217, 0.12);
  background: #0d1a2b;
}

.pilot-observation-panel > footer > div {
  flex: none;
  gap: 8px;
}

.pilot-observation-panel > footer button {
  min-height: 34px;
  padding: 7px 12px;
}

.pilot-observation-save-status {
  min-width: 0;
  color: #9fb2c6;
  font-size: 10px;
  line-height: 1.3;
}

.pilot-observation-panel[data-status="error"] .pilot-observation-save-status {
  color: #ffaaa4;
}

.pilot-observation-panel[data-status="saved"] .pilot-observation-save-status {
  color: #8be0c7;
}

@media (max-width: 760px) {
  .pilot-observation-panel {
    top: 8px;
    right: 8px;
    width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    padding: 14px;
  }

  .pilot-observation-time-row {
    flex-wrap: wrap;
  }

  .pilot-observation-reselect {
    width: auto;
    margin-left: 0;
  }

  .pilot-observation-time-row input {
    flex: 1 1 92px;
  }

  .pilot-observation-reselect {
    flex: 1 1 auto;
  }

  .pilot-observation-panel > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-observation-panel > footer > div {
    justify-content: end;
  }
}

.gami-cursor-time-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  display: grid;
  gap: 2px;
  min-width: 104px;
  padding: 7px 9px;
  border: 1px solid rgba(45, 212, 191, 0.72);
  border-radius: 6px;
  background: rgba(8, 15, 27, 0.95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  color: #eef6ff;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 80ms ease;
}

.gami-cursor-time-tooltip.is-visible {
  opacity: 1;
}

.gami-cursor-time-tooltip strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.gami-cursor-time-tooltip span {
  color: #a8b7c8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.explorer-panel .chart-actions .secondary-action.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(45, 212, 191, 0.15);
  color: #d8fffa;
}

.special-tests-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(4, 13, 22, 0.44);
}

.special-tests-panel[hidden] {
  display: none;
}

.special-tests-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.special-tests-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.special-test-engine-selector[hidden] {
  display: none;
}

.special-test-engine-selector-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow-x: auto;
}

.special-test-engine-selector-inner span,
.special-test-engine-heading span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.special-test-engine-selector-inner span {
  padding: 0 5px;
}

.special-test-engine-selector-inner button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(220, 231, 243, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.special-test-engine-selector-inner button:hover,
.special-test-engine-selector-inner button:focus-visible {
  border-color: rgba(94, 234, 212, 0.38);
  outline: none;
}

.special-test-engine-selector-inner button.is-active {
  border-color: rgba(94, 234, 212, 0.54);
  background: rgba(45, 212, 191, 0.14);
  color: #d8fffa;
}

.gami-sweep-workspace {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 727px);
  gap: 8px;
  align-items: start;
  justify-content: start;
  max-width: 100%;
  width: 100%;
}

.gami-sweep-workspace:has(.special-test-saved-list:not(:empty)) {
  grid-template-columns: minmax(300px, 0.28fr) minmax(520px, 0.48fr) minmax(280px, 0.24fr);
  justify-content: stretch;
}

.gami-sweep-controls,
.gami-sweep-window-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gami-sweep-window-controls {
  grid-template-columns: repeat(2, 150px);
  align-items: end;
  justify-self: start;
  width: 100%;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(139, 178, 217, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.gami-sweep-saved-column {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.gami-sweep-saved-column:has(.special-test-saved-list:empty) {
  display: none;
}

.gami-procedure-panel {
  min-width: 0;
  max-width: 727px;
  width: 100%;
}

.gami-sweep-workspace:has(.special-test-saved-list:not(:empty)) .gami-procedure-panel {
  max-width: none;
}

.gami-procedure-controls-inner {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid rgba(139, 178, 217, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.gami-procedure-controls-inner header {
  display: flex;
  align-items: center;
  min-height: 18px;
  min-width: 0;
}

.gami-procedure-controls-inner header span {
  color: rgba(170, 183, 199, 0.92);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.gami-procedure-cue-layout {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.special-test-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: rgba(220, 231, 243, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.special-test-check[hidden] {
  display: none;
}

.special-test-check input {
  width: 15px;
  height: 15px;
  accent-color: #2dd4bf;
}

.special-test-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.special-test-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.special-test-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(139, 178, 217, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0 10px;
}

.special-test-field input:focus-visible {
  border-color: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
  outline: none;
}

.special-test-field input.is-invalid {
  border-color: rgba(255, 73, 61, 0.72);
  background: rgba(255, 73, 61, 0.08);
}

.special-test-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(104px, 1fr) 72px 30px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 220px;
}

.special-test-actions .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  min-width: 0;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.special-test-actions .secondary-action svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#gamiMarkSweepButton {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(45, 212, 191, 0.13);
  color: #e9fffb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#gamiMarkSweepButton:hover,
#gamiMarkSweepButton:focus-visible {
  border-color: rgba(94, 234, 212, 0.76);
  background: rgba(45, 212, 191, 0.2);
}

#gamiSaveSweepButton:not(:disabled) {
  border-color: rgba(138, 184, 255, 0.5);
  background: rgba(47, 136, 255, 0.14);
  color: #edf6ff;
}

#gamiClearSweepButton {
  min-width: 30px;
  width: 30px;
  padding: 0;
  color: rgba(220, 231, 243, 0.74);
}

#gamiClearSweepButton:hover,
#gamiClearSweepButton:focus-visible {
  border-color: rgba(255, 122, 112, 0.42);
  background: rgba(255, 73, 61, 0.1);
  color: #ffd4d1;
}

.special-test-actions .secondary-action.is-active {
  border-color: rgba(45, 212, 191, 0.72);
  background: rgba(45, 212, 191, 0.16);
  color: #d8fffa;
}

#gamiMarkSweepButton.is-active {
  border-color: rgba(94, 234, 212, 0.95);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.72), rgba(13, 148, 136, 0.62));
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.22),
    0 0 18px rgba(45, 212, 191, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ecfffb;
}

#gamiMarkSweepButton.is-active svg {
  stroke-width: 2.4;
}

#gamiMarkSweepButton.is-active:hover,
#gamiMarkSweepButton.is-active:focus-visible {
  border-color: rgba(153, 246, 228, 1);
  background: linear-gradient(180deg, rgba(70, 230, 211, 0.82), rgba(13, 148, 136, 0.72));
}

.special-test-actions .secondary-action:disabled {
  cursor: not-allowed;
}

.special-test-save-status {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  min-height: 1.1rem;
}

.special-test-save-status.is-saved {
  color: #8ff3e7;
}

.special-test-save-status.is-error {
  color: #ff9a9a;
}

.special-test-save-status:empty {
  display: none;
}

.special-test-result-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
}

.special-test-result {
  min-width: 0;
}

.special-test-saved-list {
  min-width: 0;
}

.special-test-saved-list:empty {
  display: none;
}

.special-test-saved-list-inner {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 2px;
}

.special-test-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.special-test-saved-heading strong {
  color: #cffff8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.special-test-saved-items {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.special-test-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(139, 178, 217, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.026);
}

.special-test-saved-item.is-selected {
  border-color: rgba(94, 234, 212, 0.52);
  background: rgba(94, 234, 212, 0.06);
}

.special-test-saved-load {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.special-test-saved-load:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.72);
  outline-offset: 3px;
}

.special-test-saved-item strong,
.special-test-saved-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-test-saved-item strong {
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.special-test-saved-item span {
  margin-top: 3px;
  color: rgba(170, 183, 199, 0.88);
  font-size: 10px;
  font-weight: 750;
}

.special-test-saved-delete {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 122, 112, 0.34);
  border-radius: 999px;
  background: rgba(255, 73, 61, 0.08);
  color: #ffc0bc;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.special-test-saved-delete:hover,
.special-test-saved-delete:focus-visible {
  border-color: rgba(255, 122, 112, 0.72);
  background: rgba(255, 73, 61, 0.18);
  color: #fff0ee;
}

.special-test-empty {
  margin: 0;
  color: rgba(170, 183, 199, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.special-test-engine-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.special-test-engine-heading strong {
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.special-test-result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.special-test-spread-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 178, 217, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.special-test-spread-hero span,
.special-test-spread-hero small {
  display: block;
  font-weight: 900;
  line-height: 1.15;
}

.special-test-spread-hero span {
  color: rgba(195, 207, 222, 0.88);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.special-test-spread-hero strong {
  display: block;
  margin-top: 3px;
  color: #f7fbff;
  font-size: 28px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.special-test-spread-hero small {
  margin-top: 6px;
  color: rgba(220, 231, 243, 0.88);
  font-size: 11px;
  text-transform: none;
}

.special-test-spread-hero b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.special-test-spread-hero.is-good {
  border-color: rgba(98, 206, 77, 0.46);
  background: linear-gradient(135deg, rgba(28, 96, 49, 0.42), rgba(11, 29, 26, 0.76));
}

.special-test-spread-hero.is-good b {
  background: rgba(98, 206, 77, 0.24);
  color: #dfffd8;
}

.special-test-spread-hero.is-watch {
  border-color: rgba(255, 159, 28, 0.52);
  background: linear-gradient(135deg, rgba(116, 70, 12, 0.42), rgba(24, 22, 18, 0.76));
}

.special-test-spread-hero.is-watch b {
  background: rgba(255, 159, 28, 0.25);
  color: #ffe4b8;
}

.special-test-spread-hero.is-review {
  border-color: rgba(255, 73, 61, 0.5);
  background: linear-gradient(135deg, rgba(126, 35, 31, 0.44), rgba(25, 18, 20, 0.76));
}

.special-test-spread-hero.is-review b {
  background: rgba(255, 73, 61, 0.24);
  color: #ffddd9;
}

.special-test-spread-hero.is-muted {
  border-color: rgba(139, 178, 217, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.special-test-spread-hero.is-muted b {
  background: rgba(139, 178, 217, 0.14);
  color: rgba(220, 231, 243, 0.88);
}

.special-test-spread-strip {
  margin-bottom: 8px;
  padding: 8px 10px 5px;
  border: 1px solid rgba(139, 178, 217, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.special-test-spread-strip header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.special-test-spread-strip header span {
  color: rgba(195, 207, 222, 0.76);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.special-test-spread-strip header small {
  color: rgba(220, 231, 243, 0.52);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.special-test-spread-strip svg {
  display: block;
  width: 100%;
  height: auto;
}

.special-test-result-summary > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.special-test-result-focus {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 0.8fr) minmax(360px, 1.25fr);
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.special-test-result-focus .special-test-spread-hero {
  min-height: 104px;
  margin-bottom: 0;
}

.special-test-result-side {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gami-procedure-cue-row {
  display: grid;
  grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  justify-content: stretch;
  min-width: 0;
  width: 100%;
}

.gami-procedure-cue-help {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid rgba(139, 178, 217, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.014);
  color: rgba(170, 183, 199, 0.9);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.15;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gami-procedure-cue-row button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-width: 112px;
  min-height: 31px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(195, 207, 222, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.gami-procedure-cue-row button:hover,
.gami-procedure-cue-row button:focus-visible {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(94, 234, 212, 0.07);
  outline: none;
}

.gami-procedure-cue-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-style: normal;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.gami-procedure-cue-row strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gami-procedure-cue-row strong {
  color: currentColor;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.gami-procedure-cue-row .is-pass {
  border-color: rgba(94, 234, 212, 0.34);
  background: rgba(45, 212, 191, 0.08);
  color: #dbfffa;
}

.gami-procedure-cue-row .is-pass i {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(45, 212, 191, 0.18);
  color: #bffff6;
}

.gami-procedure-cue-row .is-open i {
  border-color: rgba(139, 178, 217, 0.28);
  background: rgba(139, 178, 217, 0.05);
  color: rgba(220, 231, 243, 0.72);
}

.gami-procedure-cue-row .is-open:hover i,
.gami-procedure-cue-row .is-open:focus-visible i {
  background: rgba(45, 212, 191, 0.18);
  color: #d8fffa;
}

.special-test-exceptions {
  min-width: 0;
  min-height: 104px;
  padding: 9px 10px;
  border: 1px solid rgba(139, 178, 217, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.026);
}

.special-test-exceptions span,
.special-test-diagnostic-readout > span,
.special-test-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.special-test-exceptions ul {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.special-test-exceptions li {
  color: rgba(220, 231, 243, 0.88);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.special-test-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.special-test-metric-card {
  min-width: 0;
  min-height: 62px;
  padding: 7px 8px;
  border: 1px solid rgba(139, 178, 217, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.special-test-metric-card strong {
  display: block;
  margin-top: 4px;
  color: #f4f8ff;
  font-size: 15px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.special-test-metric-card small {
  display: block;
  margin-top: 5px;
  color: rgba(195, 207, 222, 0.86);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.special-test-metric-card.is-good {
  border-color: rgba(98, 206, 77, 0.34);
}

.special-test-metric-card.is-watch {
  border-color: rgba(255, 159, 28, 0.34);
}

.special-test-metric-card.is-review {
  border-color: rgba(255, 73, 61, 0.34);
}

.special-test-diagnostic-readout {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 9px 10px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.04), rgba(255, 255, 255, 0.022));
}

.special-test-diagnostic-readout dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin: 0;
}

.special-test-diagnostic-readout div {
  min-width: 0;
}

.special-test-result-summary span,
.special-test-result-summary small,
.special-test-diagnostic-readout dt,
.special-test-quality-list dt,
.special-test-peak-heading span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.special-test-result-summary strong {
  display: block;
  margin-top: 3px;
  color: #f4f8ff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.special-test-result-summary small {
  margin-top: 4px;
  overflow-wrap: anywhere;
  text-transform: none;
}

.special-test-result-summary.is-good > div {
  border-color: rgba(98, 206, 77, 0.26);
}

.special-test-result-summary.is-watch > div {
  border-color: rgba(45, 212, 191, 0.3);
}

.special-test-result-summary.is-review > div {
  border-color: rgba(255, 159, 28, 0.3);
}

.special-test-quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0 0 8px;
}

.special-test-quality-list > div {
  min-width: 0;
}

.special-test-quality-list dd {
  margin: 2px 0 0;
  color: rgba(220, 231, 243, 0.9);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.special-test-diagnostic-readout dd {
  margin: 2px 0 0;
  color: rgba(220, 231, 243, 0.9);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.special-test-peak-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(139, 178, 217, 0.12);
  border-radius: 7px;
}

.special-test-series-table + .special-test-cylinder-peak-table {
  margin-top: 12px;
}

.special-test-cylinder-peak-table {
  border-top-color: rgba(94, 234, 212, 0.28);
  box-shadow: inset 0 1px 0 rgba(94, 234, 212, 0.14);
}

.special-test-peak-table [role="row"] {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr 1fr minmax(90px, 1.2fr);
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.026);
  color: rgba(220, 231, 243, 0.9);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.special-test-peak-heading[role="row"] {
  min-height: 26px;
  padding-block: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.special-test-peak-table [role="cell"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-test-peak-table [data-gami-series-index] {
  cursor: pointer;
}

.special-test-peak-table [data-gami-series-index]:hover,
.special-test-peak-table [data-gami-series-index]:focus-visible {
  background: rgba(94, 234, 212, 0.09);
  outline: none;
}

.special-test-peak-table [data-gami-series-index].is-selected {
  background: rgba(94, 234, 212, 0.14);
  box-shadow: inset 3px 0 0 rgba(94, 234, 212, 0.78);
}

.special-test-peak-table .is-clear [role="cell"]:last-child {
  color: #d9ffd3;
}

.special-test-peak-table .is-limited [role="cell"]:last-child {
  color: #ffe8bd;
}

.explorer-context-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}

.explorer-timeline {
  min-width: 0;
}

.explorer-timeline .playback-timeline,
.explorer-timeline .playback-timeline-body,
.explorer-timeline .playback-marker,
.explorer-timeline .playback-condition-band {
  cursor: ew-resize;
  touch-action: none;
}

.explorer-timeline .playback-timeline {
  min-height: calc(56px + var(--playback-findings-row-height, 38px));
  padding: 0;
}

.explorer-timeline .playback-timeline-frame {
  height: 100%;
}

.explorer-timeline-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.explorer-timeline .playback-findings-row {
  z-index: 3;
}

.explorer-annunciations {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(139, 178, 217, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 28, 40, 0.72), rgba(2, 9, 16, 0.74)),
    rgba(3, 12, 22, 0.88);
}

.explorer-annunciation-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-width: 0;
}

.explorer-annunciation-header span,
.explorer-annunciation-header small,
.explorer-annunciation-detail header p,
.explorer-annunciation-detail footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.explorer-annunciation-header strong {
  color: #dce7f3;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.explorer-annunciation-header small {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-annunciation-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.explorer-annunciation-chip,
.explorer-annunciation-empty-chip {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 159, 28, 0.38);
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.09);
  color: var(--amber);
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.explorer-annunciation-chip {
  cursor: pointer;
}

.explorer-annunciation-chip:hover,
.explorer-annunciation-chip:focus-visible,
.explorer-annunciation-chip.is-selected {
  border-color: rgba(255, 183, 77, 0.82);
  background: rgba(255, 159, 28, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 159, 28, 0.16), 0 0 16px rgba(255, 159, 28, 0.1);
  outline: none;
}

.explorer-annunciation-chip.is-danger {
  color: #ffd9d6;
  border-color: rgba(255, 73, 61, 0.58);
  background: rgba(255, 73, 61, 0.12);
}

.explorer-annunciation-chip.is-danger:hover,
.explorer-annunciation-chip.is-danger:focus-visible,
.explorer-annunciation-chip.is-danger.is-selected {
  border-color: rgba(255, 103, 94, 0.86);
  background: rgba(255, 73, 61, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 73, 61, 0.16), 0 0 16px rgba(255, 73, 61, 0.12);
}

.explorer-annunciation-empty,
.explorer-annunciation-empty-chip {
  color: rgba(170, 183, 199, 0.82);
}

.explorer-annunciation-empty {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.explorer-annunciation-empty-chip {
  display: inline-flex;
  align-items: center;
  border-color: rgba(139, 178, 217, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.explorer-annunciation-detail {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(540px, 100%);
  max-height: min(420px, calc(100vh - 270px));
  min-width: 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 159, 28, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 159, 28, 0.08), rgba(3, 12, 22, 0) 45%),
    rgb(3, 12, 22);
  box-shadow: inset 3px 0 0 rgba(255, 159, 28, 0.72), 0 16px 32px rgba(0, 0, 0, 0.22);
  animation: playback-alert-slide-in 220ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.explorer-annunciation-detail.is-danger {
  border-color: rgba(255, 73, 61, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 73, 61, 0.09), rgba(3, 12, 22, 0) 45%),
    rgb(3, 12, 22);
  box-shadow: inset 3px 0 0 rgba(255, 73, 61, 0.76), 0 16px 32px rgba(0, 0, 0, 0.22);
}

.explorer-annunciation-detail header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: start;
}

.explorer-annunciation-detail h3 {
  margin: 2px 0 0;
  color: #f4f8ff;
  font-size: 15px;
  line-height: 1.15;
}

.explorer-annunciation-detail small {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.explorer-annunciation-detail > p {
  margin: 0;
  color: #dce7f3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.explorer-annunciation-detail footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.chart-wrap.small {
  min-height: 270px;
}

canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
}

#flightChart {
  display: block;
  height: clamp(320px, 35vw, 420px);
  cursor: crosshair;
}

#flightChart.is-split {
  height: clamp(640px, 70vw, 840px);
}

#explorerChart {
  cursor: crosshair;
}

/* Chart gestures own the touch surface: no page scroll, browser pinch-zoom,
   or long-press callout when a touch starts on a chart canvas. Vertical page
   scroll still works when the touch starts outside the chart. */
#flightChart,
#explorerChart {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#flightChart.is-selecting-region,
#explorerChart.is-selecting-region {
  cursor: crosshair;
}

.chart-actions .secondary-action {
  touch-action: manipulation;
}

.chart-actions .secondary-action.is-active {
  border-color: rgba(45, 212, 191, 0.68);
  background: rgba(45, 212, 191, 0.15);
  color: #d8fffa;
}

/* Tablet: keep the chart controls comfortably finger-sized. */
@media (hover: none) and (pointer: coarse) {
  .chart-actions .secondary-action,
  .explorer-toolbar .explorer-toolbar-button {
    min-height: 44px;
  }
}

#healthGauge {
  flex: 0 0 104px;
  width: 104px;
  max-width: 104px;
  height: 104px;
  max-height: 104px;
}

.insight-column {
  display: grid;
  gap: 14px;
  align-self: start;
  grid-template-rows: minmax(0, 1fr);
  margin-top: var(--overview-review-panel-offset, 0);
  min-height: 0;
}

.finding-panel {
  position: relative;
  min-height: 0;
  overflow: visible;
}

.finding-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--finding-accent, var(--line));
}

.finding-panel.status-green {
  --finding-accent: var(--green);
}

.finding-panel.status-amber {
  --finding-accent: var(--amber);
}

.finding-panel.status-red {
  --finding-accent: var(--red);
}

.finding-panel.status-muted {
  --finding-accent: var(--line);
}

.finding-review-list {
  display: grid;
  gap: 12px;
}

.finding-review-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(93, 119, 145, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(8, 16, 26, 0.5);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.finding-review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--finding-accent, var(--line));
}

.finding-review-card.status-green {
  --finding-accent: var(--green);
}

.finding-review-card.status-amber {
  --finding-accent: var(--amber);
}

.finding-review-card.status-red {
  --finding-accent: var(--red);
}

.finding-review-card.status-muted {
  --finding-accent: var(--line);
}

.operating-context-review-card {
  --finding-accent: var(--teal);
}

.operating-context-purpose {
  color: var(--text-muted);
  font-size: 15px;
}

.finding-review-card.is-selected,
.finding-review-card.is-scroll-target {
  border-color: color-mix(in srgb, var(--finding-accent) 68%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--finding-accent) 10%, transparent), rgba(255, 255, 255, 0.01)),
    rgba(8, 16, 26, 0.58);
}

.finding-review-card.is-review-collapsed {
  display: grid;
  grid-template-columns: minmax(150px, 0.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.finding-review-card.is-review-collapsed .finding-panel-header {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 0;
}

.finding-review-card.is-review-collapsed .finding {
  gap: 4px;
  min-width: 0;
}

.finding-review-card.is-review-collapsed .finding h3 {
  margin-bottom: 0;
}

.finding-review-card.is-review-collapsed .finding-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-review-card.is-review-collapsed .finding-body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.finding-review-card.is-review-collapsed .finding-review-details {
  display: none;
}

.finding-review-details {
  display: grid;
  gap: 0;
}

.finding-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.finding-panel-header .eyebrow {
  margin-bottom: 0;
}

.finding-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.finding {
  display: grid;
  gap: 8px;
}

.finding h3 {
  margin-bottom: 8px;
}

.finding p {
  line-height: 1.5;
}

.finding-panel.is-review-collapsed #findingBody {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.finding-panel.is-review-collapsed .finding-summary-sections,
.finding-panel.is-review-collapsed .finding-evidence,
.finding-panel.is-review-collapsed .evidence-flights,
.finding-panel.is-review-collapsed .cause-list-title,
.finding-panel.is-review-collapsed .cause-list,
.finding-panel.is-review-collapsed .confidence {
  display: none;
}

.finding-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid rgba(255, 159, 28, 0.45);
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.08);
  color: var(--amber);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finding-disclosure-toggle[hidden] {
  display: none;
}

.finding-disclosure-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.finding-disclosure-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.finding-disclosure-toggle:hover,
.finding-disclosure-toggle:focus-visible {
  border-color: var(--amber);
  background: rgba(255, 159, 28, 0.15);
  outline: none;
}

.finding-review-card.is-review-collapsed .finding-disclosure-toggle {
  width: auto;
  min-width: 178px;
  margin-top: 0;
  padding: 0 18px;
  white-space: nowrap;
}

/* Owner review-cue note (issue #240): appended to the bottom of scoring and
   operating-context review cards. */
.review-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* When a scoring card is collapsed it lays its header/body/toggle out in a
   3-column grid; the note must span the full width instead of being squeezed
   into the narrow first column. */
.finding-review-card.is-review-collapsed .review-note {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.review-note-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-note-saved,
.review-note-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-note-saved[hidden],
.review-note-editor[hidden] {
  display: none;
}

.review-note-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-note-saved-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-note-saved-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.review-note-body {
  flex: 1;
  margin: 2px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid rgba(45, 212, 191, 0.55);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.review-note-edit {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.review-note-edit-pencil {
  font-size: 15px;
  line-height: 1;
}

.review-note-edit:hover {
  background: rgba(45, 212, 191, 0.12);
  color: var(--text);
}

.review-note-edit:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 5px;
}

.review-note-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.review-note-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 104px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.review-note-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.review-note-input:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}

.review-note-input:disabled {
  opacity: 0.6;
  cursor: default;
}

.review-note-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.review-note-save-state {
  margin-right: auto;
  font-size: 11px;
  color: var(--muted);
}

.review-note-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.finding-meta.is-list,
.engine-review-meta.is-list {
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.finding-meta-line {
  display: block;
}

.finding-summary-sections {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.finding-summary-sections[hidden] {
  display: none;
}

.finding-summary-sections section {
  display: grid;
  gap: 7px;
}

.finding-summary-sections h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.finding-summary-sections ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #c9d6e4;
  font-size: 13px;
  line-height: 1.4;
}

.finding-evidence {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(47, 136, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.08);
}

.finding-evidence[hidden] {
  display: none;
}

.finding-evidence.is-collapsed {
  gap: 0;
  padding: 0;
  border-color: rgba(47, 136, 255, 0.22);
  background: rgba(47, 136, 255, 0.05);
}

.finding-evidence details {
  padding: 10px 12px;
}

.finding-evidence summary {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.finding-evidence-content {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.finding-evidence h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.finding-evidence dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.finding-evidence dl > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.finding-evidence dt {
  color: var(--muted);
  font-size: 12px;
}

.finding-evidence dt.green {
  color: var(--green);
}

.finding-evidence dt.amber {
  color: var(--amber);
}

.finding-evidence dt.red {
  color: var(--red);
}

.finding-evidence dd {
  margin: 0;
  min-width: 0;
}

.finding-evidence strong,
.finding-evidence span {
  display: block;
}

.finding-evidence strong {
  color: var(--text);
  font-size: 13px;
}

.finding-evidence span {
  margin-top: 2px;
  color: #b8c7d8;
  font-size: 12px;
  line-height: 1.35;
}

.operating-context-event-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.operating-context-event-list h4 {
  margin-top: 2px;
}

.operating-context-event {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.28);
}

.operating-context-event.is-primary {
  border-color: color-mix(in srgb, var(--teal) 48%, rgba(255, 255, 255, 0.14));
  background: color-mix(in srgb, var(--teal) 10%, rgba(3, 10, 18, 0.3));
}

.operating-context-event header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.operating-context-event header strong {
  font-size: 13px;
}

.operating-context-event header span {
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operating-context-event dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px 12px;
}

.operating-context-event dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.operating-context-event dt {
  font-size: 11px;
}

.operating-context-event dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.evidence-flights {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: 8px;
  background: rgba(255, 159, 28, 0.08);
}

.evidence-flights[hidden] {
  display: none;
}

.evidence-flights h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.evidence-flight-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-flight-list li {
  display: block;
}

.evidence-flight-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.evidence-flight-button:hover,
.evidence-flight-button:focus-visible {
  border-color: rgba(255, 159, 28, 0.42);
  background: rgba(255, 159, 28, 0.09);
  outline: none;
}

.evidence-flight-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.evidence-flight-button:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.evidence-flight-list strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.evidence-flight-list em {
  color: var(--amber);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.cause-list-title {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.cause-list-title[hidden] {
  display: none;
}

.cause-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  margin: 0 0 14px;
  list-style: none;
}

.cause-list[hidden] {
  display: none;
}

.cause-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 36px;
  gap: 10px;
  align-items: center;
  color: #dce5ee;
}

.cause-list.is-plain li {
  grid-template-columns: minmax(0, 1fr);
  color: var(--muted);
}

meter {
  width: 100%;
}

.confidence {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric-card {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.82);
}

.metric-card span,
.metric-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.metric-card em {
  margin-top: 6px;
  color: var(--red);
}

.wide-metric {
  grid-column: span 2;
}

.comparison-hero {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 48px minmax(210px, 1fr) minmax(240px, 0.75fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.compare-flight,
.compare-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 51, 0.88);
}

.compare-flight h2 {
  margin-bottom: 8px;
}

.compare-flight p:last-child,
.compare-summary p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.versus {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #101a25;
  color: var(--muted);
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}

.parameter-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.parameter-panel label {
  display: grid;
  gap: 8px;
}

.check-list {
  display: grid;
  gap: 14px;
}

.stacked-charts {
  display: grid;
  gap: 14px;
}

.trend-toolbar {
  display: grid;
  align-items: start;
  gap: 14px;
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.trend-hero-grid .trend-toolbar {
  align-self: start;
  padding: 16px;
}

.trend-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.64fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.trend-hero-grid > .panel {
  min-width: 0;
}

#view-trends {
  position: relative;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

#view-trends.is-plan-gated > :not(.trend-plan-gate) {
  display: none !important;
}

.trend-plan-gate {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 220px;
  padding: 32px clamp(24px, 5vw, 72px);
  border: 1px solid rgba(242, 181, 56, 0.38);
  border-left: 4px solid rgba(242, 181, 56, 0.88);
  border-radius: 8px;
  background: rgba(18, 22, 28, 0.92);
}

.trend-plan-gate[hidden] {
  display: none;
}

.trend-plan-gate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 181, 56, 0.48);
  border-radius: 8px;
  color: #f5d56f;
  background: rgba(242, 181, 56, 0.09);
}

.trend-plan-gate-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-plan-gate-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.trend-plan-gate-copy > span {
  color: #f5d56f;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-plan-gate-copy h2,
.trend-plan-gate-copy p,
.trend-plan-gate-copy small {
  margin: 0;
}

.trend-plan-gate-copy h2 {
  color: #f4f7fb;
  font-size: 27px;
  line-height: 1.15;
}

.trend-plan-gate-copy p {
  color: rgba(229, 236, 245, 0.84);
  font-size: 16px;
  line-height: 1.5;
}

.trend-plan-gate-copy small {
  color: rgba(179, 193, 209, 0.82);
  font-size: 13px;
}

@media (max-width: 640px) {
  .trend-plan-gate {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding: 24px 20px;
  }
}

.trend-visual-workspace {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 136, 255, 0.08), rgba(45, 212, 191, 0.035) 42%, rgba(5, 13, 22, 0.92)),
    rgba(7, 16, 27, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.2);
}

.trend-verdict-band {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.48);
}

.trend-verdict-band.status-green {
  border-color: rgba(98, 206, 77, 0.36);
  background: linear-gradient(135deg, rgba(20, 89, 52, 0.2), rgba(5, 14, 24, 0.6) 58%);
}

.trend-verdict-band.status-amber {
  border-color: rgba(255, 159, 28, 0.26);
  background: linear-gradient(135deg, rgba(109, 72, 18, 0.13), rgba(5, 14, 24, 0.56) 46%);
}

.trend-verdict-band.status-red {
  border-color: rgba(255, 73, 61, 0.3);
  background: linear-gradient(135deg, rgba(111, 30, 30, 0.15), rgba(5, 14, 24, 0.56) 46%);
}

.trend-verdict-band.has-ai-summary-ready {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* One-line verdict ribbon: the fixed-location answer at the top of the page. It
   carries the only page-level severity color; the findings band below the picture
   stays neutral so severity is annunciated once. */
.trend-verdict-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.48);
}

.trend-verdict-ribbon.status-green {
  border-color: rgba(98, 206, 77, 0.34);
  background: rgba(20, 89, 52, 0.12);
}

.trend-verdict-ribbon.status-amber {
  border-color: rgba(255, 159, 28, 0.3);
  background: rgba(109, 72, 18, 0.12);
}

.trend-verdict-ribbon.status-red {
  border-color: rgba(255, 73, 61, 0.38);
  background: rgba(111, 30, 30, 0.14);
}

.trend-verdict-ribbon .engine-status {
  flex: none;
  font-size: 12px;
}

.trend-verdict-ribbon h2 {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 850;
  line-height: 1.3;
}

.trend-verdict-ribbon-meta {
  display: flex;
  gap: 4px 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.trend-verdict-ribbon-meta span:empty {
  display: none;
}

.trend-verdict-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-verdict-meta:empty {
  display: none;
}

.trend-ai-summary-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px 16px 13px;
  border: 1px solid rgba(138, 184, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 33, 47, 0.72), rgba(5, 14, 24, 0.72) 58%),
    rgba(5, 14, 24, 0.64);
}

.trend-ai-summary-card.status-ready {
  position: relative;
  gap: 0;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border-color: rgba(138, 184, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(119, 177, 255, 0.12), transparent 26%, transparent 72%, rgba(119, 177, 255, 0.1)),
    linear-gradient(112deg, rgba(15, 31, 47, 0.94), rgba(6, 17, 29, 0.94) 44%, rgba(6, 19, 32, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.trend-ai-summary-card.status-ready::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(98, 206, 77, 0.8), rgba(255, 73, 61, 0.76) 55%, rgba(138, 184, 255, 0.86));
  opacity: 0.72;
}

.trend-ai-summary-card.status-ready::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(98, 206, 77, 0.72), rgba(138, 184, 255, 0.2) 58%, rgba(138, 184, 255, 0));
}

.trend-ai-summary-card.status-error {
  border-color: rgba(255, 73, 61, 0.34);
}

.trend-ai-summary-card.status-limit {
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: rgba(251, 191, 36, 0.36);
}

.trend-ai-summary-limit-notice {
  border-left-width: 0;
}

.trend-ai-summary-limit-notice .ai-summary-limit-eyebrow span {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(253, 230, 138, 0.34);
  color: rgba(186, 199, 218, 0.84);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.trend-ai-summary-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.trend-ai-summary-header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.trend-ai-summary-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.trend-ai-summary-title-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.trend-ai-summary-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(138, 184, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(47, 136, 255, 0.28), rgba(12, 27, 43, 0.72)),
    rgba(5, 14, 24, 0.62);
  color: rgba(138, 184, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(47, 136, 255, 0.12);
}

.trend-ai-summary-mark svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trend-ai-summary-kicker,
.trend-deterministic-kicker {
  color: rgba(170, 183, 199, 0.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trend-verdict-evidence {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.trend-verdict-evidence:empty {
  display: none;
}

.trend-ai-summary-meta {
  color: rgba(196, 209, 224, 0.84);
  font-size: 11px;
  font-weight: 750;
}

.trend-ai-summary-action {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.trend-ai-summary-header-actions {
  justify-content: flex-end;
}

.trend-ai-summary-toggle {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.trend-ai-summary-collapsed {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 13px 16px 12px;
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 52%);
}

.trend-ai-summary-card.is-collapsed .trend-ai-summary-headline {
  max-width: 72ch;
  font-size: 15px;
}

.trend-ai-summary-command-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  min-width: 0;
}

.trend-ai-summary-lead {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 13px 18px 12px 17px;
  background:
    linear-gradient(90deg, rgba(47, 136, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 52%);
}

.trend-ai-summary-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  color: rgba(196, 209, 224, 0.84);
  font-size: 11px;
  font-weight: 760;
}

.trend-ai-summary-status-strip > span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
}

.trend-ai-summary-headline {
  margin: 0;
  max-width: 48ch;
  color: rgba(245, 248, 255, 0.96);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.18;
}

.trend-ai-summary-overview {
  display: grid;
  gap: 8px;
  margin: 0;
  max-width: 62ch;
  color: rgba(218, 228, 241, 0.9);
  font-size: 12.5px;
  line-height: 1.42;
}

.trend-ai-summary-overview p {
  position: relative;
  margin: 0;
  padding-left: 12px;
}

.trend-ai-summary-overview p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(138, 184, 255, 0.72);
  box-shadow: 0 0 10px rgba(138, 184, 255, 0.36);
}

.trend-ai-summary-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border-left: 1px solid rgba(138, 184, 255, 0.18);
}

.trend-ai-summary-briefing-section {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trend-ai-summary-briefing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.56;
  pointer-events: none;
}

.trend-ai-summary-briefing-section + .trend-ai-summary-briefing-section {
  border-left: 1px solid rgba(138, 184, 255, 0.14);
}

.trend-ai-summary-briefing-section.is-positive {
  color: rgba(98, 206, 77, 0.9);
}

.trend-ai-summary-briefing-section.is-positive::before {
  background: linear-gradient(145deg, rgba(98, 206, 77, 0.12), transparent 48%);
}

.trend-ai-summary-briefing-section.is-watch {
  color: rgba(255, 159, 28, 0.92);
}

.trend-ai-summary-briefing-section.is-watch::before {
  background: linear-gradient(145deg, rgba(255, 159, 28, 0.1), transparent 50%);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch {
  color: rgba(255, 73, 61, 0.94);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch::before {
  background: linear-gradient(145deg, rgba(255, 73, 61, 0.13), transparent 52%);
}

.trend-ai-summary-briefing-section.is-focus {
  color: rgba(138, 184, 255, 0.92);
}

.trend-ai-summary-briefing-section.is-focus::before {
  background: linear-gradient(145deg, rgba(47, 136, 255, 0.14), transparent 48%);
}

.trend-ai-summary-briefing-section h3 {
  margin: 0;
  color: currentColor;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-ai-summary-lane-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.trend-ai-summary-lane-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trend-ai-summary-lane-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.trend-ai-summary-lane-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: currentColor;
  opacity: 0.9;
  background: rgba(5, 14, 24, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(138, 184, 255, 0.08);
}

.trend-ai-summary-lane-symbol svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.trend-ai-summary-lane-count {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: rgba(218, 228, 241, 0.86);
}

.trend-ai-summary-lane-count strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 10px;
  background: rgba(5, 14, 24, 0.42);
  color: rgba(245, 248, 255, 0.96);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trend-ai-summary-briefing-section.is-positive .trend-ai-summary-lane-count strong {
  border-color: rgba(98, 206, 77, 0.3);
  background: rgba(98, 206, 77, 0.12);
}

.trend-ai-summary-briefing-section.is-watch .trend-ai-summary-lane-count strong {
  border-color: rgba(255, 159, 28, 0.28);
  background: rgba(255, 159, 28, 0.1);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch .trend-ai-summary-lane-count strong {
  border-color: rgba(255, 73, 61, 0.34);
  background: rgba(255, 73, 61, 0.11);
}

.trend-ai-summary-briefing-section.is-focus .trend-ai-summary-lane-count strong {
  border-color: rgba(138, 184, 255, 0.32);
  background: rgba(47, 136, 255, 0.14);
}

.trend-ai-summary-lane-count span {
  font-size: 12px;
  font-weight: 650;
}

.trend-ai-summary-briefing-section ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-ai-summary-briefing-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.trend-ai-summary-briefing-item.is-linked,
.trend-ai-summary-detail-item.is-linked {
  display: block;
}

.trend-ai-summary-briefing-link,
.trend-ai-summary-detail-link {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.trend-ai-summary-briefing-link {
  gap: 7px;
}

.trend-ai-summary-detail-link {
  gap: 8px;
}

.trend-ai-summary-briefing-link:hover .trend-ai-summary-briefing-label,
.trend-ai-summary-briefing-link:focus-visible .trend-ai-summary-briefing-label,
.trend-ai-summary-detail-link:hover .trend-ai-summary-detail-label,
.trend-ai-summary-detail-link:focus-visible .trend-ai-summary-detail-label {
  color: rgba(255, 255, 255, 0.98);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.trend-ai-summary-briefing-link:focus-visible,
.trend-ai-summary-detail-link:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(138, 184, 255, 0.72);
  outline-offset: 3px;
}

.trend-ai-summary-briefing-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(138, 184, 255, 0.62);
}

.trend-ai-summary-briefing-item.is-positive .trend-ai-summary-briefing-dot {
  background: rgba(98, 206, 77, 0.9);
}

.trend-ai-summary-detail-item.is-positive .trend-ai-summary-briefing-dot {
  background: rgba(98, 206, 77, 0.82);
}

.trend-ai-summary-briefing-item.is-watch .trend-ai-summary-briefing-dot,
.trend-ai-summary-detail-item.is-watch .trend-ai-summary-briefing-dot {
  background: rgba(255, 159, 28, 0.96);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-item.is-watch .trend-ai-summary-briefing-dot,
.trend-ai-summary-card.tone-red .trend-ai-summary-detail-item.is-watch .trend-ai-summary-briefing-dot {
  background: rgba(255, 73, 61, 0.96);
}

.trend-ai-summary-detail-item.is-focus .trend-ai-summary-briefing-dot {
  background: rgba(138, 184, 255, 0.82);
}

.trend-ai-summary-briefing-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trend-ai-summary-briefing-label {
  color: rgba(239, 245, 255, 0.96);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.trend-ai-summary-briefing-value {
  color: rgba(218, 228, 241, 0.9);
  font-size: 11.5px;
  font-weight: 640;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.trend-ai-summary-briefing-detail,
.trend-ai-summary-briefing-empty {
  color: rgba(196, 209, 224, 0.82);
  font-size: 11px;
  line-height: 1.26;
}

.trend-ai-summary-lane-more {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(138, 184, 255, 0.12);
}

.trend-ai-summary-lane-more.is-positive {
  border-top-color: rgba(98, 206, 77, 0.22);
}

.trend-ai-summary-lane-more.is-watch {
  border-top-color: rgba(255, 159, 28, 0.2);
}

.trend-ai-summary-lane-more.is-focus {
  border-top-color: rgba(138, 184, 255, 0.2);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-lane-more.is-watch {
  border-top-color: rgba(255, 73, 61, 0.24);
}

.trend-ai-summary-lane-more summary {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: currentColor;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  opacity: 0.92;
  text-transform: uppercase;
}

.trend-ai-summary-lane-more summary:hover {
  color: rgba(245, 248, 255, 0.96);
}

.trend-ai-summary-lane-more ul {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-ai-summary-detail-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.trend-ai-summary-detail-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trend-ai-summary-detail-label {
  color: rgba(239, 245, 255, 0.96);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.trend-ai-summary-detail-value {
  color: rgba(218, 228, 241, 0.9);
  font-size: 11px;
  font-weight: 690;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.trend-ai-summary-detail-text {
  color: rgba(196, 209, 224, 0.84);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.trend-ai-summary-boundary {
  max-width: 72ch;
  margin: 0;
  color: rgba(170, 183, 199, 0.78);
  font-size: 11px;
  line-height: 1.32;
}

.trend-ai-summary-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trend-ai-summary-evidence {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.42);
}

.trend-ai-summary-evidence.is-positive {
  border-color: rgba(98, 206, 77, 0.2);
}

.trend-ai-summary-evidence span {
  overflow: hidden;
  color: rgba(170, 183, 199, 0.9);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-ai-summary-evidence p {
  margin: 0;
  color: rgba(218, 228, 241, 0.88);
  font-size: 12.5px;
  line-height: 1.38;
}

.trend-ai-summary-evidence-value {
  color: rgba(235, 242, 252, 0.95);
  font-weight: 620;
}

.trend-deterministic-summary {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-top: 4px;
}

.trend-deterministic-summary[hidden],
.trend-verdict-briefing[hidden] {
  display: none;
}

.trend-verdict-band h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.22;
}

.trend-verdict-body {
  margin: 0;
  max-width: 92ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.trend-verdict-action {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.trend-verdict-action:empty {
  display: none;
}

.trend-verdict-action::before {
  content: "Next step \00b7\00a0";
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

/* Single exception card: the one place the top signal is annunciated when the
   verdict leads with the aggregate. Severity shows here, not on the whole band. */
.trend-stale-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 159, 28, 0.32);
  border-radius: 8px;
  background: rgba(109, 72, 18, 0.12);
}

.trend-stale-notice[hidden] {
  display: none;
}

.trend-stale-notice-copy {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.trend-stale-notice-copy strong {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
}

.trend-stale-notice-copy p {
  margin: 0;
  max-width: 92ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trend-stale-notice .secondary-action {
  flex: none;
}

.trend-verdict-exception {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(10, 24, 40, 0.4);
}

.trend-verdict-exception[hidden] {
  display: none;
}

.trend-verdict-exception.status-amber {
  border-color: rgba(255, 159, 28, 0.32);
  background: rgba(109, 72, 18, 0.12);
}

.trend-verdict-exception.status-red {
  border-color: rgba(255, 73, 61, 0.36);
  background: rgba(111, 30, 30, 0.14);
}

.trend-verdict-exception > .engine-status {
  flex: none;
  margin-top: 2px;
}

.trend-verdict-exception-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-verdict-exception-copy strong {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
}

.trend-verdict-exception-copy p {
  margin: 0;
  max-width: 92ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trend-verdict-exception-copy .trend-verdict-exception-action {
  color: var(--text);
  font-weight: 750;
}

.trend-verdict-exception-action::before {
  content: "Next step \00b7\00a0";
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-verdict-briefing {
  margin-top: 4px;
  min-width: 0;
}

.trend-verdict-briefing summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trend-verdict-briefing summary:hover {
  color: var(--text);
}

.trend-verdict-briefing[open] summary {
  margin-bottom: 10px;
}

/* Phase 5e: page-level engine scope, sticky under the app header while the Trends page scrolls. */
.trend-scope-bar {
  position: sticky;
  top: 86px;
  z-index: 6;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 13, 22, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.trend-scope-bar[hidden] {
  display: none;
}

.trend-scope-bar .trend-engine-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.trend-scope-bar-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Phase 5f: the flight log's default presentation — one card per flight, plain-language finding
   plus a what-to-do line; the dense score table sits behind the Layout toggle. */
.trend-flight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-flight-cards[hidden],
.trend-table-wrap[hidden] {
  display: none;
}

.trend-flight-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.48);
  color: var(--text);
  cursor: pointer;
}

.trend-flight-card:hover,
.trend-flight-card:focus-visible {
  border-color: rgba(138, 184, 255, 0.55);
  background: rgba(47, 136, 255, 0.1);
  outline: none;
}

.trend-flight-card.status-amber {
  border-color: rgba(255, 159, 28, 0.34);
}

.trend-flight-card.status-red {
  border-color: rgba(255, 73, 61, 0.4);
}

.trend-flight-card.is-focus-row {
  box-shadow: inset 3px 0 0 rgba(138, 184, 255, 0.82);
}

.trend-flight-card.is-return-target {
  border-color: rgba(138, 184, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(138, 184, 255, 0.35);
}

.trend-flight-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  min-width: 0;
}

.trend-flight-card-top strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-flight-card-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trend-flight-card-top .engine-status {
  margin-left: auto;
}

.trend-flight-card-finding {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.trend-flight-card-meta {
  color: var(--muted);
  font-weight: 650;
}

.trend-flight-card-action {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trend-flight-card-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.trend-flight-card-scores .trend-score {
  padding: 2px 7px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.trend-flight-card.is-error .trend-flight-card-finding {
  color: var(--muted);
  font-weight: 600;
}

/* Phase 5g: one designed presentation for the Trends empty/error states. */
.trend-empty-state {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 26px 18px;
  border: 1px dashed rgba(138, 184, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.4);
  text-align: center;
}

.trend-empty-state-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(138, 184, 255, 0.3);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
}

.trend-empty-state strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.trend-empty-state p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.trend-empty-state .secondary-action {
  margin-top: 4px;
}

.trend-table td .trend-empty-state {
  border: 0;
  background: transparent;
}

@media (max-width: 1120px) {
  .trend-ai-summary-command-strip {
    grid-template-columns: 1fr;
  }

  .trend-ai-summary-lead {
    padding-bottom: 14px;
  }

  .trend-ai-summary-briefing-grid {
    border-top: 1px solid rgba(138, 184, 255, 0.16);
    border-left: 0;
  }

  .trend-ai-summary-briefing-section.is-focus {
    grid-column: auto;
  }
}

/* Phase 5h: hangar-tablet (~768-820px) and below. Phones stay functional-but-scrolly; chart SVG
   geometry is untouched. */
@media (max-width: 820px) {
  .trend-verdict-band {
    padding: 11px 12px;
  }

  .trend-verdict-ribbon h2 {
    font-size: 14px;
  }

  .trend-verdict-ribbon {
    gap: 4px 10px;
  }

  .trend-verdict-ribbon-meta {
    margin-left: 0;
    white-space: normal;
  }

  .trend-ai-summary-headline {
    font-size: 16px;
  }

  .trend-ai-summary-card.status-ready {
    border-radius: 8px;
  }

  .trend-ai-summary-card.status-limit {
    border-radius: 8px;
  }

  .trend-ai-summary-lead {
    padding: 14px 14px 13px;
  }

  .trend-ai-summary-briefing-grid {
    grid-template-columns: 1fr;
  }

  .trend-ai-summary-briefing-section,
  .trend-ai-summary-briefing-section + .trend-ai-summary-briefing-section,
  .trend-ai-summary-briefing-section.is-focus {
    grid-column: auto;
    padding: 12px 14px;
    border-left: 0;
    border-top: 1px solid rgba(138, 184, 255, 0.14);
  }

  .trend-ai-summary-briefing-section:first-child {
    border-top: 0;
  }

  .trend-ai-summary-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-scope-bar {
    top: 58px;
    padding: 5px 8px;
  }

  .trend-picture-header {
    flex-direction: column;
    align-items: stretch;
  }

  .trend-graph-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-evidence-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .trend-flight-cards {
    grid-template-columns: 1fr;
  }
}

.trend-visual-grid {
  display: grid;
  grid-template-columns: minmax(198px, 270px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.trend-review-rail,
.trend-picture-panel {
  min-width: 0;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 12, 22, 0.52);
}

.trend-visual-grid > .trend-toolbar.panel {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Column-balance: the rail follows the scroll instead of anchoring a static hole
   when the picture column runs taller (86px matches the scope bar's offset under
   the sticky app header). The renderer applies the class only when the whole rail
   fits in the viewport, so the page never grows a second scrollbar — a too-tall
   rail simply stays in normal flow. */
.trend-visual-grid > .trend-toolbar.panel.is-rail-sticky {
  position: sticky;
  top: 86px;
}

/* The picture panel and the findings band stack in one column so a tall rail
   no longer leaves dead space to its right — the vertical room is spent on the
   findings the reader was scrolling toward anyway. */
.trend-main-column {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.trend-review-rail {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 12px;
}

.trend-review-rail-header {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-review-rail-header h2,
.trend-picture-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.18;
}

.trend-review-rail .trend-sensitivity-control {
  align-items: start;
  flex-direction: column;
  gap: 5px;
}

/* The rail's segmented control fills the rail width with equal segments so the
   pill never reads as an oversized box around three left-packed buttons. */
.trend-review-rail .sensitivity-inline {
  width: 100%;
}

.trend-review-rail .sensitivity-inline .sensitivity-option {
  flex: 1 1 0;
  text-align: center;
}

.trend-review-tiles {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  overflow: visible;
  max-height: none;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trend-review-tiles::-webkit-scrollbar {
  display: none;
}

.trend-review-tiles .trend-metric-tile {
  grid-template-rows: auto auto auto auto;
  gap: 5px;
  min-height: 86px;
  padding: 8px 10px;
}

.trend-review-tiles .trend-metric-tile strong {
  font-size: 12px;
  line-height: 1.12;
}

.trend-review-tiles .trend-metric-evidence {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-review-tiles .trend-metric-active-label {
  align-self: start;
  margin-top: 2px;
}

.trend-rail-stable {
  min-width: 0;
}

.trend-rail-stable summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px dashed rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trend-rail-stable summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(98, 206, 77, 0.85);
  flex: none;
}

.trend-rail-stable summary:hover {
  border-color: rgba(138, 184, 255, 0.4);
  color: var(--text);
}

.trend-rail-stable[open] summary {
  margin-bottom: 6px;
}

.trend-rail-stable .trend-metric-tile {
  width: 100%;
  margin-top: 6px;
}

.trend-rail-stable .trend-metric-tile:first-of-type {
  margin-top: 0;
}

/* Dense one-line rows for expanded stable tiles: quiet content stays visually
   small next to the full watch/attention cards. Still real .trend-metric-tile
   buttons — the perf check counts and clicks them. */
.trend-metric-tile.is-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-color: rgba(138, 184, 255, 0.1);
  background: rgba(10, 24, 40, 0.3);
}

.trend-rail-stable .trend-metric-tile.is-compact {
  margin-top: 3px;
}

.trend-metric-tile.is-compact strong {
  font-size: 12px;
  font-weight: 750;
}

.trend-metric-tile.is-compact .trend-metric-evidence {
  margin-left: auto;
  white-space: nowrap;
}

.trend-tile-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(138, 184, 255, 0.5);
}

.trend-tile-dot.green {
  background: var(--green);
}

/* De-chroming: the sensitivity explanation lives in this glyph's tooltip instead of
   an always-visible helper sentence under the control. */
.trend-sensitivity-info {
  color: rgba(142, 197, 255, 0.8);
  font-size: 12px;
  font-style: normal;
  cursor: help;
}

.trend-review-tiles .trend-metric-tile:has(.trend-overall-health),
.trend-metric-tile:has(.trend-overall-health) {
  gap: 6px;
  min-height: 106px;
}

.trend-overall-health {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: end;
  min-width: 0;
}

.trend-overall-health b {
  color: #f2f7ff;
  font-size: 24px;
  font-weight: 950;
  line-height: 0.92;
}

.trend-overall-health small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-status-mix,
.trend-overall-mix-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.trend-status-mix {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 184, 255, 0.12);
}

.trend-status-mix i,
.trend-overall-mix-bar i {
  flex-basis: 0;
  flex-grow: var(--mix-count, 1);
  flex-shrink: 1;
  min-width: 5px;
  border-radius: inherit;
}

.trend-status-mix .is-stable,
.trend-overall-mix-bar .is-stable {
  background: #62ce4d;
}

.trend-status-mix .is-watch,
.trend-overall-mix-bar .is-watch {
  background: #ffd241;
}

.trend-status-mix .is-profile,
.trend-overall-mix-bar .is-profile {
  background: #ff9f1c;
}

.trend-status-mix .is-alert,
.trend-overall-mix-bar .is-alert {
  background: #ff5c45;
}

.trend-status-mix .is-limited,
.trend-overall-mix-bar .is-limited {
  background: #8da2b8;
}

.trend-status-counts {
  overflow: hidden;
  color: #cdd9e8;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-review-tiles .trend-status-counts {
  font-size: 9px;
}

.trend-picture-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(300px, auto) auto;
  gap: 10px;
  padding: 12px;
}

/* Overall view: no chart in the stage row, so the 300px chart floor would only
   manufacture empty space inside the status-mix card. */
.trend-picture-panel.is-overall-view {
  grid-template-rows: auto auto auto minmax(0, auto) auto;
}

.trend-picture-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.trend-picture-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trend-picture-header p:empty {
  display: none;
}

.trend-picture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.trend-engine-controls,
.trend-cylinder-controls {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.trend-engine-controls[hidden],
.trend-cylinder-controls[hidden] {
  display: none;
}

.trend-engine-controls button,
.trend-cylinder-controls button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.trend-engine-controls button:hover,
.trend-engine-controls button:focus-visible,
.trend-engine-controls button.is-active,
.trend-cylinder-controls button:hover,
.trend-cylinder-controls button:focus-visible,
.trend-cylinder-controls button.is-active {
  background: rgba(47, 136, 255, 0.26);
  color: #ffffff;
  outline: none;
}

/* Neutral informational styling: the takeaway line carries any severity of message
   (steady summary, watch note, review pointer), so it must not read as green "all good". */
.trend-picture-takeaway:empty {
  display: none;
}

.trend-picture-takeaway {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 24, 40, 0.42);
  color: #c9d6e6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.trend-picture-detail:empty {
  display: none;
}

.trend-heat-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-overall-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-overall-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-overall-stat-strip article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(98, 206, 77, 0.08), transparent 70%),
    rgba(12, 30, 48, 0.68);
}

.trend-overall-stat-strip span,
.trend-overall-stat-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-overall-stat-strip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-heat-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-heat-stat-strip article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(98, 207, 193, 0.08), transparent 70%),
    rgba(12, 30, 48, 0.68);
}

.trend-heat-stat-strip span,
.trend-heat-stat-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-heat-stat-strip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-heat-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 210, 65, 0.22);
  border-radius: 8px;
  background: rgba(255, 210, 65, 0.08);
}

.trend-heat-owner-note strong {
  color: #ffd241;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-heat-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-cooling-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-cooling-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 194, 71, 0.2);
  border-radius: 8px;
  background: rgba(255, 194, 71, 0.07);
}

.trend-cooling-owner-note strong {
  color: #ffd241;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cooling-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-distribution-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-distribution-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-distribution-stat-strip article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 30, 48, 0.72);
}

.trend-distribution-stat-strip span,
.trend-distribution-stat-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-distribution-stat-strip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-picture-chart {
  display: grid;
  align-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 19, 32, 0.52), rgba(2, 8, 15, 0.34)),
    rgba(2, 8, 15, 0.42);
}

.trend-picture-chart.is-distribution-detail,
.trend-picture-chart.is-cooling-detail,
.trend-picture-chart.is-oil-detail,
.trend-picture-chart.is-overall-detail {
  align-items: stretch;
  padding: 0;
  overflow: visible;
}

/* The status-mix panel is compact card content, not a chart — the stage hugs it
   instead of mandating chart height and centering the leftovers away. */
.trend-picture-chart.is-overall-detail {
  min-height: 0;
}

.trend-picture-chart.has-chart-review {
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  overflow: visible;
}

.trend-picture-chart.has-chart-review.is-distribution-detail,
.trend-picture-chart.has-chart-review.is-cooling-detail,
.trend-picture-chart.has-chart-review.is-oil-detail {
  padding: 0;
}

.trend-picture-chart.has-chart-review.is-distribution-detail .trend-chart-review,
.trend-picture-chart.has-chart-review.is-cooling-detail .trend-chart-review,
.trend-picture-chart.has-chart-review.is-oil-detail .trend-chart-review {
  margin: 0 12px 12px;
}

.trend-chart-review {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 4px;
}

.trend-chart-review-header {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trend-chart-review-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.trend-chart-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-picture-chart.is-review-only {
  min-height: 0;
}

.trend-metric-review {
  align-content: start;
}

.trend-metric-review-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-metric-review-strip article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 27, 43, 0.72);
}

.trend-metric-review-strip span,
.trend-metric-review-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-metric-review-strip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-metric-review-strip .status-green {
  color: var(--green);
}

.trend-metric-review-strip .status-amber {
  color: var(--amber);
}

.trend-metric-review-strip .status-red {
  color: var(--red);
}

.trend-overall-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  min-width: 0;
  padding: 13px;
}

.trend-overall-score-dial {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 234px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(138, 184, 255, 0.24), transparent 54%),
    rgba(5, 14, 24, 0.52);
  text-align: center;
}

.trend-overall-score-dial.status-green {
  border-color: rgba(98, 206, 77, 0.35);
  background:
    radial-gradient(circle at 50% 36%, rgba(98, 206, 77, 0.24), transparent 54%),
    rgba(5, 14, 24, 0.52);
}

.trend-overall-score-dial.status-amber {
  border-color: rgba(255, 159, 28, 0.38);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 159, 28, 0.22), transparent 54%),
    rgba(5, 14, 24, 0.52);
}

.trend-overall-score-dial.status-red {
  border-color: rgba(255, 73, 61, 0.42);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 73, 61, 0.22), transparent 54%),
    rgba(5, 14, 24, 0.52);
}

.trend-overall-score-dial span {
  color: #f2f7ff;
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
}

.trend-overall-score-dial small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-overall-mix-panel {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 30, 48, 0.54);
}

.trend-overall-mix-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.trend-overall-mix-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-overall-mix-header strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.15;
}

.trend-overall-mix-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-overall-score-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px 9px;
  align-items: baseline;
  justify-content: end;
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.46);
}

.trend-overall-score-pill b {
  color: #f2f7ff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.trend-overall-score-pill small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.trend-overall-score-pill.score-green {
  border-color: rgba(98, 206, 77, 0.32);
  background: rgba(35, 91, 48, 0.18);
}

.trend-overall-score-pill.score-amber {
  border-color: rgba(255, 210, 65, 0.34);
  background: rgba(120, 82, 22, 0.18);
}

.trend-overall-score-pill.score-red {
  border-color: rgba(255, 73, 61, 0.38);
  background: rgba(91, 35, 42, 0.18);
}

.trend-overall-mix-bar {
  height: 20px;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.48);
}

.trend-overall-mix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

/* Informational cells since the alarm redesign removed the bucket-detail listing —
   no hover/cursor affordances, so they never promise a click they can't honor. */
.trend-overall-mix-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 85px;
  padding: 9px 10px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.46);
  color: var(--text);
  text-align: left;
}

.trend-overall-mix-card.is-stable {
  border-color: rgba(98, 206, 77, 0.3);
}

.trend-overall-mix-card.is-watch {
  border-color: rgba(255, 210, 65, 0.34);
}

.trend-overall-mix-card.is-profile {
  border-color: rgba(255, 159, 28, 0.34);
}

.trend-overall-mix-card.is-alert {
  border-color: rgba(255, 73, 61, 0.38);
}

.trend-overall-mix-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-overall-mix-grid strong {
  color: var(--text);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.trend-overall-mix-grid small {
  overflow: hidden;
  color: #cdd9e8;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-picture-chart.is-cooling-detail {
  min-height: 390px;
}

.overview-detector-visual-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.overview-detector-visual-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.overview-detector-subsection {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.overview-detector-subsection + .overview-detector-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(138, 184, 255, 0.12);
}

.overview-detector-subhead {
  display: grid;
  gap: 2px;
}

.overview-detector-subhead-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Twin whole-aircraft oil view: one warm-pressure envelope per engine, stacked
   full width (issue #233), each separated by a subtle rule and its own label. */
.overview-oil-engine-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.overview-oil-engine-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.overview-oil-engine-panel + .overview-oil-engine-panel {
  padding-top: 16px;
  border-top: 1px solid rgba(138, 184, 255, 0.12);
}

.overview-oil-engine-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.overview-detector-visual-body .trend-heat-detail,
.overview-detector-visual-body .trend-distribution-detail {
  gap: 7px;
}

.overview-detector-visual-body .trend-heat-stat-strip,
.overview-detector-visual-body .trend-distribution-stat-strip {
  gap: 7px;
}

.overview-detector-visual-body .trend-heat-stat-strip article,
.overview-detector-visual-body .trend-distribution-stat-strip article {
  min-height: 52px;
  padding: 8px 10px;
}

.overview-detector-visual-body .trend-heat-stat-strip span,
.overview-detector-visual-body .trend-heat-stat-strip small,
.overview-detector-visual-body .trend-distribution-stat-strip span,
.overview-detector-visual-body .trend-distribution-stat-strip small {
  font-size: 9.5px;
  font-weight: 700;
}

.overview-detector-visual-body .trend-heat-stat-strip strong,
.overview-detector-visual-body .trend-distribution-stat-strip strong {
  font-size: 15px;
  font-weight: 800;
}

.overview-detector-visual-body .trend-heat-owner-note {
  padding: 8px 10px;
}

.overview-detector-visual-body .trend-heat-owner-note strong {
  font-size: 11px;
  font-weight: 800;
}

.overview-detector-visual-body .trend-heat-owner-note span {
  font-size: 12px;
  font-weight: 620;
}

/* Issue #386: oil SVGs use a fixed 920px design canvas. Letting that canvas
   grow to the full width of a wide Overview panel scales the SVG typography
   and chart height with it. Cap only the Overview composition near its
   authored size; the shared Trends presentation remains fluid. */
.overview-detector-visual-body .trend-oil-stage {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.overview-detector-visual-body .trend-oil-value-distribution-svg {
  width: 100%;
  max-width: 920px;
  min-height: 0;
  margin-inline: auto;
}

.cht-egt-pairing-card {
  appearance: none;
  font: inherit;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cht-egt-pairing-card:hover,
.cht-egt-pairing-card:focus-visible {
  border-color: rgba(47, 136, 255, 0.62) !important;
  background: rgba(47, 136, 255, 0.11) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 136, 255, 0.18);
  transform: translateY(-1px);
}

/* While a detector visual panel is up, hide the Operating Context cards so the
   graphs come into view. Set by overview-detector-visuals.js. */
body.overview-detector-active #operatingContextCards {
  display: none;
}

/* Sensor Trust Timeline (sensor-trust-timeline.js) — per-channel probe-trust
   swimlane. The detail strip reuses the .trend-heat-* grammar; these style the
   swimlane SVG, phase ribbon, legend, and the all-clear state. */
.sensor-trust-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sensor-trust-track {
  fill: rgba(98, 207, 193, 0.12);
  stroke: rgba(98, 207, 193, 0.30);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-segment {
  stroke: rgba(6, 17, 29, 0.35);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-jump {
  stroke: #b07cff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-label {
  fill: #dbe7f4;
  font-size: 12px;
  font-weight: 800;
}

.sensor-trust-label.is-worst {
  fill: #ffd7c2;
}

.sensor-trust-phase {
  opacity: 0.55;
}

.sensor-trust-phase-label {
  fill: #0b1622;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sensor-trust-axis-note {
  fill: #9fb0c4;
  font-size: 11px;
  font-weight: 800;
}

.sensor-trust-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}

.sensor-trust-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sensor-trust-legend-chip i {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.sensor-trust-legend-track {
  background: rgba(98, 207, 193, 0.18);
  border: 1px solid rgba(98, 207, 193, 0.45);
}

.sensor-trust-legend-tick {
  width: 3px !important;
  height: 14px !important;
  border-radius: 1px;
  background: #b07cff;
}

.sensor-trust-clear {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(98, 207, 193, 0.25);
  border-radius: 14px;
  background: rgba(98, 207, 193, 0.06);
}

.sensor-trust-clear-mark {
  font-size: 28px;
  line-height: 1;
  color: #62cfc1;
  font-weight: 900;
}

.sensor-trust-clear-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sensor-trust-clear-body > strong {
  font-size: 15px;
  color: #eaf2fb;
}

.sensor-trust-clear-body > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sensor-trust-clear-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 6px;
}

.sensor-trust-clear-stats article {
  display: grid;
  gap: 1px;
}

.sensor-trust-clear-stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sensor-trust-clear-stats strong {
  font-size: 15px;
  color: #dbe7f4;
}

.trend-distribution-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.trend-cooling-stage {
  display: grid;
  min-width: 0;
  padding: 12px;
}

.trend-distribution-plot,
.trend-cooling-plot,
.trend-distribution-lane-summary {
  min-width: 0;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.28);
}

.trend-distribution-plot,
.trend-cooling-plot {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  padding: 12px 12px 6px;
}

.trend-distribution-plot h3,
.trend-cooling-plot h3,
.trend-distribution-lane-summary h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.18;
}

.trend-distribution-plot p,
.trend-cooling-plot p,
.trend-distribution-lane-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.trend-cooling-plot-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.trend-cooling-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  min-width: min(330px, 100%);
  color: #dce8f5;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
}

.trend-cooling-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.trend-cooling-legend span.is-muted {
  opacity: 0.48;
}

.trend-cooling-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 0 0 1px rgba(3, 10, 18, 0.8);
}

.trend-cooling-legend small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.trend-cooling-margin-chart-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trend-cooling-margin-threshold-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cooling-margin-threshold-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.trend-cooling-margin-threshold-legend i {
  display: inline-block;
  width: 26px;
  height: 0;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.trend-cooling-margin-threshold-legend .is-review {
  color: #ff8a79;
}

.trend-cooling-margin-threshold-legend .is-warm {
  color: #ffd77a;
}

.trend-distribution-lane-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.trend-distribution-lane-summary > div {
  display: grid;
  gap: 8px;
}

.trend-distribution-lane-summary article {
  display: grid;
  grid-template-columns: minmax(58px, 0.8fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--lane-accent) 34%, rgba(138, 184, 255, 0.16));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-accent) 14%, transparent), transparent 64%),
    rgba(12, 30, 48, 0.62);
}

.trend-distribution-lane-summary article strong {
  grid-row: span 2;
  color: var(--lane-accent);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.trend-distribution-lane-summary article span {
  color: #dce8f5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.trend-distribution-lane-summary article small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-distribution-stage.is-overview {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 212px);
  gap: 10px;
  padding: 8px;
}

.trend-distribution-stage.is-overview .trend-distribution-plot {
  gap: 4px;
  padding: 10px 10px 4px;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary {
  gap: 8px;
  padding: 10px;
}

.trend-distribution-stage.is-overview .trend-distribution-plot h3,
.trend-distribution-stage.is-overview .trend-distribution-lane-summary h3 {
  font-size: 14px;
  font-weight: 850;
}

.trend-distribution-stage.is-overview .trend-distribution-plot p,
.trend-distribution-stage.is-overview .trend-distribution-lane-summary p {
  font-size: 11px;
  font-weight: 650;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary > div {
  gap: 6px;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary article {
  gap: 3px 8px;
  padding: 8px 9px;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary article strong {
  font-size: 14px;
  font-weight: 850;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary article span {
  font-size: 11px;
  font-weight: 680;
}

.trend-distribution-stage.is-overview .trend-distribution-lane-summary article small {
  font-size: 10px;
  font-weight: 650;
}

.trend-cylinder-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 2px;
}

.trend-cylinder-detail h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.trend-cylinder-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.trend-cylinder-detail-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(138, 184, 255, 0.13);
  border-radius: 7px;
  background: rgba(12, 30, 48, 0.5);
}

.trend-cylinder-detail-stats b {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
}

.trend-cylinder-detail-stats small,
.trend-cylinder-temp-mix p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.trend-cylinder-temp-mix {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trend-cylinder-temp-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.trend-cylinder-temp-row span {
  overflow: hidden;
  color: #cdd9e8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-cylinder-temp-row div {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(138, 184, 255, 0.12);
}

.trend-cylinder-temp-row i {
  display: block;
  width: var(--band-width);
  height: 100%;
  border-radius: inherit;
  background: var(--band-color);
}

.trend-cylinder-temp-row strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.trend-main-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
}

.trend-heat-label {
  font-size: 11px;
  line-height: 1;
}

.trend-heat-tiny-label {
  stroke: #03101c;
  stroke-width: 3px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 8.5px;
  font-weight: 900;
}

.trend-heat-total-label {
  fill: #8fa3bb;
  font-size: 8.5px;
  font-weight: 850;
}

.trend-heat-profile-svg .trend-cylinder-label {
  font-size: 11px;
}

.trend-heat-profile-svg .trend-svg-axis-label {
  font-size: 10px;
}

.trend-heat-profile-svg.is-overview .trend-cylinder-label,
.trend-distribution-svg.is-overview .trend-cylinder-label {
  font-size: 10px;
  font-weight: 780;
}

.trend-heat-profile-svg.is-overview .trend-heat-label {
  font-size: 8.5px;
}

.trend-heat-profile-svg.is-overview .trend-heat-total-label,
.trend-distribution-svg.is-overview .trend-svg-note,
.trend-heat-profile-svg.is-overview .trend-svg-axis-label,
.trend-distribution-svg.is-overview .trend-svg-axis-label {
  font-size: 8.5px;
  font-weight: 650;
}

.trend-distribution-svg.is-overview .trend-distribution-marker-legend text {
  font-size: 8.5px;
  font-weight: 650;
}

.trend-egt-spread-svg .trend-svg-axis-label {
  font-size: 8.5px;
  font-weight: 650;
}

.trend-graph-card-chart .trend-heat-profile-svg .trend-cylinder-label {
  font-size: 9px;
}

.trend-graph-card-chart .trend-heat-profile-svg .trend-heat-label {
  font-size: 8px;
}

.trend-heat-row-line {
  opacity: 0.55;
  stroke: rgba(138, 184, 255, 0.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-cylinder-label {
  fill: #dbe7f4;
  font-size: 13px;
  font-weight: 950;
}

.trend-svg-plot-bg {
  fill: rgba(2, 8, 15, 0.42);
  stroke: rgba(255, 255, 255, 0.06);
}

.trend-svg-axis,
.trend-svg-tick {
  stroke: rgba(219, 231, 244, 0.32);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-svg-grid {
  stroke: rgba(219, 231, 244, 0.11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-svg-axis-label,
.trend-svg-note {
  fill: #9fb0c4;
  font-size: 12px;
  font-weight: 800;
}

.trend-distribution-callout {
  fill: #c7d6e7;
  stroke: #03101c;
  stroke-width: 2px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 11px;
  font-weight: 700;
}

.trend-distribution-callout.is-peak {
  fill: #eaf3ff;
}

.trend-distribution-callout.is-warm-tail {
  fill: #f1a178;
}

.trend-distribution-leader {
  opacity: 0.78;
  stroke: #dbe7f4;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.trend-distribution-leader.is-peak {
  opacity: 0.45;
  stroke: #cfe2f8;
}

.trend-distribution-leader.is-warm-tail {
  opacity: 0.88;
  stroke: #ff8b61;
}

.trend-distribution-marker {
  fill: #dbe7f4;
  stroke: #03101c;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 6px rgba(219, 231, 244, 0.28));
  vector-effect: non-scaling-stroke;
}

.trend-distribution-marker.is-warm-tail {
  fill: #ff8b61;
  filter: drop-shadow(0 0 7px rgba(255, 139, 97, 0.32));
}

.trend-distribution-marker-legend rect {
  fill: rgba(2, 8, 15, 0.76);
  stroke: rgba(138, 184, 255, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-distribution-marker-legend text {
  fill: #dbe7f4;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.trend-distribution-marker-legend text.is-warm-tail {
  fill: #ffb190;
}

.trend-threshold-line {
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.trend-threshold-line.is-green {
  stroke: rgba(98, 206, 77, 0.72);
}

.trend-threshold-line.is-amber {
  stroke: rgba(255, 159, 28, 0.72);
}

.trend-threshold-line.is-red {
  stroke: rgba(255, 73, 61, 0.72);
}

.trend-flight-dot {
  stroke: rgba(3, 10, 18, 0.92);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-range-whisker line {
  stroke: rgba(143, 163, 187, 0.58);
  stroke-width: 1.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trend-flight-dot.is-strongest {
  stroke: #ffd241;
  stroke-width: 3.2;
}

.trend-flight-dot.status-green {
  fill: #62ce4d;
}

.trend-flight-dot.status-amber {
  fill: #ffbd4a;
}

.trend-flight-dot.status-red {
  fill: #ff5c45;
}

.trend-flight-dot.status-muted {
  fill: #96a6b7;
}

.trend-oil-pressure-dot {
  cursor: pointer;
}

.trend-oil-pressure-dot:hover,
.trend-oil-pressure-dot:focus-visible,
.trend-oil-pressure-dot.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px rgba(116, 212, 245, 0.34));
}

.trend-oil-pressure-dot.status-amber:hover,
.trend-oil-pressure-dot.status-amber:focus-visible,
.trend-oil-pressure-dot.status-amber.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 210, 65, 0.34));
}

.trend-oil-pressure-dot.status-red:hover,
.trend-oil-pressure-dot.status-red:focus-visible,
.trend-oil-pressure-dot.status-red.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 92, 69, 0.38));
}

/* Gradient fills for the electrical bands/zones live inline in the SVG markup
   (scope-suffixed ids) — a CSS url(#...) here would resolve document-wide and
   strand coexisting chart instances. Only solid status overrides belong here. */
.trend-electrical-band {
  cursor: pointer;
  stroke: rgba(232, 247, 255, 0.48);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-band.status-amber {
  fill: #ffd15e;
  stroke: rgba(255, 235, 172, 0.64);
}

.trend-electrical-band.status-red {
  fill: #ff6e61;
  stroke: rgba(255, 205, 198, 0.7);
}

.trend-electrical-band:hover,
.trend-electrical-band:focus-visible,
.trend-electrical-band.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px rgba(116, 212, 245, 0.34));
}

.trend-electrical-band.status-amber:hover,
.trend-electrical-band.status-amber:focus-visible,
.trend-electrical-band.status-amber.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 210, 65, 0.34));
}

.trend-electrical-band.status-red:hover,
.trend-electrical-band.status-red:focus-visible,
.trend-electrical-band.status-red.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 92, 69, 0.38));
}

.trend-electrical-band.is-out-of-band {
  stroke-dasharray: 3 3;
}

.trend-electrical-zone {
  vector-effect: non-scaling-stroke;
}

.trend-electrical-zone.is-healthy {
  stroke: rgba(98, 206, 77, 0.22);
  stroke-width: 1;
}

.trend-electrical-zone.is-watch {
  fill: rgba(255, 189, 74, 0.07);
}

.trend-electrical-zone.is-review {
  fill: rgba(255, 92, 69, 0.09);
}

.trend-electrical-limit-line {
  stroke: rgba(98, 206, 77, 0.64);
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-median-tick {
  stroke: rgba(247, 252, 255, 0.98);
  stroke-linecap: round;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 5px rgba(232, 247, 255, 0.22));
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-median-tick.is-selected {
  stroke-width: 3;
}

.trend-electrical-legend text {
  fill: rgba(213, 225, 240, 0.92);
  font-size: 11px;
  font-weight: 850;
}

.trend-electrical-band-svg .trend-svg-axis-label {
  font-size: 10.5px;
  font-weight: 850;
}

.trend-start-charge-svg .trend-svg-axis-label,
.trend-start-charge-svg .trend-svg-note {
  font-size: 10.5px;
  font-weight: 650;
}

.trend-electrical-chart-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-electrical-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(116, 212, 245, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(116, 212, 245, 0.06), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-electrical-selected-flight,
.trend-electrical-selected-status,
.trend-electrical-selected-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-electrical-selected-status {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 206, 77, 0.36);
  border-radius: 999px;
  background: rgba(98, 206, 77, 0.1);
}

.trend-electrical-selected-status.status-amber {
  border-color: rgba(255, 210, 65, 0.42);
  background: rgba(255, 210, 65, 0.1);
}

.trend-electrical-selected-status.status-red {
  border-color: rgba(255, 92, 69, 0.46);
  background: rgba(255, 92, 69, 0.12);
}

.trend-electrical-selected-status i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #62ce4d;
}

.trend-electrical-selected-status.status-amber i {
  background: #ffbd4a;
}

.trend-electrical-selected-status.status-red i {
  background: #ff5c45;
}

.trend-electrical-point-detail span,
.trend-electrical-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-electrical-point-detail strong,
.trend-electrical-point-detail b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-electrical-selected-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-electrical-selected-meta > span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-electrical-selected-meta b,
.trend-electrical-selected-meta small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.trend-electrical-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-electrical-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(116, 212, 245, 0.22);
  border-radius: 8px;
  background: rgba(116, 212, 245, 0.08);
}

.trend-electrical-owner-note strong {
  color: #9be4ff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-electrical-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-oil-pressure-chart-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-oil-pressure-engine-grid,
.trend-oil-pressure-engine-panel,
.trend-oil-envelope-engine-grid,
.trend-oil-envelope-engine-panel,
.trend-cooling-margin-engine-grid,
.trend-cooling-margin-engine-panel,
.trend-egt-rhythm-engine-grid,
.trend-egt-rhythm-engine-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trend-oil-pressure-engine-panel h3,
.trend-oil-envelope-engine-panel h3,
.trend-cooling-margin-engine-panel h3,
.trend-egt-rhythm-engine-panel h3 {
  margin: 0;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.trend-oil-pressure-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(116, 212, 245, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(116, 212, 245, 0.06), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-oil-pressure-selected-flight,
.trend-oil-pressure-selected-median,
.trend-oil-pressure-selected-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-oil-pressure-selected-median {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 206, 77, 0.36);
  border-radius: 999px;
  background: rgba(98, 206, 77, 0.1);
}

.trend-oil-pressure-selected-median.status-amber {
  border-color: rgba(255, 210, 65, 0.42);
  background: rgba(255, 210, 65, 0.1);
}

.trend-oil-pressure-selected-median.status-red {
  border-color: rgba(255, 92, 69, 0.46);
  background: rgba(255, 92, 69, 0.12);
}

.trend-oil-pressure-selected-median i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #62ce4d;
}

.trend-oil-pressure-selected-median.status-amber i {
  background: #ffbd4a;
}

.trend-oil-pressure-selected-median.status-red i {
  background: #ff5c45;
}

.trend-oil-pressure-point-detail span,
.trend-oil-pressure-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-oil-pressure-point-detail strong,
.trend-oil-pressure-point-detail b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-oil-pressure-selected-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-oil-pressure-selected-meta > span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-oil-pressure-selected-meta b,
.trend-oil-pressure-selected-meta small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

/* Compact-thumbnail cells (SVG). Fills are inline presentation attributes:
   trusted cells use a flat muted green, and amber/red cells use
   url(#trendSensor*Compact) gradients — the thumbnail coexists with other SVGs
   in the document, so the gradient ids must stay scope-suffixed. The main pane
   is plain HTML (see .trend-sensor-ribbon) because .trend-main-svg scales with
   panel width and magnified the ribbon's text past the app's UI type. */
.trend-sensor-flight-block {
  stroke: rgba(3, 10, 18, 0.86);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-sensor-flight-block.status-green {
  stroke: rgba(98, 206, 77, 0.38);
  stroke-width: 1;
}

.trend-sensor-ribbon-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
  /* Side padding leaves room for the end cells' centered date labels, which
     overflow their slots on narrow panels (the panel clips at overflow). */
  padding: 14px 26px 6px;
}

.trend-sensor-ribbon-title,
.trend-sensor-ribbon-note,
.trend-sensor-ribbon-axis {
  color: #9fb0c4;
  font-size: 11.5px;
  font-weight: 800;
}

.trend-sensor-ribbon-note {
  margin: 0;
}

.trend-sensor-ribbon {
  display: flex;
  gap: 3px;
  min-width: 0;
}

.trend-sensor-ribbon-slot {
  display: grid;
  /* minmax(0, 1fr) pins the track to the slot width — without it the nowrap
     date span's min-content inflates the track past the slot, and the cell's
     width:100% follows it, overlapping neighbor cells on narrow panels. */
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 0;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}

.trend-sensor-flight-cell {
  width: 100%;
  max-width: 26px;
  min-width: 2px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(3, 10, 18, 0.86);
  border-radius: 4px;
  cursor: pointer;
}

.trend-sensor-flight-cell.status-green {
  border-color: rgba(98, 206, 77, 0.38);
  background: rgba(98, 206, 77, 0.3);
}

.trend-sensor-flight-cell.status-amber {
  background: linear-gradient(180deg, #ffe084, #ffb43e 42%, #b35e0f);
}

.trend-sensor-flight-cell.status-red {
  background: linear-gradient(180deg, #ff9783, #ff533d 42%, #a91f24);
}

.trend-sensor-flight-cell:hover,
.trend-sensor-flight-cell:focus-visible,
.trend-sensor-flight-cell.is-selected {
  outline: 2px solid #f4f8ff;
  outline-offset: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
}

.trend-sensor-cell-glyph {
  height: 12px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  pointer-events: none;
}

.trend-sensor-cell-glyph.is-amber {
  color: #ffcf77;
}

.trend-sensor-cell-glyph.is-red {
  color: #ff9a8b;
}

/* Date labels sit in their cell's slot so they stay glued to the ribbon; a
   label wider than a narrow slot overflows it evenly on both sides (labels are
   thinned by sensor-quality.ts's labelStep so neighbors never collide). */
.trend-sensor-cell-date {
  height: 13px;
  color: #9fb0c4;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.trend-sensor-ribbon-axis {
  display: flex;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.trend-sensor-flag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: start;
  justify-content: center;
  min-width: 0;
  padding: 0 16px 14px;
}

.trend-sensor-flag-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 7px;
  background: rgba(12, 30, 48, 0.66);
  color: var(--text);
  text-align: left;
}

button.trend-sensor-flag-chip {
  cursor: pointer;
}

button.trend-sensor-flag-chip:hover,
button.trend-sensor-flag-chip:focus-visible,
.trend-sensor-flag-chip.is-selected {
  outline: none;
  border-color: rgba(244, 248, 255, 0.55);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.trend-sensor-flag-chip strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-sensor-flag-chip span {
  overflow: hidden;
  color: #ffcf77;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-sensor-flag-chip.status-red {
  border-color: rgba(255, 92, 69, 0.4);
}

.trend-sensor-flag-chip.status-red span {
  color: #ff9a8b;
}

.trend-sensor-flag-chip.is-clean {
  border-color: rgba(98, 206, 77, 0.25);
}

.trend-sensor-flag-chip.is-clean strong {
  color: #baf4b0;
}

.trend-sensor-flag-chip.is-clean span,
.trend-sensor-flag-chip.is-overflow span {
  color: var(--muted);
  font-weight: 750;
}

.trend-sensor-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-sensor-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(98, 207, 193, 0.22);
  border-radius: 8px;
  background: rgba(98, 207, 193, 0.08);
}

.trend-sensor-owner-note strong {
  color: #8cf0df;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-sensor-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-sensor-selected-flight {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 189, 74, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 189, 74, 0.1), transparent 68%),
    rgba(12, 30, 48, 0.66);
}

.trend-sensor-selected-head,
.trend-sensor-channel-list article {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.trend-sensor-open-flight {
  justify-self: start;
  margin-top: 3px;
  padding: 4px 10px;
  border: 1px solid rgba(138, 184, 255, 0.32);
  border-radius: 999px;
  color: #dce8f5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.trend-sensor-open-flight:hover,
.trend-sensor-open-flight:focus-visible {
  outline: none;
  border-color: rgba(244, 248, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
  color: #f4f8ff;
}

.trend-sensor-selected-head span,
.trend-sensor-selected-head small,
.trend-sensor-channel-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-sensor-selected-head strong,
.trend-sensor-channel-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-sensor-channel-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trend-sensor-channel-list article {
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 7px;
  background: rgba(2, 8, 15, 0.28);
}

.trend-sensor-channel-list span {
  overflow: hidden;
  color: #ffcf77;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-egt-balance-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-egt-balance-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(116, 212, 245, 0.22);
  border-radius: 8px;
  background: rgba(116, 212, 245, 0.08);
}

.trend-egt-balance-owner-note strong {
  color: #9be4ff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-egt-balance-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-egt-balance-reference-line {
  opacity: 0.34;
  stroke: rgba(219, 231, 244, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-egt-balance-minor-reference-line {
  opacity: 0.22;
  stroke: rgba(219, 231, 244, 0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-egt-balance-threshold-reference {
  opacity: 0.46;
  stroke-width: 1.2;
}

.trend-egt-balance-chart-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trend-egt-balance-engine-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trend-egt-balance-engine-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.trend-egt-balance-engine-panel h3 {
  margin: 0;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.trend-egt-balance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-egt-balance-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.trend-egt-balance-legend i {
  display: inline-block;
  width: 26px;
  height: 0;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.trend-egt-balance-legend .is-review {
  color: #ff8a79;
}

.trend-egt-balance-legend .is-compare {
  color: #ffd77a;
}

.trend-egt-balance-line {
  fill: none;
  stroke: #74d4f5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(116, 212, 245, 0.18));
}

.trend-egt-balance-dot {
  cursor: pointer;
}

.trend-egt-balance-dot:hover,
.trend-egt-balance-dot:focus-visible,
.trend-egt-balance-dot.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px rgba(116, 212, 245, 0.34));
}

.trend-egt-balance-dot.status-amber:hover,
.trend-egt-balance-dot.status-amber:focus-visible,
.trend-egt-balance-dot.status-amber.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 210, 65, 0.34));
}

.trend-egt-balance-dot.status-red:hover,
.trend-egt-balance-dot.status-red:focus-visible,
.trend-egt-balance-dot.status-red.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 92, 69, 0.38));
}

.trend-egt-balance-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(116, 212, 245, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(116, 212, 245, 0.06), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-egt-balance-selected-flight,
.trend-egt-balance-selected-spread,
.trend-egt-balance-selected-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-egt-balance-selected-spread {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 206, 77, 0.36);
  border-radius: 999px;
  background: rgba(98, 206, 77, 0.1);
}

.trend-egt-balance-selected-spread.status-amber {
  border-color: rgba(255, 210, 65, 0.42);
  background: rgba(255, 210, 65, 0.1);
}

.trend-egt-balance-selected-spread.status-red {
  border-color: rgba(255, 92, 69, 0.46);
  background: rgba(255, 92, 69, 0.12);
}

.trend-egt-balance-selected-spread i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #62ce4d;
}

.trend-egt-balance-selected-spread.status-amber i {
  background: #ffbd4a;
}

.trend-egt-balance-selected-spread.status-red i {
  background: #ff5c45;
}

.trend-egt-balance-point-detail span,
.trend-egt-balance-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-egt-balance-point-detail strong,
.trend-egt-balance-point-detail b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-egt-balance-selected-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-egt-balance-selected-meta > span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-egt-balance-selected-meta b,
.trend-egt-balance-selected-meta small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.trend-egt-balance-band-label,
.trend-egt-balance-callout {
  stroke: #03101c;
  stroke-width: 3px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 9.5px;
  font-weight: 900;
}

.trend-egt-balance-band-label.is-review {
  fill: #ff8a79;
}

.trend-egt-balance-band-label.is-compare,
.trend-egt-balance-callout.is-latest {
  fill: #ffd77a;
}

.trend-egt-balance-callout {
  fill: #eaf7ff;
}

.trend-egt-balance-svg .trend-svg-axis-label {
  font-size: 9.5px;
}

.trend-induction-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-induction-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 189, 74, 0.22);
  border-radius: 8px;
  background: rgba(255, 189, 74, 0.08);
}

.trend-induction-owner-note strong {
  color: #ffd77a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-induction-owner-note span {
  min-width: 0;
}

.trend-induction-chart-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-induction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-induction-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.trend-induction-legend i {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: #ffd77a;
}

.trend-induction-legend .is-score i {
  background: #74d4f5;
}

.trend-induction-legend .is-cue i {
  background: #ffbd4a;
}

.trend-induction-score-line {
  fill: none;
  stroke: #74d4f5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(116, 212, 245, 0.16));
}

.trend-induction-cue-bar {
  opacity: 0.82;
  fill: #ffbd4a;
}

.trend-induction-cue-bar.status-red {
  fill: #ff5c45;
}

.trend-induction-cue-bar.status-green {
  fill: #62ce4d;
}

.trend-induction-cue-axis {
  stroke: rgba(255, 189, 74, 0.42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-induction-cue-axis-label,
.trend-induction-cue-axis-title {
  fill: #ffd77a;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-induction-cue-axis-label {
  fill: rgba(255, 226, 158, 0.86);
}

.trend-induction-dot {
  cursor: pointer;
}

.trend-induction-dot:hover,
.trend-induction-dot:focus-visible,
.trend-induction-dot.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px rgba(255, 210, 65, 0.34));
}

.trend-induction-dot.status-red:hover,
.trend-induction-dot.status-red:focus-visible,
.trend-induction-dot.status-red.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 92, 69, 0.38));
}

.trend-induction-cylinder-badge {
  pointer-events: none;
}

.trend-induction-cylinder-badge rect {
  fill: rgba(4, 16, 28, 0.92);
  stroke: rgba(255, 226, 158, 0.74);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.trend-induction-cylinder-badge.is-strongest rect {
  fill: rgba(255, 210, 65, 0.18);
  stroke: #ffd241;
  stroke-width: 1.7;
}

.trend-induction-cylinder-badge text {
  fill: #f7fbff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.trend-induction-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 189, 74, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 189, 74, 0.07), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-induction-selected-flight,
.trend-induction-selected-score,
.trend-induction-selected-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-induction-selected-score {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 206, 77, 0.36);
  border-radius: 999px;
  background: rgba(98, 206, 77, 0.1);
}

.trend-induction-selected-score.status-amber {
  border-color: rgba(255, 210, 65, 0.42);
  background: rgba(255, 210, 65, 0.1);
}

.trend-induction-selected-score.status-red {
  border-color: rgba(255, 92, 69, 0.46);
  background: rgba(255, 92, 69, 0.12);
}

.trend-induction-selected-score i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #62ce4d;
}

.trend-induction-selected-score.status-amber i {
  background: #ffbd4a;
}

.trend-induction-selected-score.status-red i {
  background: #ff5c45;
}

.trend-induction-point-detail span,
.trend-induction-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-induction-point-detail strong,
.trend-induction-point-detail b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-induction-selected-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-induction-selected-meta > span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(255, 189, 74, 0.13);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-induction-selected-meta b,
.trend-induction-selected-meta small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.trend-induction-svg .trend-svg-axis-label {
  font-size: 9.5px;
}

.trend-cht-cooling-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-cht-cooling-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(116, 212, 245, 0.22);
  border-radius: 8px;
  background: rgba(116, 212, 245, 0.08);
}

.trend-cht-cooling-owner-note strong {
  color: #9be4ff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cht-cooling-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-cht-cooling-reference-line {
  opacity: 0.34;
  stroke: rgba(219, 231, 244, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-minor-reference-line {
  opacity: 0.22;
  stroke: rgba(219, 231, 244, 0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-threshold-reference {
  opacity: 0.46;
  stroke-width: 1.2;
}

.trend-cht-cooling-chart-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trend-cht-cooling-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cht-cooling-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.trend-cht-cooling-legend i {
  display: inline-block;
  width: 26px;
  height: 0;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.trend-cht-cooling-legend .is-review {
  color: #ff8a79;
}

.trend-cht-cooling-legend .is-compare {
  color: #ffd77a;
}

.trend-cht-cooling-legend .is-green {
  color: #62cfc1;
}

.trend-cht-cooling-legend .is-cool {
  color: #5aa7ff;
}

.trend-cht-cooling-legend .is-review i,
.trend-cht-cooling-legend .is-compare i,
.trend-cht-cooling-legend .is-green i,
.trend-cht-cooling-legend .is-cool i {
  width: 18px;
  height: 8px;
  border-top: 0;
  border-radius: 2px;
  background: currentColor;
  box-shadow: inset 0 0 0 1px rgba(244, 248, 255, 0.22);
  opacity: 1;
}

.trend-cht-cooling-heatmap-svg .trend-svg-axis-label {
  font-size: 9.5px;
  font-weight: 850;
}

.trend-cht-cooling-column-label {
  fill: #dbe8f7;
  font-size: 9.2px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-cht-cooling-date-label {
  fill: #9fb0c4;
}

.trend-cht-cooling-heatmap-cell {
  cursor: pointer;
  stroke: rgba(3, 10, 18, 0.94);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-cell.is-empty {
  cursor: default;
  opacity: 0.62;
  stroke: rgba(138, 184, 255, 0.16);
}

.trend-cht-cooling-heatmap-cell:hover,
.trend-cht-cooling-heatmap-cell:focus-visible,
.trend-cht-cooling-heatmap-cell.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(116, 212, 245, 0.34));
}

.trend-cht-cooling-heatmap-cell.status-amber:hover,
.trend-cht-cooling-heatmap-cell.status-amber:focus-visible,
.trend-cht-cooling-heatmap-cell.status-amber.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 210, 65, 0.34));
}

.trend-cht-cooling-heatmap-cell.status-cool:hover,
.trend-cht-cooling-heatmap-cell.status-cool:focus-visible,
.trend-cht-cooling-heatmap-cell.status-cool.is-selected {
  filter: drop-shadow(0 0 7px rgba(90, 167, 255, 0.32));
}

.trend-cht-cooling-heatmap-cell.status-red:hover,
.trend-cht-cooling-heatmap-cell.status-red:focus-visible,
.trend-cht-cooling-heatmap-cell.status-red.is-selected {
  filter: drop-shadow(0 0 7px rgba(255, 92, 69, 0.38));
}

.trend-cht-cooling-heatmap-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.trend-cht-cooling-heatmap-summary > span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: baseline;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(138, 184, 255, 0.07), transparent 70%),
    rgba(12, 30, 48, 0.56);
}

.trend-cht-cooling-heatmap-summary > span.status-red {
  border-color: rgba(255, 92, 69, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 92, 69, 0.12), transparent 72%),
    rgba(12, 30, 48, 0.58);
}

.trend-cht-cooling-heatmap-summary > span.status-amber {
  border-color: rgba(255, 210, 65, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 210, 65, 0.1), transparent 72%),
    rgba(12, 30, 48, 0.58);
}

.trend-cht-cooling-heatmap-summary > span.status-blue {
  border-color: rgba(90, 167, 255, 0.24);
}

.trend-cht-cooling-heatmap-summary small,
.trend-cht-cooling-heatmap-summary em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-cht-cooling-heatmap-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-cht-cooling-heatmap-summary em {
  grid-column: 1 / -1;
  text-transform: none;
}

.trend-cht-cooling-heatmap-value {
  pointer-events: none;
}

.trend-cht-cooling-heatmap-value rect {
  fill: rgba(23, 28, 34, 0.9);
  stroke: rgba(244, 248, 255, 0.18);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-value text {
  fill: #fff;
  font-size: 9.8px;
  font-weight: 950;
  dominant-baseline: central;
}

.trend-cht-cooling-heatmap-low-value {
  fill: rgba(219, 231, 244, 0.68);
  font-size: 9.6px;
  font-weight: 900;
  dominant-baseline: central;
  pointer-events: none;
}

.trend-cht-cooling-heatmap-hatch {
  opacity: 0.58;
  pointer-events: none;
}

.trend-cht-cooling-heatmap-hatch-line {
  stroke: rgba(92, 17, 20, 0.78);
  stroke-width: 5.6;
}

.trend-cht-cooling-heatmap-cylinder {
  font-size: 10.5px;
}

.trend-cht-cooling-heatmap-repeat {
  fill: none;
  opacity: 0.84;
  stroke: rgba(255, 210, 65, 0.72);
  stroke-dasharray: 6 5;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-note {
  fill: rgba(219, 231, 244, 0.82);
  font-size: 9px;
  stroke: #03101c;
  stroke-linejoin: round;
  stroke-width: 2.4px;
  paint-order: stroke fill;
}

.trend-cht-cooling-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(116, 212, 245, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(116, 212, 245, 0.06), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-cht-cooling-selected-flight,
.trend-cht-cooling-selected-rate,
.trend-cht-cooling-selected-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-cht-cooling-selected-rate {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 206, 77, 0.36);
  border-radius: 999px;
  background: rgba(98, 206, 77, 0.1);
}

.trend-cht-cooling-selected-rate.status-amber {
  border-color: rgba(255, 210, 65, 0.42);
  background: rgba(255, 210, 65, 0.1);
}

.trend-cht-cooling-selected-rate.status-red {
  border-color: rgba(255, 92, 69, 0.46);
  background: rgba(255, 92, 69, 0.12);
}

.trend-cht-cooling-selected-rate i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #62ce4d;
}

.trend-cht-cooling-selected-rate.status-amber i {
  background: #ffbd4a;
}

.trend-cht-cooling-selected-rate.status-red i {
  background: #ff5c45;
}

.trend-cht-cooling-point-detail span,
.trend-cht-cooling-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-cht-cooling-point-detail strong,
.trend-cht-cooling-point-detail b {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-cht-cooling-selected-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.trend-cht-cooling-selected-meta > span {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-cht-cooling-selected-meta b,
.trend-cht-cooling-selected-meta small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.trend-cht-cooling-svg .trend-svg-axis-label {
  font-size: 9.5px;
}

.trend-cooling-band {
  opacity: 0.42;
}

.trend-cooling-band.is-comfortable {
  fill: rgba(31, 127, 92, 0.3);
}

.trend-cooling-band.is-warm {
  fill: rgba(255, 210, 65, 0.16);
}

.trend-cooling-band.is-review {
  fill: rgba(255, 92, 69, 0.14);
}

.trend-cooling-line {
  fill: none;
  stroke: #7ed8ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-cooling-dot {
  fill: var(--dot-color);
  stroke: rgba(3, 10, 18, 0.94);
  stroke-width: 2.1;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.trend-cooling-dot:hover,
.trend-cooling-dot:focus-visible,
.trend-cooling-dot.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--dot-color) 70%, white 30%));
}

.trend-cooling-point-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(88, 208, 255, 0.06), transparent 62%),
    rgba(12, 30, 48, 0.56);
}

.trend-cooling-selected-flight,
.trend-cooling-selected-highest {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}

.trend-cooling-selected-highest {
  align-items: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--dot-color) 42%, rgba(138, 184, 255, 0.16));
  border-radius: 999px;
  background: color-mix(in srgb, var(--dot-color) 10%, rgba(2, 8, 15, 0.46));
}

.trend-cooling-selected-highest i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot-color);
}

.trend-cooling-point-detail span,
.trend-cooling-point-detail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-cooling-selected-highest small {
  color: color-mix(in srgb, var(--dot-color) 70%, #f4f8ff 30%);
}

.trend-cooling-point-detail strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-cooling-cylinder-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: min(330px, 100%);
}

.trend-cooling-cylinder-breakdown > span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.28);
  color: #dce8f5;
  text-transform: none;
}

.trend-cooling-cylinder-breakdown > span.is-highest {
  border-color: color-mix(in srgb, var(--dot-color) 52%, rgba(138, 184, 255, 0.18));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dot-color) 16%, transparent), transparent),
    rgba(2, 8, 15, 0.34);
}

.trend-cooling-cylinder-breakdown i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dot-color);
}

.trend-cooling-cylinder-breakdown b,
.trend-cooling-cylinder-breakdown small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.trend-cooling-callout {
  fill: #dbe8f7;
  stroke: #03101c;
  stroke-width: 3.2px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 10.5px;
  font-weight: 900;
}

.trend-cooling-threshold-label {
  stroke: #03101c;
  stroke-width: 3.1px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 9.8px;
  font-weight: 900;
}

.trend-cooling-margin-svg .trend-svg-axis-label {
  font-size: 10.75px;
  font-weight: 850;
}

.trend-cooling-threshold-label.is-review {
  fill: #ff7d61;
}

.trend-cooling-threshold-label.is-warm {
  fill: #ffd241;
}

.trend-oil-envelope {
  fill: rgba(67, 210, 117, 0.9);
  stroke: rgba(111, 244, 158, 0.88);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-distribution-svg .trend-svg-note {
  fill: rgba(180, 197, 218, 0.9);
  font-size: 12px;
  font-weight: 850;
}

/* Gradient fills for the oil envelope shapes live inline in the SVG markup
   (scope-suffixed ids) — a CSS url(#...) here would resolve document-wide and
   strand coexisting instances (main pane / Overview panel / per-engine grid). */
.trend-oil-pressure-band {
  stroke: rgba(111, 244, 158, 0.42);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-band.is-iqr {
  stroke: rgba(125, 244, 229, 0.68);
}

.trend-oil-band-legend text {
  fill: rgba(213, 225, 240, 0.9);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0;
}

.trend-oil-band-legend .trend-oil-pressure-median {
  stroke-width: 2.5;
  filter: none;
}

.trend-oil-pressure-bar {
  stroke: rgba(116, 212, 245, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-pressure-bar {
  stroke: rgba(255, 214, 128, 0.9);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-median {
  stroke: rgba(239, 247, 255, 0.98);
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(239, 247, 255, 0.28));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-median {
  stroke: rgba(255, 207, 111, 0.96);
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 7px rgba(255, 177, 74, 0.24));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-marker {
  fill: #ffd168;
  stroke: #04101c;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 8px rgba(255, 183, 74, 0.32));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-callout {
  fill: #ffd77a;
  stroke: #03101c;
  stroke-width: 3px;
  paint-order: stroke fill;
  font-size: 12px;
  font-weight: 950;
}

.trend-oil-pressure-distribution-svg.is-compact .trend-oil-pressure-median {
  stroke-width: 2.3;
}

.trend-oil-pressure-distribution-svg.is-compact .trend-oil-warm-marker {
  stroke-width: 2.8;
}

.trend-oil-temp-context-bg {
  fill: rgba(2, 8, 15, 0.34);
  stroke: rgba(138, 184, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-oil-temp-bar {
  stroke: rgba(98, 207, 193, 0.18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Issue #233: tone the in-graph oil text closer to the rest of the app. This
   axis-label rule is scoped to the oil envelope SVG so other charts' axis
   labels keep their own weight. */
.trend-oil-pressure-distribution-svg .trend-svg-axis-label {
  font-weight: 600;
}

.trend-oil-temp-context-label {
  fill: #dcecff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.trend-oil-temp-context-note {
  fill: #8fa2b8;
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0;
}

.trend-oil-temp-median {
  stroke: rgba(187, 250, 240, 0.9);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-temp-median-label {
  fill: #bff9ef;
  stroke: #03101c;
  stroke-width: 2.5px;
  paint-order: stroke fill;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.trend-oil-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-oil-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-oil-stat-strip article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(67, 210, 117, 0.08), transparent 70%),
    rgba(12, 30, 48, 0.72);
}

.trend-oil-stat-strip span,
.trend-oil-stat-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-oil-stat-strip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-oil-owner-note {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(67, 210, 117, 0.22);
  border-radius: 8px;
  background: rgba(67, 210, 117, 0.08);
}

.trend-oil-owner-note strong {
  color: #70f6a2;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-oil-owner-note span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-oil-owner-note.is-watch-source {
  border-color: rgba(255, 103, 86, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 103, 86, 0.13), transparent 70%),
    rgba(255, 193, 87, 0.06);
}

.trend-oil-owner-note.is-watch-source strong {
  color: #ff8b72;
}

.trend-oil-watch-source {
  pointer-events: none;
}

.trend-oil-issue-line {
  stroke: rgba(255, 103, 86, 0.95);
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(255, 103, 86, 0.36));
  vector-effect: non-scaling-stroke;
}

.trend-oil-issue-marker {
  fill: #ff5f55;
  stroke: #ffe2d0;
  stroke-width: 3.2;
  filter: drop-shadow(0 0 9px rgba(255, 103, 86, 0.5));
  vector-effect: non-scaling-stroke;
}

.trend-oil-issue-label,
.trend-oil-issue-value {
  paint-order: stroke fill;
  stroke: #03101c;
  stroke-linejoin: round;
  stroke-width: 3.5px;
  letter-spacing: 0;
}

.trend-oil-issue-label {
  fill: #ff8b72;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.trend-oil-issue-value {
  fill: #fff0dc;
  font-size: 13px;
  font-weight: 950;
}

.trend-oil-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.trend-oil-plot,
.trend-oil-summary {
  min-width: 0;
  border: 1px solid rgba(138, 184, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.28);
}

.trend-oil-plot {
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  padding: 12px 12px 4px;
}

.trend-oil-plot h3,
.trend-oil-summary h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.18;
}

.trend-oil-plot p,
.trend-oil-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.trend-oil-summary {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.trend-oil-summary > div:not(.trend-oil-legend) {
  display: grid;
  gap: 8px;
}

.trend-oil-summary article {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--oil-accent) 34%, rgba(138, 184, 255, 0.16));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--oil-accent) 14%, transparent), transparent 64%),
    rgba(12, 30, 48, 0.62);
}

.trend-oil-summary article strong {
  grid-row: span 2;
  min-width: 0;
  color: var(--oil-accent);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.trend-oil-summary article span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trend-oil-summary article small {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.trend-oil-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.trend-oil-legend span {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.trend-oil-legend i {
  display: block;
  justify-self: start;
}

.trend-oil-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6cc8ee;
}

.trend-oil-legend .band {
  width: 46px;
  height: 17px;
  border-radius: 999px;
  background: #43d275;
}

.trend-oil-legend .line {
  width: 48px;
  height: 3px;
  background: #e7f0f9;
}

.trend-oil-legend .watch {
  position: relative;
  width: 46px;
  height: 17px;
}

.trend-oil-legend .watch::before {
  position: absolute;
  top: 1px;
  left: 17px;
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: #ff5f55;
  box-shadow: 0 0 9px rgba(255, 103, 86, 0.45);
  content: "";
}

.trend-oil-legend .watch::after {
  position: absolute;
  top: 5px;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffe2d0;
  border-radius: 999px;
  background: #ff5f55;
  content: "";
}

.trend-oil-centerline {
  fill: none;
  stroke: rgba(239, 247, 255, 0.95);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-reference {
  stroke: rgba(105, 242, 157, 0.95);
  stroke-width: 1.6;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
}

.trend-oil-reference-label {
  fill: #70f6a2;
  font-size: 13px;
  font-weight: 720;
}

.trend-oil-annotation {
  fill: #ffd85d;
  font-size: 13px;
  font-weight: 950;
}

.trend-oil-annotation-line {
  fill: none;
  stroke: #ffd85d;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trend-oil-sample {
  fill: #74d4f5;
  opacity: 0.82;
  stroke: rgba(2, 8, 15, 0.72);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.trend-oil-sample.status-amber {
  fill: #ffd15e;
}

.trend-oil-sample.status-red {
  fill: #ff776d;
}

.trend-oil-sample.status-muted {
  fill: #9fb0c4;
}

.trend-oil-warm-marker {
  fill: #43d275;
  stroke: #dff9e7;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.trend-oil-callout {
  fill: #edf5ff;
  stroke: #03101c;
  stroke-width: 3.5px;
  paint-order: stroke fill;
  font-size: 13px;
  font-weight: 950;
}

.trend-rhythm-wave {
  fill: none;
  stroke: #ffc247;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-fit {
  fill: none;
  opacity: 0.72;
  stroke: #dbe7f4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-floor {
  stroke: #ffd241;
  stroke-dasharray: 8 7;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-floor-label,
.trend-rhythm-legend text {
  fill: #d8e5f4;
  font-size: 9px;
  font-weight: 850;
}

.trend-rhythm-floor-label {
  fill: #ffd241;
  text-anchor: end;
}

/* EGT Rhythm Signature on the Overview (egt-rhythm-signature.js) — the real
   per-cylinder EGT residual waveform. Reuses .trend-rhythm-wave and
   .trend-rhythm-floor; these add the floor band, zero line, faint peer cylinders,
   and the line-swatch legend. */
.egt-rhythm-svg {
  display: block;
  width: 100%;
  height: auto;
}

.egt-rhythm-floor-band {
  fill: rgba(255, 210, 65, 0.06);
}

.egt-rhythm-zero {
  stroke: rgba(219, 231, 244, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.egt-rhythm-peer {
  fill: none;
  stroke: rgba(159, 176, 196, 0.32);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.egt-rhythm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}

.egt-rhythm-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.egt-rhythm-legend-chip i {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 10px;
  display: inline-block;
  border: 0;
}

.egt-rhythm-legend-chip i::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px solid currentColor;
  border-radius: 999px;
  transform: translateY(-50%);
}

.egt-rhythm-legend-wave { color: #ffc247; }
.egt-rhythm-legend-peer { color: rgba(159, 176, 196, 0.6); }
.egt-rhythm-legend-floor { color: #ffd241; }

.egt-rhythm-legend-chip .egt-rhythm-legend-floor::before {
  border-top-style: dashed;
  border-top-width: 2px;
}

.trend-rhythm-stem {
  opacity: 0.72;
  stroke: #62ce4d;
  stroke-width: 4.5;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-stem.is-strongest {
  opacity: 0.95;
  stroke: #ff6a4d;
  stroke-width: 5.5;
}

.trend-rhythm-stem.is-selected {
  opacity: 1;
  stroke: #ffc247;
  stroke-width: 5.8;
}

.trend-rhythm-dot {
  cursor: pointer;
}

.trend-rhythm-dot:hover,
.trend-rhythm-dot:focus-visible,
.trend-rhythm-dot.is-selected {
  outline: none;
  stroke: #f4f8ff;
  stroke-width: 3.3;
  filter: drop-shadow(0 0 8px rgba(255, 194, 71, 0.42));
}

.trend-rhythm-date {
  fill: #8fa3bb;
  font-size: 9.5px;
  font-weight: 720;
  opacity: 0.88;
  text-anchor: middle;
}

.trend-rhythm-amplitude-label {
  fill: #cbd8e7;
  stroke: #03101c;
  stroke-width: 3px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 9.5px;
  font-weight: 850;
  text-anchor: middle;
}

.trend-rhythm-window-axis {
  fill: #8fa3bb;
  font-size: 10px;
  font-weight: 780;
  opacity: 0.82;
  text-anchor: middle;
}

.trend-rhythm-time-tick {
  opacity: 0.44;
  stroke: rgba(219, 231, 244, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-time-label {
  fill: #8fa3bb;
  font-size: 9px;
  font-weight: 760;
  opacity: 0.82;
  text-anchor: middle;
}

.trend-rhythm-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.trend-rhythm-readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-rhythm-readout article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 194, 71, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 194, 71, 0.08), transparent 72%),
    rgba(12, 30, 48, 0.68);
}

.trend-rhythm-readout span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-rhythm-readout strong {
  overflow: hidden;
  color: #f3f8ff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-rhythm-owner-note {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 19, 32, 0.64);
  color: #c8d6e6;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.trend-gami-line {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trend-turbo-chart-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.trend-turbo-engine-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trend-turbo-engine-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.trend-turbo-engine-panel h3 {
  margin: 0;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.trend-turbo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #9fb0c4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-turbo-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.trend-turbo-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #8aa8ff;
}

.trend-turbo-legend .is-map i,
.trend-turbo-line.is-map {
  background: #58c7ff;
  stroke: #58c7ff;
}

.trend-turbo-legend .is-tit i,
.trend-turbo-line.is-tit {
  background: #ffc46a;
  stroke: #ffc46a;
}

.trend-turbo-legend .is-limit i {
  background: #ff8378;
}

.trend-turbo-line {
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trend-turbo-whisker {
  fill: none;
  stroke-width: 1.4;
  opacity: 0.72;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.trend-turbo-whisker.is-map {
  stroke: rgba(88, 199, 255, 0.68);
}

.trend-turbo-whisker.is-tit {
  stroke: rgba(255, 196, 106, 0.68);
}

.trend-turbo-callout {
  fill: #c9d7eb;
  font-size: 12px;
  font-weight: 900;
}

.trend-turbo-detail {
  display: grid;
  gap: 9px;
}

.trend-turbo-owner-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 19, 32, 0.62);
}

.trend-turbo-owner-note strong {
  flex: 0 0 auto;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
}

.trend-turbo-owner-note span {
  color: #c8d6e6;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.trend-turbo-chart-key {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 196, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 196, 106, 0.07);
}

.trend-turbo-chart-key strong {
  color: #ffc46a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-turbo-chart-key span {
  min-width: 0;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.trend-turbo-point-detail {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(160px, 1fr) minmax(220px, 1.45fr);
  gap: 8px;
  min-width: 0;
}

.trend-turbo-selected-flight,
.trend-turbo-selected-status,
.trend-turbo-selected-meta {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 19, 32, 0.62);
}

.trend-turbo-selected-flight span,
.trend-turbo-selected-status span,
.trend-turbo-selected-meta small {
  display: block;
  overflow: hidden;
  color: #8ea2bd;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-turbo-selected-flight strong,
.trend-turbo-selected-status strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #f3f8ff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-turbo-selected-flight small,
.trend-turbo-selected-status small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #c8d6e6;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-turbo-selected-status {
  position: relative;
  padding-left: 32px;
}

.trend-turbo-selected-status i {
  position: absolute;
  top: 14px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9fb0c4;
  box-shadow: 0 0 0 4px rgba(159, 176, 196, 0.12);
}

.trend-turbo-selected-status.status-green i {
  background: #8fea7c;
  box-shadow: 0 0 0 4px rgba(143, 234, 124, 0.13);
}

.trend-turbo-selected-status.status-amber i {
  background: #ffc46a;
  box-shadow: 0 0 0 4px rgba(255, 196, 106, 0.14);
}

.trend-turbo-selected-status.status-red i {
  background: #ff8378;
  box-shadow: 0 0 0 4px rgba(255, 131, 120, 0.15);
}

.trend-turbo-selected-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-turbo-selected-meta span {
  min-width: 0;
}

.trend-turbo-selected-meta b {
  display: block;
  overflow: hidden;
  color: #f3f8ff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .trend-turbo-owner-note,
  .trend-turbo-chart-key,
  .trend-turbo-point-detail {
    grid-template-columns: 1fr;
  }

  .trend-turbo-owner-note {
    display: grid;
  }

  .trend-turbo-selected-meta {
    grid-template-columns: 1fr;
  }
}

.trend-picture-empty {
  display: grid;
  place-self: center;
  gap: 8px;
  max-width: 560px;
  padding: 18px;
  text-align: center;
}

.trend-picture-empty strong {
  color: var(--text);
  font-size: 18px;
}

.trend-picture-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.trend-graph-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.trend-graph-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.48);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trend-graph-card:hover,
.trend-graph-card:focus-visible,
.trend-graph-card.is-active {
  border-color: rgba(138, 184, 255, 0.62);
  background: rgba(47, 136, 255, 0.12);
  outline: none;
}

.trend-graph-card.is-active {
  box-shadow: inset 0 0 0 1px rgba(138, 184, 255, 0.22), inset 3px 0 0 rgba(138, 184, 255, 0.82);
}

.trend-graph-card-top {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.trend-graph-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-graph-card em {
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-graph-card em.status-green {
  color: #8fea7c;
}

.trend-graph-card em.status-amber {
  color: #ffc46a;
}

.trend-graph-card em.status-red {
  color: #ff8378;
}

.trend-graph-card em.status-muted {
  color: var(--muted);
}

.trend-graph-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-graph-card-chart {
  display: block;
  overflow: hidden;
  height: 108px;
  border-radius: 6px;
  background: rgba(2, 8, 15, 0.34);
}

.trend-graph-card-chart .trend-main-svg {
  /* Clamp every gallery thumbnail to the card's 108px chart band. Without this,
     width:100% + height:auto scales a fixed-viewBox SVG past 108px whenever the
     card is wider than its viewBox (2-column layout), and the card's
     overflow:hidden crops the bottom lanes (e.g. Cyl 4 vanishing from the CHT
     distribution thumbnail). */
  height: 108px;
  min-height: 108px;
}

.trend-graph-card-chart .trend-rhythm-svg {
  height: 108px;
  min-height: 108px;
}

.trend-graph-card-chart .trend-heat-profile-svg {
  height: 108px;
  min-height: 108px;
}

.trend-support-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#view-trends.is-analyzing > :not(.trend-analysis-overlay) {
  filter: grayscale(0.55) brightness(0.58);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

.trend-analysis-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  min-height: 100%;
  padding: clamp(72px, 16vh, 150px) 16px 32px;
  background: rgba(4, 11, 19, 0.58);
  backdrop-filter: blur(3px);
}

.trend-analysis-overlay[hidden] {
  display: none;
}

/* Reuse the shared gauge card (.dashboard-loading-card) for the trends loader;
   just give it a positioning context for the cancel button + a width cap and
   keep the title clear of the cancel button. */
.trend-analysis-card {
  position: relative;
  width: min(620px, 100%);
}

.trend-analysis-card .dashboard-loading-copy {
  padding-right: 26px;
}

.trend-analysis-cancel {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.trend-analysis-cancel:hover,
.trend-analysis-cancel:focus-visible {
  border-color: rgba(138, 184, 255, 0.68);
  background: rgba(138, 184, 255, 0.13);
  color: #ffffff;
  outline: none;
}

.trend-analysis-cancel svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

#view-dashboard {
  position: relative;
}

.dashboard-loading-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  opacity: 1;
  pointer-events: none;
  z-index: 50;
  width: min(92vw, 620px);
  transition: opacity 150ms ease, transform 150ms ease;
}

#view-dashboard.is-flight-loading > :not(.dashboard-loading-overlay) {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

#view-dashboard.is-flight-loading .dashboard-loading-overlay {
  display: block;
}

#view-dashboard.is-flight-loading-exiting .dashboard-loading-overlay {
  opacity: 0;
  transform: translate(-50%, -48%);
}

.dashboard-loading-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(138, 184, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 28, 46, 0.98), rgba(9, 18, 31, 0.96)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.dashboard-loading-instrument {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(247, 181, 87, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(247, 181, 87, 0.2) 0 3px, transparent 4px),
    conic-gradient(from 225deg, rgba(74, 222, 128, 0.78), rgba(247, 181, 87, 0.78), rgba(239, 68, 68, 0.55), rgba(138, 184, 255, 0.18) 0);
}

.dashboard-loading-instrument::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #07111d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dashboard-loading-sweep {
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(138, 184, 255, 0.16);
  border-top-color: #8ab8ff;
  border-radius: 50%;
  animation: dashboardLoadingSweep 1.2s linear infinite;
}

/* Must follow the base rule above: the global reduced-motion block lives earlier
   in this file, so an equal-specificity override there loses the cascade. */
@media (prefers-reduced-motion: reduce) {
  .dashboard-loading-sweep,
  .dashboard-loading-needle {
    animation: none;
  }
}

.dashboard-loading-needle {
  --dashboard-loading-needle-offset: -13px;
  position: absolute;
  z-index: 1;
  width: 2px;
  height: 27px;
  transform-origin: bottom center;
  transform: translateY(var(--dashboard-loading-needle-offset)) rotate(44deg);
  border-radius: 999px;
  background: #f7b557;
  box-shadow: 0 0 14px rgba(247, 181, 87, 0.42);
  animation: dashboardLoadingNeedle 6s linear infinite;
}

.dashboard-loading-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-loading-copy .eyebrow {
  margin: 0;
}

.dashboard-loading-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-loading-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-loading-meta {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dashboard-loading-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-loading-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-loading-meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-loading-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-loading-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-loading-steps li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(138, 184, 255, 0.5);
  border-radius: 50%;
  background: rgba(138, 184, 255, 0.16);
}

.dashboard-loading-steps li.is-active {
  border-color: rgba(138, 184, 255, 0.4);
  color: var(--text);
  background: rgba(138, 184, 255, 0.08);
}

.dashboard-loading-steps li.is-active::before {
  border-color: #8ab8ff;
  background: #8ab8ff;
  box-shadow: 0 0 0 5px rgba(138, 184, 255, 0.12);
}

.dashboard-loading-steps li.is-complete {
  color: rgba(226, 232, 240, 0.82);
}

.dashboard-loading-steps li.is-complete::before {
  border-color: rgba(74, 222, 128, 0.8);
  background: #4ade80;
}

#view-dashboard.is-flight-loading-error .dashboard-loading-card {
  border-color: rgba(239, 68, 68, 0.4);
}

#view-dashboard.is-flight-loading-error .dashboard-loading-instrument {
  border-color: rgba(239, 68, 68, 0.5);
}

#view-dashboard.is-flight-loading-error .dashboard-loading-sweep {
  animation: none;
  border-color: rgba(239, 68, 68, 0.2);
  border-top-color: #ef4444;
}

#view-dashboard.is-flight-loading-error .dashboard-loading-needle {
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  animation: none;
}

.dashboard-loading-steps li.is-error {
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--text);
  background: rgba(239, 68, 68, 0.1);
}

.dashboard-loading-steps li.is-error::before {
  border-color: #ef4444;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

@keyframes dashboardLoadingSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboardLoadingNeedle {
  to {
    transform: translateY(var(--dashboard-loading-needle-offset)) rotate(404deg);
  }
}

.trend-controls {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.trend-controls label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend-metric-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.trend-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.trend-control-label {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.trend-control-label span {
  margin-left: 10px;
  color: rgba(185, 199, 215, 0.72);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.trend-metric-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.trend-metric-tile {
  display: grid;
  gap: 6px;
  align-content: start;
  align-items: start;
  position: relative;
  min-height: 96px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trend-metric-tile:hover,
.trend-metric-tile:focus-visible {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.12);
  outline: none;
}

.trend-metric-tile.is-active {
  border-color: rgba(142, 197, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(47, 136, 255, 0.2), rgba(5, 14, 24, 0.42) 70%),
    rgba(5, 14, 24, 0.48);
  box-shadow: 0 0 0 1px rgba(142, 197, 255, 0.28), inset 3px 0 0 rgba(142, 197, 255, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.trend-metric-tile.status-red {
  border-color: rgba(255, 73, 61, 0.32);
}

.trend-metric-tile.status-amber {
  border-color: rgba(255, 159, 28, 0.32);
}

.trend-metric-tile.status-green {
  border-color: rgba(98, 206, 77, 0.24);
}

.trend-metric-tile strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-metric-evidence {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-metric-active-label {
  align-self: end;
  margin-top: auto;
  color: #cfe4ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.trend-metric-tile .engine-status {
  justify-self: start;
  margin: 0;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
}

.trend-story-grid {
  display: grid;
  grid-template-areas: "timeline";
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.trend-story-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 136, 255, 0.08), rgba(255, 255, 255, 0.018) 48%),
    rgba(14, 25, 38, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trend-story-card {
  grid-area: story;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "review";
  gap: 16px;
  align-items: start;
  overflow: hidden;
  padding: 18px;
}

.trend-hero-grid .trend-story-card {
  grid-area: auto;
}

.trend-story-card.has-story-visual {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "main"
    "review";
}

.trend-story-main {
  display: grid;
  grid-area: main;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.trend-story-card.has-story-visual .trend-story-main {
  grid-area: main;
  position: relative;
  z-index: 1;
}

.trend-story-card.has-story-visual .trend-story-explanation {
  grid-area: review;
  position: relative;
  z-index: 1;
}

.trend-story-card.has-story-visual .trend-review-panel {
  grid-area: review;
  position: relative;
  z-index: 1;
}

.trend-story-card.status-green {
  border-color: rgba(98, 206, 77, 0.24);
}

.trend-story-card.status-amber {
  border-color: rgba(255, 159, 28, 0.38);
}

.trend-story-card.status-red {
  border-color: rgba(255, 73, 61, 0.38);
}

.trend-story-card.status-muted {
  border-color: rgba(150, 166, 183, 0.24);
}

.trend-story-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.trend-story-card.has-story-visual .trend-story-copy {
  max-width: 780px;
}

.trend-story-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.trend-story-kicker > span:not(.engine-status) {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(5, 13, 23, 0.42);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-story-card h2,
.trend-review-panel h2 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
}

.trend-story-card h2 {
  font-size: clamp(22px, 2vw, 30px);
  max-width: 760px;
}

.trend-review-panel h2 {
  font-size: 22px;
}

.trend-story-card p {
  max-width: 820px;
  margin: 0;
  color: #dbe7f4;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.trend-story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
}

.trend-story-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 13, 23, 0.46);
}

.trend-story-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-story-facts strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-next-action {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 12, 22, 0.42);
}

.trend-next-action span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-next-action strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.trend-next-action p {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trend-review-panel {
  grid-area: review;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.trend-review-panel header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.trend-review-panel header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-review-list {
  display: grid;
  gap: 8px;
}

.trend-story-explanation {
  display: grid;
  gap: 10px;
}

.trend-card-visual {
  display: grid;
  place-items: center;
  position: absolute;
  top: -22px;
  right: -18px;
  z-index: 0;
  width: min(52%, 936px);
  min-height: 100%;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 62% 34%, rgba(47, 136, 255, 0.18), transparent 58%),
    linear-gradient(90deg, transparent, rgba(5, 14, 24, 0.16) 40%, rgba(5, 14, 24, 0.04));
  box-shadow: none;
  pointer-events: none;
}

.trend-card-visual[hidden] {
  display: none;
}

.trend-story-card.has-story-visual .trend-card-visual {
  grid-area: visual;
}

.trend-card-visual img {
  justify-self: end;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.62;
  filter: saturate(0.88) contrast(0.92) drop-shadow(0 22px 44px rgba(0, 0, 0, 0.4));
  -webkit-mask-image:
    linear-gradient(to left, #000 58%, rgba(0, 0, 0, 0.42) 76%, transparent 100%),
    linear-gradient(to right, #000 78%, transparent 100%),
    linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.72) 86%, transparent 100%),
    linear-gradient(to top, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, #000 58%, rgba(0, 0, 0, 0.42) 76%, transparent 100%),
    linear-gradient(to right, #000 78%, transparent 100%),
    linear-gradient(to bottom, #000 70%, rgba(0, 0, 0, 0.72) 86%, transparent 100%),
    linear-gradient(to top, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.trend-card-visual.is-data-quality-visual img {
  opacity: 0.56;
  filter: saturate(0.9) contrast(0.92) drop-shadow(0 22px 44px rgba(0, 0, 0, 0.36));
}

.trend-story-card.has-story-visual .trend-explanation {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-review-panel {
  display: grid;
  gap: 10px;
  grid-area: review;
  min-width: 0;
}

.trend-story-card.has-story-visual .trend-review-panel .trend-story-explanation,
.trend-review-panel .trend-story-explanation {
  grid-area: auto;
  position: static;
  z-index: auto;
}

.trend-review-panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.trend-review-panel-header .eyebrow {
  margin-bottom: 3px;
}

.trend-review-panel-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.trend-review-panel-header > span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.42);
  color: #dbe7f4;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-review-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trend-review-item.is-static {
  cursor: default;
}

.trend-review-item:hover,
.trend-review-item:focus-visible {
  border-color: rgba(47, 136, 255, 0.62);
  background: rgba(47, 136, 255, 0.12);
  outline: none;
}

.trend-review-item.is-static:hover {
  border-color: var(--line-soft);
  background: rgba(5, 14, 24, 0.38);
}

.trend-review-item.is-static.status-red:hover {
  border-color: rgba(255, 73, 61, 0.3);
}

.trend-review-item.is-static.status-amber:hover {
  border-color: rgba(255, 159, 28, 0.3);
}

.trend-review-item.is-static.status-green:hover {
  border-color: rgba(98, 206, 77, 0.24);
}

.trend-review-item.status-red {
  border-color: rgba(255, 73, 61, 0.3);
}

.trend-review-item.status-amber {
  border-color: rgba(255, 159, 28, 0.3);
}

.trend-review-item.status-green {
  border-color: rgba(98, 206, 77, 0.24);
}

.trend-review-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-review-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trend-review-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-review-topline .engine-status {
  margin-bottom: 0;
}

.trend-review-topline em {
  color: var(--muted);
  font-style: normal;
}

.trend-review-topline strong {
  margin-left: auto;
  color: var(--text);
  font-size: 11px;
}

.trend-review-title {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-review-note {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-review-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
}

.trend-review-empty strong {
  color: var(--text);
  font-size: 14px;
}

.trend-review-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.trend-explanation > div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
}

.trend-explanation span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-explanation p,
.trend-explanation ul {
  margin: 0;
  color: #dbe7f4;
  font-size: 14.3px;
  line-height: 1.38;
}

.trend-explanation ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.trend-explanation li::marker {
  color: var(--muted);
}

.trend-chart-panel {
  grid-area: timeline;
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.trend-sample-intro {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.trend-sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 360px;
}

.trend-sample-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.42);
  color: #dbe7f4;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
}

.trend-sample-card {
  display: grid;
  gap: 10px;
  grid-template-rows: auto minmax(190px, 1fr);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
}

.trend-sample-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.trend-sample-card header > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trend-sample-card strong,
.trend-sample-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-sample-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.trend-sample-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trend-sample-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.trend-sample-score {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.trend-sample-open {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.trend-sample-canvas {
  width: 100%;
  height: 190px;
  border-radius: 6px;
  background: rgba(2, 8, 15, 0.42);
}

.trend-sample-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 14, 24, 0.38);
  font-size: 14px;
  line-height: 1.4;
}


.trend-findings-summary-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
}

.trend-findings-summary-copy p {
  margin: 0;
  color: #dbe7f4;
  font-size: 14.5px;
  line-height: 1.62;
}

.trend-briefing-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.38);
}

.trend-briefing-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-briefing-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-briefing-item p {
  color: #dbe7f4;
  font-size: 13px;
  line-height: 1.4;
}

.trend-gami-aggregate-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px;
  border-color: rgba(45, 212, 191, 0.22);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(255, 159, 28, 0.035) 54%, rgba(7, 15, 25, 0.88)),
    rgba(10, 22, 34, 0.92);
}

.trend-gami-aggregate-panel[hidden] {
  display: none;
}

.trend-gami-aggregate-panel .panel-header {
  padding: 0;
}

.trend-gami-aggregate-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.trend-gami-verdict {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.trend-gami-verdict > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 112px;
  padding: 11px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.46);
}

.trend-gami-verdict span,
.trend-gami-chart-block header span,
.trend-gami-detail-grid header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-gami-verdict strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.22;
}

.trend-gami-verdict strong.green {
  color: #8fea7c;
}

.trend-gami-verdict strong.amber {
  color: #ffc46a;
}

.trend-gami-verdict strong.red {
  color: #ff8378;
}

.trend-gami-verdict small {
  overflow-wrap: anywhere;
  color: #b9c7d7;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.28;
}

.trend-gami-aggregate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 12px;
  min-width: 0;
}

.trend-gami-chart-block,
.trend-gami-detail-grid > section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.38);
}

.trend-gami-chart-block header,
.trend-gami-detail-grid header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.trend-gami-chart-block header strong,
.trend-gami-detail-grid header strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-gami-spread-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 210px;
}

.trend-gami-plot-bg {
  fill: rgba(2, 8, 15, 0.48);
  stroke: rgba(255, 255, 255, 0.06);
}

.trend-gami-axis,
.trend-gami-threshold {
  vector-effect: non-scaling-stroke;
}

.trend-gami-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.trend-gami-threshold {
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.trend-gami-threshold.is-target {
  stroke: rgba(98, 206, 77, 0.72);
}

.trend-gami-threshold.is-watch {
  stroke: rgba(255, 159, 28, 0.68);
}

.trend-gami-threshold.is-review {
  stroke: rgba(255, 73, 61, 0.68);
}

.trend-gami-threshold-label,
.trend-gami-axis-label,
.trend-gami-x-label {
  fill: #b9c7d7;
  font-size: 12px;
  font-weight: 800;
}

.trend-gami-spread-line {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trend-gami-point circle {
  stroke: rgba(3, 10, 18, 0.92);
  stroke-width: 2;
}

.trend-gami-point.status-green circle {
  fill: #62ce4d;
}

.trend-gami-point.status-amber circle {
  fill: #ff9f1c;
}

.trend-gami-point.status-red circle {
  fill: #ff493d;
}

.trend-gami-point.status-muted circle {
  fill: #96a6b7;
}

.trend-gami-cylinder-bars {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.trend-gami-cylinder-bar-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.75fr) minmax(140px, 1fr) minmax(86px, auto);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.trend-gami-cylinder-name,
.trend-gami-cylinder-bar-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-gami-cylinder-bar-row strong {
  text-align: right;
}

.trend-gami-cylinder-track {
  position: relative;
  display: block;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.trend-gami-cylinder-track::before {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.trend-gami-cylinder-track i {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--gami-bar-left);
  width: max(3px, var(--gami-bar-width));
  border-radius: 4px;
  background: #2dd4bf;
}

.trend-gami-cylinder-bar-row.is-early .trend-gami-cylinder-track i {
  background: #ff9f1c;
}

.trend-gami-cylinder-bar-row.is-late .trend-gami-cylinder-track i {
  background: #60a5fa;
}

.trend-gami-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.trend-gami-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

.trend-gami-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.trend-gami-sweep-table {
  min-width: 560px;
}

.trend-gami-table th,
.trend-gami-table td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7f4;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.trend-gami-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-gami-table .engine-status {
  margin: 0;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.trend-gami-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.trend-table tbody tr {
  cursor: pointer;
}

.trend-table {
  min-width: 1180px;
}

.trend-table th:nth-child(1),
.trend-table td:nth-child(1),
.trend-table th:nth-child(2),
.trend-table td:nth-child(2) {
  position: sticky;
  z-index: 2;
  background: #101d2b;
}

.trend-table th:nth-child(1),
.trend-table td:nth-child(1) {
  left: 0;
  min-width: 96px;
  width: 96px;
}

.trend-table th:nth-child(2),
.trend-table td:nth-child(2) {
  left: 96px;
  min-width: 156px;
  width: 156px;
  box-shadow: 1px 0 0 rgba(142, 197, 255, 0.14);
}

.trend-table th:nth-child(1),
.trend-table th:nth-child(2) {
  z-index: 4;
  background: #132131;
}

.trend-table-wrap {
  position: relative;
}

.trend-table-wrap::after {
  position: sticky;
  right: 0;
  display: block;
  float: right;
  width: 28px;
  height: 0;
  content: "";
  pointer-events: none;
  box-shadow: -18px 0 22px rgba(8, 15, 24, 0.44);
}

.trend-table tbody tr:hover {
  background: rgba(47, 136, 255, 0.12);
}

.trend-table tbody tr:hover td:nth-child(1),
.trend-table tbody tr:hover td:nth-child(2) {
  background: #14283c;
}

.trend-table tbody tr:focus-visible {
  outline: 2px solid rgba(142, 197, 255, 0.82);
  outline-offset: -2px;
}

.trend-table tbody tr.is-return-target {
  background: rgba(47, 136, 255, 0.18);
  box-shadow: inset 3px 0 0 rgba(142, 197, 255, 0.9);
}

.trend-table tbody tr.is-return-target td:nth-child(1),
.trend-table tbody tr.is-return-target td:nth-child(2) {
  background: #17304a;
}

.trend-table-panel {
  overflow: hidden;
}

.trend-evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trend-evidence-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.trend-evidence-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(138, 184, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.42);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-evidence-focus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(47, 136, 255, 0.32);
  border-radius: 8px;
  background: rgba(47, 136, 255, 0.12);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.trend-evidence-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-evidence-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trend-table-control-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-table-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.trend-table-option {
  min-height: 26px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.trend-table-option:hover,
.trend-table-option:focus-visible {
  background: rgba(47, 136, 255, 0.12);
  color: var(--text);
  outline: none;
}

.trend-table-option.is-active {
  background: rgba(47, 136, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(138, 184, 255, 0.34);
  color: #fff;
}

.trend-table-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.trend-score-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.trend-sensitivity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-sensitivity-control .sensitivity-inline {
  margin-left: 0;
}

.trend-score {
  font-weight: 800;
}

.trend-table th.is-focused-column,
.trend-table td.is-focused-column {
  background: rgba(47, 136, 255, 0.12);
  box-shadow: inset 2px 0 0 rgba(142, 197, 255, 0.55), inset -1px 0 0 rgba(142, 197, 255, 0.16);
}

.trend-table th:nth-child(1).is-focused-column,
.trend-table td:nth-child(1).is-focused-column,
.trend-table th:nth-child(2).is-focused-column,
.trend-table td:nth-child(2).is-focused-column {
  background: #132b46;
}

.trend-table tbody tr.is-focus-row {
  background: rgba(255, 159, 28, 0.08);
}

.trend-table tbody tr.is-focus-row td:nth-child(1),
.trend-table tbody tr.is-focus-row td:nth-child(2) {
  background: #1f2530;
}

.trend-table tbody tr.is-focus-row td:first-child {
  box-shadow: inset 3px 0 0 rgba(255, 159, 28, 0.72);
}

.trend-table tbody tr.is-focus-row:hover {
  background: rgba(255, 159, 28, 0.13);
}

.trend-table tbody tr.is-focus-row:hover td:nth-child(1),
.trend-table tbody tr.is-focus-row:hover td:nth-child(2) {
  background: #252a32;
}

.placeholder-view .panel {
  max-width: 760px;
}

@media (max-width: 1100px) {
  .summary-band,
  .overview-score-row,
  .multi-engine-overview,
  .engine-multi-summary,
  .analysis-grid,
  .comparison-hero,
  .comparison-grid,
  .trend-hero-grid,
  .trend-story-grid {
    grid-template-columns: 1fr;
  }

  /* Phase 5h: when the rail stacks above the chart, its tiles flow as a wrapping chip grid
     instead of one tall column; the collapsed stable group spans the full row. */
  .trend-review-tiles {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  /* Stacked layout: the rail sits above the chart, so stickiness would only
     fight the normal document flow. */
  .trend-visual-grid > .trend-toolbar.panel.is-rail-sticky {
    position: static;
  }

  .trend-rail-stable {
    grid-column: 1 / -1;
  }

  .trend-rail-stable[open] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
  }

  .trend-rail-stable[open] summary {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .trend-rail-stable .trend-metric-tile {
    margin-top: 0;
  }

  .trend-gami-verdict,
  .trend-gami-aggregate-grid,
  .trend-gami-detail-grid,
  .trend-visual-grid,
  .trend-oil-stage {
    grid-template-columns: 1fr;
  }

  .trend-picture-panel {
    grid-template-rows: auto auto auto minmax(240px, auto) auto;
  }

  .trend-distribution-stage,
  .trend-oil-stage {
    grid-template-columns: 1fr;
  }

  .trend-overall-panel,
  .trend-overall-mix-grid {
    grid-template-columns: 1fr;
  }

  .trend-overall-mix-header {
    align-items: stretch;
    flex-direction: column;
  }

  .trend-overall-score-pill {
    justify-content: start;
    min-width: 0;
  }

  .trend-overall-score-dial {
    min-height: 180px;
  }

  .trend-distribution-lane-summary > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-review-tiles {
    max-height: none;
    overflow: visible;
  }

  .trend-graph-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-story-grid {
    grid-template-areas: "timeline";
  }

  .trend-findings-summary-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-card-visual {
    position: relative;
    top: auto;
    right: auto;
    grid-area: visual;
    width: 100%;
    margin-bottom: 4px;
  }

  .trend-card-visual img {
    width: min(100%, 560px);
    opacity: 0.9;
  }

  .trend-explanation {
    grid-template-columns: 1fr;
  }

  .trend-story-card.has-data-quality-visual .trend-explanation {
    grid-template-columns: 1fr;
  }

  .summary-band {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: start;
  }

  .operating-context-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .overview-score-row .multi-engine-overview {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .score-card[data-health-card] {
    grid-column: auto;
  }

  .versus {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wide-metric {
    grid-column: span 3;
  }

  .insight-column,
  .finding-panel {
    height: auto;
    max-height: none;
  }

  .finding-review-card.is-review-collapsed {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finding-review-card.is-review-collapsed .finding-panel-header {
    align-items: center;
    flex-direction: row;
  }

  .finding-review-card.is-review-collapsed .finding-meta {
    white-space: normal;
  }

  .finding-review-card.is-review-collapsed .finding-disclosure-toggle {
    width: 100%;
  }

}

@media (max-width: 1320px) {
  .engine-overview-panel > .panel-header,
  .engine-overview-panel > .engine-scope-switch,
  .engine-overview-panel > .engine-multi-summary,
  .engine-overview-panel > .engine-triage-layout,
  .engine-overview-panel > .engine-event-timeline,
  .engine-overview-panel > .engine-supporting-checks {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-content: stretch;
    row-gap: 14px;
  }

  .topbar-primary {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .flight-control-row,
  .flight-picker,
  .top-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .flight-control-row {
    justify-self: stretch;
    width: 100%;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .topbar-user {
    margin-left: auto;
  }
}

@media (max-width: 920px) {
  .workspace {
    padding: 0 14px 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .topbar {
    display: grid;
  }

  .brand {
    grid-template-columns: 58px max-content;
  }

  .brand-mark,
  .brand-mark img {
    width: 58px;
    height: 58px;
  }

  .top-nav {
    gap: 14px;
  }

  .flight-control-row {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-end;
  }

  .flight-picker {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions button {
    flex: 1;
  }

  .topbar-user {
    margin-left: 0;
  }

  .flight-adjacent-actions .icon-action,
  .top-actions .icon-action {
    flex: 0 0 27.6px;
  }

  .tabs {
    gap: 2px 4px;
  }

  .tab {
    min-height: 36px;
    padding: 7px 9px 8px;
    font-size: 11px;
  }

  .scope-switch.is-multi-engine {
    align-items: stretch;
  }

  .scope-engine-group {
    flex: 1 1 100%;
  }

  .scope-engine-divider {
    display: none;
  }

  .dashboard-review-context {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-review-primary strong {
    white-space: normal;
  }

  .dashboard-review-details {
    justify-content: flex-start;
  }

  .report-tabs-row {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .dashboard-flight-picker {
    flex: 1 1 260px;
    margin-left: 0;
  }

  .dashboard-flight-picker select {
    width: 100%;
  }

  .dashboard-flight-menu {
    width: 100%;
  }

  .dashboard-flight-menu-panel {
    width: 100%;
  }

  .sensitivity-inline {
    margin-left: 0;
    flex-wrap: wrap;
    width: auto;
    max-width: calc(100vw - 56px);
  }

  .sensitivity-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .playback-top-strip,
  .playback-monitor-grid {
    grid-template-columns: 1fr;
  }

  .playback-cylinder-core {
    grid-row: 1;
  }

  .playback-tile-stack {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .playback-tile {
    min-height: 51px;
  }

  .special-tests-header,
  .gami-sweep-workspace {
    grid-template-columns: 1fr;
  }

  .gami-sweep-workspace:has(.special-test-saved-list:not(:empty)) {
    grid-template-columns: 1fr;
  }

  .gami-sweep-saved-column {
    grid-column: 1;
    grid-row: auto;
  }

  .special-test-result-focus,
  .special-test-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .special-test-diagnostic-readout {
    grid-column: 1 / -1;
  }

  .special-test-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .workspace {
    padding: 0 14px 18px;
  }

  .trend-picture-actions {
    justify-content: flex-start;
    flex: 1 1 100%;
    width: 100%;
  }

  .trend-engine-controls,
  .trend-cylinder-controls {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .trend-heat-stat-strip,
  .trend-overall-stat-strip,
  .trend-distribution-stat-strip,
  .trend-cooling-detail .trend-heat-stat-strip,
  .trend-oil-stat-strip,
  .trend-distribution-lane-summary > div {
    grid-template-columns: 1fr;
  }

  .trend-heat-owner-note,
  .trend-cooling-owner-note,
  .trend-cht-cooling-owner-note,
  .trend-induction-owner-note,
  .trend-electrical-owner-note,
  .trend-sensor-owner-note,
  .trend-oil-owner-note,
  .trend-metric-review-strip,
  .trend-chart-review-grid {
    grid-template-columns: 1fr;
  }

  .trend-distribution-stage,
  .trend-cooling-stage,
  .trend-oil-stage {
    padding: 9px;
  }

  .trend-distribution-plot,
  .trend-cooling-plot,
  .trend-distribution-lane-summary,
  .trend-oil-plot,
  .trend-oil-summary {
    padding: 10px;
  }

  .trend-cooling-plot-header {
    display: grid;
  }

  .trend-cooling-legend {
    justify-content: flex-start;
    min-width: 0;
  }

  .trend-cooling-margin-threshold-legend,
  .trend-cht-cooling-legend,
  .trend-egt-balance-legend {
    justify-content: flex-start;
  }

  .trend-cooling-point-detail {
    grid-template-columns: 1fr;
  }

  .trend-cooling-cylinder-breakdown {
    justify-content: flex-start;
  }

  #aircraftFlightsPanel {
    max-height: none;
  }

  .aircraft-flights-heading {
    display: grid;
    align-items: start;
  }

  .aircraft-flights-toolbar {
    align-items: stretch;
  }

  .aircraft-flights-search,
  .aircraft-flights-filter-field,
  .aircraft-flights-segmented {
    flex: 1 1 100%;
  }

  .aircraft-flights-segmented {
    overflow-x: auto;
  }

  .aircraft-flights-table {
    min-width: 0;
  }

  .aircraft-flights-table thead {
    display: none;
  }

  .special-test-result-summary,
  .special-test-result-focus,
  .special-test-overview-grid,
  .special-test-spread-hero,
  .special-test-diagnostic-readout dl,
  .special-test-quality-list,
  .special-test-peak-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .gami-procedure-cue-row {
    grid-template-columns: 1fr;
  }

  .gami-procedure-cue-help {
    white-space: normal;
  }

  .gami-sweep-window-controls {
    grid-template-columns: repeat(2, minmax(128px, 150px));
    width: min(100%, 316px);
  }

  .special-test-actions {
    grid-template-columns: minmax(104px, 1fr) 72px 30px;
  }

  .special-test-spread-hero b {
    justify-self: start;
  }

  .special-test-peak-heading {
    display: none !important;
  }

  .aircraft-flights-table,
  .aircraft-flights-table tbody,
  .aircraft-flights-table tr,
  .aircraft-flights-table td {
    display: block;
  }

  .aircraft-flights-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
  }

  .aircraft-flights-table tbody tr {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(138, 184, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 16, 26, 0.3);
  }

  .aircraft-flights-table tbody tr:nth-child(even) {
    background: rgba(8, 16, 26, 0.3);
  }

  .aircraft-flights-table tbody tr:hover {
    border-color: rgba(138, 184, 255, 0.24);
    background: rgba(47, 136, 255, 0.075);
    box-shadow: inset 3px 0 0 rgba(105, 165, 255, 0.62), 0 8px 20px rgba(8, 16, 28, 0.18);
  }

  .aircraft-flights-table tbody tr.is-selected {
    border-color: rgba(105, 165, 255, 0.42);
    background: rgba(47, 136, 255, 0.11);
    box-shadow: inset 4px 0 0 rgba(105, 165, 255, 0.82), 0 8px 20px rgba(8, 16, 28, 0.2);
  }

  .aircraft-flights-table tbody tr:hover > td {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .aircraft-flights-table td {
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .aircraft-flights-table td::before {
    display: block;
    margin-bottom: 3px;
    color: rgba(174, 188, 207, 0.64);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .aircraft-flights-table td:nth-child(1)::before { content: "Select"; }
  .aircraft-flights-table td:nth-child(2)::before { content: "Date"; }
  .aircraft-flights-table td:nth-child(3)::before { content: "From / To"; }
  .aircraft-flights-table td:nth-child(4)::before { content: "Duration"; }
  .aircraft-flights-table td:nth-child(5)::before { content: "CHT Temp\A EGT Rhythm"; white-space: pre-line; }
  .aircraft-flights-table td:nth-child(6)::before { content: "Trend"; }
  .aircraft-flights-table td:nth-child(7)::before { content: "AI Summary"; }
  .aircraft-flights-table td:nth-child(8)::before { content: "Report"; }
  .aircraft-flights-table td:nth-child(9)::before { content: "Actions"; }
  .aircraft-flights-table.has-analysis-update-column:not(.has-cgr-column) td:nth-child(6)::before { content: "Update"; }
  .aircraft-flights-table.has-analysis-update-column:not(.has-cgr-column) td:nth-child(7)::before { content: "Trend"; }
  .aircraft-flights-table.has-analysis-update-column:not(.has-cgr-column) td:nth-child(8)::before { content: "AI Summary"; }
  .aircraft-flights-table.has-analysis-update-column:not(.has-cgr-column) td:nth-child(9)::before { content: "Report"; }
  .aircraft-flights-table.has-analysis-update-column:not(.has-cgr-column) td:nth-child(10)::before { content: "Actions"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(4)::before { content: "CGR"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(5)::before { content: "Duration"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(6)::before { content: "CHT Temp\A EGT Rhythm"; white-space: pre-line; }
  .aircraft-flights-table.has-cgr-column td:nth-child(7)::before { content: "Trend"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(8)::before { content: "AI Summary"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(9)::before { content: "Report"; }
  .aircraft-flights-table.has-cgr-column td:nth-child(10)::before { content: "Actions"; }
  .aircraft-flights-table.has-cgr-column.has-analysis-update-column td:nth-child(7)::before { content: "Update"; }
  .aircraft-flights-table.has-cgr-column.has-analysis-update-column td:nth-child(8)::before { content: "Trend"; }
  .aircraft-flights-table.has-cgr-column.has-analysis-update-column td:nth-child(9)::before { content: "AI Summary"; }
  .aircraft-flights-table.has-cgr-column.has-analysis-update-column td:nth-child(10)::before { content: "Report"; }
  .aircraft-flights-table.has-cgr-column.has-analysis-update-column td:nth-child(11)::before { content: "Actions"; }

  .aircraft-flight-flags-stack,
  .aircraft-flight-actions {
    flex-wrap: wrap;
  }

  .topbar {
    display: grid;
  }

  .topbar-primary {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .topbar-primary .brand,
  .topbar-primary .top-nav {
    grid-column: 1;
    justify-self: start;
  }

  .top-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 14px;
    overflow: visible;
    white-space: normal;
  }

  .top-actions {
    align-items: stretch;
  }

  .top-actions button {
    flex: 1;
  }

  .topbar-user {
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 150px;
  }

  .flight-adjacent-actions .icon-action,
  .top-actions .icon-action {
    flex: 0 0 27.6px;
  }

  .dashboard-loading-overlay {
    width: min(92vw, 430px);
  }

  .dashboard-loading-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .dashboard-loading-instrument {
    width: 52px;
    height: 52px;
  }

  .dashboard-loading-needle {
    --dashboard-loading-needle-offset: -9px;
    height: 18px;
  }

  .dashboard-loading-copy h2 {
    font-size: 18px;
  }

  .dashboard-loading-meta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .dashboard-loading-steps {
    grid-template-columns: 1fr;
  }

  .trend-controls,
  .trend-controls label {
    width: 100%;
  }

  .trend-control-header {
    display: grid;
    gap: 10px;
  }

  .trend-control-label span {
    display: block;
    margin: 6px 0 0;
    white-space: normal;
  }

  .trend-sensitivity-control {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .trend-chart-panel .panel-header,
  .trend-sample-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .trend-sample-meta {
    max-width: 100%;
  }

  .trend-story-facts {
    grid-template-columns: 1fr;
  }

  .trend-findings-summary-copy {
    grid-template-columns: 1fr;
  }

  .trend-ai-summary-evidence-grid {
    grid-template-columns: 1fr;
  }

  .trend-review-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-story-facts strong,
  .trend-review-title,
  .trend-sample-card strong,
  .trend-sample-card small,
  .trend-gami-chart-block header strong,
  .trend-gami-detail-grid header strong {
    white-space: normal;
  }

  .trend-sample-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .trend-sample-actions {
    align-items: stretch;
    justify-content: space-between;
  }

  .trend-sample-open {
    flex: 1 1 auto;
  }

  .trend-evidence-header {
    align-items: start;
    flex-direction: column;
  }

  .trend-evidence-actions {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }

  .trend-evidence-focus,
  .trend-evidence-count {
    width: 100%;
  }

  .trend-evidence-toolbar,
  .trend-table-control-group {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .trend-table-segmented {
    width: 100%;
    overflow-x: auto;
  }

  .trend-table-option {
    flex: 1 0 auto;
  }

  .trend-table {
    min-width: 1120px;
  }

  .trend-table th,
  .trend-table td {
    padding: 10px;
  }

  .trend-table th:nth-child(1),
  .trend-table td:nth-child(1) {
    position: static;
    left: auto;
    min-width: 88px;
    width: 88px;
  }

  .trend-table th:nth-child(2),
  .trend-table td:nth-child(2) {
    position: static;
    left: auto;
    min-width: 136px;
    width: 136px;
    box-shadow: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .wide-metric {
    grid-column: auto;
  }

  .summary-band {
    padding: 12px;
  }

  .system-card {
    min-height: auto;
  }

  .cause-list li {
    grid-template-columns: 1fr;
  }

  .engine-cylinder-stats {
    grid-template-columns: 1fr;
  }

  .engine-cylinder-averages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-panel {
    grid-template-rows: auto auto auto auto;
  }

  .explorer-panel .panel-header {
    position: static;
    grid-template-columns: 1fr;
    justify-content: flex-start;
  }

  .explorer-context-row {
    grid-template-columns: 1fr;
  }

  .explorer-annunciations {
    flex-wrap: wrap;
    min-height: 0;
  }

  .explorer-annunciation-chips {
    order: 2;
    flex-basis: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .explorer-annunciation-detail {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .engine-triage-summary header {
    grid-template-columns: 1fr;
  }

  .engine-triage-summary header,
  .engine-timeline-heading {
    display: grid;
  }

  .playback-instrument {
    padding: 10px;
  }

  .playback-root,
  .playback-instrument {
    min-height: 0;
  }

  .playback-status-strip span,
  .playback-advisory-chips span,
  .playback-advisory-chips button {
    white-space: nowrap;
  }

  .playback-alert-drawer {
    position: static;
    top: auto;
    right: auto;
    justify-self: stretch;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .playback-alert-columns {
    grid-template-columns: 1fr;
  }

  .playback-cylinders {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    min-height: 0;
  }

  .playback-cylinder {
    grid-template-rows: 17px 134px 18px;
  }

  .playback-cylinder-scale {
    min-height: 134px;
  }

  .playback-controls {
    justify-content: stretch;
  }

  .playback-timeline {
    min-height: calc(43px + var(--playback-findings-row-height, 29px));
    padding: 4px;
  }

  .playback-timeline-frame {
    grid-template-columns: minmax(112px, 124px) minmax(0, 1fr);
  }

  .playback-timeline-labels > span {
    padding: 0 8px;
    font-size: 10px;
  }

  .playback-phase-band {
    font-size: 9px;
  }

  .playback-ruler-tick.is-major b {
    display: none;
  }

  .playback-ruler-tick.is-first b,
  .playback-ruler-tick.is-last b {
    display: none;
  }

  .playback-marker.is-anomaly {
    width: 4px;
    height: 18px;
    margin: -9px 0 0 -2px;
  }

  .playback-marker.is-anomaly.is-review {
    width: 3px;
    height: 16px;
    margin: -8px 0 0 -1.5px;
  }

  .playback-play-button,
  .playback-icon-button {
    flex: 0 0 40px;
  }

  .playback-reset-button {
    flex: 0 0 58px;
  }

  .playback-speed-control {
    flex: 1 1 132px;
  }

  .playback-speed-control {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.upload-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(620px, calc(100vw - 32px));
  overflow: visible;
}

.aircraft-edit-dialog {
  max-width: min(820px, calc(100vw - 32px));
}

.aircraft-review-settings-dialog {
  max-width: min(980px, calc(100vw - 32px));
}

.aircraft-delete-dialog {
  max-width: min(720px, calc(100vw - 32px));
}

.upload-dialog::backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 136, 255, 0.14), transparent 18rem),
    rgba(5, 10, 16, 0.74);
  backdrop-filter: blur(10px);
}

.upload-dialog-card {
  display: grid;
  gap: 18px;
  width: min(620px, calc(100vw - 32px));
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(138, 184, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(27, 40, 56, 0.98), rgba(18, 29, 41, 0.98));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aircraft-edit-dialog-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.aircraft-review-settings-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  width: min(980px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}

.aircraft-delete-dialog-card {
  width: min(720px, calc(100vw - 32px));
  max-width: 100%;
}

.aircraft-delete-dialog-card > *,
.aircraft-delete-dialog-card header > div {
  min-width: 0;
}

.aircraft-delete-dialog-card header h2,
.aircraft-delete-dialog-card .upload-dialog-copy,
.aircraft-delete-warning,
.aircraft-delete-warning span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.upload-dialog-card header,
.upload-dialog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upload-dialog-card header {
  align-items: start;
}

.aircraft-edit-dialog-card header {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  background: rgba(8, 16, 26, 0.24);
}

.aircraft-review-settings-card header {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
  background: rgba(8, 16, 26, 0.24);
}

.upload-dialog-card header h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.upload-dialog-card .eyebrow {
  color: rgba(138, 184, 255, 0.86);
}

.upload-dialog-close {
  flex: 0 0 auto;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border-color: rgba(138, 184, 255, 0.18);
  color: var(--muted);
}

.upload-dialog-close:hover,
.upload-dialog-close:focus-visible {
  border-color: rgba(138, 184, 255, 0.64);
  background: rgba(47, 136, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.upload-dialog-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.upload-dialog-copy {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.aircraft-delete-warning {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 73, 61, 0.28);
  border-radius: 10px;
  background: rgba(255, 73, 61, 0.1);
  color: #ffd0cb;
  line-height: 1.45;
}

.aircraft-delete-warning strong {
  color: #ffffff;
  font-size: 15px;
}

.aircraft-delete-warning span {
  color: rgba(255, 219, 216, 0.86);
  font-size: 13px;
}

.aircraft-delete-dialog-card .danger-action {
  border-color: rgba(255, 73, 61, 0.72);
  background: linear-gradient(180deg, #f45c50, #c72f26);
  box-shadow: 0 10px 24px rgba(255, 73, 61, 0.22);
}

.aircraft-workspace-grid {
  display: grid;
  gap: 14px;
}

.aircraft-context-panel {
  margin-bottom: 14px;
}

.aircraft-context-panel.is-compact {
  margin-bottom: 10px;
}

.aircraft-context-panel.is-dashboard-context {
  margin-bottom: 6px;
  padding: 0 18px;
}

.aircraft-workspace-grid.aircraft-subpanel {
  display: none;
}

.aircraft-workspace-grid.aircraft-subpanel.is-active {
  display: grid;
}

.aircraft-dashboard-panel.is-active {
  display: block;
}

.aircraft-dashboard-panel .report-tabs-row {
  margin: 0 0 10px;
  padding-top: 4px;
}

.aircraft-dashboard-panel .tabs {
  gap: 8px;
}

.aircraft-dashboard-panel .tab {
  min-height: 34px;
  font-size: 11px;
  letter-spacing: 0.075em;
}

.aircraft-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin-bottom: 14px;
}

.aircraft-context-panel.is-compact .aircraft-hero {
  margin-bottom: 0;
}

.aircraft-context-panel.is-dashboard-context .aircraft-hero {
  display: block;
  margin-bottom: 0;
}

.aircraft-context-panel.is-dashboard-context .aircraft-photo-stack {
  display: block;
}

.aircraft-context-panel.is-dashboard-context .aircraft-photo-frame-shell,
.aircraft-context-panel.is-dashboard-context .aircraft-photo-heading-copy h2,
.aircraft-context-panel.is-dashboard-context .aircraft-summary-grid,
.aircraft-context-panel.is-dashboard-context .aircraft-toolbar,
.aircraft-context-panel.is-dashboard-context .aircraft-photo-heading-actions {
  display: none;
}

.aircraft-context-panel.is-dashboard-context .aircraft-photo-heading-copy {
  display: flex;
  justify-content: center;
}

.aircraft-context-panel.is-dashboard-context .aircraft-tabs {
  margin-top: 0;
}

.aircraft-context-panel:not(.is-dashboard-context) {
  padding: 14px 18px;
}

.aircraft-context-panel:not(.is-dashboard-context) .aircraft-hero {
  gap: 16px;
  margin-bottom: 10px;
}

.aircraft-toolbar {
  display: grid;
  gap: 10px;
  align-self: start;
  justify-self: end;
  width: min(100%, 440px);
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.aircraft-toolbar-actions {
  display: grid;
  grid-template-columns: 42px 42px max-content 42px;
  gap: 7px;
  justify-content: end;
}

.aircraft-toolbar .secondary-action,
.aircraft-toolbar .primary-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.aircraft-toolbar .primary-action {
  min-width: 132px;
}

.aircraft-toolbar .icon-action {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.aircraft-toolbar .aircraft-edit-header-action,
.aircraft-toolbar .aircraft-review-settings-action {
  color: rgba(216, 228, 240, 0.86);
}

.aircraft-toolbar .aircraft-add-header-action {
  margin-left: 12px;
  border-color: rgba(138, 184, 255, 0.58);
  background: rgba(47, 136, 255, 0.1);
  color: #d7e8ff;
  box-shadow: 0 0 0 1px rgba(47, 136, 255, 0.1), 0 10px 22px rgba(47, 136, 255, 0.08);
}

.aircraft-toolbar .aircraft-add-header-action:hover,
.aircraft-toolbar .aircraft-add-header-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.9);
  background: rgba(47, 136, 255, 0.18);
  color: #ffffff;
  outline: none;
}

.aircraft-toolbar .aircraft-edit-header-action:hover:not(:disabled),
.aircraft-toolbar .aircraft-edit-header-action:focus-visible,
.aircraft-toolbar .aircraft-review-settings-action:hover:not(:disabled),
.aircraft-toolbar .aircraft-review-settings-action:focus-visible {
  border-color: rgba(138, 184, 255, 0.72);
  background: rgba(47, 136, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.13), 0 8px 18px rgba(8, 16, 28, 0.22);
  color: #ffffff;
  filter: none;
  outline: none;
}

.aircraft-toolbar .aircraft-edit-header-action svg,
.aircraft-toolbar .aircraft-review-settings-action svg {
  transition: transform 160ms ease;
}

.aircraft-toolbar .aircraft-edit-header-action:hover:not(:disabled) svg,
.aircraft-toolbar .aircraft-edit-header-action:focus-visible svg {
  transform: translateY(-1px) rotate(-4deg);
}

.aircraft-toolbar .aircraft-review-settings-action:hover:not(:disabled) svg,
.aircraft-toolbar .aircraft-review-settings-action:focus-visible svg {
  transform: rotate(24deg);
}

.aircraft-edit-header-action svg,
.aircraft-add-header-action svg,
.aircraft-review-settings-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.review-settings-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 18px 22px 22px;
  overflow-x: hidden;
  overflow-y: auto;
}

.review-settings-summary {
  display: grid;
  grid-template-columns: minmax(112px, 0.65fr) minmax(96px, 0.45fr) repeat(2, minmax(160px, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 16, 26, 0.3);
}

.review-settings-summary div {
  min-width: 0;
}

.review-settings-summary span {
  display: block;
  color: rgba(216, 228, 240, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.review-settings-summary strong {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(246, 249, 255, 0.94);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-monitor-groups {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.review-monitor-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 164, 210, 0.14);
}

.review-monitor-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.review-monitor-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-monitor-group-header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.review-monitor-group h3 {
  margin: 0;
  color: rgba(241, 246, 255, 0.94);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.review-monitor-group-header [data-review-group-count] {
  color: rgba(216, 228, 240, 0.62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-monitor-group-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review-monitor-group-action {
  min-height: 30px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(216, 228, 240, 0.82);
  font-size: 12px;
}

.review-monitor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-monitor-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.24);
}

.review-monitor-option > input[data-review-monitor-key] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.review-monitor-option-copy {
  min-width: 0;
}

.review-monitor-option-copy span {
  display: block;
  color: rgba(241, 246, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.review-monitor-option-copy small,
.review-monitor-setting small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.review-monitor-option.is-unavailable {
  border-style: dashed;
  border-color: rgba(138, 184, 255, 0.18);
  background: rgba(8, 16, 26, 0.12);
}

.review-monitor-option.is-unavailable span {
  color: rgba(241, 246, 255, 0.55);
}

.review-monitor-option.is-unavailable > input[data-review-monitor-key] {
  cursor: not-allowed;
  opacity: 0.5;
}

.review-monitor-setting {
  grid-column: 2;
  display: grid;
  gap: 6px;
  align-items: start;
  min-width: 0;
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(138, 184, 255, 0.12);
}

.review-monitor-setting > label {
  color: rgba(216, 228, 240, 0.78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.review-monitor-number-field {
  display: inline-grid;
  grid-template-columns: minmax(74px, 92px) max-content;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.review-monitor-number-field input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(138, 184, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 12, 20, 0.54);
  color: rgba(246, 249, 255, 0.96);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.review-monitor-number-field span {
  color: rgba(216, 228, 240, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.review-monitor-setting.is-muted {
  opacity: 0.58;
}

.review-monitor-unavailable-tag {
  margin-top: 4px !important;
  color: var(--amber, #f4c264) !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aircraft-review-settings-card > .upload-dialog-copy {
  display: none;
}

.aircraft-review-settings-card footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(127, 164, 210, 0.14);
  background: rgba(8, 16, 26, 0.34);
}

.aircraft-review-settings-card footer .report-status {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}

.aircraft-summary-grid,
.aircraft-activity-grid {
  display: grid;
  gap: 12px;
}

.aircraft-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

.aircraft-activity-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
}

.aircraft-context-panel.is-trends-context .aircraft-activity-grid {
  gap: 8px 24px;
  padding-top: 9px;
}

.aircraft-context-panel.is-compact:not(.is-trends-context):not(.is-flights-context) .aircraft-activity-grid {
  display: none;
}

.aircraft-context-panel.is-activity-hidden .aircraft-activity-grid {
  display: none;
}

.aircraft-context-panel.is-compact .aircraft-photo-frame-shell {
  width: 136px;
  height: 96px;
}

.aircraft-context-panel.is-compact .aircraft-photo-frame {
  width: 136px;
  height: 96px;
  border-radius: 16px;
}

.aircraft-context-panel.is-compact .aircraft-photo-stack {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
}

.aircraft-context-panel.is-compact .aircraft-photo-heading-copy {
  gap: 6px;
}

.aircraft-context-panel.is-compact .aircraft-photo-heading-copy h2 {
  font-size: clamp(20px, 2.6vw, 28px);
}

.aircraft-context-panel.is-compact .aircraft-toolbar {
  padding: 2px 0 0;
}

.aircraft-context-panel.is-flights-context .aircraft-activity-grid {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 12px 16px 18px auto;
  width: min(100%, 1264px);
  padding: 14px 16px;
  border: 1px solid rgba(138, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 16, 26, 0.28);
}

.aircraft-context-panel.is-flights-context .aircraft-activity-card {
  min-width: 0;
  max-width: none;
  padding: 0 18px;
  border-right: 1px solid rgba(127, 164, 210, 0.16);
}

.aircraft-context-panel.is-flights-context .aircraft-activity-card:last-child {
  border-right: 0;
}

.aircraft-context-panel.is-flights-context .aircraft-activity-card strong {
  font-size: 1rem;
}

.aircraft-context-panel.is-flights-context .aircraft-activity-card small {
  margin-top: 2px;
}

.aircraft-summary-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(8, 16, 26, 0.24);
}

.aircraft-summary-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aircraft-summary-card.is-actionable {
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.aircraft-summary-card.is-actionable:hover,
.aircraft-summary-card.is-actionable:focus-visible {
  color: #ffffff;
  opacity: 1;
  outline: none;
}

.aircraft-summary-card span,
.aircraft-activity-card span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aircraft-summary-card strong {
  font-size: 15px;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.92);
}

.aircraft-summary-card span {
  font-size: 10px;
  color: rgba(216, 228, 240, 0.64);
}

.aircraft-activity-card strong {
  color: rgba(241, 246, 255, 0.94);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.aircraft-summary-card small,
.aircraft-activity-card small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}

.aircraft-activity-card {
  display: grid;
  flex: 0 1 auto;
  min-width: 116px;
  max-width: 260px;
  min-height: 0;
  align-content: start;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.aircraft-activity-card-hero {
  min-width: 220px;
  min-height: 0;
}

.aircraft-activity-card-default strong {
  font-size: 15px;
}

.aircraft-activity-card-status strong {
  font-size: 15px;
}

.aircraft-activity-card-latest {
  background: transparent;
}

.aircraft-activity-card-status {
  background: transparent;
}

.aircraft-fleet-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-right: 0;
  overflow: visible;
}

.aircraft-fleet-panel {
  display: grid;
  gap: 0;
  max-height: none;
  min-height: 0;
}

.aircraft-fleet-panel .panel-header {
  flex: 0 0 auto;
}

.aircraft-fleet-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.aircraft-fleet-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
}

.aircraft-fleet-panel .aircraft-fleet-list {
  min-height: 0;
}

.aircraft-fleet-column-header {
  position: sticky;
  top: calc(var(--sticky-table-header-top) + 13px);
  z-index: 9;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
  padding: 9px 14px 10px;
  border-block: 1px solid rgba(138, 184, 255, 0.12);
  background: rgba(14, 28, 45, 0.96);
  box-shadow: 0 10px 24px rgba(5, 10, 18, 0.24);
  color: rgba(181, 195, 214, 0.92);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.aircraft-fleet-column-copy {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 3fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.aircraft-fleet-column-meta {
  display: grid;
  grid-template-columns:
    minmax(120px, 1.1fr)
    minmax(120px, 1.1fr)
    minmax(78px, 0.8fr)
    minmax(140px, 1.4fr)
    minmax(70px, 0.7fr);
  gap: 12px;
  min-width: 0;
}

.aircraft-fleet-column-actions {
  min-width: 88px;
  text-align: right;
}

.aircraft-profile-heading {
  display: block;
}

.aircraft-photo-stack {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.aircraft-photo-frame-shell {
  position: relative;
  width: 180px;
  height: 124px;
  flex: 0 0 auto;
}

.aircraft-photo-frame,
.aircraft-fleet-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(138, 184, 255, 0.18);
  background:
    radial-gradient(circle at top, rgba(93, 163, 255, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(9, 18, 30, 0.65));
}

.aircraft-photo-frame {
  display: block;
  width: 180px;
  height: 124px;
  border-radius: 20px;
  flex: 0 0 auto;
}

.aircraft-photo-frame-button {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.aircraft-photo-frame-button:hover,
.aircraft-photo-frame-button:focus-within {
  border-color: rgba(138, 184, 255, 0.52);
  box-shadow: 0 12px 24px rgba(6, 12, 20, 0.22);
  transform: translateY(-1px);
}

.aircraft-photo-frame img,
.aircraft-fleet-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aircraft-photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(233, 240, 255, 0.92);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aircraft-photo-frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px 38px 10px 10px;
  background: linear-gradient(180deg, rgba(9, 18, 30, 0.04), rgba(9, 18, 30, 0.24) 46%, rgba(9, 18, 30, 0.82));
  color: #f4f7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.aircraft-photo-frame-button.is-empty .aircraft-photo-frame-overlay {
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(9, 18, 30, 0.68);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.aircraft-photo-frame-button.is-empty .aircraft-photo-frame-overlay,
.aircraft-photo-frame-button:hover .aircraft-photo-frame-overlay,
.aircraft-photo-frame-button:focus-within .aircraft-photo-frame-overlay {
  opacity: 1;
}

.aircraft-photo-heading-copy {
  display: grid;
  gap: 6px;
  justify-items: start;
  width: 100%;
  text-align: left;
  align-content: start;
}

.aircraft-photo-heading-copy .eyebrow {
  margin: 0;
  color: rgba(138, 184, 255, 0.86);
}

.aircraft-photo-heading-copy h2 {
  margin: 0;
  font-size: clamp(23px, 2.75vw, 30px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.aircraft-photo-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.aircraft-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(138, 184, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 18, 30, 0.84);
  color: rgba(244, 247, 255, 0.92);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.aircraft-photo-remove svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.aircraft-photo-frame-shell:hover .aircraft-photo-remove,
.aircraft-photo-frame-shell:focus-within .aircraft-photo-remove,
.aircraft-photo-remove:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.aircraft-photo-remove:hover,
.aircraft-photo-remove:focus-visible {
  border-color: rgba(255, 120, 120, 0.34);
  background: rgba(70, 18, 18, 0.9);
  color: #ffffff;
  outline: none;
}

.aircraft-fleet-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(8, 16, 26, 0.34);
  contain: paint;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, transform 0.12s ease;
}

body.is-aircraft-fleet-reordering {
  user-select: none;
  cursor: grabbing;
}

.aircraft-fleet-item.is-dragging {
  opacity: 0.55;
  transform: scale(0.995);
  cursor: grabbing;
}

.aircraft-fleet-drag-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  margin: 0;
  opacity: 0.96;
  pointer-events: none;
  cursor: grabbing;
  border-color: rgba(138, 184, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(47, 136, 255, 0.22), rgba(14, 28, 45, 0.94)),
    rgba(8, 16, 26, 0.96);
  box-shadow:
    0 24px 48px rgba(3, 8, 16, 0.44),
    0 0 0 1px rgba(138, 184, 255, 0.18);
  transform-origin: top left;
}

.aircraft-fleet-drag-preview .aircraft-fleet-actions {
  visibility: hidden;
}

.aircraft-fleet-item.is-drop-before::before,
.aircraft-fleet-item.is-drop-after::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 999px;
  background: #8ab8ff;
  box-shadow: 0 0 0 3px rgba(138, 184, 255, 0.14);
}

.aircraft-fleet-item.is-drop-before::before {
  top: 0;
}

.aircraft-fleet-item.is-drop-after::after {
  bottom: 0;
}

.aircraft-fleet-item.is-selected {
  border-color: rgba(138, 184, 255, 0.42);
  background: rgba(47, 136, 255, 0.12);
}

.aircraft-fleet-item.is-plan-locked {
  border-color: rgba(242, 181, 56, 0.28);
  background: rgba(242, 181, 56, 0.045);
}

.aircraft-fleet-item.is-plan-locked:hover,
.aircraft-fleet-item.is-plan-locked:focus-visible {
  border-color: rgba(242, 181, 56, 0.5);
  background: rgba(242, 181, 56, 0.075);
}

.aircraft-fleet-item:hover,
.aircraft-fleet-item:focus-visible {
  border-color: rgba(138, 184, 255, 0.5);
  background: rgba(47, 136, 255, 0.1);
  outline: none;
}

.aircraft-fleet-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 154, 255, 0.18);
}

.aircraft-fleet-copy {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 3fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.aircraft-fleet-photo,
.aircraft-fleet-photo *,
.aircraft-fleet-copy,
.aircraft-fleet-copy * {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.aircraft-fleet-photo {
  width: 72px;
  height: 48px;
  border-radius: 14px;
}

.aircraft-fleet-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.aircraft-fleet-plan-lock {
  flex: 0 0 auto;
  border: 1px solid rgba(242, 181, 56, 0.38);
  border-radius: 999px;
  color: rgba(247, 202, 93, 0.96);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
}

.aircraft-fleet-meta {
  display: grid;
  grid-template-columns:
    minmax(120px, 1.1fr)
    minmax(120px, 1.1fr)
    minmax(78px, 0.8fr)
    minmax(140px, 1.4fr)
    minmax(70px, 0.7fr);
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.aircraft-fleet-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.aircraft-fleet-meta dt {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.aircraft-fleet-meta dd {
  margin: 0;
  min-width: 0;
  color: rgba(234, 241, 252, 0.92);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.aircraft-fleet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.aircraft-fleet-actions .icon-action {
  width: 40px;
  min-width: 40px;
}

@media (max-width: 1120px) {
  .aircraft-fleet-item {
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .aircraft-fleet-column-header {
    display: none;
  }

  .aircraft-fleet-copy {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .aircraft-fleet-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .aircraft-fleet-meta dt {
    display: block;
  }

  .aircraft-fleet-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.aircraft-delete-action {
  color: rgba(255, 180, 173, 0.78);
}

.aircraft-delete-action:disabled {
  color: rgba(150, 166, 183, 0.38);
  border-color: rgba(127, 164, 210, 0.16);
}

.aircraft-fleet-empty {
  margin: 0;
  color: var(--muted);
}

.aircraft-form {
  display: grid;
  min-width: 0;
}

.aircraft-form-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 18px 22px 22px;
  overflow-x: hidden;
  overflow-y: auto;
}

.aircraft-form-summary {
  display: grid;
  grid-template-columns: minmax(118px, 0.75fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(138, 184, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 16, 26, 0.3);
}

.aircraft-form-summary div {
  min-width: 0;
}

.aircraft-form-summary span {
  display: block;
  color: rgba(216, 228, 240, 0.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.aircraft-form-summary strong {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(246, 249, 255, 0.94);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aircraft-form-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.aircraft-form-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(196, 212, 234, 0.92);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.aircraft-form-section h3::after {
  content: "";
  height: 1px;
  min-width: 24px;
  flex: 1;
  background: rgba(127, 164, 210, 0.14);
}

.aircraft-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.aircraft-form-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aircraft-form-span-2 {
  grid-column: span 2;
}

.aircraft-fuel-other-field {
  grid-column: span 2;
}

.aircraft-propeller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.aircraft-propeller-grid .upload-field:only-child {
  grid-column: span 2;
}

.aircraft-engine-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.aircraft-instrument-grid {
  align-items: end;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.aircraft-turbo-fieldset {
  grid-column: span 3;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aircraft-turbo-toggle {
  width: fit-content;
  min-width: 188px;
  max-width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(241, 246, 255, 0.94);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.aircraft-turbo-toggle:hover,
.aircraft-turbo-toggle:focus-within {
  border-color: rgba(138, 184, 255, 0.38);
  background: rgba(255, 255, 255, 0.055);
}

.aircraft-turbo-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.aircraft-turbo-toggle span {
  color: rgba(241, 246, 255, 0.94);
}

.aircraft-edit-dialog-card .aircraft-turbo-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.aircraft-edit-dialog-card .aircraft-turbo-toggle span {
  display: inline;
  color: rgba(241, 246, 255, 0.94);
}

.aircraft-turbo-limits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.aircraft-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.aircraft-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.aircraft-edit-dialog-card footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(127, 164, 210, 0.14);
  background: rgba(8, 16, 26, 0.34);
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.aircraft-edit-dialog-delete {
  margin-right: auto;
}

.aircraft-edit-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.upload-field {
  display: grid;
  gap: 9px;
}

.upload-field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-field .required-marker {
  color: var(--danger-color, #c53030);
  font-style: normal;
}

.upload-field-checkbox .upload-checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.upload-field-checkbox .upload-checkbox-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.upload-field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

.upload-field select,
.upload-field input[type="text"],
.upload-field input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.upload-field select,
.upload-field input[type="text"],
.upload-field input[type="number"] {
  min-height: 46px;
  padding: 0 13px;
}

.upload-field select:hover,
.upload-field input[type="text"]:hover,
.upload-field input[type="number"]:hover {
  border-color: rgba(138, 184, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.upload-field select:focus-visible,
.upload-field input[type="text"]:focus-visible,
.upload-field input[type="number"]:focus-visible {
  border-color: rgba(138, 184, 255, 0.82);
  background: rgba(47, 136, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(47, 136, 255, 0.12);
  outline: none;
}

.aircraft-edit-dialog-card .upload-field {
  gap: 7px;
}

.aircraft-edit-dialog-card .upload-field select,
.aircraft-edit-dialog-card .upload-field input[type="text"],
.aircraft-edit-dialog-card .upload-field input[type="number"] {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
}

.aircraft-edit-dialog-card .upload-field select {
  padding-right: 40px;
}

.upload-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-source-actions .secondary-action {
  min-width: 150px;
}

.upload-hidden-file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-field small {
  color: var(--muted);
  font-size: 12px;
}

.upload-dialog-status,
.upload-dialog-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.upload-dialog-status {
  border: 1px solid rgba(47, 136, 255, 0.3);
  background: rgba(47, 136, 255, 0.12);
  color: #b9d8ff;
}

.upload-dialog-error {
  border: 1px solid rgba(255, 73, 61, 0.28);
  background: rgba(255, 73, 61, 0.1);
  color: #ffb4ad;
}

.demo-mode-note {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: wait;
  filter: saturate(0.75) brightness(0.86);
  opacity: 0.72;
}

body[data-read-only] .primary-action:disabled,
body[data-read-only] .secondary-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.75) brightness(0.78);
  opacity: 0.58;
}

body[data-read-only] [data-demo-locked] {
  cursor: not-allowed;
}

.aircraft-photo-frame-button.is-readonly {
  cursor: not-allowed;
  filter: grayscale(0.55) brightness(0.82);
}

.aircraft-photo-frame-button.is-readonly:hover,
.aircraft-photo-frame-button.is-readonly:focus-within {
  border-color: rgba(138, 184, 255, 0.18);
  box-shadow: none;
  transform: none;
}

.upload-dialog-card footer {
  padding-top: 2px;
}

.aircraft-edit-dialog-card footer,
.aircraft-review-settings-card footer {
  padding-top: 14px;
}

.upload-dialog-card footer .secondary-action,
.upload-dialog-card footer .primary-action {
  min-width: 124px;
}

.aircraft-edit-dialog-card footer .report-status {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
  text-align: right;
}

@media (max-width: 1120px) {
  .home-hero,
  .home-supported {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero,
  .public-page--about .public-hero,
  .public-page--faq .public-hero,
  .dashboard-guide-hero,
  .dashboard-guide-section,
  .dashboard-guide-section--reverse,
  .dashboard-guide-media-section,
  .dashboard-guide-tutorial-intro,
  .dashboard-guide-step,
  .dashboard-guide-step--reverse,
  .dashboard-guide-anatomy,
  .about-story,
  .about-ai-harness,
  .about-section-copy,
  .about-principles,
  .about-closing,
  .detection-guide-hero,
  .detection-guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detection-guide-index {
    position: static;
  }

  .detection-guide-meta {
    justify-content: start;
  }

  .detection-guide-controls,
  .detection-guide-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detection-guide-family-filter {
    justify-content: start;
  }

  .detection-guide-card-header {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .detection-guide-section {
    border-top: 1px solid rgba(127, 164, 210, 0.14);
  }

  .detection-guide-section:nth-child(odd) {
    border-left: 0;
  }

  .detection-guide-index > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid,
  .public-card-row,
  .dashboard-guide-workflow,
  .dashboard-guide-callout-grid,
  .dashboard-guide-feature-map,
  .about-workflow-steps,
  .about-principle-grid,
  .legal-content,
  .contact-update-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story {
    align-items: start;
  }

  .about-ai-harness-copy h2 {
    max-width: 18ch;
  }

  .dashboard-guide-section--reverse .dashboard-guide-section-copy {
    order: 0;
  }

  .dashboard-guide-step--reverse .dashboard-guide-section-copy {
    order: 0;
  }

  .dashboard-guide-hero {
    min-height: 0;
  }

  .about-trace-motif {
    max-width: 180px;
  }

  .about-workflow-step:nth-child(2) {
    border-right: 0;
  }

  .about-workflow-step:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .about-workflow-step:not(:last-child)::after {
    display: none;
  }

  .home-hero {
    min-height: 0;
  }

  .home-supported-copy {
    align-items: start;
    max-width: 720px;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-monitor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .maintenance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-log-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-toolbar {
    max-width: 520px;
  }

  .aircraft-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-activity-card-hero {
    grid-column: span 2;
  }

  .aircraft-context-panel.is-flights-context .aircraft-activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px 0 0;
    width: 100%;
  }

  .aircraft-context-panel.is-flights-context .aircraft-activity-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 430px) {
  .gami-sweep-window-controls,
  .special-test-actions {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  #gamiClearSweepButton {
    width: 100%;
  }

  .special-test-save-status {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .aircraft-form-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-settings-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-form-grid-four,
  .aircraft-engine-layout-grid,
  .aircraft-propeller-grid,
  .aircraft-turbo-limits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aircraft-form-span-2,
  .aircraft-fuel-other-field,
  .aircraft-turbo-fieldset {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .public-page {
    padding-top: 18px;
  }

  .public-hero {
    min-height: 0;
    padding: 22px;
    background-position: 54% 42%;
  }

  .public-page--about .public-hero {
    min-height: 0;
  }

  .public-hero h1,
  .public-page--about .public-hero h1,
  .public-page--contact .public-hero h1 {
    max-width: none;
    margin-bottom: 12px;
    font-size: 34px;
  }

  .public-hero p {
    font-size: 15px;
  }

  .public-hero-panel {
    padding: 16px;
  }

  .public-image-panel {
    aspect-ratio: 1.35;
  }

  .about-hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }

  .faq-grid,
  .public-card-row,
  .dashboard-guide-workflow,
  .dashboard-guide-callout-grid,
  .dashboard-guide-callout-grid--wide,
  .dashboard-guide-feature-map,
  .dashboard-guide-screenshot-grid,
  .dashboard-guide-pdf-gallery,
  .dashboard-guide-page-list,
  .about-workflow-steps,
  .about-principle-grid,
  .legal-content,
  .contact-update-section,
  .detection-guide-index > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-workflow-step,
  .about-workflow-step:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .about-workflow-step:last-child {
    border-bottom: 0;
  }

  .dashboard-guide-hero h1,
  .dashboard-guide-section-copy h2 {
    max-width: none;
    font-size: 34px;
  }

  .dashboard-guide-hero--tutorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-guide-step--settings .dashboard-guide-section-copy ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-guide-step--upload .dashboard-guide-section-copy ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-guide-workflow article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(127, 164, 210, 0.12);
  }

  .dashboard-guide-workflow article:last-child {
    border-bottom: 0;
  }

  .detection-guide-hero h1 {
    max-width: none;
    font-size: 34px;
  }

  .detection-guide-controls,
  .detection-guide-section-grid,
  .detection-guide-card-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .detection-guide-card-header {
    align-items: start;
  }

  .detection-guide-section,
  .detection-guide-section:nth-child(odd) {
    border-left: 0;
  }

  .faq-grid article,
  .public-card-row article,
  .legal-content article,
  .contact-update-section {
    min-height: 0;
    padding: 18px;
  }

  .legal-page-header h1 {
    max-width: none;
    font-size: 34px;
  }

  .contact-update-copy h2 {
    max-width: none;
    font-size: 30px;
  }

  .contact-update-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-story {
    padding: 24px 0;
  }

  .about-story h2 {
    max-width: none;
    font-size: 30px;
  }

  .about-section-copy h2,
  .about-closing-copy h2 {
    font-size: 30px;
  }

  .about-principle-card {
    min-height: 0;
  }

  .about-closing .about-engine-figure {
    width: min(100%, 320px);
    justify-self: center;
  }

  .home-hero {
    gap: 18px;
    padding-top: 18px;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(11, 17, 24, 0.94) 0%, rgba(11, 17, 24, 0.72) 45%, rgba(11, 17, 24, 0.96) 100%),
      image-set(
        url("assets/home-hero-cockpit.webp") type("image/webp"),
        url("assets/glass_cockpit.png") type("image/png")
      ) 51% 36% / auto 100% no-repeat;
    opacity: 0.46;
  }

  .home-hero-copy h1 {
    margin-bottom: 12px;
    font-size: 34px;
  }

  .home-hero-copy {
    padding-top: 0;
  }

  .home-hero-lede {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .home-hero-actions {
    margin-bottom: 12px;
  }

  .home-preview-topline {
    padding: 12px 14px;
  }

  .home-preview-screen {
    margin: 10px 12px;
    aspect-ratio: 1.22;
  }

  .home-preview-screen img {
    object-position: 50% 18%;
  }

  .home-preview-caption {
    display: grid;
    gap: 4px;
    padding: 0 14px 14px;
    font-size: 10px;
  }

  .home-advisory-note {
    display: none;
  }

  .home-hero-actions .primary-action,
  .home-hero-actions .secondary-action {
    width: 100%;
  }

  .home-feature-band,
  .home-monitor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-feature-band article,
  .home-feature-band article:nth-child(4),
  .home-feature-band article:nth-child(5) {
    grid-column: auto;
  }

  .home-supported-copy {
    gap: 10px;
  }

  .home-supported-note {
    max-width: none;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(127, 164, 210, 0.18);
  }

  .home-monitor-card-more {
    grid-column: auto;
  }

  .home-feature-band {
    padding-top: 18px;
  }

  .home-supported {
    padding-bottom: 34px;
  }

  .maintenance-preview-panel {
    min-height: 680px;
  }

  .maintenance-preview-content {
    padding: 12px;
  }

  .maintenance-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .maintenance-kpi-card,
  .maintenance-kpi-card:has(.maintenance-kpi-side) {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .maintenance-kpi-side {
    grid-column: 2;
    min-height: 0;
    padding-left: 0;
    border-left: 0;
  }

  .maintenance-schedule-panel,
  .maintenance-logbook-panel {
    padding: 14px;
  }

  .maintenance-schedule-panel .panel-header,
  .maintenance-logbook-panel .panel-header,
  .maintenance-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .maintenance-toolbar input {
    width: 100%;
  }

  .maintenance-coming-soon {
    top: 170px;
    padding: 24px 18px;
  }

  .aircraft-hero,
  .aircraft-profile-heading,
  .aircraft-photo-stack {
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    align-items: flex-start;
  }

  .aircraft-context-panel.is-compact .aircraft-hero {
    gap: 8px;
  }

  .aircraft-context-panel.is-compact .aircraft-photo-frame-shell,
  .aircraft-context-panel.is-compact .aircraft-summary-grid,
  .aircraft-context-panel.is-compact .aircraft-toolbar,
  .aircraft-context-panel.is-flights-context .aircraft-activity-grid {
    display: none;
  }

  .aircraft-context-panel.is-compact .aircraft-photo-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .aircraft-context-panel.is-compact .aircraft-photo-heading-copy h2 {
    font-size: 26px;
  }

  .aircraft-context-panel.is-compact .aircraft-tabs {
    gap: 10px 18px;
    margin-top: 6px;
  }

  .aircraft-toolbar-actions,
  .aircraft-toolbar,
  .aircraft-photo-heading-copy {
    width: 100%;
  }

  .aircraft-toolbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-monitor-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-toolbar-actions .secondary-action,
  .aircraft-toolbar-actions .primary-action {
    width: 100%;
  }

  .aircraft-toolbar .aircraft-add-header-action {
    margin-left: 0;
  }

  .aircraft-summary-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .aircraft-activity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-activity-card-hero {
    grid-column: span 1;
  }

  .aircraft-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-form-summary,
  .review-settings-summary,
  .aircraft-form-grid-four,
  .aircraft-turbo-limits {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-form-span-2,
  .aircraft-fuel-other-field,
  .aircraft-turbo-fieldset,
  .aircraft-propeller-grid .upload-field:only-child {
    grid-column: 1;
  }

  .aircraft-propeller-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-engine-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-edit-dialog-card header,
  .aircraft-review-settings-card header,
  .aircraft-form-body,
  .review-settings-body,
  .aircraft-review-settings-card footer,
  .aircraft-edit-dialog-card footer {
    padding-inline: 18px;
  }

  .aircraft-edit-dialog-card footer .report-status {
    text-align: left;
  }

  .review-monitor-group-header,
  .review-monitor-group-header > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-monitor-group-actions {
    justify-content: flex-start;
  }

  .aircraft-review-settings-card footer .report-status {
    text-align: left;
  }

  .aircraft-fleet-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .aircraft-fleet-column-header {
    display: none;
  }

  .aircraft-fleet-meta dt {
    display: block;
  }

  .aircraft-fleet-copy,
  .aircraft-fleet-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-fleet-actions,
  .aircraft-form-actions {
    justify-content: flex-start;
  }

  .aircraft-fleet-actions {
    grid-column: 1 / -1;
  }

  .aircraft-profile-heading {
    align-items: flex-start;
  }

  .upload-dialog-card {
    padding: 18px;
    border-radius: 12px;
  }

  .upload-dialog-card header,
  .upload-dialog-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .aircraft-edit-dialog-card header {
    align-items: flex-start;
    flex-direction: row;
  }

  .upload-dialog-close {
    align-self: flex-end;
  }

  .aircraft-edit-dialog-card .upload-dialog-close {
    align-self: flex-start;
  }

  .upload-dialog-card header h2 {
    font-size: 28px;
  }

  .upload-dialog-card footer button {
    width: 100%;
  }
}
/* Final cascade for the How It Works runbook page. Kept last so the timeline mockup styling wins. */
body[data-active-view="dashboard-guide"] .dashboard-guide-page {
  max-width: 1460px;
  margin: 0 auto;
  padding-inline: clamp(18px, 3vw, 30px);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook {
  grid-template-columns: minmax(360px, 0.76fr) minmax(500px, 0.92fr);
  gap: clamp(28px, 4.5vw, 64px);
  min-height: clamp(340px, 38vw, 430px);
  padding-top: clamp(26px, 4vw, 46px);
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook::before {
  background:
    linear-gradient(90deg, rgba(6, 14, 22, 0.98) 0%, rgba(7, 18, 29, 0.86) 52%, rgba(7, 18, 29, 0.44) 100%),
    radial-gradient(circle at 70% 26%, rgba(47, 139, 255, 0.12), transparent 28rem),
    linear-gradient(135deg, #06101a 0%, #071725 52%, #05101a 100%);
  opacity: 1;
  filter: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook::after {
  background:
    linear-gradient(180deg, rgba(4, 10, 16, 0) 0%, rgba(4, 10, 16, 0.48) 100%),
    linear-gradient(90deg, rgba(92, 170, 255, 0.08), transparent 48%);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook h1 {
  max-width: 22ch;
  margin-bottom: 22px;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1.08;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook .dashboard-guide-hero-copy > p {
  max-width: 660px;
  font-size: clamp(16px, 1.28vw, 18px);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-advisory {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: rgba(139, 203, 255, 0.94);
  font-size: 14px;
  line-height: 1.58;
  background: transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-advisory::before {
  content: "i";
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(76, 162, 255, 0.78);
  border-radius: 999px;
  color: rgba(121, 194, 255, 0.96);
  font-size: 13px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-advisory strong {
  color: rgba(153, 209, 255, 0.98);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook .dashboard-guide-hero-image {
  position: relative;
  overflow: visible;
  aspect-ratio: 1.55;
  border: 1px solid rgba(132, 181, 242, 0.28);
  border-radius: 12px 12px 3px 3px;
  background: rgba(6, 14, 22, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook .dashboard-guide-hero-image img {
  height: 100%;
  padding-top: 28px;
  border-radius: 11px 11px 3px 3px;
  object-fit: cover;
  object-position: top center;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-runbook {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  margin-top: clamp(22px, 4vw, 44px);
  padding: 18px 22px 20px;
  border: 1px solid rgba(127, 164, 210, 0.17);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.78);
}

/* Persistent jump-nav: sticks just under the (variable-height) topbar. The
   how-it-works-nav.js module measures the topbar and sets --hiw-nav-top so the
   bar lands flush below it at every breakpoint; the fallback covers no-JS. */
body[data-active-view="dashboard-guide"] .dashboard-guide-jumps {
  top: var(--hiw-nav-top, 94px);
  z-index: 8;
  gap: 6px;
  margin: 0 0 6px;
}

/* Compact pills so all 15 fit one row on desktop/laptop. On phones the strip
   still scrolls by touch, where a scrolling chip row is an expected pattern. */
body[data-active-view="dashboard-guide"] .dashboard-guide-jumps a {
  min-height: 27px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-jumps a:hover,
body[data-active-view="dashboard-guide"] .dashboard-guide-jumps a:focus-visible {
  border-color: rgba(96, 196, 255, 0.55);
  color: #eaf4ff;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-jumps a.is-active {
  border-color: rgba(96, 196, 255, 0.75);
  color: #eaf6ff;
  background: rgba(28, 78, 110, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 196, 255, 0.32);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-runbook .eyebrow {
  margin: 0;
  color: rgba(76, 184, 255, 0.98);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-runbook h2 {
  margin: 0;
  color: rgba(238, 246, 255, 0.92);
  font-size: 16px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 0 0 4px;
  list-style: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li::after {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 1px;
  background: rgba(107, 146, 188, 0.4);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li:last-child::after {
  display: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 0 6px;
  border: 0;
  text-align: center;
  text-decoration: none;
  background: transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(171, 198, 225, 0.74);
  border-radius: 999px;
  color: rgba(246, 250, 255, 0.98);
  font-size: 16px;
  font-weight: 900;
  background: rgba(6, 15, 24, 0.98);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li:first-child span {
  border-color: rgba(65, 154, 255, 0.95);
  background: linear-gradient(180deg, #2b8bff, #1760d5);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline strong {
  max-width: 86px;
  color: rgba(246, 250, 255, 0.96);
  font-size: 13px;
  line-height: 1.15;
}

/* Runbook coda: the two "then" entries that surface the later sections.
   Distinct from numbered steps 1-12: no number badge, no connector line, muted. */
body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda::after {
  display: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li:has(+ .is-coda)::after {
  display: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda a {
  opacity: 0.82;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda span {
  width: auto;
  height: auto;
  padding: 3px 10px 3px 8px;
  border: 1px solid rgba(107, 146, 188, 0.4);
  border-radius: 999px;
  color: rgba(186, 209, 233, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(8, 18, 29, 0.72);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda span::before {
  content: "\2192\00a0";
  color: rgba(140, 178, 219, 0.85);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda strong {
  color: rgba(214, 230, 248, 0.9);
  font-weight: 700;
}

/* Step 6 -> Reading the data cross-link (sits below the action rail). */
body[data-active-view="dashboard-guide"] .dashboard-guide-flow-note {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: rgba(178, 203, 230, 0.78);
  font-size: 13px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-note a {
  color: rgba(101, 173, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(101, 173, 255, 0.45);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-note a:hover {
  border-bottom-color: rgba(101, 173, 255, 0.9);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-step {
  padding: 26px 0;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-step,
body[data-active-view="dashboard-guide"] .dashboard-guide-runbook,
body[data-active-view="dashboard-guide"] .dashboard-guide-detectors,
body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios {
  scroll-margin-top: var(--hiw-scroll-offset, 160px);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-step-badge {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: rgba(246, 250, 255, 0.98);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(180deg, #3d99ff 0%, #1d63d7 100%);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-heading h2 {
  margin: 0;
  color: rgba(247, 250, 255, 0.98);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.15;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-body {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(310px, 0.86fr);
  gap: 26px;
  align-items: start;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-rail {
  display: grid;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid rgba(127, 164, 210, 0.18);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item > span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(96, 184, 255, 0.98);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(28, 86, 154, 0.28);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item h3 {
  margin: 0 0 4px;
  color: rgba(105, 190, 255, 0.98);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item p {
  grid-column: 2;
  margin: 0;
  color: rgba(213, 225, 240, 0.9);
  font-size: 14px;
  line-height: 1.48;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-good > span {
  color: rgba(194, 255, 224, 0.98);
  background: rgba(42, 145, 99, 0.32);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-good h3 {
  color: rgba(115, 225, 163, 0.98);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-warning > span {
  color: rgba(255, 221, 146, 0.98);
  background: rgba(151, 100, 16, 0.35);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-warning h3 {
  color: rgba(255, 189, 59, 0.98);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-visual-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(127, 164, 210, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 31, 46, 0.88), rgba(8, 18, 29, 0.92));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-screenshot-card {
  margin: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-screenshot-card figcaption {
  padding: 12px 14px;
  color: rgba(157, 211, 255, 0.92);
  font-size: 13px;
  line-height: 1.42;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-visual-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border-top: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-flow-step {
  min-width: 0;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-flow-body {
  grid-template-columns: minmax(0, 1.46fr) minmax(310px, 0.86fr);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-action-rail {
  padding-left: 24px;
  padding-top: 0;
  border-left: 1px solid rgba(127, 164, 210, 0.18);
  border-top: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board {
  min-height: 365px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-workspace-preview {
  display: grid;
  gap: 12px;
  padding: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-card,
body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(127, 164, 210, 0.16);
  border-radius: 8px;
  background: rgba(13, 25, 37, 0.62);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-card.is-empty {
  grid-template-columns: minmax(0, 1fr);
  min-height: 154px;
  padding: 18px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-photo {
  width: 118px;
  min-height: 82px;
  border-radius: 8px;
  background:
    linear-gradient(18deg, rgba(240, 246, 255, 0.88) 0 16%, transparent 17%),
    linear-gradient(160deg, rgba(51, 137, 222, 0.7), rgba(27, 65, 99, 0.9)),
    linear-gradient(180deg, #8fbce6, #364553 58%, #a17a49 60%, #4c3927);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy > strong {
  display: block;
  margin-bottom: 10px;
  color: rgba(246, 250, 255, 0.98);
  font-size: 30px;
  line-height: 1;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-empty-profile {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding-right: 260px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-empty-profile p {
  max-width: 430px;
  margin: 0;
  color: rgba(198, 213, 229, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 390px;
  margin: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy dt,
body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats span,
body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header span {
  color: rgba(153, 178, 204, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy dd {
  margin: 3px 0 0;
  color: rgba(246, 250, 255, 0.98);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: start;
  gap: 8px;
  justify-content: end;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions button {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(112, 172, 242, 0.34);
  border-radius: 10px;
  color: rgba(246, 250, 255, 0.98);
  font-size: 14px;
  font-weight: 900;
  background: rgba(18, 33, 49, 0.86);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions button:disabled {
  cursor: default;
  opacity: 0.76;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions button:first-child,
body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions button:nth-child(2) {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions button:nth-child(3) {
  min-width: 132px;
  color: rgba(246, 250, 255, 0.98);
  background: rgba(37, 113, 219, 0.82);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions .dashboard-guide-add-button {
  width: 42px;
  min-width: 42px;
  margin-left: 12px;
  padding: 0;
  border-color: rgba(138, 184, 255, 0.58);
  color: #d7e8ff;
  background: rgba(47, 136, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(47, 136, 255, 0.1), 0 10px 22px rgba(47, 136, 255, 0.08);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats div {
  display: grid;
  gap: 2px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats strong {
  color: rgba(246, 250, 255, 0.98);
  font-size: 16px;
  line-height: 1.1;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats em {
  color: rgba(196, 209, 224, 0.76);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-title strong {
  color: rgba(246, 250, 255, 0.98);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-title span {
  color: rgba(196, 209, 224, 0.78);
  font-size: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header,
body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row {
  display: grid;
  grid-template-columns: 46px minmax(78px, 0.9fr) minmax(110px, 1fr) minmax(92px, 1fr) minmax(66px, 0.7fr) minmax(120px, 1fr) minmax(54px, 0.6fr);
  gap: 10px;
  align-items: center;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header {
  padding: 8px 10px 6px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
  border-bottom: 1px solid rgba(127, 164, 210, 0.12);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-empty-message {
  min-height: 92px;
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed rgba(127, 164, 210, 0.2);
  border-radius: 8px;
  color: rgba(226, 236, 248, 0.92);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(8, 18, 29, 0.42);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header span:first-child {
  grid-column: 2;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(127, 164, 210, 0.1);
  border-radius: 8px;
  background: rgba(8, 18, 29, 0.6);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row strong,
body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row span {
  color: rgba(218, 231, 246, 0.9);
  font-size: 12px;
  line-height: 1.25;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-photo {
  width: 42px;
  height: 30px;
  border-radius: 7px;
  background:
    linear-gradient(18deg, rgba(242, 246, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(92, 142, 206, 0.85), rgba(55, 72, 90, 0.9));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-photo--blue {
  background:
    linear-gradient(18deg, rgba(242, 246, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(78, 156, 230, 0.9), rgba(31, 71, 110, 0.9));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-photo--gray {
  background:
    linear-gradient(18deg, rgba(242, 246, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(160deg, rgba(145, 154, 164, 0.9), rgba(42, 50, 61, 0.9));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board table,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board table,
body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table table {
  width: 100%;
  border-collapse: collapse;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board table {
  table-layout: fixed;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(1),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(1) {
  width: 33%;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(2),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(2) {
  width: 13%;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(3),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(3),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(5),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(5) {
  width: 7%;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(4),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(4),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(6),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(6),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(7),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(7),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th:nth-child(8),
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td:nth-child(8) {
  width: 10%;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board th,
body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board td,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td,
body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table th,
body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.11);
  color: rgba(218, 231, 246, 0.9);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board th,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board th {
  color: rgba(153, 178, 204, 0.78);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-file,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-flight-summary {
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-file strong,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-file span,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-flight-summary strong,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-flight-summary span,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td > span,
body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board td code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-status {
  max-width: 100%;
  padding: 4px 7px;
  font-size: 10px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board .aircraft-upload-action {
  min-width: 0;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 182, 45, 0.82);
  border-radius: 8px;
  color: rgba(255, 211, 124, 0.98);
  font-size: 14px;
  font-weight: 800;
  background: rgba(31, 28, 13, 0.96);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: rgba(12, 18, 26, 0.98);
  background: rgba(255, 186, 54, 0.98);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--top-right {
  top: 116px;
  right: 13px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--top-right::before {
  content: "";
  position: absolute;
  right: 32px;
  bottom: calc(100% + 2px);
  width: 2px;
  height: 48px;
  background: rgba(255, 182, 45, 0.92);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--top-right::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: calc(100% + 44px);
  border-right: 7px solid transparent;
  border-bottom: 9px solid rgba(255, 182, 45, 0.92);
  border-left: 7px solid transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--gear {
  top: calc(37% + 33px);
  right: calc(14% + 5px);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--gear::before {
  content: "";
  position: absolute;
  right: 42px;
  bottom: calc(100% + 2px);
  width: 2px;
  height: 64px;
  background: rgba(255, 182, 45, 0.92);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout--gear::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: calc(100% + 61px);
  border-right: 7px solid transparent;
  border-bottom: 9px solid rgba(255, 182, 45, 0.92);
  border-left: 7px solid transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table {
  overflow-x: auto;
  padding: 15px;
  border: 1px solid rgba(255, 182, 45, 0.35);
  border-radius: 8px;
  background: rgba(31, 28, 13, 0.45);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table h3 {
  margin: 0 0 10px;
  color: rgba(255, 211, 124, 0.98);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table th {
  width: 33%;
  color: rgba(255, 213, 137, 0.96);
  vertical-align: top;
  text-transform: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide {
  display: grid;
  gap: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide > header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.14);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide h3,
body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide h4,
body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide p,
body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl,
body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dt,
body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dd {
  margin: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide h3 {
  color: rgba(246, 250, 255, 0.98);
  font-size: 18px;
  line-height: 1.2;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide header p {
  max-width: 780px;
  margin-top: 7px;
  color: rgba(196, 213, 232, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section {
  min-width: 0;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(127, 164, 210, 0.12);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section:nth-child(-n + 2) {
  border-top: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section:nth-child(2n) {
  border-left: 1px solid rgba(127, 164, 210, 0.12);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide h4 {
  color: rgba(105, 190, 255, 0.98);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl > div {
  display: grid;
  grid-template-columns: minmax(126px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl > div:first-child {
  padding-top: 0;
  border-top: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl > div:last-child {
  padding-bottom: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dt {
  color: rgba(245, 248, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dd {
  color: rgba(184, 199, 218, 0.88);
  font-size: 13px;
  line-height: 1.42;
}

body[data-active-view="dashboard-guide"] .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .status-pill.is-complete {
  color: rgba(187, 255, 223, 0.98);
  background: rgba(34, 127, 81, 0.32);
}

body[data-active-view="dashboard-guide"] .status-pill.is-waiting {
  color: rgba(255, 218, 139, 0.98);
  background: rgba(151, 100, 16, 0.35);
}

body[data-active-view="dashboard-guide"] .status-pill.is-error {
  color: rgba(255, 180, 180, 0.98);
  background: rgba(167, 52, 52, 0.35);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-upload-checks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-upload-checks span {
  color: rgba(180, 224, 255, 0.92);
  font-size: 13px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid,
body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid,
body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery,
body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid article,
body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid article {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(127, 164, 210, 0.15);
  border-radius: 8px;
  background: rgba(10, 24, 38, 0.72);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid article.is-recommended {
  border-color: rgba(95, 201, 168, 0.42);
  background: rgba(17, 53, 45, 0.58);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid span,
body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid h3 {
  display: block;
  margin: 0 0 6px;
  color: rgba(139, 214, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid p,
body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid p {
  margin: 0;
  color: rgba(211, 224, 239, 0.88);
  font-size: 13px;
  line-height: 1.42;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid article {
  min-width: 0;
  border-right: 1px solid rgba(127, 164, 210, 0.12);
  background: transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid article:last-child {
  border-right: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: top center;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid h3 {
  margin: 0;
  padding: 13px 13px 6px;
  color: rgba(246, 250, 255, 0.96);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid p {
  margin: 0;
  padding: 0 13px 15px;
  color: rgba(211, 224, 239, 0.88);
  font-size: 13px;
  line-height: 1.44;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery {
  padding: 12px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 7px;
  background: rgba(5, 10, 16, 0.75);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: top center;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery figcaption {
  padding: 8px 10px;
  color: rgba(211, 224, 239, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-reference {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 0.8fr);
  gap: 26px;
  margin-top: 24px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-reference .dashboard-guide-section-copy h2 {
  max-width: 720px;
  font-size: clamp(26px, 2.8vw, 40px);
}

@media (max-width: 1180px) {
  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-step,
  body[data-active-view="dashboard-guide"] .dashboard-guide-runbook,
  body[data-active-view="dashboard-guide"] .dashboard-guide-detectors,
  body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios {
    scroll-margin-top: var(--hiw-scroll-offset, 226px);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook,
  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-body,
  body[data-active-view="dashboard-guide"] .dashboard-guide-reference {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-action-rail {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(127, 164, 210, 0.16);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-flow-body {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-action-rail {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(127, 164, 210, 0.16);
  }
}

@media (max-width: 760px) {
  body[data-active-view="dashboard-guide"] .dashboard-guide-page {
    padding-inline: 14px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook {
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook h1 {
    margin-bottom: 18px;
    font-size: 31px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook .dashboard-guide-hero-copy > p {
    font-size: 15px;
    line-height: 1.52;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-advisory {
    margin-top: 18px;
    font-size: 13px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook .dashboard-guide-hero-image {
    max-height: 150px;
    aspect-ratio: 1.85;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-runbook {
    padding: 16px 14px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair,
  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-flow-step,
  body[data-active-view="dashboard-guide"] .dashboard-guide-step-pair .dashboard-guide-flow-body,
  body[data-active-view="dashboard-guide"] .dashboard-guide-visual-stack,
  body[data-active-view="dashboard-guide"] .dashboard-guide-visual-panel {
    min-width: 0;
    max-width: 100%;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-screenshot-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li {
    min-width: 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li::after {
    display: none;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-timeline a {
    min-height: 86px;
    padding: 10px 6px;
    border: 1px solid rgba(127, 164, 210, 0.16);
    border-radius: 8px;
    background: rgba(8, 18, 29, 0.46);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-step {
    padding: 22px 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-step,
  body[data-active-view="dashboard-guide"] .dashboard-guide-runbook,
  body[data-active-view="dashboard-guide"] .dashboard-guide-detectors,
  body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios {
    scroll-margin-top: var(--hiw-scroll-offset, 226px);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-heading {
    gap: 11px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-step-badge {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-flow-heading h2 {
    font-size: 24px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-action-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-action-item p {
    font-size: 13px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-photo {
    width: 100%;
    min-height: 118px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-actions {
    position: static;
    order: -1;
    justify-content: flex-end;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-empty-profile {
    min-height: 96px;
    padding-right: 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy dl {
    max-width: none;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header,
  body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row {
    grid-template-columns: 42px minmax(72px, 0.75fr) minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header span:first-child {
    grid-column: 2;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-header span:nth-child(n + 3),
  body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row span:nth-of-type(n + 3) {
    display: none;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board {
    padding: 14px;
    overflow-x: auto;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-board table,
  body[data-active-view="dashboard-guide"] .dashboard-guide-uploads-board table,
  body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table table {
    min-width: 560px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section,
  body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section:nth-child(-n + 2) {
    border-top: 1px solid rgba(127, 164, 210, 0.12);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section:first-child {
    border-top: 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-review-setting-groups > section:nth-child(2n) {
    border-left: 0;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid,
  body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid,
  body[data-active-view="dashboard-guide"] .dashboard-guide-pdf-gallery,
  body[data-active-view="dashboard-guide"] .dashboard-guide-term-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(127, 164, 210, 0.12);
  }
}

/* How It Works — detector teaching cards + worked-example scenarios */
body[data-active-view="dashboard-guide"] .dashboard-guide-detectors,
body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios {
  margin-top: 24px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detectors .dashboard-guide-section-copy,
body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios .dashboard-guide-section-copy {
  margin-bottom: 18px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detectors .dashboard-guide-section-copy h2,
body[data-active-view="dashboard-guide"] .dashboard-guide-scenarios .dashboard-guide-section-copy h2 {
  max-width: 720px;
  font-size: clamp(24px, 2.6vw, 36px);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(127, 164, 210, 0.15);
  border-radius: 10px;
  background: rgba(10, 24, 38, 0.55);
}

body[data-active-view="dashboard-guide"] .dgd-head h3 {
  margin: 0 0 6px;
  color: rgba(139, 214, 255, 0.96);
  font-size: 18px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dgd-watch {
  margin: 0;
  color: rgba(226, 236, 248, 0.92);
  font-size: 14px;
  line-height: 1.5;
}

body[data-active-view="dashboard-guide"] .dgd-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 14px;
  align-items: start;
}

body[data-active-view="dashboard-guide"] .dgd-notes {
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dgd-opcontext {
  display: grid;
  gap: 8px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  border: 1px solid rgba(127, 164, 210, 0.16);
  border-radius: 8px;
  background: rgba(10, 24, 38, 0.6);
}

body[data-active-view="dashboard-guide"] .dgd-opc-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  border-radius: 6px;
  background: rgba(90, 127, 184, 0.16);
  border: 1px solid rgba(127, 164, 210, 0.4);
  color: rgba(185, 210, 239, 0.95);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip strong {
  color: rgba(246, 250, 255, 0.96);
  font-size: 13px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip span {
  color: rgba(150, 180, 210, 0.85);
  font-size: 11px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip em {
  color: rgba(211, 224, 239, 0.72);
  font-size: 11px;
  font-style: normal;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin-top: 10px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid > article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid > article > div {
  min-width: 0;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(246, 250, 255, 0.96);
  font-size: 13.5px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid p {
  margin: 0;
  color: rgba(211, 224, 239, 0.84);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-active-view="dashboard-guide"] .dgd-legend {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(127, 164, 210, 0.13);
}

body[data-active-view="dashboard-guide"] .dgd-legend-title {
  margin: 0 0 7px;
  color: rgba(139, 214, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-active-view="dashboard-guide"] .dgd-legend ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

body[data-active-view="dashboard-guide"] .dgd-legend li {
  position: relative;
  padding-left: 26px;
  color: rgba(211, 224, 239, 0.88);
  font-size: 12.5px;
  line-height: 1.42;
}

body[data-active-view="dashboard-guide"] .dgd-legend strong {
  color: rgba(246, 250, 255, 0.96);
}

body[data-active-view="dashboard-guide"] .dgd-sw {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 13px;
  border-radius: 3px;
}

body[data-active-view="dashboard-guide"] .dgd-sw-bar {
  background: rgba(122, 160, 200, 0.6);
}

body[data-active-view="dashboard-guide"] .dgd-sw-mid {
  background: rgba(45, 212, 191, 0.18);
  border: 1px solid rgba(45, 212, 191, 0.5);
}

body[data-active-view="dashboard-guide"] .dgd-sw-range {
  background: rgba(45, 212, 191, 0.07);
  border: 1px dashed rgba(45, 212, 191, 0.4);
}

body[data-active-view="dashboard-guide"] .dgd-sw-line {
  left: 6px;
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: #f6faff;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-head {
  margin-top: 4px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-head h3 {
  margin: 0 0 4px;
  color: rgba(139, 214, 255, 0.96);
  font-size: 15px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-head p {
  margin: 0 0 10px;
  color: rgba(211, 224, 239, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sample-graph {
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(127, 164, 210, 0.14);
  border-radius: 8px;
  background: rgba(6, 16, 26, 0.7);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sample-graph svg {
  display: block;
  width: 100%;
  height: auto;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sample-graph figcaption {
  margin-top: 8px;
  color: rgba(196, 209, 224, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dgd-why {
  margin: 0 0 12px;
  color: rgba(211, 224, 239, 0.9);
  font-size: 13.5px;
  line-height: 1.5;
}

body[data-active-view="dashboard-guide"] .dgd-why span {
  display: block;
  margin-bottom: 3px;
  color: rgba(139, 214, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-active-view="dashboard-guide"] .dgd-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

body[data-active-view="dashboard-guide"] .dgd-points li {
  padding-left: 12px;
  color: rgba(211, 224, 239, 0.88);
  font-size: 13px;
  line-height: 1.45;
  border-left: 2px solid rgba(127, 164, 210, 0.4);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-notice {
  border-left-color: rgba(95, 201, 168, 0.7);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-warn {
  border-left-color: rgba(255, 159, 28, 0.7);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-next {
  border-left-color: rgba(139, 214, 255, 0.6);
}

body[data-active-view="dashboard-guide"] .dgd-points strong {
  color: rgba(246, 250, 255, 0.96);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-scenario-card {
  padding: 16px;
  border: 1px solid rgba(127, 164, 210, 0.15);
  border-radius: 10px;
  background: rgba(10, 24, 38, 0.55);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-scenario-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-scenario-card h3 {
  margin: 0;
  color: rgba(246, 250, 255, 0.96);
  font-size: 16px;
}

body[data-active-view="dashboard-guide"] .dgs-chip {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

body[data-active-view="dashboard-guide"] .dgs-chip--watch {
  color: #ffce8a;
  background: rgba(255, 159, 28, 0.14);
  border-color: rgba(255, 159, 28, 0.4);
}

body[data-active-view="dashboard-guide"] .dgs-chip--review {
  color: #ffb0b0;
  background: rgba(255, 93, 93, 0.14);
  border-color: rgba(255, 93, 93, 0.4);
}

body[data-active-view="dashboard-guide"] .dgs-chip--sensor {
  color: #8bd6ff;
  background: rgba(139, 214, 255, 0.12);
  border-color: rgba(139, 214, 255, 0.4);
}

body[data-active-view="dashboard-guide"] .dgs-chip--high {
  color: #c9d6ea;
  background: rgba(127, 164, 210, 0.14);
  border-color: rgba(127, 164, 210, 0.4);
}

body[data-active-view="dashboard-guide"] .dgs-lede {
  margin: 0 0 10px;
  color: rgba(226, 236, 248, 0.9);
  font-size: 13.5px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dgs-steps {
  margin: 0 0 10px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

body[data-active-view="dashboard-guide"] .dgs-steps li {
  color: rgba(211, 224, 239, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dgs-steps strong {
  color: rgba(246, 250, 255, 0.96);
}

body[data-active-view="dashboard-guide"] .dgs-takeaway {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(127, 164, 210, 0.13);
  color: rgba(196, 209, 224, 0.85);
  font-size: 12.5px;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 1180px) {
  body[data-active-view="dashboard-guide"] .dgd-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-active-view="dashboard-guide"] .dashboard-guide-scenario-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Supabase auth/account UI retained from the current branch. */
.auth-dialog .upload-dialog-card { max-width: 420px; }
.auth-oauth-block { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.auth-oauth-btn { width: 100%; justify-content: center; }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-text, #888); margin: 0.25rem 0 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-color, #d8d8d8);
}
.link-action {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-color, #1f6feb); text-decoration: underline;
  font: inherit;
}
.link-action:hover, .link-action:focus-visible { color: var(--accent-color-strong, #1857c4); }

.account-auth-panel { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.account-auth-panel[hidden] { display: none; }
.account-edit-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.account-edit-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.account-auth-panel .upload-dialog-status.is-error { color: var(--danger-color, #c53030); }
.account-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.account-form-grid .upload-field { margin: 0; }
.account-form-grid .upload-field.is-wide { grid-column: 1 / -1; }
.account-detail-list-compact { margin-top: 0.75rem; }
.account-auth-panel .account-section-panel { display: flex; flex-direction: column; }
.topbar-user[data-auth-state="anon"] .topbar-user-name { font-style: italic; opacity: 0.85; }

/* --- Account page redesign (2026-06) -------------------------------------- */
.account-hero-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
  border: 1px solid rgba(105, 165, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 36, 51, 0.88), rgba(16, 28, 40, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.account-hero-panel .account-avatar { flex: none; }
.account-hero-id { display: grid; gap: 4px; min-width: 0; }
.account-hero-panel .eyebrow { margin: 0; }
.account-hero-panel h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; }
.account-hero-email { margin: 0; color: var(--muted); font-size: 14px; }
.account-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.account-chip--role { border-color: rgba(142, 217, 255, 0.4); color: #d7f4ff; }
.account-chip-status { border-radius: 999px; }

.account-rail { display: grid; gap: 14px; align-content: start; min-width: 0; }
.account-aircraft-panel,
.account-management-panel { grid-column: 1 / -1; }

/* Profile view (read-only) layer */
.account-view-list { display: grid; margin-top: 6px; }
.account-view-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.account-view-row:first-child { border-top: none; }
.account-view-label {
  flex: none;
  color: rgba(204, 217, 232, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.account-view-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  color: rgba(241, 247, 255, 0.94);
  font-size: 14px;
  font-weight: 650;
  word-break: break-word;
}
.account-view-empty { color: rgba(190, 202, 216, 0.78); font-weight: 600; }

.account-view-disclosure { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.account-view-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
}
.account-view-disclosure > summary::-webkit-details-marker { display: none; }
.account-view-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms;
}
.account-view-disclosure[open] .account-view-chev { transform: rotate(225deg); }
.account-view-sublist .account-view-row { padding: 9px 0; }

/* Profile edit grid */
.account-edit-grid { margin-top: 12px; }
.account-edit-subhead {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(204, 217, 232, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Security activity rows */
.account-security-list { display: grid; margin-top: 6px; }
.account-security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.account-security-row:first-child { border-top: none; }
.account-security-copy { display: grid; gap: 3px; min-width: 0; }
.account-security-copy strong { font-size: 14px; font-weight: 750; }
.account-security-note { color: var(--muted); font-size: 12px; font-weight: 600; }
.account-security-note.is-amber { color: var(--amber); font-weight: 750; }
.account-security-list .account-password-fields { margin: 4px 0 10px; }
.account-cta-amber { flex: none; }

.account-cta-amber {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 159, 28, 0.5);
  background: rgba(255, 159, 28, 0.14);
  color: #ffce8a;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.account-cta-amber:disabled { cursor: not-allowed; opacity: 0.85; }

/* Plan & usage */
.account-plan-detail { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-trial-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.account-trial-notice.is-warning { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1); }
.topbar-trial-status {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.account-usage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.account-usage-stat {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.4);
  border: 1px solid rgba(105, 165, 255, 0.12);
}
.account-usage-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.account-usage-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-plan-upgrade { align-self: flex-start; }
.account-billing-status { min-height: 19px; }
.account-billing-status.is-warning { color: var(--amber); }
.account-plan-checkout-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 12px 0 8px;
}
.account-plan-choice { min-width: 150px; margin: 0; }
.account-plan-choice select { min-height: 36px; }
.account-plan-checkout-row .account-plan-upgrade { min-height: 36px; }

/* Richer aircraft cards */
.account-aircraft-list { display: grid; gap: 10px; margin-top: 6px; }
.account-aircraft-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(105, 165, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.28);
}
.account-aircraft-main { display: grid; gap: 7px; min-width: 0; }
.account-aircraft-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.account-aircraft-head strong { font-size: 15px; font-weight: 800; }
.account-aircraft-model { color: var(--muted); font-size: 13px; font-weight: 600; }
.account-aircraft-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.account-aircraft-chips .account-chip { min-height: 24px; padding: 2px 9px; font-size: 11px; color: var(--text); }
.account-aircraft-chips .account-chip--muted { color: var(--muted); border-color: rgba(255, 255, 255, 0.1); }
.account-aircraft-actions { display: flex; gap: 8px; flex: none; }

/* Danger / account controls */
.account-control-list { display: grid; gap: 10px; margin-top: 6px; }
.account-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(105, 165, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.28);
}
.account-control-row.is-danger {
  border-color: rgba(255, 113, 113, 0.26);
  background: rgba(72, 20, 24, 0.2);
}
.account-control-copy { display: grid; gap: 3px; min-width: 0; }
.account-control-copy strong { font-size: 14px; font-weight: 750; }
.account-control-copy span { color: var(--muted); font-size: 12.5px; }
.account-control-row.is-danger .account-control-copy strong { color: #ffb4ad; }
#accountUpgradeSubscriptionBtn:disabled,
#accountCancelSubscriptionBtn:disabled,
#accountDeleteDataBtn:disabled { cursor: not-allowed; }

/* Footer + dirty-state save bar */
.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.account-save-bar {
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.1);
}
.account-auth-panel.is-dirty .account-save-bar { display: flex; }
.account-save-bar__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: #bff0e4;
}
.account-save-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.account-save-bar__actions { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .account-hero-panel { flex-wrap: wrap; }
  .account-aircraft-row { grid-template-columns: auto minmax(0, 1fr); }
  .account-aircraft-actions { grid-column: 1 / -1; }
  .account-control-row { flex-direction: column; align-items: stretch; }
  .account-plan-checkout-row { align-items: stretch; flex-direction: column; }
  .account-plan-choice { min-width: 0; }
  .account-plan-checkout-row .account-plan-upgrade { width: 100%; }
  .account-footer { flex-direction: column-reverse; align-items: stretch; }
  .account-save-bar { width: 100%; margin-left: 0; justify-content: space-between; }
}



/* ============================================================
   Admin page (Users + Site Settings tabs)
   Backed by src/admin/admin-page.ts. Visible only when the
   signed-in user is is_admin=true; the top-right #adminNavButton
   is also hidden by default and revealed via JS.
   ============================================================ */

.admin-nav-button { font-weight: 600; }

.admin-view { padding: 0; color: var(--text); }

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
  color: var(--text);
  /* No viewport-based min-height: the app-shell's column flex already
     stretches the workspace and pins the site footer to the viewport
     bottom. A 100vh-ish reservation here stacks with the topbar + footer
     and forces a scrollbar on short admin tabs (e.g. Site Settings). */
}

.admin-sidebar {
  background: var(--panel);
  border-radius: 12px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  align-self: flex-start;
  position: sticky;
  top: 24px;
  color: var(--text);
}

.admin-sidebar-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 12px 12px;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sidebar-item {
  appearance: none;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.admin-sidebar-item:hover { background: rgba(255, 255, 255, 0.06); }

.admin-sidebar-item.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.admin-main { min-width: 0; color: var(--text); }

.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel-header h2 { margin: 4px 0 0; color: var(--text); }
.admin-panel-header .eyebrow { margin: 0; color: var(--muted); }

.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.admin-users-toolbar input {
  flex: 1 1 280px;
  min-inline-size: 0;
  block-size: 36px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.admin-users-toolbar input:focus-visible {
  outline: 2px solid rgba(72, 158, 255, 0.82);
  outline-offset: 1px;
}

.admin-users-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-users-filter button {
  min-block-size: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.admin-users-filter button:hover {
  border-color: rgba(99, 179, 255, 0.72);
  color: var(--text);
}

.admin-users-filter button.is-active {
  border-color: rgba(72, 158, 255, 0.82);
  background: rgba(47, 136, 255, 0.18);
  color: #dceeff;
}

.admin-panel-error {
  background: rgba(255, 73, 61, 0.14);
  color: #ffb3ad;
  border: 1px solid rgba(255, 73, 61, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}

.admin-table-wrap {
  overflow: auto;
  /* Seal descendant overflow completely: without paint containment, Chromium
     lets positioned row content (lifecycle menus, selects) propagate scrollable
     overflow past this clip and stretch the PAGE by the table's full height. */
  contain: paint;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

/* Desktop: the users table fits the viewport (height published by
   sizeUsersTableWrap in src/admin/admin-page.ts) and scrolls internally
   with a sticky header, instead of growing the page. Mobile keeps the
   natural page flow. */
@media (min-width: 761px) {
  #adminPanelUsers .admin-table-wrap,
  #adminPanelTestUsers .admin-table-wrap {
    /* max-height (not height): a short user list hugs its rows; a long one
       stops exactly at the footer and scrolls internally. */
    max-height: var(--admin-users-wrap-max, calc(100dvh - 340px));
    overscroll-behavior: contain;
  }
}

.admin-table {
  width: 100%;
  /* `separate` (not `collapse`) so the sticky header keeps its border while
     stuck — collapsed borders detach from sticky cells in Chromium. */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  color: var(--text);
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 12px 14px;
  background: var(--panel-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--text);
}

.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(47, 136, 255, 0.08); }

.admin-table small { color: var(--muted); margin-left: 4px; }

.admin-engine-class-cell {
  min-width: 118px;
}

.admin-engine-class-select {
  width: 100%;
  min-width: 132px;
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.admin-engine-class-select:focus-visible {
  outline: 2px solid rgba(72, 158, 255, 0.82);
  outline-offset: 1px;
}

.admin-engine-class-select:disabled { opacity: 0.65; cursor: wait; }

.admin-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.admin-table-actions { white-space: nowrap; text-align: right; }

/* Lock the selection column to the left of the admin user tables while they
   scroll horizontally, with a grey divider so it's clearly pinned. Empty-state
   rows use a full-width [colspan] cell that must not be pinned. */
#adminUsersTable thead th:first-child,
#adminTestUsersTable thead th:first-child,
#adminUsersTable tbody td:first-child:not([colspan]),
#adminTestUsersTable tbody td:first-child:not([colspan]) {
  position: sticky;
  left: 0;
  border-right: 2px solid rgba(148, 163, 184, 0.45);
}
#adminUsersTable tbody td:first-child:not([colspan]),
#adminTestUsersTable tbody td:first-child:not([colspan]) {
  z-index: 1;
  background: var(--panel);
}
/* The pinned header corner must stack above the sticky header row (z-index 2). */
#adminUsersTable thead th:first-child,
#adminTestUsersTable thead th:first-child {
  z-index: 3;
}

.admin-boolean-cell {
  text-align: center;
}

.admin-plan-cell {
  width: 152px;
  min-width: 152px;
  padding-inline: 6px !important;
  text-align: center;
}

.admin-plan-controls {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.admin-plan-transition {
  color: rgba(209, 222, 238, 0.9);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.admin-plan-select {
  inline-size: 140px;
  min-inline-size: 140px;
  min-height: 32px;
  height: 32px;
  padding: 0 26px 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.admin-plan-select:disabled {
  opacity: 0.6;
  cursor: progress;
}

.admin-plan-enforcement-toggle {
  display: inline-grid;
  grid-template-columns: 26px auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.admin-plan-enforcement-toggle.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.admin-plan-enforcement-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.admin-plan-enforcement-track {
  position: relative;
  inline-size: 26px;
  block-size: 16px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-plan-enforcement-track::after {
  position: absolute;
  inset: 2px auto 2px 2px;
  inline-size: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.admin-plan-enforcement-input:checked + .admin-plan-enforcement-track {
  border-color: rgba(47, 136, 255, 0.9);
  background: rgba(47, 136, 255, 0.58);
}

.admin-plan-enforcement-input:checked + .admin-plan-enforcement-track::after {
  transform: translateX(10px);
  background: #ffffff;
}

.admin-plan-enforcement-input:focus-visible + .admin-plan-enforcement-track {
  outline: 2px solid rgba(72, 158, 255, 0.82);
  outline-offset: 2px;
}

.admin-plan-usage {
  display: grid;
  gap: 2px;
  min-inline-size: 132px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.admin-plan-usage-metric strong {
  color: inherit;
  font-weight: 700;
}

.admin-plan-usage-metric.is-at {
  color: #b7791f;
}

.admin-plan-usage-metric.is-over {
  color: var(--danger-color, #c53030);
}

.admin-plan-ai-feature-summary {
  color: var(--muted);
  font-size: 11px;
}

.admin-boolean-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 28px;
  cursor: pointer;
}

.admin-boolean-toggle.is-disabled {
  cursor: not-allowed;
}

.admin-boolean-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-boolean-track {
  position: relative;
  inline-size: 38px;
  block-size: 22px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.admin-boolean-track::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.admin-boolean-input:checked + .admin-boolean-track {
  border-color: rgba(98, 206, 77, 0.56);
  background: rgba(34, 197, 94, 0.22);
}

.admin-boolean-input:checked + .admin-boolean-track::after {
  transform: translateX(16px);
  background: #a6e89a;
}

.admin-boolean-input:focus-visible + .admin-boolean-track {
  outline: 2px solid rgba(105, 165, 255, 0.76);
  outline-offset: 2px;
}

.admin-boolean-input:disabled + .admin-boolean-track {
  opacity: 0.58;
}

.admin-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.admin-status-pending {
  background: rgba(255, 159, 28, 0.16);
  color: #ffcf85;
  border-color: rgba(255, 159, 28, 0.4);
}
.admin-status-approved {
  background: rgba(98, 206, 77, 0.16);
  color: #a6e89a;
  border-color: rgba(98, 206, 77, 0.4);
}
.admin-status-admin {
  background: rgba(120, 160, 255, 0.18);
  color: #b8cdff;
  border-color: rgba(120, 160, 255, 0.45);
}
.admin-status-stack {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.admin-status-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.42);
}
.admin-status-deletion {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.42);
  font-size: 10px;
}
.admin-lifecycle-menu {
  position: relative;
  text-align: left;
}
.admin-lifecycle-menu > summary {
  min-width: 72px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  text-align: center;
}
.admin-lifecycle-menu > summary::-webkit-details-marker { display: none; }
/* Closed menus must leave layout entirely: their absolutely-positioned boxes
   otherwise project past the scrolling table wrap and stretch the page. */
.admin-lifecycle-menu:not([open]) > div { display: none; }
.admin-lifecycle-menu > div {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}
.admin-lifecycle-menu button {
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.admin-lifecycle-menu button:hover { background: rgba(148, 163, 184, 0.12); }
.admin-lifecycle-menu button.is-destructive {
  margin-top: 4px;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0 0 7px 7px;
  color: #fca5a5;
}

/* Row-selection checkbox column + bulk actions. */
.admin-select-cell { width: 32px; text-align: center; }
.admin-select-cell input { cursor: pointer; }
.admin-bulk-actions { display: inline-flex; }
/* The bulk-actions dropdown reuses the row Actions menu styling, anchored to the
   left so it opens under the button in the toolbar rather than off-screen. */
.admin-bulk-menu { position: relative; text-align: left; }
.admin-bulk-menu > summary {
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.18);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
}
.admin-bulk-menu > summary::-webkit-details-marker { display: none; }
/* Idle state of the toolbar actions control: nothing selected, so the button is
   an inert hint (its title tells the operator to pick a checkbox). */
.admin-actions-idle {
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: not-allowed;
  white-space: nowrap;
}
.admin-bulk-menu:not([open]) > div { display: none; }
.admin-bulk-menu > div {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #111827;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}
.admin-bulk-menu button {
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.admin-bulk-menu button:hover { background: rgba(148, 163, 184, 0.12); }
.admin-bulk-plan-field { display: grid; gap: 6px; margin: 10px 0; }
.admin-bulk-plan-field select {
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  font: inherit;
}

/* Admin impersonation banner ("Logged in as XYZ" + Return to Admin). Shown
   only when an impersonation session is active (see
   src/auth/impersonation-banner.ts). Sticky to the top of the viewport so it
   stays visible across all views; the body padding rule below keeps the
   underlying app from being covered. */
.impersonation-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  width: 100%;
}
.impersonation-banner-text strong {
  font-weight: 700;
}
.impersonation-banner-button {
  background: #1a1a1a;
  color: #fde68a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.impersonation-banner-button:hover,
.impersonation-banner-button:focus {
  background: #000;
  color: #fff;
  outline: none;
}
body.is-impersonating {
  /* Banner is sticky so it consumes layout space at the top automatically;
     no extra padding needed, but ensure the auth landing overlay (which
     covers the full viewport when shown) does not occlude the banner. */
}
body.is-impersonating .auth-landing,
body.is-impersonating .approval-gate {
  /* If the impersonated user is unauthenticated/pending these overlays would
     normally cover the banner — keep the banner clickable above them. */
  z-index: 9000;
}

.admin-settings-list { display: flex; flex-direction: column; gap: 12px; }
.admin-settings-section-title {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
}
.admin-settings-intro { margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.admin-subscription-plans { display: grid; gap: 14px; }
.admin-plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.admin-plan-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.admin-plan-tab:hover { color: var(--text); background: var(--panel); }
.admin-plan-tab.is-active {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
.admin-plan-panels { display: grid; gap: 14px; }
.admin-plan-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}
.admin-plan-editor-body {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
}
.admin-plan-summary {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(47, 136, 255, 0.07), transparent 55%);
}
.admin-plan-summary-heading { display: grid; justify-items: start; gap: 7px; }
.admin-plan-eyebrow,
.admin-plan-summary-section h4 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-plan-summary-heading h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.admin-plan-active-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid rgba(68, 211, 143, 0.55);
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}
.admin-plan-active-control::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44d38f;
  content: "";
}
.admin-plan-active-control:has(input:not(:checked)) { border-color: var(--line); color: var(--muted); }
.admin-plan-active-control:has(input:not(:checked))::before { background: var(--muted); }
.admin-plan-active-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-plan-active-control:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.admin-plan-summary-section {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.admin-plan-summary-section p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.55; }
.admin-plan-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.admin-plan-summary-row > span { color: var(--muted); }
.admin-plan-summary-row > strong { max-width: 55%; text-align: right; font-weight: 600; }
.admin-plan-summary-metadata > span { color: var(--muted); font-size: 12px; }
.admin-plan-summary-metadata > strong { font-size: 12px; font-weight: 500; line-height: 1.5; }
.admin-plan-form-content { padding: 22px 26px 26px; }
.admin-plan-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-plan-form-header h3 { margin: 0 0 5px; font-size: 19px; }
.admin-plan-form-header p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-plan-key {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.admin-plan-form-section { padding-top: 22px; }
.admin-plan-form-section + .admin-plan-form-section { margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.admin-plan-form-section h4 { margin: 0 0 14px; font-size: 15px; }
.admin-plan-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.admin-plan-field { display: grid; align-content: start; gap: 6px; font-size: 13px; color: var(--muted); }
.admin-plan-field-control { display: flex; align-items: center; gap: 10px; }
.admin-plan-field-control > input { min-width: 0; flex: 1 1 auto; }
.admin-plan-field input,
.admin-plan-field select,
.admin-plan-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--panel-strong, var(--panel));
  color: var(--text);
  font: inherit;
}
.admin-plan-field textarea { min-height: 72px; resize: vertical; }
.admin-plan-field input:disabled { opacity: 0.55; }
/* Card-bullet editor sits below the Trends checkbox in Feature access. */
.admin-plan-bullets-field { margin-top: 12px; }
.admin-plan-bullets-field textarea { min-height: 120px; }
.admin-plan-unlimited,
.admin-plan-checkbox { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--text); font-size: 13px; white-space: nowrap; }
.admin-plan-field .admin-plan-unlimited input[type="checkbox"],
.admin-plan-checkbox input[type="checkbox"],
.admin-plan-active-control input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--blue);
}
.admin-plan-currency-field { max-width: calc(50% - 10px); }
.admin-plan-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.32);
}
.admin-plan-editor-footer [data-plan-save-status] { color: var(--muted); font-size: 12px; }
.admin-plan-editor-footer [data-plan-save-status].is-dirty { color: var(--text); }
.admin-plan-editor-footer .primary-action { min-width: 124px; }
@media (max-width: 1100px) {
  .admin-plan-editor-body { grid-template-columns: 220px minmax(0, 1fr); }
  .admin-plan-summary { padding: 18px; }
  .admin-plan-form-content { padding: 20px; }
  .admin-plan-field-control { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 780px) {
  .admin-plan-editor-body { grid-template-columns: 1fr; }
  .admin-plan-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-plan-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .admin-plan-summary-heading { grid-column: 1 / -1; }
  .admin-plan-summary-section { margin-top: 18px; padding-top: 16px; }
  .admin-plan-field-control { align-items: center; flex-direction: row; }
}
@media (max-width: 560px) {
  .admin-plan-summary { display: block; }
  .admin-plan-editor-grid { grid-template-columns: 1fr; }
  .admin-plan-currency-field { max-width: none; }
  .admin-plan-field-control { align-items: flex-start; flex-direction: column; }
  .admin-plan-editor-footer { align-items: stretch; flex-direction: column; }
  .admin-plan-editor-footer .primary-action { width: 100%; }
}

/* Analytics > AI usage (issue #256) */
.admin-table .admin-num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-range {
  display: inline-flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
}
.admin-range button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.admin-range button.is-active {
  background: rgba(47, 136, 255, 0.16);
  color: var(--text);
  font-weight: 600;
}
.admin-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.admin-kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.admin-kpi-label { font-size: 12px; color: var(--muted); }
.admin-kpi-value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.admin-kpi-value.is-attention { color: #f0b45a; }
.admin-kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.admin-section-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 2px 10px;
}
.admin-usage-model { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.admin-usage-unpriced { color: #f0b45a; }
@media (max-width: 720px) {
  .admin-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.admin-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.admin-setting-text h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.admin-setting-text p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.admin-setting-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  font-size: 12px;
}

.admin-setting-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.admin-setting-toggle input[type="checkbox"] { accent-color: var(--blue); }

.admin-number-setting-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.admin-number-setting-control input {
  width: 92px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong, var(--panel));
  color: var(--text);
  font: inherit;
}

.admin-model-setting-control {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: min(100%, 330px);
}

.admin-model-setting-control select {
  width: 100%;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong, var(--panel));
  color: var(--text);
  font: inherit;
}

.admin-model-pricing {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.admin-model-setting-control small,
.admin-model-warning {
  color: var(--muted);
  font-size: 12px;
}

.admin-model-warning {
  display: block;
  margin-top: 6px;
  color: #f0b45a;
}

@media (max-width: 720px) {
  .admin-model-setting-row {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-model-setting-control {
    justify-items: start;
  }
}

.admin-settings-loading { color: var(--muted); padding: 16px; }

.admin-approve-dialog .upload-dialog-card { max-width: 440px; }
.admin-deletion-dialog .upload-dialog-card { max-width: 560px; }
.admin-deletion-summary {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
}
.admin-deletion-summary > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.admin-deletion-summary dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-deletion-summary dd { margin: 0; color: var(--text); font-size: 13px; }



/* ------------------------------------------------------------------ */
/* Approval-pending landing gate + post-signup success modal          */
/* ------------------------------------------------------------------ */

.approval-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(180deg, #0b1220 0%, #111a2e 100%);
  color: #e6edf6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
}
.approval-gate[hidden] { display: none; }
/* Verdict not yet known: cover the app with the branded gate background
   only — no card, no copy — so an approved user never glimpses
   "Waiting for approval" and a pending user never glimpses the app. The
   approval-state response (usually prefetched at parse time) swaps in the
   real screen within a beat. */
.approval-gate[data-state="resolving"] .approval-gate-inner { visibility: hidden; }
body[data-approval-gate="1"] { overflow: hidden; }
/* The gate overlay (.approval-gate, position:fixed z-index:9000) visually
   covers the shell. We intentionally do NOT toggle `display:none` or
   `visibility:hidden` on .app-shell — both break the in-shell
   `<dialog id="aircraftEditDialog">` from rendering visibly when the
   wizard launches "Add aircraft" from the gate. `display:none` blocks
   top-layer promotion in Chromium, and `visibility:hidden` inherits
   into the top-layer dialog. Instead we just disable pointer events on
   the shell so the user can't interact with the underlying app through
   the overlay; the overlay's z-index handles the visual covering. */
body[data-approval-gate="1"] .app-shell { pointer-events: none; }
body[data-approval-gate="1"] .app-shell * { pointer-events: none; }
/* An open dialog (e.g. the aircraft wizard) needs to be interactive and
   sit above the gate. */
body[data-approval-gate="1"] dialog[open],
body[data-approval-gate="1"] dialog[open] * { pointer-events: auto; }
body[data-approval-gate="1"] dialog[open] { z-index: 9500; }
body[data-approval-gate="1"] dialog[open]::backdrop { z-index: 9499; }

/* Forced plan-selection gate: reuses the approval-gate overlay + shell-blocking,
   but is wider to hold the plan card grid. The plan-change dialog (z-index 9601)
   opens above it for paid checkout. */
body[data-plan-gate="1"] { overflow: hidden; }
body[data-plan-gate="1"] .app-shell,
body[data-plan-gate="1"] .app-shell * { pointer-events: none; }
body[data-plan-gate="1"] dialog[open],
body[data-plan-gate="1"] dialog[open] * { pointer-events: auto; }
/* Let the modal grow wide enough to lay the four plans out side by side. The
   compound selector (.plan-selection-gate-inner.approval-gate-inner) is needed
   to outrank the base .approval-gate-inner max-width:640px, which otherwise
   wins on source order. */
.plan-selection-gate-inner.approval-gate-inner { width: 100%; max-width: min(1480px, 96vw); }
.plan-selection-gate-card { max-width: none; width: 100%; text-align: center; }
.plan-selection-gate-card > h1 { margin: 0 0 4px; }
.plan-selection-gate .account-engine-toggle { justify-content: center; margin: 10px auto 18px; }
.plan-selection-gate .upload-dialog-status { margin: 0 auto 8px; }
.plan-selection-gate .upload-dialog-status.is-error { color: #ff8a8a; }
/* Beta approval welcome: a compact single-card modal. Without an explicit width
   the dialog stretches full-bleed, and the lone card rendered into a
   .pricing-plan-grid gets a quarter of it — so size the card to the modal and
   drop the grid to one column. */
.plan-approval-welcome-dialog .upload-dialog-card { width: min(440px, calc(100vw - 32px)); }
.plan-approval-welcome-card { margin: 14px 0; grid-template-columns: 1fr; }
.plan-approval-welcome-card .pricing-plan-card { min-height: 0; }
/* Always four cards in one row: each track holds a comfortable minimum width
   and grows to fill when there's room. When the modal is too narrow to fit all
   four at that minimum, the row scrolls horizontally instead of wrapping (the
   mobile-style carousel the design calls for). */
.plan-selection-gate .pricing-plan-grid {
  margin-top: 8px;
  text-align: left;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.plan-selection-gate .pricing-plan-card { scroll-snap-align: start; }

/* "Check approval status" modal — iconed rows. */
.approval-status-dialog .approval-status-rows {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.approval-status-dialog .approval-status-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  /* Center each row's text against its icon: single-line rows looked
     top-hung with align-items: start while two-line rows looked centered. */
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  line-height: 1.45;
}
.approval-status-dialog .approval-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent, #66a3ff);
  flex-shrink: 0;
}
.approval-status-dialog .approval-status-row--success .approval-status-icon {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
}
.approval-status-dialog .approval-status-row--pending .approval-status-icon {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
}
.approval-status-dialog .approval-status-row--info .approval-status-icon {
  color: #66a3ff;
  background: rgba(102, 163, 255, 0.12);
}
.approval-status-dialog .approval-status-row--question .approval-status-icon {
  color: #b388ff;
  background: rgba(179, 136, 255, 0.14);
}
.approval-status-dialog .approval-status-text {
  display: block;
  font-size: 0.95rem;
}
.approval-status-dialog .approval-status-text strong { display: inline; margin-right: 0.25rem; }
.approval-status-dialog .approval-status-row--success .approval-status-text strong { display: block; margin: 0 0 0.15rem; }
.approval-status-dialog .approval-status-text a { color: #66a3ff; }

/* Profile completion wizard */
.profile-wizard-dialog .profile-wizard-card {
  min-width: min(540px, 92vw);
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-wizard-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.profile-wizard-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #66a3ff, #b388ff);
  transition: width 200ms ease-out;
}
.profile-wizard-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.profile-wizard-step[hidden] { display: none !important; }
.profile-wizard-step label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.profile-wizard-step input,
.profile-wizard-step select {
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font: inherit;
}
.profile-wizard-step input:focus,
.profile-wizard-step select:focus {
  outline: none;
  border-color: #66a3ff;
  box-shadow: 0 0 0 2px rgba(102, 163, 255, 0.25);
}
.edit-email-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.edit-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font: inherit;
}
.edit-email-input:focus {
  outline: none;
  border-color: #66a3ff;
  box-shadow: 0 0 0 2px rgba(102, 163, 255, 0.25);
}
.profile-wizard-hint {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}
.profile-wizard-optional {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  font-size: 0.85em;
}
.profile-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.profile-wizard-footer-actions {
  display: flex;
  gap: 0.5rem;
}

.approval-gate-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.approval-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}
.approval-gate-brand .brand-mark {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.approval-gate-brand .brand-mark img { width: 100%; height: 100%; display: block; }
.approval-gate-name {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.approval-gate-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.approval-gate-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}
.approval-gate-card > p {
  margin: 0 0 20px;
  color: #b7c3d6;
  line-height: 1.55;
}

.approval-gate-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approval-gate-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.approval-gate-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  position: relative;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.approval-gate-step.is-complete .approval-gate-check {
  background: #16a34a;
  border-color: #16a34a;
}
.approval-gate-step.is-complete .approval-gate-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.approval-gate-step.is-complete .approval-gate-step-body h3 {
  color: #9be3b3;
}
.approval-gate-step-body h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}
.approval-gate-step-body p {
  margin: 0;
  font-size: 13px;
  color: #8ea0bd;
}
/* "Done" status indicator on the approval-gate checklist (replaces the
   "Add aircraft" button once the user has added their first aircraft).
   Styled as plain text — not a button — so it doesn't invite a click. */
.approval-gate-done {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  color: #9be3b3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
  pointer-events: none;
}
.approval-gate-done:hover,
.approval-gate-done:focus,
.approval-gate-done:active {
  background: none;
  border: none;
  box-shadow: none;
  color: #9be3b3;
}

.approval-gate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Aircraft add-flow wizard (multi-step). Active only when             */
/* body[data-aircraft-wizard]                                          */
/* ------------------------------------------------------------------ */


.aircraft-wizard-chrome {
  padding: 8px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aircraft-wizard-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
  flex: 0 0 100%;
  width: 100%;
}
body[data-aircraft-wizard] .aircraft-edit-dialog-card header {
  flex-wrap: wrap;
}

body[data-aircraft-wizard] .aircraft-edit-dialog-card {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

body[data-aircraft-wizard] #aircraftEditDialog .aircraft-form-body {
  overscroll-behavior: contain;
}

/* When the wizard surfaces a save error (which reveals the full underlying
   form), hide the progress bar — it no longer represents the user's position
   in the wizard flow. */
#aircraftEditDialog[data-aircraft-wizard-error] .aircraft-wizard-progress {
  display: none;
}
.aircraft-wizard-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #66a3ff, #b388ff);
  transition: width 200ms ease-out;
}
.aircraft-wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #6b7280);
}
.aircraft-wizard-bar {
  width: 100%;
  height: 4px;
  background: rgba(127, 127, 127, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.aircraft-wizard-bar-fill {
  height: 100%;
  background: var(--accent, #3b82f6);
  width: 0%;
  transition: width 180ms ease;
}
.aircraft-wizard-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}
.aircraft-wizard-error[hidden] { display: none; }

/* While the wizard is active, hide the underlying form's own .report-status
   so a stray inline error never replaces the friendly wizard banner. */
body[data-aircraft-wizard] #aircraftEditDialog .report-status { display: none; }

/* Hide the running summary strip while in wizard mode (it's noisy at step 1). */
body[data-aircraft-wizard] #aircraftEditDialog .aircraft-form-summary { display: none; }

/* Hide the section header eyebrow ("Edit aircraft"); the chrome label already
   says what step we're on. */
body[data-aircraft-wizard] #aircraftEditDialog header .eyebrow::after {
  content: " — Add aircraft";
}

/* By default in wizard mode, hide ALL form sections; then re-show only the
   one matched by the current step. */
body[data-aircraft-wizard] #aircraftEditDialog .aircraft-form-section { display: none; }

#aircraftEditDialog[data-aircraft-wizard-step="identity"]        .aircraft-form-section[aria-labelledby="aircraftEditIdentityTitle"],
#aircraftEditDialog[data-aircraft-wizard-step="powerplant"]      .aircraft-form-section[aria-labelledby="aircraftEditPowerplantTitle"],
#aircraftEditDialog[data-aircraft-wizard-step="performance"]     .aircraft-form-section[aria-labelledby="aircraftEditPowerplantTitle"],
#aircraftEditDialog[data-aircraft-wizard-step="propeller"]       .aircraft-form-section[aria-labelledby="aircraftEditPropellerTitle"],
#aircraftEditDialog[data-aircraft-wizard-step="instrumentation"] .aircraft-form-section[aria-labelledby="aircraftEditInstrumentationTitle"] {
  display: block;
}

/* Powerplant step: show the core grid, hide the performance/hint sub-bits. */
body[data-aircraft-wizard] #aircraftEditDialog[data-aircraft-wizard-step="powerplant"] .aircraft-form-hint,
body[data-aircraft-wizard] #aircraftEditDialog[data-aircraft-wizard-step="powerplant"] .aircraft-engine-performance-grid {
  display: none;
}

/* Performance step: hide everything in Powerplant EXCEPT the hint + performance grid. */
body[data-aircraft-wizard] #aircraftEditDialog[data-aircraft-wizard-step="performance"] .aircraft-form-section[aria-labelledby="aircraftEditPowerplantTitle"] > .aircraft-form-grid,
body[data-aircraft-wizard] #aircraftEditDialog[data-aircraft-wizard-step="performance"] .aircraft-form-section[aria-labelledby="aircraftEditPowerplantTitle"] > .aircraft-engine-layout-grid,
body[data-aircraft-wizard] #aircraftEditDialog[data-aircraft-wizard-step="performance"] .aircraft-form-section[aria-labelledby="aircraftEditPowerplantTitle"] > .aircraft-turbo-limits {
  display: none;
}

/* Wizard footer button order: Cancel | Back | Skip | Next | Add Aircraft */
body[data-aircraft-wizard] #aircraftEditDialog .aircraft-edit-dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Minimized upload notice: a small always-on-top progress bar pinned to the
   bottom-right corner while the batch keeps working in the background. */
.ai-work-notice.is-minimized {
  right: 16px;
  left: auto;
  bottom: 16px;
  /* Auto-flow columns instead of a fixed 3-column template: with the Close
     button hidden while work runs, a fixed template kept an empty third
     track (plus its gap) dangling to the right of Show. */
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  width: min(300px, calc(100vw - 32px));
  padding: 10px 12px;
}

.upload-mini {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-mini-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(138, 184, 255, 0.18);
  overflow: hidden;
}

.upload-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #7fb2ff;
  transition: width 240ms ease;
}

.ai-work-notice.is-ready .upload-mini-fill {
  background: #5bd684;
}

.upload-mini-label {
  font-size: 11px;
  font-weight: 700;
  color: #b9d7ff;
}

.ai-work-notice-link {
  margin-left: 4px;
}

/* Site footer + version pill + release history dialog (#212-era beta polish).
   The pill is a button: it opens #versionHistoryDialog. */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer-copyright {
  margin: 0;
}

.site-footer .brand-wordmark {
  font-weight: 700;
  color: var(--text);
}

.site-footer .brand-name-accent {
  color: var(--brand-blue);
}

.site-footer-links {
  display: flex;
  gap: 18px;
}

.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.version-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 3px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.version-pill:hover {
  border-color: var(--brand-blue);
  color: var(--text);
}

.version-pill-new {
  margin-left: 6px;
  color: var(--red);
  font-weight: 700;
}

.version-history-dialog .upload-dialog-card {
  max-width: 620px;
}

.version-history-body {
  overflow-y: auto;
  max-height: min(60vh, 640px);
  display: grid;
  gap: 18px;
}

.version-history-empty {
  margin: 0;
  color: var(--muted);
}

.version-history-version {
  margin: 0 0 8px;
  font-size: 1rem;
}

.version-change-list {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.version-change {
  font-size: 0.86rem;
  line-height: 1.5;
}

.version-change::marker {
  color: var(--muted);
}

.version-change-tag,
.version-change-component {
  display: inline-block;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: baseline;
}

.version-change-tag.is-feature {
  background: rgba(107, 107, 249, 0.16);
  color: var(--brand-blue);
  border: 1px solid rgba(107, 107, 249, 0.45);
}

.version-change-tag.is-bug {
  background: rgba(255, 159, 28, 0.14);
  color: var(--amber);
  border: 1px solid rgba(255, 159, 28, 0.4);
}

.version-change-component {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.version-change-description {
  color: var(--text);
}

.version-history-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.version-history-page-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.version-history-page-button[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Admin > Information tab: deployment details list. */
.admin-info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  max-width: 420px;
}

.admin-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel);
}

.admin-info-row dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-info-row dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --- Public read-only share links (issue #100) ------------------------------ */
/* The share page boots one flight read-only from a capability URL. A slim banner
   sets context; the fleet nav, account button, and every mutation/AI-generation
   control are hidden (not merely disabled, as the demo/read-only mode does). */
.public-share-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(107, 107, 249, 0.16), rgba(47, 136, 255, 0.04));
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--brand-blue);
  backdrop-filter: blur(6px);
}
.public-share-banner__icon {
  display: inline-flex;
  color: var(--brand-blue);
  flex: none;
}
.public-share-banner__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.public-share-banner__text strong { font-weight: 600; font-size: 13px; }
.public-share-banner__context {
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-share-banner__badge {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .public-share-banner__badge { display: none; }
}

/* Hide everything a public viewer must not see or use. */
body[data-public-share] #aircraftSectionNav,
body[data-public-share] .topbar-user,
body[data-public-share] [data-demo-locked],
body[data-public-share] [data-readonly-disabled],
body[data-public-share] #action-remove-flight,
body[data-public-share] .flight-log-menu-button,
body[data-public-share] [data-flight-menu],
body[data-public-share] [data-ai-summary-generate],
body[data-public-share] [data-ai-generate],
body[data-public-share] [data-reanalyze-flight],
body[data-public-share] .tab[data-panel="raw"] {
  display: none !important;
}

/* Sensitivity is locked to the owner's shared value. The control re-renders on
   many updates, so make it inert with CSS (pointer-events) rather than relying
   only on the disabled attribute a re-render would drop; the setter is also
   guarded in engine-scope-renderer. */
body[data-public-share] [data-sensitivity] {
  pointer-events: none;
  opacity: 0.75;
  cursor: default;
}

/* Read-only "shared link is invalid" fallback. */
.public-share-error {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.public-share-error__card {
  max-width: 460px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 30, 41, 0.92);
  padding: 32px 28px;
}
.public-share-error__card h1 { font-size: 20px; margin: 0 0 10px; }
.public-share-error__message { color: var(--text); margin: 0 0 14px; }
.public-share-error__hint { color: var(--muted); font-size: 13px; margin: 0; }

/* Owner-side "Share this flight" dialog. */
.share-link-dialog-card { max-width: 520px; }
/* The create/active states are nested wrappers, so they don't inherit the
   dialog card's grid gap — give them their own so copy/URL/meta/footer breathe.
   :not([hidden]) keeps the display rule from overriding the hidden toggle. */
#shareLinkDialogCreateState:not([hidden]),
#shareLinkDialogActiveState:not([hidden]) {
  display: grid;
  gap: 18px;
}
.share-link-flight {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
}
.share-link-error {
  color: #ff7a70;
  font-size: 13px;
  margin: 0;
}
.share-link-url-row {
  display: flex;
  gap: 8px;
  margin: 0;
}
.share-link-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c151f;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
  cursor: text;
}
.share-link-url:focus-visible {
  outline: 2px solid rgba(82, 156, 255, 0.7);
  outline-offset: 2px;
}
.share-link-meta {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0;
}
.share-link-warning { margin: 0; }

/* The Share action hugs its short label rather than the report button's wide
   118px min-width, so it reads as a compact sibling of Download PDF. */
#action-share-flight { min-width: auto; }

/* ============================================================
   Flight AI Summary V2 briefing (issue #364, briefing-first UI).
   fb-* classes; app tokens only. No stale banner exists in any
   state by design (plan decision 14).
   ============================================================ */

.fb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fb-briefing { display: grid; min-width: 0; }

.fb-head { display: grid; gap: 1rem; padding: 22px 28px 18px; border-bottom: 1px solid var(--line-soft); }
.fb-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 28px; }
.fb-head-copy { display: grid; gap: 0.7rem; min-width: 0; }
.fb-modeline { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.fb-headline { margin: 0; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.28; font-weight: 760; max-width: 54ch; text-wrap: balance; }
.fb-bottomline { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 74ch; }
.fb-head-notes { display: flex; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.fb-quality-detail { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.fb-advisory { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); border-left: 2px solid var(--line); padding-left: 0.65rem; }

.fb-toolbar { display: grid; justify-items: end; gap: 12px; min-width: 250px; }
.fb-toolbar-meta { margin: 0; color: rgba(143, 158, 178, 0.94); font-size: 12.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.fb-toolbar .secondary-action { min-height: 38px; padding: 0 14px; border-color: rgba(76, 166, 255, 0.36); background: rgba(47, 136, 255, 0.1); color: rgba(240, 246, 255, 0.95); font-size: 13px; }
.fb-toolbar .secondary-action:hover,
.fb-toolbar .secondary-action:focus-visible { border-color: rgba(76, 166, 255, 0.7); background: rgba(47, 136, 255, 0.18); }

.fb-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; border-radius: 999px; padding: 0.22rem 0.6rem; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.fb-chip-review, .fb-chip-mode-review { color: var(--amber); border-color: rgba(255, 159, 28, 0.5); background: rgba(255, 159, 28, 0.1); }
.fb-chip-normal, .fb-chip-mode-no-specific-concern { color: var(--green); border-color: rgba(98, 206, 77, 0.45); background: rgba(98, 206, 77, 0.08); }
.fb-chip-context { color: var(--teal); border-color: rgba(45, 212, 191, 0.45); background: rgba(45, 212, 191, 0.08); }
.fb-chip-limited, .fb-chip-mode-limited-evidence { color: var(--muted); }
.fb-chip-trace { color: var(--purple); border-color: rgba(179, 107, 255, 0.5); background: rgba(179, 107, 255, 0.1); }
.fb-chip-quality { color: var(--green); border-color: rgba(98, 206, 77, 0.45); background: rgba(98, 206, 77, 0.08); }

.fb-walkthrough { min-width: 0; border-bottom: 1px solid var(--line-soft); }
.fb-phase-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); min-width: 0; padding: 20px 18px 8px; }
.fb-phase { position: relative; min-width: 0; min-height: 62px; margin: 0; padding: 12px 10px 6px; border: 0; border-top: 2px solid rgba(98, 206, 77, 0.7); border-radius: 0; background: transparent; color: var(--muted); font: inherit; text-align: center; display: grid; align-content: start; justify-items: center; gap: 4px; cursor: default; }
.fb-phase-actionable { cursor: pointer; }
.fb-phase-actionable:hover .fb-phase-name,
.fb-phase-actionable:hover .fb-phase-action { color: #ffc267; }
.fb-phase-actionable:focus-visible { z-index: 1; outline: 2px solid var(--amber); outline-offset: 3px; }
.fb-phase-name { position: static; display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fb-phase-read { max-width: 20ch; overflow: hidden; font-size: 11px; font-weight: 650; line-height: 1.35; color: var(--amber); text-overflow: ellipsis; white-space: nowrap; }
.fb-phase-action { font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.fb-dot { position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; border: 2px solid var(--panel); border-radius: 50%; background: var(--line); transform: translateX(-50%); }
.fb-phase-review { border-top-color: rgba(255, 159, 28, 0.9); }
.fb-phase-review .fb-dot { background: var(--amber); }
.fb-phase-review .fb-phase-name { color: var(--amber); }
.fb-phase-normal .fb-dot { background: var(--green); }
.fb-phase-limited, .fb-phase-not-evaluated { border-top-color: rgba(143, 158, 178, 0.5); }
.fb-phase-limited .fb-dot, .fb-phase-not-evaluated .fb-dot { background: var(--muted); }

.fb-layout { display: grid; grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr); gap: 10px; align-items: start; padding: 10px; }
.fb-rail { display: grid; gap: 10px; min-width: 0; }

.fb-sec-label { margin: 0 0 0.55rem; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.fb-sec-normal { color: var(--green); }
.fb-sec-limits { color: var(--amber); }
.fb-sec-unusual { color: var(--purple); }

.fb-maincol { display: grid; gap: 0.8rem; min-width: 0; padding: 20px 28px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13, 27, 41, 0.7); }
.fb-story { display: grid; gap: 0.8rem; min-width: 0; padding: 0; border: 0; background: transparent; }
.fb-story:focus { outline: 1px solid rgba(255, 159, 28, 0.55); outline-offset: 6px; }
.fb-story + .fb-story { margin-top: 0.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.fb-story-primary { background: transparent; }
.fb-story-top { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.fb-story-top h4, .fb-story-top h5 { margin: 0; font-size: 20px; line-height: 1.25; }
.fb-story-scopes { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-left: auto; }
.fb-scope { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fb-takeaway { margin: 0; font-size: 14.5px; line-height: 1.58; color: var(--text); }
.fb-practical, .fb-boundary { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.fb-boundary { border-left: 2px solid var(--line); padding-left: 0.6rem; font-size: 12px; }

.fb-rail-line { margin: 0.15rem 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

.fb-explanations { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(23, 36, 51, 0.7); padding: 0.75rem 0.85rem; display: grid; gap: 0.45rem; }
.fb-explanations-label { margin: 0; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.fb-explanations ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.25rem; }
.fb-explanations li { font-size: 12.5px; line-height: 1.55; color: var(--muted); font-style: italic; }
.fb-chip-disclaimer { background: rgba(255, 159, 28, 0.12); color: var(--amber, #ff9f1c); border: 1px solid rgba(255, 159, 28, 0.35); text-transform: none; letter-spacing: 0.02em; }

.fb-facts { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; padding: 0.15rem 0; }
.fb-fact { min-width: 9.5rem; padding: 0.5rem 1.1rem 0.5rem 0; display: grid; gap: 2px; }
.fb-fact + .fb-fact { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.fb-fact-value { font-size: 26px; line-height: 1.05; font-weight: 720; font-variant-numeric: tabular-nums; }
.fb-fact-label { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

/* Engine identity (Front/Rear/Left/Right) carries the weight of the sentence
   on a twin — inherit color so it reads as emphasis inside whatever text it
   lands in, muted labels included. */
.fb-engine-id { font-weight: 750; color: inherit; }

.fb-graph-link { justify-self: start; font: inherit; font-size: 12px; font-weight: 600; color: var(--blue); border: 1px solid rgba(47, 136, 255, 0.4); border-radius: 7px; padding: 0.35rem 0.65rem; background: rgba(47, 136, 255, 0.08); cursor: pointer; }
.fb-graph-link:hover { background: rgba(47, 136, 255, 0.16); }
.fb-graph-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.fb-systems { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(13, 27, 41, 0.7); }
.fb-systems h3 { margin: 0; padding: 18px 20px 14px; font-size: 18px; line-height: 1.25; }
.fb-system-list { margin: 0; padding: 0; list-style: none; }
.fb-system-row { display: grid; grid-template-columns: minmax(170px, 0.78fr) minmax(0, 1.22fr); gap: 18px; align-items: center; min-height: 78px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.fb-system-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.fb-system-name, .fb-system-ref { min-width: 0; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.fb-system-ref { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.fb-system-ref:hover { color: var(--blue); }
.fb-system-ref:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.fb-system-state { color: var(--green); font-size: 10.5px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.fb-system-state.is-qualified { color: var(--amber); letter-spacing: 0.04em; text-transform: none; }
.fb-system-read, .fb-system-facts { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.fb-system-facts { font-variant-numeric: tabular-nums; }
.fb-system-empty { padding: 16px 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; }

.fb-rail-section { border: 1px solid var(--line); border-radius: 9px; background: rgba(13, 27, 41, 0.7); padding: 0.85rem 0.9rem; }
.fb-rail-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.fb-rail-list li { display: flex; gap: 0.5rem; align-items: baseline; }
.fb-rail-ref { font: inherit; font-size: 12.5px; color: var(--text); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.fb-rail-ref:hover { color: var(--blue); }
.fb-rail-ref:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fb-rail-note { font-size: 10.5px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.fb-rail-empty { margin: 0; font-size: 12.5px; color: var(--muted); }

.fb-unusual { border: 1px dashed rgba(179, 107, 255, 0.45); border-radius: 9px; background: rgba(179, 107, 255, 0.04); padding: 0.85rem 0.9rem; display: grid; gap: 0.55rem; }
.fb-unusual-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.fb-unusual-obs { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 0.6rem 0.7rem; display: grid; gap: 0.4rem; }
.fb-unusual-obs p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fb-unusual-verified { font-variant-numeric: tabular-nums; }

.fb-state { display: grid; justify-items: center; gap: 0.6rem; padding: 2rem 1rem; color: var(--muted); font-size: 13px; text-align: center; }
.fb-error { color: var(--red); }
.fb-readonly-note { margin: 0.6rem 0 0; font-size: 11.5px; color: var(--muted); }
.fb-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: fb-spin 0.9s linear infinite; }
@keyframes fb-spin { to { transform: rotate(360deg); } }

.fb-story-flash { outline: 2px solid var(--amber); outline-offset: 6px; box-shadow: 0 0 0 5px rgba(255, 159, 28, 0.08); transition: outline-color 1.4s ease, box-shadow 1.4s ease; }
@media (max-width: 1120px) {
  .fb-head-grid { grid-template-columns: 1fr; gap: 18px; }
  .fb-toolbar { justify-items: start; min-width: 0; }
  .fb-toolbar-meta { white-space: normal; }
  .fb-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fb-head { padding: 18px 16px 16px; }
  .fb-headline { font-size: 21px; text-wrap: pretty; }
  .fb-head-notes { display: grid; }
  .fb-toolbar { width: 100%; }
  .fb-toolbar .ai-summary-regenerate-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .fb-toolbar .secondary-action { width: 100%; justify-content: center; }
  .fb-phase-rail { grid-auto-flow: column; grid-auto-columns: minmax(126px, 1fr); grid-template-columns: none; overflow-x: auto; }
  .fb-phase { min-height: 58px; padding: 10px 12px; }
  .fb-layout { padding: 8px; }
  .fb-maincol { padding: 18px 16px; }
  .fb-story-top h4, .fb-story-top h5 { flex-basis: 100%; font-size: 18px; }
  .fb-story-scopes { margin-left: 0; }
  .fb-fact { min-width: 50%; }
  .fb-fact-value { font-size: 22px; }
  .fb-system-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .fb-systems h3 { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-spinner { animation: none; }
  .fb-story-flash { transition: none; }
}

/* Local-dev mail shortcut (Mailpit). Two gates decide visibility:
   1. the [hidden] attribute stays on unless the server reports a
      localMailUiUrl (loopback SMTP host only, so never on dev/prod);
   2. the body[data-approval-gate] rule shows it only on the waiting-for-
      approval / finish-setting-up screen, where the verify email lives. */
.local-mail-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9700;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(138, 184, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.96), rgba(18, 29, 41, 0.96));
  color: #9dccff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
body[data-approval-gate] .local-mail-fab:not([hidden]) {
  display: flex;
}
.local-mail-fab svg {
  width: 20px;
  height: 20px;
}
.local-mail-fab:hover {
  color: #ffffff;
  border-color: #4b9bff;
}

/* Green footer Continue on the onboarding/waiting gate. Replaces the Sign out
   link once the user can leave (approved, or email verified in approve-off
   mode); routes to the plan selector or the app. Mirrors the blue
   .primary-action geometry and glow so it sits naturally next to those
   buttons while the green sets it apart. Centered: by the time it shows, the
   other footer links are hidden, so the auto margins center it in the flex
   footer. */
.approval-gate-footer-continue {
  min-height: 40px;
  margin: 0 auto;
  padding: 0 34px;
  border-radius: 7px;
  border: 1px solid rgba(98, 206, 77, 0.7);
  background: linear-gradient(180deg, #46bd55, #2b9c3c);
  box-shadow: 0 10px 24px rgba(76, 194, 87, 0.25);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 160ms ease;
}
.approval-gate-footer-continue:hover { filter: brightness(1.1); }
