: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;
  /* Flat page ground. This was a blue radial glow (--t1) over a diagonal sweep
     that ran dark -> lighter -> dark (--t2 #090f15, --t3 #111922, --t4 #0e151d),
     which read as an uneven bright band across the middle of the page. Painting
     the darkest of the three flat removes both. --t2 stays theme-aware, so
     light mode gets its near-white counterpart rather than a hard-coded value. */
  background: var(--t2);
  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 var(--t5);
  border-radius: 18px;
  box-shadow: 0 30px 80px var(--t6);
  overflow: hidden;
  display: grid;
}

/* 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.
   All states share one grid cell and cross-fade (display:none would kill
   the transition); the sliding blue backdrop travels underneath while the
   forms fade. Hidden states are visibility:hidden so they leave the tab
   order and never catch clicks. */
.auth-landing-state {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 480px;
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.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 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 450ms ease, visibility 0s;
}

/* The sliding blue backdrop: one persistent element carrying the aside
   gradient. It rests over the right THIRD for login/reset (the 1fr aside
   column) and glides + grows to the left TWO THIRDS for signup (the aside
   sits in the 2fr column there), so it both travels and resizes to fill
   the other section - the per-state asides above it are transparent on
   desktop. left/width (not transform) so the width genuinely animates. */
.auth-landing-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * 2 / 3);
  width: calc(100% / 3);
  background: linear-gradient(160deg, var(--brand-blue), var(--t7));
  transition: left 450ms cubic-bezier(0.65, 0, 0.35, 1), width 450ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
  z-index: 0;
}

.auth-landing-panel[data-mode="signup"] .auth-landing-slider {
  left: 0;
  width: calc(100% * 2 / 3);
}

.auth-landing-panel[data-mode="login"] .auth-landing-state--login .auth-landing-aside,
.auth-landing-panel[data-mode="signup"] .auth-landing-state--signup .auth-landing-aside,
.auth-landing-panel[data-mode="reset"] .auth-landing-state--reset .auth-landing-aside {
  opacity: 1;
  transition: opacity 300ms ease 450ms;
}

@media (prefers-reduced-motion: reduce) {
  /* !important beats the higher-specificity active-state selectors that
     re-declare their own transitions. */
  .auth-landing-state,
  .auth-landing-slider,
  .auth-landing-aside {
    transition: none !important;
  }
}

/* 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;
  /* Desktop blue is painted by .auth-landing-slider so it can animate;
     the mobile layout (no slider) restores the gradient below. The aside
     CONTENT (Welcome! / Welcome Back!) stays hidden until the blue has
     finished sliding, then fades in (the 450ms delay below matches the
     slider's travel time). The outgoing aside fades immediately. */
  opacity: 0;
  transition: opacity 300ms ease;
  background: transparent;
  color: var(--t8);
  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 var(--t9);
  color: var(--t8);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-landing-switch:hover {
  background: var(--t10);
}

/* 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 var(--t11);
  background: var(--t12);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-oauth-icon:hover:not([disabled]) {
  background: var(--t13);
  border-color: var(--t14);
}

.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: var(--t13);
}

.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 var(--t15);
  background: var(--t12);
  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 var(--t16);
}

.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, var(--t17), var(--t18));
  color: var(--t8);
  box-shadow: 0 10px 24px var(--t19);
  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 var(--t20);
}

.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-state {
    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;
    background: linear-gradient(160deg, var(--brand-blue), var(--t7));
    /* No slide to wait for in the stacked layout (!important beats the
       higher-specificity active-state fade-delay selector). */
    transition: none !important;
  }
  /* The stacked single-column layout has no side thirds to travel. */
  .auth-landing-slider {
    display: none;
  }
}

.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: var(--t8);
}

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

.brand-wordmark {
  color: var(--t8);
  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: var(--t21);
  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: var(--t8);
}

.nav-item.is-active::after {
  background: var(--t22);
  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: var(--t23);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer-links a:hover {
  color: var(--t8);
}

.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, var(--t24), var(--t25));
  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 var(--t26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t27), var(--t28));
  box-shadow:
    inset 0 1px 0 var(--t29),
    0 10px 24px var(--t30);
  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: var(--t31);
  background:
    linear-gradient(180deg, var(--t32), var(--t33));
}

.flight-menu-button:focus-visible {
  outline: 2px solid var(--t34);
  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 var(--t35);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--t36), var(--t37));
  box-shadow:
    0 24px 70px var(--t38),
    inset 0 1px 0 var(--t39);
  padding: 8px;
}

.flight-menu-group + .flight-menu-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--t40);
}

.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: var(--t41);
  column-gap: 8px;
  padding: 7px 10px 7px 5px;
  text-align: left;
}

.flight-menu-option:hover,
.flight-menu-option:focus-visible {
  background: var(--t1);
  color: var(--text);
  outline: none;
}

.flight-menu-option.is-selected {
  background: var(--t42);
  color: var(--text);
}

.flight-menu-option.is-flagged {
  color: var(--t43);
}

.flight-menu-option:disabled {
  color: var(--t44);
  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: var(--t45);
}

.topbar-user:focus-visible {
  outline: 2px solid var(--t46);
  outline-offset: 4px;
  border-radius: 999px;
}

.topbar-user:hover .topbar-user-icon,
.topbar-user:focus-visible .topbar-user-icon {
  border-color: var(--t47);
  background: var(--t48);
}

.topbar-user-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--t49);
  border: 1px solid var(--t46);
  border-radius: 50%;
  background: var(--t50);
}

.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 var(--t51);
}

.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: var(--t12);
  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: var(--t52);
  border-color: var(--t53);
}

.danger-action:hover {
  background: var(--t54);
}

.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: var(--t55);
  background: var(--t56);
  box-shadow: 0 0 0 3px var(--t57), 0 10px 24px var(--t58);
  color: var(--t8);
  outline: none;
}

.report-action.is-generating {
  cursor: default;
  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: var(--t59);
  font-weight: 800;
}

.aircraft-edit-dialog .report-status.is-success {
  color: var(--t60);
}

.aircraft-edit-dialog .report-status.is-error {
  color: var(--t61);
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid var(--t62);
  border-radius: 8px;
  background: var(--t63);
  box-shadow: 0 18px 40px var(--t64);
  color: var(--t65);
  font-weight: 800;
}

.app-toast.is-success {
  border-color: var(--t66);
  color: var(--t67);
}

.app-toast.is-error {
  border-color: var(--t68);
  color: var(--t69);
}

.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 var(--t70);
  border-radius: 8px;
  background: var(--t71);
  box-shadow: 0 18px 40px var(--t64);
  color: var(--t65);
  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: var(--t72);
}

.ai-work-notice.is-error {
  border-color: var(--t73);
}

.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: var(--t56);
  color: var(--t74);
}

.ai-work-notice.is-ready .ai-work-notice-icon {
  background: var(--t75);
  color: var(--t67);
}

.ai-work-notice.is-error .ai-work-notice-icon {
  background: var(--t76);
  color: var(--t69);
}

.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: var(--t77);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}

.ai-work-notice-copy p {
  margin: 0;
  color: var(--t78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.ai-work-notice-link {
  color: var(--t74);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ai-work-notice-action,
.ai-work-notice-dismiss {
  border: 1px solid var(--t79);
  border-radius: 8px;
  background: var(--t56);
  color: var(--t80);
  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: var(--t81);
  color: var(--t82);
  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: var(--t83);
  background: var(--t84);
  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 var(--t85);
  border-radius: 8px;
  background: var(--t86);
}

.upload-queue-row.is-error {
  border-color: var(--t87);
  background: var(--t88);
}

.upload-queue-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--t89);
  box-shadow: 0 0 0 4px var(--t90);
}

.upload-queue-row.is-ready .upload-queue-dot,
.upload-queue-row.is-duplicate .upload-queue-dot {
  background: var(--t91);
  box-shadow: 0 0 0 4px var(--t92);
}

.upload-queue-row.is-error .upload-queue-dot {
  background: var(--t93);
  box-shadow: 0 0 0 4px var(--t94);
}

.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: var(--t77);
  font-size: 12px;
  line-height: 1.2;
}

.upload-queue-row-copy span {
  margin-top: 2px;
  color: var(--t95);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.upload-queue-row-copy p {
  margin: 4px 0 0;
  color: var(--t96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.upload-queue-status {
  justify-self: end;
  padding: 5px 8px;
  border: 1px solid var(--t97);
  border-radius: 999px;
  background: var(--t98);
  color: var(--t99);
  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 var(--t87);
  border-radius: 8px;
  background: var(--t54);
  color: var(--t100);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.upload-queue-actions button:hover,
.upload-queue-actions button:focus-visible {
  border-color: var(--t101);
  background: var(--t102);
  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 var(--t103);
  border-radius: 8px;
  background: var(--t104);
  box-shadow: 0 0 0 3px var(--t105);
  color: var(--t106);
  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: var(--t107);
  font-weight: 750;
}

.ai-work-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid var(--t97);
  border-top-color: var(--t108);
  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: var(--t59);
  font-weight: 700;
}

#aircraftReviewSettingsStatus[data-tone="success"] {
  color: var(--t60);
}

#aircraftReviewSettingsStatus[data-tone="info"] {
  color: var(--t109);
}

.primary-action {
  border-color: var(--t110);
  background: linear-gradient(180deg, var(--t111), var(--t112));
  box-shadow: 0 10px 24px var(--t16);
}

.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: var(--t113);
  color: var(--t114);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-flight-picker select:focus-visible {
  border-color: var(--t115);
  box-shadow: 0 0 0 3px var(--t58);
  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: var(--t116);
  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: var(--t117);
  stroke-width: 2.1;
  stroke-linecap: round;
}

.tabs {
  display: flex;
  /* Wrap to more rows when too narrow to fit on one line, rather than
     clipping the trailing tabs. flex-wrap only wraps when needed, so wide
     layouts still keep a single row. */
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  row-gap: 4px;
  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: var(--t118);
  padding: 8px 11px 9px;
  color: var(--t119);
  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: var(--t120);
  background: var(--t121);
  color: var(--text);
  outline: none;
}

.tab:focus-visible {
  box-shadow: 0 0 0 3px var(--t51);
}

.tab.is-active {
  border-color: var(--t122);
  border-bottom-color: var(--t123);
  background:
    linear-gradient(180deg, var(--t124), var(--t125)),
    var(--t125);
  color: var(--t126);
  box-shadow:
    inset 0 1px 0 var(--t29),
    0 9px 24px var(--t127);
}

.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: var(--t128);
  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 var(--t129);
  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, var(--t130) 0%, var(--t131) 42%, var(--t132) 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, var(--t133) 0%, var(--t134) 38%, var(--t135) 100%),
    radial-gradient(circle at 75% 46%, var(--t48), 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: var(--t136);
  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: var(--t137);
  font-size: 13px;
  line-height: 1.45;
}

.home-product-preview {
  overflow: hidden;
  border: 1px solid var(--t138);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t139), var(--t140)),
    var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px var(--t141), 0 0 0 1px var(--t142) inset;
}

.home-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--t129);
}

.home-preview-topline span {
  color: var(--t21);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t143);
  aspect-ratio: 1.63;
}

.home-preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--t144), inset 0 -42px 80px var(--t145);
  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: var(--t146);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature-band article {
  border: 1px solid var(--t129);
  border-radius: 8px;
  background: var(--t147);
}

.home-supported .eyebrow {
  color: var(--t146);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t148);
}

.home-feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--t144), inset 0 -21px 39px var(--t149);
  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: var(--t150);
  font-size: 18px;
  line-height: 1.12;
}

.home-feature-band p {
  margin: 0;
  color: var(--t151);
  font-size: 12px;
  line-height: 1.55;
}

.home-supported p {
  margin: 0;
  color: var(--t151);
  line-height: 1.55;
}

.home-supported-note {
  margin: 0;
  max-width: 34ch;
  padding: 13px 0 0 18px;
  border-top: 0;
  border-left: 1px solid var(--t152);
  font-size: 13px;
}

.home-supported {
  display: grid;
  gap: 22px;
  scroll-margin-top: 104px;
  padding: 46px 0 58px;
  border-top: 1px solid var(--t129);
}

.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 var(--t129);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t153), var(--t154));
  box-shadow: inset 0 1px 0 var(--t142);
}

.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%, var(--t155), transparent 56%),
    var(--t156);
}

.home-monitor-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -34px 56px var(--t157), inset 0 0 0 1px var(--t144);
  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: var(--t21);
  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 var(--t129);
  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, var(--t158) 0%, var(--t159) 46%, var(--t160) 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, var(--t135) 0%, var(--t161) 42%, var(--t162) 100%),
    radial-gradient(circle at 78% 38%, var(--t1), transparent 34rem);
}

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

.dashboard-guide-hero-copy .eyebrow,
.dashboard-guide-section-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--t163);
  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: var(--t164);
  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: var(--t165);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t166);
  box-shadow: 0 22px 64px var(--t167), inset 0 1px 0 var(--t168);
}

.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 var(--t129);
  background: var(--t169);
  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 var(--t170);
  border-radius: 999px;
  color: var(--t171);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  background: var(--t172);
}

/* 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 var(--t173);
  border-radius: 999px;
  color: var(--t174);
  background: linear-gradient(180deg, var(--t175), var(--t176));
  box-shadow: 0 8px 24px var(--t177), inset 0 0 0 1px var(--t178);
  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: var(--t110);
  background: linear-gradient(180deg, var(--t179), var(--t180));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-to-top:focus-visible {
  outline: 2px solid var(--t181);
  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 var(--t181);
  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 var(--t129);
  border-radius: 8px;
  overflow: hidden;
  background: var(--t182);
}

.dashboard-guide-workflow article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--t183);
}

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

.dashboard-guide-workflow span {
  display: block;
  margin-bottom: 26px;
  color: var(--t184);
  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: var(--t150);
  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: var(--t185);
  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 var(--t129);
  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: var(--t150);
  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: var(--t186);
  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: var(--t187);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-panel {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--t129);
  border-radius: 8px;
  background: var(--t188);
}

.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 var(--t129);
  border-radius: 8px;
  background: var(--t182);
}

.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 var(--t183);
  color: var(--t185);
  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 var(--t129);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t182);
}

.dashboard-guide-cgr-pairing-card img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--t189);
}

.dashboard-guide-cgr-pairing-card h3 {
  margin: 0 0 5px;
  color: var(--t150);
  font-size: 15px;
  line-height: 1.2;
}

.dashboard-guide-cgr-pairing-card p {
  margin: 0;
  color: var(--t185);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t182);
  color: var(--t187);
  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: var(--t190);
  color: var(--t191);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-guide-step-list strong,
.dashboard-guide-section-copy ol strong {
  display: block;
  margin-bottom: 2px;
  color: var(--t150);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t188);
}

.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: var(--t150);
  font-size: 17px;
}

.dashboard-guide-note p {
  margin: 0;
  color: var(--t187);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-guide-screenshot-card img,
.dashboard-guide-large-screenshot img,
.dashboard-guide-screenshot-grid img {
  background: var(--t189);
}

.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 var(--t192);
}

.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 var(--t129);
  border-radius: 8px;
  background: var(--t182);
}

.dashboard-guide-feature-map span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--t190);
  color: var(--t191);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-guide-feature-map h3 {
  margin: 0 0 8px;
  color: var(--t150);
  font-size: 17px;
  line-height: 1.2;
}

.dashboard-guide-feature-map p {
  margin: 0;
  color: var(--t187);
  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: var(--t150);
}

.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 var(--t129);
  border-radius: 8px;
  background: var(--t188);
}

.dashboard-guide-pdf-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: top center;
  background: var(--t189);
}

.dashboard-guide-pdf-gallery figcaption {
  flex: 1;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--t183);
  color: var(--t185);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-guide-pdf-gallery figcaption strong {
  color: var(--t150);
}

.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 var(--t129);
  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, var(--t193) 0%, var(--t194) 48%, var(--t195) 100%),
    radial-gradient(circle at 68% 18%, var(--t56), 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, var(--t161), var(--t196)),
    radial-gradient(circle at 42% 30%, var(--t197), transparent 22rem);
}

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

.pricing-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--t8);
  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: var(--t165);
  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 var(--t198);
  border-radius: 8px;
  background: var(--t147);
}

.pricing-proof-grid svg,
.pricing-evidence-panel header svg {
  width: 24px;
  height: 24px;
  color: var(--t199);
  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 var(--t200);
  border-radius: 8px;
  background: var(--t201);
}

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

.pricing-proof-grid span {
  color: var(--t202);
  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 var(--t35);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t36), var(--t37));
  box-shadow:
    inset 0 1px 0 var(--t39),
    0 18px 40px var(--t167);
}

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

.pricing-dashboard-preview {
  position: relative;
  margin: 0;
  min-height: 430px;
  padding: 10px;
  overflow: hidden;
  border-color: var(--t203);
  border-left-color: transparent;
  background:
    linear-gradient(180deg, var(--t36), var(--t37));
  box-shadow:
    0 30px 90px var(--t204),
    0 0 0 1px var(--t105),
    inset 0 1px 0 var(--t39);
}

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

.pricing-dashboard-caption strong {
  color: var(--t65);
  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 var(--t79);
  border-left-color: transparent;
  border-radius: 6px;
  background: var(--t143);
}

.pricing-dashboard-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 -70px 90px var(--t206);
  pointer-events: none;
}

.pricing-dashboard-image-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 6px;
  background: var(--t207);
  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: var(--t65);
  font-size: 14px;
  font-weight: 850;
}

.pricing-evidence-panel header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--t78);
  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 var(--t208);
}

.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: var(--t209);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pricing-evidence-summary strong {
  display: block;
  color: var(--t210);
  font-size: 14px;
  font-weight: 850;
}

.pricing-evidence-summary strong.is-green {
  color: var(--t60);
  font-size: 28px;
  line-height: 1;
}

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

.pricing-evidence-summary a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--t211);
  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 var(--t138);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 74px, var(--t86) 75px),
    repeating-linear-gradient(180deg, transparent 0, transparent 38px, var(--t86) 39px),
    var(--t212);
}

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

.pricing-trace path:first-child {
  stroke: var(--t213);
}

.pricing-trace path:last-child {
  stroke: var(--t214);
}

.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: var(--t211);
}

.pricing-section-heading h2 {
  max-width: 1040px;
  margin: 0;
  color: var(--t77);
  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: var(--t151);
  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: var(--t215);
  box-shadow:
    inset 0 1px 0 var(--t29),
    0 0 0 2px var(--t216),
    0 18px 40px var(--t217);
}

.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 var(--t218);
  border-radius: 8px;
  background: var(--t219);
  color: var(--t43);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.pricing-plan-card h3 {
  margin: 0 0 8px;
  color: var(--t211);
  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: var(--t202);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 16px;
  color: var(--t8);
}

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

.pricing-plan-price span {
  color: var(--t209);
  font-size: 12px;
  font-weight: 750;
}

.pricing-multi-engine-price {
  margin: -10px 0 16px;
  color: var(--t220);
  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: var(--t221);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-plan-card li::before {
  content: "✓";
  color: var(--t211);
  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 var(--t35);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t36), var(--t37));
  box-shadow:
    inset 0 1px 0 var(--t39),
    0 18px 40px var(--t167);
}

.pricing-prebuy-intro {
  padding: 22px;
  background:
    radial-gradient(circle at 18% 16%, var(--t222), transparent 20rem),
    linear-gradient(180deg, var(--t36), var(--t37));
}

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

.pricing-prebuy-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--t223);
  font-size: 13px;
  line-height: 1.55;
}

.pricing-prebuy-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 22px;
  border-color: var(--t218);
  box-shadow:
    inset 0 1px 0 var(--t29),
    0 0 0 1px var(--t224),
    0 18px 40px var(--t225);
}

.pricing-prebuy-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid var(--t226);
  border-radius: 8px;
  background: var(--t219);
  color: var(--t43);
  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: var(--t221);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-prebuy-card li::before {
  content: "✓";
  color: var(--t227);
  font-weight: 900;
}

.pricing-prebuy-card > p {
  margin: 0 0 18px;
  color: var(--t228);
  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%, var(--t229), transparent 18rem),
    var(--t230);
}

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

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

.pricing-fleet-intro p {
  margin: 0 0 18px;
  color: var(--t223);
  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: var(--t231);
  font-size: 17px;
}

.pricing-fleet-cards strong {
  display: block;
  margin-bottom: 13px;
  color: var(--t8);
  font-size: 27px;
  line-height: 1;
}

.pricing-fleet-cards p {
  margin: 0 0 18px;
  color: var(--t228);
  font-size: 12px;
  line-height: 1.45;
}

.pricing-fleet-cards .secondary-action {
  width: 100%;
  margin-top: auto;
  border-color: var(--t232);
  background: var(--t233);
  color: var(--t234);
}

.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: var(--t77);
  font-size: 17px;
  line-height: 1.15;
}

.pricing-pack-grid p,
.pricing-faq-strip p {
  margin: 0;
  color: var(--t228);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-pack-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--t8);
  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 var(--t129);
  border-radius: 8px;
  background:
    linear-gradient(120deg, var(--t235), var(--t236)),
    url("assets/glass_cockpit.png") center 52% / cover no-repeat;
  box-shadow: inset 0 1px 0 var(--t142), 0 22px 64px var(--t237);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--t238), var(--t239) 55%, var(--t240)),
    radial-gradient(circle at 78% 25%, var(--t241), 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, var(--t242) 0%, var(--t243) 54%, var(--t244) 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: var(--t163);
  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, var(--t245) 0%, var(--t246) 47%, var(--t247) 100%),
    url("assets/contact-ramp-cessna.png") center 50% / cover no-repeat;
}

.public-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--t165);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t166);
  box-shadow: inset 0 1px 0 var(--t168);
  backdrop-filter: blur(12px);
}

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

.public-hero-panel span {
  color: var(--t49);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-hero-panel strong {
  color: var(--t150);
  font-size: 22px;
  line-height: 1.15;
}

.public-hero-panel p {
  color: var(--t151);
  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 var(--t129);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t248), var(--t249));
  box-shadow: inset 0 1px 0 var(--t142);
}

.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 var(--t250);
  border-radius: 999px;
  color: var(--t251);
  background: var(--t252);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faq-grid h2,
.public-card-row h2 {
  margin: 0;
  color: var(--t150);
  font-size: 20px;
  line-height: 1.16;
}

.faq-grid p,
.public-card-row p {
  margin: 0;
  color: var(--t151);
  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 var(--t129);
}

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

.about-story > p {
  max-width: 78ch;
  margin: 0;
  color: var(--t254);
  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, var(--t255), var(--t256), transparent);
}

.about-trace-motif span:nth-child(2n) {
  background: linear-gradient(90deg, transparent, var(--t257), var(--t258), 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 var(--t129);
}

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

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

.about-ai-harness-copy h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--t253);
  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: var(--t254);
  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 var(--t152);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t260) 0%, var(--t261) 42%, var(--t262) 72%, var(--t263) 100%),
    linear-gradient(180deg, var(--t264), var(--t265)),
    url("assets/detector-harness-bg.png") 64% 50% / cover no-repeat;
  box-shadow: inset 0 1px 0 var(--t168), 0 22px 54px var(--t30);
}

.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, var(--t266), var(--t267));
  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 var(--t183);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, var(--t268), var(--t269));
  backdrop-filter: blur(8px);
}

.about-ai-harness-panel li span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--t270);
  color: var(--t271);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

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

.about-ai-harness-panel strong {
  display: inline-block;
  width: fit-content;
  margin: 0 0 6px;
  padding: 7px 14px;
  border: 1px solid var(--t152);
  border-radius: 999px;
  color: var(--t253);
  background: var(--t273);
  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: var(--t274);
  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 var(--t275);
  border-radius: 8px;
  color: var(--t253);
  background: linear-gradient(90deg, var(--t276), var(--t277));
  box-shadow: 0 16px 38px var(--t278);
  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%, var(--t98), transparent 42rem),
    linear-gradient(90deg, transparent, var(--t279) 18%, var(--t280) 50%, var(--t281) 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: var(--t253);
  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: var(--t254);
  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, var(--t282), var(--t283));
  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 var(--t284)) drop-shadow(0 0 26px var(--t285));
}

.about-principle-card svg {
  width: 34px;
  height: 34px;
  color: var(--t286);
  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, var(--t287), var(--t288));
  box-shadow: 0 0 0 1px var(--t289), 0 10px 24px var(--t290);
  color: var(--t291);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.about-workflow-step h3,
.about-principle-card h3 {
  margin: 0;
  color: var(--t253);
  font-size: 19px;
  line-height: 1.15;
}

.about-workflow-step > p,
.about-principle-card p {
  margin: 0;
  color: var(--t274);
  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 var(--t129);
  border-bottom: 1px solid var(--t129);
}

.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 var(--t129);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t292), var(--t293));
  box-shadow: inset 0 1px 0 var(--t142);
}

.about-principle-card:nth-child(2) svg {
  color: var(--t294);
}

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

.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 var(--t198);
}

.legal-page-header .eyebrow {
  margin: 0;
  color: var(--t163);
  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: var(--t165);
  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 var(--t129);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t248), var(--t249));
  box-shadow: inset 0 1px 0 var(--t142);
}

.legal-content h2 {
  margin: 0;
  color: var(--t150);
  font-size: 20px;
  line-height: 1.16;
}

.legal-content p {
  margin: 0;
  color: var(--t151);
  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 var(--t129);
}

.detection-guide-hero .eyebrow {
  margin: 0 0 9px;
  color: var(--t163);
  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: var(--t150);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.detection-guide-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--t187);
  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: var(--t185);
  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 var(--t152);
  border-radius: 6px;
  background: var(--t295);
  color: var(--t296);
  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 var(--t297);
  border-radius: 8px;
  outline: none;
  background: var(--t298);
  color: var(--t299);
  font: inherit;
  font-size: 14px;
}

.detection-guide-search input::placeholder {
  color: var(--t300);
}

.detection-guide-search input:focus {
  border-color: var(--t301);
  box-shadow: 0 0 0 3px var(--t302);
}

.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 var(--t152);
  border-left: 0;
  background: var(--t303);
  color: var(--t304);
  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 var(--t152);
  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: var(--t253);
  background: var(--t305);
}

.detection-guide-family-filter button.is-active {
  box-shadow: inset 0 -2px 0 var(--t306);
}

.detection-guide-family-filter strong {
  color: var(--t49);
  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 var(--t183);
}

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

.detection-guide-index h2 span {
  color: var(--t49);
}

.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: var(--t136);
  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: var(--t253);
  background: var(--t307);
}

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

.detection-guide-card,
.detection-guide-empty {
  overflow: hidden;
  border: 1px solid var(--t152);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t308), var(--t176));
  box-shadow: inset 0 1px 0 var(--t142);
}

.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 var(--t129);
}

.detection-guide-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--t309);
  border-radius: 999px;
  background: var(--t310);
}

.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: var(--t49);
  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: var(--t150);
  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: var(--t311);
  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 var(--t312);
  border-radius: 8px;
  background: var(--t313);
}

.detection-threshold span {
  color: var(--t163);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.detection-threshold strong {
  align-self: end;
  color: var(--t150);
  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 var(--t129);
}

.detection-threshold-row > strong {
  margin-right: 4px;
  color: var(--t49);
  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 var(--t314);
  border-radius: 6px;
  background: var(--t315);
  color: var(--t163);
  font-size: 12px;
  line-height: 1.2;
}

.detection-threshold-pill strong {
  color: var(--t316);
  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 var(--t129);
}

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

.detection-guide-section h3 {
  margin: 0;
  color: var(--t317);
  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: var(--t311);
  font-size: 13px;
  line-height: 1.5;
}

.detection-guide-muted {
  margin: 0;
  color: var(--t318);
  font-size: 13px;
}

.detection-guide-note {
  padding: 15px clamp(18px, 2.4vw, 24px);
  border-top: 1px solid var(--t183);
}

.about-engine-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--t129);
  border-radius: 8px;
  background: var(--t319);
  aspect-ratio: 1448 / 1086;
  box-shadow: inset 0 1px 0 var(--t142);
}

.about-engine-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--t320), var(--t321)),
    linear-gradient(90deg, var(--t322), transparent 18%, transparent 82%, var(--t322));
  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 var(--t323), inset 0 1px 0 var(--t142);
}

.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 var(--t129);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t248), var(--t249));
  box-shadow: inset 0 1px 0 var(--t142);
}

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

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

.contact-update-copy p {
  max-width: 40ch;
  margin: 0;
  color: var(--t151);
  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: var(--t165);
  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 var(--t152);
  border-radius: 8px;
  color: var(--t150);
  background: var(--t324);
  box-shadow: inset 0 1px 0 var(--t142);
  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 var(--t325);
  outline-offset: 2px;
  border-color: var(--t326);
}

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

.contact-form-status {
  align-self: center;
  margin: 0;
  color: var(--t151);
  font-size: 13px;
  line-height: 1.4;
}

.contact-form-status[data-tone="success"] {
  color: var(--t327);
}

.contact-form-status[data-tone="error"] {
  color: var(--t328);
}

.dashboard-review-context {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t129);
}

.dashboard-empty-aircraft {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  border: 1px dashed var(--t329);
  border-radius: 12px;
  background: var(--t330);
}

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

.dashboard-empty-aircraft-inner strong {
  color: var(--t150);
  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: var(--t150);
  font-size: 19.8px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-review-primary small {
  overflow: hidden;
  color: var(--t331);
  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: var(--t332);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.ai-summary-panel {
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  border-color: var(--t333);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, var(--t334), transparent 42%),
    linear-gradient(145deg, var(--t335), var(--t336));
  box-shadow: inset 0 1px 0 var(--t168), 0 18px 42px var(--t127);
}

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

.ai-summary-panel.is-ai-review-intro {
  background:
    linear-gradient(90deg, var(--t337) 0%, var(--t338) 44%, var(--t339) 100%),
    radial-gradient(circle at 78% 54%, var(--t104), 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: var(--t340);
}

.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 var(--t341);
  background: var(--t342);
}

.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: var(--t343);
  background: linear-gradient(180deg, var(--t344), var(--t345));
  color: var(--t346);
  font-size: 14px;
  box-shadow: inset 0 1px 0 var(--t347);
}

.ai-summary-topbar .secondary-action:hover,
.ai-summary-topbar .secondary-action:focus-visible {
  border-color: var(--t348);
  background: linear-gradient(180deg, var(--t349), var(--t350));
}

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

.ai-summary-heading h2 {
  margin: 0;
  color: var(--t77);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.ai-summary-meta {
  margin: 0;
  color: var(--t351);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ai-summary-meta span {
  color: var(--t352);
}

.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 var(--t353);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t354), var(--t355)),
    var(--t356);
  color: var(--t357);
  box-shadow: inset 0 1px 0 var(--t347), 0 16px 30px var(--t358);
}

.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: var(--t77);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.15;
}

.ai-summary-empty-content p {
  max-width: 720px;
  margin: 9px 0 18px;
  color: var(--t359);
  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 var(--t360);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t361), var(--t362)),
    var(--t363);
  box-shadow: inset 0 1px 0 var(--t168);
}

.ai-summary-empty-preview::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--t364);
}

.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: var(--t365);
}

.ai-summary-empty-preview-header span:first-child {
  width: 92px;
  background: var(--t366);
}

.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 var(--t367);
  border-radius: 6px;
  background: var(--t368);
  color: var(--t369);
  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 var(--t341);
  color: var(--t370);
  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 var(--t341);
}

.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 var(--t341);
}

.ai-summary-quick-read h3,
.ai-summary-review-focus h3,
.ai-summary-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--t371);
  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 var(--t372);
  border-left: 2px solid var(--t373);
  border-radius: 6px;
  background: var(--t374);
  color: var(--t318);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.ai-summary-advisory-label {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--t375);
  border-radius: 999px;
  background: var(--t201);
  color: var(--t376);
  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 var(--t377);
}

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

.ai-summary-narrative-label {
  padding-top: 3px;
  color: var(--t378);
  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: var(--t379);
  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: var(--t380);
  font-weight: 850;
}

.ai-summary-engine-summaries,
.ai-summary-shared-context,
.ai-summary-exploratory {
  padding: 24px 28px 28px;
  border-bottom: 1px solid var(--t341);
}

.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: var(--t381);
}

.ai-summary-engine-summaries-heading h3,
.ai-summary-shared-context-heading h3 {
  margin: 0;
  color: var(--t382);
  font-size: 17px;
}

.ai-summary-engine-summaries-heading > p,
.ai-summary-shared-context-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--t383);
  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 var(--t384);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--t385), var(--t386)),
    var(--t387);
}

.ai-summary-engine-summary > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t388);
}

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

.ai-summary-engine-summary > header p {
  color: var(--t389);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-engine-summary > header h4 {
  margin-top: 2px;
  color: var(--t390);
  font-size: 18px;
}

.ai-summary-engine-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--t391);
  border-radius: 9px;
  background: var(--t155);
  color: var(--t392);
  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: var(--t393);
}

.ai-summary-exploratory {
  background:
    radial-gradient(circle at 92% 0%, var(--t394), transparent 34%),
    var(--t395);
}

.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: var(--t396);
}

.ai-summary-exploratory-heading h3 {
  margin: 0;
  color: var(--t397);
  font-size: 18px;
}

.ai-summary-exploratory-badge {
  padding: 5px 9px;
  border: 1px solid var(--t398);
  border-radius: 999px;
  background: var(--t399);
  color: var(--t400);
  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 var(--t401);
  border-radius: 9px;
  background: var(--t402);
}

.ai-summary-exploratory-notice p {
  margin: 0;
  color: var(--t403);
  font-size: 12px;
  line-height: 1.5;
}

.ai-summary-exploratory-notice strong {
  color: var(--t404);
}

.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 var(--t405);
  border-radius: 10px;
  background: var(--t406);
}

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

.ai-summary-exploratory-scope {
  color: var(--t408);
}

.ai-summary-exploratory-classification {
  align-self: flex-start;
  margin-top: 12px;
  padding: 4px 7px;
  border: 1px solid var(--t409);
  border-radius: 999px;
  background: var(--t410);
  color: var(--t411);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-summary-exploratory-classification[data-classification="unusual-unconfirmed-pattern"] {
  border-color: var(--t412);
  background: var(--t413);
  color: var(--t414);
}

.ai-summary-exploratory-item h4 {
  margin: 8px 0 7px;
  color: var(--t415);
  font-size: 15px;
}

.ai-summary-exploratory-copy {
  color: var(--t416);
  font-size: 13px;
  line-height: 1.55;
}

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

.ai-summary-exploratory-unconfirmed {
  margin: 9px 0 0;
  color: var(--t417);
  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 var(--t418);
  border-radius: 7px;
  background: var(--t419);
  color: var(--t420);
  font-size: 11px;
}

.ai-summary-exploratory-traces b {
  color: var(--t421);
  font-size: 10px;
}

.ai-summary-exploratory-traces small {
  color: var(--t422);
  font-size: 9px;
}

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

.ai-summary-phase-disclosure {
  border-bottom: 1px solid var(--t377);
}

.ai-summary-phase-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 0;
  color: var(--t423);
  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: var(--t424);
  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: var(--t425);
  outline: none;
  box-shadow: inset 0 1px 0 var(--t426), 0 0 0 1px var(--t427);
}

.ai-summary-evidence-graph {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 14px 0 4px;
  padding: 11px 12px 12px;
  border: 1px solid var(--t372);
  border-radius: 7px;
  background: var(--t428);
}

.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: var(--t429);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.ai-summary-evidence-graph figcaption small {
  color: var(--t430);
  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 var(--t360);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--t431), var(--t432));
  box-shadow: inset 0 1px 0 var(--t142);
}

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

.ai-summary-focus-item strong {
  display: block;
  color: var(--t433);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.ai-summary-focus-item p {
  margin: 3px 0 0;
  color: var(--t434);
  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 var(--t341);
}

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

.ai-summary-standouts {
  border-right: 1px solid var(--t341);
}

.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 var(--t435);
}

.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: var(--t346);
  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: var(--t436);
  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: var(--t147);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.ai-summary-status-watch {
  color: var(--t437);
}

.ai-summary-status-caution {
  color: var(--t438);
}

.ai-summary-status-good {
  color: var(--t439);
}

.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: var(--t440);
  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 var(--t441);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--t442), var(--t443));
  box-shadow: inset 0 1px 0 var(--t142);
}

.ai-summary-evidence-row > .ai-summary-card-icon {
  grid-row: 1 / span 2;
}

.ai-summary-evidence-row strong {
  min-width: 0;
  color: var(--t444);
  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: var(--t445);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.ai-summary-evidence-row p b {
  color: var(--t446);
  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, var(--t447), var(--t448));
  color: var(--t449);
  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: var(--t450);
  font-size: 12px;
  font-weight: 760;
}

.ai-summary-evidence-more button {
  border: 0;
  background: transparent;
  color: var(--t451);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ai-summary-evidence-more button:hover,
.ai-summary-evidence-more button:focus-visible {
  color: var(--t452);
  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 var(--t372);
  border-radius: 8px;
  background: var(--t453);
}

.ai-summary-disclosure summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--t371);
  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: var(--t454);
  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 var(--t455);
}

.ai-summary-disclosure-item h4 {
  margin: 0;
  color: var(--t456);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.ai-summary-disclosure-body p {
  margin: 0;
  color: var(--t457);
  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: var(--t458);
  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 var(--t459);
  background:
    linear-gradient(90deg, var(--t460), var(--t461) 52%, var(--t462));
}

.ai-summary-limit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--t463);
  border-radius: 8px;
  background: var(--t464);
  color: var(--t465);
  box-shadow: inset 0 1px 0 var(--t347);
}

.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: var(--t466);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-summary-limit-copy h3 {
  margin: 0;
  color: var(--t467);
  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: var(--t468);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.ai-summary-limit-renewal {
  display: block;
  margin-top: 7px;
  color: var(--t469);
  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: var(--t467);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.ai-summary-limit-usage strong span {
  color: var(--t470);
  font-size: 12px;
  font-weight: 750;
}

.ai-summary-limit-meter {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--t471);
}

.ai-summary-limit-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--t472), var(--t473));
  box-shadow: 0 0 14px var(--t474);
}

.ai-summary-limit-caption {
  color: var(--t475);
  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 var(--t341);
  }

  .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, var(--t476) 0%, var(--t477) 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, var(--t81), var(--t478));
}

.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: var(--t479);
  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: var(--t480);
  color: var(--text);
}

.scope-switch button:hover,
.scope-switch button:focus-visible {
  background: var(--t1);
}

.scope-switch button.is-active {
  border-color: var(--t481);
  background: var(--t482);
  color: var(--t483);
  box-shadow:
    inset 0 1px 0 var(--t484),
    0 0 0 1px var(--t485);
}

.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 var(--t486);
  border-radius: 8px;
  background: var(--t487);
}

.scope-switch .scope-aircraft-button,
.scope-switch .scope-engine-button {
  min-width: 112px;
  color: var(--t488);
}

.scope-switch .scope-engine-button {
  border-color: var(--t489);
  background: var(--t355);
}

.scope-engine-divider {
  width: 1px;
  align-self: stretch;
  min-height: 30px;
  background: var(--t490);
}

.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: var(--t147);
}

.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: var(--t98);
  color: var(--text);
  outline: none;
}

.sensitivity-option.is-active {
  background: var(--t84);
  box-shadow: inset 0 0 0 1px var(--t491);
  color: var(--t8);
}

.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: var(--t492);
  background: var(--t155);
  box-shadow: inset 0 0 0 1px var(--t51);
}

.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: var(--t493);
  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: var(--t493);
  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: var(--t494);
  background: var(--t495);
  box-shadow: inset 0 0 0 1px var(--t496);
}

.operating-context-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--t497);
  background: var(--t498);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.operating-context-card.is-watch .operating-context-icon {
  border-color: var(--t226);
  background: var(--t499);
  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: var(--t500);
  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, var(--t50), var(--t501) 48%),
    var(--t502);
}

.multi-engine-card[role="button"] {
  cursor: pointer;
}

.multi-engine-card[role="button"]:hover,
.multi-engine-card[role="button"]:focus-visible {
  border-color: var(--t503);
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--t504),
    0 0 0 1px var(--t105);
}

.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 var(--t505);
  border-radius: 8px;
  background: var(--t98);
  color: var(--t506);
  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: var(--t507);
}

.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: var(--t508);
  background:
    linear-gradient(135deg, var(--t219), var(--t501) 48%),
    var(--t502);
}

.multi-engine-card.is-delta header > span {
  border-color: var(--t509);
  background: var(--t222);
  color: var(--amber);
}

.multi-engine-card.is-active {
  border-color: var(--t503);
  box-shadow:
    inset 0 0 0 1px var(--t510),
    0 0 0 1px var(--t358);
}

.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: var(--t511);
  box-shadow: inset 0 1px 0 var(--t168);
}

.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: var(--t103);
  background: var(--t104);
  color: var(--t512);
  font-weight: 850;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--t513);
  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: var(--t514);
  color: var(--text);
  color-scheme: dark;
  padding: 0 12px;
}

select option,
select optgroup {
  background-color: var(--t514);
  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 {
  position: relative;
  margin: 10px 0 0;
  border: 1px solid var(--t515);
  border-radius: 8px;
  background: var(--t516);
}

.chart-series-drawer[open] {
  z-index: 40;
  background:
    linear-gradient(180deg, var(--t355), var(--t517)),
    var(--t518);
}

.series-floating-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  width: min(520px, calc(100vw - 48px));
  max-height: 70dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--t514);
  box-shadow: 0 12px 32px rgb(0 0 0 / 40%);
}

.series-floating-panel.opens-above {
  top: auto;
  bottom: calc(100% + 8px);
}

.series-floating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px 20px;
  color: var(--text);
  font-size: 12px;
}

.series-floating-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.series-floating-close:hover,
.series-floating-close:focus-visible {
  color: var(--text);
  border-color: var(--line);
}

.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 var(--t519);
  border-radius: 999px;
  background: var(--t520);
  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: var(--t83);
}

.series-chip:focus-visible {
  outline: 2px solid var(--t521);
  outline-offset: 1px;
}

.series-chip-grip {
  width: 12px;
  height: 12px;
  flex: none;
  fill: currentColor;
  color: var(--t522);
}

.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 var(--t519);
  border-radius: 4px;
  background: var(--t523);
  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: var(--t83);
}

.series-pane-reset {
  appearance: none;
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--t520);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.series-pane-reset:hover {
  color: var(--text);
  border-color: var(--t83);
}

.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 var(--t524);
  border-radius: 10px;
  background: var(--t525);
  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 var(--t526);
  border-radius: 999px;
  background: var(--t527);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.series-pane-drop-zone.is-series-drop-active {
  border-color: var(--t528);
  background: var(--t48);
}

.series-control-group.is-series-drop-active {
  outline: 2px dashed var(--t83);
  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 var(--t83);
  border-radius: 8px;
  background: var(--t529);
  box-shadow: 0 24px 48px var(--t530);
  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: var(--t520);
}

.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 {
  /* Flow the per-cylinder values on one line when there is room, wrapping
     only when the width runs out (a fixed 3-column grid wasted horizontal
     space and broke cyl 4+ onto their own line unnecessarily). */
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.marker-detail-group.is-wide {
  width: max-content;
  min-width: 0;
}

.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: var(--t531);
}

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 var(--t532);
  will-change: transform;
}

.chart-zoom-overlay {
  background: var(--t48);
  border: 2px solid var(--t533);
}

.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 var(--t526);
  border-radius: 6px;
  background: var(--t534);
  box-shadow: 0 12px 28px var(--t323);
  color: var(--t535);
  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: var(--t536);
  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: var(--t119);
  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: var(--t119);
  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: var(--t537);
  background: var(--t355);
  color: var(--t21);
}

.aircraft-section-nav .aircraft-tab-dashboard:hover,
.aircraft-section-nav .aircraft-tab-dashboard:focus-visible,
.aircraft-section-nav .aircraft-tab-dashboard.is-active {
  color: var(--t8);
}

.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: var(--t122);
  background: var(--t201);
}

.aircraft-tab.is-active {
  color: var(--t126);
}

.aircraft-tab-dashboard.is-active {
  border-color: var(--t538);
  background: var(--t42);
  box-shadow: inset 0 0 0 1px var(--t539);
}

.aircraft-tab.is-active::after {
  background: var(--t128);
  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 var(--t540);
  border-radius: 12px;
  background:
    radial-gradient(circle at 62% 16%, var(--t56), transparent 28rem),
    var(--t541);
  box-shadow: inset 0 1px 0 var(--t168);
}

.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%, var(--t320), var(--t322) 58%, var(--t542)),
    var(--t543);
  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 var(--t544);
  border-radius: 12px;
  background: var(--t545);
  box-shadow:
    0 24px 80px var(--t38),
    inset 0 1px 0 var(--t29);
  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 var(--t226);
  border-radius: 999px;
  background: var(--t222);
  color: var(--t546);
  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: var(--t547);
  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 var(--t548);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t549), var(--t550));
  box-shadow: inset 0 1px 0 var(--t168);
}

.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: var(--t551);
  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: var(--t552);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.maintenance-kpi-icon,
.maintenance-row-icon {
  color: var(--t553);
  font-size: 26px;
  line-height: 1;
}

.maintenance-kpi-icon.is-blue,
.maintenance-row-icon.is-blue,
#aircraftMaintenancePanel .is-blue {
  color: var(--t554);
}

.maintenance-kpi-icon.is-purple {
  color: var(--purple);
}

#aircraftMaintenancePanel .is-green {
  color: var(--green);
}

#aircraftMaintenancePanel .is-amber {
  color: var(--amber);
}

#aircraftMaintenancePanel .is-red {
  color: var(--t555);
}

.maintenance-kpi-side {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 74px;
  padding-left: 18px;
  border-left: 1px solid var(--t486);
}

.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 var(--t556);
  border-radius: 999px;
  background: var(--t557);
}

.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, var(--t558), var(--t559));
}

.maintenance-mini-meter.is-amber span {
  background: linear-gradient(90deg, var(--t560), var(--t561));
}

.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 var(--t138);
  border-radius: 8px;
  background: var(--t562);
  color: var(--text);
  padding: 0 13px;
}

.maintenance-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--t563);
  border-radius: 8px;
}

.maintenance-table {
  min-width: 980px;
}

.maintenance-table th,
.maintenance-table td {
  padding: 13px 16px;
}

.maintenance-table tbody tr {
  background: var(--t564);
}

.maintenance-table tbody tr + tr {
  border-top: 1px solid var(--t565);
}

.maintenance-table td:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--t566);
  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 var(--t567);
}

.maintenance-log-card.is-overdue {
  border-left-color: var(--t568);
}

.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: var(--t569);
  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;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.maintenance-live-notice {
  border: 1px solid var(--t505);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--t570);
  font-size: 13.5px;
  line-height: 1.5;
}

.maintenance-live-notice.is-error {
  border-color: var(--t571);
  background: var(--t88);
}

.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-live-content .maintenance-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.maintenance-live-content .maintenance-kpi-card {
  grid-template-columns: minmax(0, 1fr);
}

.maintenance-live-content .maintenance-kpi-card:has(> .maintenance-kpi-icon) {
  grid-template-columns: auto minmax(0, 1fr);
}

.maintenance-live-content .maintenance-kpi-card > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.maintenance-live-content .maintenance-kpi-side {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 12px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.maintenance-live-content .maintenance-kpi-side strong {
  font-size: 20px;
}

.maintenance-live-content .maintenance-engine-chip {
  max-width: 100%;
}

.maintenance-engine-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 2px 7px;
  border: 1px solid var(--t572);
  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: var(--t573);
}

.maintenance-entry-composer textarea {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--t574);
  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: var(--t573);
}

.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, var(--t560), var(--t575));
}

.maintenance-meter.is-overdue span {
  background: linear-gradient(90deg, var(--t576), var(--t577));
}

.maintenance-kpi-icon.is-oil-amber {
  color: var(--amber);
  background: var(--t222);
}

.maintenance-kpi-icon.is-oil-red {
  color: var(--red);
  background: var(--t54);
}

.maintenance-oil-fields {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--t578);
  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: var(--t579);
  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: var(--t580);
  background: none;
  color: var(--blue);
  font-size: 12.5px;
  cursor: pointer;
}

.maintenance-attach-add:focus-visible,
.maintenance-bs-empty.is-add:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* 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: var(--t573);
}

.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: var(--t574);
  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: var(--t573);
}

.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;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  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;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.maintenance-bs-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: var(--t581);
  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 var(--t582);
  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 {
  width: 100%;
  background: transparent;
  font-family: inherit;
  border-color: var(--t580);
  color: var(--blue);
  cursor: pointer;
}

.maintenance-bs-detail {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--t578);
  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: var(--t583);
  color: var(--amber);
  background: var(--t197);
}

.maintenance-bs-create {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--t573);
}

/* 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: var(--t579);
  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: var(--t584);
  background: var(--t585);
}

.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: var(--t574);
  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 var(--t505);
  border-radius: 7px;
  background: var(--t586);
  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 var(--t540);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 8%, var(--t587), transparent 30rem),
    radial-gradient(circle at 78% 18%, var(--t197), transparent 22rem),
    var(--t545);
  box-shadow: inset 0 1px 0 var(--t168);
}

.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%, var(--t588), var(--t322) 56%, var(--t589)),
    var(--t590);
  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 var(--t79);
  border-radius: 12px;
  background: var(--t591);
  box-shadow:
    0 24px 80px var(--t592),
    inset 0 1px 0 var(--t29);
  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 var(--t226);
  border-radius: 999px;
  background: var(--t222);
  color: var(--t546);
  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: var(--t547);
  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;
}

/* Desktop: the sidebar starts at the top of the page and the user header
   (name/email hero) sits over the CONTENT column instead of pushing the
   sidebar down. The DOM keeps hero-first order for the mobile stack, so
   desktop re-slots it: the whole panel becomes the grid and the shell
   dissolves (display: contents) so the sidebar and main column place
   directly. Rows: hero / main / status / footer; the sidebar spans them
   all. */
@media (min-width: 761px) {
  /* form.account-auth-panel (not bare .account-auth-panel): the base
     `.account-auth-panel { display: flex; ... }` rule lives much later in
     this file and ties on specificity, so the later declaration would win
     and silently collapse this grid back to the stacked mobile flow. The
     type selector outranks it. */
  form.account-auth-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 14px 24px;
    align-items: start;
  }

  .account-shell {
    display: contents;
  }

  .account-auth-panel > .account-hero-panel {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .account-auth-panel .admin-sidebar {
    grid-column: 1;
    grid-row: 1 / 5;
  }

  .account-auth-panel .account-main {
    grid-column: 2;
    grid-row: 2;
  }

  .account-auth-panel > .upload-dialog-status,
  .account-auth-panel > .account-footer {
    grid-column: 2;
  }
}

.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: var(--t593);
}

.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: var(--t594);
  background: var(--t355);
}

.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: var(--t211);
  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: var(--t595); }

.account-checkout-error {
  margin: 0;
  color: var(--t595);
  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%, var(--t1), transparent 18rem),
    var(--t596);
  backdrop-filter: blur(10px);
}

/* Non-modal dialogs don't get the top layer's automatic centering — pin and
   center these explicitly, above the scrim. The AI pack dialog opens the same
   way for the same reason (see its open call). */
.account-plan-change-dialog[open],
.account-ai-pack-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, var(--t597)) 45%, transparent);
  background: color-mix(in srgb, var(--accent, var(--t598)) 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: var(--t599);
}

.admin-sidebar-item.account-signout-item:hover {
  background: var(--t54);
  color: var(--t52);
}

/* 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: var(--t500);
  color: var(--t211);
  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: var(--t211);
  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 var(--t600);
  padding: 0 14px;
  background: var(--t601);
  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: not-allowed;
  opacity: 0.72;
  filter: saturate(0.75);
}

@media (max-width: 760px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  /* Stacked layout: the section nav scrolls with the page like any other
     block (the sticky pin is a desktop behavior). overflow/overscroll reset
     for the same reason as the admin ≤720px block: a non-scrollable
     overflow:auto box with overscroll-behavior:contain eats touch scrolls
     over the rail instead of chaining them to the page. The
     body[data-new-ui] variant is repeated so this block outranks the
     `body[data-new-ui] .admin-sidebar` top/max-height override. */
  .account-view .admin-sidebar,
  body[data-new-ui] .account-view .admin-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }
}

.account-profile-panel,
.account-plan-panel,
.account-section-panel,
.account-activity-panel {
  border: 1px solid var(--t548);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t549), var(--t602));
  box-shadow: inset 0 1px 0 var(--t168);
}

.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-radius: 50%;
  /* Match the fleet-sidebar account avatar: solid blue→purple gradient, white
     initials, no border. */
  background: linear-gradient(135deg, var(--t603), var(--t604));
  color: var(--t8);
  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: var(--t551);
  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 var(--t40);
}

.account-detail-list dt {
  color: var(--t605);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-detail-list dd {
  margin: 0;
  color: var(--t606);
  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 var(--t40);
}

.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 var(--t563);
  border-radius: 8px;
  background: var(--t607);
}

.account-management-item.is-danger {
  border-color: var(--t608);
  background: var(--t609);
}

.account-management-item strong {
  color: var(--t610);
  font-size: 14px;
  line-height: 1.2;
}

.account-management-item span {
  color: var(--t552);
  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: var(--t611);
  font-size: 14px;
  font-weight: 760;
}

.account-toggle-list input {
  accent-color: var(--t612);
}

.account-activity-list div {
  grid-template-columns: minmax(150px, 0.56fr) minmax(0, 1fr);
}

.account-activity-list strong,
.account-event-row strong {
  color: var(--t606);
  font-size: 14px;
}

.account-activity-list span,
.account-event-row em,
.account-event-row time {
  color: var(--t552);
  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: var(--t552);
  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 var(--t563);
  border-radius: 8px;
  background: var(--t613);
}

.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 var(--t614);
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 28%, var(--t615), transparent 44%),
    var(--t98);
}

.account-aircraft-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-aircraft-thumb span {
  color: var(--t616);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.account-aircraft-row strong {
  color: var(--t617);
  font-size: 16px;
  line-height: 1.15;
}

.account-aircraft-row span,
.account-aircraft-row dd {
  color: var(--t618);
  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: var(--t619);
  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: var(--t620);
  box-shadow: 0 0 0 4px var(--t621);
}

#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;
}

/* Wrapping flex, not a two-column grid: the old grid's left track preferred
   the guidance line's max-content width, so at in-between widths (notably
   phones in desktop-site mode) the metrics grid was pushed clean out of the
   panel instead of wrapping. Flex keeps them side by side when there is room
   and drops the metrics to their own full-width line when there is not. */
.aircraft-flights-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 0 0 12px;
}

.aircraft-flights-heading > div {
  flex: 1 1 300px;
  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: var(--t622);
  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;
  /* Flex item in the heading row: grows to fill the space beside the title,
     and a basis wider than the leftover space wraps it onto its own line. */
  flex: 1 1 460px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--t623);
  border-radius: 8px;
  background: var(--t624);
}

.aircraft-flights-metrics-grid .aircraft-activity-card {
  min-width: 0;
  max-width: none;
  gap: 1px;
  padding: 0 16px;
  border-right: 1px solid var(--t198);
}

.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 var(--t183);
  background: var(--t625);
}

.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 var(--t138);
  border-radius: 8px;
  background: var(--t516);
  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: var(--t626);
  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 var(--t623);
  border-radius: 5px;
  background: var(--t627);
  color: var(--t628);
  font: inherit;
  font-size: 0.72rem;
}

.aircraft-flights-search-shell input::placeholder {
  color: var(--t629);
}

.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 var(--t630);
  border-radius: 8px;
  background: var(--t631);
}

.aircraft-flights-segmented-label {
  padding: 0 11px 0 8px;
  color: var(--t632);
  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: var(--t633);
  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: var(--t354);
  color: var(--t634);
  box-shadow: inset 0 0 0 1px var(--t635);
}

.aircraft-flights-segmented button[data-filter-value="review"].is-active {
  background: var(--t636);
  color: var(--t637);
  box-shadow: inset 0 0 0 1px var(--t638);
}

.aircraft-flights-segmented button[data-filter-value="watch"].is-active {
  background: var(--t639);
  color: var(--t640);
  box-shadow: inset 0 0 0 1px var(--t474);
}

.aircraft-flights-segmented button[data-filter-value="clear"].is-active {
  background: var(--t641);
  color: var(--t642);
  box-shadow: inset 0 0 0 1px var(--t643);
}

.aircraft-flights-toolbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  /* Fifth child of the four-column toolbar grid: without this it lands on
     row two inside the narrow first column, wrapping the bulk buttons onto
     two left-aligned lines. A full-width row keeps Update / Archive / Clear
     on one line, right-aligned. */
  grid-column: 1 / -1;
}

.trend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t644);
}

.trend-dot-included {
  background: var(--t645);
  box-shadow: 0 0 10px var(--t646);
}

.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 var(--t623);
  border-radius: 5px;
  background: var(--t647);
  color: var(--t648);
  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: var(--t649);
  color: var(--text);
  outline: none;
}

@media (max-width: 1700px) {
  /* Not enough room for the 6-across strip beside the title: re-flow the
     metrics to 3x2 but keep them to the RIGHT of the heading. The heading
     only stacks above the metrics on genuinely narrow screens (below). */
  .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: 1150px) {
  .aircraft-flights-heading {
    grid-template-columns: minmax(0, 1fr);
  }
}

@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%;
  }

  /* Shown on mobile too. It was display:none because a 6-across grid cannot
     fit a phone; the fix is to re-flow it, not to withhold the numbers. */
  .aircraft-flights-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
  }

  /* The 6-column desktop rule gives each card a right divider; on a 2-up grid
     that leaves a stray line down the middle of the last row. */
  .aircraft-flights-metrics-grid .aircraft-activity-card {
    border-right: 0;
  }

  .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 {
  /* Flush under the sticky topbar: any gap here is a see-through slit that
     scrolling rows peek out of. */
  top: var(--sticky-table-header-top);
  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: var(--t650);
}

.aircraft-upload-flight-summary-detail.is-unpaired {
  color: var(--t651);
}

.aircraft-upload-error {
  color: var(--t652);
  margin-top: 4px;
  /* Ingest errors can carry long unbroken storage paths; cap the column and
     break anywhere so the message wraps instead of stretching the table. */
  max-width: 520px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.aircraft-upload-status {
  background: var(--t653);
  border: 1px solid var(--t654);
  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: var(--t601);
  border-color: var(--t655);
}

.aircraft-upload-status-processing,
.aircraft-upload-status-queued,
.aircraft-upload-status-received {
  background: var(--t1);
  border-color: var(--t656);
}

.aircraft-upload-status-failed,
.aircraft-upload-status-unsupported {
  background: var(--t657);
  border-color: var(--t658);
}

.aircraft-upload-status-empty {
  background: var(--t653);
  border-color: var(--t659);
  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,
.aircraft-flights-clear-new {
  min-width: 138px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

/* Clear NEW: the label embeds the same pill the rows show. Centre it on the
   button's text baseline and stop the row-tag grid rules from applying here. */
.aircraft-flights-clear-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.aircraft-flights-clear-new .row-new-tag {
  justify-self: auto;
  margin: 0;
  flex: 0 0 auto;
}

.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: var(--t83);
  background: var(--t1);
  box-shadow: 0 0 0 3px var(--t58), 0 8px 20px var(--t660);
  color: var(--t8);
  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;
  /* Action buttons stay on a single row in every table, however narrow the
     view — stacking them vertically (the old flex-wrap) looked broken on
     mobile. The cell may grow instead. */
  flex-wrap: nowrap;
}

.aircraft-upload-delete-action {
  min-width: 40px;
  width: 40px;
  color: var(--t661);
}

.aircraft-upload-delete-action:disabled {
  color: var(--t662);
  border-color: var(--t198);
}

.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 var(--t663);
  border-radius: 999px;
  background: var(--t664);
  color: var(--t648);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
  white-space: nowrap;
}

.aircraft-flight-trend-toggle input {
  /* Match the row-select checkboxes (global input[type="checkbox"] blue)
     instead of the red accent, so all table checkboxes read as one family. */
  accent-color: var(--blue);
  block-size: 14px;
  inline-size: 14px;
  margin: 0;
}

.aircraft-flight-trend-toggle.is-included {
  border-color: var(--t665);
  background: var(--t56);
  color: var(--t512);
}

.aircraft-flight-trend-toggle.is-excluded {
  border-color: var(--t666);
  color: var(--t667);
}

.aircraft-flight-trend-toggle.is-skipped {
  border-color: var(--t668);
  background: var(--t669);
  color: var(--t670);
}

.aircraft-flight-trend-toggle.is-too-short {
  border-color: var(--t671);
  border-style: dashed;
  color: var(--t672);
  cursor: not-allowed;
}

.aircraft-flight-trend-toggle.is-outside-window {
  opacity: 0.72;
}

.aircraft-flight-trend-window-note {
  display: block;
  margin-top: 4px;
  color: var(--t673);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.aircraft-flights-trend-cap {
  display: inline;
  margin-left: 8px;
  color: var(--t674);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.aircraft-flights-trend-cap.is-capped {
  color: var(--t675);
}

.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: var(--t676);
}

.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: var(--t677);
  background: var(--t1);
  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, var(--t147), var(--t501)),
    var(--t678);
}

.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, var(--t679));
}

.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: var(--t678);
}

.engine-triage-summary {
  position: relative;
  overflow: hidden;
}

.engine-triage-summary.is-evidence-selected {
  border-color: var(--t680);
  box-shadow: 0 0 0 1px var(--t681);
}

.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 var(--t15);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.engine-status.green {
  color: var(--green);
  border-color: var(--t655);
  background: var(--t682);
}

.engine-status.amber {
  color: var(--amber);
  border-color: var(--t683);
  background: var(--t197);
}

.engine-status.red {
  color: var(--red);
  border-color: var(--t658);
  background: var(--t88);
}

.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: var(--t147);
  color: var(--t488);
}

.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: var(--t147);
}

.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: var(--t488);
  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: var(--t684);
}

.engine-explanation summary {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--t488);
  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: var(--t12);
  color: var(--t531);
  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: var(--t685);
}

.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: var(--t686);
}

.engine-event-chip.red {
  border-color: var(--t687);
}

.engine-event-chip.green {
  border-color: var(--t688);
}

.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: var(--t492);
  background: var(--t56);
  outline: none;
}

.engine-timeline-events button.is-selected {
  box-shadow: 0 0 0 1px var(--t689);
}

.engine-event-selection {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--t147);
}

.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: var(--t488);
  font-size: 13px;
  line-height: 1.35;
}

.engine-supporting-checks {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--t690);
}

.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: var(--t678);
}

.engine-diagnostic-card.is-review,
.engine-cylinder-card.is-flagged {
  border-color: var(--t691);
  box-shadow: inset 4px 0 0 var(--t692);
}

.engine-diagnostic-card.is-watch,
.engine-cylinder-card.is-watch {
  border-color: var(--t693);
  box-shadow: inset 4px 0 0 var(--t694);
}

.engine-cylinder-card {
  cursor: pointer;
  outline: none;
}

.engine-cylinder-card:hover,
.engine-cylinder-card:focus-visible,
.engine-cylinder-card.is-selected {
  border-color: var(--t492);
  background: var(--t201);
}

.engine-cylinder-detail {
  grid-column: 1 / -1;
  border-color: var(--t103);
  background: var(--t695);
}

.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: var(--t12);
}

.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: var(--t12);
}

.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 var(--t15);
  border-bottom: 1px solid var(--t486);
  background: var(--t98);
  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 var(--t505);
  border-radius: 7px;
  background: var(--t1);
  color: var(--t506);
  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: var(--t696);
}

.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: var(--t201);
}

.engine-cylinder-table tbody tr.is-flagged td:first-child {
  box-shadow: inset 4px 0 0 var(--t692);
}

.engine-cylinder-table tbody tr.is-watch td:first-child {
  box-shadow: inset 4px 0 0 var(--t694);
}

.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: var(--t81);
}

.profile-mix-segment {
  min-width: 7px;
  height: 100%;
}

.profile-mix-segment.ground,
.profile-mix-swatch.ground {
  background: linear-gradient(90deg, var(--t697), var(--t698));
}

.profile-mix-segment.airborne,
.profile-mix-swatch.airborne {
  background: linear-gradient(90deg, var(--t699), var(--t700));
}

.profile-mix-segment.off,
.profile-mix-swatch.off {
  background: var(--t701);
}

.profile-mix-segment.unknown,
.profile-mix-swatch.unknown {
  background: var(--t702);
}

.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: var(--t703);
  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: var(--t704);
}

.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: var(--t705);
  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 var(--t706);
  border-radius: 8px;
  background: var(--t707);
  color: var(--t708);
  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: var(--t706);
  background:
    linear-gradient(180deg, var(--t147), var(--t709)),
    var(--t710);
  box-shadow: 0 18px 56px var(--t278);
}

.profile-route-map-card .playback-map-canvas {
  min-height: 420px;
}

.profile-route-map-card .playback-map-route-line {
  stroke: var(--t711);
}

.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 var(--t85);
  border-radius: 8px;
  background: var(--t712);
  color: var(--t713);
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.profile-route-scrubber button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--t706);
  border-radius: 6px;
  background: var(--t81);
  color: var(--t714);
  font: inherit;
  cursor: pointer;
}

.profile-route-scrubber button:hover,
.profile-route-scrubber button:focus-visible {
  border-color: var(--t715);
  background: var(--t716);
}

.profile-route-scrubber input {
  width: 100%;
  accent-color: var(--t717);
}

.profile-route-scrubber output {
  min-width: 68px;
  color: var(--t535);
  text-align: right;
}

.profile-highlight-card,
.profile-mix-card,
.profile-summary-section,
.profile-context-rail {
  border: 1px solid var(--t706);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t147), var(--t709)),
    var(--t710);
  box-shadow: 0 18px 56px var(--t278);
}

.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: var(--t718);
}

.profile-highlight-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--t719);
  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: var(--t706);
}

.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, var(--t720), var(--t721)),
    var(--t722);
}

.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 var(--t723);
}

.profile-summary-row:last-child {
  border-bottom: 0;
}

.profile-summary-row strong {
  color: var(--t724);
  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 var(--t623);
  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 var(--t623);
  }

  .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: var(--t678);
}

.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 var(--t486);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--t725);
  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 var(--t726);
  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: var(--t684);
}

.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: var(--t727);
  border-bottom-color: var(--t138);
  box-shadow: inset 0 1px 0 var(--t728), inset 0 -1px 0 var(--t729);
}

.aircraft-flights-table tbody tr:hover > td:first-child,
.aircraft-uploads-table tbody tr:hover > td:first-child {
  box-shadow:
    inset 3px 0 0 var(--t730),
    inset 0 1px 0 var(--t728),
    inset 0 -1px 0 var(--t729);
}

.aircraft-flights-table tbody tr.is-selected > td,
.aircraft-uploads-table tbody tr.is-selected > td {
  background:
    linear-gradient(90deg, var(--t48), var(--t355)),
    var(--t647);
  border-bottom-color: var(--t203);
  box-shadow:
    inset 0 1px 0 var(--t731),
    inset 0 -1px 0 var(--t732);
}

.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 var(--t733),
    inset 0 1px 0 var(--t731),
    inset 0 -1px 0 var(--t732);
}

.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 var(--t734),
    inset 0 1px 0 var(--t731),
    inset 0 -1px 0 var(--t732);
}

.aircraft-flights-table tbody tr.is-selected:hover > td,
.aircraft-uploads-table tbody tr.is-selected:hover > td {
  background:
    linear-gradient(90deg, var(--t84), var(--t98)),
    var(--t516);
  border-bottom-color: var(--t735);
}

.aircraft-flights-table tbody tr.is-unsupported {
  color: var(--t736);
  background: var(--t501);
}

.aircraft-flights-table tbody tr.is-unsupported:hover > td {
  background: var(--t737);
}

.aircraft-flights-table tbody tr.is-unsupported.is-selected > td {
  background:
    linear-gradient(90deg, var(--t56), var(--t738)),
    var(--t631);
}

.aircraft-flights-table tbody tr.is-unsupported.is-selected:hover > td {
  background:
    linear-gradient(90deg, var(--t42), var(--t155)),
    var(--t739);
}

.aircraft-flights-table tbody tr.is-unsupported .secondary-action {
  opacity: 0.78;
}

.aircraft-flights-table tbody tr.is-plan-locked {
  color: var(--t740);
  background: var(--t741);
}

.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: var(--t742);
  border-bottom-color: var(--t743);
  box-shadow: none;
}

.aircraft-flights-table tbody tr.is-plan-locked:hover > td:first-child {
  box-shadow: inset 3px 0 0 var(--t744);
}

/* Column-keyed, not nth-child: the Open column moved first, Name was
   inserted, and the picker can hide columns — positional rules were landing
   on the wrong cells (and pinned the Name column to one line, so a long
   name widened the table past its bounds). Short data columns stay on one
   line; everything else may wrap. */
.aircraft-flights-table [data-flight-column="route"],
.aircraft-flights-table [data-flight-column="duration"],
.aircraft-flights-table [data-flight-column="cgr"] {
  white-space: nowrap;
}

/* Every data column sits at its content width; the trailing spacer column
   (width: 100%) absorbs ALL surplus table width. That spacer is greedy — it
   squeezes the other columns down to their min-content — so any column that
   must hold a preferred width has to carry that width in its min-content
   (nowrap for Date, the capped max-content span for Name below). */
.aircraft-flights-table [data-flight-column="spacer"] {
  width: 100%;
  padding: 0;
}

/* Date stays on one line at its own text width. The global
   .aircraft-flight-title-row > :first-child rule allows anywhere-wrapping,
   and the title row's flex chain allows shrink-below-content — both would
   let the greedy spacer crush this column, so the cell pins its content's
   min-width instead. */
.aircraft-flights-table [data-flight-column="date"] {
  white-space: nowrap;
}

.aircraft-flights-table td[data-flight-column="date"] .aircraft-flight-title-row,
.aircraft-flights-table td[data-flight-column="date"] .aircraft-flight-title-row > :first-child {
  min-width: fit-content;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* A user-typed name wraps inside a capped-width band instead of stretching
   the table. width: max-content + the max-width cap make the span's
   min-content equal to its own text up to 36ch, which is what holds the
   column open against the spacer: a short name takes only what it needs,
   a long one wraps at 36ch. Past that the .table-wrap scrolls. */
.aircraft-flights-table td[data-flight-column="name"] {
  /* nowrap at the cell keeps the edit pencil beside the name (to its right)
     instead of dropping under it; the name span re-enables wrapping for its
     own text below. */
  white-space: nowrap;
  min-width: 12ch;
}

.aircraft-flight-name-slot {
  display: inline-block;
  vertical-align: middle;
}

.aircraft-flight-name-cell .aircraft-flight-name-edit {
  vertical-align: middle;
}

.aircraft-flight-custom-name {
  display: inline-block;
  width: max-content;
  max-width: 36ch;
  white-space: normal;
  overflow-wrap: anywhere;
}

.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 var(--t654);
  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: var(--t601);
  border-color: var(--t655);
  color: var(--t650);
}

.aircraft-flight-cgr-source.is-unmatched {
  background: var(--t745);
  border-color: var(--t746);
  color: var(--t651);
}

.aircraft-flight-cgr-source.is-empty {
  background: var(--t747);
  color: var(--t748);
}

.aircraft-flight-date {
  display: grid;
  gap: 3px;
}

.aircraft-flight-date strong,
.aircraft-flight-duration {
  color: var(--t749);
  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 var(--t750);
}

.aircraft-flight-display.is-static {
  cursor: default;
}

.aircraft-flight-display:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--t751);
  outline-offset: 3px;
}

.aircraft-flight-provenance-tooltip {
  background: var(--t752);
  border: 1px solid var(--t753);
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--t754);
  color: var(--t749);
  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: var(--t632);
  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: var(--t755);
  border: 1px solid var(--t756);
  border-radius: 999px;
  color: var(--t757);
  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: var(--t54);
  border-color: var(--t758);
  color: var(--t652);
}

.aircraft-flight-analysis-update.is-parser {
  background: var(--t98);
  border-color: var(--t759);
  color: var(--t760);
}

.aircraft-flight-analysis-update.is-parser.is-unavailable {
  background: var(--t54);
  border-color: var(--t758);
  color: var(--t652);
}

.aircraft-analysis-update-notice,
.analysis-compatibility-banner {
  align-items: center;
  background: var(--t761);
  border: 1px solid var(--t762);
  color: var(--t670);
  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: var(--t763);
  border-color: var(--t97);
  border-left: 3px solid var(--t764);
  color: var(--t513);
}

.aircraft-analysis-update-notice strong,
.analysis-compatibility-banner strong {
  color: var(--t765);
  flex: 0 0 auto;
}

.aircraft-analysis-update-notice span,
.analysis-compatibility-banner span {
  color: var(--t766);
  font-size: 0.82rem;
}

.analysis-update-kicker {
  color: var(--t757) !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: var(--t767);
  border: 1px solid var(--t768);
  border-radius: 9px;
  color: var(--t765);
  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: var(--t769);
  border-color: var(--t770);
  color: var(--t771);
}

.analysis-compatibility-action:focus-visible {
  outline: 2px solid var(--t772);
  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: var(--t768);
  color: var(--t765);
  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: var(--t769);
  border-color: var(--t770);
  color: var(--t771);
}

@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: var(--t627);
  border: 1px solid var(--t85);
  border-radius: 6px;
  color: var(--t632);
  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: var(--t773);
  border-color: var(--t774);
  color: var(--t775);
  outline: none;
}

.aircraft-flight-duration {
  display: inline-flex;
  min-width: 62px;
}

.aircraft-flight-inline-status {
  color: var(--t776);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.aircraft-flight-inline-status.is-plan-locked,
.aircraft-flight-route.is-plan-locked {
  color: var(--t777);
  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: var(--t778);
}

.aircraft-flight-route-ident {
  color: var(--t779);
  font-weight: 680;
  letter-spacing: 0.01em;
}

.aircraft-flight-route-sep {
  color: var(--t674);
}

.aircraft-flight-route-near {
  color: var(--t675);
  font-size: 0.78rem;
  font-style: italic;
}

.aircraft-flight-route-empty {
  color: var(--t780);
}

.aircraft-flight-route-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aircraft-flight-route-sort-arrow {
  color: var(--t674);
}

.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: var(--t81);
  outline: none;
}

.aircraft-flight-route-edit.is-empty {
  color: var(--t674);
  font-size: 0.82rem;
}

.aircraft-flight-route-edit.is-empty:hover,
.aircraft-flight-route-edit.is-empty:focus-visible {
  color: var(--t781);
}

.aircraft-flight-route-pencil {
  opacity: 0;
  color: var(--t782);
  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 var(--t783);
  border-radius: 6px;
  background: var(--t784);
  color: var(--t785);
  font: inherit;
  text-transform: uppercase;
}

.aircraft-flight-route-input:focus {
  outline: none;
  border-color: var(--t726);
}

.aircraft-flight-route-editor-save,
.aircraft-flight-route-editor-cancel {
  padding: 3px 8px;
  border: 1px solid var(--t783);
  border-radius: 6px;
  background: transparent;
  color: var(--t786);
  font: inherit;
  cursor: pointer;
}

.aircraft-flight-route-editor-save {
  border-color: var(--t787);
  color: var(--t775);
}

.aircraft-flight-route-editor-save:hover,
.aircraft-flight-route-editor-cancel:hover {
  background: var(--t13);
}

/* --- Flight name (Name column) --------------------------------------------- */
/* User-set name rendered after the date; edited in place via the pencil. */

.aircraft-flight-custom-name {
  color: var(--muted);
  font-weight: 650;
}

.aircraft-flight-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--t782);
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.aircraft-flights-table tbody tr:hover .aircraft-flight-name-edit,
.aircraft-flight-name-edit:focus-visible {
  opacity: 1;
}

.aircraft-flight-name-edit:hover,
.aircraft-flight-name-edit:focus-visible {
  background: var(--t81);
  outline: none;
}

/* Touch devices have no hover to reveal the pencil, so it stays visible
   wherever it lives (Date cell or Name column). */
@media (hover: none) {
  .aircraft-flight-name-edit {
    opacity: 1;
  }
}

/* Free-text name input: undo the route input's ident treatment. */
.aircraft-flight-name-input {
  width: 170px;
  text-transform: none;
}

/* Unviewed AI summary pill beside the AI Summary button. */
.aircraft-flight-ai-summary-cell .ai-summary-new-tag {
  position: absolute;
  top: 50%;
  left: calc(50% + 39px / 2 + 6px);
  transform: translateY(-50%);
}

/* Re-analyze dialog: "Generate AI summary after the update" opt-in. */
.flight-reanalyze-ai-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}

.flight-reanalyze-ai-option small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Flight-name modal: one labelled text field between the copy and the
   footer buttons. */
.flight-name-dialog-card {
  max-width: 420px;
}

/* Field chrome comes from the shared .upload-field styling; this only adds
   the breathing room between the copy and the footer. */
.flight-name-dialog-field {
  margin-top: 4px;
}

/* Inline contact-field validation message, inserted directly after the
   offending input (account form and profile wizard). */
.field-validation-error {
  margin: 4px 0 0;
  color: var(--t61);
  font-size: 0.78rem;
  line-height: 1.35;
}

input[aria-invalid="true"] {
  border-color: var(--t61);
}

.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: var(--t788);
}

.aircraft-flight-analysis-update-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px 5px 11px;
  border-color: var(--t787);
  color: var(--t775);
  background: var(--t789);
  font-size: 12px;
  font-weight: 750;
}

.aircraft-flight-analysis-update-action:hover:not(:disabled),
.aircraft-flight-analysis-update-action:focus-visible {
  border-color: var(--t790);
  background: var(--t48);
  box-shadow: 0 0 0 3px var(--t791);
  color: var(--t8);
  outline: none;
}

.aircraft-flight-analysis-update-action.is-generating {
  cursor: default;
  border-color: var(--t792);
  background: var(--t354);
}

.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: var(--t793);
  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-saved {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.aircraft-flight-flags-previous {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  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 var(--t663);
  border-radius: 999px;
  color: var(--t794);
  background: var(--t664);
  font-size: 13px;
  font-weight: 700;
}

.aircraft-flight-flags-review {
  border-color: var(--t795);
  color: var(--t796);
  background: var(--t797);
}

.aircraft-flight-flags-high-cht {
  border-color: var(--t798);
  color: var(--t799);
  background: var(--t800);
  box-shadow: 0 0 0 1px var(--t801) inset;
}

.aircraft-flight-flags-watch {
  border-color: var(--t802);
  color: var(--t670);
  background: var(--t803);
}

.aircraft-flight-flags-clear {
  justify-content: center;
  min-width: 56px;
  border-color: var(--t804);
  color: var(--t805);
  background: var(--t806);
}

.aircraft-flight-flags-empty {
  justify-content: center;
  min-width: 56px;
  border-color: transparent;
  background: transparent;
  color: var(--t673);
  font-size: 1rem;
  font-weight: 700;
}

.aircraft-flight-report-cell {
  width: 1%;
}

.aircraft-flight-ai-summary-cell {
  position: relative;
  width: 1%;
  min-width: 160px;
}

.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: var(--t807);
  color: var(--t808);
  background: var(--t809);
}

.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: var(--t810);
  color: var(--t811);
  background: var(--t809);
}

.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: var(--t83);
  background: var(--t1);
  box-shadow: 0 0 0 3px var(--t58), 0 8px 20px var(--t791);
  color: var(--t80);
  outline: none;
}

/* An existing (or in-flight) AI summary reads green, matching the PDF
   "has-report" treatment, so "there is something to open" looks the same
   across both columns. */
.aircraft-flight-ai-summary-action.has-summary {
  border-color: var(--t822);
  color: var(--t805);
  background: var(--t806);
}

.aircraft-flight-ai-summary-action.has-summary:hover:not(:disabled),
.aircraft-flight-ai-summary-action.has-summary:focus-visible {
  border-color: var(--t823);
  background: var(--t824);
  box-shadow: 0 0 0 3px var(--t825), 0 8px 20px var(--t826);
  color: var(--t827);
}

.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: var(--t820);
}

.aircraft-flight-ai-summary-action.is-icon-only .aircraft-flight-ai-summary-icon-sparkle {
  color: var(--t821);
}

.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: var(--t822);
  color: var(--t805);
  background: var(--t806);
}

.aircraft-flight-report-action.is-stale {
  background: var(--t755);
  border-color: var(--t756);
  color: var(--t757);
}

.aircraft-flight-report-action.has-report:hover:not(:disabled),
.aircraft-flight-report-action.has-report:focus-visible {
  border-color: var(--t823);
  background: var(--t824);
  box-shadow: 0 0 0 3px var(--t825), 0 8px 20px var(--t826);
  color: var(--t827);
}

.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: var(--t828);
  color: var(--t820);
  background: var(--t829);
}

.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: default;
}

.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: var(--t83);
  background: var(--t1);
  box-shadow: 0 0 0 3px var(--t58), 0 8px 20px var(--t830);
  color: var(--t8);
  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;
}

/* Compact Actions (is-compact-actions is set by the renderer once the table
   overflows its wrap): the three buttons collapse into one "..." toggle and
   reappear in a floating dropdown anchored to the cell. The toggle matches
   the AI / PDF icon buttons: same 39px square, zero padding, icon centered. */
.aircraft-flight-actions-ellipsis {
  display: none;
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.aircraft-flight-actions-ellipsis svg {
  width: 20px;
  height: 20px;
  display: block;
}

.aircraft-flights-table.is-compact-actions .aircraft-flight-actions-cell {
  position: relative;
}

.aircraft-flights-table.is-compact-actions .aircraft-flight-actions-ellipsis {
  display: inline-flex;
}

.aircraft-flights-table.is-compact-actions .aircraft-flight-actions {
  display: none;
}

.aircraft-flights-table.is-compact-actions tr.is-actions-open .aircraft-flight-actions {
  display: flex;
  position: absolute;
  top: calc(50% + 20px);
  right: 6px;
  z-index: 40;
  padding: 6px;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.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: var(--t831);
  background: var(--t832);
  box-shadow: 0 0 0 3px var(--t833), 0 8px 20px var(--t830);
  color: var(--t8);
  outline: none;
}

.raw-preview-panel {
  padding: 18px;
}

.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: var(--t836);
  background: var(--t837);
  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 var(--t838);
  background:
    linear-gradient(135deg, var(--t155), transparent 34%),
    linear-gradient(180deg, var(--t839), var(--t840));
  box-shadow:
    inset 0 0 0 1px var(--t168),
    inset 0 0 44px var(--t105);
}

.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 var(--t841);
  border-radius: 8px;
  background: var(--t842);
}

.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 var(--t843);
  border-radius: 6px;
  background: var(--t12);
  color: var(--t488);
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.playback-status-mode {
  color: var(--teal);
  border-color: var(--t844);
  background: var(--t845);
}

.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: var(--t846);
  background: var(--t499);
  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 var(--t847);
  border-radius: 4px;
  background: var(--t848);
  color: var(--t849);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.playback-advisory-chips button.is-danger .playback-advisory-engine {
  border-color: var(--t850);
  background: var(--t851);
  color: var(--t852);
}

.playback-advisory-chips button:hover,
.playback-advisory-chips button:focus-visible,
.playback-advisory-chips button.is-selected {
  border-color: var(--t853);
  background: var(--t854);
  box-shadow: 0 0 0 1px var(--t855), 0 0 16px var(--t856);
  outline: none;
}

.playback-advisory-chips button.is-danger {
  color: var(--t852);
  border-color: var(--t857);
  background: var(--t54);
}

.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: var(--t858);
  background: var(--t102);
  box-shadow: 0 0 0 1px var(--t859), 0 0 16px var(--t860);
}

.playback-advisory-empty {
  color: var(--t318);
  border-color: var(--t861);
  background: var(--t593);
}

.playback-advisory-empty.is-panel-empty {
  margin-inline: auto;
  border-color: transparent;
  background: transparent;
  color: var(--t862);
}

.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 var(--t863);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t197), var(--t864) 45%),
    var(--t865);
  box-shadow: inset 3px 0 0 var(--t866), 0 16px 32px var(--t30);
  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: var(--t867);
  background:
    linear-gradient(90deg, var(--t868), var(--t864) 45%),
    var(--t865);
  box-shadow: inset 3px 0 0 var(--t869), 0 16px 32px var(--t30);
}

.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: var(--t870);
  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 var(--t871);
  border-radius: 7px;
  background: var(--t500);
  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: var(--t872);
  background: var(--t56);
  outline: none;
}

.playback-alert-body {
  color: var(--t488);
  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 var(--t873);
  border-bottom: 1px solid var(--t873);
}

.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: var(--t488);
  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: var(--t488);
  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 var(--t871);
  border-radius: 7px;
  background: var(--t500);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.playback-alert-drawer footer span {
  color: var(--t300);
  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 var(--t841);
  border-radius: 8px;
  background: var(--t842);
}

.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 var(--t871);
  border-radius: 7px;
  background: var(--t500);
  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: var(--t872);
  background: var(--t56);
  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 var(--t841);
  border-radius: 8px;
  background: var(--t842);
}

.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: var(--t147);
  color: var(--t488);
}

.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), var(--t874) calc(50% - 1px), var(--t874) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--t875);
}

.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, var(--t876), var(--t877));
  box-shadow: 0 0 10px var(--t878);
}

.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, var(--t879), var(--t880));
}

.playback-delta-row.is-missing .playback-delta-meter i {
  display: none;
}

.playback-delta-row.is-warning .playback-delta-meter i {
  background: linear-gradient(90deg, var(--t881), var(--t882));
  box-shadow: 0 0 12px var(--t883);
}

.playback-delta-row.is-warning {
  color: var(--amber);
  background: var(--t219);
}

.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: var(--t884);
  box-shadow: inset 0 0 0 1px var(--t885);
}

.playback-tile-meter-track i.is-active {
  background: linear-gradient(180deg, var(--t886), var(--t887));
  box-shadow: 0 0 7px var(--t888);
}

.playback-tile-meter-labels {
  display: flex;
  justify-content: space-between;
  color: var(--t889);
  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: var(--t890);
  box-shadow: inset 0 0 22px var(--t224);
}

.playback-tile.is-warning .playback-tile-meter-track i.is-active {
  background: linear-gradient(180deg, var(--t891), var(--t892));
  box-shadow: 0 0 8px var(--t681);
}

.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;
  /* minmax(0, ...) not minmax(72px, ...): a 72px floor is a hard minimum, so a
     12-cylinder engine demanded 12*72px + gaps (~950px) from a track the
     monitor grid sizes at minmax(420px, 2fr). The excess did not wrap or
     scroll — it overflowed the column and drew cylinder 12 underneath the
     oil/bus/amp panel to its right. A zero floor lets the columns divide
     whatever width they are actually given. */
  grid-template-columns: repeat(var(--playback-cylinder-count, 6), minmax(0, 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 var(--t893);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t894), var(--t709)),
    var(--t895);
}

.playback-engine-cylinder-group + .playback-engine-cylinder-group {
  border-left-color: var(--t226);
  box-shadow: -7px 0 0 var(--t142);
}

.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 var(--t656);
  border-radius: 5px;
  background: var(--t201);
  color: var(--t506);
  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 var(--t861);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t147), var(--t709));
}

.playback-cylinder.is-focused {
  border-color: var(--t896);
  box-shadow: 0 0 0 1px var(--t897), inset 0 0 24px var(--t224);
}

.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: var(--t898);
  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 var(--t486);
  border-radius: 8px;
  background:
    repeating-linear-gradient(to top, var(--t13), var(--t13) 1px, transparent 1px, transparent 26px),
    var(--t899);
}

.playback-egt-bar {
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 34%;
  min-height: 5%;
  border-radius: 8px 8px 0 0;
  background: var(--t900);
  box-shadow: 0 0 12px var(--t901);
  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 var(--t902);
  transition: height 180ms linear;
  z-index: 2;
}

.playback-cht-bar.is-yellow {
  color: var(--t849);
  box-shadow: 0 0 12px var(--t903);
}

.playback-cht-bar.is-red {
  color: var(--red);
  box-shadow: 0 0 12px var(--t904);
}

.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: var(--t905);
  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 var(--t871);
  border-radius: 7px;
  background: var(--t500);
  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: var(--t872);
  background: var(--t56);
}

.playback-controls button:disabled,
.playback-controls button[aria-disabled="true"] {
  border-color: var(--t861);
  background: var(--t593);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.playback-controls button:disabled:hover,
.playback-controls button[aria-disabled="true"]:hover {
  border-color: var(--t861);
  background: var(--t593);
}

.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 var(--t906);
  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: var(--t872);
  background: var(--t56);
}

.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 var(--t871);
  border-radius: 6px;
  background: var(--t907);
  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: var(--t492);
  background: var(--t56);
  color: var(--t908);
}

.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 var(--t841);
  border-radius: 8px;
  background: var(--t842);
}

.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: var(--t488);
  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: var(--t909);
  box-shadow: 0 0 12px var(--t910);
  z-index: 3;
}

.playback-trace-cursor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t911);
  transform: translateX(-50%);
}

.playback-trace-future {
  background: var(--t912);
  z-index: 2;
}

.playback-map-card {
  display: grid;
  grid-template-rows: auto minmax(502px, 76vh);
  min-height: 544px;
  overflow: hidden;
  border: 1px solid var(--t841);
  border-radius: 8px;
  background: var(--t842);
}

.playback-attitude-card {
  display: grid;
  grid-template-rows: auto minmax(146px, auto);
  overflow: hidden;
  border: 1px solid var(--t841);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, var(--t913), transparent 58%),
    var(--t914);
}

.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 var(--t861);
  background: var(--t712);
}

.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: var(--t488);
  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 var(--t915));
}

.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 var(--t841);
  border-radius: 7px;
  background:
    linear-gradient(180deg, var(--t916), var(--t914)),
    var(--t917);
}

.playback-attitude-env-card span,
.playback-attitude-env-card small {
  color: var(--t918);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.playback-attitude-env-card b {
  color: var(--t535);
  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 var(--t841);
  border-radius: 7px;
  background:
    linear-gradient(180deg, var(--t916), var(--t914)),
    var(--t917);
}

.playback-attitude-tape-label,
.playback-attitude-tape small {
  color: var(--t918);
  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 var(--t919);
  border-radius: 4px;
  background: var(--t920);
  box-shadow: 0 0 0 1px var(--t167), 0 5px 12px var(--t192);
  color: var(--t535);
  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 var(--t921);
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--t922), transparent 18%, transparent 82%, var(--t923)),
    var(--t924);
}

.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 var(--t14);
  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: var(--t925);
  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 var(--t926);
}

.playback-attitude-airspeed-tick.is-major i,
.playback-attitude-altitude-tick.is-major i {
  width: 15px;
  border-color: var(--t927);
}

.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 var(--t928);
}

.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 var(--t929);
}

.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: var(--t930);
}

.playback-attitude-vs-bar {
  position: absolute;
  left: 26px;
  width: 7px;
  min-height: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--t931), var(--t932));
  box-shadow: 0 0 10px var(--t933);
}

.playback-attitude-tape.is-verticalSpeed.is-down .playback-attitude-vs-bar {
  background: linear-gradient(180deg, var(--t934), var(--t935));
  box-shadow: 0 0 10px var(--t936);
}

.playback-attitude-frame {
  fill: var(--t937);
  stroke: var(--t938);
  stroke-width: 2;
}

.playback-attitude-sky {
  fill: var(--t939);
}

.playback-attitude-ground {
  fill: var(--t940);
}

.playback-attitude-horizon-line {
  stroke: var(--t941);
  stroke-width: 1.6;
}

.playback-attitude-pitch-tick line {
  stroke: var(--t942);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.playback-attitude-pitch-tick text {
  fill: var(--t943);
  font-size: 8.5px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--t944);
  stroke-width: 0.8px;
}

.playback-attitude-roll-arc,
.playback-attitude-roll-tick {
  fill: none;
  stroke: var(--t945);
  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: var(--t946);
  stroke: var(--t947);
  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: var(--t948);
  stroke-width: 1.4px;
}

.playback-attitude-instrument-readout-label {
  fill: var(--t949);
  font-size: 5.7px;
}

.playback-attitude-instrument-readout-value {
  fill: var(--t950);
  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 var(--t861);
  background: var(--t951);
}

.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: var(--t488);
  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: var(--t952);
}

.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 var(--t953);
  border-radius: 7px;
  background: var(--t954);
}

.playback-map-toolbar button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--t841);
  border-radius: 5px;
  background: var(--t81);
  color: var(--t535);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.playback-map-toolbar button:hover,
.playback-map-toolbar button:focus-visible {
  border-color: var(--t872);
  background: var(--t56);
}

.playback-map-status span {
  display: grid;
  gap: 1px;
  flex: 0 0 auto;
  min-width: 56px;
  padding: 3px 6px;
  border: 1px solid var(--t906);
  border-radius: 6px;
  background: var(--t955);
}

.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: var(--t535);
  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: var(--t956);
  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: var(--t957);
  stroke-width: 7;
}

.playback-map-route-line {
  stroke: var(--t958);
  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 var(--t959);
  border-radius: 999px;
  box-shadow: 0 2px 10px var(--t960);
}

.playback-map-marker.is-start {
  background: var(--t961);
}

.playback-map-marker.is-end {
  background: var(--t962);
}

.playback-map-current {
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 18px solid var(--t963);
  border-left: 8px solid transparent;
  filter: drop-shadow(0 2px 6px var(--t964));
  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: var(--t965);
  color: var(--t966);
  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 var(--t871);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t967), var(--t968)),
    var(--t969);
}

.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 var(--t953);
  background: var(--t970);
}

.playback-timeline-labels > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--t906);
  color: var(--t971);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-timeline-labels > span:nth-child(2) {
  position: relative;
  color: var(--t971);
}

.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: var(--t971);
  cursor: pointer;
}

.playback-finding-nav-button:hover,
.playback-finding-nav-button:focus-visible {
  background: var(--t56);
  color: var(--t972);
  outline: 1px solid var(--t973);
  outline-offset: 1px;
}

.playback-finding-nav-button:disabled {
  color: var(--t974);
  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: var(--t975);
  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 var(--t906);
}

.playback-ruler-row {
  overflow: visible;
  border-bottom: 0;
  background: var(--t976);
}

.playback-phase-row {
  background: var(--t593);
}

.playback-findings-row {
  background: var(--t977);
}

.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 var(--t15);
  color: var(--t978);
  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 var(--t979);
  border-radius: 2px;
  background: var(--t980);
  cursor: pointer;
  transform: rotate(45deg);
  z-index: 8;
}

.playback-marker.is-finding {
  background: var(--t980);
  border-color: var(--t981);
}

.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 var(--t982);
  transform: none;
}

.playback-marker.is-anomaly.is-review {
  background: var(--t983);
  width: 3px;
  height: 12px;
  margin: -6px 0 0 -1.5px;
  box-shadow: 0 0 8px var(--t689);
}

.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 var(--t984);
  border-radius: 4px;
  background: var(--t848);
  color: var(--t849);
  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: var(--t985);
  background: var(--t986);
  outline: none;
}

.playback-condition-band.is-sensors {
  border-color: var(--t987);
  background: var(--t988);
  color: var(--t989);
}

.playback-condition-band.is-danger {
  border-color: var(--t990);
  background: var(--t991);
  color: var(--t52);
}

.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: var(--t992);
}

.playback-ruler-tick.is-minor {
  height: 8px;
}

.playback-ruler-tick.is-major {
  height: 13px;
  background: var(--t993);
}

.playback-ruler-tick b {
  position: absolute;
  top: 14px;
  left: 50%;
  color: var(--t994);
  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: var(--t995);
  box-shadow: 0 0 14px var(--t996);
}

.playback-timeline-cursor::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--t997);
  border-radius: 999px;
  background: var(--t998);
  box-shadow: 0 0 12px var(--t999);
  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 var(--t997);
  outline-offset: 2px;
}

.playback-timeline-cursor span {
  position: absolute;
  bottom: 4px;
  left: 50%;
  color: var(--t1000);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px var(--t1001);
  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 var(--t871);
  border-radius: 7px;
  background: var(--t1002);
}

.explorer-panel .chart-actions .explorer-toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--t953);
  background: var(--t684);
  color: var(--t1003);
  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: var(--t1004);
}

.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: var(--t1005);
  background:
    linear-gradient(180deg, var(--t1006), var(--t1007)),
    var(--t1008);
  color: var(--t1009);
  box-shadow:
    inset 0 1px 0 var(--t1010),
    0 0 0 1px var(--t1011),
    0 8px 20px var(--t145);
}

.explorer-panel .chart-actions #explorerAskToggle svg {
  color: var(--t1012);
  opacity: 1;
}

.explorer-panel .chart-actions #explorerAskToggle::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  border: 1px solid var(--t1013);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.explorer-panel .chart-actions #explorerAskToggle:hover,
.explorer-panel .chart-actions #explorerAskToggle:focus-visible {
  border-color: var(--t1014);
  background:
    linear-gradient(180deg, var(--t1015), var(--t1016)),
    var(--t1017);
  color: var(--t8);
  box-shadow:
    inset 0 1px 0 var(--t1018),
    0 0 0 1px var(--t1019),
    0 0 22px var(--t510),
    0 10px 24px var(--t278);
}

.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: var(--t1020);
  background:
    linear-gradient(180deg, var(--t1021), var(--t1022)),
    var(--t1023);
  color: var(--t8);
  box-shadow:
    inset 0 1px 0 var(--t1024),
    inset 0 -2px 0 var(--t1025),
    0 0 0 1px var(--t1026),
    0 0 26px var(--t290),
    0 12px 28px var(--t237);
}

.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 var(--t841);
}

.chart-height-toggle .secondary-action:hover,
.chart-height-toggle .secondary-action:focus-visible {
  background: var(--t155);
  color: var(--t535);
}

.chart-height-toggle .secondary-action[aria-pressed="true"] {
  background: var(--t354);
  color: var(--t908);
  box-shadow: inset 0 0 0 1px var(--t1027);
}

.explorer-panel .chart-actions .secondary-action:hover,
.explorer-panel .chart-actions .secondary-action:focus-visible {
  border-color: var(--t1028);
  background: var(--t98);
  color: var(--t908);
}

.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: var(--t1029);
  box-shadow:
    inset 0 0 0 1px var(--t1011),
    0 0 0 1px var(--t1030),
    0 18px 42px var(--t127);
}

.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 var(--t1029);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, var(--t1031), transparent 30%),
    radial-gradient(circle at 0 0, var(--t1032), transparent 34%),
    linear-gradient(180deg, var(--t1033), var(--t1034)),
    var(--t1035);
  box-shadow:
    inset 4px 0 0 var(--t1036),
    inset 0 1px 0 var(--t39),
    0 0 0 1px var(--t1030),
    0 18px 42px var(--t192);
}

.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 var(--t1037);
  background:
    linear-gradient(90deg, var(--t1038), var(--t201), transparent 72%);
  border-radius: 7px 7px 0 0;
}

.explorer-ask-panel h2 {
  margin: 0;
  color: var(--t1039);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 18px var(--t1040);
}

.explorer-ask-close {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.explorer-ask-close svg {
  width: 15px;
  height: 15px;
  color: var(--t488);
  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 var(--t953);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t1041), var(--t1042)),
    var(--t1043);
  box-shadow: inset 0 1px 0 var(--t1044);
}

.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: var(--t852);
}

.explorer-ask-selection strong {
  color: var(--t1045);
  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 var(--t1046);
  border-radius: 7px;
  background: var(--t1047);
}

.explorer-ask-selection small {
  min-width: 0;
  color: var(--t1048);
  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 var(--t873);
  border-radius: 8px;
  background: var(--t1049);
}

.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: var(--t1050);
  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: var(--t1051);
  background: var(--t1052);
  color: var(--t8);
}

.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 var(--t519);
  border-radius: 5px;
  background: var(--ask-swatch-color);
  box-shadow: inset 0 0 0 1px var(--t323);
  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: var(--t1053);
  box-shadow:
    0 0 0 2px var(--t1054),
    0 0 0 4px var(--t1055),
    inset 0 0 0 1px var(--t1056);
  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: var(--t1057);
  outline: none;
}

.explorer-ask-annotate-row .secondary-action:hover,
.explorer-ask-annotate-row .secondary-action:focus-visible {
  border-color: var(--t1058);
  background: var(--t81);
  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 var(--t871);
  border-radius: 8px;
  background: var(--t1059);
  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: var(--t503);
  background: var(--t1060);
  box-shadow: 0 0 0 3px var(--t58);
}

.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: var(--t849);
}

.explorer-ask-question-meta span.is-at-limit {
  color: var(--t1061);
}

.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: var(--t1062);
  background: var(--t1);
  color: var(--t1063);
}

.explorer-ask-save-status {
  min-width: 0;
  color: var(--t1064);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.explorer-ask-save-status.is-saved {
  color: var(--t1065);
}

.explorer-ask-save-status.is-error {
  color: var(--t852);
}

.explorer-ask-answer-card,
.explorer-ask-loading,
.explorer-ask-error,
.explorer-ask-empty {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--t906);
  border-radius: 8px;
  background: var(--t147);
}

.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 var(--t1046);
}

.explorer-ask-answer-section:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.explorer-ask-answer-section h3 {
  margin: 0;
  color: var(--t1065);
  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: var(--t488);
  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: var(--t1066);
  color: var(--t1067);
  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: var(--t1048);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.explorer-ask-empty strong {
  color: var(--t488);
  font-size: 13px;
  line-height: 1.25;
}

.explorer-ask-empty small {
  max-width: 100%;
  color: var(--t1068);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.explorer-ask-error {
  color: var(--t852);
  border-color: var(--t658);
  background: var(--t88);
  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 var(--t802);
  border-left: 3px solid var(--t459);
  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 var(--t1069);
  border-radius: 8px;
  color: var(--t1070);
  background: var(--t1071);
  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 var(--t1072);
  border-radius: 8px;
  background: var(--t1073);
}

.explorer-ask-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.explorer-ask-saved-heading span {
  color: var(--t331);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.explorer-ask-saved-heading strong {
  color: var(--t488);
  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 var(--t906);
  border-radius: 7px;
  background: var(--t1074);
  color: var(--t488);
  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: var(--t1075);
  background: var(--t845);
  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: var(--t1076);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.explorer-ask-saved-load small,
.explorer-ask-saved-load em {
  color: var(--t1064);
  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 var(--t841);
  border-radius: 7px;
  background: var(--t1074);
  color: var(--t1077);
  font-size: 18px;
  line-height: 1;
}

.explorer-ask-saved-delete:hover,
.explorer-ask-saved-delete:focus-visible {
  border-color: var(--t1078);
  background: var(--t1079);
  color: var(--t1080);
  outline: none;
}

.explorer-ask-boundary {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--t1046);
  color: var(--t1064);
  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: var(--t1081);
  background: var(--t1082);
  color: var(--t1083);
}

.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 var(--t1084);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--t1085), var(--t1086));
  box-shadow:
    0 20px 48px var(--t38),
    inset 0 1px 0 var(--t29);
  color: var(--t1087);
}

.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 var(--t1072);
  background: var(--t1088);
}

.pilot-observation-panel h2 {
  margin: 0;
  color: var(--t1089);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.pilot-observation-panel header p {
  margin: 5px 0 0;
  color: var(--t1090);
  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: var(--t1091);
  cursor: pointer;
}

.pilot-observation-close:hover,
.pilot-observation-close:focus-visible {
  border-color: var(--t1092);
  background: var(--t922);
  color: var(--t483);
}

.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: var(--t1093);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-observation-label em {
  color: var(--t1094);
  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 var(--t1095);
  border-radius: 999px;
  background: var(--t1096);
  color: var(--t1097);
  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: var(--t1098);
  color: var(--t1099);
}

.pilot-observation-pills button.is-selected,
.pilot-observation-reselect.is-active {
  border-color: var(--t1100);
  background: var(--t1101);
  box-shadow: inset 0 1px 0 var(--t1102);
  color: var(--t483);
}

.pilot-observation-time-row {
  gap: 7px;
}

.pilot-observation-selection {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--t1058);
  border-radius: 9px;
  background: var(--t1103);
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}

.pilot-observation-selection[data-selection-state="selecting"] {
  border-color: var(--t1104);
  background: var(--t1105);
}

.pilot-observation-time-row input,
.pilot-observation-field textarea {
  min-width: 0;
  border: 1px solid var(--t1106);
  border-radius: 7px;
  outline: none;
  background: var(--t1107);
  color: var(--t1108);
  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: var(--t1109);
  box-shadow: 0 0 0 2px var(--t1110);
}

.pilot-observation-time-row input.is-invalid {
  border-color: var(--t1111);
}

.pilot-observation-reselect {
  margin-left: auto;
  border-radius: 7px;
  white-space: nowrap;
}

.pilot-observation-selecting-prompt {
  margin-left: auto;
  color: var(--t1112);
  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: var(--t1113);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pilot-observation-clear:hover,
.pilot-observation-clear:focus-visible {
  background: var(--t922);
  color: var(--t1099);
}

.pilot-observation-clear:disabled {
  color: var(--t1114);
  cursor: default;
}

.pilot-observation-clear:disabled:hover {
  background: transparent;
}

.pilot-observation-field > small,
.pilot-observation-selection > small {
  color: var(--t1094);
  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 var(--t1115);
  border-radius: 8px;
  background: var(--t1116);
  color: var(--t1113);
  font-size: 11px;
  line-height: 1.4;
}

.pilot-observation-analysis-summary {
  display: grid;
  gap: 4px;
  border-color: var(--t1117);
  background: var(--t1118);
}

.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: var(--t1119);
}

.pilot-observation-analysis-summary strong {
  color: var(--t1120);
  font-size: 12px;
}

.pilot-observation-analysis-summary span {
  color: var(--t1121);
}

.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 var(--t861);
}

.pilot-observation-saved-heading {
  justify-content: space-between;
  padding: 6px 2px 2px;
  color: var(--t1113);
  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: var(--t1082);
  color: var(--t1122);
}

.pilot-observation-saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: stretch;
  border: 1px solid var(--t1123);
  border-radius: 7px;
  background: var(--t1124);
}

.pilot-observation-saved-item.is-selected {
  border-color: var(--t1125);
  background: var(--t1126);
}

.pilot-observation-saved-item > button:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 9px;
  border: 0;
  background: transparent;
  color: var(--t1087);
  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: var(--t1127);
  font-size: 10px;
}

.pilot-observation-saved-delete {
  width: 32px;
  border: 0;
  border-left: 1px solid var(--t1072);
  background: transparent;
  color: var(--t1128);
  cursor: pointer;
}

.pilot-observation-saved-delete:hover,
.pilot-observation-saved-delete:focus-visible {
  background: var(--t1129);
  color: var(--t1130);
}

.pilot-observation-panel > footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--t1072);
  background: var(--t1131);
}

.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: var(--t1127);
  font-size: 10px;
  line-height: 1.3;
}

.pilot-observation-panel[data-status="error"] .pilot-observation-save-status {
  color: var(--t1130);
}

.pilot-observation-panel[data-status="saved"] .pilot-observation-save-status {
  color: var(--t1132);
}

@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 var(--t1133);
  border-radius: 6px;
  background: var(--t1134);
  box-shadow: 0 12px 28px var(--t64);
  color: var(--t535);
  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: var(--t536);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.explorer-panel .chart-actions .secondary-action.is-active {
  border-color: var(--t1135);
  background: var(--t241);
  color: var(--t1136);
}

.special-tests-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--t841);
  border-radius: 8px;
  background: var(--t1137);
}

.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 var(--t906);
  border-radius: 8px;
  background: var(--t147);
  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: var(--t1138);
  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: var(--t1139);
  outline: none;
}

.special-test-engine-selector-inner button.is-active {
  border-color: var(--t1140);
  background: var(--t1141);
  color: var(--t1136);
}

.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 var(--t1072);
  border-radius: 7px;
  background: var(--t1142);
}

.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 var(--t1072);
  border-radius: 7px;
  background: var(--t1142);
}

.gami-procedure-controls-inner header {
  display: flex;
  align-items: center;
  min-height: 18px;
  min-width: 0;
}

.gami-procedure-controls-inner header span {
  color: var(--t331);
  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: var(--t1003);
  font-size: 12px;
  font-weight: 800;
}

.special-test-check[hidden] {
  display: none;
}

.special-test-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--t1143);
}

.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 var(--t953);
  border-radius: 7px;
  background: var(--t86);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0 10px;
}

.special-test-field input:focus-visible {
  border-color: var(--t1133);
  box-shadow: 0 0 0 3px var(--t1144);
  outline: none;
}

.special-test-field input.is-invalid {
  border-color: var(--t1145);
  background: var(--t88);
}

.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: var(--t1146);
  background: var(--t1147);
  color: var(--t1148);
  box-shadow: inset 0 1px 0 var(--t1044);
}

#gamiMarkSweepButton:hover,
#gamiMarkSweepButton:focus-visible {
  border-color: var(--t1149);
  background: var(--t1150);
}

#gamiSaveSweepButton:not(:disabled) {
  border-color: var(--t1062);
  background: var(--t1);
  color: var(--t1063);
}

#gamiClearSweepButton {
  min-width: 30px;
  width: 30px;
  padding: 0;
  color: var(--t1077);
}

#gamiClearSweepButton:hover,
#gamiClearSweepButton:focus-visible {
  border-color: var(--t1078);
  background: var(--t1079);
  color: var(--t1080);
}

.special-test-actions .secondary-action.is-active {
  border-color: var(--t1133);
  background: var(--t1151);
  color: var(--t1136);
}

#gamiMarkSweepButton.is-active {
  border-color: var(--t1152);
  background: linear-gradient(180deg, var(--t1153), var(--t1154));
  box-shadow:
    0 0 0 2px var(--t1155),
    0 0 18px var(--t1155),
    inset 0 1px 0 var(--t484);
  color: var(--t1156);
}

#gamiMarkSweepButton.is-active svg {
  stroke-width: 2.4;
}

#gamiMarkSweepButton.is-active:hover,
#gamiMarkSweepButton.is-active:focus-visible {
  border-color: var(--t1157);
  background: linear-gradient(180deg, var(--t1158), var(--t1159));
}

.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: var(--t1160);
}

.special-test-save-status.is-error {
  color: var(--t1161);
}

.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: var(--t1162);
  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 var(--t861);
  border-radius: 7px;
  background: var(--t1073);
}

.special-test-saved-item.is-selected {
  border-color: var(--t1163);
  background: var(--t1164);
}

.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 var(--t823);
  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: var(--t1039);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.special-test-saved-item span {
  margin-top: 3px;
  color: var(--t163);
  font-size: 10px;
  font-weight: 750;
}

.special-test-saved-delete {
  width: 28px;
  height: 28px;
  border: 1px solid var(--t1165);
  border-radius: 999px;
  background: var(--t88);
  color: var(--t1166);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.special-test-saved-delete:hover,
.special-test-saved-delete:focus-visible {
  border-color: var(--t1167);
  background: var(--t851);
  color: var(--t1168);
}

.special-test-empty {
  margin: 0;
  color: var(--t318);
  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: var(--t1039);
  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 var(--t841);
  border-radius: 8px;
  background: var(--t12);
  box-shadow: inset 0 1px 0 var(--t168);
}

.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: var(--t1169);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.special-test-spread-hero strong {
  display: block;
  margin-top: 3px;
  color: var(--t80);
  font-size: 28px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.special-test-spread-hero small {
  margin-top: 6px;
  color: var(--t1138);
  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: var(--t1170);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.special-test-spread-hero.is-good {
  border-color: var(--t1171);
  background: linear-gradient(135deg, var(--t1172), var(--t1173));
}

.special-test-spread-hero.is-good b {
  background: var(--t1174);
  color: var(--t1175);
}

.special-test-spread-hero.is-watch {
  border-color: var(--t1176);
  background: linear-gradient(135deg, var(--t1177), var(--t1178));
}

.special-test-spread-hero.is-watch b {
  background: var(--t1179);
  color: var(--t1180);
}

.special-test-spread-hero.is-review {
  border-color: var(--t687);
  background: linear-gradient(135deg, var(--t1181), var(--t1182));
}

.special-test-spread-hero.is-review b {
  background: var(--t1183);
  color: var(--t1184);
}

.special-test-spread-hero.is-muted {
  border-color: var(--t841);
  background: var(--t147);
}

.special-test-spread-hero.is-muted b {
  background: var(--t1185);
  color: var(--t1138);
}

.special-test-spread-strip {
  margin-bottom: 8px;
  padding: 8px 10px 5px;
  border: 1px solid var(--t861);
  border-radius: 8px;
  background: var(--t1073);
  box-shadow: inset 0 1px 0 var(--t144);
}

.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: var(--t1186);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.special-test-spread-strip header small {
  color: var(--t1187);
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.special-test-spread-strip svg {
  display: block;
  width: 100%;
  height: auto;
}

.lean-find-hold line {
  stroke: var(--teal);
}

.lean-find-hold polygon,
.lean-find-hold text {
  fill: var(--teal);
}

.lean-find-bars .lean-find-bar {
  fill: var(--teal);
  opacity: 0.82;
}

.lean-find-bars .lean-find-bar.is-short {
  fill: var(--muted);
  opacity: 0.7;
}

.lean-find-bars .lean-find-threshold {
  stroke: var(--amber);
}

.lean-find-bars .lean-find-threshold-label {
  fill: var(--amber);
}

.lean-find-bars .lean-find-bar-label {
  fill: var(--muted);
}

.lean-find-bars .lean-find-bar-value {
  fill: var(--text);
}

.special-test-result-summary > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--t906);
  border-radius: 7px;
  background: var(--t147);
}

.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 var(--t1188);
  border-radius: 7px;
  background: var(--t1189);
  color: var(--t151);
  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 var(--t906);
  border-radius: 999px;
  background: var(--t1142);
  color: var(--t1169);
  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: var(--t1190);
  background: var(--t1191);
  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: var(--t1192);
  background: var(--t845);
  color: var(--t1193);
}

.gami-procedure-cue-row .is-pass i {
  border-color: var(--t1194);
  background: var(--t1195);
  color: var(--t1196);
}

.gami-procedure-cue-row .is-open i {
  border-color: var(--t1106);
  background: var(--t1197);
  color: var(--t1198);
}

.gami-procedure-cue-row .is-open:hover i,
.gami-procedure-cue-row .is-open:focus-visible i {
  background: var(--t1195);
  color: var(--t1136);
}

.special-test-exceptions {
  min-width: 0;
  min-height: 104px;
  padding: 9px 10px;
  border: 1px solid var(--t861);
  border-radius: 7px;
  background: var(--t1073);
}

.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: var(--t1138);
  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 var(--t906);
  border-radius: 7px;
  background: var(--t147);
}

.special-test-metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--t1039);
  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: var(--t1199);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.special-test-metric-card.is-good {
  border-color: var(--t655);
}

.special-test-metric-card.is-watch {
  border-color: var(--t683);
}

.special-test-metric-card.is-review {
  border-color: var(--t658);
}

.special-test-diagnostic-readout {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  padding: 9px 10px;
  border: 1px solid var(--t1200);
  border-radius: 7px;
  background: linear-gradient(180deg, var(--t1201), var(--t1202));
}

.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: var(--t1039);
  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: var(--t1203);
}

.special-test-result-summary.is-watch > div {
  border-color: var(--t1204);
}

.special-test-result-summary.is-review > div {
  border-color: var(--t1205);
}

.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: var(--t1003);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.special-test-diagnostic-readout dd {
  margin: 2px 0 0;
  color: var(--t1003);
  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 var(--t1072);
  border-radius: 7px;
}

.special-test-series-table + .special-test-cylinder-peak-table {
  margin-top: 12px;
}

.special-test-cylinder-peak-table {
  border-top-color: var(--t1206);
  box-shadow: inset 0 1px 0 var(--t1207);
}

.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: var(--t1073);
  color: var(--t1003);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.special-test-cylinder-peak-table.has-tit [role="row"] {
  grid-template-columns: 0.55fr 1fr 1fr 1.1fr 1fr minmax(90px, 1.2fr);
}

.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: var(--t1208);
  outline: none;
}

.special-test-peak-table [data-gami-series-index].is-selected {
  background: var(--t1209);
  box-shadow: inset 3px 0 0 var(--t1210);
}

.special-test-peak-table .is-clear [role="cell"]:last-child {
  color: var(--t1211);
}

.special-test-peak-table .is-limited [role="cell"]:last-child {
  color: var(--t1212);
}

.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 var(--t953);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t1213), var(--t1214)),
    var(--t969);
}

.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: var(--t488);
  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 var(--t846);
  border-radius: 999px;
  background: var(--t499);
  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: var(--t853);
  background: var(--t854);
  box-shadow: 0 0 0 1px var(--t855), 0 0 16px var(--t856);
  outline: none;
}

.explorer-annunciation-chip.is-danger {
  color: var(--t852);
  border-color: var(--t857);
  background: var(--t54);
}

.explorer-annunciation-chip.is-danger:hover,
.explorer-annunciation-chip.is-danger:focus-visible,
.explorer-annunciation-chip.is-danger.is-selected {
  border-color: var(--t858);
  background: var(--t102);
  box-shadow: 0 0 0 1px var(--t859), 0 0 16px var(--t860);
}

.explorer-annunciation-empty,
.explorer-annunciation-empty-chip {
  color: var(--t318);
}

.explorer-annunciation-empty {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.explorer-annunciation-empty-chip {
  display: inline-flex;
  align-items: center;
  border-color: var(--t861);
  background: var(--t593);
}

.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 var(--t683);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t197), var(--t864) 45%),
    var(--t865);
  box-shadow: inset 3px 0 0 var(--t866), 0 16px 32px var(--t278);
  animation: playback-alert-slide-in 220ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.explorer-annunciation-detail.is-danger {
  border-color: var(--t867);
  background:
    linear-gradient(90deg, var(--t868), var(--t864) 45%),
    var(--t865);
  box-shadow: inset 3px 0 0 var(--t869), 0 16px 32px var(--t278);
}

.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: var(--t1039);
  font-size: 15px;
  line-height: 1.15;
}

.explorer-annunciation-detail small {
  display: block;
  margin-top: 4px;
  color: var(--t1215);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.explorer-annunciation-detail > p {
  margin: 0;
  color: var(--t488);
  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: var(--t1135);
  background: var(--t241);
  color: var(--t1136);
}

/* 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 var(--t1216);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t147), var(--t1217)),
    var(--t517);
  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), var(--t721)),
    var(--t1218);
}

.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 var(--t686);
  border-radius: 999px;
  background: var(--t197);
  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: var(--t1219);
  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 var(--t1220);
  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: var(--t229);
  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 var(--t1221);
}

.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: var(--t1222);
  font-size: 13px;
  line-height: 1.4;
}

.finding-evidence {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--t489);
  border-radius: 8px;
  background: var(--t355);
}

.finding-evidence[hidden] {
  display: none;
}

.finding-evidence.is-collapsed {
  gap: 0;
  padding: 0;
  border-color: var(--t893);
  background: var(--t212);
}

.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: var(--t1223);
  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 var(--t1224);
  border-radius: 8px;
  background: var(--t1225);
}

.operating-context-event.is-primary {
  border-color: color-mix(in srgb, var(--teal) 48%, var(--t11));
  background: color-mix(in srgb, var(--teal) 10%, var(--t1226));
}

/* Mixture drill-down window options: real buttons that look like the event
   articles around them, with the shown window carrying the teal primary tone. */
.mixture-window-option {
  width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mixture-window-option:hover,
.mixture-window-option:focus-visible {
  border-color: color-mix(in srgb, var(--teal) 48%, var(--t11));
}

.mixture-window-option:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.mixture-window-list .mixture-window-hint {
  margin: -6px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.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 var(--t1205);
  border-radius: 8px;
  background: var(--t197);
}

.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: var(--t226);
  background: var(--t499);
  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: var(--t1227);
}

.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: var(--t1228);
}

.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: var(--t1229);
}

.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: var(--t514);
  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 var(--t1230);
  border-left: 4px solid var(--t1231);
  border-radius: 8px;
  background: var(--t1232);
}

.trend-plan-gate[hidden] {
  display: none;
}

.trend-plan-gate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--t1233);
  border-radius: 8px;
  color: var(--t1234);
  background: var(--t1235);
}

.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: var(--t1234);
  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: var(--t1236);
  font-size: 27px;
  line-height: 1.15;
}

.trend-plan-gate-copy p {
  color: var(--t1237);
  font-size: 16px;
  line-height: 1.5;
}

.trend-plan-gate-copy small {
  color: var(--t1238);
  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 var(--t706);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--t355), var(--t1239) 42%, var(--t1240)),
    var(--t476);
  box-shadow:
    inset 0 1px 0 var(--t1044),
    0 20px 48px var(--t127);
}

.trend-verdict-band {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--t138);
  border-radius: 8px;
  background: var(--t1241);
}

.trend-verdict-band.status-green {
  border-color: var(--t1242);
  background: linear-gradient(135deg, var(--t1243), var(--t1244) 58%);
}

.trend-verdict-band.status-amber {
  border-color: var(--t1245);
  background: linear-gradient(135deg, var(--t1246), var(--t1247) 46%);
}

.trend-verdict-band.status-red {
  border-color: var(--t1248);
  background: linear-gradient(135deg, var(--t1249), var(--t1247) 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 var(--t138);
  border-radius: 8px;
  background: var(--t1241);
}

.trend-verdict-ribbon.status-green {
  border-color: var(--t655);
  background: var(--t1250);
}

.trend-verdict-ribbon.status-amber {
  border-color: var(--t1205);
  background: var(--t1251);
}

.trend-verdict-ribbon.status-red {
  border-color: var(--t1252);
  background: var(--t1253);
}

.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 var(--t85);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--t1254), var(--t1255) 58%),
    var(--t1256);
}

.trend-ai-summary-card.status-ready {
  position: relative;
  gap: 0;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border-color: var(--t203);
  background:
    linear-gradient(90deg, var(--t1257), transparent 26%, transparent 72%, var(--t1258)),
    linear-gradient(112deg, var(--t1259), var(--t1260) 44%, var(--t1261));
  box-shadow:
    inset 0 1px 0 var(--t1044),
    0 18px 34px var(--t30);
}

.trend-ai-summary-card.status-ready::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--t1262), var(--t1263) 55%, var(--t1264));
  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, var(--t1265), var(--t1266) 58%, var(--t1267));
}

.trend-ai-summary-card.status-error {
  border-color: var(--t658);
}

.trend-ai-summary-card.status-limit {
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: var(--t1268);
}

.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 var(--t1269);
  color: var(--t1270);
  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 var(--t79);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--t1031), var(--t1271)),
    var(--t1272);
  color: var(--t1273);
  box-shadow:
    inset 0 1px 0 var(--t1010),
    0 0 20px var(--t791);
}

.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: var(--t151);
  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: var(--t1274);
  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, var(--t355), transparent 68%),
    linear-gradient(180deg, var(--t684), 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, var(--t355), transparent 68%),
    linear-gradient(180deg, var(--t684), transparent 52%);
}

.trend-ai-summary-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  color: var(--t1274);
  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: var(--t150);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.18;
}

.trend-ai-summary-overview {
  display: grid;
  gap: 8px;
  margin: 0;
  max-width: 62ch;
  color: var(--t304);
  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: var(--t1275);
  box-shadow: 0 0 10px var(--t1276);
}

.trend-ai-summary-briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border-left: 1px solid var(--t138);
}

.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 var(--t1277);
}

.trend-ai-summary-briefing-section.is-positive {
  color: var(--t1278);
}

.trend-ai-summary-briefing-section.is-positive::before {
  background: linear-gradient(145deg, var(--t1279), transparent 48%);
}

.trend-ai-summary-briefing-section.is-watch {
  color: var(--t1280);
}

.trend-ai-summary-briefing-section.is-watch::before {
  background: linear-gradient(145deg, var(--t219), transparent 50%);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch {
  color: var(--t1281);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch::before {
  background: linear-gradient(145deg, var(--t1282), transparent 52%);
}

.trend-ai-summary-briefing-section.is-focus {
  color: var(--t1283);
}

.trend-ai-summary-briefing-section.is-focus::before {
  background: linear-gradient(145deg, var(--t1), 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: var(--t1284);
  box-shadow:
    inset 0 1px 0 var(--t29),
    0 0 18px var(--t1285);
}

.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: var(--t136);
}

.trend-ai-summary-lane-count strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--t138);
  border-radius: 10px;
  background: var(--t1286);
  color: var(--t150);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 var(--t29);
}

.trend-ai-summary-briefing-section.is-positive .trend-ai-summary-lane-count strong {
  border-color: var(--t1287);
  background: var(--t1279);
}

.trend-ai-summary-briefing-section.is-watch .trend-ai-summary-lane-count strong {
  border-color: var(--t1288);
  background: var(--t219);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-briefing-section.is-watch .trend-ai-summary-lane-count strong {
  border-color: var(--t658);
  background: var(--t1289);
}

.trend-ai-summary-briefing-section.is-focus .trend-ai-summary-lane-count strong {
  border-color: var(--t544);
  background: var(--t1);
}

.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: var(--t1290);
  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 var(--t83);
  outline-offset: 3px;
}

.trend-ai-summary-briefing-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--t1291);
}

.trend-ai-summary-briefing-item.is-positive .trend-ai-summary-briefing-dot {
  background: var(--t1292);
}

.trend-ai-summary-detail-item.is-positive .trend-ai-summary-briefing-dot {
  background: var(--t1293);
}

.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: var(--t1294);
}

.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: var(--t1295);
}

.trend-ai-summary-detail-item.is-focus .trend-ai-summary-briefing-dot {
  background: var(--t1296);
}

.trend-ai-summary-briefing-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trend-ai-summary-briefing-label {
  color: var(--t1297);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.trend-ai-summary-briefing-value {
  color: var(--t304);
  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: var(--t1298);
  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 var(--t1299);
}

.trend-ai-summary-lane-more.is-positive {
  border-top-color: var(--t1300);
}

.trend-ai-summary-lane-more.is-watch {
  border-top-color: var(--t1301);
}

.trend-ai-summary-lane-more.is-focus {
  border-top-color: var(--t85);
}

.trend-ai-summary-card.tone-red .trend-ai-summary-lane-more.is-watch {
  border-top-color: var(--t1302);
}

.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: var(--t150);
}

.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: var(--t1297);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.trend-ai-summary-detail-value {
  color: var(--t304);
  font-size: 11px;
  font-weight: 690;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.trend-ai-summary-detail-text {
  color: var(--t1274);
  font-size: 12px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.trend-ai-summary-boundary {
  max-width: 72ch;
  margin: 0;
  color: var(--t220);
  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 var(--t1277);
  border-radius: 8px;
  background: var(--t1286);
}

.trend-ai-summary-evidence.is-positive {
  border-color: var(--t1303);
}

.trend-ai-summary-evidence span {
  overflow: hidden;
  color: var(--t151);
  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: var(--t165);
  font-size: 12.5px;
  line-height: 1.38;
}

.trend-ai-summary-evidence-value {
  color: var(--t1304);
  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 var(--t1305);
  border-radius: 8px;
  background: var(--t1251);
}

.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 var(--t623);
  border-radius: 8px;
  background: var(--t1306);
}

.trend-verdict-exception[hidden] {
  display: none;
}

.trend-verdict-exception.status-amber {
  border-color: var(--t1305);
  background: var(--t1251);
}

.trend-verdict-exception.status-red {
  border-color: var(--t53);
  background: var(--t1253);
}

.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 var(--t138);
  border-radius: 8px;
  background: var(--t1035);
  box-shadow: 0 10px 24px var(--t167);
}

.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 var(--t1277);
  border-radius: 8px;
  background: var(--t1241);
  color: var(--text);
  cursor: pointer;
}

.trend-flight-card:hover,
.trend-flight-card:focus-visible {
  border-color: var(--t1307);
  background: var(--t201);
  outline: none;
}

.trend-flight-card.status-amber {
  border-color: var(--t683);
}

.trend-flight-card.status-red {
  border-color: var(--t571);
}

.trend-flight-card.is-focus-row {
  box-shadow: inset 3px 0 0 var(--t1308);
}

.trend-flight-card.is-return-target {
  border-color: var(--t1309);
  box-shadow: 0 0 0 2px var(--t1310);
}

.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 var(--t623);
  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 var(--t97);
  border-radius: 8px;
  background: var(--t1311);
  text-align: center;
}

.trend-empty-state-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--t1312);
  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 var(--t623);
    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 var(--t1277);
  }

  .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 var(--t623);
  border-radius: 8px;
  background: var(--t1313);
}

.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 var(--t706);
  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: var(--t1314);
  flex: none;
}

.trend-rail-stable summary:hover {
  border-color: var(--t524);
  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: var(--t1315);
  background: var(--t1316);
}

.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: var(--t1317);
}

.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: var(--t1318);
  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: var(--t1319);
  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: var(--t1320);
}

.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: var(--t558);
}

.trend-status-mix .is-watch,
.trend-overall-mix-bar .is-watch {
  background: var(--t1321);
}

.trend-status-mix .is-profile,
.trend-overall-mix-bar .is-profile {
  background: var(--t560);
}

.trend-status-mix .is-alert,
.trend-overall-mix-bar .is-alert {
  background: var(--t1322);
}

.trend-status-mix .is-limited,
.trend-overall-mix-bar .is-limited {
  background: var(--t1323);
}

.trend-status-counts {
  overflow: hidden;
  color: var(--t1324);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t147);
}

.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: var(--t1325);
  color: var(--t8);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t1326);
  color: var(--t1327);
  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 var(--t623);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t682), transparent 70%),
    var(--t1328);
}

.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 var(--t623);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1329), transparent 70%),
    var(--t1328);
}

.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 var(--t1330);
  border-radius: 8px;
  background: var(--t1331);
}

.trend-heat-owner-note strong {
  color: var(--t1332);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-heat-owner-note span {
  min-width: 0;
  color: var(--t41);
  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 var(--t1333);
  border-radius: 8px;
  background: var(--t1334);
}

.trend-cooling-owner-note strong {
  color: var(--t1332);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cooling-owner-note span {
  min-width: 0;
  color: var(--t41);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t1335);
}

.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 var(--t1299);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--t1336), var(--t1337)),
    var(--t1338);
}

.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 var(--t1277);
  border-radius: 8px;
  background: var(--t1339);
}

.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 var(--t623);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, var(--t1340), transparent 54%),
    var(--t1341);
  text-align: center;
}

.trend-overall-score-dial.status-green {
  border-color: var(--t1342);
  background:
    radial-gradient(circle at 50% 36%, var(--t1174), transparent 54%),
    var(--t1341);
}

.trend-overall-score-dial.status-amber {
  border-color: var(--t846);
  background:
    radial-gradient(circle at 50% 36%, var(--t1343), transparent 54%),
    var(--t1341);
}

.trend-overall-score-dial.status-red {
  border-color: var(--t867);
  background:
    radial-gradient(circle at 50% 36%, var(--t991), transparent 54%),
    var(--t1341);
}

.trend-overall-score-dial span {
  color: var(--t1319);
  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 var(--t1277);
  border-radius: 8px;
  background: var(--t1344);
}

.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 var(--t623);
  border-radius: 8px;
  background: var(--t1345);
}

.trend-overall-score-pill b {
  color: var(--t1319);
  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: var(--t1346);
  background: var(--t1347);
}

.trend-overall-score-pill.score-amber {
  border-color: var(--t1348);
  background: var(--t1349);
}

.trend-overall-score-pill.score-red {
  border-color: var(--t1252);
  background: var(--t1350);
}

.trend-overall-mix-bar {
  height: 20px;
  overflow: hidden;
  border: 1px solid var(--t1299);
  border-radius: 999px;
  background: var(--t1351);
}

.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 var(--t1277);
  border-radius: 8px;
  background: var(--t1345);
  color: var(--text);
  text-align: left;
}

.trend-overall-mix-card.is-stable {
  border-color: var(--t1287);
}

.trend-overall-mix-card.is-watch {
  border-color: var(--t1348);
}

.trend-overall-mix-card.is-profile {
  border-color: var(--t683);
}

.trend-overall-mix-card.is-alert {
  border-color: var(--t1252);
}

.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: var(--t1324);
  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 var(--t1299);
}

.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 var(--t1299);
}

.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: var(--t492) !important;
  background: var(--t155) !important;
  box-shadow: inset 0 0 0 1px var(--t51);
  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: var(--t1352);
  stroke: var(--t1353);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-segment {
  stroke: var(--t1354);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-jump {
  stroke: var(--t1355);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sensor-trust-label {
  fill: var(--t1356);
  font-size: 12px;
  font-weight: 800;
}

.sensor-trust-label.is-worst {
  fill: var(--t1357);
}

.sensor-trust-phase {
  opacity: 0.55;
}

.sensor-trust-phase-label {
  fill: var(--t1358);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sensor-trust-axis-note {
  fill: var(--t1359);
  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: var(--t1360);
  border: 1px solid var(--t1361);
}

.sensor-trust-legend-tick {
  width: 3px !important;
  height: 14px !important;
  border-radius: 1px;
  background: var(--t1362);
}

.sensor-trust-clear {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--t1363);
  border-radius: 14px;
  background: var(--t1364);
}

.sensor-trust-clear-mark {
  font-size: 28px;
  line-height: 1;
  color: var(--t1365);
  font-weight: 900;
}

.sensor-trust-clear-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sensor-trust-clear-body > strong {
  font-size: 15px;
  color: var(--t1366);
}

.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: var(--t1367);
}

.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 var(--t1299);
  border-radius: 8px;
  background: var(--t1368);
}

.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: var(--t41);
  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 var(--t1369);
}

.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: var(--t1370);
}

.trend-cooling-margin-threshold-legend .is-warm {
  color: var(--t1371);
}

.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%, var(--t623));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-accent) 14%, transparent), transparent 64%),
    var(--t1372);
}

.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: var(--t41);
  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 var(--t723);
  border-radius: 7px;
  background: var(--t1373);
}

.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: var(--t1324);
  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: var(--t1320);
}

.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: var(--t1374);
  stroke-width: 3px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 8.5px;
  font-weight: 900;
}

.trend-heat-total-label {
  fill: var(--t1375);
  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: var(--t1376);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-cylinder-label {
  fill: var(--t1356);
  font-size: 13px;
  font-weight: 950;
}

.trend-svg-plot-bg {
  fill: var(--t1377);
  stroke: var(--t1378);
}

.trend-svg-axis,
.trend-svg-tick {
  stroke: var(--t1379);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-svg-grid {
  stroke: var(--t1380);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-svg-axis-label,
.trend-svg-note {
  fill: var(--t1359);
  font-size: 12px;
  font-weight: 800;
}

.trend-distribution-callout {
  fill: var(--t1381);
  stroke: var(--t1374);
  stroke-width: 2px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 11px;
  font-weight: 700;
}

.trend-distribution-callout.is-peak {
  fill: var(--t1382);
}

.trend-distribution-callout.is-warm-tail {
  fill: var(--t1383);
}

.trend-distribution-leader {
  opacity: 0.78;
  stroke: var(--t1356);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.trend-distribution-leader.is-peak {
  opacity: 0.45;
  stroke: var(--t1384);
}

.trend-distribution-leader.is-warm-tail {
  opacity: 0.88;
  stroke: var(--t1385);
}

.trend-distribution-marker {
  fill: var(--t1356);
  stroke: var(--t1374);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 6px var(--t1386));
  vector-effect: non-scaling-stroke;
}

.trend-distribution-marker.is-warm-tail {
  fill: var(--t1385);
  filter: drop-shadow(0 0 7px var(--t1387));
}

.trend-distribution-marker-legend rect {
  fill: var(--t1388);
  stroke: var(--t1389);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-distribution-marker-legend text {
  fill: var(--t1356);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.trend-distribution-marker-legend text.is-warm-tail {
  fill: var(--t1390);
}

.trend-threshold-line {
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.trend-threshold-line.is-green {
  stroke: var(--t1391);
}

.trend-threshold-line.is-amber {
  stroke: var(--t1392);
}

.trend-threshold-line.is-red {
  stroke: var(--t1393);
}

.trend-flight-dot {
  stroke: var(--t1394);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-range-whisker line {
  stroke: var(--t1395);
  stroke-width: 1.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trend-flight-dot.is-strongest {
  stroke: var(--t1396);
  stroke-width: 3.2;
}

.trend-flight-dot.status-green {
  fill: var(--t1397);
}

.trend-flight-dot.status-amber {
  fill: var(--t1398);
}

.trend-flight-dot.status-red {
  fill: var(--t1399);
}

.trend-flight-dot.status-muted {
  fill: var(--t1400);
}

.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: var(--t1401);
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px var(--t1402));
}

.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 var(--t1403));
}

.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 var(--t1404));
}

/* 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: var(--t1405);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-band.status-amber {
  fill: var(--t1406);
  stroke: var(--t1407);
}

.trend-electrical-band.status-red {
  fill: var(--t1408);
  stroke: var(--t1409);
}

.trend-electrical-band:hover,
.trend-electrical-band:focus-visible,
.trend-electrical-band.is-selected {
  outline: none;
  stroke: var(--t1401);
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px var(--t1402));
}

.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 var(--t1403));
}

.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 var(--t1404));
}

.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: var(--t1410);
  stroke-width: 1;
}

.trend-electrical-zone.is-watch {
  fill: var(--t1411);
}

.trend-electrical-zone.is-review {
  fill: var(--t1412);
}

.trend-electrical-limit-line {
  stroke: var(--t1413);
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-median-tick {
  stroke: var(--t1414);
  stroke-linecap: round;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 5px var(--t1415));
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.trend-electrical-median-tick.is-selected {
  stroke-width: 3;
}

.trend-electrical-legend text {
  fill: var(--t1416);
  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 var(--t1417);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1418), transparent 62%),
    var(--t1419);
}

.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 var(--t1242);
  border-radius: 999px;
  background: var(--t1420);
}

.trend-electrical-selected-status.status-amber {
  border-color: var(--t1421);
  background: var(--t1422);
}

.trend-electrical-selected-status.status-red {
  border-color: var(--t1423);
  background: var(--t1424);
}

.trend-electrical-selected-status i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t558);
}

.trend-electrical-selected-status.status-amber i {
  background: var(--t1425);
}

.trend-electrical-selected-status.status-red i {
  background: var(--t1322);
}

.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 var(--t1299);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  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 var(--t1426);
  border-radius: 8px;
  background: var(--t1427);
}

.trend-electrical-owner-note strong {
  color: var(--t1428);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-electrical-owner-note span {
  min-width: 0;
  color: var(--t41);
  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: var(--t1099);
  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 var(--t1417);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1418), transparent 62%),
    var(--t1419);
}

.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 var(--t1242);
  border-radius: 999px;
  background: var(--t1420);
}

.trend-oil-pressure-selected-median.status-amber {
  border-color: var(--t1421);
  background: var(--t1422);
}

.trend-oil-pressure-selected-median.status-red {
  border-color: var(--t1423);
  background: var(--t1424);
}

.trend-oil-pressure-selected-median i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t558);
}

.trend-oil-pressure-selected-median.status-amber i {
  background: var(--t1425);
}

.trend-oil-pressure-selected-median.status-red i {
  background: var(--t1322);
}

.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 var(--t1299);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  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: var(--t1429);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-sensor-flight-block.status-green {
  stroke: var(--t1430);
  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: var(--t1431);
  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 var(--t1432);
  border-radius: 4px;
  cursor: pointer;
}

.trend-sensor-flight-cell.status-green {
  border-color: var(--t1433);
  background: var(--t1434);
}

.trend-sensor-flight-cell.status-amber {
  background: linear-gradient(180deg, var(--t1435), var(--t1436) 42%, var(--t1437));
}

.trend-sensor-flight-cell.status-red {
  background: linear-gradient(180deg, var(--t1438), var(--t1439) 42%, var(--t1440));
}

.trend-sensor-flight-cell:hover,
.trend-sensor-flight-cell:focus-visible,
.trend-sensor-flight-cell.is-selected {
  outline: 2px solid var(--t1441);
  outline-offset: 0;
  box-shadow: 0 0 8px var(--t1442);
}

.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: var(--t1443);
}

.trend-sensor-cell-glyph.is-red {
  color: var(--t1444);
}

/* 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: var(--t1431);
  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 var(--t1277);
  border-radius: 7px;
  background: var(--t1445);
  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: var(--t1446);
  box-shadow: 0 0 8px var(--t1447);
}

.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: var(--t1443);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-sensor-flag-chip.status-red {
  border-color: var(--t1448);
}

.trend-sensor-flag-chip.status-red span {
  color: var(--t1444);
}

.trend-sensor-flag-chip.is-clean {
  border-color: var(--t1449);
}

.trend-sensor-flag-chip.is-clean strong {
  color: var(--t1450);
}

.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 var(--t1451);
  border-radius: 8px;
  background: var(--t1329);
}

.trend-sensor-owner-note strong {
  color: var(--t1452);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-sensor-owner-note span {
  min-width: 0;
  color: var(--t41);
  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 var(--t1453);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1454), transparent 68%),
    var(--t1445);
}

.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 var(--t544);
  border-radius: 999px;
  color: var(--t41);
  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: var(--t1455);
  box-shadow: 0 0 8px var(--t1018);
  color: var(--t1039);
}

.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 var(--t1277);
  border-radius: 7px;
  background: var(--t1368);
}

.trend-sensor-channel-list span {
  overflow: hidden;
  color: var(--t1443);
  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 var(--t1426);
  border-radius: 8px;
  background: var(--t1427);
}

.trend-egt-balance-owner-note strong {
  color: var(--t1428);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-egt-balance-owner-note span {
  min-width: 0;
  color: var(--t41);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-egt-balance-reference-line {
  opacity: 0.34;
  stroke: var(--t1456);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-egt-balance-minor-reference-line {
  opacity: 0.22;
  stroke: var(--t1457);
  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: var(--t1099);
  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: var(--t1370);
}

.trend-egt-balance-legend .is-compare {
  color: var(--t1371);
}

.trend-egt-balance-line {
  fill: none;
  stroke: var(--t1458);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px var(--t1459));
}

.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: var(--t1401);
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px var(--t1402));
}

.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 var(--t1403));
}

.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 var(--t1404));
}

.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 var(--t1417);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1418), transparent 62%),
    var(--t1419);
}

.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 var(--t1242);
  border-radius: 999px;
  background: var(--t1420);
}

.trend-egt-balance-selected-spread.status-amber {
  border-color: var(--t1421);
  background: var(--t1422);
}

.trend-egt-balance-selected-spread.status-red {
  border-color: var(--t1423);
  background: var(--t1424);
}

.trend-egt-balance-selected-spread i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t558);
}

.trend-egt-balance-selected-spread.status-amber i {
  background: var(--t1425);
}

.trend-egt-balance-selected-spread.status-red i {
  background: var(--t1322);
}

.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 var(--t1299);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  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: var(--t1374);
  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: var(--t1460);
}

.trend-egt-balance-band-label.is-compare,
.trend-egt-balance-callout.is-latest {
  fill: var(--t1461);
}

.trend-egt-balance-callout {
  fill: var(--t1462);
}

.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 var(--t1463);
  border-radius: 8px;
  background: var(--t1464);
}

.trend-induction-owner-note strong {
  color: var(--t1371);
  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: var(--t1465);
}

.trend-induction-legend .is-score i {
  background: var(--t1466);
}

.trend-induction-legend .is-cue i {
  background: var(--t1425);
}

.trend-induction-score-line {
  fill: none;
  stroke: var(--t1458);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px var(--t1467));
}

.trend-induction-cue-bar {
  opacity: 0.82;
  fill: var(--t1398);
}

.trend-induction-cue-bar.status-red {
  fill: var(--t1399);
}

.trend-induction-cue-bar.status-green {
  fill: var(--t1397);
}

.trend-induction-cue-axis {
  stroke: var(--t1468);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-induction-cue-axis-label,
.trend-induction-cue-axis-title {
  fill: var(--t1461);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-induction-cue-axis-label {
  fill: var(--t1469);
}

.trend-induction-dot {
  cursor: pointer;
}

.trend-induction-dot:hover,
.trend-induction-dot:focus-visible,
.trend-induction-dot.is-selected {
  outline: none;
  stroke: var(--t1401);
  stroke-width: 3.1;
  filter: drop-shadow(0 0 7px var(--t1403));
}

.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 var(--t1404));
}

.trend-induction-cylinder-badge {
  pointer-events: none;
}

.trend-induction-cylinder-badge rect {
  fill: var(--t1470);
  stroke: var(--t1471);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.trend-induction-cylinder-badge.is-strongest rect {
  fill: var(--t1472);
  stroke: var(--t1396);
  stroke-width: 1.7;
}

.trend-induction-cylinder-badge text {
  fill: var(--t1473);
  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 var(--t1474);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1475), transparent 62%),
    var(--t1419);
}

.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 var(--t1242);
  border-radius: 999px;
  background: var(--t1420);
}

.trend-induction-selected-score.status-amber {
  border-color: var(--t1421);
  background: var(--t1422);
}

.trend-induction-selected-score.status-red {
  border-color: var(--t1423);
  background: var(--t1424);
}

.trend-induction-selected-score i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t558);
}

.trend-induction-selected-score.status-amber i {
  background: var(--t1425);
}

.trend-induction-selected-score.status-red i {
  background: var(--t1322);
}

.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 var(--t1476);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  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 var(--t1426);
  border-radius: 8px;
  background: var(--t1427);
}

.trend-cht-cooling-owner-note strong {
  color: var(--t1428);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-cht-cooling-owner-note span {
  min-width: 0;
  color: var(--t41);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-cht-cooling-reference-line {
  opacity: 0.34;
  stroke: var(--t1456);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-minor-reference-line {
  opacity: 0.22;
  stroke: var(--t1457);
  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: var(--t1370);
}

.trend-cht-cooling-legend .is-compare {
  color: var(--t1371);
}

.trend-cht-cooling-legend .is-green {
  color: var(--t1365);
}

.trend-cht-cooling-legend .is-cool {
  color: var(--t1477);
}

.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 var(--t1478);
  opacity: 1;
}

.trend-cht-cooling-heatmap-svg .trend-svg-axis-label {
  font-size: 9.5px;
  font-weight: 850;
}

.trend-cht-cooling-column-label {
  fill: var(--t1479);
  font-size: 9.2px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trend-cht-cooling-date-label {
  fill: var(--t1359);
}

.trend-cht-cooling-heatmap-cell {
  cursor: pointer;
  stroke: var(--t1480);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-cell.is-empty {
  cursor: default;
  opacity: 0.62;
  stroke: var(--t1481);
}

.trend-cht-cooling-heatmap-cell:hover,
.trend-cht-cooling-heatmap-cell:focus-visible,
.trend-cht-cooling-heatmap-cell.is-selected {
  outline: none;
  stroke: var(--t1401);
  stroke-width: 3;
  filter: drop-shadow(0 0 7px var(--t1402));
}

.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 var(--t1403));
}

.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 var(--t1482));
}

.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 var(--t1404));
}

.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 var(--t1277);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1483), transparent 70%),
    var(--t1419);
}

.trend-cht-cooling-heatmap-summary > span.status-red {
  border-color: var(--t1484);
  background:
    linear-gradient(90deg, var(--t1424), transparent 72%),
    var(--t1485);
}

.trend-cht-cooling-heatmap-summary > span.status-amber {
  border-color: var(--t1486);
  background:
    linear-gradient(90deg, var(--t1422), transparent 72%),
    var(--t1485);
}

.trend-cht-cooling-heatmap-summary > span.status-blue {
  border-color: var(--t1487);
}

.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: var(--t1488);
  stroke: var(--t1489);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-value text {
  fill: var(--t1490);
  font-size: 9.8px;
  font-weight: 950;
  dominant-baseline: central;
}

.trend-cht-cooling-heatmap-low-value {
  fill: var(--t1491);
  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: var(--t1492);
  stroke-width: 5.6;
}

.trend-cht-cooling-heatmap-cylinder {
  font-size: 10.5px;
}

.trend-cht-cooling-heatmap-repeat {
  fill: none;
  opacity: 0.84;
  stroke: var(--t1493);
  stroke-dasharray: 6 5;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.trend-cht-cooling-heatmap-note {
  fill: var(--t1494);
  font-size: 9px;
  stroke: var(--t1374);
  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 var(--t1417);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1418), transparent 62%),
    var(--t1419);
}

.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 var(--t1242);
  border-radius: 999px;
  background: var(--t1420);
}

.trend-cht-cooling-selected-rate.status-amber {
  border-color: var(--t1421);
  background: var(--t1422);
}

.trend-cht-cooling-selected-rate.status-red {
  border-color: var(--t1423);
  background: var(--t1424);
}

.trend-cht-cooling-selected-rate i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--t558);
}

.trend-cht-cooling-selected-rate.status-amber i {
  background: var(--t1425);
}

.trend-cht-cooling-selected-rate.status-red i {
  background: var(--t1322);
}

.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 var(--t1299);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  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: var(--t1495);
}

.trend-cooling-band.is-warm {
  fill: var(--t1496);
}

.trend-cooling-band.is-review {
  fill: var(--t1497);
}

.trend-cooling-line {
  fill: none;
  stroke: var(--t1498);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-cooling-dot {
  fill: var(--dot-color);
  stroke: var(--t1480);
  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: var(--t1401);
  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 var(--t1277);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1499), transparent 62%),
    var(--t1419);
}

.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%, var(--t623));
  border-radius: 999px;
  background: color-mix(in srgb, var(--dot-color) 10%, var(--t1500));
}

.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%, var(--t1039) 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 var(--t1299);
  border-radius: 999px;
  background: var(--t1368);
  color: var(--t41);
  text-transform: none;
}

.trend-cooling-cylinder-breakdown > span.is-highest {
  border-color: color-mix(in srgb, var(--dot-color) 52%, var(--t138));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dot-color) 16%, transparent), transparent),
    var(--t1337);
}

.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: var(--t1479);
  stroke: var(--t1374);
  stroke-width: 3.2px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 10.5px;
  font-weight: 900;
}

.trend-cooling-threshold-label {
  stroke: var(--t1374);
  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: var(--t1501);
}

.trend-cooling-threshold-label.is-warm {
  fill: var(--t1396);
}

.trend-oil-envelope {
  fill: var(--t1502);
  stroke: var(--t1503);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-distribution-svg .trend-svg-note {
  fill: var(--t1504);
  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: var(--t1505);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-band.is-iqr {
  stroke: var(--t1506);
}

.trend-oil-band-legend text {
  fill: var(--t1507);
  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: var(--t1508);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-pressure-bar {
  stroke: var(--t1509);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.trend-oil-pressure-median {
  stroke: var(--t1510);
  stroke-linecap: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px var(--t1511));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-median {
  stroke: var(--t1512);
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 7px var(--t1513));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-marker {
  fill: var(--t1514);
  stroke: var(--t1515);
  stroke-width: 2.8;
  filter: drop-shadow(0 0 8px var(--t1516));
  vector-effect: non-scaling-stroke;
}

.trend-oil-recent-callout {
  fill: var(--t1461);
  stroke: var(--t1374);
  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: var(--t1517);
  stroke: var(--t1481);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-oil-temp-bar {
  stroke: var(--t1518);
  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: var(--t1519);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.trend-oil-temp-context-note {
  fill: var(--t1520);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0;
}

.trend-oil-temp-median {
  stroke: var(--t1521);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-temp-median-label {
  fill: var(--t1522);
  stroke: var(--t1374);
  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 var(--t138);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1523), transparent 70%),
    var(--t1335);
}

.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 var(--t1524);
  border-radius: 8px;
  background: var(--t1523);
}

.trend-oil-owner-note strong {
  color: var(--t1525);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-oil-owner-note span {
  min-width: 0;
  color: var(--t41);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.trend-oil-owner-note.is-watch-source {
  border-color: var(--t1526);
  background:
    linear-gradient(90deg, var(--t1527), transparent 70%),
    var(--t1528);
}

.trend-oil-owner-note.is-watch-source strong {
  color: var(--t1529);
}

.trend-oil-watch-source {
  pointer-events: none;
}

.trend-oil-issue-line {
  stroke: var(--t1530);
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px var(--t1531));
  vector-effect: non-scaling-stroke;
}

.trend-oil-issue-marker {
  fill: var(--t1532);
  stroke: var(--t1533);
  stroke-width: 3.2;
  filter: drop-shadow(0 0 9px var(--t1534));
  vector-effect: non-scaling-stroke;
}

.trend-oil-issue-label,
.trend-oil-issue-value {
  paint-order: stroke fill;
  stroke: var(--t1374);
  stroke-linejoin: round;
  stroke-width: 3.5px;
  letter-spacing: 0;
}

.trend-oil-issue-label {
  fill: var(--t1535);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.trend-oil-issue-value {
  fill: var(--t1536);
  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 var(--t1299);
  border-radius: 8px;
  background: var(--t1368);
}

.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%, var(--t623));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--oil-accent) 14%, transparent), transparent 64%),
    var(--t1372);
}

.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: var(--t41);
  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: var(--t1537);
}

.trend-oil-legend .band {
  width: 46px;
  height: 17px;
  border-radius: 999px;
  background: var(--t1538);
}

.trend-oil-legend .line {
  width: 48px;
  height: 3px;
  background: var(--t1539);
}

.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: var(--t1540);
  box-shadow: 0 0 9px var(--t1541);
  content: "";
}

.trend-oil-legend .watch::after {
  position: absolute;
  top: 5px;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--t1542);
  border-radius: 999px;
  background: var(--t1540);
  content: "";
}

.trend-oil-centerline {
  fill: none;
  stroke: var(--t1543);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.trend-oil-reference {
  stroke: var(--t1544);
  stroke-width: 1.6;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
}

.trend-oil-reference-label {
  fill: var(--t1545);
  font-size: 13px;
  font-weight: 720;
}

.trend-oil-annotation {
  fill: var(--t1546);
  font-size: 13px;
  font-weight: 950;
}

.trend-oil-annotation-line {
  fill: none;
  stroke: var(--t1546);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trend-oil-sample {
  fill: var(--t1458);
  opacity: 0.82;
  stroke: var(--t1547);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.trend-oil-sample.status-amber {
  fill: var(--t1406);
}

.trend-oil-sample.status-red {
  fill: var(--t1548);
}

.trend-oil-sample.status-muted {
  fill: var(--t1359);
}

.trend-oil-warm-marker {
  fill: var(--t1549);
  stroke: var(--t1550);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

.trend-oil-callout {
  fill: var(--t1551);
  stroke: var(--t1374);
  stroke-width: 3.5px;
  paint-order: stroke fill;
  font-size: 13px;
  font-weight: 950;
}

.trend-rhythm-wave {
  fill: none;
  stroke: var(--t1552);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-fit {
  fill: none;
  opacity: 0.72;
  stroke: var(--t1356);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-floor {
  stroke: var(--t1396);
  stroke-dasharray: 8 7;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-floor-label,
.trend-rhythm-legend text {
  fill: var(--t1553);
  font-size: 9px;
  font-weight: 850;
}

.trend-rhythm-floor-label {
  fill: var(--t1396);
  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: var(--t1554);
}

.egt-rhythm-zero {
  stroke: var(--t1555);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.egt-rhythm-peer {
  fill: none;
  stroke: var(--t1556);
  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: var(--t1557); }
.egt-rhythm-legend-peer { color: var(--t1558); }
.egt-rhythm-legend-floor { color: var(--t1332); }

.egt-rhythm-legend-chip .egt-rhythm-legend-floor::before {
  border-top-style: dashed;
  border-top-width: 2px;
}

.trend-rhythm-stem {
  opacity: 0.72;
  stroke: var(--t1397);
  stroke-width: 4.5;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-stem.is-strongest {
  opacity: 0.95;
  stroke: var(--t1559);
  stroke-width: 5.5;
}

.trend-rhythm-stem.is-selected {
  opacity: 1;
  stroke: var(--t1552);
  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: var(--t1401);
  stroke-width: 3.3;
  filter: drop-shadow(0 0 8px var(--t1560));
}

.trend-rhythm-date {
  fill: var(--t1375);
  font-size: 9.5px;
  font-weight: 720;
  opacity: 0.88;
  text-anchor: middle;
}

.trend-rhythm-amplitude-label {
  fill: var(--t1561);
  stroke: var(--t1374);
  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: var(--t1375);
  font-size: 10px;
  font-weight: 780;
  opacity: 0.82;
  text-anchor: middle;
}

.trend-rhythm-time-tick {
  opacity: 0.44;
  stroke: var(--t1562);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-rhythm-time-label {
  fill: var(--t1375);
  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 var(--t1563);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--t1564), transparent 72%),
    var(--t1328);
}

.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: var(--t1099);
  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 var(--t138);
  border-radius: 8px;
  background: var(--t1565);
  color: var(--t1566);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.trend-gami-line {
  fill: none;
  stroke: var(--t1567);
  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: var(--t1099);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.trend-turbo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--t1431);
  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: var(--t1568);
}

.trend-turbo-legend .is-map i,
.trend-turbo-line.is-map {
  background: var(--t1569);
  stroke: var(--t1570);
}

.trend-turbo-legend .is-tit i,
.trend-turbo-line.is-tit {
  background: var(--t1571);
  stroke: var(--t1572);
}

.trend-turbo-legend .is-limit i {
  background: var(--t1573);
}

.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: var(--t1574);
}

.trend-turbo-whisker.is-tit {
  stroke: var(--t1575);
}

.trend-turbo-callout {
  fill: var(--t1576);
  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 var(--t623);
  border-radius: 8px;
  background: var(--t1577);
}

.trend-turbo-owner-note strong {
  flex: 0 0 auto;
  color: var(--t1099);
  font-size: 13px;
  font-weight: 950;
}

.trend-turbo-owner-note span {
  color: var(--t1566);
  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 var(--t1578);
  border-radius: 8px;
  background: var(--t1579);
}

.trend-turbo-chart-key strong {
  color: var(--t1580);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.trend-turbo-chart-key span {
  min-width: 0;
  color: var(--t41);
  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 var(--t623);
  border-radius: 8px;
  background: var(--t1577);
}

.trend-turbo-selected-flight span,
.trend-turbo-selected-status span,
.trend-turbo-selected-meta small {
  display: block;
  overflow: hidden;
  color: var(--t1581);
  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: var(--t1099);
  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: var(--t1566);
  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: var(--t1582);
  box-shadow: 0 0 0 4px var(--t1583);
}

.trend-turbo-selected-status.status-green i {
  background: var(--t1584);
  box-shadow: 0 0 0 4px var(--t1585);
}

.trend-turbo-selected-status.status-amber i {
  background: var(--t1571);
  box-shadow: 0 0 0 4px var(--t1586);
}

.trend-turbo-selected-status.status-red i {
  background: var(--t1573);
  box-shadow: 0 0 0 4px var(--t1587);
}

.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: var(--t1099);
  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 var(--t1277);
  border-radius: 8px;
  background: var(--t1241);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trend-graph-card:hover,
.trend-graph-card:focus-visible,
.trend-graph-card.is-active {
  border-color: var(--t1588);
  background: var(--t98);
  outline: none;
}

.trend-graph-card.is-active {
  box-shadow: inset 0 0 0 1px var(--t1589), inset 3px 0 0 var(--t1308);
}

.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: var(--t1590);
}

.trend-graph-card em.status-amber {
  color: var(--t1580);
}

.trend-graph-card em.status-red {
  color: var(--t1591);
}

.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: var(--t1337);
}

.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: var(--t1592);
  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 var(--t706);
  border-radius: 50%;
  background: var(--t12);
  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: var(--t1593);
  background: var(--t832);
  color: var(--t8);
  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[aria-busy="true"] > :not(.dashboard-loading-overlay) {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

/* Overlay now lives at the top level; drive it from the dashboard's loading
   state with :has() so it stays viewport-centered during the tab-slide.
   Gated on the dashboard actually being the page in view: the overlay is
   position: fixed, so without this a flight loading for some other reason
   (the post-upload "opening the newest flight", a prewarm, the replacement
   picked after a delete) throws a full-screen loader over whatever page the
   user is actually on, e.g. the Uploads tab. Because this is a live selector
   rather than a one-shot check, navigating to the dashboard mid-load still
   reveals the overlay. */
body[data-active-view="dashboard"]:has(#view-dashboard.is-flight-loading) .dashboard-loading-overlay {
  display: block;
}

body:has(#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 var(--t203);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--t1594), var(--t1595)),
    var(--panel);
  box-shadow: 0 24px 70px var(--t204);
}

.dashboard-loading-instrument {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--t1596);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--t1597) 0 3px, transparent 4px),
    conic-gradient(from 225deg, var(--t1598), var(--t1599), var(--t1600), var(--t1601) 0);
}

.dashboard-loading-instrument::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--t1602);
  box-shadow: inset 0 0 0 1px var(--t29);
}

.dashboard-loading-sweep {
  position: absolute;
  inset: 14px;
  border: 2px solid var(--t623);
  border-top-color: var(--t108);
  border-radius: 50%;
  animation: dashboardLoadingSweep 1.2s linear infinite;
}

.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: var(--t1603);
  box-shadow: 0 0 14px var(--t1604);
  animation: dashboardLoadingNeedle 6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-loading-sweep,
  .dashboard-loading-needle {
    animation: none;
  }
}

.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 var(--t486);
  border-radius: 8px;
  background: var(--t12);
}

.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 var(--t486);
  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 var(--t1062);
  border-radius: 50%;
  background: var(--t1605);
}

.dashboard-loading-steps li.is-active {
  border-color: var(--t524);
  color: var(--text);
  background: var(--t627);
}

.dashboard-loading-steps li.is-active::before {
  border-color: var(--t108);
  background: var(--t1606);
  box-shadow: 0 0 0 5px var(--t728);
}

.dashboard-loading-steps li.is-complete {
  color: var(--t1607);
}

.dashboard-loading-steps li.is-complete::before {
  border-color: var(--t1608);
  background: var(--t1609);
}

body:has(#view-dashboard.is-flight-loading-error) .dashboard-loading-overlay .dashboard-loading-card {
  border-color: var(--t1610);
}

body:has(#view-dashboard.is-flight-loading-error) .dashboard-loading-overlay .dashboard-loading-instrument {
  border-color: var(--t1611);
}

body:has(#view-dashboard.is-flight-loading-error) .dashboard-loading-overlay .dashboard-loading-sweep {
  animation: none;
  border-color: var(--t1612);
  border-top-color: var(--t1613);
}

body:has(#view-dashboard.is-flight-loading-error) .dashboard-loading-overlay .dashboard-loading-needle {
  background: var(--t1614);
  box-shadow: 0 0 14px var(--t1615);
  animation: none;
}

.dashboard-loading-steps li.is-error {
  border-color: var(--t1616);
  color: var(--text);
  background: var(--t1617);
}

.dashboard-loading-steps li.is-error::before {
  border-color: var(--t1613);
  background: var(--t1614);
  box-shadow: 0 0 0 5px var(--t1618);
}

@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: var(--t1619);
  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: var(--t1620);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trend-metric-tile:hover,
.trend-metric-tile:focus-visible {
  border-color: var(--t492);
  background: var(--t98);
  outline: none;
}

.trend-metric-tile.is-active {
  border-color: var(--t1621);
  background:
    linear-gradient(135deg, var(--t354), var(--t1286) 70%),
    var(--t1241);
  box-shadow: 0 0 0 1px var(--t1622), inset 3px 0 0 var(--t1623), inset 0 1px 0 var(--t1044);
}

.trend-metric-tile.status-red {
  border-color: var(--t1624);
}

.trend-metric-tile.status-amber {
  border-color: var(--t1305);
}

.trend-metric-tile.status-green {
  border-color: var(--t1625);
}

.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: var(--t1626);
  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, var(--t355), var(--t1142) 48%),
    var(--t1627);
  box-shadow: inset 0 1px 0 var(--t168);
}

.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: var(--t1625);
}

.trend-story-card.status-amber {
  border-color: var(--t846);
}

.trend-story-card.status-red {
  border-color: var(--t1252);
}

.trend-story-card.status-muted {
  border-color: var(--t1628);
}

.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 var(--t1629);
  border-radius: 7px;
  background: var(--t1630);
  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: var(--t1367);
  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 var(--t1629);
  border-radius: 8px;
  background: var(--t1631);
}

.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: var(--t1632);
}

.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 var(--t486);
  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%, var(--t48), transparent 58%),
    linear-gradient(90deg, transparent, var(--t1633) 40%, var(--t1634));
  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 var(--t1635));
  -webkit-mask-image:
    linear-gradient(to left, var(--t1636) 58%, var(--t1637) 76%, transparent 100%),
    linear-gradient(to right, var(--t1636) 78%, transparent 100%),
    linear-gradient(to bottom, var(--t1636) 70%, var(--t1638) 86%, transparent 100%),
    linear-gradient(to top, var(--t1636) 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, var(--t1636) 58%, var(--t1637) 76%, transparent 100%),
    linear-gradient(to right, var(--t1636) 78%, transparent 100%),
    linear-gradient(to bottom, var(--t1636) 70%, var(--t1638) 86%, transparent 100%),
    linear-gradient(to top, var(--t1636) 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 var(--t1639));
}

.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 var(--t706);
  border-radius: 8px;
  background: var(--t1286);
  color: var(--t1367);
  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: var(--t1620);
  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: var(--t492);
  background: var(--t98);
  outline: none;
}

.trend-review-item.is-static:hover {
  border-color: var(--line-soft);
  background: var(--t1620);
}

.trend-review-item.is-static.status-red:hover {
  border-color: var(--t1248);
}

.trend-review-item.is-static.status-amber:hover {
  border-color: var(--t1205);
}

.trend-review-item.is-static.status-green:hover {
  border-color: var(--t1625);
}

.trend-review-item.status-red {
  border-color: var(--t1248);
}

.trend-review-item.status-amber {
  border-color: var(--t1205);
}

.trend-review-item.status-green {
  border-color: var(--t1625);
}

.trend-review-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--t81);
  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: var(--t1620);
}

.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: var(--t1620);
}

.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: var(--t1367);
  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 var(--t706);
  border-radius: 8px;
  background: var(--t1286);
  color: var(--t1367);
  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: var(--t1620);
}

.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 var(--t1629);
  border-radius: 8px;
  background: var(--t12);
  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: var(--t1338);
}

.trend-sample-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: var(--t1620);
  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: var(--t1367);
  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 var(--t623);
  border-radius: 8px;
  background: var(--t1620);
}

.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: var(--t1367);
  font-size: 13px;
  line-height: 1.4;
}

.trend-gami-aggregate-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px;
  border-color: var(--t1640);
  background:
    linear-gradient(135deg, var(--t845), var(--t1641) 54%, var(--t1642)),
    var(--t1643);
}

.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 var(--t1277);
  border-radius: 8px;
  background: var(--t1644);
}

.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: var(--t1590);
}

.trend-gami-verdict strong.amber {
  color: var(--t1580);
}

.trend-gami-verdict strong.red {
  color: var(--t1591);
}

.trend-gami-verdict small {
  overflow-wrap: anywhere;
  color: var(--t1645);
  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 var(--t1277);
  border-radius: 8px;
  background: var(--t1646);
}

.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: var(--t1647);
  stroke: var(--t1378);
}

.trend-gami-axis,
.trend-gami-threshold {
  vector-effect: non-scaling-stroke;
}

.trend-gami-axis {
  stroke: var(--t1648);
  stroke-width: 1;
}

.trend-gami-threshold {
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.trend-gami-threshold.is-target {
  stroke: var(--t1391);
}

.trend-gami-threshold.is-watch {
  stroke: var(--t1649);
}

.trend-gami-threshold.is-review {
  stroke: var(--t1650);
}

.trend-gami-threshold-label,
.trend-gami-axis-label,
.trend-gami-x-label {
  fill: var(--t1651);
  font-size: 12px;
  font-weight: 800;
}

.trend-gami-spread-line {
  fill: none;
  stroke: var(--t1567);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trend-gami-point circle {
  stroke: var(--t1394);
  stroke-width: 2;
}

.trend-gami-point.status-green circle {
  fill: var(--t1397);
}

.trend-gami-point.status-amber circle {
  fill: var(--t214);
}

.trend-gami-point.status-red circle {
  fill: var(--t1652);
}

.trend-gami-point.status-muted circle {
  fill: var(--t1400);
}

.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 var(--t486);
  border-radius: 6px;
  background: var(--t147);
}

.trend-gami-cylinder-track::before {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: var(--t1653);
  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: var(--t270);
}

.trend-gami-cylinder-bar-row.is-early .trend-gami-cylinder-track i {
  background: var(--t560);
}

.trend-gami-cylinder-bar-row.is-late .trend-gami-cylinder-track i {
  background: var(--t1654);
}

.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 var(--t486);
  color: var(--t1367);
  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 var(--t486);
  border-radius: 8px;
  background: var(--t147);
  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: var(--t1655);
}

.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 var(--t1656);
}

.trend-table th:nth-child(1),
.trend-table th:nth-child(2) {
  z-index: 4;
  background: var(--t725);
}

.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 var(--t1657);
}

.trend-table tbody tr:hover {
  background: var(--t98);
}

.trend-table tbody tr:hover td:nth-child(1),
.trend-table tbody tr:hover td:nth-child(2) {
  background: var(--t1658);
}

.trend-table tbody tr:focus-visible {
  outline: 2px solid var(--t1659);
  outline-offset: -2px;
}

.trend-table tbody tr.is-return-target {
  background: var(--t48);
  box-shadow: inset 3px 0 0 var(--t1660);
}

.trend-table tbody tr.is-return-target td:nth-child(1),
.trend-table tbody tr.is-return-target td:nth-child(2) {
  background: var(--t1661);
}

.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 var(--t706);
  border-radius: 8px;
  background: var(--t1286);
  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 var(--t1662);
  border-radius: 8px;
  background: var(--t98);
  color: var(--t512);
  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 var(--t486);
}

.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: var(--t147);
}

.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: var(--t98);
  color: var(--text);
  outline: none;
}

.trend-table-option.is-active {
  background: var(--t84);
  box-shadow: inset 0 0 0 1px var(--t491);
  color: var(--t483);
}

.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: var(--t98);
  box-shadow: inset 2px 0 0 var(--t1663), inset -1px 0 0 var(--t1664);
}

.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: var(--t1665);
}

.trend-table tbody tr.is-focus-row {
  background: var(--t197);
}

.trend-table tbody tr.is-focus-row td:nth-child(1),
.trend-table tbody tr.is-focus-row td:nth-child(2) {
  background: var(--t1666);
}

.trend-table tbody tr.is-focus-row td:first-child {
  box-shadow: inset 3px 0 0 var(--t866);
}

.trend-table tbody tr.is-focus-row:hover {
  background: var(--t1667);
}

.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: var(--t1668);
}

.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"],
  .special-test-cylinder-peak-table.has-tit [role="row"] {
    grid-template-columns: 1fr;
  }

  .special-test-cylinder-peak-table [data-gami-tit]::before {
    content: "TIT at EGT peak: ";
  }

  .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 var(--t1277);
    border-radius: 8px;
    background: var(--t1669);
  }

  .aircraft-flights-table tbody tr:nth-child(even) {
    background: var(--t1669);
  }

  .aircraft-flights-table tbody tr:hover {
    border-color: var(--t97);
    background: var(--t738);
    box-shadow: inset 3px 0 0 var(--t730), 0 8px 20px var(--t1670);
  }

  .aircraft-flights-table tbody tr.is-selected {
    border-color: var(--t649);
    background: var(--t155);
    box-shadow: inset 4px 0 0 var(--t1671), 0 8px 20px var(--t1672);
  }

  .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: var(--t1673);
    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%, var(--t1), transparent 18rem),
    var(--t596);
  backdrop-filter: blur(10px);
}

.upload-dialog-card {
  display: grid;
  gap: 18px;
  width: min(620px, calc(100vw - 32px));
  margin: 0;
  padding: 22px;
  border: 1px solid var(--t203);
  border-radius: 14px;
  background:
    linear-gradient(180deg, var(--t1674), var(--t1675));
  box-shadow:
    0 28px 90px var(--t1056),
    inset 0 1px 0 var(--t1676);
}

.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 var(--t129);
  background: var(--t1677);
}

.aircraft-review-settings-card header {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--t129);
  background: var(--t1677);
}

.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: var(--t1678);
}

.upload-dialog-close {
  flex: 0 0 auto;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border-color: var(--t138);
  color: var(--muted);
}

.upload-dialog-close:hover,
.upload-dialog-close:focus-visible {
  border-color: var(--t1679);
  background: var(--t1);
  color: var(--t8);
  outline: none;
}

.upload-dialog-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.upload-dialog-copy {
  margin: 0;
  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 var(--t1680);
  border-radius: 10px;
  background: var(--t1079);
  color: var(--t1681);
  line-height: 1.45;
}

.aircraft-delete-warning strong {
  color: var(--t8);
  font-size: 15px;
}

.aircraft-delete-warning span {
  color: var(--t1682);
  font-size: 13px;
}

/* "File: <original log filename>" line in the flight update/re-process
   dialogs — the title no longer carries the full log label. */
.flight-dialog-file {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.aircraft-delete-warning .flight-delete-disclosure {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--t1683);
  color: var(--t1684);
  font-size: 13px;
}

.account-archive-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 70ch;
}

.account-archive-list {
  display: grid;
  gap: 10px;
}

.account-archive-row .account-aircraft-actions {
  flex: none;
}

.upload-capacity-counter {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.upload-capacity-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: min(44vh, 340px);
  overflow-y: auto;
  display: grid;
  gap: 2px;
  border: 1px solid var(--t152);
  border-radius: 10px;
}

.upload-capacity-list li {
  margin: 0;
}

.upload-capacity-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.upload-capacity-list label:hover {
  background: var(--t1685);
}

.upload-capacity-list label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upload-capacity-list input[type="checkbox"] {
  flex: none;
}

.aircraft-delete-dialog.is-archive-confirm .aircraft-delete-warning {
  border-color: var(--t1686);
  background: var(--t1687);
  color: var(--t1688);
}

.aircraft-delete-dialog.is-archive-confirm .aircraft-delete-warning span {
  color: var(--t1689);
}

.aircraft-delete-dialog-card .danger-action {
  border-color: var(--t1145);
  background: linear-gradient(180deg, var(--t1690), var(--t1691));
  box-shadow: 0 10px 24px var(--t1692);
}

.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: var(--t1693);
}

.aircraft-toolbar .aircraft-add-header-action {
  margin-left: 12px;
  border-color: var(--t1694);
  background: var(--t201);
  color: var(--t1695);
  box-shadow: 0 0 0 1px var(--t358), 0 10px 22px var(--t105);
}

.aircraft-toolbar .aircraft-add-header-action:hover,
.aircraft-toolbar .aircraft-add-header-action:focus-visible {
  border-color: var(--t1696);
  background: var(--t48);
  color: var(--t8);
  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: var(--t83);
  background: var(--t104);
  box-shadow: 0 0 0 3px var(--t1697), 0 8px 18px var(--t830);
  color: var(--t8);
  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 var(--t1277);
  border-radius: 10px;
  background: var(--t1669);
}

.review-settings-summary div {
  min-width: 0;
}

.review-settings-summary span {
  display: block;
  color: var(--t776);
  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: var(--t1698);
  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 var(--t129);
}

.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: var(--t749);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.review-monitor-group-header [data-review-group-count] {
  color: var(--t776);
  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: var(--t1699);
  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 var(--t1277);
  border-radius: 8px;
  background: var(--t1677);
}

.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: var(--t749);
  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: var(--t138);
  background: var(--t1700);
}

.review-monitor-option.is-unavailable span {
  color: var(--t1701);
}

.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 var(--t1299);
}

.review-monitor-setting > label {
  color: var(--t1702);
  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 var(--t97);
  border-radius: 8px;
  background: var(--t1703);
  color: var(--t1704);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.review-monitor-number-field span {
  color: var(--t1702);
  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, var(--t1705)) !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 var(--t129);
  background: var(--t631);
}

.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 var(--t183);
}

.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 var(--t623);
  border-radius: 8px;
  background: var(--t624);
}

.aircraft-context-panel.is-flights-context .aircraft-activity-card {
  min-width: 0;
  max-width: none;
  padding: 0 18px;
  border-right: 1px solid var(--t198);
}

.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: var(--t1677);
}

.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: var(--t8);
  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: var(--t1706);
}

.aircraft-summary-card span {
  font-size: 10px;
  color: var(--t633);
}

.aircraft-activity-card strong {
  color: var(--t749);
  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: var(--sticky-table-header-top);
  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 var(--t1299);
  background: var(--t1707);
  box-shadow: 0 10px 24px var(--t1708);
  color: var(--t1709);
  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 var(--t138);
  background:
    radial-gradient(circle at top, var(--t1710), transparent 58%),
    linear-gradient(180deg, var(--t13), var(--t1711));
}

.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: var(--t1712);
  box-shadow: 0 12px 24px var(--t1713);
  transform: translateY(-1px);
}

.aircraft-photo-frame img,
.aircraft-fleet-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Generated default line art (white linework on a near-black background).
   Contain instead of cover so the planform is never cropped; the art's own
   dark background paints the frame. Light theme inverts the monochrome art
   to black-on-light, which is why generation enforces strictly monochrome
   output. */
.aircraft-photo-frame img.is-default-art,
.aircraft-fleet-photo img.is-default-art,
.fleet-aircraft-avatar img.is-default-art {
  object-fit: contain;
  /* No background on purpose: the art is transparent white line strokes, so
     the frame/avatar/card container paints the tile in its own theme color
     and the art can never clash with either theme. Light mode inverts only
     the strokes (below). */
}

:root[data-theme="light"] .aircraft-photo-frame img.is-default-art,
:root[data-theme="light"] .aircraft-fleet-photo img.is-default-art,
:root[data-theme="light"] .fleet-aircraft-avatar img.is-default-art {
  filter: invert(1);
}

.aircraft-photo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--t1714);
  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, var(--t1715), var(--t1716) 46%, var(--t1717));
  color: var(--t1718);
  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;
}

/* "Add photo" (empty state) presents exactly like "Change photo": bottom-left
   corner label, visible only on hover/focus. The generated default art fills
   the frame, so the empty state no longer needs a centered call-to-action. */
.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: var(--t1678);
}

.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 var(--t138);
  border-radius: 999px;
  background: var(--t1720);
  color: var(--t1721);
  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: var(--t1722);
  background: var(--t1723);
  color: var(--t8);
  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: var(--t631);
  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: var(--t83);
  background:
    linear-gradient(180deg, var(--t42), var(--t1724)),
    var(--t529);
  box-shadow:
    0 24px 48px var(--t530),
    0 0 0 1px var(--t732);
  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: var(--t1606);
  box-shadow: 0 0 0 3px var(--t833);
}

.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: var(--t70);
  background: var(--t98);
}

.aircraft-fleet-item.is-plan-locked {
  border-color: var(--t1725);
  background: var(--t1726);
}

.aircraft-fleet-item.is-plan-locked:hover,
.aircraft-fleet-item.is-plan-locked:focus-visible {
  border-color: var(--t1727);
  background: var(--t1728);
}

.aircraft-fleet-item:hover,
.aircraft-fleet-item:focus-visible {
  border-color: var(--t1062);
  background: var(--t201);
  outline: none;
}

.aircraft-fleet-item:focus-visible {
  box-shadow: 0 0 0 3px var(--t1729);
}

.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 var(--t1230);
  border-radius: 999px;
  color: var(--t1730);
  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: var(--t1731);
  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-archive-action {
  color: var(--t1732);
}

.aircraft-archive-action:disabled {
  color: var(--t662);
  border-color: var(--t198);
}

.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 var(--t1277);
  border-radius: 10px;
  background: var(--t1669);
}

.aircraft-form-summary div {
  min-width: 0;
}

.aircraft-form-summary span {
  display: block;
  color: var(--t776);
  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: var(--t1698);
  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-optional-details {
  border: 1px solid var(--t1734);
  border-radius: 12px;
  padding: 18px 20px;
}

.aircraft-optional-details > summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.aircraft-optional-description,
.aircraft-optional-help {
  display: block;
  margin: 6px 0 0 20px;
  font-weight: 400;
}

.aircraft-optional-help {
  color: var(--t1733);
  font-size: 13px;
}

.aircraft-optional-content {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  min-width: 0;
}

.aircraft-form-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--t1733);
  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: var(--t1734);
}

.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: var(--t147);
  color: var(--t749);
  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: var(--t62);
  background: var(--t1735);
}

.aircraft-turbo-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.aircraft-turbo-toggle span {
  color: var(--t749);
}

.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: var(--t749);
}

.aircraft-turbo-limits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.aircraft-fuel-pressure-section .field-help {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.aircraft-fuel-pressure-settings {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.aircraft-fuel-pressure-engine {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.aircraft-fuel-pressure-engine h4 {
  margin: 0;
  font-size: 14px;
}

.aircraft-fuel-pressure-settings .aircraft-turbo-toggle input {
  flex: 0 0 18px;
}

.aircraft-fuel-pressure-settings .aircraft-turbo-toggle span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  line-height: 1.4;
}

.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 var(--t129);
  background: var(--t631);
  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, var(--t1736));
  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;
}

/* Every textual input type shares the field treatment. The :not() list
   (instead of enumerating text/number/...) is deliberate: enumeration is
   how date, email, password, and tel fields kept slipping through
   unstyled. */
.upload-field select,
.upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--t86);
  color: var(--text);
  font: inherit;
  /* Native pickers (date calendar, its indicator icon) follow the dark
     theme instead of rendering light-mode chrome. */
  color-scheme: dark;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.upload-field select,
.upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]) {
  min-height: 46px;
  padding: 0 13px;
}

.upload-field select:hover,
.upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):hover {
  border-color: var(--t62);
  background: var(--t81);
}

.upload-field select:focus-visible,
.upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):focus-visible {
  border-color: var(--t55);
  background: var(--t355);
  box-shadow: 0 0 0 3px var(--t791);
  outline: none;
}

.aircraft-edit-dialog-card .upload-field {
  gap: 7px;
}

.aircraft-edit-dialog-card .upload-field select,
.aircraft-edit-dialog-card .upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]) {
  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 var(--t1737);
  background: var(--t98);
  color: var(--t1738);
}

.upload-dialog-error {
  border: 1px solid var(--t1680);
  background: var(--t1079);
  color: var(--t52);
}

.demo-mode-note {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Never the OS loading cursor: disabled reads as "unavailable", not "busy". */
.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  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: var(--t138);
  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 var(--t129);
  }

  .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 var(--t183);
  }

  .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, var(--t1739) 0%, var(--t135) 45%, var(--t1740) 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 var(--t152);
  }

  .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;
  }

  /* The Flights and Maintenance pages keep their aircraft photo on mobile
     (their heroes must match); the other compact sub-pages still drop the
     frame with the rest of the hero chrome. */
  .aircraft-context-panel.is-compact:not(.is-flights-context):not(.is-maintenance-context) .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, var(--t1741) 0%, var(--t1742) 52%, var(--t1743) 100%),
    radial-gradient(circle at 70% 26%, var(--t1744), transparent 28rem),
    linear-gradient(135deg, var(--t1745) 0%, var(--t1746) 52%, var(--t1747) 100%);
  opacity: 1;
  filter: none;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-hero--runbook::after {
  background:
    linear-gradient(180deg, var(--t1748) 0%, var(--t1749) 100%),
    linear-gradient(90deg, var(--t1750), 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: var(--t1751);
  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 var(--t1752);
  border-radius: 999px;
  color: var(--t1753);
  font-size: 13px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-advisory strong {
  color: var(--t1754);
}

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 var(--t1755);
  border-radius: 12px 12px 3px 3px;
  background: var(--t1756);
  box-shadow: 0 24px 80px var(--t1757);
}

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 var(--t1758);
  border-radius: 8px;
  background: var(--t1759);
}

/* 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: var(--t1760);
  color: var(--t1761);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-jumps a.is-active {
  border-color: var(--t1762);
  color: var(--t1763);
  background: var(--t1764);
  box-shadow: inset 0 0 0 1px var(--t1765);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-runbook .eyebrow {
  margin: 0;
  color: var(--t1766);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-runbook h2 {
  margin: 0;
  color: var(--t1767);
  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: var(--t1768);
}

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 var(--t1769);
  border-radius: 999px;
  color: var(--t1770);
  font-size: 16px;
  font-weight: 900;
  background: var(--t1771);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li:first-child span {
  border-color: var(--t1772);
  background: linear-gradient(180deg, var(--t1773), var(--t1774));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline strong {
  max-width: 86px;
  color: var(--t1775);
  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 var(--t1776);
  border-radius: 999px;
  color: var(--t1777);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--t1778);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda span::before {
  content: "\2192\00a0";
  color: var(--t1779);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-timeline li.is-coda strong {
  color: var(--t1780);
  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: var(--t1781);
  font-size: 13px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-note a {
  color: var(--t1782);
  text-decoration: none;
  border-bottom: 1px solid var(--t1783);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-note a:hover {
  border-bottom-color: var(--t1784);
}

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 var(--t1785);
}

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: var(--t1770);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--t1786) 0%, var(--t1787) 100%);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-flow-heading h2 {
  margin: 0;
  color: var(--t77);
  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 var(--t152);
}

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: var(--t1788);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--t1789);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item h3 {
  margin: 0 0 4px;
  color: var(--t1790);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item p {
  grid-column: 2;
  margin: 0;
  color: var(--t95);
  font-size: 14px;
  line-height: 1.48;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-good > span {
  color: var(--t1791);
  background: var(--t1792);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-good h3 {
  color: var(--t1793);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-warning > span {
  color: var(--t1794);
  background: var(--t1795);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-action-item.is-warning h3 {
  color: var(--t1796);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-visual-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--t152);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t1797), var(--t1798));
}

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: var(--t1799);
  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 var(--t1785);
}

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 var(--t152);
  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 var(--t198);
  border-radius: 8px;
  background: var(--t182);
}

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, var(--t1800) 0 16%, transparent 17%),
    linear-gradient(160deg, var(--t1801), var(--t1802)),
    linear-gradient(180deg, var(--t1803), var(--t1804) 58%, var(--t1805) 60%, var(--t1806));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-profile-copy > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--t1770);
  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: var(--t1807);
  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: var(--t1808);
  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: var(--t1770);
  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 var(--t1809);
  border-radius: 10px;
  color: var(--t1770);
  font-size: 14px;
  font-weight: 900;
  background: var(--t1810);
}

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: var(--t1770);
  background: var(--t1811);
}

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: var(--t1694);
  color: var(--t1695);
  background: var(--t201);
  box-shadow: 0 0 0 1px var(--t358), 0 10px 22px var(--t105);
}

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 var(--t183);
}

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: var(--t1770);
  font-size: 16px;
  line-height: 1.1;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-aircraft-stats em {
  color: var(--t1812);
  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: var(--t1770);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-title span {
  color: var(--t1813);
  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 var(--t183);
  border-bottom: 1px solid var(--t183);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-empty-message {
  min-height: 92px;
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed var(--t170);
  border-radius: 8px;
  color: var(--t1814);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  background: var(--t1815);
}

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 var(--t1816);
  border-radius: 8px;
  background: var(--t1817);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row strong,
body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-row span {
  color: var(--t1818);
  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, var(--t1819) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--t1820), var(--t1821));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-photo--blue {
  background:
    linear-gradient(18deg, var(--t1819) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--t1822), var(--t1823));
}

body[data-active-view="dashboard-guide"] .dashboard-guide-fleet-photo--gray {
  background:
    linear-gradient(18deg, var(--t1819) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--t1824), var(--t1825));
}

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 var(--t1826);
  color: var(--t1818);
  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: var(--t1808);
  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 var(--t1827);
  border-radius: 8px;
  color: var(--t1828);
  font-size: 14px;
  font-weight: 800;
  background: var(--t1829);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-callout span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--t1830);
  background: var(--t1831);
}

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: var(--t1832);
}

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 var(--t1833);
  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: var(--t1832);
}

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 var(--t1833);
  border-left: 7px solid transparent;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table {
  overflow-x: auto;
  padding: 15px;
  border: 1px solid var(--t1834);
  border-radius: 8px;
  background: var(--t1835);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table h3 {
  margin: 0 0 10px;
  color: var(--t1828);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-monitor-table th {
  width: 33%;
  color: var(--t1836);
  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 var(--t129);
}

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: var(--t1770);
  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: var(--t1837);
  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 var(--t183);
}

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 var(--t183);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide h4 {
  color: var(--t1790);
  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 var(--t1785);
}

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: var(--t316);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-review-settings-guide dd {
  color: var(--t1838);
  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: var(--t1839);
  background: var(--t1840);
}

body[data-active-view="dashboard-guide"] .status-pill.is-waiting {
  color: var(--t1841);
  background: var(--t1795);
}

body[data-active-view="dashboard-guide"] .status-pill.is-error {
  color: var(--t1842);
  background: var(--t1843);
}

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: var(--t1844);
  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 var(--t1845);
  border-radius: 8px;
  background: var(--t1846);
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-grid article.is-recommended {
  border-color: var(--t1847);
  background: var(--t1848);
}

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: var(--t1849);
  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: var(--t1850);
  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 var(--t183);
  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: var(--t1775);
  font-size: 15px;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-detector-grid p {
  margin: 0;
  padding: 0 13px 15px;
  color: var(--t1850);
  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 var(--t129);
  border-radius: 7px;
  background: var(--t1851);
}

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: var(--t1852);
  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 var(--t1785);
}

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 var(--t198);
  }

  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 var(--t198);
  }
}

@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 var(--t198);
    border-radius: 8px;
    background: var(--t1853);
  }

  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 var(--t183);
  }

  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 var(--t183);
  }
}

/* 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 var(--t1785);
}

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 var(--t1845);
  border-radius: 10px;
  background: var(--t1854);
}

body[data-active-view="dashboard-guide"] .dgd-head h3 {
  margin: 0 0 6px;
  color: var(--t1855);
  font-size: 18px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dgd-watch {
  margin: 0;
  color: var(--t1814);
  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 var(--t198);
  border-radius: 8px;
  background: var(--t1856);
}

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: var(--t1857);
  border: 1px solid var(--t1858);
  color: var(--t1859);
  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: var(--t1775);
  font-size: 13px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip span {
  color: var(--t1732);
  font-size: 11px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-chip em {
  color: var(--t1860);
  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 var(--t1785);
}

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: var(--t1775);
  font-size: 13.5px;
}

body[data-active-view="dashboard-guide"] .dgd-opc-glossary-grid p {
  margin: 0;
  color: var(--t1861);
  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 var(--t1785);
}

body[data-active-view="dashboard-guide"] .dgd-legend-title {
  margin: 0 0 7px;
  color: var(--t1862);
  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: var(--t1850);
  font-size: 12.5px;
  line-height: 1.42;
}

body[data-active-view="dashboard-guide"] .dgd-legend strong {
  color: var(--t1775);
}

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: var(--t1863);
}

body[data-active-view="dashboard-guide"] .dgd-sw-mid {
  background: var(--t1195);
  border: 1px solid var(--t584);
}

body[data-active-view="dashboard-guide"] .dgd-sw-range {
  background: var(--t1864);
  border: 1px dashed var(--t572);
}

body[data-active-view="dashboard-guide"] .dgd-sw-line {
  left: 6px;
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: var(--t1865);
}

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: var(--t1855);
  font-size: 15px;
  font-weight: 900;
}

body[data-active-view="dashboard-guide"] .dashboard-guide-sensitivity-head p {
  margin: 0 0 10px;
  color: var(--t1850);
  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 var(--t129);
  border-radius: 8px;
  background: var(--t1866);
}

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: var(--t1298);
  font-size: 12px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dgd-why {
  margin: 0 0 12px;
  color: var(--t1852);
  font-size: 13.5px;
  line-height: 1.5;
}

body[data-active-view="dashboard-guide"] .dgd-why span {
  display: block;
  margin-bottom: 3px;
  color: var(--t1862);
  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: var(--t1850);
  font-size: 13px;
  line-height: 1.45;
  border-left: 2px solid var(--t1858);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-notice {
  border-left-color: var(--t1867);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-warn {
  border-left-color: var(--t1868);
}

body[data-active-view="dashboard-guide"] .dgd-points li.dgd-next {
  border-left-color: var(--t1869);
}

body[data-active-view="dashboard-guide"] .dgd-points strong {
  color: var(--t1775);
}

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 var(--t1845);
  border-radius: 10px;
  background: var(--t1854);
}

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: var(--t1775);
  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: var(--t1870);
  background: var(--t1871);
  border-color: var(--t509);
}

body[data-active-view="dashboard-guide"] .dgs-chip--review {
  color: var(--t1872);
  background: var(--t1873);
  border-color: var(--t1874);
}

body[data-active-view="dashboard-guide"] .dgs-chip--sensor {
  color: var(--t1875);
  background: var(--t1876);
  border-color: var(--t1877);
}

body[data-active-view="dashboard-guide"] .dgs-chip--high {
  color: var(--t1878);
  background: var(--t1734);
  border-color: var(--t1858);
}

body[data-active-view="dashboard-guide"] .dgs-lede {
  margin: 0 0 10px;
  color: var(--t1879);
  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: var(--t1850);
  font-size: 13px;
  line-height: 1.45;
}

body[data-active-view="dashboard-guide"] .dgs-steps strong {
  color: var(--t1775);
}

body[data-active-view="dashboard-guide"] .dgs-takeaway {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--t1785);
  color: var(--t1880);
  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, var(--t1881)); margin: 0.25rem 0 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-color, var(--t1882));
}
.link-action {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-color, var(--t1883)); text-decoration: underline;
  font: inherit;
}
.link-action:hover, .link-action:focus-visible { color: var(--accent-color-strong, var(--t1884)); }

.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, var(--t1736)); }
.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: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--t548);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--t549), var(--t602));
  box-shadow: inset 0 1px 0 var(--t168);
}
.account-hero-panel .account-avatar { flex: none; width: 48px; height: 48px; font-size: 17px; }
.account-hero-id { display: grid; gap: 2px; min-width: 0; }
.account-hero-panel .eyebrow { margin: 0; }
.account-hero-panel h2 { margin: 0; font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-hero-email { margin: 0; color: var(--muted); font-size: 13px; }
.account-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.account-hero-chips:empty { display: none; }

.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: var(--t12);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.account-chip--role { border-color: var(--t1885); color: var(--t616); }
.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 var(--t40);
}
.account-view-row:first-child { border-top: none; }
.account-view-label {
  flex: none;
  color: var(--t1886);
  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: var(--t610);
  font-size: 14px;
  font-weight: 650;
  word-break: break-word;
}
.account-view-empty { color: var(--t1887); font-weight: 600; }

.account-view-disclosure { border-top: 1px solid var(--t40); }
.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 var(--t40);
  color: var(--t1888);
  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 var(--t40);
}
.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 var(--t693);
  background: var(--t1871);
  color: var(--t1870);
  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: var(--t1889); background: var(--t1890); }
.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;
}
/* Test time skipping: the account's adjusted current date, green so it is
   unmistakably a test-state indicator rather than the real date. */
.topbar-time-skip-date {
  padding: 6px 10px;
  border: 1px solid var(--t1891);
  border-radius: 999px;
  background: var(--t1892);
  color: var(--t1893);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.account-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.account-usage-stat {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: var(--t1894);
  border: 1px solid var(--t1895);
}
.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; }

.account-ai-packs {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--t563);
  border-radius: 10px;
  background: var(--t607);
}
.account-ai-packs[hidden] { display: none; }
.account-ai-packs-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.account-ai-packs-heading h3 { margin: 2px 0 0; font-size: 18px; }
.account-ai-packs-balance { margin: 0; color: var(--accent); font-size: 14px; font-weight: 800; text-align: right; }
.account-ai-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.account-ai-pack-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--t563);
  border-radius: 9px;
  background: var(--t1894);
}
.account-ai-pack-card strong { font-size: 17px; }
.account-ai-pack-card p { min-height: 38px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.account-ai-pack-price { color: var(--text); font-size: 22px; font-weight: 800; }
.account-ai-pack-card button { justify-self: start; margin-top: 4px; }
.account-ai-pack-status:empty { display: none; }
.account-ai-pack-history { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--t563); }
.account-ai-pack-history h4 { margin: 0; font-size: 13px; }
.account-ai-pack-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.account-ai-pack-history-row strong { color: var(--text); }
.account-ai-pack-dialog[open] { max-width: min(620px, calc(100vw - 32px)); }

/* The pay bar reuses the plan-change class, whose base rule is display:none;
   without this the in-app Buy button never renders and elements mode has no
   way to pay. Fixed card width keeps the dialog geometry stable while the
   Stripe accordion expands (extension overlays anchor to measured rects). */
.account-ai-pack-dialog.is-embed-active .account-plan-change-paybar {
  display: grid;
  gap: 8px;
}

.account-ai-pack-dialog.is-embed-active .upload-dialog-card {
  width: min(620px, calc(100vw - 32px));
}
/* No reserved min-height on the embed: with the payment accordion collapsed
   (or the iframe self-sizing) a fixed floor just leaves dead space under the
   dialog. */
.account-ai-pack-dialog.is-embed-active #accountAiPackCheckoutBtn { display: none; }
.ai-summary-limit-purchase { display: inline-flex; width: fit-content; margin-top: 8px; text-decoration: none; }

/* 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 var(--t563);
  border-radius: 8px;
  background: var(--t607);
}
.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: var(--t1224); }
.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 var(--t563);
  border-radius: 8px;
  background: var(--t607);
}
.account-control-row.is-danger {
  border-color: var(--t1896);
  background: var(--t1897);
}
.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: var(--t52); }
#accountUpgradeSubscriptionBtn:disabled,
#accountCancelSubscriptionBtn:disabled,
#accountDeleteDataBtn:disabled { cursor: not-allowed; }

/* Test-user time skipping */
.account-time-skip-copy { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.account-time-skip-controls {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--t563);
  border-radius: 8px;
  background: var(--t607);
}
.account-time-skip-days-field { max-width: 180px; }
.account-time-skip-date-field { max-width: 290px; }
.account-time-skip-date-parts { display: flex; gap: 8px; }
/* Tight padding so two digits plus the native spin buttons never clip
   inside the fixed widths (the shared field padding is 13px a side), and
   the up/down tickers stay visible instead of appearing only on hover. */
.account-time-skip-date-parts input { padding: 0 8px; }
.account-time-skip-date-parts input::-webkit-inner-spin-button {
  opacity: 1;
  margin-left: 4px;
}
#accountTimeSkipMonthInput, #accountTimeSkipDayInput { width: 74px; }
#accountTimeSkipYearInput { width: 100px; }
.account-time-skip-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.account-time-skip-fields .upload-field { flex: 0 1 auto; }
#accountTimeSkipRange { width: 100%; accent-color: var(--teal); }
.account-time-skip-summary { font-size: 14px; font-weight: 750; margin: 0; }
/* Outcome/status lines breathe instead of sitting flush under Skip Time. */
.account-time-skipping-panel #accountTimeSkipStatus,
.account-time-skipping-panel #accountTimeSkipError { margin: 12px 0 0; }
.account-time-skip-timeline { display: grid; gap: 8px; margin-top: 12px; }
.account-time-skip-timeline h3 { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.account-time-skip-timeline-table {
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
  font-size: 13px;
}
.account-time-skip-timeline-table th,
.account-time-skip-timeline-table td {
  text-align: left;
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--t1895);
}
.account-time-skip-timeline-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-time-skip-timeline-table td:first-child { white-space: nowrap; color: var(--text); }
.account-time-skip-timeline-table td:last-child { color: var(--muted); }
.account-time-skip-actions { display: flex; margin-top: 12px; }
#accountTimeSkipBtn: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 var(--t572);
  border-radius: 10px;
  background: var(--t233);
}
.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: var(--t1898);
}
.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;
  /* Pinned below the sticky topbar (z-index 10, ~64px tall) so page
     scrolling never slides the rail under the header; a very tall rail
     scrolls internally instead of pushing past the viewport. Desktop only —
     the ≤720px stack resets this to static. Keep this offset matched to the
     topbar height: if it exceeds the rail's natural resting position, sticky
     shoves the rail down immediately (on any tab tall enough to give it
     room), misaligning it with the hero. The New UI override below exists
     for exactly that reason. */
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
}

/* New UI: the rail's natural resting position is flush under the topbar (no
   gap), so any sticky offset above the topbar's real height shoves the rail
   down immediately on tabs tall enough to give it room (Profile/Plan/
   Settings), misaligning it with the hero panel. --topbar-h is kept current
   by a ResizeObserver in fleet-sidebar.ts, so the rail rests flush and pins
   exactly under the topbar when scrolling. */
body[data-new-ui] .admin-sidebar {
  top: var(--topbar-h, 51px);
  max-height: calc(100vh - var(--topbar-h, 51px) - 20px);
}

/* Desktop admin: pin the rail exactly where it rests — the topbar plus the
   admin shell's 24px top padding — so page scrolling never moves it at all
   (a sticky offset above the resting position lets it slide up before
   pinning, which reads as the sidebar drifting while you scroll). */
body[data-new-ui] .admin-view .admin-sidebar {
  top: calc(var(--topbar-h, 51px) + 24px);
  max-height: calc(100vh - var(--topbar-h, 51px) - 44px);
}

.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: var(--t81); }

.admin-sidebar-item.is-active {
  background: var(--blue);
  color: var(--t483);
  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 var(--t1899);
  border-radius: 8px;
  background: var(--t1900);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.admin-users-toolbar input:focus-visible {
  outline: 2px solid var(--t1901);
  outline-offset: 1px;
}

/* Uploads/Errors analytics tabs: the Errors search box shares the
   users-toolbar input look, but the include-test-users checkboxes must keep
   their native size instead of the toolbar's stretched text-input
   treatment. */
.admin-errors-include-test {
  margin: 0;
}

.admin-users-toolbar .admin-errors-include-test input,
.admin-analytics-filter-row .admin-errors-include-test input {
  flex: 0 0 auto;
  inline-size: auto;
  block-size: auto;
}

/* Row under the range chips for panel-level filters (Uploads tab's
   include-test-users toggle), right-aligned to match the Errors tab's
   checkbox placement at the end of its search row. */
.admin-analytics-filter-row {
  display: flex;
  justify-content: flex-end;
  /* Top gap mirrors the Errors tab, where the checkbox centers inside its
     36px-tall search row and so sits ~12px below the range chips. */
  margin: 12px 0;
}

/* Admin Debug > Aircraft Images: category table thumbnails and the
   full-size lightbox viewer. The art PNGs carry their own dark blueprint
   background, so the tiles read fine in both themes without inversion. */
.admin-art-models {
  max-inline-size: 260px;
}

.admin-art-prompt {
  max-inline-size: 360px;
  font-size: 12px;
}

.admin-art-thumbs {
  white-space: nowrap;
}

.admin-art-thumb {
  padding: 0;
  margin-inline-end: 6px;
  border: 1px solid var(--t1899);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  vertical-align: middle;
}

.admin-art-thumb img {
  display: block;
  inline-size: 72px;
  block-size: 72px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--admin-art-tile);
}

/* The art is transparent white line strokes (same files the app serves), so
   every surface showing it paints a fully OPAQUE tile behind it — the theme
   surface tokens are translucent and let page content bleed through — and
   light theme inverts only the strokes, mirroring img.is-default-art in the
   aircraft frames. */
:root {
  --admin-art-tile: #212226;
}

:root[data-theme="light"] {
  --admin-art-tile: #f2f3f5;
}

:root[data-theme="light"] .admin-art-thumb img,
:root[data-theme="light"] .admin-art-regen-body img,
:root[data-theme="light"] .admin-art-lightbox figure img {
  filter: invert(1);
}

.admin-art-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-inline-size: none;
  max-block-size: none;
  overflow: visible;
}

.admin-art-lightbox[open] {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-art-lightbox::backdrop {
  background: rgba(4, 6, 12, 0.82);
}

.admin-art-lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Both of a category's views render side by side; the arrows step whole
   categories (two images at a time). */
.admin-art-lightbox-views {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-art-lightbox-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admin-art-lightbox-pane img {
  max-inline-size: min(42vw, 620px);
  max-block-size: 70vh;
  border-radius: 12px;
  background: var(--admin-art-tile);
}

.admin-art-lightbox-pane-label {
  color: #fff;
  font-size: 12px;
}

.admin-art-lightbox figcaption {
  color: #fff;
  font-size: 13px;
}

.admin-art-lightbox-nav,
.admin-art-lightbox-close {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

.admin-art-lightbox-nav:hover,
.admin-art-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.admin-art-lightbox-nav svg,
.admin-art-lightbox-close svg {
  inline-size: 22px;
  block-size: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.admin-art-lightbox-close {
  position: fixed;
  inset-block-start: 16px;
  inset-inline-end: 16px;
}

.admin-art-lightbox-regen {
  align-self: center;
}

/* Off-local the button stays hoverable (title tooltip explains why) but
   reads and behaves as disabled. */
.admin-art-lightbox-regen.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Regenerate dialog: the image stays in view beside the editable prompt. */
.admin-art-regen-dialog .upload-dialog-card {
  max-inline-size: 720px;
}

.admin-art-regen-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-block-end: 10px;
}

.admin-art-regen-pane {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.admin-art-regen-pane figcaption {
  font-size: 12px;
  font-weight: 600;
}

.admin-art-regen-body img {
  inline-size: 220px;
  max-inline-size: 100%;
  border-radius: 10px;
  background: var(--admin-art-tile);
}

.admin-art-regen-discard {
  align-self: flex-start;
}

.admin-art-regen-prompt-field {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.admin-art-regen-prompt-field textarea {
  inline-size: 100%;
  min-block-size: 150px;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid var(--t1899);
  border-radius: 8px;
  background: var(--t1900);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.admin-art-regen-note {
  font-size: 12px;
}

.admin-art-regen-flags {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--t1899);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.admin-art-regen-flags legend {
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.admin-art-regen-flags label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Aircraft-count cells with registrations open the per-model popup. */
.admin-art-count-link {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.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 var(--t1902);
  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: var(--t1903);
  color: var(--text);
}

.admin-users-filter button.is-active {
  border-color: var(--t1901);
  background: var(--t48);
  color: var(--t1904);
}

.admin-panel-error {
  background: var(--t657);
  color: var(--t1905);
  border: 1px solid var(--t571);
  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);
}

/* The user tables expand to their full height and scroll with the page (the
   old desktop viewport-fit + internal vertical scroll was removed on request);
   the wrap still scrolls horizontally, with mouse drag-panning wired by
   wireUsersTableDragScroll in src/admin/admin-page.ts. */
#adminPanelUsers .admin-table-wrap.is-drag-scrolling,
#adminPanelTestUsers .admin-table-wrap.is-drag-scrolling {
  cursor: grabbing;
  user-select: none;
}

.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: var(--t355); }

.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 var(--t1906);
  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 var(--t1901);
  outline-offset: 1px;
}

.admin-engine-class-select:disabled { opacity: 0.65; cursor: not-allowed; }

.admin-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.admin-table-actions { white-space: nowrap; text-align: right; }

.admin-table .admin-row-number {
  width: 1%;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* 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 var(--t1907);
}
#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;
}

/* Wide enough for the select + enforcement toggle + trial state on one line;
   the table scrolls horizontally, so width buys back row height. */
.admin-plan-cell {
  min-width: 320px;
  padding-inline: 6px !important;
  text-align: left;
}

.admin-plan-controls {
  display: grid;
  justify-items: start;
  gap: 4px;
}

/* Select first, then the enforcement toggle and trial state on the SAME line
   so the row stays as short as the select itself. */
.admin-plan-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.admin-plan-controls-row .admin-plan-select {
  flex: 0 0 auto;
}

/* Trial state with the operator-change transition note stacked directly
   beneath it ("Trial: unused" / "Plan: Free -> Beta"). */
.admin-plan-trial-stack {
  display: grid;
  gap: 2px;
  justify-items: start;
  text-align: left;
}

/* The aircraft cell's +N count stays beside the label, never wrapped under. */
.admin-aircraft-cell {
  white-space: nowrap;
}

.admin-plan-transition {
  color: var(--t1908);
  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 var(--t1899);
  background: var(--t1900);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.admin-plan-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.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 var(--t1899);
  border-radius: 999px;
  background: var(--t1909);
  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: var(--t1910);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.admin-plan-enforcement-input:checked + .admin-plan-enforcement-track {
  border-color: var(--t1911);
  background: var(--t1912);
}

.admin-plan-enforcement-input:checked + .admin-plan-enforcement-track::after {
  transform: translateX(10px);
  background: var(--t1913);
}

.admin-plan-enforcement-input:focus-visible + .admin-plan-enforcement-track {
  outline: 2px solid var(--t1901);
  outline-offset: 2px;
}

/* One usage figure per column (AI / Aircraft / Flights), "count / limit"
   with ∞ for unlimited. */
.admin-usage-cell {
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.admin-plan-usage-metric strong {
  color: inherit;
  font-weight: 700;
}

.admin-plan-usage-metric.is-at {
  color: var(--t1914);
}

.admin-plan-usage-metric.is-over {
  color: var(--danger-color, var(--t1736));
}

.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 var(--t1899);
  border-radius: 999px;
  background: var(--t1909);
  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: var(--t1915);
  box-shadow: 0 1px 4px var(--t167);
  transition: transform 160ms ease, background 160ms ease;
}

.admin-boolean-input:checked + .admin-boolean-track {
  border-color: var(--t1916);
  background: var(--t1917);
}

.admin-boolean-input:checked + .admin-boolean-track::after {
  transform: translateX(16px);
  background: var(--t1918);
}

.admin-boolean-input:focus-visible + .admin-boolean-track {
  outline: 2px solid var(--t1919);
  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: var(--t848);
  color: var(--t1920);
  border-color: var(--t509);
}
.admin-status-approved {
  background: var(--t1921);
  color: var(--t1922);
  border-color: var(--t1923);
}
.admin-status-admin {
  background: var(--t1924);
  color: var(--t1925);
  border-color: var(--t1926);
}
.admin-status-stack {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.admin-status-suspended {
  background: var(--t1927);
  color: var(--t595);
  border-color: var(--t1928);
}
.admin-status-deletion {
  background: var(--t1929);
  color: var(--t1930);
  border-color: var(--t1931);
  font-size: 10px;
}
.admin-lifecycle-menu {
  position: relative;
  text-align: left;
}
.admin-lifecycle-menu > summary {
  min-width: 72px;
  padding: 7px 10px;
  border: 1px solid var(--t1902);
  border-radius: 8px;
  background: var(--t1932);
  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 var(--t1933);
  border-radius: 10px;
  background: var(--t1934);
  box-shadow: 0 14px 30px var(--t141);
}
.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: var(--t1935); }
.admin-lifecycle-menu button.is-destructive {
  margin-top: 4px;
  border-top: 1px solid var(--t1612);
  border-radius: 0 0 7px 7px;
  color: var(--t595);
}

/* 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 var(--t1902);
  border-radius: 8px;
  background: var(--t1936);
  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 var(--t1933);
  border-radius: 8px;
  background: var(--t1937);
  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 var(--t1933);
  border-radius: 10px;
  background: var(--t1934);
  box-shadow: 0 14px 30px var(--t141);
}

/* On small screens the Actions button sits mid-row, so a menu anchored to it
   runs off the side of the viewport. Float it as a bottom sheet instead — full
   width within the viewport and clear of the fixed tab bar. */
@media (max-width: 900px) {
  .admin-bulk-menu > div {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 84px;
    min-width: 0;
    max-width: none;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 18px 48px var(--t1938);
  }
}
.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: var(--t1935); }
.admin-bulk-plan-field { display: grid; gap: 6px; margin: 10px 0; }
.admin-bulk-plan-field select {
  padding: 8px 10px;
  border: 1px solid var(--t1902);
  border-radius: 8px;
  background: var(--t1932);
  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, var(--t472) 0%, var(--t1939) 100%);
  color: var(--t1940);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--t1941);
  width: 100%;
}
.impersonation-banner-text strong {
  font-weight: 700;
}
.impersonation-banner-button {
  background: var(--t1942);
  color: var(--t670);
  border: 1px solid var(--t1943);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.impersonation-banner-button:hover,
.impersonation-banner-button:focus {
  background: var(--t1944);
  color: var(--t483);
  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-ai-pack-readiness {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(80, 200, 140, 0.28);
  border-radius: 10px;
  color: #9de5bd;
  background: rgba(35, 130, 82, 0.1);
}

.admin-ai-pack-readiness.is-warning {
  border-color: rgba(245, 175, 70, 0.35);
  color: #ffd08a;
  background: rgba(160, 95, 20, 0.12);
}

.admin-ai-pack-editors {
  display: grid;
  gap: 14px;
}

.admin-ai-pack-operations {
  margin-top: 18px;
}

.admin-ai-adjustment-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 12, 22, 0.3);
}
.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, var(--t570), 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 var(--t1945);
  border-radius: 7px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}
.admin-plan-active-control::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t1946);
  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 var(--t5); }
.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: var(--t1947);
}
.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: var(--t56);
  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: var(--t1948); }
.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;
}
/* Debug tab: pipeline step chips. Colour carries the state, and the label
   repeats it in words so the table is readable without relying on colour. */
.admin-debug-step {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-debug-step.is-done { border-color: var(--t1949); color: var(--t1950); background: var(--t1279); }
.admin-debug-step.is-active { border-color: var(--t594); color: var(--t1951); background: var(--t56); }
.admin-debug-step.is-failed { border-color: var(--t687); color: var(--t1952); background: var(--t657); }
.admin-debug-step.is-partial { border-color: var(--t693); color: var(--t1953); background: var(--t1871); }
.admin-debug-step.is-pending,
.admin-debug-step.is-skipped { opacity: 0.55; }

/* Debug > AWS/Supabase Scaling: service cards with trigger meters and the
   pre-warm / floor controls. Colour never carries state alone — every chip
   and meter reading repeats it in words. */
.admin-scaling-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
}
.admin-scaling-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.admin-scaling-seg button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  cursor: pointer;
}
.admin-scaling-seg button.is-on {
  background: var(--brand-blue);
  color: #fff;
}
.admin-scaling-prodnote {
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
}
.admin-scaling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .admin-scaling-grid { grid-template-columns: 1fr; }
}
.admin-scaling-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 14px 16px;
  min-width: 0;
}
.admin-scaling-span { grid-column: 1 / -1; }
.admin-scaling-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 2px;
  font-size: 15px;
}
.admin-scaling-sub {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.admin-scaling-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-scaling-chip.is-good { border-color: var(--green); color: var(--green); }
.admin-scaling-chip.is-warn { border-color: var(--amber); color: var(--amber); }
.admin-scaling-chip.is-neutral { color: var(--muted); }
.admin-scaling-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
}
.admin-scaling-stat { display: flex; flex-direction: column; gap: 1px; }
.admin-scaling-k {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-scaling-v {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.admin-scaling-rule { margin-top: 10px; }
.admin-scaling-rule-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.admin-scaling-reading {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.admin-scaling-meter {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--line-soft);
  margin-top: 4px;
}
.admin-scaling-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--brand-blue);
}
.admin-scaling-fill.is-warn { background: var(--amber); }
.admin-scaling-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--text);
  opacity: 0.6;
}
.admin-scaling-tick.is-off {
  width: 0;
  background: none;
  border-left: 2px dashed var(--muted);
  opacity: 0.4;
}
.admin-scaling-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
.admin-scaling-ctl { display: flex; flex-direction: column; gap: 4px; }
.admin-scaling-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.admin-scaling-stepper button {
  appearance: none;
  border: none;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.admin-scaling-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.admin-scaling-stepper [data-scaling-value] {
  min-width: 72px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.admin-scaling-hint {
  flex: 1 1 240px;
  font-size: 11.5px;
  color: var(--muted);
  margin: 8px 0 0;
}
.admin-scaling-poll {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  animation: admin-scaling-poll-pulse 1.2s ease-in-out infinite;
}
@keyframes admin-scaling-poll-pulse {
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-scaling-poll { animation: none; }
}
.admin-scaling-history {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 8px;
}
.admin-scaling-history summary {
  cursor: pointer;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.admin-scaling-chart { margin-top: 8px; }
.admin-scaling-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.admin-scaling-chart svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 3px;
  border-radius: 4px;
  background: var(--line-soft);
}
.admin-scaling-chart-line {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.admin-scaling-chart-threshold {
  stroke: var(--amber);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.admin-scaling-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.admin-scaling-locked {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 26px 24px;
  max-width: 62ch;
}
.admin-scaling-locked p { margin: 0 0 8px; color: var(--muted); }
.admin-scaling-locked p:first-child { color: var(--text); }
#adminDebugTabs .tab.is-unavailable { opacity: 0.5; }

/* Long monitor filenames must not push the timing columns off the panel. */
.admin-debug-file {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-debug-error {
  margin-top: 3px;
  max-width: 34ch;
  color: var(--t1952);
  font-size: 11px;
  line-height: 1.35;
}

.admin-debug-autorefresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-usage-model { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.admin-usage-unpriced { color: var(--t1948); }

/* Analytics sub-tabs: the Analytics panel carries its own tab strip (reusing
   the app's .tabs / .tab look) with one panel per section. */
.admin-analytics-tabs {
  margin: 4px 0 6px;
  border-bottom: 1px solid var(--line);
}
.admin-analytics-tabs[hidden] { display: none; }
.admin-analytics-panel[hidden] { display: none; }
/* Each sub-panel's first label sits tight under the tab strip; its own range
   chips ride on the right of that same row. */
.admin-analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.admin-analytics-toolbar .admin-section-label { margin: 0; }

/* Data-source environment tag appended to analytics headings: "(prod)" for
   Google Analytics numbers, "(local|dev|prod)" for this server's database. */
.admin-env-tag {
  font-weight: 400;
  color: var(--muted);
}
.admin-panel-note {
  margin: 0 2px 16px;
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
}

/* Activation funnel: one row per step, bar width relative to the first step. */
.admin-funnel {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-funnel-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-funnel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.admin-funnel-label { font-size: 13px; font-weight: 600; }
.admin-funnel-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.admin-funnel-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: var(--t1954);
  overflow: hidden;
}
.admin-funnel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--t364);
}
.admin-funnel-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Retained Flights section (issue #404) */
.admin-retained-gate {
  max-width: 560px;
  margin: 24px 2px;
  padding: 20px;
  border: 1px solid var(--border, var(--t15));
  border-radius: 12px;
}
.admin-retained-gate-copy { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.admin-retained-gate-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-retained-gate-controls select { min-width: 220px; }
.admin-retained-session-note { color: var(--muted); font-size: 12px; margin: 4px 2px 12px; }
.admin-retained-breadcrumb { font-size: 13px; margin: 12px 2px; display: flex; gap: 8px; align-items: center; }
.admin-retained-breadcrumb code { font-size: 12px; }
.admin-retained-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-retained-actions .secondary-action { font-size: 12px; padding: 4px 10px; }
.admin-retained-delete { color: var(--t1955); border-color: var(--t1956); }
.admin-plan-tab .admin-status-badge { margin-left: 6px; }
.admin-retained-bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 2px 12px; }
.admin-retained-bulkbar .secondary-action { font-size: 12px; padding: 4px 10px; }
.admin-retained-bulk-count { font-size: 13px; color: var(--muted); min-width: 80px; }
@media (max-width: 720px) {
  .account-usage,
  .account-ai-pack-grid { grid-template-columns: 1fr; }
  .account-ai-packs-heading { display: grid; }
  .account-ai-packs-balance { text-align: left; }
  .account-ai-pack-history-row { grid-template-columns: 1fr; gap: 3px; }
  .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: var(--t1948);
}

@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 var(--t1957);
}
.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, var(--t1958) 0%, var(--t1959) 100%);
  color: var(--t1960);
  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: var(--t1961); }
/* 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 {
  /* The overflow-x carousel clips the cards' 40px-blur box-shadows at the
     padding box, leaving a hard shadow edge. Padding gives the shadows room
     inside the clip; the negative margins cancel it so the cards stay put
     (net: 8px top, 0 sides, 10px bottom — the original spacing). */
  margin: -16px -28px -48px;
  padding: 24px 28px 58px;
  text-align: left;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  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: var(--t593);
  border: 1px solid var(--t486);
  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: var(--t81);
  color: var(--accent, var(--t1962));
  flex-shrink: 0;
}
.approval-status-dialog .approval-status-row--success .approval-status-icon {
  color: var(--t1963);
  background: var(--t1964);
}
.approval-status-dialog .approval-status-row--pending .approval-status-icon {
  color: var(--t1965);
  background: var(--t1966);
}
.approval-status-dialog .approval-status-row--info .approval-status-icon {
  color: var(--t1962);
  background: var(--t1967);
}
.approval-status-dialog .approval-status-row--question .approval-status-icon {
  color: var(--t1968);
  background: var(--t1969);
}
.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: var(--t1962); }

/* 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: var(--t13);
  border-radius: 3px;
  overflow: hidden;
}
.profile-wizard-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--t1970), var(--t1971));
  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: var(--t1972);
}
.profile-wizard-step input,
.profile-wizard-step select {
  padding: 0.55rem 0.7rem;
  background: var(--t500);
  color: inherit;
  border: 1px solid var(--t11);
  border-radius: 8px;
  font: inherit;
}
.profile-wizard-step input:focus,
.profile-wizard-step select:focus {
  outline: none;
  border-color: var(--t1973);
  box-shadow: 0 0 0 2px var(--t1974);
}
.edit-email-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--t1972);
}
.edit-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  background: var(--t500);
  color: inherit;
  border: 1px solid var(--t11);
  border-radius: 8px;
  font: inherit;
}
.edit-email-input:focus {
  outline: none;
  border-color: var(--t1973);
  box-shadow: 0 0 0 2px var(--t1974);
}
.profile-wizard-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--t1975);
}
.profile-wizard-optional {
  color: var(--t1976);
  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: var(--t12);
  border: 1px solid var(--t486);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px var(--t1977);
}
.approval-gate-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}
.approval-gate-card > p {
  margin: 0 0 20px;
  color: var(--t1978);
  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: var(--t593);
  border: 1px solid var(--t40);
  border-radius: 10px;
}
.approval-gate-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--t1979);
  display: inline-block;
  position: relative;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.approval-gate-step.is-complete .approval-gate-check {
  background: var(--t1980);
  border-color: var(--t1981);
}
.approval-gate-step.is-complete .approval-gate-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--t959);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.approval-gate-step.is-complete .approval-gate-step-body h3 {
  color: var(--t1982);
}
.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: var(--t1983);
}
.approval-gate-step-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* "Agree to the terms" checkbox row inside the terms checklist step. */
.approval-gate-terms-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.approval-gate-terms-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  cursor: pointer;
}
.approval-gate-terms-agree input[type="checkbox"]:disabled {
  cursor: default;
}
.approval-gate-step.is-complete .approval-gate-terms-agree {
  cursor: default;
  color: var(--t1982);
}
/* Skinny screens: stack the step's action buttons (e.g. Resend email / Edit
   email) instead of sitting them side by side, which otherwise squeezes the
   step description into a sliver of a column. */
@media (max-width: 620px) {
  .approval-gate-step-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .approval-gate-step-actions > button {
    width: 100%;
    white-space: nowrap;
  }
}
/* "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: var(--t1982);
  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: var(--t1982);
}

.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: var(--t13);
  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, var(--t1970), var(--t1971));
  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, var(--t1984));
}
.aircraft-wizard-bar {
  width: 100%;
  height: 4px;
  background: var(--t1954);
  border-radius: 2px;
  overflow: hidden;
}
.aircraft-wizard-bar-fill {
  height: 100%;
  background: var(--accent, var(--t598));
  width: 0%;
  transition: width 180ms ease;
}
.aircraft-wizard-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--t1985);
  border: 1px solid var(--t1986);
  color: var(--t796);
  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.aircraft-optional-section,
#aircraftEditDialog[data-aircraft-wizard-step="performance"]     .aircraft-form-section.aircraft-fuel-pressure-section,
#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;
}

/* 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: var(--t1601);
  overflow: hidden;
}

.upload-mini-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--t1987);
  transition: width 240ms ease;
}

.ai-work-notice.is-ready .upload-mini-fill {
  background: var(--t1988);
}

.upload-mini-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--t74);
}

.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;
  /* Fixed (not max) height: paging between versions with different amounts
     of content must not resize the dialog. Long lists scroll inside. */
  height: min(60vh, 640px);
  display: grid;
  gap: 18px;
  align-content: start;
}

.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: var(--t1989);
  color: var(--brand-blue);
  border: 1px solid var(--t1990);
}

.version-change-tag.is-bug {
  background: var(--t1871);
  color: var(--amber);
  border: 1px solid var(--t509);
}

.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, var(--t1989), var(--t1991));
  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: var(--t511);
  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: var(--t1992);
  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: var(--t1993);
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
  cursor: text;
}
.share-link-url:focus-visible {
  outline: 2px solid var(--t1098);
  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: var(--t351); 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: var(--t1994); background: var(--t201); color: var(--t346); font-size: 13px; }
.fb-toolbar .secondary-action:hover,
.fb-toolbar .secondary-action:focus-visible { border-color: var(--t1995); background: var(--t48); }

.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: var(--t593); }
.fb-chip-review, .fb-chip-mode-review { color: var(--amber); border-color: var(--t693); background: var(--t219); }
.fb-chip-normal, .fb-chip-mode-no-specific-concern { color: var(--green); border-color: var(--t1949); background: var(--t682); }
.fb-chip-context { color: var(--teal); border-color: var(--t1996); background: var(--t845); }
.fb-chip-limited, .fb-chip-mode-limited-evidence { color: var(--muted); }
.fb-chip-trace { color: var(--purple); border-color: var(--t1997); background: var(--t1998); }
.fb-chip-quality { color: var(--green); border-color: var(--t1949); background: var(--t682); }

.fb-walkthrough { min-width: 0; border-bottom: 1px solid var(--line-soft); }
.fb-flight-wide-review { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 18px 0; padding: 9px 12px; border: 1px solid var(--t1999); border-radius: 7px; color: var(--muted); font-size: 11.5px; }
.fb-flight-wide-ref { padding: 0; border: 0; background: transparent; color: var(--amber); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fb-flight-wide-ref:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.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 var(--t600); 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: var(--t2000); }
.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 { width: 100%; max-width: 30ch; font-size: 11px; font-weight: 650; line-height: 1.35; color: var(--amber); white-space: normal; overflow-wrap: anywhere; text-wrap: pretty; }
.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: var(--t2001); }
.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, .fb-phase-unassigned { border-top-color: var(--t2002); }
.fb-phase-limited .fb-dot, .fb-phase-not-evaluated .fb-dot, .fb-phase-unassigned .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: var(--t2003); }
.fb-story { display: grid; gap: 0.8rem; min-width: 0; padding: 0; border: 0; background: transparent; }
.fb-story:focus { outline: 1px solid var(--t583); 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-system-details { display: grid; gap: 0.8rem; min-width: 0; margin-top: 0.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.fb-system-details > .fb-sec-label { margin-bottom: 0; }
.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: var(--t2004); 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: var(--t222); color: var(--amber, var(--t1061)); border: 1px solid var(--t1999); text-transform: none; letter-spacing: 0.02em; }

.fb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: start; gap: 0.5rem 1.1rem; padding: 0.15rem 0; }
.fb-fact { min-width: 0; padding: 0.5rem 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.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); }
.fb-engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1.2rem 2rem; }
.fb-engine-readings { min-width: 0; }
.fb-engine-readings h5 { margin: 0 0 0.65rem; font-size: 15px; font-weight: 650; }
.fb-engine-readings dl { margin: 0; display: grid; gap: 0.65rem; }
.fb-engine-readings dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.fb-engine-readings dt { color: var(--muted); font-size: 13px; }
.fb-engine-readings dd { margin: 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-measurement-context { margin: 0; color: var(--muted); font-size: 13px; }
.fb-shared-readings { color: var(--muted); font-size: 13px; }
.fb-shared-readings summary { cursor: pointer; padding: 0.35rem 0; }
.fb-shared-readings > p { margin: 0.4rem 0 0.8rem; }
.fb-shared-readings .fb-engine-readings { max-width: 24rem; }
.fb-shared-readings .fb-engine-readings h5 { display: none; }


/* 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 var(--t2005); border-radius: 7px; padding: 0.35rem 0.65rem; background: var(--t355); cursor: pointer; }
.fb-graph-link:hover { background: var(--t56); }
.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: var(--t2003); }
.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-cylinder-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fb-system-cylinder-fact { white-space: nowrap; }
.fb-system-cylinder-fact > span { color: var(--text); font-weight: 650; }
.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: var(--t2003); 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 var(--t2006); border-radius: 9px; background: var(--t2007); 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 var(--t224); 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-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 var(--t2008);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--t2009), var(--t2010));
  color: var(--t506);
  cursor: pointer;
  box-shadow: 0 10px 28px var(--t6);
}
body[data-approval-gate] .local-mail-fab:not([hidden]) {
  display: flex;
}
.local-mail-fab svg {
  width: 20px;
  height: 20px;
}
.local-mail-fab:hover {
  color: var(--t8);
  border-color: var(--t2011);
}

/* 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 var(--t600);
  background: linear-gradient(180deg, var(--t2012), var(--t2013));
  box-shadow: 0 10px 24px var(--t2014);
  /* Always white: the green gradient stays dark in both themes, but --t8
     flips to black in light mode and would go black-on-green. */
  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); }

/* --- Plan-limit resolution + keep-selection + downgrade-success dialogs --- */
/* The dialog element itself must be widened past the 620px .upload-dialog
   base cap, or the wider card overflows it to the right and the whole modal
   sits visibly off-center (same trap as the trial-promo dialog). */
.upload-dialog.plan-limit-resolution-dialog { max-width: min(860px, calc(100vw - 48px)); }
.plan-limit-resolution-card {
  max-width: 860px;
  width: min(860px, calc(100vw - 48px));
}
.plan-limit-resolution-subhead {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.plan-limit-resolution-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-height: min(52vh, 560px);
  overflow-y: auto;
}
.plan-limit-resolution-footnote {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted, var(--t2015));
}
.upload-dialog.plan-keep-dialog { max-width: min(760px, calc(100vw - 48px)); }
.plan-keep-dialog-card {
  max-width: 760px;
  width: min(760px, calc(100vw - 48px));
}
.plan-keep-drag-note {
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: var(--muted, var(--t2015));
}
.plan-keep-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan-keep-columns > section > h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.plan-keep-counter {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted, var(--t2015));
}
.plan-keep-counter.is-satisfied { color: var(--t1893); }
.plan-keep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(40vh, 320px);
  overflow-y: auto;
  border: 1px solid var(--t2016);
  border-radius: 10px;
  user-select: none;
}
.plan-keep-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--t2017);
}
.plan-keep-list li:last-child { border-bottom: none; }
.plan-keep-list li:hover { background: var(--t2018); }
.plan-keep-list li.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.plan-keep-list input[type="checkbox"] {
  pointer-events: none;
  flex: 0 0 auto;
}
.plan-keep-item-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan-keep-item-title {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plan-keep-item-meta {
  font-size: 11.5px;
  color: var(--muted, var(--t2015));
}
@media (max-width: 720px) {
  .plan-keep-columns { grid-template-columns: 1fr; }
}

/* --- Archive tab: aircraft groups with expandable flight lists --- */
.account-archive-group {
  border: 1px solid var(--t810);
  border-radius: 12px;
  overflow: hidden;
}
.account-archive-group + .account-archive-group { margin-top: 12px; }
.account-archive-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-archive-group-head .account-aircraft-main { cursor: pointer; }
.account-archive-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, var(--t2015));
  cursor: pointer;
}
.account-archive-toggle:hover { background: var(--t1935); }
.account-archive-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.account-archive-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.account-archive-flights {
  border-top: 1px solid var(--t2019);
  padding: 4px 12px 10px 44px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-archive-flight {
  border: 0;
  border-bottom: 1px solid var(--t2020);
  border-radius: 0;
  padding: 8px 0;
}
.account-archive-flight:last-child { border-bottom: 0; }
.archive-restore-count-label {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
  color: var(--muted, var(--t2015));
}
.archive-restore-count-input {
  width: 120px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--t1902);
  background: var(--t2021);
  color: inherit;
  color-scheme: dark;
  font: inherit;
}

/* Group header: count + actions share one right-aligned line. */
.account-archive-group-head .account-aircraft-main { flex: 1 1 auto; }
.account-archive-group-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  white-space: nowrap;
}
.account-archive-count {
  font-size: 12.5px;
  color: var(--muted, var(--t2015));
}

/* ==========================================================================
   New UI navigation shell (new_ui_enabled flag)
   The fleet sidebar, breadcrumb topbar, and first-run hero. Everything in
   this section is scoped under body[data-new-ui] so the old six-tab UI is
   untouched while the flag is off. Remove this whole section together with
   the flag once the redesign is accepted.
   ========================================================================== */

.fleet-sidebar,
.fleet-sidebar-scrim,
.fleet-sidebar-toggle,
.newui-crumbs,
.newui-firstrun {
  display: none;
}

/* --- Old-UI chrome replaced by the shell ---------------------------------- */

/* Aircraft and Flights tabs: the sidebar owns aircraft/flight selection.
   The Aircraft profile page stays reachable via the breadcrumb tail number
   and the per-aircraft gear; the Flights page via "View all" in the rail. */
body[data-new-ui] .aircraft-section-nav .nav-item[data-aircraft-panel="profile"],
body[data-new-ui] .aircraft-section-nav .nav-item[data-aircraft-panel="flights"]:not(.newui-aircraft-nav),
body[data-new-ui] .aircraft-section-nav .nav-item[data-aircraft-panel="uploads"] {
  display: none;
}

/* The "Reviewing ..." context band: the breadcrumb plus the highlighted rail
   entry answer "what am I looking at" now. */
body[data-new-ui] #dashboardReviewContext {
  display: none;
}

/* The dashboard flight dropdown: the rail owns flight switching now. */
body[data-new-ui] .dashboard-flight-picker {
  display: none;
}

/* The New UI's aircraft page is the Flights page. The Flights panel renders
   its own summary strip (flights, latest, date range, durations), so the
   profile-page activity cards stay hidden here to avoid duplication. */

/* The ambiguous "+" (Add aircraft) icon next to Upload Log: the rail has an
   explicit "+ Add aircraft" action instead. The button stays in the DOM as
   the single owner of the read-only and plan-limit gates. */
body[data-new-ui] #aircraftHeaderAddButton {
  display: none;
}

/* --- Shell layout --------------------------------------------------------- */
/* The sidebar shows on every signed-in view (aircraft, dashboard, account,
   admin) so the rail is always one click away; public pages never get it. */

body[data-new-ui] {
  --fleet-rail-w: 280px;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .app-shell {
  display: grid;
  grid-template-columns: var(--fleet-rail-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

/* The brand lives in the rail now. */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary .brand {
  display: none;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--panel);
  border-right: 1px solid var(--line);
  /* Sticky creates a stacking context, so the collapse circle's own z-index
     is scoped inside it: the rail itself must sit above the sticky topbar
     (z-index 10) or the circle gets painted under the header. */
  z-index: 20;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .workspace {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

/* Full-bleed header: the topbar breaks out of the workspace's 10px gutter so
   its background reaches the rail on the left and the window on the right,
   while its own content keeps that 10px inset (so right-aligned tabs/actions
   never touch the window edge). All other content stays inset by the
   workspace padding, no per-section margins needed. */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar {
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
}

/* The site footer keeps its normal bottom-of-page formatting, under the
   workspace column (the sidebar owns the full height of column 1). */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .site-footer {
  grid-column: 2;
  grid-row: 2;
  margin: 0 10px;
}

/* The topbar becomes a wrapping flex row: brand + crumbs + tabs share the
   first line with the account/admin actions, and the page title / subhead /
   legacy flight controls (visible on generic views) wrap to full-width lines
   below. This gives the tabs the full remaining width instead of the old
   grid's fixed thirds, which truncated them next to the sidebar. */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary {
  display: flex;
  /* Explicit row: an old <=1180px rule turns .topbar-primary into a column,
     which with align-items: center silently centered the breadcrumb at
     mid widths. Wrap instead, so the tabs drop to their own right-aligned
     row (margin-left: auto) when the crumb needs the width. */
  flex-direction: row;
  flex-wrap: wrap;
  order: 1;
  flex: 1 1 auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 4px;
  min-width: 0;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .top-actions {
  order: 2;
  flex: 0 0 auto;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) #page-title {
  order: 3;
  flex: 1 1 100%;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .subhead {
  order: 4;
  flex: 1 1 100%;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .flight-control-row {
  order: 5;
  flex: 1 1 100%;
  margin: 0 auto;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary .brand {
  flex: 0 0 auto;
}

/* Crumbs sit after the brand and flex-grow, which pushes the section tabs to
   the right edge of the topbar. Account and Admin render their own
   "My Account / <tab>" and "Admin / <tab>" crumbs
   (fleet-sidebar.renderNewUiBreadcrumb) in the same slot. */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .newui-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  order: 1;
  min-width: 0;
  font-size: 14px;
  overflow: hidden;
}

/* The crumb replaces the account page's big title and subhead. */
body[data-new-ui][data-active-view="account"] .topbar-page {
  display: none;
}

body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary .top-nav {
  flex: 0 0 auto;
  order: 2;
  margin-left: auto;
}

/* The user chip and Admin button move to the bottom of the rail; hide the
   topbar copies. The Admin button keeps its hidden attribute as the admin-flag
   source of truth the sidebar mirrors, so hide it with display only. */
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-user,
body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) #adminNavButton {
  display: none;
}

.newui-crumb {
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newui-crumb.is-here {
  font-weight: 600;
}

button.newui-crumb.is-link {
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

button.newui-crumb.is-link:hover {
  background: var(--t2022);
}

.newui-crumb-sep {
  color: var(--muted);
}

/* --- Sidebar internals ---------------------------------------------------- */

.fleet-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
}

.fleet-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

/* Same scale the topbar brand had before it moved into the rail. */
.fleet-brand-mark img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.fleet-brand-copy {
  min-width: 0;
  line-height: 1.2;
}

.fleet-brand-copy strong {
  display: block;
  font-size: 25px;
  white-space: nowrap;
}

.fleet-brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The collapse control: a circular button straddling the rail's right border,
   vertically centered, always visible on desktop. The chevron points left
   while expanded (collapse) and flips right while collapsed (expand). */
.fleet-collapse-toggle {
  position: fixed;
  left: calc(var(--fleet-rail-w, 280px) - 13px);
  /* Vertically centered on the rail-head logo (12px head padding + half the
     70px brand mark), sitting on the sidebar border. */
  top: 47px;
  transform: translateY(-50%);
  z-index: 45;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px var(--t1977);
}

.fleet-collapse-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.15s;
}

body.fleet-rail-collapsed .fleet-collapse-toggle svg {
  transform: rotate(180deg);
}

.fleet-collapse-toggle:hover {
  color: var(--text);
  border-color: var(--blue);
}

/* Collapsed rail (desktop only; the mobile drawer always opens full width):
   the logo (which expands the rail when clicked), aircraft as avatar + tail
   icons, flights as compact date chips for groups that were already expanded,
   and the account avatar at the bottom. */
@media (min-width: 901px) {
  /* Wide enough that the 70px logo sits centered with clear air on both
     sides rather than touching the rail border. */
  body[data-new-ui].fleet-rail-collapsed {
    --fleet-rail-w: 92px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-head {
    justify-content: center;
    padding: 12px 0 8px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-brand-copy,
  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-search input,
  body[data-new-ui].fleet-rail-collapsed .fleet-label,
  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-empty,
  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-model,
  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-count,
  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-chevron,
  body[data-new-ui].fleet-rail-collapsed .fleet-flights-empty,
  body[data-new-ui].fleet-rail-collapsed .fleet-flight-date,
  body[data-new-ui].fleet-rail-collapsed .fleet-flight-route,
  /* No room for the pill in the collapsed rail; the group dot still shows. */
  body[data-new-ui].fleet-rail-collapsed .fleet-flight-new,
  body[data-new-ui].fleet-rail-collapsed .fleet-account-name,
  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-admin {
    display: none;
  }

  /* The tail label under the avatar is redundant for placeholder avatars
     (they carry the full tail); keep it only under real photos. */
  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-head:not(.has-photo) .fleet-aircraft-title {
    display: none;
  }

  /* Upload shrinks to its up-arrow icon; Add aircraft becomes a large plus. */
  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-foot {
    display: flex;
    justify-content: center;
    padding: 2px 0 6px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-upload-text {
    display: none;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-upload-icon {
    display: block;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-add-aircraft-text {
    display: none;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-add-aircraft {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-add-aircraft-plus {
    width: 22px;
    height: 22px;
  }

  /* Same footprint as the collapsed Add-aircraft plus button. */
  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-search {
    height: 60px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-search-icon {
    display: grid;
    width: 44px;
    height: 44px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-search-icon svg {
    width: 19px;
    height: 19px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-brand {
    cursor: e-resize;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-groups {
    padding: 0 4px 8px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-head {
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-title {
    align-items: center;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-aircraft-tail {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-flight-item {
    justify-content: center;
    padding: 4px 2px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-flight-item.is-active::before {
    left: 4px;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-flight-short {
    display: block;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-foot {
    justify-content: center;
  }

  body[data-new-ui].fleet-rail-collapsed .fleet-sidebar-account {
    flex: 0 0 auto;
    justify-content: center;
    padding: 12px 0;
  }
}

.fleet-flight-short {
  display: none;
}

/* Fixed-height slot in both rail states so collapsing does not shift the
   fleet list vertically: the input swaps for a centered search icon. */
.fleet-sidebar-search {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.fleet-sidebar-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 13px;
}

.fleet-sidebar-search input::placeholder {
  color: var(--muted);
}

.fleet-search-icon {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  width: 34px;
  height: 34px;
  margin: 0 auto;
  place-items: center;
}

.fleet-search-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fleet-search-icon:hover {
  color: var(--text);
  background: var(--panel-2);
}

/* Custom clear (×) button: shown whenever the field has text, regardless of
   focus. Replaces the native search cancel button (which Blink shows only while
   focused). */
.fleet-sidebar-search {
  position: relative;
}

.fleet-sidebar-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.fleet-sidebar-search input {
  padding-right: 30px;
}

.fleet-search-clear {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

/* :placeholder-shown is false exactly when the field holds text — so the button
   appears on any non-empty value whether or not the input is focused. */
.fleet-sidebar-search input:not(:placeholder-shown) ~ .fleet-search-clear {
  display: grid;
}

.fleet-search-clear:hover {
  color: var(--text);
  background: var(--panel-2);
}

.fleet-search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.fleet-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

/* Centered "Add aircraft" button at the bottom of the aircraft list. */
.fleet-add-aircraft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 4px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  color: var(--blue);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
}

.fleet-add-aircraft:hover {
  background: var(--t2022);
  border-color: var(--blue);
}

.fleet-add-aircraft-plus {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.fleet-groups {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 8px 12px;
  /* Firefox: slim thumb, invisible track, no buttons. */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Chromium: minimal rounded thumb, no track chrome, no arrow buttons. */
.fleet-groups::-webkit-scrollbar {
  width: 8px;
}

.fleet-groups::-webkit-scrollbar-track {
  background: transparent;
}

.fleet-groups::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.fleet-groups::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.fleet-groups::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.fleet-aircraft-group {
  margin-bottom: 2px;
  border-radius: 10px;
}

.fleet-aircraft-group.is-current {
  background: var(--t593);
}

.fleet-aircraft-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.fleet-aircraft-head:hover {
  background: var(--panel-2);
}

.fleet-aircraft-group.is-locked .fleet-aircraft-head {
  cursor: not-allowed;
  opacity: 0.55;
}

.fleet-aircraft-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.fleet-aircraft-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default line art hover swap: the alternate view sits stacked above the
   resting view and the two cross-fade while the aircraft row is hovered.
   The art is TRANSPARENT strokes, so the resting image must fade out too:
   the hover image can no longer cover it. */
.fleet-aircraft-avatar {
  position: relative;
}

.fleet-aircraft-avatar img.is-default-art {
  transition: opacity 160ms ease;
}

.fleet-aircraft-avatar .fleet-avatar-art-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.fleet-aircraft-head:hover .fleet-avatar-art-hover,
.fleet-aircraft-head:focus-visible .fleet-avatar-art-hover {
  opacity: 1;
}

.fleet-aircraft-head:hover .fleet-aircraft-avatar img.is-default-art:not(.fleet-avatar-art-hover),
.fleet-aircraft-head:focus-visible .fleet-aircraft-avatar img.is-default-art:not(.fleet-avatar-art-hover) {
  opacity: 0;
}

/* Placeholder avatars carry the full tail number; fitAvatarFallbackLabels
   in fleet-sidebar.ts shrinks the font by measurement until it fits. */
.fleet-aircraft-avatar-fallback {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 5px;
}

.fleet-aircraft-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.fleet-aircraft-tail {
  font-weight: 600;
  font-size: 13px;
}

.fleet-aircraft-model {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-aircraft-count {
  color: var(--muted);
  font-size: 11px;
}

.fleet-aircraft-lock {
  font-size: 12px;
}

/* Right-side expand/collapse chevron: ">" closed, "v" open. */
.fleet-aircraft-chevron {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.fleet-aircraft-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.15s;
}

.fleet-aircraft-chevron.is-open svg {
  transform: rotate(90deg);
}

.fleet-aircraft-chevron:hover {
  color: var(--text);
  background: var(--line);
}

.fleet-aircraft-flights {
  display: none;
  padding: 0 4px 6px;
}

.fleet-aircraft-group.is-open .fleet-aircraft-flights {
  display: block;
}

.fleet-flight-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 6px 10px 6px 30px;
  border-radius: 7px;
  position: relative;
}

.fleet-flight-item:hover:not(:disabled),
.fleet-flight-item:focus-visible {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 24%, transparent);
}

.fleet-flight-item.is-active:hover:not(:disabled) {
  background: color-mix(in srgb, var(--blue) 22%, transparent);
}

@keyframes fleet-flight-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body.is-fleet-flight-loading[data-active-view="dashboard"] #view-dashboard {
  opacity: 0.45;
  pointer-events: none;
}

.fleet-flight-loading-status {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 4px 20px #0003;
}

body:not([data-active-view="dashboard"]) .fleet-flight-loading-status,
body:has(#view-dashboard.is-flight-loading) .fleet-flight-loading-status {
  display: none;
}


.fleet-flight-item.is-active {
  background: var(--t2022);
}

.fleet-flight-item.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

.fleet-flight-item.is-loading::before {
  width: 10px;
  height: 10px;
  left: 10px;
  margin-top: -6px;
  border: 2px solid color-mix(in srgb, var(--blue) 25%, transparent);
  border-top-color: var(--blue);
  background: transparent;
  animation: fleet-flight-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fleet-flight-item.is-loading::before { animation: none; }
}

.fleet-flight-item.is-unsupported {
  cursor: not-allowed;
  opacity: 0.5;
}

.fleet-flight-date {
  font-weight: 600;
  white-space: nowrap;
}

.fleet-flight-route {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Unreviewed markers in the rail. Same pill as the tables, scaled down for the
   narrow column, and it must never be what squeezes the date or route out. */
/* Scoped through .fleet-flight-item so it outranks the base .row-new-tag rule,
   which is defined LATER in this file and would otherwise win on source order
   at equal specificity (that is what kept the full-size padding here). */
.fleet-flight-item .fleet-flight-new {
  flex: 0 0 auto;
  padding: 0 6px;
  font-size: 9px;
  letter-spacing: 0.05em;
  /* The row is baseline-aligned; a bordered box on that baseline sits taller
     than the text and grows the row. Centre it instead and pin the line box so
     a rail row is the same height with or without the pill. */
  align-self: center;
  line-height: 1.35;
}

/* Route text yields first when the row is tight; the pill and date do not. */
.fleet-flight-item .fleet-flight-route {
  min-width: 0;
  flex: 0 1 auto;
}

/* A collapsed group hides its flights, so the head shows a dot instead. */
.fleet-aircraft-new-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--purple);
}

.fleet-flights-empty {
  margin: 0;
  padding: 4px 10px 8px 30px;
  color: var(--muted);
  font-size: 12px;
}

.fleet-search-empty {
  padding: 12px;
}

.fleet-aircraft-foot {
  display: flex;
  gap: 6px;
  padding: 4px 8px 6px 30px;
}

.fleet-view-all,
.fleet-upload-mini {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.fleet-view-all {
  color: var(--muted);
}

.fleet-view-all:hover {
  color: var(--text);
  background: var(--panel-2);
}

.fleet-upload-mini {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fleet-upload-mini:hover {
  background: var(--t2022);
}

/* The up-arrow only shows in the collapsed rail, where the label hides. */
.fleet-upload-icon {
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fleet-sidebar-empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.fleet-sidebar-empty p {
  margin: 0 0 16px;
}

.fleet-sidebar-foot {
  display: flex;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

/* Content-sized pill (not a full-width row): the hover highlight is an oval
   hugging the avatar + name, so the margins keep the foot's overall height
   where the old 18px row padding put it. */
.fleet-sidebar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 12px 8px;
  padding: 6px 16px 6px 6px;
  border: none;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
}

.fleet-sidebar-admin {
  flex: 0 0 auto;
  /* The account pill is content-sized now, so this margin (not its flex-grow)
     keeps the Admin button pinned to the rail's right edge. */
  margin-left: auto;
  margin-right: 10px;
  /* Icon-only circular button at every width (matches the small-mobile
     treatment): the "Admin" text label is dropped. */
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--t12);
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.fleet-sidebar-admin:hover {
  color: var(--text);
  background: var(--panel-2);
}

/* Icon-only at every width: the "Admin" text label is always hidden. */
.fleet-sidebar-admin-text {
  display: none;
}

.fleet-sidebar-admin-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fleet-sidebar-account:hover {
  color: var(--text);
  background: var(--panel-2);
}

.fleet-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--t603), var(--t604));
  display: grid;
  place-items: center;
  color: var(--t8);
  font-size: 13px;
  font-weight: 700;
}

.fleet-account-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- New UI opt-in (My Account > Profile) --------------------------------- */
/* Deliberately NOT scoped under body[data-new-ui]: this section shows in the
   old UI (site flag off) so members can opt in early. display beats the
   account tab switcher's hidden toggling. */

.account-newui-optin-panel[data-newui-optin-hidden] {
  display: none !important;
}

/* Merged into the single Settings pane: a divider separates the opt-in row
   from the preference selects above it. */
.account-newui-optin-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-newui-optin-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- Upload dialog -------------------------------------------------------- */

/* Bugfix (all UIs): the create-new-aircraft variant of the upload dialog can
   grow taller than the viewport; cap and scroll it instead of truncating the
   Cancel/Upload buttons off screen. */
.upload-dialog-card {
  max-height: min(92vh, 92dvh);
  overflow-y: auto;
}

.upload-dialog-aircraft-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- First-run hero ------------------------------------------------------- */

body[data-new-ui] #view-aircraft.is-newui-firstrun .aircraft-context-panel,
body[data-new-ui] #view-aircraft.is-newui-firstrun .aircraft-subpanel {
  display: none;
}

body[data-new-ui] .newui-firstrun {
  display: block;
}

.newui-firstrun-card {
  max-width: 460px;
  margin: 10vh auto 0;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
}

.newui-firstrun-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.newui-firstrun-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.newui-firstrun-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Mobile drawer -------------------------------------------------------- */

@media (max-width: 900px) {
  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .workspace,
  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .site-footer {
    grid-column: 1;
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 280px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 30px var(--t592);
  }

  /* The drawer replaces the collapse affordance on small screens. */
  .fleet-collapse-toggle {
    display: none;
  }

  body[data-new-ui].fleet-drawer-open:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar {
    transform: translateX(0);
  }

  body[data-new-ui].fleet-drawer-open:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--t2023);
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar-toggle {
    display: grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
    border-radius: 8px;
  }

  .fleet-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .fleet-sidebar-toggle:hover {
    background: var(--panel-2);
  }
}

/* --- Cookie consent banner ------------------------------------------------ */
/* Shown on every page (auth landing included) until a choice is stored, so it
   sits above the app shell, dialogs, and the approval gate. */

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9800;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line, var(--t11));
  background: var(--panel, var(--t2024));
  color: var(--text, var(--t2025));
  box-shadow: 0 12px 32px var(--t1977);
}

.consent-banner-copy {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.consent-banner-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
}

.marketing-preferences-link {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.consent-banner-copy a {
  color: inherit;
  text-decoration: underline;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

/* --- GA debug overlay ----------------------------------------------------- */
/* Debug tooling (My Account > Profile > Analytics): mirrors every analytics
   call in real time. Dark translucent regardless of theme, tiny monospace. */

.analytics-overlay {
  position: fixed;
  z-index: 9900;
  width: 320px;
  height: 260px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--t2026);
  background: var(--t2027);
  color: var(--t2028);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  box-shadow: 0 10px 28px var(--t6);
}

.analytics-overlay-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--t11);
  cursor: move;
  user-select: none;
}

.analytics-overlay-grip {
  letter-spacing: -2px;
  opacity: 0.6;
}

.analytics-overlay-title {
  font-size: 11px;
  font-weight: 600;
}

.analytics-overlay-count {
  padding: 0 6px;
  border-radius: 8px;
  background: var(--t10);
}

.analytics-overlay-clear,
.analytics-overlay-close {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.75;
}

.analytics-overlay-clear { margin-left: auto; }

.analytics-overlay-close { font-size: 14px; line-height: 1; }

.analytics-overlay-clear:hover,
.analytics-overlay-close:hover {
  opacity: 1;
  background: var(--t10);
}

.analytics-overlay-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 8px;
}

.analytics-overlay-empty {
  margin: 8px 0 0;
  opacity: 0.65;
  line-height: 1.4;
}

.analytics-overlay-row {
  padding: 3px 0;
  border-bottom: 1px solid var(--t40);
}

.analytics-overlay-row-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.analytics-overlay-time { opacity: 0.55; }

.analytics-overlay-tag {
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  color: var(--t2029);
}

.analytics-overlay-tag-pv { background: var(--t2030); }
.analytics-overlay-tag-ev { background: var(--t2031); }
.analytics-overlay-tag-up { background: var(--t2032); }

.analytics-overlay-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-overlay-params {
  margin-top: 1px;
  opacity: 0.6;
  overflow-wrap: anywhere;
}

/* --- Admin > Analytics (Google Analytics overview) ------------------------ */

.admin-ga-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-ga-overlay-toggle {
  margin-bottom: 14px;
}

.admin-ga-overlay-toggle small {
  color: var(--muted);
}

.admin-ga-setup-note {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-ga-path {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Dashboard header actions (report-tabs-row) --------------------------- */
/* Download PDF / Share (+ AI chip) travel as one group: vertically centered
   with the tabs and, in the New UI (where the flight picker that used to own
   margin-left auto is hidden), pushed to the row's right edge. Grouping also
   stops Share from wrapping onto its own line at narrow widths. */

.report-tabs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-new-ui] .report-tabs-actions {
  margin-left: auto;
}

/* --- Aircraft page tabs (Flights / Uploads) ------------------------------- */
/* Reuses the dashboard .tabs/.tab visuals; sits under the aircraft header. */

.aircraft-page-tabs {
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.aircraft-page-tabs[hidden] {
  display: none;
}

/* --- "New" indicators (unseen uploads / unreviewed flights) ---------------- */
/* A dot on the tab says "there is something in here you have not looked at";
   the row tag says which item. Uploads clear on hover or on leaving the tab;
   flights clear when their dashboard is opened or via Mark Not New. */

/* My Account > Aircraft is redundant in the New UI: the fleet sidebar lists
   every aircraft and its pages own editing and review settings. Hidden rather
   than deleted so the old UI keeps the tab (activateAccountTab also redirects
   the deep link, so the panel cannot be reached while it is hidden). */
body[data-new-ui] [data-account-tab="aircraft"] {
  display: none;
}

/* Absolutely positioned so it overlaps the label's top-right corner and can
   never change the tab's width (a width change would shift the whole strip
   each time a dot appeared or cleared). .tab is already position: relative. */
.tab-new-dot {
  position: absolute;
  top: 4px;
  /* .tab has 11px of right padding, so the label ends 11px in. A 7px dot at
     right: 6px starts 13px in, overlapping the last glyph by ~2px, which is
     the intended "slightly over the text" look. */
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
  pointer-events: none;
}

/* The pill sits inline after the name (uploads) / after the Open button
   (flights), and follows the same recipe as the table's other pills
   (.aircraft-flight-flags): tinted border, tinted translucent fill, light text
   of the same hue, fully rounded. Purple rather than red, which reads as an
   error, or blue, which disappears into the UI chrome.
   min-height is deliberately NOT copied from .aircraft-flight-flags: forcing
   30px here would inflate every upload row that carries a tag. */
.row-new-tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 2px 9px;
  border: 1px solid var(--t2033);
  border-radius: 999px;
  background: var(--t2034);
  color: var(--t2035);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* Never let the tag be what makes a name column wrap. */
  white-space: nowrap;
}

/* The uploads cell is a single-column grid, so the filename and its tag need
   their own flex row to sit on one line. Scoped through the parent to outrank
   `.aircraft-upload-file span`, which sets display: block on every span here. */
.aircraft-upload-file .aircraft-upload-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* `.aircraft-upload-file span` also sets color: var(--muted), which washed the
   pill's text out to near-white. Restate the colour at higher specificity. */
.aircraft-upload-file .row-new-tag {
  color: var(--t2035);
}

/* --- Aircraft header photo centering -------------------------------------- */
/* Compact header (Flights / Uploads / Info / Settings): the photo frame is
   shorter than the tail + meta block, so center it vertically. */

.aircraft-context-panel.is-compact .aircraft-photo-stack {
  align-items: center;
}

/* --- Uploads table long filenames ----------------------------------------- */
/* Uploaded log names (and their storage paths) can be very long unbroken
   strings; without break opportunities the raw-file column forces the whole
   table wide. Let both wrap anywhere inside the cell. */

.aircraft-uploads-table .aircraft-upload-file,
.aircraft-uploads-table .aircraft-upload-file .aircraft-upload-download,
.aircraft-uploads-table .aircraft-upload-file strong,
.aircraft-uploads-table .aircraft-upload-file span {
  /* white-space beats overflow-wrap: a nowrap inherited onto the filename
     button lets long names overflow into the Status column instead of
     wrapping, so force normal wrapping here. */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ...except the New tag, which is a short fixed label and must stay on one
   line. Same specificity as the rule above, so it has to come after it. */
.aircraft-uploads-table .aircraft-upload-file .row-new-tag {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* The break-anywhere treatment above makes this column's minimum content width
   a single character, so the auto table layout is free to crush it into a
   vertical letter stack whenever the other columns want the room. Give the
   cell a floor.
   Rows carrying a NEW pill need a wider floor than the rest: the pill is
   nowrap, so it claims its width first and the filename only gets what is
   left — at the shared floor that was a couple of characters. Both rules sit
   below the `@media (max-width: 900px)` block, which restores min-width: 0 at
   higher specificity, so the mobile ellipsis treatment is unaffected. */
.aircraft-uploads-table .aircraft-upload-file {
  min-width: 14ch;
}

.aircraft-uploads-table td[data-upload-new-cell] .aircraft-upload-file {
  min-width: 24ch;
}

/* --- Inline dialogs (aircraft page Info / Settings tabs) ------------------- */
/* The edit and review-settings dialogs render inline inside their tab panels
   (non-modal open attribute). Strip the modal chrome: no fixed centering, no
   width cap, no floating-card shadow, no close X. */

dialog.is-inline-panel {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog.is-inline-panel .upload-dialog-card {
  width: 100%;
  max-width: none;
  box-shadow: none;
}

dialog.is-inline-panel .upload-dialog-close {
  display: none;
}

/* Old UI keeps the modal buttons instead of the Info / Settings tabs. */
body:not([data-new-ui]) #aircraftPageTabs [data-aircraft-panel="info"],
body:not([data-new-ui]) #aircraftPageTabs [data-aircraft-panel="settings"] {
  display: none;
}

/* New UI: the header pencil / gear modals are replaced by those tabs. */
body[data-new-ui] .aircraft-edit-header-action,
body[data-new-ui] .aircraft-review-settings-action {
  display: none;
}

/* --- Aircraft page tab consistency ---------------------------------------- */
/* Inline Info / Settings cards read as page panels, not floating modals:
   same border/background family as the Flights and Uploads panels. */

dialog.is-inline-panel .upload-dialog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--t511);
}

/* Inline profile fields keep their input styling so editing is discoverable. */
.aircraft-edit-dialog.is-inline-panel .aircraft-form-summary,
.aircraft-edit-dialog.is-inline-panel footer > .report-status {
  display: none;
}

.aircraft-autosave-status {
  display: none;
}

.aircraft-edit-dialog.is-inline-panel .aircraft-autosave-status {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.aircraft-edit-dialog.is-inline-panel .aircraft-autosave-status.is-error {
  color: var(--red);
}

.aircraft-edit-dialog.is-inline-panel .aircraft-autosave-status.is-success {
  color: var(--green);
}

.aircraft-edit-dialog .upload-field > span,
.aircraft-edit-dialog .aircraft-form-section h3 {
  font-size: 12px;
}

.aircraft-edit-dialog .field-help,
.aircraft-edit-dialog .aircraft-form-hint {
  margin: 0;
  max-width: 75ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.aircraft-optional-content details > .field-help {
  margin: 8px 0 16px;
}

.aircraft-engine-performance-grid,
.aircraft-oil-limits {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.aircraft-oil-limits > .upload-field {
  align-content: start;
}

@media (max-width: 600px) {
  .aircraft-engine-performance-grid,
  .aircraft-oil-limits {
    grid-template-columns: minmax(0, 1fr);
  }
}

dialog.is-inline-panel #aircraftEditDialogSave,
dialog.is-inline-panel #aircraftEditDialogCancel {
  display: none;
}

/* Settings tab: autosaves, so the modal's Save / Cancel are hidden inline. */

dialog.is-inline-panel #aircraftReviewSettingsSave,
dialog.is-inline-panel #aircraftReviewSettingsCancel {
  display: none;
}

/* Inline tabs scroll with the page, never inside their own card. */

dialog.is-inline-panel .upload-dialog-card {
  max-height: none;
  overflow: visible;
}

dialog.is-inline-panel .aircraft-form-body,
dialog.is-inline-panel .review-settings-body {
  overflow: visible;
}

/* Topbar (New UI): Trends moved into the aircraft page tabs; the "Aircraft"
   item is the New UI route to the aircraft page and stays hidden in the old
   UI, which keeps its own Flights item. */

body[data-new-ui] .aircraft-section-nav .nav-item[data-aircraft-panel="trends"] {
  display: none;
}

body:not([data-new-ui]) .newui-aircraft-nav {
  display: none;
}

/* Trend summary cards relocated under the Trends tab strip (reparented by
   view-navigation-controller.syncAircraftPanelState while Trends is active). */

#view-aircraft > .aircraft-activity-grid {
  gap: 8px 24px;
  margin: 0 0 14px;
}

/* Admin > Analytics: the GA dashboard link reads as a real button, with an
   up-right arrow signalling "opens in a new tab". */

.admin-ga-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.admin-ga-external-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Account / Admin side spacing tweaks ---------------------------------- */
/* Equalize the gaps around the tab columns: My Account gets a bit more room
   between the rail and its tab column; Admin loses the extra left padding so
   the rail-to-tabs gap matches the 24px tabs-to-content grid gap. */

body[data-new-ui] #view-account {
  padding-left: 10px;
}

body[data-new-ui] #view-admin {
  margin-left: -10px;
}

/* (The account topbar heading was replaced by the "My Account / <tab>"
   breadcrumb; see the crumb rules near the New UI shell section.) */

/* --- Personal details (My Account > Profile): click-to-edit --------------- */
/* Mirrors the aircraft Info tab: fields read as flat data until hovered or
   focused, and changes autosave (no Edit / Done buttons). */

.account-profile-details-panel .upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(:focus):not(:hover),
.account-profile-details-panel .upload-field select:not([multiple]):not([disabled]):not(:focus):not(:hover) {
  border-color: transparent;
  background: transparent;
}

.account-profile-details-panel .upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(:focus),
.account-profile-details-panel .upload-field select:not([multiple]):not([disabled]):not(:focus) {
  cursor: pointer;
}

/* --- Wide tables scroll internally when the layout is narrow --------------- */
/* The 1100px fallback below predates the New UI rail, which costs ~300px of
   content width: between 1100px and ~1600px the flight/upload tables bled
   past the site layout. In the New UI, hand them their own horizontal scroll
   area up to 1599px (the sticky page-follow headers pause there, same trade
   as the old 1100px rule). */

@media (max-width: 1599px) {
  body[data-new-ui] #aircraftFlightsPanel .table-wrap,
  body[data-new-ui] #aircraftUploadsPanel .table-wrap {
    overflow-x: auto;
    /* No vertical scroll of its own, ever: the horizontal scrollbar otherwise
       induces a phantom vertical scrollbar (the table already fits the wrap's
       height, so nothing real is clipped). The page owns vertical scrolling. */
    overflow-y: hidden;
    /* Desktop: hint that the table can be grabbed and dragged sideways. */
    cursor: grab;
    overscroll-behavior-x: contain;
    /* Native scrolling handles both axes: the browser pans the table
       horizontally, and because the wrap has no vertical scroll of its own
       (overflow-y: hidden) a vertical swipe scrolls the page normally. (No
       custom touch handler — driving page scroll from JS fought the native
       scroll and left the fixed nav bar disappearing / over-scrolling.) */
    touch-action: pan-x pan-y;
  }
}

/* Narrow layouts: stack the flights toolbar so its fixed-width controls
   (search, date range, trend segmented control) never bleed past the page.
   The one-line toolbar needs roughly 1050px of content width, so with the
   New UI rail (~300px) it stacks up to 1349px; the old UI stacks at 900px. */
@media (max-width: 1349px) {
  body[data-new-ui] .aircraft-flights-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  body[data-new-ui] .aircraft-flights-toolbar > * {
    min-width: 0;
    max-width: 100%;
  }

  body[data-new-ui] .aircraft-flights-segmented {
    width: auto;
    grid-template-columns: max-content repeat(3, minmax(0, max-content));
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .aircraft-flights-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .aircraft-flights-toolbar > * {
    min-width: 0;
    max-width: 100%;
  }

  .aircraft-flights-segmented {
    width: auto;
    grid-template-columns: max-content repeat(3, minmax(0, max-content));
    overflow-x: auto;
  }
}

/* When the table-wraps become scroll containers (the responsive rules above
   and the old-UI 1100px fallback), sticky headers pin against the WRAP, not
   the page: a topbar offset there shoves the header down into the rows even
   before any scrolling. Pin flush to the wrap instead. */

@media (max-width: 1599px) {
  body[data-new-ui] #aircraftFlightsPanel .aircraft-flights-table th,
  body[data-new-ui] #aircraftUploadsPanel .aircraft-uploads-table th {
    top: 0;
  }
}

@media (max-width: 1100px) {
  #aircraftFlightsPanel .aircraft-flights-table th,
  #aircraftUploadsPanel .aircraft-uploads-table th {
    top: 0;
  }
}

/* --- Mobile topbar layout (New UI) ---------------------------------------- */
/* Hamburger top left, breadcrumb beside it, section tabs on the right (they
   wrap to their own right-aligned row when the crumb needs the width). */

@media (max-width: 900px) {
  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary {
    /* An older mobile rule stacks this column-wise (which centered every
       element); restore a wrapping row so the order/margin rules below can
       place hamburger left, crumb beside it, tabs right. */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 4px;
    width: 100%;
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar-toggle {
    order: 0;
    margin-right: 2px;
    /* Match the desktop rail's circular chevron toggle. */
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--muted);
    padding: 0;
    box-shadow: 0 2px 8px var(--t1977);
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar-toggle svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar-toggle:hover {
    color: var(--text);
    border-color: var(--blue);
    background: var(--panel-2);
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .newui-crumbs {
    order: 1;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .topbar-primary .top-nav {
    order: 2;
    margin-left: auto;
  }
}

/* --- Flight rows stay a real table at every width -------------------------- */
/* The <=720px "card" layout for flight rows is retired: however narrow the
   view, the table keeps its columns and scrolls horizontally inside its wrap.
   These overrides undo the card-mode block above (last rules win). */

@media (max-width: 720px) {
  .aircraft-flights-table {
    display: table;
    /* No fixed floor: with columns toggled off the table shrinks to what the
       remaining cells need (a Date-only table fits the phone), while a full
       column set still scrolls horizontally inside .table-wrap. */
    min-width: 100%;
  }

  .aircraft-flights-table thead {
    display: table-header-group;
  }

  .aircraft-flights-table tbody {
    display: table-row-group;
    padding: 0;
    gap: 0;
  }

  /* All rows (thead + tbody): the card-mode block set every tr to
     display:block, which broke the header tr out of the table box and
     desynced the header columns from the body. Reset the header tr too. */
  .aircraft-flights-table thead tr,
  .aircraft-flights-table tbody tr {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .aircraft-flights-table thead th {
    display: table-cell;
  }

  .aircraft-flights-table tbody tr:nth-child(even) {
    background: var(--t684);
  }

  .aircraft-flights-table td {
    display: table-cell;
    padding: 10px 12px;
    border-bottom: 1px solid var(--t486);
    white-space: nowrap;
  }

  .aircraft-flights-table td::before {
    display: none;
    content: none;
  }

  /* The card-mode block wrapped the action buttons into a stacked column; the
     table scrolls horizontally now, so keep them on one row. */
  .aircraft-flights-table .aircraft-flight-actions,
  .aircraft-flights-table .aircraft-flight-flags-stack {
    flex-wrap: nowrap;
  }
}

/* The AI work chip lives in the dashboard actions group now; the legacy
   narrow-width "width: 100%" chip rule blows the row (and the page) wide
   there, so keep it capped and shrinkable in the group at every width. */
.report-tabs-actions {
  flex-wrap: wrap;
  min-width: 0;
}

.report-tabs-actions .ai-work-chip {
  width: auto;
  max-width: 250px;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

/* Admin panel headers wrap on narrow screens instead of pushing their action
   buttons (e.g. Users > Refresh) past the page edge. */
@media (max-width: 720px) {
  .admin-panel-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-panel-header > * {
    min-width: 0;
  }
}

/* Phone widths: the admin layout stacks (sidebar above panels) instead of
   holding a fixed 220px column that pushes the page wide. */
@media (max-width: 720px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 14px;
    gap: 16px;
  }

  /* Also drop the scroll-container behavior: stacked, the rail always fits,
     and an overflow:auto box with overscroll-behavior:contain swallows touch
     scrolls over it (nothing to scroll internally + chaining blocked), so
     finger-scrolling the page dies wherever a finger lands on the rail.
     The body[data-new-ui] variant is repeated so this block outranks the
     `body[data-new-ui] .admin-sidebar` top/max-height override. */
  .admin-sidebar,
  body[data-new-ui] .admin-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }
}

/* Chart gesture hint: on narrow screens the coarse-pointer text ("Pinch to
   zoom • Two-finger drag to pan • Select Region to zoom area") is wider than
   the chart, and the absolute overlay drew it over the axis titles. Drop it
   into normal flow above the chart and let it wrap so it never overlaps. */
@media (max-width: 720px) {
  .chart-wrap .chart-gesture-row {
    position: static;
    transform: none;
    margin: 10px 0 8px;
  }

  .chart-wrap .chart-gesture-hint {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }
}

/* Plane (Aircraft) and wrench (Maintenance) topbar icons: match the dashboard
   tab icon, and give their nav-items the icon+label flex layout. */
.nav-item-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aircraft-section-nav .nav-item:has(.nav-item-icon) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Mobile: give the graph explorer chart more horizontal room by trimming the
   panel gutter (the internal axis padding already shrank in layout.ts). */
@media (max-width: 720px) {
  .graph-explorer-panel .explorer-panel,
  .explorer-panel .chart-wrap.explorer-chart-wrap {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* Narrow screens: scale the flight-profile highlight cards down so the icon
   shrinks and the big value fits without breaking mid-word/number. The base
   overflow-wrap:anywhere broke "2,313" into "2,31 3" and "KMSL" into "KMS L";
   break-word keeps tokens whole and wraps at spaces/arrows instead. */
@media (max-width: 720px) {
  .profile-highlight-card {
    min-height: 0;
    gap: 12px;
    padding: 14px 14px;
  }

  .profile-highlight-icon {
    width: 40px;
    height: 40px;
    border-width: 1.5px;
  }

  .profile-highlight-icon svg {
    width: 22px;
    height: 22px;
  }

  .profile-highlight-icon svg.profile-airplane-icon { width: 21px; height: 21px; }
  .profile-highlight-icon svg.profile-distance-icon { width: 25px; height: 25px; }
  .profile-highlight-icon svg.profile-density-altimeter-icon { width: 26px; height: 26px; }

  .profile-highlight-card strong {
    font-size: clamp(18px, 6vw, 26px);
    overflow-wrap: break-word;
    word-break: normal;
  }

  .profile-highlight-card strong.profile-highlight-value--time {
    font-size: clamp(17px, 5.2vw, 24px);
  }
}

/* Keep whole tokens intact at all widths: break at spaces/arrows first, only
   splitting a single unbreakable token if it is genuinely wider than the box. */
.profile-highlight-card strong {
  overflow-wrap: break-word;
  word-break: normal;
}

/* ============================================================================
   Small-mobile UI (New UI, <=900px): the fleet sidebar becomes a full-page
   "Home", a persistent bottom tab bar switches sections, and the sidebar
   header is restructured. Desktop/tablet-wide UI is untouched.
   ============================================================================ */

/* --- Persistent bottom tab bar -------------------------------------------- */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  /* No env(safe-area-inset-bottom): without viewport-fit=cover it's 0 on
     Chrome/iOS, and Firefox for Android reports its URL-toolbar height through
     it — which made the bar's height balloon (and re-inflate on overscroll) as
     the toolbar showed/hid. A constant keeps the bar one fixed height. */
  padding: 6px 8px 6px;
  /* Flat, and declared as a background-COLOR rather than a gradient. The two
     stops this replaced were rgba(...,0.96) -> rgba(...,0.99), so the bar was
     already visually flat; expressing it as a colour means a later
     `background-image: none` (the gradient flattening pass) cannot strip it.
     It did exactly that once, and because `background: linear-gradient(...)`
     also resets background-color to transparent, the bar went fully see-through
     and page text read straight through it. */
  background-color: var(--t2036);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px var(--t2037);
}

.mobile-tabbar[hidden] {
  display: none;
}

@media (max-width: 900px) {
  body[data-new-ui] .mobile-tabbar:not([hidden]) {
    display: flex;
  }
}

.mobile-tabbar {
  position: fixed; /* (re-stated for the indicator's positioning context) */
}

/* Sliding active-tab oval: a single indicator that translates between tabs
   instead of the highlight snapping on/off each icon. Positioned in JS. */
.mobile-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--t2038);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.15s;
}

.mobile-tab-indicator.is-visible {
  opacity: 1;
}

.mobile-tab-indicator.no-anim {
  transition: none;
}

.mobile-tab {
  position: relative; /* keep the icon/label above the sliding indicator */
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--t778);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tab:focus {
  outline: none;
}

.mobile-tab:focus-visible {
  outline: 2px solid var(--t2039);
  outline-offset: -2px;
  border-radius: 8px;
}

.mobile-tab-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.mobile-tab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-tab-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-tab.is-active {
  color: var(--text);
}

/* Active: the oval is drawn by the sliding .mobile-tab-indicator behind the
   icons; here we only brighten the active icon color. */
.mobile-tab.is-active .mobile-tab-icon {
  color: var(--t106);
}

@media (max-width: 900px) {
  /* Full-page fleet sidebar (Home): overrides the slide-out drawer. */
  body[data-new-ui]:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar {
    width: 100%;
    box-shadow: none;
    padding-bottom: 84px;
    overflow-y: auto;
  }

  body[data-new-ui].mobile-home-active:is([data-active-view="aircraft"], [data-active-view="dashboard"], [data-active-view="account"], [data-active-view="admin"]) .fleet-sidebar {
    transform: translateX(0);
  }

  /* When Home shows, the workspace (and its scrim) are hidden behind it. */
  body[data-new-ui].mobile-home-active .workspace {
    display: none;
  }

  /* ...but the modal <dialog>s live inside .workspace, and display:none removes
     them from the render tree (killing their top-layer promotion), so an
     Add-aircraft / upload dialog opened from Home would never paint. While any
     dialog is open, keep the workspace rendered — the dialog's backdrop covers
     everything behind it anyway. */
  body[data-new-ui].mobile-home-active:has(dialog[open]) .workspace {
    display: block;
  }

  body[data-new-ui] .fleet-sidebar-scrim {
    display: none !important;
  }

  /* Clear the fixed bottom tab bar. Pad the app shell (which holds both the
     workspace AND the site footer, a sibling of <main>) so the page — footer
     included — can scroll fully above the bar instead of ending underneath it. */
  body[data-new-ui]:not(.mobile-home-active) .app-shell {
    padding-bottom: 74px;
  }

  /* --- Sidebar header: smaller logo, no tagline, account top-right --------- */
  body[data-new-ui] .fleet-sidebar-head {
    position: relative;
    padding-right: 96px;
  }

  body[data-new-ui] .fleet-brand-mark img {
    width: 40px;
    height: 40px;
  }

  body[data-new-ui] .fleet-brand-copy small {
    display: none;
  }

  /* Move the account + admin controls to the top-right of the full page. */
  body[data-new-ui] .fleet-sidebar-foot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
  }

  body[data-new-ui] .fleet-account-name {
    display: none;
  }

  body[data-new-ui] .fleet-sidebar-account {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  body[data-new-ui] .fleet-sidebar-admin {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--t12);
    color: var(--muted);
  }

  body[data-new-ui] .fleet-sidebar-admin-text {
    display: none;
  }

  body[data-new-ui] .fleet-sidebar-admin-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* --- Larger, square flight expand/collapse chevron ---------------------- */
  body[data-new-ui] .fleet-aircraft-chevron {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--t593);
  }

  body[data-new-ui] .fleet-aircraft-chevron svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 900px) {
  /* Small mobile hides the top section tabs; the bottom tab bar replaces
     them (the breadcrumb stays for context). */
  body[data-new-ui] .aircraft-section-nav {
    display: none;
  }
}

/* --- Small-mobile refinements (batch 2) ----------------------------------- */

/* The bottom tab bar controls opt out of double-tap-to-zoom: this app enables
   double-tap zoom for the graph, and without this a quick tab-to-tab switch is
   swallowed as a zoom gesture, so taps "sometimes do nothing". manipulation
   keeps scrolling/pinch but drops the 300ms double-tap wait. Inner icon/label
   never win the hit-test, so the closest([data-mobile-tab]) always resolves. */
.mobile-tabbar,
.mobile-tab {
  touch-action: manipulation;
}

.mobile-tab-icon,
.mobile-tab-icon svg,
.mobile-tab-label {
  pointer-events: none;
}

/* Tab-to-tab slide transition (Home / Dashboard / Aircraft / Maintenance).
   The incoming screen slides in from the right when moving forward through the
   tab order and from the left when moving back. Driven by JS, which adds the
   class to whichever screen container (fleet sidebar for Home, workspace for
   the others) just became visible. */
@keyframes mobile-screen-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes mobile-screen-in-left {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-screen-in-right {
  animation: mobile-screen-in-right 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mobile-screen-in-left {
  animation: mobile-screen-in-left 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* The slide briefly parks a screen off-screen; clip the horizontal overflow
   for the animation's duration so it never hands the page a sideways scrollbar. */
body.mobile-anim-active {
  overflow-x: hidden;
}

body.mobile-anim-active .app-shell {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-screen-in-right,
  .mobile-screen-in-left {
    animation: none;
  }
}

@media (max-width: 900px) {
  /* Taller, well-spaced flight rows in the full-page Home sidebar so they are
     easy to tap (~50% more height than the desktop rail rows). */
  body[data-new-ui] .fleet-flight-item {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 14px;
    margin-bottom: 7px;
  }

  /* A little breathing room at the top of the primary workspace pages. The
     spacer is a solid near-black band (like the header) rather than transparent
     padding, which would reveal the page's blue-tinted background glow. */
  body[data-new-ui]:not(.mobile-home-active):is([data-active-view="aircraft"], [data-active-view="dashboard"]) .workspace {
    border-top: 12px solid var(--t2040);
  }

  /* Keep the dashboard's analysis columns inside the viewport: the single
     implicit column defaulted to auto (min-content), letting the summary band /
     scope switch bleed to the exact screen edge with no right margin. A
     minmax(0, 1fr) track forces those grid items to shrink to the content box
     instead. */
  body[data-new-ui] .analysis-main-column,
  body[data-new-ui] .analysis-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Uploads raw-file column: instead of wrapping a long unbroken log name into
     a tall char-by-char stack, keep it to one line and shorten with an ellipsis
     (the date + tail number at the front stay readable; the boilerplate suffix
     is what gets trimmed). Full name still shows on the download button hover. */
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file {
    min-width: 0;
  }

  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file .aircraft-upload-download,
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file strong,
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* ...but the filename's row and its NEW pill are not text runs, so the
     block/ellipsis treatment above must not reach them: it would stack the
     pill under the name and stretch it across the column. Same specificity as
     the rule above, so this has to stay directly after it. */
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file .aircraft-upload-file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file .row-new-tag {
    display: inline-flex;
    max-width: none;
    overflow: visible;
  }

  /* The filename keeps the ellipsis treatment, but must now yield space to the
     pill beside it rather than claiming the whole row. */
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file-name .aircraft-upload-download,
  body[data-new-ui] .aircraft-uploads-table .aircraft-upload-file-name > strong {
    min-width: 0;
    flex: 0 1 auto;
  }
}

/* --- First-visit mobile "designed for desktop" overlay -------------------- */
.mobile-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--t2041), var(--t2042));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-welcome-overlay[hidden] {
  display: none;
}

.mobile-welcome-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel, var(--t2043));
  box-shadow: 0 24px 60px var(--t592);
  text-align: center;
}

.mobile-welcome-emoji {
  font-size: 44px;
  line-height: 1;
}

.mobile-welcome-card h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 850;
  color: var(--text);
}

.mobile-welcome-card p {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mobile-welcome-continue {
  margin-top: 22px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--blue, var(--t482));
  color: var(--t483);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.mobile-welcome-continue:hover,
.mobile-welcome-continue:focus-visible {
  background: var(--t603);
}

/* --- Unified slim scrollbars (match the fleet sidebar) -------------------- */
/* App-wide default: a thin thumb in the line color over a transparent track,
   no arrow buttons. Element-specific rules (hidden scrollbars on .tabs,
   .top-nav, etc.) are more specific and still win. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  background-clip: padding-box;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* --- Mobile screen slide-OUT (outgoing page) ----------------------------- */
/* Paired with the slide-in on the incoming screen: a fixed-position snapshot of
   the leaving page slides off while the new page slides in from the opposite
   side. */
@keyframes mobile-screen-out-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes mobile-screen-out-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.mobile-screen-out-left {
  animation: mobile-screen-out-left 260ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.mobile-screen-out-right {
  animation: mobile-screen-out-right 260ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-screen-out-left,
  .mobile-screen-out-right {
    animation: none;
  }
}

/* --- Mobile footer: version pill on the copyright line --------------------- */
/* The base ≤920px rule stacks the footer into a column (pill on its own line);
   on small mobile keep the pill beside the copyright, legal links on the row
   below. */
@media (max-width: 900px) {
  body[data-new-ui] .site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
  }

  body[data-new-ui] .site-footer-links {
    flex-basis: 100%;
    justify-content: center;
  }
}

/* --- Mobile Home: no page footer ------------------------------------------ */
/* The full-page Home (fleet) is its own screen; the site footer belongs only to
   the workspace pages, so hide it while Home is showing. */
@media (max-width: 900px) {
  body[data-new-ui].mobile-home-active .site-footer {
    display: none;
  }
}

/* --- Mobile aircraft page header: details + upload toolbar (like desktop) --- */
/* Small screens otherwise hide the summary grid and the header toolbar; the New
   UI aircraft page keeps them so the tail's details and the Upload Log button
   show in the header just as they do on desktop. */
@media (max-width: 640px) {
  body[data-new-ui] .aircraft-context-panel.is-compact .aircraft-summary-grid {
    display: flex;
  }

  body[data-new-ui] .aircraft-context-panel.is-compact .aircraft-toolbar {
    display: grid;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  /* Flights and Maintenance pages (the compact pages that keep their photo
     on mobile — their heroes must match): the details sit BESIDE a smaller
     photo instead of stacking under it. */
  body[data-new-ui] .aircraft-context-panel.is-compact.is-flights-context .aircraft-photo-stack,
  body[data-new-ui] .aircraft-context-panel.is-compact.is-maintenance-context .aircraft-photo-stack {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  body[data-new-ui] .aircraft-context-panel.is-compact.is-flights-context .aircraft-photo-frame-shell,
  body[data-new-ui] .aircraft-context-panel.is-compact.is-flights-context .aircraft-photo-frame,
  body[data-new-ui] .aircraft-context-panel.is-compact.is-maintenance-context .aircraft-photo-frame-shell,
  body[data-new-ui] .aircraft-context-panel.is-compact.is-maintenance-context .aircraft-photo-frame {
    width: 116px;
    height: 80px;
  }
}

/* --- Account > Settings: display preferences ------------------------------ */

.account-display-settings-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.account-display-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.account-display-setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.account-display-setting-label {
  font-weight: 600;
}

.account-display-setting select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.account-display-setting-hint {
  color: var(--muted);
  font-size: 0.85em;
}

/* --- Light theme ---------------------------------------------------------- */
/* The theme is selected by `data-theme` on <html>, stamped before first paint
   by initTheme() (src/app/display-preferences.ts). Dark is the default and is
   left entirely alone: :root keeps its original values, so an existing user's
   rendering is byte-identical to before this existed.

   SCOPE: this redefines the 15 tokens in :root, which covers the app shell but
   NOT the ~3,700 hard-coded colour literals still spread through this file.
   Those areas stay dark under a light theme until they are tokenized. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
}

/* Native form-control chrome (number spinners, date pickers, range tracks)
   follows color-scheme, and a few controls pin it to dark so their pickers
   match the dark shell. Mirror those exact selectors so light mode gets
   light native chrome (dark spinner tiles and near-black slider tracks
   otherwise survive the theme flip). */
:root[data-theme="light"] select,
:root[data-theme="light"] .upload-field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]),
:root[data-theme="light"] .archive-restore-count-input,
:root[data-theme="light"] input[type="range"] {
  color-scheme: light;
}

:root[data-theme="light"] {
  --rail: #eaf0f7;
  --panel: #ffffff;
  --panel-2: #f2f6fb;
  --line: #d3dde9;
  --line-soft: rgba(11, 17, 24, 0.1);
  --text: #101822;
  --muted: #55647a;
  /* Accents keep their hue but darken slightly so they hold contrast against a
     light surface instead of glowing the way they do on the dark shell. */
  --blue: #1668d8;
  --brand-blue: #4a4ad6;
  --green: #2f9b1c;
  --amber: #b96d00;
  --teal: #0f9c8c;
  --red: #d32a1f;
  --purple: #7d33d6;
}

/* NOTE: there is deliberately no light-mode `body` background override here.
   An earlier hand-written one was authored BEFORE tokenization, so the token
   pass rewrote its already-light colours into tokens — which the light theme
   then flipped a second time, turning the page dark in light mode. The base
   `body` rule's own tokens flip correctly on their own. Any hand-written light
   override added from now on must use literal colours, not var(--tN). */

/* --- Generated theme tokens ----------------------------------------------- */
/* Every colour literal in this sheet was replaced by one of these tokens. The
   DARK value of each token is byte-identical to the literal it replaced, so the
   dark theme renders exactly as it did before tokenization; only the light
   block below is new behaviour.

   Tokens are keyed by (CSS role, original colour): the same literal used as a
   background and as a border becomes two tokens, because a light theme has to
   treat those differently. Generated — see the tokenizer in the PR notes rather
   than hand-editing individual values; adjust the light palette here. */
:root {
  --t1: rgba(47, 136, 255, 0.14);
  --t2: #090f15;
  --t3: #111922;
  --t4: #0e151d;
  --t5: rgba(255, 255, 255, 0.06);
  --t6: rgba(0, 0, 0, 0.45);
  --t7: #3a3aa8;
  --t8: #ffffff;
  --t9: rgba(255, 255, 255, 0.85);
  --t10: rgba(255, 255, 255, 0.12);
  --t11: rgba(255, 255, 255, 0.14);
  --t12: rgba(255, 255, 255, 0.04);
  --t13: rgba(255, 255, 255, 0.08);
  --t14: rgba(255, 255, 255, 0.28);
  --t15: rgba(255, 255, 255, 0.12);
  --t16: rgba(47, 136, 255, 0.25);
  --t17: #ff7a3d;
  --t18: #ff4d6d;
  --t19: rgba(255, 77, 109, 0.35);
  --t20: rgba(255, 77, 109, 0.45);
  --t21: rgba(235, 243, 255, 0.92);
  --t22: rgba(105, 165, 255, 0.92);
  --t23: rgba(235, 243, 255, 0.82);
  --t24: rgba(11, 17, 24, 0.98);
  --t25: rgba(11, 17, 24, 0.82);
  --t26: rgba(121, 142, 165, 0.28);
  --t27: rgba(24, 37, 51, 0.96);
  --t28: rgba(13, 24, 35, 0.98);
  --t29: rgba(255, 255, 255, 0.08);
  --t30: rgba(0, 0, 0, 0.18);
  --t31: rgba(47, 136, 255, 0.5);
  --t32: rgba(29, 46, 63, 0.98);
  --t33: rgba(14, 27, 40, 0.98);
  --t34: rgba(47, 136, 255, 0.72);
  --t35: rgba(121, 142, 165, 0.3);
  --t36: rgba(20, 31, 43, 0.98);
  --t37: rgba(12, 22, 32, 0.98);
  --t38: rgba(0, 0, 0, 0.48);
  --t39: rgba(255, 255, 255, 0.07);
  --t40: rgba(255, 255, 255, 0.07);
  --t41: #dce8f5;
  --t42: rgba(47, 136, 255, 0.22);
  --t43: #ffd399;
  --t44: rgba(170, 183, 199, 0.48);
  --t45: #cdeeff;
  --t46: rgba(142, 217, 255, 0.72);
  --t47: rgba(142, 217, 255, 0.96);
  --t48: rgba(47, 136, 255, 0.18);
  --t49: #8ed9ff;
  --t50: rgba(47, 136, 255, 0.09);
  --t51: rgba(47, 136, 255, 0.18);
  --t52: #ffb4ad;
  --t53: rgba(255, 73, 61, 0.36);
  --t54: rgba(255, 73, 61, 0.12);
  --t55: rgba(138, 184, 255, 0.82);
  --t56: rgba(47, 136, 255, 0.16);
  --t57: rgba(47, 136, 255, 0.16);
  --t58: rgba(47, 136, 255, 0.14);
  --t59: rgba(190, 202, 218, 0.86);
  --t60: #8ee7b0;
  --t61: #ffaaa5;
  --t62: rgba(138, 184, 255, 0.38);
  --t63: rgba(18, 31, 47, 0.96);
  --t64: rgba(0, 0, 0, 0.34);
  --t65: #edf5ff;
  --t66: rgba(91, 214, 132, 0.45);
  --t67: #bff5ce;
  --t68: rgba(255, 118, 112, 0.54);
  --t69: #ffc5c1;
  --t70: rgba(138, 184, 255, 0.42);
  --t71: rgba(18, 31, 47, 0.98);
  --t72: rgba(91, 214, 132, 0.5);
  --t73: rgba(255, 118, 112, 0.58);
  --t74: #b9d7ff;
  --t75: rgba(98, 206, 77, 0.15);
  --t76: rgba(255, 73, 61, 0.15);
  --t77: rgba(247, 250, 255, 0.98);
  --t78: rgba(213, 225, 240, 0.88);
  --t79: rgba(138, 184, 255, 0.34);
  --t80: #f7fbff;
  --t81: rgba(255, 255, 255, 0.06);
  --t82: rgba(232, 240, 250, 0.88);
  --t83: rgba(138, 184, 255, 0.72);
  --t84: rgba(47, 136, 255, 0.24);
  --t85: rgba(138, 184, 255, 0.2);
  --t86: rgba(255, 255, 255, 0.045);
  --t87: rgba(255, 118, 112, 0.42);
  --t88: rgba(255, 73, 61, 0.08);
  --t89: #7fb7ff;
  --t90: rgba(127, 183, 255, 0.12);
  --t91: #8ee7b0;
  --t92: rgba(142, 231, 176, 0.12);
  --t93: #ffaaa5;
  --t94: rgba(255, 170, 165, 0.14);
  --t95: rgba(213, 225, 240, 0.9);
  --t96: rgba(213, 225, 240, 0.72);
  --t97: rgba(138, 184, 255, 0.24);
  --t98: rgba(47, 136, 255, 0.12);
  --t99: rgba(237, 245, 255, 0.92);
  --t100: #ffe1df;
  --t101: rgba(255, 170, 165, 0.72);
  --t102: rgba(255, 73, 61, 0.2);
  --t103: rgba(47, 136, 255, 0.42);
  --t104: rgba(47, 136, 255, 0.13);
  --t105: rgba(47, 136, 255, 0.08);
  --t106: #cfe6ff;
  --t107: rgba(194, 211, 231, 0.86);
  --t108: #8ab8ff;
  --t109: rgba(138, 184, 255, 0.88);
  --t110: rgba(47, 136, 255, 0.7);
  --t111: #358cff;
  --t112: #176be2;
  --t113: rgba(17, 31, 48, 0.92);
  --t114: rgba(235, 243, 255, 0.94);
  --t115: rgba(82, 153, 255, 0.82);
  --t116: rgba(195, 207, 221, 0.94);
  --t117: rgba(138, 184, 255, 0.96);
  --t118: rgba(12, 23, 35, 0.28);
  --t119: rgba(174, 188, 207, 0.66);
  --t120: rgba(105, 165, 255, 0.22);
  --t121: rgba(22, 39, 59, 0.72);
  --t122: rgba(105, 165, 255, 0.32);
  --t123: rgba(105, 165, 255, 0.86);
  --t124: rgba(39, 66, 97, 0.58);
  --t125: rgba(17, 31, 48, 0.94);
  --t126: rgba(236, 244, 255, 0.96);
  --t127: rgba(0, 0, 0, 0.2);
  --t128: rgba(105, 165, 255, 0.9);
  --t129: rgba(127, 164, 210, 0.14);
  --t130: rgba(11, 17, 24, 0.86);
  --t131: rgba(11, 17, 24, 0.4);
  --t132: rgba(11, 17, 24, 0);
  --t133: rgba(11, 17, 24, 0.58);
  --t134: rgba(11, 17, 24, 0.01);
  --t135: rgba(11, 17, 24, 0.72);
  --t136: rgba(218, 228, 241, 0.86);
  --t137: rgba(170, 183, 199, 0.86);
  --t138: rgba(138, 184, 255, 0.18);
  --t139: rgba(28, 42, 57, 0.86);
  --t140: rgba(13, 24, 36, 0.88);
  --t141: rgba(0, 0, 0, 0.38);
  --t142: rgba(255, 255, 255, 0.035);
  --t143: rgba(4, 10, 17, 0.86);
  --t144: rgba(255, 255, 255, 0.025);
  --t145: rgba(0, 0, 0, 0.16);
  --t146: rgba(170, 183, 199, 0.84);
  --t147: rgba(255, 255, 255, 0.035);
  --t148: rgba(4, 10, 17, 0.72);
  --t149: rgba(4, 10, 17, 0.32);
  --t150: rgba(245, 248, 255, 0.96);
  --t151: rgba(170, 183, 199, 0.9);
  --t152: rgba(127, 164, 210, 0.18);
  --t153: rgba(18, 28, 39, 0.78);
  --t154: rgba(15, 24, 34, 0.92);
  --t155: rgba(47, 136, 255, 0.11);
  --t156: rgba(6, 13, 22, 0.72);
  --t157: rgba(4, 10, 17, 0.18);
  --t158: rgba(11, 17, 24, 0.88);
  --t159: rgba(11, 17, 24, 0.52);
  --t160: rgba(11, 17, 24, 0.12);
  --t161: rgba(11, 17, 24, 0.18);
  --t162: rgba(11, 17, 24, 0.84);
  --t163: rgba(170, 183, 199, 0.88);
  --t164: rgba(247, 251, 255, 0.98);
  --t165: rgba(218, 228, 241, 0.88);
  --t166: rgba(10, 18, 27, 0.72);
  --t167: rgba(0, 0, 0, 0.28);
  --t168: rgba(255, 255, 255, 0.04);
  --t169: rgba(8, 15, 22, 0.86);
  --t170: rgba(127, 164, 210, 0.2);
  --t171: rgba(225, 235, 247, 0.9);
  --t172: rgba(13, 25, 37, 0.78);
  --t173: rgba(127, 164, 210, 0.32);
  --t174: #eef4fb;
  --t175: rgba(23, 36, 51, 0.96);
  --t176: rgba(13, 24, 35, 0.96);
  --t177: rgba(4, 9, 15, 0.5);
  --t178: rgba(127, 164, 210, 0.08);
  --t179: rgba(32, 52, 74, 0.98);
  --t180: rgba(18, 31, 45, 0.98);
  --t181: rgba(139, 214, 255, 0.95);
  --t182: rgba(13, 25, 37, 0.62);
  --t183: rgba(127, 164, 210, 0.12);
  --t184: rgba(139, 214, 255, 0.88);
  --t185: rgba(196, 209, 224, 0.86);
  --t186: rgba(205, 218, 232, 0.9);
  --t187: rgba(196, 209, 224, 0.88);
  --t188: rgba(13, 25, 37, 0.68);
  --t189: rgba(5, 10, 16, 0.9);
  --t190: rgba(75, 132, 255, 0.18);
  --t191: rgba(158, 219, 255, 0.96);
  --t192: rgba(0, 0, 0, 0.26);
  --t193: rgba(11, 17, 24, 0.92);
  --t194: rgba(11, 17, 24, 0.48);
  --t195: rgba(11, 17, 24, 0.2);
  --t196: rgba(11, 17, 24, 0.74);
  --t197: rgba(255, 159, 28, 0.08);
  --t198: rgba(127, 164, 210, 0.16);
  --t199: #8ab8ff;
  --t200: rgba(47, 136, 255, 0.52);
  --t201: rgba(47, 136, 255, 0.1);
  --t202: rgba(213, 225, 240, 0.8);
  --t203: rgba(138, 184, 255, 0.28);
  --t204: rgba(0, 0, 0, 0.46);
  --t205: rgba(213, 225, 240, 0.78);
  --t206: rgba(4, 10, 17, 0.26);
  --t207: rgba(4, 10, 17, 0.98);
  --t208: rgba(98, 206, 77, 0.55);
  --t209: rgba(213, 225, 240, 0.74);
  --t210: rgba(238, 244, 251, 0.96);
  --t211: #69a5ff;
  --t212: rgba(47, 136, 255, 0.05);
  --t213: #2f88ff;
  --t214: #ff9f1c;
  --t215: rgba(255, 159, 28, 0.88);
  --t216: rgba(255, 159, 28, 0.09);
  --t217: rgba(0, 0, 0, 0.36);
  --t218: rgba(255, 159, 28, 0.44);
  --t219: rgba(255, 159, 28, 0.1);
  --t220: rgba(170, 183, 199, 0.78);
  --t221: rgba(238, 244, 251, 0.9);
  --t222: rgba(255, 159, 28, 0.12);
  --t223: rgba(213, 225, 240, 0.84);
  --t224: rgba(255, 159, 28, 0.08);
  --t225: rgba(0, 0, 0, 0.3);
  --t226: rgba(255, 159, 28, 0.42);
  --t227: #ffb14f;
  --t228: rgba(213, 225, 240, 0.82);
  --t229: rgba(45, 212, 191, 0.12);
  --t230: rgba(45, 212, 191, 0.025);
  --t231: #5df0da;
  --t232: rgba(45, 212, 191, 0.48);
  --t233: rgba(45, 212, 191, 0.1);
  --t234: #baf7ee;
  --t235: rgba(12, 22, 33, 0.9);
  --t236: rgba(15, 27, 39, 0.72);
  --t237: rgba(0, 0, 0, 0.24);
  --t238: rgba(9, 15, 21, 0.84);
  --t239: rgba(9, 15, 21, 0.38);
  --t240: rgba(9, 15, 21, 0.66);
  --t241: rgba(45, 212, 191, 0.15);
  --t242: rgba(8, 16, 24, 0.96);
  --t243: rgba(12, 23, 35, 0.74);
  --t244: rgba(8, 16, 24, 0.5);
  --t245: rgba(9, 15, 23, 0.94);
  --t246: rgba(9, 15, 23, 0.62);
  --t247: rgba(9, 15, 23, 0.24);
  --t248: rgba(18, 28, 39, 0.82);
  --t249: rgba(15, 24, 34, 0.94);
  --t250: rgba(139, 214, 255, 0.26);
  --t251: rgba(143, 221, 255, 0.96);
  --t252: rgba(25, 115, 184, 0.14);
  --t253: rgba(245, 248, 255, 0.98);
  --t254: rgba(184, 200, 218, 0.92);
  --t255: rgba(103, 168, 255, 0.72);
  --t256: rgba(45, 212, 191, 0.7);
  --t257: rgba(255, 159, 28, 0.62);
  --t258: rgba(103, 168, 255, 0.62);
  --t259: #ffb13d;
  --t260: rgba(7, 16, 24, 0.98);
  --t261: rgba(7, 16, 24, 0.82);
  --t262: rgba(7, 16, 24, 0.18);
  --t263: rgba(7, 16, 24, 0.06);
  --t264: rgba(18, 32, 45, 0.64);
  --t265: rgba(13, 24, 35, 0.76);
  --t266: rgba(45, 212, 191, 0.8);
  --t267: rgba(255, 177, 61, 0.82);
  --t268: rgba(7, 16, 24, 0.2);
  --t269: rgba(7, 16, 24, 0.62);
  --t270: #2dd4bf;
  --t271: #07151c;
  --t272: #ffb13d;
  --t273: rgba(7, 16, 24, 0.58);
  --t274: rgba(174, 189, 205, 0.9);
  --t275: #2dd4bf;
  --t276: rgba(7, 16, 24, 0.88);
  --t277: rgba(7, 16, 24, 0.64);
  --t278: rgba(0, 0, 0, 0.22);
  --t279: rgba(15, 31, 45, 0.6);
  --t280: rgba(12, 24, 36, 0.74);
  --t281: rgba(15, 31, 45, 0.58);
  --t282: rgba(142, 157, 176, 0.16);
  --t283: rgba(142, 157, 176, 0.46);
  --t284: rgba(0, 0, 0, 0.34);
  --t285: rgba(45, 212, 191, 0.18);
  --t286: #2dd4bf;
  --t287: #5aa9ff;
  --t288: #276fc7;
  --t289: rgba(141, 196, 255, 0.32);
  --t290: rgba(47, 136, 255, 0.28);
  --t291: #eaf5ff;
  --t292: rgba(18, 32, 45, 0.8);
  --t293: rgba(13, 24, 35, 0.94);
  --t294: #67a8ff;
  --t295: rgba(18, 31, 44, 0.72);
  --t296: rgba(225, 235, 247, 0.92);
  --t297: rgba(127, 164, 210, 0.26);
  --t298: rgba(10, 22, 32, 0.82);
  --t299: rgba(238, 245, 255, 0.96);
  --t300: rgba(170, 183, 199, 0.72);
  --t301: rgba(139, 214, 255, 0.62);
  --t302: rgba(65, 160, 230, 0.12);
  --t303: rgba(12, 24, 35, 0.76);
  --t304: rgba(218, 228, 241, 0.9);
  --t305: rgba(64, 147, 221, 0.16);
  --t306: #8ed9ff;
  --t307: rgba(64, 147, 221, 0.14);
  --t308: rgba(18, 31, 44, 0.86);
  --t309: rgba(139, 214, 255, 0.18);
  --t310: rgba(65, 160, 230, 0.08);
  --t311: rgba(196, 209, 224, 0.9);
  --t312: rgba(139, 214, 255, 0.16);
  --t313: rgba(21, 38, 52, 0.72);
  --t314: rgba(139, 214, 255, 0.14);
  --t315: rgba(8, 18, 27, 0.34);
  --t316: rgba(245, 248, 255, 0.94);
  --t317: rgba(191, 238, 255, 0.96);
  --t318: rgba(170, 183, 199, 0.82);
  --t319: rgba(8, 15, 23, 0.78);
  --t320: rgba(7, 12, 18, 0.04);
  --t321: rgba(7, 12, 18, 0.16);
  --t322: rgba(7, 12, 18, 0.34);
  --t323: rgba(0, 0, 0, 0.32);
  --t324: rgba(7, 12, 18, 0.54);
  --t325: rgba(142, 217, 255, 0.42);
  --t326: rgba(142, 217, 255, 0.5);
  --t327: rgba(119, 228, 174, 0.96);
  --t328: rgba(255, 139, 132, 0.96);
  --t329: rgba(127, 164, 210, 0.24);
  --t330: rgba(127, 164, 210, 0.04);
  --t331: rgba(170, 183, 199, 0.92);
  --t332: rgba(231, 239, 250, 0.9);
  --t333: rgba(92, 139, 182, 0.24);
  --t334: rgba(40, 139, 215, 0.11);
  --t335: rgba(9, 22, 35, 0.98);
  --t336: rgba(5, 15, 26, 0.98);
  --t337: rgba(7, 16, 27, 0.97);
  --t338: rgba(8, 18, 30, 0.91);
  --t339: rgba(8, 18, 30, 0.73);
  --t340: rgba(7, 18, 30, 0.58);
  --t341: rgba(108, 143, 177, 0.22);
  --t342: rgba(7, 18, 30, 0.42);
  --t343: rgba(134, 167, 203, 0.25);
  --t344: rgba(31, 48, 68, 0.92);
  --t345: rgba(15, 28, 43, 0.92);
  --t346: rgba(240, 246, 255, 0.95);
  --t347: rgba(255, 255, 255, 0.06);
  --t348: rgba(76, 166, 255, 0.64);
  --t349: rgba(38, 67, 96, 0.95);
  --t350: rgba(18, 38, 61, 0.95);
  --t351: rgba(143, 158, 178, 0.94);
  --t352: rgba(74, 166, 255, 0.96);
  --t353: rgba(92, 174, 255, 0.38);
  --t354: rgba(47, 136, 255, 0.2);
  --t355: rgba(47, 136, 255, 0.08);
  --t356: rgba(12, 30, 49, 0.82);
  --t357: rgba(153, 205, 255, 0.98);
  --t358: rgba(47, 136, 255, 0.1);
  --t359: rgba(186, 199, 218, 0.94);
  --t360: rgba(115, 151, 190, 0.17);
  --t361: rgba(27, 47, 66, 0.62);
  --t362: rgba(12, 26, 41, 0.42);
  --t363: rgba(7, 18, 30, 0.38);
  --t364: rgba(47, 136, 255, 0.72);
  --t365: rgba(159, 191, 226, 0.16);
  --t366: rgba(76, 166, 255, 0.36);
  --t367: rgba(115, 151, 190, 0.18);
  --t368: rgba(8, 18, 30, 0.42);
  --t369: rgba(177, 195, 217, 0.68);
  --t370: rgba(232, 240, 252, 0.96);
  --t371: rgba(76, 166, 255, 0.96);
  --t372: rgba(115, 151, 190, 0.16);
  --t373: rgba(76, 166, 255, 0.52);
  --t374: rgba(9, 22, 36, 0.28);
  --t375: rgba(76, 166, 255, 0.22);
  --t376: rgba(153, 205, 255, 0.95);
  --t377: rgba(108, 143, 177, 0.14);
  --t378: rgba(76, 166, 255, 0.88);
  --t379: rgba(201, 213, 231, 0.94);
  --t380: rgba(242, 248, 255, 0.98);
  --t381: rgba(76, 166, 255, 0.78);
  --t382: rgba(239, 246, 255, 0.98);
  --t383: rgba(169, 185, 205, 0.84);
  --t384: rgba(92, 154, 214, 0.25);
  --t385: rgba(25, 55, 84, 0.3);
  --t386: rgba(9, 24, 39, 0.2);
  --t387: rgba(7, 18, 30, 0.34);
  --t388: rgba(108, 143, 177, 0.16);
  --t389: rgba(146, 169, 194, 0.82);
  --t390: rgba(243, 248, 255, 0.98);
  --t391: rgba(76, 166, 255, 0.32);
  --t392: rgba(160, 210, 255, 0.98);
  --t393: rgba(8, 20, 33, 0.28);
  --t394: rgba(109, 76, 255, 0.12);
  --t395: rgba(10, 19, 34, 0.58);
  --t396: rgba(171, 147, 255, 0.92);
  --t397: rgba(244, 241, 255, 0.98);
  --t398: rgba(171, 147, 255, 0.3);
  --t399: rgba(109, 76, 255, 0.1);
  --t400: rgba(204, 192, 255, 0.94);
  --t401: rgba(171, 147, 255, 0.2);
  --t402: rgba(57, 39, 105, 0.13);
  --t403: rgba(184, 197, 216, 0.88);
  --t404: rgba(235, 240, 249, 0.98);
  --t405: rgba(119, 137, 179, 0.24);
  --t406: rgba(7, 17, 30, 0.52);
  --t407: rgba(151, 170, 193, 0.88);
  --t408: rgba(190, 174, 255, 0.96);
  --t409: rgba(116, 163, 210, 0.24);
  --t410: rgba(45, 103, 156, 0.12);
  --t411: rgba(165, 207, 246, 0.94);
  --t412: rgba(201, 170, 78, 0.28);
  --t413: rgba(138, 101, 23, 0.13);
  --t414: rgba(241, 208, 116, 0.94);
  --t415: rgba(240, 245, 252, 0.98);
  --t416: rgba(197, 209, 225, 0.94);
  --t417: rgba(218, 191, 115, 0.9);
  --t418: rgba(101, 134, 169, 0.22);
  --t419: rgba(20, 39, 58, 0.55);
  --t420: rgba(203, 215, 230, 0.94);
  --t421: rgba(136, 197, 255, 0.96);
  --t422: rgba(145, 163, 184, 0.84);
  --t423: rgba(76, 166, 255, 0.92);
  --t424: rgba(176, 213, 247, 0.92);
  --t425: rgba(76, 166, 255, 0.42);
  --t426: rgba(255, 255, 255, 0.045);
  --t427: rgba(76, 166, 255, 0.12);
  --t428: rgba(7, 19, 31, 0.42);
  --t429: rgba(235, 244, 255, 0.96);
  --t430: rgba(154, 171, 193, 0.9);
  --t431: rgba(27, 47, 66, 0.72);
  --t432: rgba(16, 32, 48, 0.72);
  --t433: rgba(239, 245, 255, 0.94);
  --t434: rgba(167, 181, 201, 0.92);
  --t435: rgba(108, 143, 177, 0.17);
  --t436: rgba(186, 199, 218, 0.92);
  --t437: rgba(255, 165, 38, 0.95);
  --t438: rgba(255, 205, 92, 0.95);
  --t439: rgba(95, 213, 119, 0.95);
  --t440: rgba(148, 162, 181, 0.86);
  --t441: rgba(115, 151, 190, 0.15);
  --t442: rgba(27, 47, 66, 0.64);
  --t443: rgba(16, 32, 48, 0.66);
  --t444: rgba(238, 244, 253, 0.94);
  --t445: rgba(177, 190, 208, 0.92);
  --t446: rgba(236, 243, 253, 0.94);
  --t447: rgba(75, 166, 255, 0.95);
  --t448: rgba(35, 115, 210, 0.95);
  --t449: rgba(255, 255, 255, 0.96);
  --t450: rgba(162, 177, 198, 0.88);
  --t451: rgba(91, 177, 255, 0.96);
  --t452: rgba(185, 223, 255, 0.98);
  --t453: rgba(10, 27, 42, 0.64);
  --t454: rgba(94, 178, 255, 0.96);
  --t455: rgba(115, 151, 190, 0.12);
  --t456: rgba(235, 243, 255, 0.95);
  --t457: rgba(190, 204, 222, 0.92);
  --t458: rgba(255, 176, 168, 0.94);
  --t459: rgba(245, 158, 11, 0.88);
  --t460: rgba(104, 63, 8, 0.22);
  --t461: rgba(23, 31, 39, 0.42);
  --t462: rgba(12, 22, 35, 0.18);
  --t463: rgba(251, 191, 36, 0.48);
  --t464: rgba(120, 75, 9, 0.2);
  --t465: rgba(253, 230, 138, 0.98);
  --t466: rgba(253, 230, 138, 0.82);
  --t467: rgba(255, 247, 222, 0.98);
  --t468: rgba(222, 210, 184, 0.95);
  --t469: rgba(186, 199, 218, 0.86);
  --t470: rgba(253, 230, 138, 0.88);
  --t471: rgba(254, 243, 199, 0.15);
  --t472: #f59e0b;
  --t473: #fbbf24;
  --t474: rgba(251, 191, 36, 0.28);
  --t475: rgba(186, 199, 218, 0.78);
  --t476: rgba(7, 16, 27, 0.96);
  --t477: rgba(8, 18, 30, 0.88);
  --t478: rgba(255, 255, 255, 0.02);
  --t479: rgba(13, 26, 40, 0.78);
  --t480: rgba(47, 136, 255, 0.65);
  --t481: rgba(107, 174, 255, 0.95);
  --t482: #2f88ff;
  --t483: #fff;
  --t484: rgba(255, 255, 255, 0.22);
  --t485: rgba(47, 136, 255, 0.22);
  --t486: rgba(255, 255, 255, 0.08);
  --t487: rgba(5, 14, 24, 0.32);
  --t488: #dce7f3;
  --t489: rgba(47, 136, 255, 0.28);
  --t490: rgba(255, 255, 255, 0.22);
  --t491: rgba(138, 184, 255, 0.34);
  --t492: rgba(47, 136, 255, 0.62);
  --t493: rgba(8, 16, 26, 0.35);
  --t494: rgba(49, 214, 200, 0.6);
  --t495: rgba(49, 214, 200, 0.09);
  --t496: rgba(49, 214, 200, 0.16);
  --t497: rgba(49, 214, 200, 0.38);
  --t498: rgba(49, 214, 200, 0.08);
  --t499: rgba(255, 159, 28, 0.09);
  --t500: rgba(255, 255, 255, 0.05);
  --t501: rgba(255, 255, 255, 0.015);
  --t502: rgba(8, 16, 26, 0.44);
  --t503: rgba(47, 136, 255, 0.68);
  --t504: rgba(47, 136, 255, 0.2);
  --t505: rgba(47, 136, 255, 0.35);
  --t506: #9dccff;
  --t507: rgba(3, 12, 22, 0.38);
  --t508: rgba(255, 159, 28, 0.24);
  --t509: rgba(255, 159, 28, 0.4);
  --t510: rgba(47, 136, 255, 0.24);
  --t511: rgba(20, 30, 41, 0.92);
  --t512: #dbeafe;
  --t513: #d8e4f0;
  --t514: #101a25;
  --t515: rgba(93, 119, 145, 0.4);
  --t516: rgba(8, 16, 26, 0.42);
  --t517: rgba(8, 16, 26, 0.5);
  --t518: rgba(8, 16, 26, 0.54);
  --t519: rgba(139, 178, 217, 0.32);
  --t520: rgba(8, 16, 26, 0.62);
  --t521: rgba(104, 166, 255, 0.7);
  --t522: rgba(139, 178, 217, 0.6);
  --t523: rgba(8, 16, 26, 0.72);
  --t524: rgba(138, 184, 255, 0.4);
  --t525: rgba(14, 28, 45, 0.42);
  --t526: rgba(139, 178, 217, 0.44);
  --t527: rgba(5, 10, 18, 0.88);
  --t528: rgba(138, 184, 255, 0.92);
  --t529: rgba(8, 16, 26, 0.96);
  --t530: rgba(3, 8, 16, 0.44);
  --t531: #d6e1ed;
  --t532: rgba(255, 255, 255, 0.7);
  --t533: rgba(104, 166, 255, 0.9);
  --t534: rgba(5, 10, 18, 0.94);
  --t535: #eef6ff;
  --t536: #a8b7c8;
  --t537: rgba(105, 165, 255, 0.26);
  --t538: rgba(105, 165, 255, 0.68);
  --t539: rgba(105, 165, 255, 0.12);
  --t540: rgba(105, 165, 255, 0.18);
  --t541: rgba(10, 18, 26, 0.72);
  --t542: rgba(7, 12, 18, 0.56);
  --t543: rgba(8, 14, 20, 0.1);
  --t544: rgba(138, 184, 255, 0.32);
  --t545: rgba(10, 18, 26, 0.78);
  --t546: #ffd18a;
  --t547: rgba(226, 236, 248, 0.82);
  --t548: rgba(105, 165, 255, 0.16);
  --t549: rgba(21, 36, 51, 0.88);
  --t550: rgba(16, 28, 40, 0.9);
  --t551: rgba(204, 217, 232, 0.72);
  --t552: rgba(204, 217, 232, 0.66);
  --t553: rgba(226, 236, 248, 0.88);
  --t554: #4b9bff;
  --t555: #ff6f62;
  --t556: rgba(169, 189, 212, 0.16);
  --t557: rgba(169, 189, 212, 0.14);
  --t558: #62ce4d;
  --t559: #80d86b;
  --t560: #ff9f1c;
  --t561: #ffc047;
  --t562: rgba(8, 14, 22, 0.64);
  --t563: rgba(105, 165, 255, 0.14);
  --t564: rgba(18, 32, 46, 0.5);
  --t565: rgba(105, 165, 255, 0.1);
  --t566: rgba(238, 244, 251, 0.92);
  --t567: rgba(98, 206, 77, 0.72);
  --t568: rgba(255, 73, 61, 0.82);
  --t569: rgba(204, 217, 232, 0.78);
  --t570: rgba(47, 136, 255, 0.07);
  --t571: rgba(255, 73, 61, 0.4);
  --t572: rgba(45, 212, 191, 0.4);
  --t573: rgba(23, 36, 51, 0.6);
  --t574: rgba(9, 15, 21, 0.6);
  --t575: #ffb54d;
  --t576: #ff493d;
  --t577: #ff7a6b;
  --t578: rgba(45, 212, 191, 0.35);
  --t579: rgba(9, 15, 21, 0.5);
  --t580: rgba(47, 136, 255, 0.45);
  --t581: rgba(9, 15, 21, 0.7);
  --t582: rgba(170, 183, 199, 0.35);
  --t583: rgba(255, 159, 28, 0.55);
  --t584: rgba(45, 212, 191, 0.5);
  --t585: rgba(45, 212, 191, 0.06);
  --t586: rgba(47, 136, 255, 0.06);
  --t587: rgba(53, 190, 255, 0.14);
  --t588: rgba(7, 12, 18, 0.02);
  --t589: rgba(7, 12, 18, 0.6);
  --t590: rgba(8, 14, 20, 0.12);
  --t591: rgba(10, 18, 26, 0.8);
  --t592: rgba(0, 0, 0, 0.5);
  --t593: rgba(255, 255, 255, 0.03);
  --t594: rgba(47, 136, 255, 0.55);
  --t595: #fca5a5;
  --t596: rgba(5, 10, 16, 0.74);
  --t597: #3b82f6;
  --t598: #3b82f6;
  --t599: #f2998f;
  --t600: rgba(98, 206, 77, 0.7);
  --t601: rgba(98, 206, 77, 0.14);
  --t602: rgba(16, 28, 40, 0.92);
  --t603: #4c9aff;
  --t604: #7a5cff;
  --t605: rgba(204, 217, 232, 0.62);
  --t606: rgba(241, 247, 255, 0.92);
  --t607: rgba(7, 18, 29, 0.28);
  --t608: rgba(255, 113, 113, 0.24);
  --t609: rgba(72, 20, 24, 0.18);
  --t610: rgba(241, 247, 255, 0.94);
  --t611: rgba(241, 247, 255, 0.9);
  --t612: #4b9bff;
  --t613: rgba(7, 18, 29, 0.32);
  --t614: rgba(142, 217, 255, 0.28);
  --t615: rgba(142, 217, 255, 0.26);
  --t616: #d7f4ff;
  --t617: rgba(241, 247, 255, 0.95);
  --t618: rgba(204, 217, 232, 0.68);
  --t619: rgba(204, 217, 232, 0.54);
  --t620: #4b9bff;
  --t621: rgba(75, 155, 255, 0.15);
  --t622: rgba(216, 228, 240, 0.82);
  --t623: rgba(138, 184, 255, 0.16);
  --t624: rgba(8, 16, 26, 0.28);
  --t625: rgba(7, 18, 30, 0.24);
  --t626: rgba(174, 188, 207, 0.72);
  --t627: rgba(138, 184, 255, 0.08);
  --t628: rgba(174, 188, 207, 0.76);
  --t629: rgba(174, 188, 207, 0.48);
  --t630: rgba(138, 184, 255, 0.15);
  --t631: rgba(8, 16, 26, 0.34);
  --t632: rgba(174, 188, 207, 0.72);
  --t633: rgba(216, 228, 240, 0.64);
  --t634: #eff6ff;
  --t635: rgba(105, 165, 255, 0.16);
  --t636: rgba(127, 29, 29, 0.2);
  --t637: #ffaaa7;
  --t638: rgba(248, 113, 113, 0.28);
  --t639: rgba(120, 53, 15, 0.2);
  --t640: #ffd76a;
  --t641: rgba(20, 83, 45, 0.2);
  --t642: #83df9b;
  --t643: rgba(74, 222, 128, 0.24);
  --t644: rgba(148, 163, 184, 0.62);
  --t645: #72e39a;
  --t646: rgba(114, 227, 154, 0.32);
  --t647: rgba(8, 16, 26, 0.36);
  --t648: rgba(216, 228, 240, 0.72);
  --t649: rgba(105, 165, 255, 0.42);
  --t650: #7ddc8a;
  --t651: #f3a23a;
  --t652: #ffb4aa;
  --t653: rgba(159, 179, 200, 0.12);
  --t654: rgba(159, 179, 200, 0.22);
  --t655: rgba(98, 206, 77, 0.34);
  --t656: rgba(47, 136, 255, 0.34);
  --t657: rgba(255, 73, 61, 0.14);
  --t658: rgba(255, 73, 61, 0.34);
  --t659: rgba(159, 179, 200, 0.28);
  --t660: rgba(8, 16, 28, 0.24);
  --t661: rgba(255, 180, 173, 0.82);
  --t662: rgba(150, 166, 183, 0.38);
  --t663: rgba(148, 163, 184, 0.22);
  --t664: rgba(15, 23, 42, 0.28);
  --t665: rgba(105, 165, 255, 0.48);
  --t666: rgba(148, 163, 184, 0.24);
  --t667: rgba(216, 228, 240, 0.6);
  --t668: rgba(251, 191, 36, 0.34);
  --t669: rgba(120, 53, 15, 0.12);
  --t670: #fde68a;
  --t671: rgba(148, 163, 184, 0.2);
  --t672: rgba(216, 228, 240, 0.55);
  --t673: rgba(216, 228, 240, 0.5);
  --t674: rgba(174, 188, 207, 0.5);
  --t675: rgba(174, 188, 207, 0.62);
  --t676: rgba(8, 16, 26, 0.52);
  --t677: rgba(47, 136, 255, 0.58);
  --t678: rgba(11, 22, 34, 0.72);
  --t679: rgba(255, 255, 255, 0.6);
  --t680: rgba(255, 159, 28, 0.72);
  --t681: rgba(255, 159, 28, 0.24);
  --t682: rgba(98, 206, 77, 0.08);
  --t683: rgba(255, 159, 28, 0.34);
  --t684: rgba(255, 255, 255, 0.025);
  --t685: rgba(11, 22, 34, 0.52);
  --t686: rgba(255, 159, 28, 0.45);
  --t687: rgba(255, 73, 61, 0.5);
  --t688: rgba(16, 185, 129, 0.42);
  --t689: rgba(255, 159, 28, 0.32);
  --t690: rgba(11, 22, 34, 0.42);
  --t691: rgba(255, 73, 61, 0.52);
  --t692: rgba(255, 73, 61, 0.78);
  --t693: rgba(255, 159, 28, 0.5);
  --t694: rgba(255, 159, 28, 0.78);
  --t695: rgba(16, 35, 55, 0.8);
  --t696: rgba(14, 29, 45, 0.78);
  --t697: rgba(245, 158, 11, 0.86);
  --t698: rgba(255, 209, 102, 0.92);
  --t699: rgba(47, 136, 255, 0.9);
  --t700: rgba(45, 212, 191, 0.9);
  --t701: rgba(150, 166, 183, 0.78);
  --t702: rgba(179, 107, 255, 0.78);
  --t703: #c7d3e0;
  --t704: rgba(8, 18, 29, 0.54);
  --t705: #aab8c8;
  --t706: rgba(138, 184, 255, 0.22);
  --t707: rgba(8, 16, 26, 0.38);
  --t708: rgba(234, 242, 251, 0.92);
  --t709: rgba(255, 255, 255, 0.012);
  --t710: rgba(12, 25, 39, 0.74);
  --t711: #35b7ff;
  --t712: rgba(4, 15, 25, 0.72);
  --t713: rgba(202, 214, 229, 0.9);
  --t714: rgba(238, 246, 255, 0.94);
  --t715: rgba(53, 183, 255, 0.72);
  --t716: rgba(53, 183, 255, 0.14);
  --t717: #35b7ff;
  --t718: #3b9dff;
  --t719: rgba(59, 157, 255, 0.72);
  --t720: rgba(255, 255, 255, 0.032);
  --t721: rgba(255, 255, 255, 0.01);
  --t722: rgba(10, 22, 35, 0.72);
  --t723: rgba(138, 184, 255, 0.13);
  --t724: rgba(234, 242, 251, 0.94);
  --t725: #132131;
  --t726: rgba(105, 165, 255, 0.72);
  --t727: rgba(47, 136, 255, 0.065);
  --t728: rgba(138, 184, 255, 0.12);
  --t729: rgba(138, 184, 255, 0.1);
  --t730: rgba(105, 165, 255, 0.62);
  --t731: rgba(138, 184, 255, 0.2);
  --t732: rgba(138, 184, 255, 0.18);
  --t733: rgba(105, 165, 255, 0.88);
  --t734: rgba(105, 165, 255, 0.74);
  --t735: rgba(138, 184, 255, 0.36);
  --t736: rgba(216, 228, 240, 0.52);
  --t737: rgba(138, 184, 255, 0.045);
  --t738: rgba(47, 136, 255, 0.075);
  --t739: rgba(8, 16, 26, 0.4);
  --t740: rgba(216, 228, 240, 0.54);
  --t741: rgba(242, 181, 56, 0.035);
  --t742: rgba(242, 181, 56, 0.055);
  --t743: rgba(242, 181, 56, 0.18);
  --t744: rgba(242, 181, 56, 0.5);
  --t745: rgba(243, 162, 58, 0.13);
  --t746: rgba(243, 162, 58, 0.36);
  --t747: rgba(159, 179, 200, 0.08);
  --t748: rgba(159, 179, 200, 0.62);
  --t749: rgba(241, 246, 255, 0.94);
  --t750: rgba(174, 188, 207, 0.7);
  --t751: rgba(105, 165, 255, 0.9);
  --t752: #111c2b;
  --t753: rgba(159, 179, 200, 0.3);
  --t754: rgba(1, 8, 18, 0.42);
  --t755: rgba(243, 162, 58, 0.12);
  --t756: rgba(243, 162, 58, 0.38);
  --t757: #f7bd68;
  --t758: rgba(255, 73, 61, 0.35);
  --t759: rgba(105, 165, 255, 0.4);
  --t760: #b9d6ff;
  --t761: rgba(180, 83, 9, 0.12);
  --t762: rgba(217, 119, 6, 0.35);
  --t763: rgba(17, 30, 45, 0.92);
  --t764: rgba(217, 119, 6, 0.86);
  --t765: #fef3c7;
  --t766: rgba(254, 243, 199, 0.86);
  --t767: rgba(180, 83, 9, 0.1);
  --t768: rgba(217, 119, 6, 0.72);
  --t769: rgba(217, 119, 6, 0.18);
  --t770: rgba(245, 158, 11, 0.9);
  --t771: #fff7db;
  --t772: rgba(245, 158, 11, 0.72);
  --t773: rgba(105, 165, 255, 0.14);
  --t774: rgba(105, 165, 255, 0.46);
  --t775: rgba(198, 220, 255, 0.96);
  --t776: rgba(216, 228, 240, 0.62);
  --t777: rgba(247, 202, 93, 0.92);
  --t778: rgba(174, 188, 207, 0.7);
  --t779: rgba(241, 246, 255, 0.9);
  --t780: rgba(174, 188, 207, 0.4);
  --t781: rgba(216, 228, 240, 0.88);
  --t782: rgba(174, 188, 207, 0.6);
  --t783: rgba(255, 255, 255, 0.18);
  --t784: rgba(9, 15, 22, 0.6);
  --t785: rgba(241, 246, 255, 0.95);
  --t786: rgba(216, 228, 240, 0.9);
  --t787: rgba(105, 165, 255, 0.5);
  --t788: rgba(191, 219, 254, 0.86);
  --t789: rgba(30, 64, 175, 0.12);
  --t790: rgba(138, 184, 255, 0.78);
  --t791: rgba(47, 136, 255, 0.12);
  --t792: rgba(138, 184, 255, 0.8);
  --t793: rgba(174, 188, 207, 0.38);
  --t794: rgba(216, 228, 240, 0.68);
  --t795: rgba(248, 113, 113, 0.48);
  --t796: #fecaca;
  --t797: rgba(127, 29, 29, 0.18);
  --t798: rgba(248, 113, 113, 0.85);
  --t799: #fee2e2;
  --t800: rgba(220, 38, 38, 0.32);
  --t801: rgba(248, 113, 113, 0.18);
  --t802: rgba(251, 191, 36, 0.42);
  --t803: rgba(120, 53, 15, 0.16);
  --t804: rgba(76, 201, 160, 0.44);
  --t805: #b9f4df;
  --t806: rgba(20, 83, 45, 0.16);
  --t807: rgba(167, 139, 250, 0.18);
  --t808: rgba(203, 213, 225, 0.78);
  --t809: rgba(15, 23, 42, 0.18);
  --t810: rgba(148, 163, 184, 0.18);
  --t811: rgba(203, 213, 225, 0.76);
  --t812: rgba(167, 139, 250, 0.56);
  --t813: #ddd6fe;
  --t814: rgba(67, 56, 202, 0.16);
  --t815: rgba(196, 181, 253, 0.76);
  --t816: rgba(124, 58, 237, 0.16);
  --t817: rgba(124, 58, 237, 0.14);
  --t818: rgba(124, 58, 237, 0.1);
  --t819: #f5f3ff;
  --t820: #bfdbfe;
  --t821: rgba(196, 181, 253, 0.58);
  --t822: rgba(76, 201, 160, 0.52);
  --t823: rgba(94, 234, 212, 0.72);
  --t824: rgba(20, 184, 166, 0.15);
  --t825: rgba(20, 184, 166, 0.14);
  --t826: rgba(20, 184, 166, 0.1);
  --t827: #d8fff4;
  --t828: rgba(138, 184, 255, 0.46);
  --t829: rgba(30, 64, 175, 0.14);
  --t830: rgba(8, 16, 28, 0.22);
  --t831: rgba(138, 184, 255, 0.76);
  --t832: rgba(138, 184, 255, 0.13);
  --t833: rgba(138, 184, 255, 0.14);
  --t834: rgba(41, 31, 17, 0.78);
  --t835: rgba(4, 12, 20, 0.76);
  --t836: rgba(96, 166, 255, 0.22);
  --t837: rgba(5, 12, 20, 0.64);
  --t838: rgba(122, 191, 255, 0.28);
  --t839: rgba(14, 29, 44, 0.96);
  --t840: rgba(5, 12, 20, 0.98);
  --t841: rgba(139, 178, 217, 0.18);
  --t842: rgba(3, 12, 22, 0.72);
  --t843: rgba(255, 255, 255, 0.11);
  --t844: rgba(45, 212, 191, 0.32);
  --t845: rgba(45, 212, 191, 0.08);
  --t846: rgba(255, 159, 28, 0.38);
  --t847: rgba(255, 183, 77, 0.52);
  --t848: rgba(255, 159, 28, 0.16);
  --t849: #ffd166;
  --t850: rgba(255, 135, 128, 0.58);
  --t851: rgba(255, 73, 61, 0.18);
  --t852: #ffd9d6;
  --t853: rgba(255, 183, 77, 0.82);
  --t854: rgba(255, 159, 28, 0.18);
  --t855: rgba(255, 159, 28, 0.16);
  --t856: rgba(255, 159, 28, 0.1);
  --t857: rgba(255, 73, 61, 0.58);
  --t858: rgba(255, 103, 94, 0.86);
  --t859: rgba(255, 73, 61, 0.16);
  --t860: rgba(255, 73, 61, 0.12);
  --t861: rgba(139, 178, 217, 0.14);
  --t862: rgba(170, 183, 199, 0.62);
  --t863: rgba(255, 159, 28, 0.36);
  --t864: rgba(3, 12, 22, 0);
  --t865: rgb(3, 12, 22);
  --t866: rgba(255, 159, 28, 0.72);
  --t867: rgba(255, 73, 61, 0.42);
  --t868: rgba(255, 73, 61, 0.09);
  --t869: rgba(255, 73, 61, 0.76);
  --t870: rgba(203, 213, 225, 0.82);
  --t871: rgba(139, 178, 217, 0.22);
  --t872: rgba(47, 136, 255, 0.74);
  --t873: rgba(139, 178, 217, 0.13);
  --t874: rgba(216, 232, 248, 0.34);
  --t875: rgba(216, 232, 248, 0.11);
  --t876: rgba(85, 169, 255, 0.7);
  --t877: rgba(114, 215, 95, 0.9);
  --t878: rgba(88, 181, 255, 0.18);
  --t879: rgba(255, 184, 77, 0.95);
  --t880: rgba(85, 169, 255, 0.65);
  --t881: rgba(255, 132, 38, 0.95);
  --t882: rgba(255, 197, 91, 0.9);
  --t883: rgba(255, 159, 28, 0.26);
  --t884: rgba(142, 158, 176, 0.17);
  --t885: rgba(216, 230, 244, 0.04);
  --t886: rgba(99, 172, 255, 0.98);
  --t887: rgba(42, 122, 236, 0.78);
  --t888: rgba(66, 153, 255, 0.23);
  --t889: rgba(203, 213, 225, 0.72);
  --t890: rgba(255, 159, 28, 0.58);
  --t891: rgba(255, 183, 77, 0.98);
  --t892: rgba(255, 132, 38, 0.8);
  --t893: rgba(47, 136, 255, 0.22);
  --t894: rgba(47, 136, 255, 0.055);
  --t895: rgba(5, 14, 24, 0.34);
  --t896: rgba(255, 159, 28, 0.78);
  --t897: rgba(255, 159, 28, 0.18);
  --t898: #d7eaff;
  --t899: #07111c;
  --t900: #f7fbff;
  --t901: rgba(247, 251, 255, 0.3);
  --t902: rgba(98, 206, 77, 0.46);
  --t903: rgba(255, 209, 102, 0.54);
  --t904: rgba(255, 73, 61, 0.58);
  --t905: rgba(3, 12, 22, 0.9);
  --t906: rgba(139, 178, 217, 0.16);
  --t907: rgba(5, 17, 29, 0.8);
  --t908: #e8f2ff;
  --t909: rgba(244, 248, 255, 0.94);
  --t910: rgba(244, 248, 255, 0.62);
  --t911: rgba(244, 248, 255, 0.96);
  --t912: rgba(0, 0, 0, 0.24);
  --t913: rgba(96, 166, 255, 0.18);
  --t914: rgba(3, 12, 22, 0.78);
  --t915: rgba(0, 0, 0, 0.24);
  --t916: rgba(9, 24, 38, 0.92);
  --t917: rgba(3, 12, 22, 0.74);
  --t918: rgba(180, 197, 218, 0.82);
  --t919: rgba(236, 245, 255, 0.35);
  --t920: rgba(2, 8, 14, 0.86);
  --t921: rgba(206, 229, 255, 0.2);
  --t922: rgba(255, 255, 255, 0.07);
  --t923: rgba(0, 0, 0, 0.18);
  --t924: rgba(0, 7, 14, 0.5);
  --t925: rgba(232, 240, 250, 0.86);
  --t926: rgba(255, 255, 255, 0.54);
  --t927: rgba(255, 255, 255, 0.82);
  --t928: rgba(206, 229, 255, 0.38);
  --t929: rgba(255, 255, 255, 0.6);
  --t930: rgba(255, 255, 255, 0.86);
  --t931: #67dbff;
  --t932: #2f9bff;
  --t933: rgba(78, 171, 255, 0.36);
  --t934: #ffcb68;
  --t935: #ff8f3d;
  --t936: rgba(255, 159, 61, 0.34);
  --t937: #06111d;
  --t938: rgba(206, 229, 255, 0.36);
  --t939: #2f9be8;
  --t940: #92622f;
  --t941: rgba(250, 253, 255, 0.92);
  --t942: rgba(255, 255, 255, 0.78);
  --t943: rgba(255, 255, 255, 0.86);
  --t944: rgba(2, 10, 17, 0.18);
  --t945: rgba(255, 255, 255, 0.82);
  --t946: #ecf533;
  --t947: rgba(19, 22, 9, 0.72);
  --t948: rgba(2, 10, 17, 0.42);
  --t949: rgba(202, 218, 236, 0.72);
  --t950: #eef6ff;
  --t951: rgba(4, 15, 25, 0.68);
  --t952: rgba(139, 178, 217, 0.3);
  --t953: rgba(139, 178, 217, 0.2);
  --t954: rgba(4, 15, 25, 0.7);
  --t955: rgba(4, 15, 25, 0.62);
  --t956: #101820;
  --t957: rgba(1, 8, 14, 0.72);
  --t958: #ffb238;
  --t959: #fff;
  --t960: rgba(1, 8, 14, 0.48);
  --t961: #41c75b;
  --t962: #f05a4f;
  --t963: #276ee8;
  --t964: rgba(1, 8, 14, 0.55);
  --t965: rgba(255, 255, 255, 0.9);
  --t966: #1f2933;
  --t967: rgba(16, 28, 40, 0.7);
  --t968: rgba(2, 9, 16, 0.72);
  --t969: rgba(3, 12, 22, 0.88);
  --t970: rgba(4, 15, 25, 0.82);
  --t971: #5da6ff;
  --t972: #8fc3ff;
  --t973: rgba(74, 155, 255, 0.42);
  --t974: rgba(93, 166, 255, 0.36);
  --t975: #78b8ff;
  --t976: rgba(1, 8, 14, 0.58);
  --t977: rgba(3, 15, 24, 0.62);
  --t978: rgba(236, 244, 255, 0.84);
  --t979: rgba(74, 155, 255, 0.82);
  --t980: rgba(47, 136, 255, 0.78);
  --t981: rgba(74, 155, 255, 0.92);
  --t982: rgba(255, 73, 61, 0.38);
  --t983: rgba(255, 159, 28, 0.92);
  --t984: rgba(255, 159, 28, 0.62);
  --t985: rgba(255, 209, 102, 0.92);
  --t986: rgba(255, 159, 28, 0.26);
  --t987: rgba(74, 155, 255, 0.68);
  --t988: rgba(47, 136, 255, 0.17);
  --t989: #9fc8ff;
  --t990: rgba(255, 73, 61, 0.78);
  --t991: rgba(255, 73, 61, 0.22);
  --t992: rgba(139, 178, 217, 0.18);
  --t993: rgba(139, 178, 217, 0.28);
  --t994: rgba(203, 213, 225, 0.62);
  --t995: #f4f8ff;
  --t996: rgba(244, 248, 255, 0.72);
  --t997: rgba(61, 149, 255, 0.95);
  --t998: #dce7f3;
  --t999: rgba(61, 149, 255, 0.72);
  --t1000: #3d95ff;
  --t1001: rgba(61, 149, 255, 0.32);
  --t1002: rgba(5, 12, 22, 0.42);
  --t1003: rgba(220, 231, 243, 0.9);
  --t1004: rgba(139, 178, 217, 0.26);
  --t1005: rgba(86, 168, 255, 0.64);
  --t1006: rgba(47, 136, 255, 0.3);
  --t1007: rgba(88, 208, 255, 0.13);
  --t1008: rgba(6, 18, 32, 0.82);
  --t1009: #f3fbff;
  --t1010: rgba(255, 255, 255, 0.1);
  --t1011: rgba(88, 208, 255, 0.12);
  --t1012: #78d8ff;
  --t1013: rgba(88, 208, 255, 0.24);
  --t1014: rgba(120, 216, 255, 0.86);
  --t1015: rgba(47, 136, 255, 0.44);
  --t1016: rgba(88, 208, 255, 0.18);
  --t1017: rgba(8, 23, 42, 0.92);
  --t1018: rgba(255, 255, 255, 0.14);
  --t1019: rgba(88, 208, 255, 0.24);
  --t1020: rgba(120, 216, 255, 0.96);
  --t1021: rgba(42, 131, 255, 0.62);
  --t1022: rgba(88, 208, 255, 0.24);
  --t1023: rgba(8, 25, 48, 0.98);
  --t1024: rgba(255, 255, 255, 0.18);
  --t1025: rgba(120, 216, 255, 0.56);
  --t1026: rgba(120, 216, 255, 0.24);
  --t1027: rgba(104, 166, 255, 0.42);
  --t1028: rgba(139, 178, 217, 0.38);
  --t1029: rgba(88, 208, 255, 0.36);
  --t1030: rgba(88, 208, 255, 0.08);
  --t1031: rgba(47, 136, 255, 0.28);
  --t1032: rgba(88, 208, 255, 0.16);
  --t1033: rgba(15, 37, 64, 0.98);
  --t1034: rgba(5, 13, 22, 0.97);
  --t1035: rgba(5, 13, 22, 0.94);
  --t1036: rgba(120, 216, 255, 0.86);
  --t1037: rgba(120, 216, 255, 0.17);
  --t1038: rgba(88, 208, 255, 0.09);
  --t1039: #f4f8ff;
  --t1040: rgba(88, 208, 255, 0.22);
  --t1041: rgba(255, 255, 255, 0.058);
  --t1042: rgba(255, 255, 255, 0.028);
  --t1043: rgba(8, 21, 34, 0.56);
  --t1044: rgba(255, 255, 255, 0.05);
  --t1045: #eaf3ff;
  --t1046: rgba(139, 178, 217, 0.1);
  --t1047: rgba(3, 10, 18, 0.34);
  --t1048: #b7c5d5;
  --t1049: rgba(2, 9, 16, 0.36);
  --t1050: rgba(220, 231, 243, 0.46);
  --t1051: rgba(255, 255, 255, 0.56);
  --t1052: rgba(255, 255, 255, 0.14);
  --t1053: #ffffff;
  --t1054: rgba(2, 9, 16, 0.96);
  --t1055: rgba(47, 136, 255, 0.58);
  --t1056: rgba(0, 0, 0, 0.42);
  --t1057: rgba(255, 255, 255, 0.92);
  --t1058: rgba(139, 178, 217, 0.24);
  --t1059: rgba(2, 9, 16, 0.78);
  --t1060: rgba(2, 9, 16, 0.9);
  --t1061: #ff9f1c;
  --t1062: rgba(138, 184, 255, 0.5);
  --t1063: #edf6ff;
  --t1064: #9fb0c2;
  --t1065: #8bd8d4;
  --t1066: rgba(139, 178, 217, 0.11);
  --t1067: #d8e7f8;
  --t1068: #92a5b9;
  --t1069: rgba(245, 197, 66, 0.34);
  --t1070: #ffe9b3;
  --t1071: rgba(245, 197, 66, 0.08);
  --t1072: rgba(139, 178, 217, 0.12);
  --t1073: rgba(255, 255, 255, 0.026);
  --t1074: rgba(255, 255, 255, 0.034);
  --t1075: rgba(45, 212, 191, 0.46);
  --t1076: #c4d2e1;
  --t1077: rgba(220, 231, 243, 0.74);
  --t1078: rgba(255, 122, 112, 0.42);
  --t1079: rgba(255, 73, 61, 0.1);
  --t1080: #ffd4d1;
  --t1081: rgba(82, 156, 255, 0.74);
  --t1082: rgba(82, 156, 255, 0.18);
  --t1083: #e7f1ff;
  --t1084: rgba(82, 156, 255, 0.46);
  --t1085: rgba(29, 50, 76, 0.98);
  --t1086: rgba(12, 25, 42, 0.98);
  --t1087: #eef5ff;
  --t1088: #1c3451;
  --t1089: #f6f9ff;
  --t1090: #b7c8dc;
  --t1091: #b9c9da;
  --t1092: rgba(139, 178, 217, 0.3);
  --t1093: #dce8f6;
  --t1094: #8fa4ba;
  --t1095: rgba(139, 178, 217, 0.26);
  --t1096: rgba(3, 12, 22, 0.48);
  --t1097: #c6d4e3;
  --t1098: rgba(82, 156, 255, 0.7);
  --t1099: #f3f8ff;
  --t1100: rgba(82, 156, 255, 0.88);
  --t1101: #2877d4;
  --t1102: rgba(255, 255, 255, 0.16);
  --t1103: rgba(3, 12, 22, 0.22);
  --t1104: rgba(82, 156, 255, 0.72);
  --t1105: rgba(40, 119, 212, 0.08);
  --t1106: rgba(139, 178, 217, 0.28);
  --t1107: rgba(2, 10, 18, 0.68);
  --t1108: #f2f7fd;
  --t1109: rgba(82, 156, 255, 0.86);
  --t1110: rgba(82, 156, 255, 0.14);
  --t1111: rgba(255, 105, 97, 0.88);
  --t1112: #c4d8ef;
  --t1113: #aebfd1;
  --t1114: rgba(174, 191, 209, 0.42);
  --t1115: rgba(139, 178, 217, 0.17);
  --t1116: rgba(3, 12, 22, 0.4);
  --t1117: rgba(245, 183, 65, 0.36);
  --t1118: rgba(98, 62, 8, 0.2);
  --t1119: rgba(245, 183, 65, 0.58);
  --t1120: #ffe0a6;
  --t1121: #c7d5e3;
  --t1122: #dceaff;
  --t1123: rgba(139, 178, 217, 0.15);
  --t1124: rgba(3, 12, 22, 0.34);
  --t1125: rgba(82, 156, 255, 0.6);
  --t1126: rgba(82, 156, 255, 0.1);
  --t1127: #9fb2c6;
  --t1128: #91a5ba;
  --t1129: rgba(255, 105, 97, 0.12);
  --t1130: #ffaaa4;
  --t1131: #0d1a2b;
  --t1132: #8be0c7;
  --t1133: rgba(45, 212, 191, 0.72);
  --t1134: rgba(8, 15, 27, 0.95);
  --t1135: rgba(45, 212, 191, 0.68);
  --t1136: #d8fffa;
  --t1137: rgba(4, 13, 22, 0.44);
  --t1138: rgba(220, 231, 243, 0.88);
  --t1139: rgba(94, 234, 212, 0.38);
  --t1140: rgba(94, 234, 212, 0.54);
  --t1141: rgba(45, 212, 191, 0.14);
  --t1142: rgba(255, 255, 255, 0.018);
  --t1143: #2dd4bf;
  --t1144: rgba(45, 212, 191, 0.12);
  --t1145: rgba(255, 73, 61, 0.72);
  --t1146: rgba(94, 234, 212, 0.5);
  --t1147: rgba(45, 212, 191, 0.13);
  --t1148: #e9fffb;
  --t1149: rgba(94, 234, 212, 0.76);
  --t1150: rgba(45, 212, 191, 0.2);
  --t1151: rgba(45, 212, 191, 0.16);
  --t1152: rgba(94, 234, 212, 0.95);
  --t1153: rgba(45, 212, 191, 0.72);
  --t1154: rgba(13, 148, 136, 0.62);
  --t1155: rgba(45, 212, 191, 0.22);
  --t1156: #ecfffb;
  --t1157: rgba(153, 246, 228, 1);
  --t1158: rgba(70, 230, 211, 0.82);
  --t1159: rgba(13, 148, 136, 0.72);
  --t1160: #8ff3e7;
  --t1161: #ff9a9a;
  --t1162: #cffff8;
  --t1163: rgba(94, 234, 212, 0.52);
  --t1164: rgba(94, 234, 212, 0.06);
  --t1165: rgba(255, 122, 112, 0.34);
  --t1166: #ffc0bc;
  --t1167: rgba(255, 122, 112, 0.72);
  --t1168: #fff0ee;
  --t1169: rgba(195, 207, 222, 0.88);
  --t1170: #f8fbff;
  --t1171: rgba(98, 206, 77, 0.46);
  --t1172: rgba(28, 96, 49, 0.42);
  --t1173: rgba(11, 29, 26, 0.76);
  --t1174: rgba(98, 206, 77, 0.24);
  --t1175: #dfffd8;
  --t1176: rgba(255, 159, 28, 0.52);
  --t1177: rgba(116, 70, 12, 0.42);
  --t1178: rgba(24, 22, 18, 0.76);
  --t1179: rgba(255, 159, 28, 0.25);
  --t1180: #ffe4b8;
  --t1181: rgba(126, 35, 31, 0.44);
  --t1182: rgba(25, 18, 20, 0.76);
  --t1183: rgba(255, 73, 61, 0.24);
  --t1184: #ffddd9;
  --t1185: rgba(139, 178, 217, 0.14);
  --t1186: rgba(195, 207, 222, 0.76);
  --t1187: rgba(220, 231, 243, 0.52);
  --t1188: rgba(139, 178, 217, 0.11);
  --t1189: rgba(255, 255, 255, 0.014);
  --t1190: rgba(94, 234, 212, 0.42);
  --t1191: rgba(94, 234, 212, 0.07);
  --t1192: rgba(94, 234, 212, 0.34);
  --t1193: #dbfffa;
  --t1194: rgba(45, 212, 191, 0.42);
  --t1195: rgba(45, 212, 191, 0.18);
  --t1196: #bffff6;
  --t1197: rgba(139, 178, 217, 0.05);
  --t1198: rgba(220, 231, 243, 0.72);
  --t1199: rgba(195, 207, 222, 0.86);
  --t1200: rgba(94, 234, 212, 0.16);
  --t1201: rgba(45, 212, 191, 0.04);
  --t1202: rgba(255, 255, 255, 0.022);
  --t1203: rgba(98, 206, 77, 0.26);
  --t1204: rgba(45, 212, 191, 0.3);
  --t1205: rgba(255, 159, 28, 0.3);
  --t1206: rgba(94, 234, 212, 0.28);
  --t1207: rgba(94, 234, 212, 0.14);
  --t1208: rgba(94, 234, 212, 0.09);
  --t1209: rgba(94, 234, 212, 0.14);
  --t1210: rgba(94, 234, 212, 0.78);
  --t1211: #d9ffd3;
  --t1212: #ffe8bd;
  --t1213: rgba(16, 28, 40, 0.72);
  --t1214: rgba(2, 9, 16, 0.74);
  --t1215: rgba(203, 213, 225, 0.74);
  --t1216: rgba(93, 119, 145, 0.52);
  --t1217: rgba(255, 255, 255, 0.008);
  --t1218: rgba(8, 16, 26, 0.58);
  --t1219: rgba(255, 159, 28, 0.15);
  --t1220: rgba(45, 212, 191, 0.55);
  --t1221: rgba(45, 212, 191, 0.25);
  --t1222: #c9d6e4;
  --t1223: #b8c7d8;
  --t1224: rgba(255, 255, 255, 0.1);
  --t1225: rgba(3, 10, 18, 0.28);
  --t1226: rgba(3, 10, 18, 0.3);
  --t1227: #dce5ee;
  --t1228: rgba(23, 36, 51, 0.82);
  --t1229: rgba(23, 36, 51, 0.88);
  --t1230: rgba(242, 181, 56, 0.38);
  --t1231: rgba(242, 181, 56, 0.88);
  --t1232: rgba(18, 22, 28, 0.92);
  --t1233: rgba(242, 181, 56, 0.48);
  --t1234: #f5d56f;
  --t1235: rgba(242, 181, 56, 0.09);
  --t1236: #f4f7fb;
  --t1237: rgba(229, 236, 245, 0.84);
  --t1238: rgba(179, 193, 209, 0.82);
  --t1239: rgba(45, 212, 191, 0.035);
  --t1240: rgba(5, 13, 22, 0.92);
  --t1241: rgba(5, 14, 24, 0.48);
  --t1242: rgba(98, 206, 77, 0.36);
  --t1243: rgba(20, 89, 52, 0.2);
  --t1244: rgba(5, 14, 24, 0.6);
  --t1245: rgba(255, 159, 28, 0.26);
  --t1246: rgba(109, 72, 18, 0.13);
  --t1247: rgba(5, 14, 24, 0.56);
  --t1248: rgba(255, 73, 61, 0.3);
  --t1249: rgba(111, 30, 30, 0.15);
  --t1250: rgba(20, 89, 52, 0.12);
  --t1251: rgba(109, 72, 18, 0.12);
  --t1252: rgba(255, 73, 61, 0.38);
  --t1253: rgba(111, 30, 30, 0.14);
  --t1254: rgba(20, 33, 47, 0.72);
  --t1255: rgba(5, 14, 24, 0.72);
  --t1256: rgba(5, 14, 24, 0.64);
  --t1257: rgba(119, 177, 255, 0.12);
  --t1258: rgba(119, 177, 255, 0.1);
  --t1259: rgba(15, 31, 47, 0.94);
  --t1260: rgba(6, 17, 29, 0.94);
  --t1261: rgba(6, 19, 32, 0.98);
  --t1262: rgba(98, 206, 77, 0.8);
  --t1263: rgba(255, 73, 61, 0.76);
  --t1264: rgba(138, 184, 255, 0.86);
  --t1265: rgba(98, 206, 77, 0.72);
  --t1266: rgba(138, 184, 255, 0.2);
  --t1267: rgba(138, 184, 255, 0);
  --t1268: rgba(251, 191, 36, 0.36);
  --t1269: rgba(253, 230, 138, 0.34);
  --t1270: rgba(186, 199, 218, 0.84);
  --t1271: rgba(12, 27, 43, 0.72);
  --t1272: rgba(5, 14, 24, 0.62);
  --t1273: rgba(138, 184, 255, 0.96);
  --t1274: rgba(196, 209, 224, 0.84);
  --t1275: rgba(138, 184, 255, 0.72);
  --t1276: rgba(138, 184, 255, 0.36);
  --t1277: rgba(138, 184, 255, 0.14);
  --t1278: rgba(98, 206, 77, 0.9);
  --t1279: rgba(98, 206, 77, 0.12);
  --t1280: rgba(255, 159, 28, 0.92);
  --t1281: rgba(255, 73, 61, 0.94);
  --t1282: rgba(255, 73, 61, 0.13);
  --t1283: rgba(138, 184, 255, 0.92);
  --t1284: rgba(5, 14, 24, 0.28);
  --t1285: rgba(138, 184, 255, 0.08);
  --t1286: rgba(5, 14, 24, 0.42);
  --t1287: rgba(98, 206, 77, 0.3);
  --t1288: rgba(255, 159, 28, 0.28);
  --t1289: rgba(255, 73, 61, 0.11);
  --t1290: rgba(255, 255, 255, 0.98);
  --t1291: rgba(138, 184, 255, 0.62);
  --t1292: rgba(98, 206, 77, 0.9);
  --t1293: rgba(98, 206, 77, 0.82);
  --t1294: rgba(255, 159, 28, 0.96);
  --t1295: rgba(255, 73, 61, 0.96);
  --t1296: rgba(138, 184, 255, 0.82);
  --t1297: rgba(239, 245, 255, 0.96);
  --t1298: rgba(196, 209, 224, 0.82);
  --t1299: rgba(138, 184, 255, 0.12);
  --t1300: rgba(98, 206, 77, 0.22);
  --t1301: rgba(255, 159, 28, 0.2);
  --t1302: rgba(255, 73, 61, 0.24);
  --t1303: rgba(98, 206, 77, 0.2);
  --t1304: rgba(235, 242, 252, 0.95);
  --t1305: rgba(255, 159, 28, 0.32);
  --t1306: rgba(10, 24, 40, 0.4);
  --t1307: rgba(138, 184, 255, 0.55);
  --t1308: rgba(138, 184, 255, 0.82);
  --t1309: rgba(138, 184, 255, 0.85);
  --t1310: rgba(138, 184, 255, 0.35);
  --t1311: rgba(5, 14, 24, 0.4);
  --t1312: rgba(138, 184, 255, 0.3);
  --t1313: rgba(4, 12, 22, 0.52);
  --t1314: rgba(98, 206, 77, 0.85);
  --t1315: rgba(138, 184, 255, 0.1);
  --t1316: rgba(10, 24, 40, 0.3);
  --t1317: rgba(138, 184, 255, 0.5);
  --t1318: rgba(142, 197, 255, 0.8);
  --t1319: #f2f7ff;
  --t1320: rgba(138, 184, 255, 0.12);
  --t1321: #ffd241;
  --t1322: #ff5c45;
  --t1323: #8da2b8;
  --t1324: #cdd9e8;
  --t1325: rgba(47, 136, 255, 0.26);
  --t1326: rgba(10, 24, 40, 0.42);
  --t1327: #c9d6e6;
  --t1328: rgba(12, 30, 48, 0.68);
  --t1329: rgba(98, 207, 193, 0.08);
  --t1330: rgba(255, 210, 65, 0.22);
  --t1331: rgba(255, 210, 65, 0.08);
  --t1332: #ffd241;
  --t1333: rgba(255, 194, 71, 0.2);
  --t1334: rgba(255, 194, 71, 0.07);
  --t1335: rgba(12, 30, 48, 0.72);
  --t1336: rgba(8, 19, 32, 0.52);
  --t1337: rgba(2, 8, 15, 0.34);
  --t1338: rgba(2, 8, 15, 0.42);
  --t1339: rgba(15, 27, 43, 0.72);
  --t1340: rgba(138, 184, 255, 0.24);
  --t1341: rgba(5, 14, 24, 0.52);
  --t1342: rgba(98, 206, 77, 0.35);
  --t1343: rgba(255, 159, 28, 0.22);
  --t1344: rgba(12, 30, 48, 0.54);
  --t1345: rgba(5, 14, 24, 0.46);
  --t1346: rgba(98, 206, 77, 0.32);
  --t1347: rgba(35, 91, 48, 0.18);
  --t1348: rgba(255, 210, 65, 0.34);
  --t1349: rgba(120, 82, 22, 0.18);
  --t1350: rgba(91, 35, 42, 0.18);
  --t1351: rgba(2, 8, 15, 0.48);
  --t1352: rgba(98, 207, 193, 0.12);
  --t1353: rgba(98, 207, 193, 0.30);
  --t1354: rgba(6, 17, 29, 0.35);
  --t1355: #b07cff;
  --t1356: #dbe7f4;
  --t1357: #ffd7c2;
  --t1358: #0b1622;
  --t1359: #9fb0c4;
  --t1360: rgba(98, 207, 193, 0.18);
  --t1361: rgba(98, 207, 193, 0.45);
  --t1362: #b07cff;
  --t1363: rgba(98, 207, 193, 0.25);
  --t1364: rgba(98, 207, 193, 0.06);
  --t1365: #62cfc1;
  --t1366: #eaf2fb;
  --t1367: #dbe7f4;
  --t1368: rgba(2, 8, 15, 0.28);
  --t1369: rgba(3, 10, 18, 0.8);
  --t1370: #ff8a79;
  --t1371: #ffd77a;
  --t1372: rgba(12, 30, 48, 0.62);
  --t1373: rgba(12, 30, 48, 0.5);
  --t1374: #03101c;
  --t1375: #8fa3bb;
  --t1376: rgba(138, 184, 255, 0.13);
  --t1377: rgba(2, 8, 15, 0.42);
  --t1378: rgba(255, 255, 255, 0.06);
  --t1379: rgba(219, 231, 244, 0.32);
  --t1380: rgba(219, 231, 244, 0.11);
  --t1381: #c7d6e7;
  --t1382: #eaf3ff;
  --t1383: #f1a178;
  --t1384: #cfe2f8;
  --t1385: #ff8b61;
  --t1386: rgba(219, 231, 244, 0.28);
  --t1387: rgba(255, 139, 97, 0.32);
  --t1388: rgba(2, 8, 15, 0.76);
  --t1389: rgba(138, 184, 255, 0.2);
  --t1390: #ffb190;
  --t1391: rgba(98, 206, 77, 0.72);
  --t1392: rgba(255, 159, 28, 0.72);
  --t1393: rgba(255, 73, 61, 0.72);
  --t1394: rgba(3, 10, 18, 0.92);
  --t1395: rgba(143, 163, 187, 0.58);
  --t1396: #ffd241;
  --t1397: #62ce4d;
  --t1398: #ffbd4a;
  --t1399: #ff5c45;
  --t1400: #96a6b7;
  --t1401: #f4f8ff;
  --t1402: rgba(116, 212, 245, 0.34);
  --t1403: rgba(255, 210, 65, 0.34);
  --t1404: rgba(255, 92, 69, 0.38);
  --t1405: rgba(232, 247, 255, 0.48);
  --t1406: #ffd15e;
  --t1407: rgba(255, 235, 172, 0.64);
  --t1408: #ff6e61;
  --t1409: rgba(255, 205, 198, 0.7);
  --t1410: rgba(98, 206, 77, 0.22);
  --t1411: rgba(255, 189, 74, 0.07);
  --t1412: rgba(255, 92, 69, 0.09);
  --t1413: rgba(98, 206, 77, 0.64);
  --t1414: rgba(247, 252, 255, 0.98);
  --t1415: rgba(232, 247, 255, 0.22);
  --t1416: rgba(213, 225, 240, 0.92);
  --t1417: rgba(116, 212, 245, 0.16);
  --t1418: rgba(116, 212, 245, 0.06);
  --t1419: rgba(12, 30, 48, 0.56);
  --t1420: rgba(98, 206, 77, 0.1);
  --t1421: rgba(255, 210, 65, 0.42);
  --t1422: rgba(255, 210, 65, 0.1);
  --t1423: rgba(255, 92, 69, 0.46);
  --t1424: rgba(255, 92, 69, 0.12);
  --t1425: #ffbd4a;
  --t1426: rgba(116, 212, 245, 0.22);
  --t1427: rgba(116, 212, 245, 0.08);
  --t1428: #9be4ff;
  --t1429: rgba(3, 10, 18, 0.86);
  --t1430: rgba(98, 206, 77, 0.38);
  --t1431: #9fb0c4;
  --t1432: rgba(3, 10, 18, 0.86);
  --t1433: rgba(98, 206, 77, 0.38);
  --t1434: rgba(98, 206, 77, 0.3);
  --t1435: #ffe084;
  --t1436: #ffb43e;
  --t1437: #b35e0f;
  --t1438: #ff9783;
  --t1439: #ff533d;
  --t1440: #a91f24;
  --t1441: #f4f8ff;
  --t1442: rgba(255, 255, 255, 0.28);
  --t1443: #ffcf77;
  --t1444: #ff9a8b;
  --t1445: rgba(12, 30, 48, 0.66);
  --t1446: rgba(244, 248, 255, 0.55);
  --t1447: rgba(255, 255, 255, 0.12);
  --t1448: rgba(255, 92, 69, 0.4);
  --t1449: rgba(98, 206, 77, 0.25);
  --t1450: #baf4b0;
  --t1451: rgba(98, 207, 193, 0.22);
  --t1452: #8cf0df;
  --t1453: rgba(255, 189, 74, 0.24);
  --t1454: rgba(255, 189, 74, 0.1);
  --t1455: rgba(244, 248, 255, 0.6);
  --t1456: rgba(219, 231, 244, 0.18);
  --t1457: rgba(219, 231, 244, 0.12);
  --t1458: #74d4f5;
  --t1459: rgba(116, 212, 245, 0.18);
  --t1460: #ff8a79;
  --t1461: #ffd77a;
  --t1462: #eaf7ff;
  --t1463: rgba(255, 189, 74, 0.22);
  --t1464: rgba(255, 189, 74, 0.08);
  --t1465: #ffd77a;
  --t1466: #74d4f5;
  --t1467: rgba(116, 212, 245, 0.16);
  --t1468: rgba(255, 189, 74, 0.42);
  --t1469: rgba(255, 226, 158, 0.86);
  --t1470: rgba(4, 16, 28, 0.92);
  --t1471: rgba(255, 226, 158, 0.74);
  --t1472: rgba(255, 210, 65, 0.18);
  --t1473: #f7fbff;
  --t1474: rgba(255, 189, 74, 0.18);
  --t1475: rgba(255, 189, 74, 0.07);
  --t1476: rgba(255, 189, 74, 0.13);
  --t1477: #5aa7ff;
  --t1478: rgba(244, 248, 255, 0.22);
  --t1479: #dbe8f7;
  --t1480: rgba(3, 10, 18, 0.94);
  --t1481: rgba(138, 184, 255, 0.16);
  --t1482: rgba(90, 167, 255, 0.32);
  --t1483: rgba(138, 184, 255, 0.07);
  --t1484: rgba(255, 92, 69, 0.28);
  --t1485: rgba(12, 30, 48, 0.58);
  --t1486: rgba(255, 210, 65, 0.24);
  --t1487: rgba(90, 167, 255, 0.24);
  --t1488: rgba(23, 28, 34, 0.9);
  --t1489: rgba(244, 248, 255, 0.18);
  --t1490: #fff;
  --t1491: rgba(219, 231, 244, 0.68);
  --t1492: rgba(92, 17, 20, 0.78);
  --t1493: rgba(255, 210, 65, 0.72);
  --t1494: rgba(219, 231, 244, 0.82);
  --t1495: rgba(31, 127, 92, 0.3);
  --t1496: rgba(255, 210, 65, 0.16);
  --t1497: rgba(255, 92, 69, 0.14);
  --t1498: #7ed8ff;
  --t1499: rgba(88, 208, 255, 0.06);
  --t1500: rgba(2, 8, 15, 0.46);
  --t1501: #ff7d61;
  --t1502: rgba(67, 210, 117, 0.9);
  --t1503: rgba(111, 244, 158, 0.88);
  --t1504: rgba(180, 197, 218, 0.9);
  --t1505: rgba(111, 244, 158, 0.42);
  --t1506: rgba(125, 244, 229, 0.68);
  --t1507: rgba(213, 225, 240, 0.9);
  --t1508: rgba(116, 212, 245, 0.2);
  --t1509: rgba(255, 214, 128, 0.9);
  --t1510: rgba(239, 247, 255, 0.98);
  --t1511: rgba(239, 247, 255, 0.28);
  --t1512: rgba(255, 207, 111, 0.96);
  --t1513: rgba(255, 177, 74, 0.24);
  --t1514: #ffd168;
  --t1515: #04101c;
  --t1516: rgba(255, 183, 74, 0.32);
  --t1517: rgba(2, 8, 15, 0.34);
  --t1518: rgba(98, 207, 193, 0.18);
  --t1519: #dcecff;
  --t1520: #8fa2b8;
  --t1521: rgba(187, 250, 240, 0.9);
  --t1522: #bff9ef;
  --t1523: rgba(67, 210, 117, 0.08);
  --t1524: rgba(67, 210, 117, 0.22);
  --t1525: #70f6a2;
  --t1526: rgba(255, 103, 86, 0.34);
  --t1527: rgba(255, 103, 86, 0.13);
  --t1528: rgba(255, 193, 87, 0.06);
  --t1529: #ff8b72;
  --t1530: rgba(255, 103, 86, 0.95);
  --t1531: rgba(255, 103, 86, 0.36);
  --t1532: #ff5f55;
  --t1533: #ffe2d0;
  --t1534: rgba(255, 103, 86, 0.5);
  --t1535: #ff8b72;
  --t1536: #fff0dc;
  --t1537: #6cc8ee;
  --t1538: #43d275;
  --t1539: #e7f0f9;
  --t1540: #ff5f55;
  --t1541: rgba(255, 103, 86, 0.45);
  --t1542: #ffe2d0;
  --t1543: rgba(239, 247, 255, 0.95);
  --t1544: rgba(105, 242, 157, 0.95);
  --t1545: #70f6a2;
  --t1546: #ffd85d;
  --t1547: rgba(2, 8, 15, 0.72);
  --t1548: #ff776d;
  --t1549: #43d275;
  --t1550: #dff9e7;
  --t1551: #edf5ff;
  --t1552: #ffc247;
  --t1553: #d8e5f4;
  --t1554: rgba(255, 210, 65, 0.06);
  --t1555: rgba(219, 231, 244, 0.22);
  --t1556: rgba(159, 176, 196, 0.32);
  --t1557: #ffc247;
  --t1558: rgba(159, 176, 196, 0.6);
  --t1559: #ff6a4d;
  --t1560: rgba(255, 194, 71, 0.42);
  --t1561: #cbd8e7;
  --t1562: rgba(219, 231, 244, 0.16);
  --t1563: rgba(255, 194, 71, 0.18);
  --t1564: rgba(255, 194, 71, 0.08);
  --t1565: rgba(7, 19, 32, 0.64);
  --t1566: #c8d6e6;
  --t1567: #2dd4bf;
  --t1568: #8aa8ff;
  --t1569: #58c7ff;
  --t1570: #58c7ff;
  --t1571: #ffc46a;
  --t1572: #ffc46a;
  --t1573: #ff8378;
  --t1574: rgba(88, 199, 255, 0.68);
  --t1575: rgba(255, 196, 106, 0.68);
  --t1576: #c9d7eb;
  --t1577: rgba(7, 19, 32, 0.62);
  --t1578: rgba(255, 196, 106, 0.18);
  --t1579: rgba(255, 196, 106, 0.07);
  --t1580: #ffc46a;
  --t1581: #8ea2bd;
  --t1582: #9fb0c4;
  --t1583: rgba(159, 176, 196, 0.12);
  --t1584: #8fea7c;
  --t1585: rgba(143, 234, 124, 0.13);
  --t1586: rgba(255, 196, 106, 0.14);
  --t1587: rgba(255, 131, 120, 0.15);
  --t1588: rgba(138, 184, 255, 0.62);
  --t1589: rgba(138, 184, 255, 0.22);
  --t1590: #8fea7c;
  --t1591: #ff8378;
  --t1592: rgba(4, 11, 19, 0.58);
  --t1593: rgba(138, 184, 255, 0.68);
  --t1594: rgba(12, 28, 46, 0.98);
  --t1595: rgba(9, 18, 31, 0.96);
  --t1596: rgba(247, 181, 87, 0.36);
  --t1597: rgba(247, 181, 87, 0.2);
  --t1598: rgba(74, 222, 128, 0.78);
  --t1599: rgba(247, 181, 87, 0.78);
  --t1600: rgba(239, 68, 68, 0.55);
  --t1601: rgba(138, 184, 255, 0.18);
  --t1602: #07111d;
  --t1603: #f7b557;
  --t1604: rgba(247, 181, 87, 0.42);
  --t1605: rgba(138, 184, 255, 0.16);
  --t1606: #8ab8ff;
  --t1607: rgba(226, 232, 240, 0.82);
  --t1608: rgba(74, 222, 128, 0.8);
  --t1609: #4ade80;
  --t1610: rgba(239, 68, 68, 0.4);
  --t1611: rgba(239, 68, 68, 0.5);
  --t1612: rgba(239, 68, 68, 0.2);
  --t1613: #ef4444;
  --t1614: #ef4444;
  --t1615: rgba(239, 68, 68, 0.45);
  --t1616: rgba(239, 68, 68, 0.45);
  --t1617: rgba(239, 68, 68, 0.1);
  --t1618: rgba(239, 68, 68, 0.14);
  --t1619: rgba(185, 199, 215, 0.72);
  --t1620: rgba(5, 14, 24, 0.38);
  --t1621: rgba(142, 197, 255, 0.9);
  --t1622: rgba(142, 197, 255, 0.28);
  --t1623: rgba(142, 197, 255, 0.86);
  --t1624: rgba(255, 73, 61, 0.32);
  --t1625: rgba(98, 206, 77, 0.24);
  --t1626: #cfe4ff;
  --t1627: rgba(14, 25, 38, 0.9);
  --t1628: rgba(150, 166, 183, 0.24);
  --t1629: rgba(255, 255, 255, 0.09);
  --t1630: rgba(5, 13, 23, 0.42);
  --t1631: rgba(5, 13, 23, 0.46);
  --t1632: rgba(4, 12, 22, 0.42);
  --t1633: rgba(5, 14, 24, 0.16);
  --t1634: rgba(5, 14, 24, 0.04);
  --t1635: rgba(0, 0, 0, 0.4);
  --t1636: #000;
  --t1637: rgba(0, 0, 0, 0.42);
  --t1638: rgba(0, 0, 0, 0.72);
  --t1639: rgba(0, 0, 0, 0.36);
  --t1640: rgba(45, 212, 191, 0.22);
  --t1641: rgba(255, 159, 28, 0.035);
  --t1642: rgba(7, 15, 25, 0.88);
  --t1643: rgba(10, 22, 34, 0.92);
  --t1644: rgba(3, 10, 18, 0.46);
  --t1645: #b9c7d7;
  --t1646: rgba(3, 10, 18, 0.38);
  --t1647: rgba(2, 8, 15, 0.48);
  --t1648: rgba(255, 255, 255, 0.18);
  --t1649: rgba(255, 159, 28, 0.68);
  --t1650: rgba(255, 73, 61, 0.68);
  --t1651: #b9c7d7;
  --t1652: #ff493d;
  --t1653: rgba(255, 255, 255, 0.24);
  --t1654: #60a5fa;
  --t1655: #101d2b;
  --t1656: rgba(142, 197, 255, 0.14);
  --t1657: rgba(8, 15, 24, 0.44);
  --t1658: #14283c;
  --t1659: rgba(142, 197, 255, 0.82);
  --t1660: rgba(142, 197, 255, 0.9);
  --t1661: #17304a;
  --t1662: rgba(47, 136, 255, 0.32);
  --t1663: rgba(142, 197, 255, 0.55);
  --t1664: rgba(142, 197, 255, 0.16);
  --t1665: #132b46;
  --t1666: #1f2530;
  --t1667: rgba(255, 159, 28, 0.13);
  --t1668: #252a32;
  --t1669: rgba(8, 16, 26, 0.3);
  --t1670: rgba(8, 16, 28, 0.18);
  --t1671: rgba(105, 165, 255, 0.82);
  --t1672: rgba(8, 16, 28, 0.2);
  --t1673: rgba(174, 188, 207, 0.64);
  --t1674: rgba(27, 40, 56, 0.98);
  --t1675: rgba(18, 29, 41, 0.98);
  --t1676: rgba(255, 255, 255, 0.03);
  --t1677: rgba(8, 16, 26, 0.24);
  --t1678: rgba(138, 184, 255, 0.86);
  --t1679: rgba(138, 184, 255, 0.64);
  --t1680: rgba(255, 73, 61, 0.28);
  --t1681: #ffd0cb;
  --t1682: rgba(255, 219, 216, 0.86);
  --t1683: rgba(255, 73, 61, 0.22);
  --t1684: rgba(255, 219, 216, 0.72);
  --t1685: rgba(127, 164, 210, 0.08);
  --t1686: rgba(127, 164, 210, 0.28);
  --t1687: rgba(127, 164, 210, 0.1);
  --t1688: rgba(214, 227, 240, 0.9);
  --t1689: rgba(214, 227, 240, 0.75);
  --t1690: #f45c50;
  --t1691: #c72f26;
  --t1692: rgba(255, 73, 61, 0.22);
  --t1693: rgba(216, 228, 240, 0.86);
  --t1694: rgba(138, 184, 255, 0.58);
  --t1695: #d7e8ff;
  --t1696: rgba(138, 184, 255, 0.9);
  --t1697: rgba(47, 136, 255, 0.13);
  --t1698: rgba(246, 249, 255, 0.94);
  --t1699: rgba(216, 228, 240, 0.82);
  --t1700: rgba(8, 16, 26, 0.12);
  --t1701: rgba(241, 246, 255, 0.55);
  --t1702: rgba(216, 228, 240, 0.78);
  --t1703: rgba(5, 12, 20, 0.54);
  --t1704: rgba(246, 249, 255, 0.96);
  --t1705: #f4c264;
  --t1706: rgba(255, 255, 255, 0.92);
  --t1707: rgba(14, 28, 45, 0.96);
  --t1708: rgba(5, 10, 18, 0.24);
  --t1709: rgba(181, 195, 214, 0.92);
  --t1710: rgba(93, 163, 255, 0.2);
  --t1711: rgba(9, 18, 30, 0.65);
  --t1712: rgba(138, 184, 255, 0.52);
  --t1713: rgba(6, 12, 20, 0.22);
  --t1714: rgba(233, 240, 255, 0.92);
  --t1715: rgba(9, 18, 30, 0.04);
  --t1716: rgba(9, 18, 30, 0.24);
  --t1717: rgba(9, 18, 30, 0.82);
  --t1718: #f4f7ff;
  --t1719: rgba(9, 18, 30, 0.68);
  --t1720: rgba(9, 18, 30, 0.84);
  --t1721: rgba(244, 247, 255, 0.92);
  --t1722: rgba(255, 120, 120, 0.34);
  --t1723: rgba(70, 18, 18, 0.9);
  --t1724: rgba(14, 28, 45, 0.94);
  --t1725: rgba(242, 181, 56, 0.28);
  --t1726: rgba(242, 181, 56, 0.045);
  --t1727: rgba(242, 181, 56, 0.5);
  --t1728: rgba(242, 181, 56, 0.075);
  --t1729: rgba(94, 154, 255, 0.18);
  --t1730: rgba(247, 202, 93, 0.96);
  --t1731: rgba(234, 241, 252, 0.92);
  --t1732: rgba(150, 180, 210, 0.85);
  --t1733: rgba(196, 212, 234, 0.92);
  --t1734: rgba(127, 164, 210, 0.14);
  --t1735: rgba(255, 255, 255, 0.055);
  --t1736: #c53030;
  --t1737: rgba(47, 136, 255, 0.3);
  --t1738: #b9d8ff;
  --t1739: rgba(11, 17, 24, 0.94);
  --t1740: rgba(11, 17, 24, 0.96);
  --t1741: rgba(6, 14, 22, 0.98);
  --t1742: rgba(7, 18, 29, 0.86);
  --t1743: rgba(7, 18, 29, 0.44);
  --t1744: rgba(47, 139, 255, 0.12);
  --t1745: #06101a;
  --t1746: #071725;
  --t1747: #05101a;
  --t1748: rgba(4, 10, 16, 0);
  --t1749: rgba(4, 10, 16, 0.48);
  --t1750: rgba(92, 170, 255, 0.08);
  --t1751: rgba(139, 203, 255, 0.94);
  --t1752: rgba(76, 162, 255, 0.78);
  --t1753: rgba(121, 194, 255, 0.96);
  --t1754: rgba(153, 209, 255, 0.98);
  --t1755: rgba(132, 181, 242, 0.28);
  --t1756: rgba(6, 14, 22, 0.88);
  --t1757: rgba(0, 0, 0, 0.52);
  --t1758: rgba(127, 164, 210, 0.17);
  --t1759: rgba(8, 19, 31, 0.78);
  --t1760: rgba(96, 196, 255, 0.55);
  --t1761: #eaf4ff;
  --t1762: rgba(96, 196, 255, 0.75);
  --t1763: #eaf6ff;
  --t1764: rgba(28, 78, 110, 0.92);
  --t1765: rgba(96, 196, 255, 0.32);
  --t1766: rgba(76, 184, 255, 0.98);
  --t1767: rgba(238, 246, 255, 0.92);
  --t1768: rgba(107, 146, 188, 0.4);
  --t1769: rgba(171, 198, 225, 0.74);
  --t1770: rgba(246, 250, 255, 0.98);
  --t1771: rgba(6, 15, 24, 0.98);
  --t1772: rgba(65, 154, 255, 0.95);
  --t1773: #2b8bff;
  --t1774: #1760d5;
  --t1775: rgba(246, 250, 255, 0.96);
  --t1776: rgba(107, 146, 188, 0.4);
  --t1777: rgba(186, 209, 233, 0.92);
  --t1778: rgba(8, 18, 29, 0.72);
  --t1779: rgba(140, 178, 219, 0.85);
  --t1780: rgba(214, 230, 248, 0.9);
  --t1781: rgba(178, 203, 230, 0.78);
  --t1782: rgba(101, 173, 255, 0.95);
  --t1783: rgba(101, 173, 255, 0.45);
  --t1784: rgba(101, 173, 255, 0.9);
  --t1785: rgba(127, 164, 210, 0.13);
  --t1786: #3d99ff;
  --t1787: #1d63d7;
  --t1788: rgba(96, 184, 255, 0.98);
  --t1789: rgba(28, 86, 154, 0.28);
  --t1790: rgba(105, 190, 255, 0.98);
  --t1791: rgba(194, 255, 224, 0.98);
  --t1792: rgba(42, 145, 99, 0.32);
  --t1793: rgba(115, 225, 163, 0.98);
  --t1794: rgba(255, 221, 146, 0.98);
  --t1795: rgba(151, 100, 16, 0.35);
  --t1796: rgba(255, 189, 59, 0.98);
  --t1797: rgba(16, 31, 46, 0.88);
  --t1798: rgba(8, 18, 29, 0.92);
  --t1799: rgba(157, 211, 255, 0.92);
  --t1800: rgba(240, 246, 255, 0.88);
  --t1801: rgba(51, 137, 222, 0.7);
  --t1802: rgba(27, 65, 99, 0.9);
  --t1803: #8fbce6;
  --t1804: #364553;
  --t1805: #a17a49;
  --t1806: #4c3927;
  --t1807: rgba(198, 213, 229, 0.82);
  --t1808: rgba(153, 178, 204, 0.78);
  --t1809: rgba(112, 172, 242, 0.34);
  --t1810: rgba(18, 33, 49, 0.86);
  --t1811: rgba(37, 113, 219, 0.82);
  --t1812: rgba(196, 209, 224, 0.76);
  --t1813: rgba(196, 209, 224, 0.78);
  --t1814: rgba(226, 236, 248, 0.92);
  --t1815: rgba(8, 18, 29, 0.42);
  --t1816: rgba(127, 164, 210, 0.1);
  --t1817: rgba(8, 18, 29, 0.6);
  --t1818: rgba(218, 231, 246, 0.9);
  --t1819: rgba(242, 246, 255, 0.9);
  --t1820: rgba(92, 142, 206, 0.85);
  --t1821: rgba(55, 72, 90, 0.9);
  --t1822: rgba(78, 156, 230, 0.9);
  --t1823: rgba(31, 71, 110, 0.9);
  --t1824: rgba(145, 154, 164, 0.9);
  --t1825: rgba(42, 50, 61, 0.9);
  --t1826: rgba(127, 164, 210, 0.11);
  --t1827: rgba(255, 182, 45, 0.82);
  --t1828: rgba(255, 211, 124, 0.98);
  --t1829: rgba(31, 28, 13, 0.96);
  --t1830: rgba(12, 18, 26, 0.98);
  --t1831: rgba(255, 186, 54, 0.98);
  --t1832: rgba(255, 182, 45, 0.92);
  --t1833: rgba(255, 182, 45, 0.92);
  --t1834: rgba(255, 182, 45, 0.35);
  --t1835: rgba(31, 28, 13, 0.45);
  --t1836: rgba(255, 213, 137, 0.96);
  --t1837: rgba(196, 213, 232, 0.86);
  --t1838: rgba(184, 199, 218, 0.88);
  --t1839: rgba(187, 255, 223, 0.98);
  --t1840: rgba(34, 127, 81, 0.32);
  --t1841: rgba(255, 218, 139, 0.98);
  --t1842: rgba(255, 180, 180, 0.98);
  --t1843: rgba(167, 52, 52, 0.35);
  --t1844: rgba(180, 224, 255, 0.92);
  --t1845: rgba(127, 164, 210, 0.15);
  --t1846: rgba(10, 24, 38, 0.72);
  --t1847: rgba(95, 201, 168, 0.42);
  --t1848: rgba(17, 53, 45, 0.58);
  --t1849: rgba(139, 214, 255, 0.94);
  --t1850: rgba(211, 224, 239, 0.88);
  --t1851: rgba(5, 10, 16, 0.75);
  --t1852: rgba(211, 224, 239, 0.9);
  --t1853: rgba(8, 18, 29, 0.46);
  --t1854: rgba(10, 24, 38, 0.55);
  --t1855: rgba(139, 214, 255, 0.96);
  --t1856: rgba(10, 24, 38, 0.6);
  --t1857: rgba(90, 127, 184, 0.16);
  --t1858: rgba(127, 164, 210, 0.4);
  --t1859: rgba(185, 210, 239, 0.95);
  --t1860: rgba(211, 224, 239, 0.72);
  --t1861: rgba(211, 224, 239, 0.84);
  --t1862: rgba(139, 214, 255, 0.9);
  --t1863: rgba(122, 160, 200, 0.6);
  --t1864: rgba(45, 212, 191, 0.07);
  --t1865: #f6faff;
  --t1866: rgba(6, 16, 26, 0.7);
  --t1867: rgba(95, 201, 168, 0.7);
  --t1868: rgba(255, 159, 28, 0.7);
  --t1869: rgba(139, 214, 255, 0.6);
  --t1870: #ffce8a;
  --t1871: rgba(255, 159, 28, 0.14);
  --t1872: #ffb0b0;
  --t1873: rgba(255, 93, 93, 0.14);
  --t1874: rgba(255, 93, 93, 0.4);
  --t1875: #8bd6ff;
  --t1876: rgba(139, 214, 255, 0.12);
  --t1877: rgba(139, 214, 255, 0.4);
  --t1878: #c9d6ea;
  --t1879: rgba(226, 236, 248, 0.9);
  --t1880: rgba(196, 209, 224, 0.85);
  --t1881: #888;
  --t1882: #d8d8d8;
  --t1883: #1f6feb;
  --t1884: #1857c4;
  --t1885: rgba(142, 217, 255, 0.4);
  --t1886: rgba(204, 217, 232, 0.6);
  --t1887: rgba(190, 202, 216, 0.78);
  --t1888: rgba(204, 217, 232, 0.7);
  --t1889: rgba(245, 158, 11, 0.45);
  --t1890: rgba(245, 158, 11, 0.1);
  --t1891: rgba(74, 222, 128, 0.45);
  --t1892: rgba(74, 222, 128, 0.1);
  --t1893: #4ade80;
  --t1894: rgba(7, 18, 29, 0.4);
  --t1895: rgba(105, 165, 255, 0.12);
  --t1896: rgba(255, 113, 113, 0.26);
  --t1897: rgba(72, 20, 24, 0.2);
  --t1898: #bff0e4;
  --t1899: rgba(148, 163, 184, 0.42);
  --t1900: rgba(15, 23, 42, 0.35);
  --t1901: rgba(72, 158, 255, 0.82);
  --t1902: rgba(148, 163, 184, 0.35);
  --t1903: rgba(99, 179, 255, 0.72);
  --t1904: #dceeff;
  --t1905: #ffb3ad;
  --t1906: rgba(148, 163, 184, 0.32);
  --t1907: rgba(148, 163, 184, 0.45);
  --t1908: rgba(209, 222, 238, 0.9);
  --t1909: rgba(15, 23, 42, 0.62);
  --t1910: #cbd5e1;
  --t1911: rgba(47, 136, 255, 0.9);
  --t1912: rgba(47, 136, 255, 0.58);
  --t1913: #ffffff;
  --t1914: #b7791f;
  --t1915: rgba(226, 232, 240, 0.88);
  --t1916: rgba(98, 206, 77, 0.56);
  --t1917: rgba(34, 197, 94, 0.22);
  --t1918: #a6e89a;
  --t1919: rgba(105, 165, 255, 0.76);
  --t1920: #ffcf85;
  --t1921: rgba(98, 206, 77, 0.16);
  --t1922: #a6e89a;
  --t1923: rgba(98, 206, 77, 0.4);
  --t1924: rgba(120, 160, 255, 0.18);
  --t1925: #b8cdff;
  --t1926: rgba(120, 160, 255, 0.45);
  --t1927: rgba(239, 68, 68, 0.15);
  --t1928: rgba(239, 68, 68, 0.42);
  --t1929: rgba(168, 85, 247, 0.16);
  --t1930: #d8b4fe;
  --t1931: rgba(168, 85, 247, 0.42);
  --t1932: rgba(15, 23, 42, 0.5);
  --t1933: rgba(148, 163, 184, 0.28);
  --t1934: #111827;
  --t1935: rgba(148, 163, 184, 0.12);
  --t1936: rgba(37, 99, 235, 0.18);
  --t1937: rgba(15, 23, 42, 0.4);
  --t1938: rgba(0, 0, 0, 0.55);
  --t1939: #d97706;
  --t1940: #1a1a1a;
  --t1941: rgba(0, 0, 0, 0.25);
  --t1942: #1a1a1a;
  --t1943: #1a1a1a;
  --t1944: #000;
  --t1945: rgba(68, 211, 143, 0.55);
  --t1946: #44d38f;
  --t1947: rgba(5, 13, 23, 0.32);
  --t1948: #f0b45a;
  --t1949: rgba(98, 206, 77, 0.45);
  --t1950: #bfe9b3;
  --t1951: #bcd9ff;
  --t1952: #ffc2bd;
  --t1953: #ffd9a0;
  --t1954: rgba(127, 127, 127, 0.18);
  --t1955: #e07575;
  --t1956: rgba(224, 117, 117, 0.5);
  --t1957: rgba(148, 163, 184, 0.16);
  --t1958: #0b1220;
  --t1959: #111a2e;
  --t1960: #e6edf6;
  --t1961: #ff8a8a;
  --t1962: #66a3ff;
  --t1963: #2ecc71;
  --t1964: rgba(46, 204, 113, 0.12);
  --t1965: #f5a623;
  --t1966: rgba(245, 166, 35, 0.12);
  --t1967: rgba(102, 163, 255, 0.12);
  --t1968: #b388ff;
  --t1969: rgba(179, 136, 255, 0.14);
  --t1970: #66a3ff;
  --t1971: #b388ff;
  --t1972: rgba(255, 255, 255, 0.78);
  --t1973: #66a3ff;
  --t1974: rgba(102, 163, 255, 0.25);
  --t1975: rgba(255, 255, 255, 0.7);
  --t1976: rgba(255, 255, 255, 0.45);
  --t1977: rgba(0, 0, 0, 0.35);
  --t1978: #b7c3d6;
  --t1979: rgba(255, 255, 255, 0.25);
  --t1980: #16a34a;
  --t1981: #16a34a;
  --t1982: #9be3b3;
  --t1983: #8ea0bd;
  --t1984: #6b7280;
  --t1985: rgba(220, 38, 38, 0.12);
  --t1986: rgba(220, 38, 38, 0.45);
  --t1987: #7fb2ff;
  --t1988: #5bd684;
  --t1989: rgba(107, 107, 249, 0.16);
  --t1990: rgba(107, 107, 249, 0.45);
  --t1991: rgba(47, 136, 255, 0.04);
  --t1992: #ff7a70;
  --t1993: #0c151f;
  --t1994: rgba(76, 166, 255, 0.36);
  --t1995: rgba(76, 166, 255, 0.7);
  --t1996: rgba(45, 212, 191, 0.45);
  --t1997: rgba(179, 107, 255, 0.5);
  --t1998: rgba(179, 107, 255, 0.1);
  --t1999: rgba(255, 159, 28, 0.35);
  --t2000: #ffc267;
  --t2001: rgba(255, 159, 28, 0.9);
  --t2002: rgba(143, 158, 178, 0.5);
  --t2003: rgba(13, 27, 41, 0.7);
  --t2004: rgba(23, 36, 51, 0.7);
  --t2005: rgba(47, 136, 255, 0.4);
  --t2006: rgba(179, 107, 255, 0.45);
  --t2007: rgba(179, 107, 255, 0.04);
  --t2008: rgba(138, 184, 255, 0.35);
  --t2009: rgba(27, 40, 56, 0.96);
  --t2010: rgba(18, 29, 41, 0.96);
  --t2011: #4b9bff;
  --t2012: #46bd55;
  --t2013: #2b9c3c;
  --t2014: rgba(76, 194, 87, 0.25);
  --t2015: #94a3b8;
  --t2016: rgba(148, 163, 184, 0.25);
  --t2017: rgba(148, 163, 184, 0.12);
  --t2018: rgba(148, 163, 184, 0.08);
  --t2019: rgba(148, 163, 184, 0.14);
  --t2020: rgba(148, 163, 184, 0.1);
  --t2021: rgba(15, 23, 42, 0.6);
  --t2022: rgba(76, 154, 255, 0.14);
  --t2023: rgba(0, 0, 0, 0.5);
  --t2024: #10151c;
  --t2025: #e8edf4;
  --t2026: rgba(255, 255, 255, 0.2);
  --t2027: rgba(10, 14, 20, 0.88);
  --t2028: #dbe4ee;
  --t2029: #0b1016;
  --t2030: #6db3f2;
  --t2031: #7ed491;
  --t2032: #f2c76d;
  --t2033: rgba(179, 107, 255, 0.55);
  --t2034: rgba(179, 107, 255, 0.16);
  --t2035: #ddc4ff;
  --t2036: rgba(9, 14, 20, 0.99);
  --t2037: rgba(0, 0, 0, 0.4);
  --t2038: rgba(59, 157, 255, 0.22);
  --t2039: rgba(59, 157, 255, 0.7);
  --t2040: #0a0e14;
  --t2041: rgba(9, 14, 22, 0.98);
  --t2042: rgba(6, 10, 16, 0.99);
  --t2043: #121a24;
  --t2044: #eef3f9;
  --t2045: #f6f9fc;
  --t2046: #eaf0f7;
}

:root[data-theme="light"] {
  --t1: rgba(47, 136, 255, 0.14);
  --t2: rgb(253, 253, 253);
  --t3: rgb(251, 251, 251);
  --t4: rgb(252, 252, 252);
  --t5: rgba(189, 189, 189, 0.06);
  --t6: rgba(0, 0, 0, 0.1575);
  --t7: rgb(49, 49, 143);
  --t8: rgb(0, 0, 0);
  --t9: rgba(189, 189, 189, 0.85);
  --t10: rgba(71, 71, 71, 0.12);
  --t11: rgba(189, 189, 189, 0.14);
  --t12: rgba(71, 71, 71, 0.04);
  --t13: rgba(71, 71, 71, 0.08);
  --t14: rgba(189, 189, 189, 0.28);
  --t15: rgba(189, 189, 189, 0.12);
  --t16: rgba(32, 59, 96, 0.0875);
  --t17: rgb(255, 90, 14);
  --t18: rgb(255, 27, 68);
  --t19: rgba(96, 32, 43, 0.1225);
  --t20: rgba(96, 32, 43, 0.1575);
  --t21: rgba(0, 8, 20, 0.92);
  --t22: rgba(51, 133, 255, 0.92);
  --t23: rgba(0, 8, 20, 0.82);
  --t24: rgba(252, 252, 253, 0.98);
  --t25: rgba(252, 252, 253, 0.82);
  --t26: rgba(182, 188, 195, 0.28);
  --t27: rgba(249, 249, 250, 0.96);
  --t28: rgba(251, 251, 252, 0.98);
  --t29: rgba(64, 64, 64, 0.028);
  --t30: rgba(0, 0, 0, 0.063);
  --t31: rgba(12, 105, 230, 0.5);
  --t32: rgba(248, 248, 249, 0.98);
  --t33: rgba(251, 251, 251, 0.98);
  --t34: rgba(12, 105, 230, 0.72);
  --t35: rgba(182, 188, 195, 0.3);
  --t36: rgba(250, 250, 251, 0.98);
  --t37: rgba(252, 252, 252, 0.98);
  --t38: rgba(0, 0, 0, 0.168);
  --t39: rgba(64, 64, 64, 0.0245);
  --t40: rgba(189, 189, 189, 0.07);
  --t41: rgb(10, 22, 35);
  --t42: rgba(47, 136, 255, 0.22);
  --t43: rgb(214, 122, 0);
  --t44: rgba(56, 69, 85, 0.48);
  --t45: rgb(0, 141, 214);
  --t46: rgba(71, 187, 245, 0.72);
  --t47: rgba(71, 187, 245, 0.96);
  --t48: rgba(47, 136, 255, 0.18);
  --t49: rgb(0, 142, 214);
  --t50: rgba(47, 136, 255, 0.09);
  --t51: rgba(32, 59, 96, 0.063);
  --t52: rgb(214, 18, 0);
  --t53: rgba(240, 27, 13, 0.36);
  --t54: rgba(255, 73, 61, 0.12);
  --t55: rgba(69, 138, 245, 0.82);
  --t56: rgba(47, 136, 255, 0.16);
  --t57: rgba(32, 59, 96, 0.056);
  --t58: rgba(32, 59, 96, 0.049);
  --t59: rgba(37, 49, 65, 0.86);
  --t60: rgb(34, 180, 90);
  --t61: rgb(214, 12, 0);
  --t62: rgba(69, 138, 245, 0.38);
  --t63: rgba(250, 250, 250, 0.96);
  --t64: rgba(0, 0, 0, 0.119);
  --t65: rgb(0, 8, 18);
  --t66: rgba(56, 188, 100, 0.45);
  --t67: rgb(25, 189, 71);
  --t68: rgba(244, 58, 49, 0.54);
  --t69: rgb(214, 14, 0);
  --t70: rgba(69, 138, 245, 0.42);
  --t71: rgba(250, 250, 250, 0.98);
  --t72: rgba(56, 188, 100, 0.5);
  --t73: rgba(244, 58, 49, 0.58);
  --t74: rgb(0, 92, 214);
  --t75: rgba(98, 206, 77, 0.15);
  --t76: rgba(255, 73, 61, 0.15);
  --t77: rgba(0, 3, 8, 0.98);
  --t78: rgba(15, 27, 42, 0.88);
  --t79: rgba(69, 138, 245, 0.34);
  --t80: rgb(0, 4, 8);
  --t81: rgba(71, 71, 71, 0.06);
  --t82: rgba(5, 13, 23, 0.88);
  --t83: rgba(69, 138, 245, 0.72);
  --t84: rgba(47, 136, 255, 0.24);
  --t85: rgba(69, 138, 245, 0.2);
  --t86: rgba(71, 71, 71, 0.045);
  --t87: rgba(244, 58, 49, 0.42);
  --t88: rgba(255, 73, 61, 0.08);
  --t89: rgb(51, 140, 255);
  --t90: rgba(32, 60, 96, 0.042);
  --t91: rgb(87, 219, 137);
  --t92: rgba(43, 84, 59, 0.042);
  --t93: rgb(255, 62, 51);
  --t94: rgba(96, 35, 32, 0.049);
  --t95: rgba(15, 27, 42, 0.9);
  --t96: rgba(15, 27, 42, 0.72);
  --t97: rgba(69, 138, 245, 0.24);
  --t98: rgba(47, 136, 255, 0.12);
  --t99: rgba(0, 8, 18, 0.92);
  --t100: rgb(32, 2, 0);
  --t101: rgba(245, 81, 71, 0.72);
  --t102: rgba(255, 73, 61, 0.2);
  --t103: rgba(12, 105, 230, 0.42);
  --t104: rgba(47, 136, 255, 0.13);
  --t105: rgba(32, 59, 96, 0.028);
  --t106: rgb(0, 103, 214);
  --t107: rgba(24, 41, 61, 0.86);
  --t108: rgb(69, 138, 245);
  --t109: rgba(0, 84, 214, 0.88);
  --t110: rgba(12, 105, 230, 0.7);
  --t111: rgb(7, 114, 255);
  --t112: rgb(20, 91, 192);
  --t113: rgba(250, 250, 250, 0.92);
  --t114: rgba(0, 8, 20, 0.94);
  --t115: rgba(27, 115, 243, 0.82);
  --t116: rgba(34, 46, 60, 0.94);
  --t117: rgba(0, 84, 214, 0.96);
  --t118: rgba(251, 251, 252, 0.28);
  --t119: rgba(48, 62, 81, 0.66);
  --t120: rgba(44, 124, 244, 0.22);
  --t121: rgba(249, 249, 249, 0.72);
  --t122: rgba(44, 124, 244, 0.32);
  --t123: rgba(44, 124, 244, 0.86);
  --t124: rgba(66, 111, 164, 0.58);
  --t125: rgba(250, 250, 250, 0.94);
  --t126: rgba(0, 8, 19, 0.96);
  --t127: rgba(0, 0, 0, 0.07);
  --t128: rgba(51, 133, 255, 0.9);
  --t129: rgba(83, 129, 187, 0.14);
  --t130: rgba(252, 252, 253, 0.86);
  --t131: rgba(252, 252, 253, 0.4);
  --t132: rgba(252, 252, 253, 0);
  --t133: rgba(252, 252, 253, 0.58);
  --t134: rgba(252, 252, 253, 0.01);
  --t135: rgba(252, 252, 253, 0.72);
  --t136: rgba(14, 24, 37, 0.86);
  --t137: rgba(56, 69, 85, 0.86);
  --t138: rgba(69, 138, 245, 0.18);
  --t139: rgba(248, 249, 249, 0.86);
  --t140: rgba(251, 251, 252, 0.88);
  --t141: rgba(0, 0, 0, 0.133);
  --t142: rgba(64, 64, 64, 0.0123);
  --t143: rgba(253, 253, 254, 0.86);
  --t144: rgba(64, 64, 64, 0.0087);
  --t145: rgba(0, 0, 0, 0.056);
  --t146: rgba(56, 69, 85, 0.84);
  --t147: rgba(71, 71, 71, 0.035);
  --t148: rgba(253, 253, 254, 0.72);
  --t149: rgba(7, 10, 14, 0.112);
  --t150: rgba(0, 3, 10, 0.96);
  --t151: rgba(56, 69, 85, 0.9);
  --t152: rgba(83, 129, 187, 0.18);
  --t153: rgba(250, 251, 251, 0.78);
  --t154: rgba(251, 251, 252, 0.92);
  --t155: rgba(47, 136, 255, 0.11);
  --t156: rgba(253, 253, 253, 0.72);
  --t157: rgba(7, 10, 14, 0.063);
  --t158: rgba(252, 252, 253, 0.88);
  --t159: rgba(252, 252, 253, 0.52);
  --t160: rgba(252, 252, 253, 0.12);
  --t161: rgba(252, 252, 253, 0.18);
  --t162: rgba(252, 252, 253, 0.84);
  --t163: rgba(56, 69, 85, 0.88);
  --t164: rgba(0, 4, 8, 0.98);
  --t165: rgba(14, 24, 37, 0.88);
  --t166: rgba(252, 252, 252, 0.72);
  --t167: rgba(0, 0, 0, 0.098);
  --t168: rgba(64, 64, 64, 0.014);
  --t169: rgba(253, 253, 253, 0.86);
  --t170: rgba(83, 129, 187, 0.2);
  --t171: rgba(8, 18, 30, 0.9);
  --t172: rgba(251, 251, 251, 0.78);
  --t173: rgba(83, 129, 187, 0.32);
  --t174: rgb(4, 10, 17);
  --t175: rgba(249, 249, 250, 0.96);
  --t176: rgba(251, 251, 252, 0.96);
  --t177: rgba(7, 9, 12, 0.175);
  --t178: rgba(48, 62, 79, 0.028);
  --t179: rgba(247, 247, 248, 0.98);
  --t180: rgba(250, 250, 251, 0.98);
  --t181: rgba(70, 183, 245, 0.95);
  --t182: rgba(251, 251, 251, 0.62);
  --t183: rgba(83, 129, 187, 0.12);
  --t184: rgba(0, 138, 214, 0.88);
  --t185: rgba(31, 44, 59, 0.86);
  --t186: rgba(23, 36, 50, 0.9);
  --t187: rgba(31, 44, 59, 0.88);
  --t188: rgba(251, 251, 251, 0.68);
  --t189: rgba(253, 253, 254, 0.9);
  --t190: rgba(75, 132, 255, 0.18);
  --t191: rgba(0, 135, 214, 0.96);
  --t192: rgba(0, 0, 0, 0.091);
  --t193: rgba(252, 252, 253, 0.92);
  --t194: rgba(252, 252, 253, 0.48);
  --t195: rgba(252, 252, 253, 0.2);
  --t196: rgba(252, 252, 253, 0.74);
  --t197: rgba(255, 159, 28, 0.08);
  --t198: rgba(83, 129, 187, 0.16);
  --t199: rgb(0, 84, 214);
  --t200: rgba(12, 105, 230, 0.52);
  --t201: rgba(47, 136, 255, 0.1);
  --t202: rgba(15, 27, 42, 0.8);
  --t203: rgba(69, 138, 245, 0.28);
  --t204: rgba(0, 0, 0, 0.161);
  --t205: rgba(15, 27, 42, 0.78);
  --t206: rgba(7, 10, 14, 0.091);
  --t207: rgba(253, 253, 254, 0.98);
  --t208: rgba(52, 82, 46, 0.1925);
  --t209: rgba(15, 27, 42, 0.74);
  --t210: rgba(4, 10, 17, 0.96);
  --t211: rgb(0, 86, 214);
  --t212: rgba(47, 136, 255, 0.05);
  --t213: rgb(0, 92, 214);
  --t214: rgb(214, 124, 0);
  --t215: rgba(215, 129, 11, 0.88);
  --t216: rgba(96, 69, 32, 0.0315);
  --t217: rgba(0, 0, 0, 0.126);
  --t218: rgba(215, 129, 11, 0.44);
  --t219: rgba(255, 159, 28, 0.1);
  --t220: rgba(56, 69, 85, 0.78);
  --t221: rgba(4, 10, 17, 0.9);
  --t222: rgba(255, 159, 28, 0.12);
  --t223: rgba(15, 27, 42, 0.84);
  --t224: rgba(96, 69, 32, 0.028);
  --t225: rgba(0, 0, 0, 0.105);
  --t226: rgba(215, 129, 11, 0.42);
  --t227: rgb(214, 119, 0);
  --t228: rgba(15, 27, 42, 0.82);
  --t229: rgba(45, 212, 191, 0.12);
  --t230: rgba(45, 212, 191, 0.025);
  --t231: rgb(14, 200, 173);
  --t232: rgba(42, 164, 149, 0.48);
  --t233: rgba(45, 212, 191, 0.1);
  --t234: rgb(18, 196, 170);
  --t235: rgba(251, 252, 252, 0.9);
  --t236: rgba(251, 251, 251, 0.72);
  --t237: rgba(0, 0, 0, 0.084);
  --t238: rgba(253, 253, 253, 0.84);
  --t239: rgba(253, 253, 253, 0.38);
  --t240: rgba(253, 253, 253, 0.66);
  --t241: rgba(45, 212, 191, 0.15);
  --t242: rgba(252, 253, 253, 0.96);
  --t243: rgba(251, 251, 252, 0.74);
  --t244: rgba(252, 253, 253, 0.5);
  --t245: rgba(252, 253, 253, 0.94);
  --t246: rgba(252, 253, 253, 0.62);
  --t247: rgba(252, 253, 253, 0.24);
  --t248: rgba(250, 251, 251, 0.82);
  --t249: rgba(251, 251, 252, 0.94);
  --t250: rgba(70, 183, 245, 0.26);
  --t251: rgba(0, 149, 214, 0.96);
  --t252: rgba(27, 126, 202, 0.14);
  --t253: rgba(0, 3, 10, 0.98);
  --t254: rgba(37, 53, 71, 0.92);
  --t255: rgba(49, 137, 255, 0.72);
  --t256: rgba(37, 181, 163, 0.7);
  --t257: rgba(241, 139, 0, 0.62);
  --t258: rgba(49, 137, 255, 0.62);
  --t259: rgb(214, 128, 0);
  --t260: rgba(253, 253, 253, 0.98);
  --t261: rgba(253, 253, 253, 0.82);
  --t262: rgba(253, 253, 253, 0.18);
  --t263: rgba(253, 253, 253, 0.06);
  --t264: rgba(250, 250, 251, 0.64);
  --t265: rgba(251, 251, 252, 0.76);
  --t266: rgba(37, 181, 163, 0.8);
  --t267: rgba(255, 158, 14, 0.82);
  --t268: rgba(253, 253, 253, 0.2);
  --t269: rgba(253, 253, 253, 0.62);
  --t270: rgb(37, 181, 163);
  --t271: rgb(227, 241, 248);
  --t272: rgb(255, 158, 14);
  --t273: rgba(253, 253, 253, 0.58);
  --t274: rgba(50, 65, 81, 0.9);
  --t275: rgb(42, 164, 149);
  --t276: rgba(253, 253, 253, 0.88);
  --t277: rgba(253, 253, 253, 0.64);
  --t278: rgba(0, 0, 0, 0.077);
  --t279: rgba(250, 251, 251, 0.6);
  --t280: rgba(251, 251, 252, 0.74);
  --t281: rgba(250, 251, 251, 0.58);
  --t282: rgba(88, 95, 104, 0.16);
  --t283: rgba(88, 95, 104, 0.46);
  --t284: rgba(255, 255, 255, 0.34);
  --t285: rgba(37, 181, 163, 0.18);
  --t286: rgb(33, 181, 163);
  --t287: rgb(38, 142, 255);
  --t288: rgb(33, 94, 169);
  --t289: rgba(32, 63, 96, 0.112);
  --t290: rgba(32, 59, 96, 0.098);
  --t291: rgb(0, 11, 21);
  --t292: rgba(250, 250, 251, 0.8);
  --t293: rgba(251, 251, 252, 0.94);
  --t294: rgb(0, 92, 214);
  --t295: rgba(250, 250, 251, 0.72);
  --t296: rgba(8, 18, 30, 0.92);
  --t297: rgba(83, 129, 187, 0.26);
  --t298: rgba(252, 252, 252, 0.82);
  --t299: rgba(0, 7, 17, 0.96);
  --t300: rgba(56, 69, 85, 0.72);
  --t301: rgba(70, 183, 245, 0.62);
  --t302: rgba(39, 67, 88, 0.042);
  --t303: rgba(251, 251, 252, 0.76);
  --t304: rgba(14, 24, 37, 0.9);
  --t305: rgba(64, 147, 221, 0.16);
  --t306: rgba(32, 74, 96, 0.35);
  --t307: rgba(64, 147, 221, 0.14);
  --t308: rgba(250, 250, 251, 0.86);
  --t309: rgba(70, 183, 245, 0.18);
  --t310: rgba(65, 160, 230, 0.08);
  --t311: rgba(31, 44, 59, 0.9);
  --t312: rgba(70, 183, 245, 0.16);
  --t313: rgba(249, 250, 250, 0.72);
  --t314: rgba(70, 183, 245, 0.14);
  --t315: rgba(252, 252, 253, 0.34);
  --t316: rgba(0, 3, 10, 0.94);
  --t317: rgba(0, 157, 214, 0.96);
  --t318: rgba(56, 69, 85, 0.82);
  --t319: rgba(253, 253, 253, 0.78);
  --t320: rgba(253, 253, 253, 0.04);
  --t321: rgba(253, 253, 253, 0.16);
  --t322: rgba(253, 253, 253, 0.34);
  --t323: rgba(0, 0, 0, 0.112);
  --t324: rgba(253, 253, 253, 0.54);
  --t325: rgba(71, 187, 245, 0.42);
  --t326: rgba(71, 187, 245, 0.5);
  --t327: rgba(32, 182, 108, 0.96);
  --t328: rgba(214, 12, 0, 0.96);
  --t329: rgba(83, 129, 187, 0.24);
  --t330: rgba(127, 164, 210, 0.04);
  --t331: rgba(56, 69, 85, 0.92);
  --t332: rgba(5, 13, 24, 0.9);
  --t333: rgba(72, 111, 147, 0.24);
  --t334: rgba(40, 139, 215, 0.11);
  --t335: rgba(252, 252, 252, 0.98);
  --t336: rgba(253, 253, 253, 0.98);
  --t337: rgba(252, 252, 253, 0.97);
  --t338: rgba(252, 252, 252, 0.91);
  --t339: rgba(252, 252, 252, 0.73);
  --t340: rgba(252, 252, 252, 0.58);
  --t341: rgba(83, 114, 145, 0.22);
  --t342: rgba(252, 252, 252, 0.42);
  --t343: rgba(92, 133, 178, 0.25);
  --t344: rgba(247, 248, 248, 0.92);
  --t345: rgba(250, 251, 251, 0.92);
  --t346: rgba(0, 6, 15, 0.95);
  --t347: rgba(64, 64, 64, 0.021);
  --t348: rgba(22, 133, 243, 0.64);
  --t349: rgba(43, 77, 110, 0.95);
  --t350: rgba(249, 249, 249, 0.95);
  --t351: rgba(77, 92, 112, 0.94);
  --t352: rgba(0, 109, 214, 0.96);
  --t353: rgba(34, 139, 243, 0.38);
  --t354: rgba(47, 136, 255, 0.2);
  --t355: rgba(47, 136, 255, 0.08);
  --t356: rgba(250, 250, 251, 0.82);
  --t357: rgba(0, 109, 214, 0.98);
  --t358: rgba(32, 59, 96, 0.035);
  --t359: rgba(37, 50, 69, 0.94);
  --t360: rgba(82, 120, 162, 0.17);
  --t361: rgba(248, 248, 248, 0.62);
  --t362: rgba(251, 251, 251, 0.42);
  --t363: rgba(252, 252, 252, 0.38);
  --t364: rgba(2, 110, 255, 0.72);
  --t365: rgba(137, 177, 220, 0.16);
  --t366: rgba(76, 166, 255, 0.36);
  --t367: rgba(82, 120, 162, 0.18);
  --t368: rgba(252, 252, 252, 0.42);
  --t369: rgba(38, 56, 78, 0.68);
  --t370: rgba(3, 11, 23, 0.96);
  --t371: rgba(0, 108, 214, 0.96);
  --t372: rgba(82, 120, 162, 0.16);
  --t373: rgba(22, 133, 243, 0.52);
  --t374: rgba(251, 252, 252, 0.28);
  --t375: rgba(22, 133, 243, 0.22);
  --t376: rgba(0, 109, 214, 0.95);
  --t377: rgba(83, 114, 145, 0.14);
  --t378: rgba(0, 108, 214, 0.88);
  --t379: rgba(24, 36, 54, 0.94);
  --t380: rgba(0, 6, 13, 0.98);
  --t381: rgba(0, 108, 214, 0.78);
  --t382: rgba(0, 7, 16, 0.98);
  --t383: rgba(50, 66, 86, 0.84);
  --t384: rgba(57, 123, 188, 0.25);
  --t385: rgba(53, 116, 177, 0.3);
  --t386: rgba(251, 251, 252, 0.2);
  --t387: rgba(252, 252, 252, 0.34);
  --t388: rgba(83, 114, 145, 0.16);
  --t389: rgba(75, 106, 139, 0.82);
  --t390: rgba(0, 5, 12, 0.98);
  --t391: rgba(22, 133, 243, 0.32);
  --t392: rgba(0, 113, 214, 0.98);
  --t393: rgba(252, 252, 252, 0.28);
  --t394: rgba(109, 76, 255, 0.12);
  --t395: rgba(252, 252, 252, 0.58);
  --t396: rgba(48, 0, 214, 0.92);
  --t397: rgba(3, 0, 14, 0.98);
  --t398: rgba(110, 71, 245, 0.3);
  --t399: rgba(109, 76, 255, 0.1);
  --t400: rgba(41, 0, 214, 0.94);
  --t401: rgba(110, 71, 245, 0.2);
  --t402: rgba(91, 62, 167, 0.13);
  --t403: rgba(39, 52, 71, 0.88);
  --t404: rgba(6, 11, 20, 0.98);
  --t405: rgba(89, 107, 150, 0.24);
  --t406: rgba(252, 252, 252, 0.52);
  --t407: rgba(62, 81, 104, 0.88);
  --t408: rgba(42, 0, 214, 0.96);
  --t409: rgba(73, 130, 188, 0.24);
  --t410: rgba(51, 118, 178, 0.12);
  --t411: rgba(15, 111, 199, 0.94);
  --t412: rgba(165, 138, 58, 0.28);
  --t413: rgba(197, 144, 33, 0.13);
  --t414: rgba(199, 150, 15, 0.94);
  --t415: rgba(3, 8, 15, 0.98);
  --t416: rgba(30, 42, 58, 0.94);
  --t417: rgba(173, 138, 42, 0.9);
  --t418: rgba(80, 107, 136, 0.22);
  --t419: rgba(249, 249, 250, 0.55);
  --t420: rgba(25, 37, 52, 0.94);
  --t421: rgba(0, 110, 214, 0.96);
  --t422: rgba(71, 89, 110, 0.84);
  --t423: rgba(0, 108, 214, 0.92);
  --t424: rgba(15, 111, 199, 0.92);
  --t425: rgba(22, 133, 243, 0.42);
  --t426: rgba(64, 64, 64, 0.0158);
  --t427: rgba(32, 64, 96, 0.042);
  --t428: rgba(252, 252, 252, 0.42);
  --t429: rgba(0, 9, 20, 0.96);
  --t430: rgba(62, 79, 101, 0.9);
  --t431: rgba(248, 248, 248, 0.72);
  --t432: rgba(250, 250, 250, 0.72);
  --t433: rgba(0, 6, 16, 0.94);
  --t434: rgba(54, 68, 88, 0.92);
  --t435: rgba(83, 114, 145, 0.17);
  --t436: rgba(37, 50, 69, 0.92);
  --t437: rgba(214, 125, 0, 0.95);
  --t438: rgba(214, 148, 0, 0.95);
  --t439: rgba(41, 173, 68, 0.95);
  --t440: rgba(74, 88, 107, 0.86);
  --t441: rgba(82, 120, 162, 0.15);
  --t442: rgba(248, 248, 248, 0.64);
  --t443: rgba(250, 250, 250, 0.66);
  --t444: rgba(2, 8, 17, 0.94);
  --t445: rgba(47, 60, 78, 0.92);
  --t446: rgba(2, 9, 19, 0.94);
  --t447: rgba(26, 142, 255, 0.95);
  --t448: rgba(30, 98, 179, 0.95);
  --t449: rgba(0, 0, 0, 0.96);
  --t450: rgba(57, 72, 93, 0.88);
  --t451: rgba(0, 112, 214, 0.96);
  --t452: rgba(0, 116, 214, 0.98);
  --t453: rgba(251, 251, 251, 0.64);
  --t454: rgba(0, 112, 214, 0.96);
  --t455: rgba(82, 120, 162, 0.12);
  --t456: rgba(0, 8, 20, 0.95);
  --t457: rgba(33, 47, 65, 0.92);
  --t458: rgba(214, 20, 0, 0.94);
  --t459: rgba(187, 124, 17, 0.88);
  --t460: rgba(213, 129, 16, 0.22);
  --t461: rgba(250, 250, 251, 0.42);
  --t462: rgba(251, 251, 252, 0.18);
  --t463: rgba(214, 159, 15, 0.48);
  --t464: rgba(213, 133, 16, 0.2);
  --t465: rgba(214, 171, 0, 0.98);
  --t466: rgba(214, 171, 0, 0.82);
  --t467: rgba(33, 25, 0, 0.98);
  --t468: rgba(71, 59, 33, 0.95);
  --t469: rgba(37, 50, 69, 0.86);
  --t470: rgba(214, 171, 0, 0.88);
  --t471: rgba(252, 223, 105, 0.15);
  --t472: rgb(209, 135, 9);
  --t473: rgb(240, 174, 4);
  --t474: rgba(94, 77, 33, 0.098);
  --t475: rgba(37, 50, 69, 0.78);
  --t476: rgba(252, 252, 253, 0.96);
  --t477: rgba(252, 252, 252, 0.88);
  --t478: rgba(71, 71, 71, 0.02);
  --t479: rgba(251, 251, 251, 0.78);
  --t480: rgba(12, 105, 230, 0.65);
  --t481: rgba(46, 135, 244, 0.95);
  --t482: rgb(2, 110, 255);
  --t483: rgb(0, 0, 0);
  --t484: rgba(64, 64, 64, 0.077);
  --t485: rgba(32, 59, 96, 0.077);
  --t486: rgba(189, 189, 189, 0.08);
  --t487: rgba(253, 253, 253, 0.32);
  --t488: rgb(12, 23, 35);
  --t489: rgba(12, 105, 230, 0.28);
  --t490: rgba(71, 71, 71, 0.22);
  --t491: rgba(32, 57, 96, 0.119);
  --t492: rgba(12, 105, 230, 0.62);
  --t493: rgba(252, 252, 253, 0.35);
  --t494: rgba(42, 168, 158, 0.6);
  --t495: rgba(49, 214, 200, 0.09);
  --t496: rgba(42, 85, 81, 0.056);
  --t497: rgba(42, 168, 158, 0.38);
  --t498: rgba(49, 214, 200, 0.08);
  --t499: rgba(255, 159, 28, 0.09);
  --t500: rgba(71, 71, 71, 0.05);
  --t501: rgba(71, 71, 71, 0.015);
  --t502: rgba(252, 252, 253, 0.44);
  --t503: rgba(12, 105, 230, 0.68);
  --t504: rgba(32, 59, 96, 0.07);
  --t505: rgba(12, 105, 230, 0.35);
  --t506: rgb(0, 103, 214);
  --t507: rgba(253, 253, 253, 0.38);
  --t508: rgba(215, 129, 11, 0.24);
  --t509: rgba(215, 129, 11, 0.4);
  --t510: rgba(32, 59, 96, 0.084);
  --t511: rgba(250, 250, 251, 0.92);
  --t512: rgb(1, 16, 36);
  --t513: rgb(15, 27, 39);
  --t514: rgb(251, 251, 251);
  --t515: rgba(76, 95, 114, 0.4);
  --t516: rgba(252, 252, 253, 0.42);
  --t517: rgba(252, 252, 253, 0.5);
  --t518: rgba(252, 252, 253, 0.54);
  --t519: rgba(91, 142, 194, 0.32);
  --t520: rgba(252, 252, 253, 0.62);
  --t521: rgba(43, 126, 244, 0.7);
  --t522: rgba(50, 107, 164, 0.6);
  --t523: rgba(252, 252, 253, 0.72);
  --t524: rgba(69, 138, 245, 0.4);
  --t525: rgba(250, 251, 251, 0.42);
  --t526: rgba(91, 142, 194, 0.44);
  --t527: rgba(253, 253, 253, 0.88);
  --t528: rgba(69, 138, 245, 0.92);
  --t529: rgba(252, 252, 253, 0.96);
  --t530: rgba(6, 9, 13, 0.154);
  --t531: rgb(18, 29, 41);
  --t532: rgba(189, 189, 189, 0.7);
  --t533: rgba(43, 126, 244, 0.9);
  --t534: rgba(253, 253, 253, 0.94);
  --t535: rgb(0, 8, 17);
  --t536: rgb(55, 70, 87);
  --t537: rgba(44, 124, 244, 0.26);
  --t538: rgba(44, 124, 244, 0.68);
  --t539: rgba(32, 57, 96, 0.042);
  --t540: rgba(44, 124, 244, 0.18);
  --t541: rgba(252, 252, 252, 0.72);
  --t542: rgba(253, 253, 253, 0.56);
  --t543: rgba(253, 253, 253, 0.1);
  --t544: rgba(69, 138, 245, 0.32);
  --t545: rgba(252, 252, 252, 0.78);
  --t546: rgb(214, 130, 0);
  --t547: rgba(7, 17, 29, 0.82);
  --t548: rgba(44, 124, 244, 0.16);
  --t549: rgba(249, 250, 250, 0.88);
  --t550: rgba(251, 251, 251, 0.9);
  --t551: rgba(23, 36, 51, 0.72);
  --t552: rgba(23, 36, 51, 0.66);
  --t553: rgba(7, 17, 29, 0.88);
  --t554: rgb(0, 95, 214);
  --t555: rgb(214, 18, 0);
  --t556: rgba(182, 188, 195, 0.16);
  --t557: rgba(66, 71, 77, 0.14);
  --t558: rgb(74, 189, 52);
  --t559: rgb(95, 206, 69);
  --t560: rgb(241, 139, 0);
  --t561: rgb(255, 175, 22);
  --t562: rgba(253, 253, 253, 0.64);
  --t563: rgba(44, 124, 244, 0.14);
  --t564: rgba(250, 250, 250, 0.5);
  --t565: rgba(44, 124, 244, 0.1);
  --t566: rgba(4, 10, 17, 0.92);
  --t567: rgba(74, 171, 55, 0.72);
  --t568: rgba(240, 27, 13, 0.82);
  --t569: rgba(23, 36, 51, 0.78);
  --t570: rgba(47, 136, 255, 0.07);
  --t571: rgba(240, 27, 13, 0.4);
  --t572: rgba(42, 164, 149, 0.4);
  --t573: rgba(249, 249, 250, 0.6);
  --t574: rgba(253, 253, 253, 0.6);
  --t575: rgb(255, 160, 27);
  --t576: rgb(255, 29, 14);
  --t577: rgb(255, 72, 51);
  --t578: rgba(42, 164, 149, 0.35);
  --t579: rgba(253, 253, 253, 0.5);
  --t580: rgba(12, 105, 230, 0.45);
  --t581: rgba(253, 253, 253, 0.7);
  --t582: rgba(182, 188, 195, 0.35);
  --t583: rgba(215, 129, 11, 0.55);
  --t584: rgba(42, 164, 149, 0.5);
  --t585: rgba(45, 212, 191, 0.06);
  --t586: rgba(47, 136, 255, 0.06);
  --t587: rgba(53, 190, 255, 0.14);
  --t588: rgba(253, 253, 253, 0.02);
  --t589: rgba(253, 253, 253, 0.6);
  --t590: rgba(253, 253, 253, 0.12);
  --t591: rgba(252, 252, 252, 0.8);
  --t592: rgba(0, 0, 0, 0.175);
  --t593: rgba(71, 71, 71, 0.03);
  --t594: rgba(12, 105, 230, 0.55);
  --t595: rgb(212, 2, 2);
  --t596: rgba(253, 253, 254, 0.74);
  --t597: rgb(22, 98, 222);
  --t598: rgb(15, 102, 244);
  --t599: rgb(196, 36, 18);
  --t600: rgba(74, 171, 55, 0.7);
  --t601: rgba(98, 206, 77, 0.14);
  --t602: rgba(251, 251, 251, 0.92);
  --t603: rgb(26, 126, 255);
  --t604: rgb(80, 40, 255);
  --t605: rgba(23, 36, 51, 0.62);
  --t606: rgba(0, 6, 14, 0.92);
  --t607: rgba(252, 252, 252, 0.28);
  --t608: rgba(244, 50, 50, 0.24);
  --t609: rgba(180, 50, 60, 0.18);
  --t610: rgba(0, 6, 14, 0.94);
  --t611: rgba(0, 6, 14, 0.9);
  --t612: rgb(26, 128, 255);
  --t613: rgba(252, 252, 252, 0.32);
  --t614: rgba(71, 187, 245, 0.28);
  --t615: rgba(102, 204, 255, 0.26);
  --t616: rgb(0, 29, 40);
  --t617: rgba(0, 6, 14, 0.95);
  --t618: rgba(23, 36, 51, 0.68);
  --t619: rgba(23, 36, 51, 0.54);
  --t620: rgb(26, 128, 255);
  --t621: rgba(32, 60, 96, 0.0525);
  --t622: rgba(15, 27, 39, 0.82);
  --t623: rgba(69, 138, 245, 0.16);
  --t624: rgba(252, 252, 253, 0.28);
  --t625: rgba(252, 252, 252, 0.24);
  --t626: rgba(48, 62, 81, 0.72);
  --t627: rgba(102, 162, 255, 0.08);
  --t628: rgba(48, 62, 81, 0.76);
  --t629: rgba(48, 62, 81, 0.48);
  --t630: rgba(69, 138, 245, 0.15);
  --t631: rgba(252, 252, 253, 0.34);
  --t632: rgba(48, 62, 81, 0.72);
  --t633: rgba(15, 27, 39, 0.64);
  --t634: rgb(0, 7, 16);
  --t635: rgba(32, 57, 96, 0.056);
  --t636: rgba(187, 43, 43, 0.2);
  --t637: rgb(214, 7, 0);
  --t638: rgba(93, 35, 35, 0.098);
  --t639: rgba(204, 90, 26, 0.2);
  --t640: rgb(214, 157, 0);
  --t641: rgba(45, 185, 100, 0.2);
  --t642: rgb(41, 173, 75);
  --t643: rgba(42, 86, 58, 0.084);
  --t644: rgba(82, 88, 96, 0.62);
  --t645: rgb(71, 219, 123);
  --t646: rgba(42, 85, 58, 0.112);
  --t647: rgba(252, 252, 253, 0.36);
  --t648: rgba(15, 27, 39, 0.72);
  --t649: rgba(44, 124, 244, 0.42);
  --t650: rgb(42, 172, 60);
  --t651: rgb(207, 119, 8);
  --t652: rgb(214, 25, 0);
  --t653: rgba(69, 75, 82, 0.12);
  --t654: rgba(182, 189, 195, 0.22);
  --t655: rgba(74, 171, 55, 0.34);
  --t656: rgba(12, 105, 230, 0.34);
  --t657: rgba(255, 73, 61, 0.14);
  --t658: rgba(240, 27, 13, 0.34);
  --t659: rgba(182, 189, 195, 0.28);
  --t660: rgba(13, 17, 23, 0.084);
  --t661: rgba(214, 18, 0, 0.82);
  --t662: rgba(72, 88, 105, 0.38);
  --t663: rgba(182, 188, 195, 0.22);
  --t664: rgba(250, 251, 251, 0.28);
  --t665: rgba(44, 124, 244, 0.48);
  --t666: rgba(182, 188, 195, 0.24);
  --t667: rgba(15, 27, 39, 0.6);
  --t668: rgba(214, 159, 15, 0.34);
  --t669: rgba(204, 90, 26, 0.12);
  --t670: rgb(214, 171, 0);
  --t671: rgba(182, 188, 195, 0.2);
  --t672: rgba(15, 27, 39, 0.55);
  --t673: rgba(15, 27, 39, 0.5);
  --t674: rgba(48, 62, 81, 0.5);
  --t675: rgba(48, 62, 81, 0.62);
  --t676: rgba(252, 252, 253, 0.52);
  --t677: rgba(12, 105, 230, 0.58);
  --t678: rgba(251, 252, 252, 0.72);
  --t679: rgba(0, 0, 0, 0.6);
  --t680: rgba(215, 129, 11, 0.72);
  --t681: rgba(96, 69, 32, 0.084);
  --t682: rgba(98, 206, 77, 0.08);
  --t683: rgba(215, 129, 11, 0.34);
  --t684: rgba(71, 71, 71, 0.025);
  --t685: rgba(251, 252, 252, 0.52);
  --t686: rgba(215, 129, 11, 0.45);
  --t687: rgba(240, 27, 13, 0.5);
  --t688: rgba(22, 157, 112, 0.42);
  --t689: rgba(96, 69, 32, 0.112);
  --t690: rgba(251, 252, 252, 0.42);
  --t691: rgba(240, 27, 13, 0.52);
  --t692: rgba(96, 36, 32, 0.273);
  --t693: rgba(215, 129, 11, 0.5);
  --t694: rgba(96, 69, 32, 0.273);
  --t695: rgba(249, 250, 250, 0.8);
  --t696: rgba(250, 251, 251, 0.78);
  --t697: rgba(209, 135, 9, 0.86);
  --t698: rgba(255, 193, 48, 0.92);
  --t699: rgba(2, 110, 255, 0.9);
  --t700: rgba(37, 181, 163, 0.9);
  --t701: rgba(81, 88, 96, 0.78);
  --t702: rgba(150, 51, 255, 0.78);
  --t703: rgb(31, 43, 56);
  --t704: rgba(252, 252, 252, 0.54);
  --t705: rgb(55, 69, 85);
  --t706: rgba(69, 138, 245, 0.22);
  --t707: rgba(252, 252, 253, 0.38);
  --t708: rgba(4, 12, 21, 0.92);
  --t709: rgba(71, 71, 71, 0.012);
  --t710: rgba(251, 251, 251, 0.74);
  --t711: rgb(0, 138, 214);
  --t712: rgba(253, 253, 253, 0.72);
  --t713: rgba(26, 38, 53, 0.9);
  --t714: rgba(0, 8, 17, 0.94);
  --t715: rgba(12, 155, 234, 0.72);
  --t716: rgba(53, 183, 255, 0.14);
  --t717: rgb(7, 167, 255);
  --t718: rgb(0, 107, 214);
  --t719: rgba(13, 126, 239, 0.72);
  --t720: rgba(71, 71, 71, 0.032);
  --t721: rgba(71, 71, 71, 0.01);
  --t722: rgba(251, 252, 252, 0.72);
  --t723: rgba(69, 138, 245, 0.13);
  --t724: rgba(4, 12, 21, 0.94);
  --t725: rgb(250, 250, 250);
  --t726: rgba(44, 124, 244, 0.72);
  --t727: rgba(47, 136, 255, 0.065);
  --t728: rgba(32, 57, 96, 0.042);
  --t729: rgba(32, 57, 96, 0.035);
  --t730: rgba(32, 57, 96, 0.217);
  --t731: rgba(32, 57, 96, 0.07);
  --t732: rgba(32, 57, 96, 0.063);
  --t733: rgba(32, 57, 96, 0.308);
  --t734: rgba(32, 57, 96, 0.259);
  --t735: rgba(69, 138, 245, 0.36);
  --t736: rgba(15, 27, 39, 0.52);
  --t737: rgba(102, 162, 255, 0.045);
  --t738: rgba(47, 136, 255, 0.075);
  --t739: rgba(252, 252, 253, 0.4);
  --t740: rgba(15, 27, 39, 0.54);
  --t741: rgba(242, 181, 56, 0.035);
  --t742: rgba(242, 181, 56, 0.055);
  --t743: rgba(213, 152, 25, 0.18);
  --t744: rgba(92, 73, 36, 0.175);
  --t745: rgba(243, 162, 58, 0.13);
  --t746: rgba(216, 132, 24, 0.36);
  --t747: rgba(69, 75, 82, 0.08);
  --t748: rgba(55, 75, 96, 0.62);
  --t749: rgba(0, 5, 14, 0.94);
  --t750: rgba(182, 188, 195, 0.7);
  --t751: rgba(44, 124, 244, 0.9);
  --t752: rgb(250, 250, 251);
  --t753: rgba(182, 189, 195, 0.3);
  --t754: rgba(5, 9, 14, 0.147);
  --t755: rgba(243, 162, 58, 0.12);
  --t756: rgba(216, 132, 24, 0.38);
  --t757: rgb(208, 126, 6);
  --t758: rgba(240, 27, 13, 0.35);
  --t759: rgba(44, 124, 244, 0.4);
  --t760: rgb(0, 89, 214);
  --t761: rgba(219, 101, 11, 0.12);
  --t762: rgba(165, 95, 13, 0.35);
  --t763: rgba(250, 250, 251, 0.92);
  --t764: rgba(165, 95, 13, 0.86);
  --t765: rgb(214, 171, 0);
  --t766: rgba(214, 171, 0, 0.86);
  --t767: rgba(219, 101, 11, 0.1);
  --t768: rgba(165, 95, 13, 0.72);
  --t769: rgba(223, 122, 6, 0.18);
  --t770: rgba(187, 124, 17, 0.9);
  --t771: rgb(36, 28, 0);
  --t772: rgba(187, 124, 17, 0.72);
  --t773: rgba(102, 163, 255, 0.14);
  --t774: rgba(44, 124, 244, 0.46);
  --t775: rgba(0, 83, 214, 0.96);
  --t776: rgba(15, 27, 39, 0.62);
  --t777: rgba(209, 149, 5, 0.92);
  --t778: rgba(48, 62, 81, 0.7);
  --t779: rgba(0, 5, 14, 0.9);
  --t780: rgba(48, 62, 81, 0.4);
  --t781: rgba(15, 27, 39, 0.88);
  --t782: rgba(48, 62, 81, 0.6);
  --t783: rgba(189, 189, 189, 0.18);
  --t784: rgba(253, 253, 253, 0.6);
  --t785: rgba(0, 5, 14, 0.95);
  --t786: rgba(15, 27, 39, 0.9);
  --t787: rgba(44, 124, 244, 0.5);
  --t788: rgba(0, 95, 214, 0.86);
  --t789: rgba(34, 72, 196, 0.12);
  --t790: rgba(69, 138, 245, 0.78);
  --t791: rgba(32, 59, 96, 0.042);
  --t792: rgba(69, 138, 245, 0.8);
  --t793: rgba(48, 62, 81, 0.38);
  --t794: rgba(15, 27, 39, 0.68);
  --t795: rgba(235, 54, 54, 0.48);
  --t796: rgb(214, 0, 0);
  --t797: rgba(187, 43, 43, 0.18);
  --t798: rgba(235, 54, 54, 0.85);
  --t799: rgb(29, 1, 1);
  --t800: rgba(220, 38, 38, 0.32);
  --t801: rgba(93, 35, 35, 0.063);
  --t802: rgba(214, 159, 15, 0.42);
  --t803: rgba(204, 90, 26, 0.16);
  --t804: rgba(57, 164, 129, 0.44);
  --t805: rgb(25, 189, 131);
  --t806: rgba(45, 185, 100, 0.16);
  --t807: rgba(115, 74, 238, 0.18);
  --t808: rgba(30, 40, 52, 0.78);
  --t809: rgba(250, 251, 251, 0.18);
  --t810: rgba(182, 188, 195, 0.18);
  --t811: rgba(30, 40, 52, 0.76);
  --t812: rgba(115, 74, 238, 0.56);
  --t813: rgb(8, 1, 41);
  --t814: rgba(67, 56, 202, 0.16);
  --t815: rgba(110, 75, 241, 0.76);
  --t816: rgba(124, 58, 237, 0.16);
  --t817: rgba(57, 37, 90, 0.049);
  --t818: rgba(57, 37, 90, 0.035);
  --t819: rgb(2, 0, 12);
  --t820: rgb(0, 95, 214);
  --t821: rgba(45, 1, 214, 0.58);
  --t822: rgba(57, 164, 129, 0.52);
  --t823: rgba(45, 217, 190, 0.72);
  --t824: rgba(23, 207, 187, 0.15);
  --t825: rgba(38, 89, 84, 0.049);
  --t826: rgba(38, 89, 84, 0.035);
  --t827: rgb(0, 39, 28);
  --t828: rgba(69, 138, 245, 0.46);
  --t829: rgba(34, 72, 196, 0.14);
  --t830: rgba(13, 17, 23, 0.077);
  --t831: rgba(69, 138, 245, 0.76);
  --t832: rgba(102, 162, 255, 0.13);
  --t833: rgba(32, 57, 96, 0.049);
  --t834: rgba(251, 251, 250, 0.78);
  --t835: rgba(253, 253, 253, 0.76);
  --t836: rgba(37, 128, 244, 0.22);
  --t837: rgba(253, 253, 253, 0.64);
  --t838: rgba(57, 154, 245, 0.28);
  --t839: rgba(250, 251, 251, 0.96);
  --t840: rgba(253, 253, 253, 0.98);
  --t841: rgba(91, 142, 194, 0.18);
  --t842: rgba(253, 253, 253, 0.72);
  --t843: rgba(189, 189, 189, 0.11);
  --t844: rgba(42, 164, 149, 0.32);
  --t845: rgba(45, 212, 191, 0.08);
  --t846: rgba(215, 129, 11, 0.38);
  --t847: rgba(243, 154, 23, 0.52);
  --t848: rgba(255, 159, 28, 0.16);
  --t849: rgb(214, 150, 0);
  --t850: rgba(245, 72, 62, 0.58);
  --t851: rgba(255, 73, 61, 0.18);
  --t852: rgb(41, 3, 0);
  --t853: rgba(243, 154, 23, 0.82);
  --t854: rgba(255, 159, 28, 0.18);
  --t855: rgba(96, 69, 32, 0.056);
  --t856: rgba(96, 69, 32, 0.035);
  --t857: rgba(240, 27, 13, 0.58);
  --t858: rgba(243, 47, 36, 0.86);
  --t859: rgba(96, 36, 32, 0.056);
  --t860: rgba(96, 36, 32, 0.042);
  --t861: rgba(91, 142, 194, 0.14);
  --t862: rgba(56, 69, 85, 0.62);
  --t863: rgba(215, 129, 11, 0.36);
  --t864: rgba(253, 253, 253, 0);
  --t865: rgb(253, 253, 253);
  --t866: rgba(96, 69, 32, 0.252);
  --t867: rgba(240, 27, 13, 0.42);
  --t868: rgba(255, 73, 61, 0.09);
  --t869: rgba(96, 36, 32, 0.266);
  --t870: rgba(30, 40, 52, 0.82);
  --t871: rgba(91, 142, 194, 0.22);
  --t872: rgba(12, 105, 230, 0.74);
  --t873: rgba(91, 142, 194, 0.13);
  --t874: rgba(66, 71, 77, 0.34);
  --t875: rgba(66, 71, 77, 0.11);
  --t876: rgba(34, 143, 255, 0.7);
  --t877: rgba(81, 206, 58, 0.9);
  --t878: rgba(32, 67, 96, 0.063);
  --t879: rgba(255, 164, 27, 0.95);
  --t880: rgba(34, 143, 255, 0.65);
  --t881: rgba(249, 108, 0, 0.95);
  --t882: rgba(255, 179, 39, 0.9);
  --t883: rgba(96, 69, 32, 0.091);
  --t884: rgba(88, 96, 104, 0.17);
  --t885: rgba(46, 64, 82, 0.014);
  --t886: rgba(46, 144, 255, 0.98);
  --t887: rgba(19, 101, 217, 0.78);
  --t888: rgba(32, 61, 96, 0.0805);
  --t889: rgba(30, 40, 52, 0.72);
  --t890: rgba(215, 129, 11, 0.58);
  --t891: rgba(255, 163, 27, 0.98);
  --t892: rgba(249, 108, 0, 0.8);
  --t893: rgba(12, 105, 230, 0.22);
  --t894: rgba(47, 136, 255, 0.055);
  --t895: rgba(253, 253, 253, 0.34);
  --t896: rgba(215, 129, 11, 0.78);
  --t897: rgba(96, 69, 32, 0.063);
  --t898: rgb(0, 19, 40);
  --t899: rgb(252, 252, 253);
  --t900: rgb(66, 71, 77);
  --t901: rgba(32, 64, 96, 0.105);
  --t902: rgba(52, 82, 46, 0.161);
  --t903: rgba(96, 76, 32, 0.189);
  --t904: rgba(96, 36, 32, 0.203);
  --t905: rgba(253, 253, 253, 0.9);
  --t906: rgba(91, 142, 194, 0.16);
  --t907: rgba(252, 252, 253, 0.8);
  --t908: rgb(0, 10, 23);
  --t909: rgba(66, 70, 77, 0.94);
  --t910: rgba(32, 55, 96, 0.217);
  --t911: rgba(66, 70, 77, 0.96);
  --t912: rgba(255, 255, 255, 0.24);
  --t913: rgba(96, 166, 255, 0.18);
  --t914: rgba(253, 253, 253, 0.78);
  --t915: rgba(255, 255, 255, 0.24);
  --t916: rgba(251, 251, 252, 0.92);
  --t917: rgba(253, 253, 253, 0.74);
  --t918: rgba(37, 54, 75, 0.82);
  --t919: rgba(182, 188, 195, 0.35);
  --t920: rgba(254, 254, 254, 0.86);
  --t921: rgba(71, 153, 245, 0.2);
  --t922: rgba(71, 71, 71, 0.07);
  --t923: rgba(255, 255, 255, 0.18);
  --t924: rgba(254, 254, 254, 0.5);
  --t925: rgba(5, 13, 23, 0.86);
  --t926: rgba(189, 189, 189, 0.54);
  --t927: rgba(189, 189, 189, 0.82);
  --t928: rgba(71, 153, 245, 0.38);
  --t929: rgba(189, 189, 189, 0.6);
  --t930: rgba(189, 189, 189, 0.86);
  --t931: rgb(49, 206, 255);
  --t932: rgb(2, 133, 255);
  --t933: rgba(32, 65, 96, 0.126);
  --t934: rgb(255, 184, 50);
  --t935: rgb(255, 116, 14);
  --t936: rgba(96, 64, 32, 0.119);
  --t937: rgb(226, 237, 249);
  --t938: rgba(0, 101, 214, 0.36);
  --t939: rgb(17, 122, 197);
  --t940: rgb(148, 98, 45);
  --t941: rgba(0, 3, 5, 0.92);
  --t942: rgba(0, 0, 0, 0.78);
  --t943: rgba(0, 0, 0, 0.86);
  --t944: rgba(238, 246, 253, 0.18);
  --t945: rgba(0, 0, 0, 0.82);
  --t946: rgb(200, 209, 5);
  --t947: rgba(243, 246, 233, 0.72);
  --t948: rgba(238, 246, 253, 0.42);
  --t949: rgba(19, 35, 53, 0.72);
  --t950: rgb(0, 8, 17);
  --t951: rgba(253, 253, 253, 0.68);
  --t952: rgba(139, 178, 217, 0.3);
  --t953: rgba(91, 142, 194, 0.2);
  --t954: rgba(253, 253, 253, 0.7);
  --t955: rgba(253, 253, 253, 0.62);
  --t956: rgb(251, 251, 252);
  --t957: rgba(241, 248, 254, 0.72);
  --t958: rgb(214, 131, 0);
  --t959: rgb(189, 189, 189);
  --t960: rgba(4, 8, 11, 0.168);
  --t961: rgb(51, 173, 75);
  --t962: rgb(236, 49, 35);
  --t963: rgb(30, 88, 187);
  --t964: rgba(241, 248, 254, 0.55);
  --t965: rgba(71, 71, 71, 0.9);
  --t966: rgb(204, 214, 224);
  --t967: rgba(251, 251, 251, 0.7);
  --t968: rgba(254, 254, 254, 0.72);
  --t969: rgba(253, 253, 253, 0.88);
  --t970: rgba(253, 253, 253, 0.82);
  --t971: rgb(0, 97, 214);
  --t972: rgb(0, 99, 214);
  --t973: rgba(21, 120, 243, 0.42);
  --t974: rgba(0, 97, 214, 0.36);
  --t975: rgb(0, 102, 214);
  --t976: rgba(254, 254, 254, 0.58);
  --t977: rgba(253, 253, 253, 0.62);
  --t978: rgba(0, 8, 19, 0.84);
  --t979: rgba(21, 120, 243, 0.82);
  --t980: rgba(2, 110, 255, 0.78);
  --t981: rgba(21, 120, 243, 0.92);
  --t982: rgba(96, 36, 32, 0.133);
  --t983: rgba(241, 139, 0, 0.92);
  --t984: rgba(215, 129, 11, 0.62);
  --t985: rgba(244, 183, 42, 0.92);
  --t986: rgba(255, 159, 28, 0.26);
  --t987: rgba(21, 120, 243, 0.68);
  --t988: rgba(47, 136, 255, 0.17);
  --t989: rgb(0, 91, 214);
  --t990: rgba(240, 27, 13, 0.78);
  --t991: rgba(255, 73, 61, 0.22);
  --t992: rgba(139, 178, 217, 0.18);
  --t993: rgba(139, 178, 217, 0.28);
  --t994: rgba(30, 40, 52, 0.62);
  --t995: rgb(66, 70, 77);
  --t996: rgba(32, 55, 96, 0.252);
  --t997: rgba(13, 116, 240, 0.95);
  --t998: rgb(66, 71, 77);
  --t999: rgba(32, 61, 96, 0.252);
  --t1000: rgb(0, 97, 214);
  --t1001: rgba(0, 97, 214, 0.32);
  --t1002: rgba(253, 253, 253, 0.42);
  --t1003: rgba(12, 23, 35, 0.9);
  --t1004: rgba(139, 178, 217, 0.26);
  --t1005: rgba(30, 133, 243, 0.64);
  --t1006: rgba(47, 136, 255, 0.3);
  --t1007: rgba(88, 208, 255, 0.13);
  --t1008: rgba(252, 252, 252, 0.82);
  --t1009: rgb(0, 8, 12);
  --t1010: rgba(64, 64, 64, 0.035);
  --t1011: rgba(32, 78, 96, 0.042);
  --t1012: rgb(0, 152, 214);
  --t1013: rgba(31, 184, 243, 0.24);
  --t1014: rgba(56, 190, 245, 0.86);
  --t1015: rgba(47, 136, 255, 0.44);
  --t1016: rgba(88, 208, 255, 0.18);
  --t1017: rgba(251, 251, 251, 0.92);
  --t1018: rgba(64, 64, 64, 0.049);
  --t1019: rgba(32, 78, 96, 0.084);
  --t1020: rgba(56, 190, 245, 0.96);
  --t1021: rgba(0, 105, 252, 0.62);
  --t1022: rgba(88, 208, 255, 0.24);
  --t1023: rgba(251, 251, 251, 0.98);
  --t1024: rgba(64, 64, 64, 0.063);
  --t1025: rgba(32, 77, 96, 0.196);
  --t1026: rgba(32, 77, 96, 0.084);
  --t1027: rgba(32, 58, 96, 0.147);
  --t1028: rgba(91, 142, 194, 0.38);
  --t1029: rgba(31, 184, 243, 0.36);
  --t1030: rgba(32, 78, 96, 0.028);
  --t1031: rgba(47, 136, 255, 0.28);
  --t1032: rgba(88, 208, 255, 0.16);
  --t1033: rgba(29, 72, 124, 0.98);
  --t1034: rgba(253, 253, 253, 0.97);
  --t1035: rgba(253, 253, 253, 0.94);
  --t1036: rgba(32, 77, 96, 0.301);
  --t1037: rgba(56, 190, 245, 0.17);
  --t1038: rgba(88, 208, 255, 0.09);
  --t1039: rgb(0, 4, 11);
  --t1040: rgba(0, 154, 214, 0.22);
  --t1041: rgba(71, 71, 71, 0.058);
  --t1042: rgba(71, 71, 71, 0.028);
  --t1043: rgba(252, 252, 252, 0.56);
  --t1044: rgba(64, 64, 64, 0.0175);
  --t1045: rgb(0, 9, 21);
  --t1046: rgba(91, 142, 194, 0.1);
  --t1047: rgba(253, 253, 254, 0.34);
  --t1048: rgb(42, 56, 72);
  --t1049: rgba(254, 254, 254, 0.36);
  --t1050: rgba(12, 23, 35, 0.46);
  --t1051: rgba(189, 189, 189, 0.56);
  --t1052: rgba(71, 71, 71, 0.14);
  --t1053: rgb(189, 189, 189);
  --t1054: rgba(6, 9, 12, 0.336);
  --t1055: rgba(32, 59, 96, 0.203);
  --t1056: rgba(0, 0, 0, 0.147);
  --t1057: rgba(189, 189, 189, 0.92);
  --t1058: rgba(91, 142, 194, 0.24);
  --t1059: rgba(254, 254, 254, 0.78);
  --t1060: rgba(254, 254, 254, 0.9);
  --t1061: rgb(214, 124, 0);
  --t1062: rgba(69, 138, 245, 0.5);
  --t1063: rgb(0, 9, 18);
  --t1064: rgb(61, 78, 96);
  --t1065: rgb(51, 163, 157);
  --t1066: rgba(139, 178, 217, 0.11);
  --t1067: rgb(7, 22, 39);
  --t1068: rgb(70, 89, 109);
  --t1069: rgba(225, 171, 24, 0.34);
  --t1070: rgb(214, 152, 0);
  --t1071: rgba(245, 197, 66, 0.08);
  --t1072: rgba(91, 142, 194, 0.12);
  --t1073: rgba(71, 71, 71, 0.026);
  --t1074: rgba(71, 71, 71, 0.034);
  --t1075: rgba(42, 164, 149, 0.46);
  --t1076: rgb(30, 44, 59);
  --t1077: rgba(12, 23, 35, 0.74);
  --t1078: rgba(244, 63, 49, 0.42);
  --t1079: rgba(255, 73, 61, 0.1);
  --t1080: rgb(214, 14, 0);
  --t1081: rgba(27, 119, 243, 0.74);
  --t1082: rgba(82, 156, 255, 0.18);
  --t1083: rgb(0, 10, 24);
  --t1084: rgba(27, 119, 243, 0.46);
  --t1085: rgba(42, 73, 111, 0.98);
  --t1086: rgba(251, 251, 251, 0.98);
  --t1087: rgb(0, 7, 17);
  --t1088: rgb(39, 73, 114);
  --t1089: rgb(0, 3, 9);
  --t1090: rgb(35, 52, 72);
  --t1091: rgb(37, 53, 70);
  --t1092: rgba(91, 142, 194, 0.3);
  --t1093: rgb(9, 21, 35);
  --t1094: rgb(69, 90, 112);
  --t1095: rgba(91, 142, 194, 0.26);
  --t1096: rgba(253, 253, 253, 0.48);
  --t1097: rgb(28, 42, 57);
  --t1098: rgba(27, 119, 243, 0.7);
  --t1099: rgb(0, 5, 12);
  --t1100: rgba(27, 119, 243, 0.88);
  --t1101: rgb(34, 101, 180);
  --t1102: rgba(64, 64, 64, 0.056);
  --t1103: rgba(253, 253, 253, 0.22);
  --t1104: rgba(27, 119, 243, 0.72);
  --t1105: rgba(40, 119, 212, 0.08);
  --t1106: rgba(91, 142, 194, 0.28);
  --t1107: rgba(253, 253, 254, 0.68);
  --t1108: rgb(2, 7, 13);
  --t1109: rgba(27, 119, 243, 0.86);
  --t1110: rgba(32, 59, 96, 0.049);
  --t1111: rgba(244, 48, 38, 0.88);
  --t1112: rgb(16, 36, 59);
  --t1113: rgb(46, 63, 81);
  --t1114: rgba(46, 63, 81, 0.42);
  --t1115: rgba(91, 142, 194, 0.17);
  --t1116: rgba(253, 253, 253, 0.4);
  --t1117: rgba(224, 155, 24, 0.36);
  --t1118: rgba(212, 134, 17, 0.2);
  --t1119: rgba(224, 155, 24, 0.58);
  --t1120: rgb(214, 140, 0);
  --t1121: rgb(28, 42, 56);
  --t1122: rgb(0, 14, 35);
  --t1123: rgba(91, 142, 194, 0.15);
  --t1124: rgba(253, 253, 253, 0.34);
  --t1125: rgba(27, 119, 243, 0.6);
  --t1126: rgba(82, 156, 255, 0.1);
  --t1127: rgb(57, 76, 96);
  --t1128: rgb(69, 89, 110);
  --t1129: rgba(255, 105, 97, 0.12);
  --t1130: rgb(214, 14, 0);
  --t1131: rgb(251, 251, 251);
  --t1132: rgb(42, 172, 134);
  --t1133: rgba(42, 164, 149, 0.72);
  --t1134: rgba(252, 252, 253, 0.95);
  --t1135: rgba(42, 164, 149, 0.68);
  --t1136: rgb(0, 39, 34);
  --t1137: rgba(253, 253, 253, 0.44);
  --t1138: rgba(12, 23, 35, 0.88);
  --t1139: rgba(45, 217, 190, 0.38);
  --t1140: rgba(45, 217, 190, 0.54);
  --t1141: rgba(45, 212, 191, 0.14);
  --t1142: rgba(71, 71, 71, 0.018);
  --t1143: rgb(37, 181, 163);
  --t1144: rgba(43, 85, 79, 0.042);
  --t1145: rgba(240, 27, 13, 0.72);
  --t1146: rgba(45, 217, 190, 0.5);
  --t1147: rgba(45, 212, 191, 0.13);
  --t1148: rgb(0, 22, 18);
  --t1149: rgba(45, 217, 190, 0.76);
  --t1150: rgba(45, 212, 191, 0.2);
  --t1151: rgba(45, 212, 191, 0.16);
  --t1152: rgba(45, 217, 190, 0.95);
  --t1153: rgba(37, 181, 163, 0.72);
  --t1154: rgba(12, 141, 129, 0.62);
  --t1155: rgba(43, 85, 79, 0.077);
  --t1156: rgb(0, 19, 15);
  --t1157: rgb(85, 231, 203);
  --t1158: rgba(30, 225, 202, 0.82);
  --t1159: rgba(12, 141, 129, 0.72);
  --t1160: rgb(16, 198, 176);
  --t1161: rgb(214, 0, 0);
  --t1162: rgb(0, 214, 183);
  --t1163: rgba(45, 217, 190, 0.52);
  --t1164: rgba(94, 234, 212, 0.06);
  --t1165: rgba(244, 63, 49, 0.34);
  --t1166: rgb(214, 13, 0);
  --t1167: rgba(244, 63, 49, 0.72);
  --t1168: rgb(17, 2, 0);
  --t1169: rgba(33, 45, 60, 0.88);
  --t1170: rgb(0, 3, 7);
  --t1171: rgba(74, 171, 55, 0.46);
  --t1172: rgba(52, 178, 91, 0.42);
  --t1173: rgba(252, 252, 252, 0.76);
  --t1174: rgba(98, 206, 77, 0.24);
  --t1175: rgb(7, 39, 0);
  --t1176: rgba(215, 129, 11, 0.52);
  --t1177: rgba(208, 126, 22, 0.42);
  --t1178: rgba(252, 252, 252, 0.76);
  --t1179: rgba(255, 159, 28, 0.25);
  --t1180: rgb(214, 133, 0);
  --t1181: rgba(184, 51, 45, 0.44);
  --t1182: rgba(252, 252, 252, 0.76);
  --t1183: rgba(255, 73, 61, 0.24);
  --t1184: rgb(38, 4, 0);
  --t1185: rgba(139, 178, 217, 0.14);
  --t1186: rgba(33, 45, 60, 0.76);
  --t1187: rgba(12, 23, 35, 0.52);
  --t1188: rgba(91, 142, 194, 0.11);
  --t1189: rgba(71, 71, 71, 0.014);
  --t1190: rgba(45, 217, 190, 0.42);
  --t1191: rgba(94, 234, 212, 0.07);
  --t1192: rgba(45, 217, 190, 0.34);
  --t1193: rgb(0, 36, 31);
  --t1194: rgba(42, 164, 149, 0.42);
  --t1195: rgba(45, 212, 191, 0.18);
  --t1196: rgb(0, 214, 184);
  --t1197: rgba(139, 178, 217, 0.05);
  --t1198: rgba(12, 23, 35, 0.72);
  --t1199: rgba(33, 45, 60, 0.86);
  --t1200: rgba(45, 217, 190, 0.16);
  --t1201: rgba(45, 212, 191, 0.04);
  --t1202: rgba(71, 71, 71, 0.022);
  --t1203: rgba(74, 171, 55, 0.26);
  --t1204: rgba(42, 164, 149, 0.3);
  --t1205: rgba(215, 129, 11, 0.3);
  --t1206: rgba(45, 217, 190, 0.28);
  --t1207: rgba(39, 88, 81, 0.049);
  --t1208: rgba(94, 234, 212, 0.09);
  --t1209: rgba(94, 234, 212, 0.14);
  --t1210: rgba(39, 88, 81, 0.273);
  --t1211: rgb(6, 44, 0);
  --t1212: rgb(214, 140, 0);
  --t1213: rgba(251, 251, 251, 0.72);
  --t1214: rgba(254, 254, 254, 0.74);
  --t1215: rgba(30, 40, 52, 0.74);
  --t1216: rgba(76, 95, 114, 0.52);
  --t1217: rgba(71, 71, 71, 0.008);
  --t1218: rgba(252, 252, 253, 0.58);
  --t1219: rgba(255, 159, 28, 0.15);
  --t1220: rgba(42, 164, 149, 0.55);
  --t1221: rgba(43, 85, 79, 0.0875);
  --t1222: rgb(27, 40, 54);
  --t1223: rgb(39, 54, 71);
  --t1224: rgba(189, 189, 189, 0.1);
  --t1225: rgba(253, 253, 254, 0.28);
  --t1226: rgba(253, 253, 254, 0.3);
  --t1227: rgb(17, 26, 35);
  --t1228: rgba(249, 249, 250, 0.82);
  --t1229: rgba(249, 249, 250, 0.88);
  --t1230: rgba(213, 152, 25, 0.38);
  --t1231: rgba(213, 152, 25, 0.88);
  --t1232: rgba(251, 252, 252, 0.92);
  --t1233: rgba(213, 152, 25, 0.48);
  --t1234: rgb(205, 158, 9);
  --t1235: rgba(242, 181, 56, 0.09);
  --t1236: rgb(4, 7, 11);
  --t1237: rgba(10, 17, 26, 0.84);
  --t1238: rgba(46, 60, 76, 0.82);
  --t1239: rgba(45, 212, 191, 0.035);
  --t1240: rgba(253, 253, 253, 0.92);
  --t1241: rgba(253, 253, 253, 0.48);
  --t1242: rgba(74, 171, 55, 0.36);
  --t1243: rgba(42, 187, 109, 0.2);
  --t1244: rgba(253, 253, 253, 0.6);
  --t1245: rgba(215, 129, 11, 0.26);
  --t1246: rgba(197, 130, 33, 0.13);
  --t1247: rgba(253, 253, 253, 0.56);
  --t1248: rgba(240, 27, 13, 0.3);
  --t1249: rgba(181, 49, 49, 0.15);
  --t1250: rgba(42, 187, 109, 0.12);
  --t1251: rgba(197, 130, 33, 0.12);
  --t1252: rgba(240, 27, 13, 0.38);
  --t1253: rgba(181, 49, 49, 0.14);
  --t1254: rgba(250, 250, 250, 0.72);
  --t1255: rgba(253, 253, 253, 0.72);
  --t1256: rgba(253, 253, 253, 0.64);
  --t1257: rgba(102, 167, 255, 0.12);
  --t1258: rgba(102, 167, 255, 0.1);
  --t1259: rgba(250, 250, 251, 0.94);
  --t1260: rgba(252, 252, 253, 0.94);
  --t1261: rgba(252, 252, 252, 0.98);
  --t1262: rgba(74, 189, 52, 0.8);
  --t1263: rgba(255, 29, 14, 0.76);
  --t1264: rgba(51, 131, 255, 0.86);
  --t1265: rgba(74, 189, 52, 0.72);
  --t1266: rgba(102, 162, 255, 0.2);
  --t1267: rgba(102, 162, 255, 0);
  --t1268: rgba(214, 159, 15, 0.36);
  --t1269: rgba(242, 208, 71, 0.34);
  --t1270: rgba(37, 50, 69, 0.84);
  --t1271: rgba(251, 251, 251, 0.72);
  --t1272: rgba(253, 253, 253, 0.62);
  --t1273: rgba(0, 84, 214, 0.96);
  --t1274: rgba(31, 44, 59, 0.84);
  --t1275: rgba(51, 131, 255, 0.72);
  --t1276: rgba(32, 57, 96, 0.126);
  --t1277: rgba(69, 138, 245, 0.14);
  --t1278: rgba(64, 171, 43, 0.9);
  --t1279: rgba(98, 206, 77, 0.12);
  --t1280: rgba(214, 124, 0, 0.92);
  --t1281: rgba(214, 13, 0, 0.94);
  --t1282: rgba(255, 73, 61, 0.13);
  --t1283: rgba(0, 84, 214, 0.92);
  --t1284: rgba(253, 253, 253, 0.28);
  --t1285: rgba(32, 57, 96, 0.028);
  --t1286: rgba(253, 253, 253, 0.42);
  --t1287: rgba(74, 171, 55, 0.3);
  --t1288: rgba(215, 129, 11, 0.28);
  --t1289: rgba(255, 73, 61, 0.11);
  --t1290: rgba(0, 0, 0, 0.98);
  --t1291: rgba(51, 131, 255, 0.62);
  --t1292: rgba(74, 189, 52, 0.9);
  --t1293: rgba(74, 189, 52, 0.82);
  --t1294: rgba(241, 139, 0, 0.96);
  --t1295: rgba(255, 29, 14, 0.96);
  --t1296: rgba(51, 131, 255, 0.82);
  --t1297: rgba(0, 6, 16, 0.96);
  --t1298: rgba(31, 44, 59, 0.82);
  --t1299: rgba(69, 138, 245, 0.12);
  --t1300: rgba(74, 171, 55, 0.22);
  --t1301: rgba(215, 129, 11, 0.2);
  --t1302: rgba(240, 27, 13, 0.24);
  --t1303: rgba(74, 171, 55, 0.2);
  --t1304: rgba(3, 10, 20, 0.95);
  --t1305: rgba(215, 129, 11, 0.32);
  --t1306: rgba(251, 251, 251, 0.4);
  --t1307: rgba(69, 138, 245, 0.55);
  --t1308: rgba(32, 57, 96, 0.287);
  --t1309: rgba(69, 138, 245, 0.85);
  --t1310: rgba(32, 57, 96, 0.1225);
  --t1311: rgba(253, 253, 253, 0.4);
  --t1312: rgba(69, 138, 245, 0.3);
  --t1313: rgba(253, 253, 253, 0.52);
  --t1314: rgba(74, 189, 52, 0.85);
  --t1315: rgba(69, 138, 245, 0.1);
  --t1316: rgba(251, 251, 251, 0.3);
  --t1317: rgba(102, 162, 255, 0.5);
  --t1318: rgba(0, 104, 214, 0.8);
  --t1319: rgb(0, 5, 13);
  --t1320: rgba(102, 162, 255, 0.12);
  --t1321: rgb(255, 199, 17);
  --t1322: rgb(255, 49, 20);
  --t1323: rgb(85, 92, 100);
  --t1324: rgb(23, 35, 50);
  --t1325: rgba(47, 136, 255, 0.26);
  --t1326: rgba(251, 251, 251, 0.42);
  --t1327: rgb(25, 38, 54);
  --t1328: rgba(250, 251, 251, 0.68);
  --t1329: rgba(98, 207, 193, 0.08);
  --t1330: rgba(242, 188, 14, 0.22);
  --t1331: rgba(255, 210, 65, 0.08);
  --t1332: rgb(214, 163, 0);
  --t1333: rgba(243, 168, 18, 0.2);
  --t1334: rgba(255, 194, 71, 0.07);
  --t1335: rgba(250, 251, 251, 0.72);
  --t1336: rgba(252, 252, 252, 0.52);
  --t1337: rgba(254, 254, 254, 0.34);
  --t1338: rgba(254, 254, 254, 0.42);
  --t1339: rgba(250, 251, 251, 0.72);
  --t1340: rgba(102, 162, 255, 0.24);
  --t1341: rgba(253, 253, 253, 0.52);
  --t1342: rgba(74, 171, 55, 0.35);
  --t1343: rgba(255, 159, 28, 0.22);
  --t1344: rgba(250, 251, 251, 0.54);
  --t1345: rgba(253, 253, 253, 0.46);
  --t1346: rgba(74, 171, 55, 0.32);
  --t1347: rgba(64, 166, 87, 0.18);
  --t1348: rgba(242, 188, 14, 0.34);
  --t1349: rgba(194, 133, 36, 0.18);
  --t1350: rgba(166, 64, 77, 0.18);
  --t1351: rgba(254, 254, 254, 0.48);
  --t1352: rgba(47, 167, 152, 0.12);
  --t1353: rgba(47, 167, 152, 0.3);
  --t1354: rgba(226, 237, 249, 0.35);
  --t1355: rgb(85, 0, 214);
  --t1356: rgb(11, 23, 36);
  --t1357: rgb(214, 74, 0);
  --t1358: rgb(221, 232, 244);
  --t1359: rgb(59, 76, 96);
  --t1360: rgba(98, 207, 193, 0.18);
  --t1361: rgba(64, 180, 165, 0.45);
  --t1362: rgb(132, 51, 255);
  --t1363: rgba(64, 180, 165, 0.25);
  --t1364: rgba(98, 207, 193, 0.06);
  --t1365: rgb(47, 167, 152);
  --t1366: rgb(4, 12, 21);
  --t1367: rgb(11, 23, 36);
  --t1368: rgba(254, 254, 254, 0.28);
  --t1369: rgba(7, 10, 14, 0.28);
  --t1370: rgb(214, 27, 0);
  --t1371: rgb(214, 150, 0);
  --t1372: rgba(250, 251, 251, 0.62);
  --t1373: rgba(250, 251, 251, 0.5);
  --t1374: rgb(227, 240, 252);
  --t1375: rgb(68, 88, 112);
  --t1376: rgba(0, 84, 214, 0.13);
  --t1377: rgba(240, 246, 253, 0.42);
  --t1378: rgba(0, 0, 0, 0.06);
  --t1379: rgba(11, 23, 36, 0.32);
  --t1380: rgba(11, 23, 36, 0.11);
  --t1381: rgb(24, 39, 56);
  --t1382: rgb(0, 9, 21);
  --t1383: rgb(198, 78, 16);
  --t1384: rgb(7, 26, 48);
  --t1385: rgb(214, 57, 0);
  --t1386: rgba(11, 23, 36, 0.28);
  --t1387: rgba(255, 100, 44, 0.32);
  --t1388: rgba(240, 246, 253, 0.76);
  --t1389: rgba(0, 84, 214, 0.2);
  --t1390: rgb(214, 64, 0);
  --t1391: rgba(64, 171, 43, 0.72);
  --t1392: rgba(214, 124, 0, 0.72);
  --t1393: rgba(214, 13, 0, 0.72);
  --t1394: rgba(237, 244, 252, 0.92);
  --t1395: rgba(68, 88, 112, 0.58);
  --t1396: rgb(214, 163, 0);
  --t1397: rgb(64, 171, 43);
  --t1398: rgb(214, 136, 0);
  --t1399: rgb(214, 26, 0);
  --t1400: rgb(72, 88, 105);
  --t1401: rgb(0, 4, 11);
  --t1402: rgba(65, 196, 241, 0.34);
  --t1403: rgba(255, 199, 17, 0.34);
  --t1404: rgba(255, 49, 20, 0.38);
  --t1405: rgba(0, 15, 23, 0.48);
  --t1406: rgb(214, 153, 0);
  --t1407: rgba(214, 163, 0, 0.64);
  --t1408: rgb(214, 18, 0);
  --t1409: rgba(214, 26, 0, 0.7);
  --t1410: rgba(64, 171, 43, 0.22);
  --t1411: rgba(214, 136, 0, 0.07);
  --t1412: rgba(214, 26, 0, 0.09);
  --t1413: rgba(64, 171, 43, 0.64);
  --t1414: rgba(0, 5, 8, 0.98);
  --t1415: rgba(0, 15, 23, 0.22);
  --t1416: rgba(15, 27, 42, 0.92);
  --t1417: rgba(58, 186, 231, 0.16);
  --t1418: rgba(112, 211, 245, 0.06);
  --t1419: rgba(250, 251, 251, 0.56);
  --t1420: rgba(98, 206, 77, 0.1);
  --t1421: rgba(242, 188, 14, 0.42);
  --t1422: rgba(255, 210, 65, 0.1);
  --t1423: rgba(242, 45, 17, 0.46);
  --t1424: rgba(255, 92, 69, 0.12);
  --t1425: rgb(255, 171, 25);
  --t1426: rgba(58, 186, 231, 0.22);
  --t1427: rgba(112, 211, 245, 0.08);
  --t1428: rgb(0, 156, 214);
  --t1429: rgba(237, 244, 252, 0.86);
  --t1430: rgba(64, 171, 43, 0.38);
  --t1431: rgb(59, 76, 96);
  --t1432: rgba(221, 224, 227, 0.86);
  --t1433: rgba(74, 171, 55, 0.38);
  --t1434: rgba(98, 206, 77, 0.3);
  --t1435: rgb(255, 204, 51);
  --t1436: rgb(255, 162, 14);
  --t1437: rgb(152, 80, 13);
  --t1438: rgb(255, 84, 51);
  --t1439: rgb(255, 41, 14);
  --t1440: rgb(144, 26, 31);
  --t1441: rgb(182, 187, 195);
  --t1442: rgba(64, 64, 64, 0.098);
  --t1443: rgb(214, 139, 0);
  --t1444: rgb(214, 28, 0);
  --t1445: rgba(250, 251, 251, 0.66);
  --t1446: rgba(182, 187, 195, 0.55);
  --t1447: rgba(64, 64, 64, 0.042);
  --t1448: rgba(242, 45, 17, 0.4);
  --t1449: rgba(74, 171, 55, 0.25);
  --t1450: rgb(47, 192, 22);
  --t1451: rgba(64, 180, 165, 0.22);
  --t1452: rgb(21, 194, 164);
  --t1453: rgba(243, 162, 21, 0.24);
  --t1454: rgba(255, 189, 74, 0.1);
  --t1455: rgba(182, 187, 195, 0.6);
  --t1456: rgba(11, 23, 36, 0.18);
  --t1457: rgba(11, 23, 36, 0.12);
  --t1458: rgb(10, 155, 204);
  --t1459: rgba(65, 196, 241, 0.18);
  --t1460: rgb(214, 27, 0);
  --t1461: rgb(214, 150, 0);
  --t1462: rgb(0, 13, 21);
  --t1463: rgba(243, 162, 21, 0.22);
  --t1464: rgba(255, 189, 74, 0.08);
  --t1465: rgb(255, 194, 51);
  --t1466: rgb(65, 196, 241);
  --t1467: rgba(65, 196, 241, 0.16);
  --t1468: rgba(214, 136, 0, 0.42);
  --t1469: rgba(214, 150, 0, 0.86);
  --t1470: rgba(227, 239, 251, 0.92);
  --t1471: rgba(214, 150, 0, 0.74);
  --t1472: rgba(214, 163, 0, 0.18);
  --t1473: rgb(0, 4, 8);
  --t1474: rgba(243, 162, 21, 0.18);
  --t1475: rgba(255, 189, 74, 0.07);
  --t1476: rgba(243, 162, 21, 0.13);
  --t1477: rgb(0, 100, 214);
  --t1478: rgba(32, 55, 96, 0.077);
  --t1479: rgb(8, 21, 36);
  --t1480: rgba(237, 244, 252, 0.94);
  --t1481: rgba(0, 84, 214, 0.16);
  --t1482: rgba(38, 139, 255, 0.32);
  --t1483: rgba(102, 162, 255, 0.07);
  --t1484: rgba(242, 45, 17, 0.28);
  --t1485: rgba(250, 251, 251, 0.58);
  --t1486: rgba(242, 188, 14, 0.24);
  --t1487: rgba(33, 131, 243, 0.24);
  --t1488: rgba(221, 226, 232, 0.9);
  --t1489: rgba(0, 4, 11, 0.18);
  --t1490: rgb(0, 0, 0);
  --t1491: rgba(11, 23, 36, 0.68);
  --t1492: rgba(94, 15, 18, 0.78);
  --t1493: rgba(214, 163, 0, 0.72);
  --t1494: rgba(11, 23, 36, 0.82);
  --t1495: rgba(29, 129, 93, 0.3);
  --t1496: rgba(214, 163, 0, 0.16);
  --t1497: rgba(214, 26, 0, 0.14);
  --t1498: rgb(0, 149, 214);
  --t1499: rgba(88, 208, 255, 0.06);
  --t1500: rgba(254, 254, 254, 0.46);
  --t1501: rgb(214, 38, 0);
  --t1502: rgba(38, 176, 86, 0.9);
  --t1503: rgba(11, 204, 79, 0.88);
  --t1504: rgba(37, 54, 75, 0.9);
  --t1505: rgba(11, 204, 79, 0.42);
  --t1506: rgba(12, 202, 178, 0.68);
  --t1507: rgba(15, 27, 42, 0.9);
  --t1508: rgba(10, 155, 204, 0.2);
  --t1509: rgba(214, 145, 0, 0.9);
  --t1510: rgba(0, 8, 16, 0.98);
  --t1511: rgba(0, 8, 16, 0.28);
  --t1512: rgba(214, 143, 0, 0.96);
  --t1513: rgba(255, 156, 25, 0.24);
  --t1514: rgb(214, 149, 0);
  --t1515: rgb(227, 239, 251);
  --t1516: rgba(255, 163, 25, 0.32);
  --t1517: rgba(240, 246, 253, 0.34);
  --t1518: rgba(47, 167, 152, 0.18);
  --t1519: rgb(0, 16, 35);
  --t1520: rgb(71, 90, 112);
  --t1521: rgba(10, 204, 173, 0.9);
  --t1522: rgb(14, 200, 168);
  --t1523: rgba(67, 210, 117, 0.08);
  --t1524: rgba(50, 172, 92, 0.22);
  --t1525: rgb(8, 206, 82);
  --t1526: rgba(243, 51, 30, 0.34);
  --t1527: rgba(255, 103, 86, 0.13);
  --t1528: rgba(255, 193, 87, 0.06);
  --t1529: rgb(214, 38, 0);
  --t1530: rgba(214, 22, 0, 0.95);
  --t1531: rgba(255, 57, 35, 0.36);
  --t1532: rgb(214, 13, 0);
  --t1533: rgb(214, 82, 0);
  --t1534: rgba(255, 57, 35, 0.5);
  --t1535: rgb(214, 38, 0);
  --t1536: rgb(35, 20, 0);
  --t1537: rgb(61, 183, 233);
  --t1538: rgb(45, 190, 96);
  --t1539: rgb(66, 71, 77);
  --t1540: rgb(255, 47, 34);
  --t1541: rgba(96, 38, 32, 0.1575);
  --t1542: rgb(245, 138, 71);
  --t1543: rgba(0, 8, 16, 0.95);
  --t1544: rgba(13, 202, 84, 0.95);
  --t1545: rgb(8, 206, 82);
  --t1546: rgb(214, 163, 0);
  --t1547: rgba(240, 246, 253, 0.72);
  --t1548: rgb(214, 15, 0);
  --t1549: rgb(38, 176, 86);
  --t1550: rgb(6, 32, 14);
  --t1551: rgb(0, 8, 18);
  --t1552: rgb(214, 143, 0);
  --t1553: rgb(11, 24, 39);
  --t1554: rgba(214, 163, 0, 0.06);
  --t1555: rgba(11, 23, 36, 0.22);
  --t1556: rgba(59, 76, 96, 0.32);
  --t1557: rgb(214, 143, 0);
  --t1558: rgba(59, 76, 96, 0.6);
  --t1559: rgb(214, 35, 0);
  --t1560: rgba(255, 178, 22, 0.42);
  --t1561: rgb(24, 37, 52);
  --t1562: rgba(11, 23, 36, 0.16);
  --t1563: rgba(243, 168, 18, 0.18);
  --t1564: rgba(255, 194, 71, 0.08);
  --t1565: rgba(252, 252, 252, 0.64);
  --t1566: rgb(25, 39, 55);
  --t1567: rgb(33, 181, 163);
  --t1568: rgb(51, 103, 255);
  --t1569: rgb(37, 182, 255);
  --t1570: rgb(0, 142, 214);
  --t1571: rgb(255, 174, 51);
  --t1572: rgb(214, 129, 0);
  --t1573: rgb(255, 68, 51);
  --t1574: rgba(0, 142, 214, 0.68);
  --t1575: rgba(214, 129, 0, 0.68);
  --t1576: rgb(20, 34, 54);
  --t1577: rgba(252, 252, 252, 0.62);
  --t1578: rgba(244, 165, 45, 0.18);
  --t1579: rgba(255, 194, 102, 0.07);
  --t1580: rgb(214, 129, 0);
  --t1581: rgb(78, 103, 137);
  --t1582: rgb(71, 77, 84);
  --t1583: rgba(56, 63, 71, 0.042);
  --t1584: rgb(103, 227, 78);
  --t1585: rgba(49, 87, 41, 0.0455);
  --t1586: rgba(96, 70, 32, 0.049);
  --t1587: rgba(96, 37, 32, 0.0525);
  --t1588: rgba(69, 138, 245, 0.62);
  --t1589: rgba(32, 57, 96, 0.077);
  --t1590: rgb(54, 188, 26);
  --t1591: rgb(214, 17, 0);
  --t1592: rgba(253, 253, 253, 0.58);
  --t1593: rgba(69, 138, 245, 0.68);
  --t1594: rgba(250, 251, 251, 0.98);
  --t1595: rgba(252, 252, 252, 0.96);
  --t1596: rgba(233, 151, 34, 0.36);
  --t1597: rgba(247, 181, 87, 0.2);
  --t1598: rgba(39, 213, 102, 0.78);
  --t1599: rgba(245, 160, 39, 0.78);
  --t1600: rgba(239, 68, 68, 0.55);
  --t1601: rgba(102, 162, 255, 0.18);
  --t1602: rgb(252, 252, 252);
  --t1603: rgb(245, 160, 39);
  --t1604: rgba(93, 69, 35, 0.147);
  --t1605: rgba(102, 162, 255, 0.16);
  --t1606: rgb(51, 131, 255);
  --t1607: rgba(15, 21, 29, 0.82);
  --t1608: rgba(45, 192, 98, 0.8);
  --t1609: rgb(39, 213, 102);
  --t1610: rgba(216, 30, 30, 0.4);
  --t1611: rgba(216, 30, 30, 0.5);
  --t1612: rgba(216, 30, 30, 0.2);
  --t1613: rgb(216, 30, 30);
  --t1614: rgb(235, 26, 26);
  --t1615: rgba(91, 37, 37, 0.1575);
  --t1616: rgba(216, 30, 30, 0.45);
  --t1617: rgba(239, 68, 68, 0.1);
  --t1618: rgba(91, 37, 37, 0.049);
  --t1619: rgba(40, 54, 70, 0.72);
  --t1620: rgba(253, 253, 253, 0.38);
  --t1621: rgba(71, 156, 245, 0.9);
  --t1622: rgba(32, 63, 96, 0.098);
  --t1623: rgba(32, 63, 96, 0.301);
  --t1624: rgba(240, 27, 13, 0.32);
  --t1625: rgba(74, 171, 55, 0.24);
  --t1626: rgb(0, 94, 214);
  --t1627: rgba(251, 251, 251, 0.9);
  --t1628: rgba(182, 188, 195, 0.24);
  --t1629: rgba(189, 189, 189, 0.09);
  --t1630: rgba(253, 253, 253, 0.42);
  --t1631: rgba(253, 253, 253, 0.46);
  --t1632: rgba(253, 253, 253, 0.42);
  --t1633: rgba(253, 253, 253, 0.16);
  --t1634: rgba(253, 253, 253, 0.04);
  --t1635: rgba(255, 255, 255, 0.4);
  --t1636: rgb(255, 255, 255);
  --t1637: rgba(255, 255, 255, 0.42);
  --t1638: rgba(255, 255, 255, 0.72);
  --t1639: rgba(255, 255, 255, 0.36);
  --t1640: rgba(42, 164, 149, 0.22);
  --t1641: rgba(255, 159, 28, 0.035);
  --t1642: rgba(252, 253, 253, 0.88);
  --t1643: rgba(252, 252, 252, 0.92);
  --t1644: rgba(253, 253, 254, 0.46);
  --t1645: rgb(40, 54, 70);
  --t1646: rgba(253, 253, 254, 0.38);
  --t1647: rgba(240, 246, 253, 0.48);
  --t1648: rgba(0, 0, 0, 0.18);
  --t1649: rgba(214, 124, 0, 0.68);
  --t1650: rgba(214, 13, 0, 0.68);
  --t1651: rgb(40, 54, 70);
  --t1652: rgb(214, 13, 0);
  --t1653: rgba(71, 71, 71, 0.24);
  --t1654: rgb(46, 137, 248);
  --t1655: rgb(250, 251, 251);
  --t1656: rgba(32, 63, 96, 0.049);
  --t1657: rgba(12, 16, 20, 0.154);
  --t1658: rgb(249, 249, 249);
  --t1659: rgba(71, 156, 245, 0.82);
  --t1660: rgba(32, 63, 96, 0.315);
  --t1661: rgb(36, 76, 117);
  --t1662: rgba(12, 105, 230, 0.32);
  --t1663: rgba(32, 63, 96, 0.1925);
  --t1664: rgba(32, 63, 96, 0.056);
  --t1665: rgb(33, 74, 120);
  --t1666: rgb(249, 249, 249);
  --t1667: rgba(255, 159, 28, 0.13);
  --t1668: rgb(248, 248, 249);
  --t1669: rgba(252, 252, 253, 0.3);
  --t1670: rgba(13, 17, 23, 0.063);
  --t1671: rgba(32, 57, 96, 0.287);
  --t1672: rgba(13, 17, 23, 0.07);
  --t1673: rgba(48, 62, 81, 0.64);
  --t1674: rgba(248, 249, 249, 0.98);
  --t1675: rgba(250, 251, 251, 0.98);
  --t1676: rgba(64, 64, 64, 0.0105);
  --t1677: rgba(252, 252, 253, 0.24);
  --t1678: rgba(0, 84, 214, 0.86);
  --t1679: rgba(69, 138, 245, 0.64);
  --t1680: rgba(240, 27, 13, 0.28);
  --t1681: rgb(214, 21, 0);
  --t1682: rgba(39, 3, 0, 0.86);
  --t1683: rgba(240, 27, 13, 0.22);
  --t1684: rgba(39, 3, 0, 0.72);
  --t1685: rgba(127, 164, 210, 0.08);
  --t1686: rgba(83, 129, 187, 0.28);
  --t1687: rgba(127, 164, 210, 0.1);
  --t1688: rgba(15, 28, 41, 0.9);
  --t1689: rgba(15, 28, 41, 0.75);
  --t1690: rgb(241, 49, 34);
  --t1691: rgb(169, 40, 32);
  --t1692: rgba(96, 36, 32, 0.077);
  --t1693: rgba(15, 27, 39, 0.86);
  --t1694: rgba(69, 138, 245, 0.58);
  --t1695: rgb(0, 17, 40);
  --t1696: rgba(69, 138, 245, 0.9);
  --t1697: rgba(32, 59, 96, 0.0455);
  --t1698: rgba(0, 3, 9, 0.94);
  --t1699: rgba(15, 27, 39, 0.82);
  --t1700: rgba(252, 252, 253, 0.12);
  --t1701: rgba(0, 5, 14, 0.55);
  --t1702: rgba(15, 27, 39, 0.78);
  --t1703: rgba(253, 253, 253, 0.54);
  --t1704: rgba(0, 3, 9, 0.96);
  --t1705: rgb(205, 137, 10);
  --t1706: rgba(0, 0, 0, 0.92);
  --t1707: rgba(250, 251, 251, 0.96);
  --t1708: rgba(8, 11, 15, 0.084);
  --t1709: rgba(41, 55, 74, 0.92);
  --t1710: rgba(93, 163, 255, 0.2);
  --t1711: rgba(252, 252, 252, 0.65);
  --t1712: rgba(69, 138, 245, 0.52);
  --t1713: rgba(10, 12, 16, 0.077);
  --t1714: rgba(0, 7, 22, 0.92);
  --t1715: rgba(252, 252, 252, 0.04);
  --t1716: rgba(252, 252, 252, 0.24);
  --t1717: rgba(252, 252, 252, 0.82);
  --t1718: rgb(0, 3, 11);
  --t1719: rgba(252, 252, 252, 0.68);
  --t1720: rgba(252, 252, 252, 0.84);
  --t1721: rgba(0, 3, 11, 0.92);
  --t1722: rgba(245, 56, 56, 0.34);
  --t1723: rgba(122, 31, 31, 0.9);
  --t1724: rgba(250, 251, 251, 0.94);
  --t1725: rgba(213, 152, 25, 0.28);
  --t1726: rgba(242, 181, 56, 0.045);
  --t1727: rgba(213, 152, 25, 0.5);
  --t1728: rgba(242, 181, 56, 0.075);
  --t1729: rgba(32, 56, 96, 0.063);
  --t1730: rgba(209, 149, 5, 0.96);
  --t1731: rgba(3, 10, 21, 0.92);
  --t1732: rgba(62, 107, 152, 0.85);
  --t1733: rgba(21, 37, 59, 0.92);
  --t1734: rgba(127, 164, 210, 0.14);
  --t1735: rgba(71, 71, 71, 0.055);
  --t1736: rgb(175, 39, 39);
  --t1737: rgba(12, 105, 230, 0.3);
  --t1738: rgb(0, 95, 214);
  --t1739: rgba(252, 252, 253, 0.94);
  --t1740: rgba(252, 252, 253, 0.96);
  --t1741: rgba(253, 253, 253, 0.98);
  --t1742: rgba(252, 252, 252, 0.86);
  --t1743: rgba(252, 252, 252, 0.44);
  --t1744: rgba(47, 139, 255, 0.12);
  --t1745: rgb(252, 253, 253);
  --t1746: rgb(252, 252, 252);
  --t1747: rgb(253, 253, 253);
  --t1748: rgba(253, 253, 254, 0);
  --t1749: rgba(253, 253, 254, 0.48);
  --t1750: rgba(92, 170, 255, 0.08);
  --t1751: rgba(0, 118, 214, 0.94);
  --t1752: rgba(22, 128, 243, 0.78);
  --t1753: rgba(0, 117, 214, 0.96);
  --t1754: rgba(0, 118, 214, 0.98);
  --t1755: rgba(73, 141, 226, 0.28);
  --t1756: rgba(253, 253, 253, 0.88);
  --t1757: rgba(0, 0, 0, 0.182);
  --t1758: rgba(83, 129, 187, 0.17);
  --t1759: rgba(252, 252, 252, 0.78);
  --t1760: rgba(37, 167, 244, 0.55);
  --t1761: rgb(0, 10, 21);
  --t1762: rgba(37, 167, 244, 0.75);
  --t1763: rgb(0, 12, 21);
  --t1764: rgba(31, 86, 122, 0.92);
  --t1765: rgba(32, 72, 96, 0.112);
  --t1766: rgba(0, 129, 214, 0.98);
  --t1767: rgba(0, 8, 17, 0.92);
  --t1768: rgba(107, 146, 188, 0.4);
  --t1769: rgba(117, 158, 199, 0.74);
  --t1770: rgba(0, 4, 9, 0.98);
  --t1771: rgba(253, 253, 253, 0.98);
  --t1772: rgba(14, 121, 242, 0.95);
  --t1773: rgb(0, 115, 253);
  --t1774: rgb(20, 82, 181);
  --t1775: rgba(0, 4, 9, 0.96);
  --t1776: rgba(78, 117, 158, 0.4);
  --t1777: rgba(49, 106, 165, 0.92);
  --t1778: rgba(252, 252, 252, 0.72);
  --t1779: rgba(48, 105, 166, 0.85);
  --t1780: rgba(7, 23, 41, 0.9);
  --t1781: rgba(50, 105, 164, 0.78);
  --t1782: rgba(0, 100, 214, 0.95);
  --t1783: rgba(41, 136, 244, 0.45);
  --t1784: rgba(41, 136, 244, 0.9);
  --t1785: rgba(83, 129, 187, 0.13);
  --t1786: rgb(14, 128, 255);
  --t1787: rgb(25, 84, 183);
  --t1788: rgba(0, 119, 214, 0.98);
  --t1789: rgba(35, 108, 194, 0.28);
  --t1790: rgba(0, 121, 214, 0.98);
  --t1791: rgba(0, 214, 105, 0.98);
  --t1792: rgba(52, 178, 122, 0.32);
  --t1793: rgba(34, 180, 98, 0.98);
  --t1794: rgba(214, 147, 0, 0.98);
  --t1795: rgba(208, 137, 22, 0.35);
  --t1796: rgba(214, 142, 0, 0.98);
  --t1797: rgba(250, 250, 251, 0.88);
  --t1798: rgba(252, 252, 252, 0.92);
  --t1799: rgba(0, 118, 214, 0.92);
  --t1800: rgba(66, 70, 77, 0.88);
  --t1801: rgba(32, 117, 200, 0.7);
  --t1802: rgba(33, 79, 120, 0.9);
  --t1803: rgb(88, 155, 218);
  --t1804: rgb(244, 245, 245);
  --t1805: rgb(137, 104, 62);
  --t1806: rgb(247, 246, 246);
  --t1807: rgba(26, 41, 57, 0.82);
  --t1808: rgba(70, 106, 145, 0.78);
  --t1809: rgba(57, 135, 227, 0.34);
  --t1810: rgba(250, 250, 250, 0.86);
  --t1811: rgba(31, 96, 187, 0.82);
  --t1812: rgba(31, 44, 59, 0.76);
  --t1813: rgba(31, 44, 59, 0.78);
  --t1814: rgba(7, 17, 29, 0.92);
  --t1815: rgba(252, 252, 252, 0.42);
  --t1816: rgba(83, 129, 187, 0.1);
  --t1817: rgba(252, 252, 252, 0.6);
  --t1818: rgba(9, 22, 37, 0.9);
  --t1819: rgba(66, 69, 77, 0.9);
  --t1820: rgba(59, 118, 195, 0.85);
  --t1821: rgba(243, 244, 245, 0.9);
  --t1822: rgba(38, 133, 224, 0.9);
  --t1823: rgba(34, 77, 119, 0.9);
  --t1824: rgba(92, 100, 109, 0.9);
  --t1825: rgba(247, 247, 248, 0.9);
  --t1826: rgba(83, 129, 187, 0.11);
  --t1827: rgba(228, 153, 12, 0.82);
  --t1828: rgba(214, 142, 0, 0.98);
  --t1829: rgba(252, 252, 252, 0.96);
  --t1830: rgba(229, 235, 243, 0.98);
  --t1831: rgba(255, 170, 8, 0.98);
  --t1832: rgba(255, 166, 0, 0.92);
  --t1833: rgba(228, 153, 12, 0.92);
  --t1834: rgba(228, 153, 12, 0.35);
  --t1835: rgba(252, 252, 252, 0.45);
  --t1836: rgba(214, 138, 0, 0.96);
  --t1837: rgba(23, 40, 59, 0.86);
  --t1838: rgba(37, 52, 71, 0.88);
  --t1839: rgba(0, 214, 113, 0.98);
  --t1840: rgba(48, 181, 115, 0.32);
  --t1841: rgba(214, 146, 0, 0.98);
  --t1842: rgba(214, 0, 0, 0.98);
  --t1843: rgba(175, 54, 54, 0.35);
  --t1844: rgba(0, 126, 214, 0.92);
  --t1845: rgba(83, 129, 187, 0.15);
  --t1846: rgba(251, 251, 252, 0.72);
  --t1847: rgba(66, 171, 138, 0.42);
  --t1848: rgba(249, 250, 250, 0.58);
  --t1849: rgba(0, 138, 214, 0.94);
  --t1850: rgba(16, 29, 44, 0.88);
  --t1851: rgba(253, 253, 254, 0.75);
  --t1852: rgba(16, 29, 44, 0.9);
  --t1853: rgba(252, 252, 252, 0.46);
  --t1854: rgba(251, 251, 252, 0.55);
  --t1855: rgba(0, 138, 214, 0.96);
  --t1856: rgba(251, 251, 252, 0.6);
  --t1857: rgba(90, 127, 184, 0.16);
  --t1858: rgba(83, 129, 187, 0.4);
  --t1859: rgba(36, 102, 178, 0.95);
  --t1860: rgba(16, 29, 44, 0.72);
  --t1861: rgba(16, 29, 44, 0.84);
  --t1862: rgba(0, 138, 214, 0.9);
  --t1863: rgba(88, 136, 186, 0.6);
  --t1864: rgba(45, 212, 191, 0.07);
  --t1865: rgb(66, 71, 77);
  --t1866: rgba(252, 253, 253, 0.7);
  --t1867: rgba(66, 171, 138, 0.7);
  --t1868: rgba(215, 129, 11, 0.7);
  --t1869: rgba(70, 183, 245, 0.6);
  --t1870: rgb(214, 124, 0);
  --t1871: rgba(255, 159, 28, 0.14);
  --t1872: rgb(214, 0, 0);
  --t1873: rgba(255, 93, 93, 0.14);
  --t1874: rgba(243, 35, 35, 0.4);
  --t1875: rgb(0, 138, 214);
  --t1876: rgba(102, 201, 255, 0.12);
  --t1877: rgba(70, 183, 245, 0.4);
  --t1878: rgb(21, 34, 54);
  --t1879: rgba(7, 17, 29, 0.9);
  --t1880: rgba(31, 44, 59, 0.85);
  --t1881: rgb(119, 119, 119);
  --t1882: rgb(71, 71, 71);
  --t1883: rgb(13, 87, 201);
  --t1884: rgb(19, 84, 195);
  --t1885: rgba(71, 187, 245, 0.4);
  --t1886: rgba(23, 36, 51, 0.6);
  --t1887: rgba(39, 51, 65, 0.78);
  --t1888: rgba(23, 36, 51, 0.7);
  --t1889: rgba(187, 124, 17, 0.45);
  --t1890: rgba(245, 158, 11, 0.1);
  --t1891: rgba(45, 192, 98, 0.45);
  --t1892: rgba(74, 222, 128, 0.1);
  --t1893: rgb(29, 185, 86);
  --t1894: rgba(252, 252, 252, 0.4);
  --t1895: rgba(44, 124, 244, 0.12);
  --t1896: rgba(244, 50, 50, 0.26);
  --t1897: rgba(180, 50, 60, 0.2);
  --t1898: rgb(37, 177, 143);
  --t1899: rgba(182, 188, 195, 0.42);
  --t1900: rgba(250, 251, 251, 0.35);
  --t1901: rgba(19, 124, 243, 0.82);
  --t1902: rgba(182, 188, 195, 0.35);
  --t1903: rgba(40, 144, 244, 0.72);
  --t1904: rgb(0, 18, 35);
  --t1905: rgb(214, 16, 0);
  --t1906: rgba(182, 188, 195, 0.32);
  --t1907: rgba(182, 188, 195, 0.45);
  --t1908: rgba(17, 30, 46, 0.9);
  --t1909: rgba(250, 251, 251, 0.62);
  --t1910: rgb(66, 71, 77);
  --t1911: rgba(12, 105, 230, 0.9);
  --t1912: rgba(47, 136, 255, 0.58);
  --t1913: rgb(71, 71, 71);
  --t1914: rgb(187, 122, 27);
  --t1915: rgba(66, 71, 77, 0.88);
  --t1916: rgba(74, 171, 55, 0.56);
  --t1917: rgba(34, 197, 94, 0.22);
  --t1918: rgb(109, 217, 89);
  --t1919: rgba(44, 124, 244, 0.76);
  --t1920: rgb(214, 130, 0);
  --t1921: rgba(98, 206, 77, 0.16);
  --t1922: rgb(58, 178, 36);
  --t1923: rgba(74, 171, 55, 0.4);
  --t1924: rgba(102, 147, 255, 0.18);
  --t1925: rgb(0, 63, 214);
  --t1926: rgba(56, 112, 245, 0.45);
  --t1927: rgba(239, 68, 68, 0.15);
  --t1928: rgba(216, 30, 30, 0.42);
  --t1929: rgba(168, 85, 247, 0.16);
  --t1930: rgb(104, 0, 214);
  --t1931: rgba(135, 33, 233, 0.42);
  --t1932: rgba(250, 251, 251, 0.5);
  --t1933: rgba(182, 188, 195, 0.28);
  --t1934: rgb(251, 251, 251);
  --t1935: rgba(82, 88, 96, 0.12);
  --t1936: rgba(37, 99, 235, 0.18);
  --t1937: rgba(250, 251, 251, 0.4);
  --t1938: rgba(0, 0, 0, 0.1925);
  --t1939: rgb(184, 101, 5);
  --t1940: rgb(229, 229, 229);
  --t1941: rgba(0, 0, 0, 0.0875);
  --t1942: rgb(251, 251, 251);
  --t1943: rgb(224, 224, 224);
  --t1944: rgb(255, 255, 255);
  --t1945: rgba(49, 174, 115, 0.55);
  --t1946: rgb(45, 192, 122);
  --t1947: rgba(253, 253, 253, 0.32);
  --t1948: rgb(201, 126, 13);
  --t1949: rgba(74, 171, 55, 0.45);
  --t1950: rgb(73, 169, 45);
  --t1951: rgb(0, 93, 214);
  --t1952: rgb(214, 16, 0);
  --t1953: rgb(214, 129, 0);
  --t1954: rgba(240, 240, 240, 0.18);
  --t1955: rgb(178, 36, 36);
  --t1956: rgba(204, 69, 69, 0.5);
  --t1957: rgba(182, 188, 195, 0.16);
  --t1958: rgb(252, 252, 252);
  --t1959: rgb(250, 250, 251);
  --t1960: rgb(9, 16, 25);
  --t1961: rgb(214, 0, 0);
  --t1962: rgb(0, 85, 214);
  --t1963: rgb(36, 178, 96);
  --t1964: rgba(46, 204, 113, 0.12);
  --t1965: rgb(210, 133, 4);
  --t1966: rgba(245, 166, 35, 0.12);
  --t1967: rgba(102, 163, 255, 0.12);
  --t1968: rgb(77, 0, 214);
  --t1969: rgba(157, 102, 255, 0.14);
  --t1970: rgb(48, 131, 255);
  --t1971: rgb(125, 51, 255);
  --t1972: rgba(0, 0, 0, 0.78);
  --t1973: rgb(42, 122, 244);
  --t1974: rgba(32, 57, 96, 0.0875);
  --t1975: rgba(0, 0, 0, 0.7);
  --t1976: rgba(0, 0, 0, 0.45);
  --t1977: rgba(0, 0, 0, 0.1225);
  --t1978: rgb(41, 53, 72);
  --t1979: rgba(189, 189, 189, 0.25);
  --t1980: rgb(19, 139, 63);
  --t1981: rgb(28, 150, 73);
  --t1982: rgb(44, 170, 86);
  --t1983: rgb(78, 100, 137);
  --t1984: rgb(127, 134, 148);
  --t1985: rgba(220, 38, 38, 0.12);
  --t1986: rgba(170, 36, 36, 0.45);
  --t1987: rgb(51, 132, 255);
  --t1988: rgb(54, 205, 105);
  --t1989: rgba(107, 107, 249, 0.16);
  --t1990: rgba(49, 49, 236, 0.45);
  --t1991: rgba(47, 136, 255, 0.04);
  --t1992: rgb(214, 15, 0);
  --t1993: rgb(252, 252, 252);
  --t1994: rgba(22, 133, 243, 0.36);
  --t1995: rgba(22, 133, 243, 0.7);
  --t1996: rgba(42, 164, 149, 0.45);
  --t1997: rgba(142, 46, 244, 0.5);
  --t1998: rgba(176, 102, 255, 0.1);
  --t1999: rgba(215, 129, 11, 0.35);
  --t2000: rgb(214, 128, 0);
  --t2001: rgba(215, 129, 11, 0.9);
  --t2002: rgba(182, 188, 195, 0.5);
  --t2003: rgba(251, 251, 251, 0.7);
  --t2004: rgba(249, 249, 250, 0.7);
  --t2005: rgba(12, 105, 230, 0.4);
  --t2006: rgba(142, 46, 244, 0.45);
  --t2007: rgba(176, 102, 255, 0.04);
  --t2008: rgba(69, 138, 245, 0.35);
  --t2009: rgba(248, 249, 249, 0.96);
  --t2010: rgba(250, 251, 251, 0.96);
  --t2011: rgb(21, 120, 243);
  --t2012: rgb(58, 162, 71);
  --t2013: rgb(37, 133, 51);
  --t2014: rgba(48, 79, 51, 0.0875);
  --t2015: rgb(71, 86, 107);
  --t2016: rgba(182, 188, 195, 0.25);
  --t2017: rgba(182, 188, 195, 0.12);
  --t2018: rgba(82, 88, 96, 0.08);
  --t2019: rgba(182, 188, 195, 0.14);
  --t2020: rgba(182, 188, 195, 0.1);
  --t2021: rgba(250, 251, 251, 0.6);
  --t2022: rgba(76, 154, 255, 0.14);
  --t2023: rgba(255, 255, 255, 0.5);
  --t2024: rgb(252, 252, 252);
  --t2025: rgb(11, 16, 23);
  --t2026: rgba(189, 189, 189, 0.2);
  --t2027: rgba(253, 253, 253, 0.88);
  --t2028: rgb(17, 26, 36);
  --t2029: rgb(233, 238, 244);
  --t2030: rgb(61, 154, 238);
  --t2031: rgb(88, 199, 113);
  --t2032: rgb(238, 180, 61);
  --t2033: rgba(142, 46, 244, 0.55);
  --t2034: rgba(176, 102, 255, 0.16);
  --t2035: rgb(91, 0, 214);
  --t2036: rgba(253, 253, 253, 0.99);
  --t2037: rgba(0, 0, 0, 0.14);
  --t2038: rgba(59, 157, 255, 0.22);
  --t2039: rgba(13, 126, 239, 0.7);
  --t2040: rgb(221, 224, 227);
  --t2041: rgba(253, 253, 253, 0.98);
  --t2042: rgba(253, 253, 253, 0.99);
  --t2043: rgb(251, 251, 251);
  --t2044: rgb(66, 71, 77);
  --t2045: rgb(66, 71, 77);
  --t2046: rgb(66, 71, 77);
}

/* --- Light theme: text on genuinely dark fills ---------------------------- */
/* The generated token pass flips neutral text by lightness. That is right for
   body copy on a page ground but wrong for a label sitting ON a dark fill,
   which stays dark in both themes. The transform cannot see an element's
   backdrop, so those few cases are stated here.

   Every selector below was MEASURED in light mode — effective background
   luminance, walking up through transparent ancestors — not reasoned about.
   Earlier guesses here caused three separate white-on-white bugs (sidebar
   flight dates, the active section-nav tab, the active dashboard tab), so add
   nothing without measuring it first. Anything at or above ~0.6 luminance must
   keep its own flipped text.

   Measured: .admin-sidebar-item.is-active = rgb(22,104,216), luminance 0.371.
   Avatars paint a saturated blue/purple gradient identical in both themes.

   Deliberately NOT here, with the reason:
   - .tab.is-active — luminance 0.98. Its blue came from a gradient, and
     flattening gradients left it near-white.
   - .nav-item.is-active — its blue is on the ::after underline, not a
     background; the item itself sits on the page ground.
   - .ai-work-notice-action — rgba(47,136,255,0.24), a wash, not a fill.
   - .fleet-flight-item.is-active (0.14) and .aircraft-upload-status (0.12-0.14)
     — washes.
   - button.primary / .btn-primary / .phase-rail-segment — these selectors do
     not exist in this stylesheet at all; they were never real. */
:root[data-theme="light"] .admin-sidebar-item.is-active,
:root[data-theme="light"] .account-avatar,
:root[data-theme="light"] .fleet-account-avatar,
/* Solid accent-filled buttons. Measured light-mode fills:
   .primary-action        linear-gradient(rgb(7,114,255), rgb(20,91,192))  lum ~0.40
   .auth-landing-submit--primary                                            lum 0.469
   .mobile-welcome-continue                                                 lum 0.371
   .auth-landing-aside    dark promo panel (text inherits to its children)  lum 0.330
   .secondary-action is deliberately absent: it shares .primary-action's base
   rule but fills with rgba(255,255,255,0.04), a wash, so it keeps dark text. */
:root[data-theme="light"] .primary-action,
:root[data-theme="light"] .auth-landing-submit--primary,
/* LOG IN / SIGN UP on the landing aside. The aside itself is already listed
   below (lum 0.330), but these set their own `color: var(--t8)` — black in
   light mode — which beats the white they would otherwise inherit from it. */
:root[data-theme="light"] .auth-landing-switch,
:root[data-theme="light"] .mobile-welcome-continue,
:root[data-theme="light"] .auth-landing-aside {
  color: #ffffff;
}

/* --- Flat components (no gradients) --------------------------------------- */
/* The photo frames and the three tab strips were painting multi-stop
   gradients. Those read as depth on the dark shell but as dirty banding on a
   near-white one, and they fight the flat token palette. Flatten them to a
   single surface colour in BOTH themes so the two look like the same product.

   background-image is what carries a gradient, so clearing it (rather than
   re-declaring `background`) leaves each component's own background-color,
   borders and padding untouched. */
.aircraft-fleet-photo,
.aircraft-photo-frame,
.aircraft-photo-frame-overlay,
.tab,
.tab.is-active,
.admin-analytics-tabs .tab,
.aircraft-page-tabs .nav-item,
.aircraft-section-nav .nav-item {
  background-image: none;
}
/* .mobile-tabbar is deliberately NOT in the list above. It was not one of the
   components you asked to flatten, and clearing its background-image left it
   fully transparent — `background: linear-gradient(...)` resets
   background-color, so nothing remained. It now sets a flat background-color
   directly (see .mobile-tabbar), which is both flat and strip-proof. */

/* --- Light mode: playback EGT bar ----------------------------------------- */
/* The EGT bar is the non-green one in each cylinder (the CHT bar next to it
   paints `currentColor`, which carries the green/amber status colour). In dark
   mode it is #f7fbff — a near-white bar on a near-black track. Stated
   explicitly rather than left to the generated transform, because the two ends
   of that range are both wrong here: leaving it near-white made it invisible on
   the light track, and flipping it by lightness pushed it almost to black.
   The grey is pitched LIGHT rather than mid: the CHT bar beside it is
   rgb(98, 206, 77), and at a mid grey the two read as the same tonal weight
   even though the hues differ. Sitting clearly lighter than the green keeps the
   two bars separable at a glance, which matters more here than maximising
   contrast against the track — the bar is a solid block, not fine detail.
   The glow is dropped: a 12px bloom is depth on a dark panel and smudge on a
   light one. */
:root[data-theme="light"] .playback-egt-bar {
  background: rgb(176, 182, 190);
  box-shadow: none;
}

/* --- Photo overlay label -------------------------------------------------- */
/* "ADD PHOTO" / "CHANGE PHOTO" sits directly on a user-uploaded image, so its
   legibility cannot depend on the theme OR on the picture behind it. Fixed
   white with a hard black outline in both themes.
   The four 1px shadows draw the outline and the soft 3px one lifts it off busy
   photos; an outline is used rather than -webkit-text-stroke because that
   insets the stroke and thins these already-condensed uppercase glyphs.
   Note this label previously leaned on a dark scrim gradient for contrast; that
   gradient was removed when the photo components were flattened, so the outline
   is now the only thing keeping it readable. Do not drop it. */
/* The empty state has its own, MORE SPECIFIC colour:
   `.aircraft-photo-frame-button.is-empty .aircraft-photo-frame-overlay` sets
   `color: var(--t8)` at (0,3,0), which in light mode resolves to rgb(0,0,0).
   A bare `.aircraft-photo-frame-overlay` rule loses to it, so "ADD PHOTO"
   rendered as a black fill inside a black stroke — reading as a solid blob.
   Match that selector here so the white fill wins in both states. */
.aircraft-photo-frame-overlay,
.aircraft-photo-frame-button.is-empty .aircraft-photo-frame-overlay {
  color: #ffffff;
  /* paint-order puts the stroke BEHIND the fill, so the outline only grows
     outward. The previous four-way text-shadow outline was centred on the glyph
     path instead, and at 11px/800 with tight letter-spacing it closed up the
     counters — the label read as a black blob with a white rim rather than
     white text. The soft shadow is kept, much lighter, purely to lift the text
     off busy photos. */
  paint-order: stroke fill;
  -webkit-text-stroke: 2px #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* --- Upload dropzones and selected-file list ------------------------------ */
/* Literal colours, not var(--tN): this block was written after the token pass,
   and the generated palettes only contain tokens the pass itself created. */

.upload-dropzone {
  margin-top: 14px;
  padding: 22px 16px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease;
}

.upload-dropzone.is-compact {
  margin-top: 10px;
  padding: 14px 12px;
}

/* Drag feedback. Driven by a JS class rather than :hover because a drag does
   not generate hover, and the enter/leave depth counter in upload-dropzone.ts
   is what keeps this from flickering as the pointer crosses child elements. */
.upload-dropzone.is-dragover {
  border-color: var(--blue);
  background: rgba(47, 136, 255, 0.1);
}

/* Deliberately understated: the dropzone is an alternative to the Choose
   Files buttons above it, not the primary call to action, so it should read as
   a hint rather than compete with them. */
.upload-dropzone-primary {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95em;
}

.upload-dropzone-secondary {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82em;
  opacity: 0.8;
}

.upload-dropzone-browse {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Scrolls rather than growing: a folder pick can be hundreds of files, which
   would otherwise push the dialog's submit button off screen. */
.upload-selected-files {
  margin: 10px 0 0;
  padding: 4px;
  max-height: 180px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.upload-selected-file {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px;
  min-width: 0;
}

.upload-selected-file + .upload-selected-file {
  border-top: 1px solid var(--line-soft);
}

/* The name is the part that must truncate; the size is short and fixed. */
.upload-selected-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-selected-file-size {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}

/* --- Admin table column sort / filter controls ---------------------------- */
.admin-th {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.admin-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}

.admin-th-sort-icon {
  opacity: 0.45;
  font-size: 0.85em;
}

/* The active column keeps its arrow at full strength so the sorted column is
   identifiable at a glance among eleven headers. */
.admin-th-sort.is-active .admin-th-sort-icon {
  opacity: 1;
  color: var(--blue);
}

.admin-th-filter {
  padding: 0 2px;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.4;
  font-size: 0.9em;
  line-height: 1;
  cursor: pointer;
}

.admin-th-filter:hover,
.admin-th-filter:focus-visible {
  opacity: 0.85;
}

/* A column with an active filter stays lit even when its input is collapsed,
   so a narrowed table can never look like an empty one. */
.admin-th-filter.is-active {
  opacity: 1;
  color: var(--blue);
}

.admin-th-filter-input {
  width: 100%;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85em;
  font-weight: 400;
}

/* --- First run: no aircraft ----------------------------------------------- */
/* With an empty fleet the page-tab strip (Flights / Uploads / Trends / Info /
   Settings) has nothing to switch between, so the "Add your first aircraft"
   hero should stand alone.
   Driven by the same `is-newui-firstrun` class the hero itself uses, rather
   than a second "does the user have aircraft" check in JS. That class already
   encodes the careful condition — manifest LOADED and fleet empty — so the two
   cannot disagree, and an authed member with aircraft never flashes a
   tab-less page while the manifest is still loading. */
#view-aircraft.is-newui-firstrun #aircraftPageTabs {
  display: none;
}

/* --- Flights heading -------------------------------------------------------- */
/* The heading block and the metrics grid share one flex row, which squeezed the
   guidance line into a narrow column and wrapped it early. Letting the heading
   block take the width it needs keeps the sentence on one line whenever the
   viewport has room, and it still wraps normally when it does not. */
.aircraft-flights-heading > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.aircraft-history-guidance {
  max-width: none;
}

/* Cards whose detail line was dropped should not leave a gap where it was. */
.aircraft-flights-metrics-grid .aircraft-activity-card small:empty {
  display: none;
}

/* --- Flight profile highlight cards: overflow ------------------------------ */
/* The card is `grid-template-columns: auto minmax(0, 1fr)` with a fixed 54px
   icon, so the icon never yielded any width and the value column was pushed
   past the card edge — "01:03:16" clipped, "n/a" and "3,797" breaking
   mid-token onto a second line.
   The icon now scales with the viewport, and the value is kept on one line so
   it shrinks by font-size rather than fracturing into pieces. */
.profile-highlight-icon {
  width: clamp(38px, 3.6vw, 54px);
  height: clamp(38px, 3.6vw, 54px);
  flex: none;
}

.profile-highlight-icon svg {
  width: clamp(20px, 2vw, 30px);
  height: clamp(20px, 2vw, 30px);
}

.profile-highlight-card strong {
  min-width: 0;
  white-space: nowrap;
}

/* Last-resort clip so a value that still cannot fit is trimmed at the card
   edge instead of drawing over the card beside it. */
.profile-highlight-card {
  overflow: hidden;
}

/* --- Flight flag tags: always stack ---------------------------------------- */
/* CHT / EGT Rhythm tags sat side by side in an inline-flex row, which widened
   the column and squeezed the rest of the table whenever a flight carried both.
   Stacking is unconditional rather than a wrap: a wrap only breaks once the
   column is already too wide, so the first row still pays the width cost.
   Both selectors are needed — the cell-level rule sets its own `display`, so
   overriding only the base class would leave the direction as row there. */
.aircraft-flight-flags-stack,
.aircraft-flight-flags-cell > .aircraft-flight-flags-stack {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* --- Sidebar aircraft NEW dot --------------------------------------------- */
/* Anchored to the top-right of the TAIL NUMBER, overlapping it slightly, rather
   than sitting inline beside the flight count where it read as part of the
   count. Mirrors the aircraft page's .tab-new-dot treatment.
   The tail span becomes the positioning context; inline-block is required for
   that, and it must not change the flex row's sizing — the dot is absolutely
   positioned so it contributes no width, which is what keeps a long tail number
   from being pushed or truncated by the badge. */
.fleet-aircraft-tail {
  position: relative;
  display: inline-block;
}

.fleet-aircraft-new-dot {
  position: absolute;
  /* right: 0, not a negative offset. The tail can be the rightmost element in
     the head, so any horizontal overhang puts the dot outside the row — which
     is exactly what browser_new_badge_check asserts against. Flush to the
     tail's right edge still overlaps the final glyph, which is the look asked
     for, without escaping. */
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  margin-left: 0;
  border-radius: 999px;
  background: var(--purple);
}

/* --- Trend column ---------------------------------------------------------- */
/* Stack the bulk All/None buttons under the "Trend" label rather than beside
   it: side by side they widened the header enough to push the column past the
   width its cells actually need. */
.aircraft-flight-trend-header-content {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Included AND excluded rows show the checkbox alone — the state is already
   obvious from the tick (or its absence), and repeating "Included"/"Excluded"
   on every row was the widest thing in the column. The label text is kept in
   the DOM and hidden accessibly rather than removed, so screen readers still
   announce the state; the tooltip carries it for sighted users. */
.aircraft-flight-trend-toggle.is-excluded > span,
.aircraft-flight-trend-toggle.is-included > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.aircraft-flight-trend-toggle.is-excluded,
.aircraft-flight-trend-toggle.is-included {
  gap: 0;
  padding-inline: 8px;
}

/* --- Table overflow containment -------------------------------------------- */
/* .table-wrap already sets overflow:auto, but that only engages once the wrap
   itself is constrained. As a grid/flex item its default min-width is `auto`,
   which is the CONTENT width — so a wide table stretched the wrapper past the
   panel instead of scrolling inside it, and the right-hand columns were simply
   clipped by the viewport with no way to reach them.
   min-width: 0 lets it shrink below content width, which is what turns the
   existing overflow:auto into an actual scroller. Applied to the panel too,
   since the same default applies at every level between here and the shell. */
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

/* Windows overlay scrollbars auto-hide, which made a genuinely scrolling
   table read as "cut off with no scrollbar". Keep the horizontal scrollbar
   visible whenever the table overflows. */
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--t654) transparent;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--t654);
  border-radius: 999px;
}

.aircraft-subpanel,
.aircraft-subpanel > * {
  min-width: 0;
}

/* --- Trend toggle: bare checkbox ------------------------------------------- */
/* The included state is just the checkbox now, so the pill chrome around it was
   drawing an empty oval. Scoped to .is-included — the other states still show
   text and need the pill to read as a labelled control. */
.aircraft-flight-trend-toggle.is-excluded,
.aircraft-flight-trend-toggle.is-included {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* --- Centred columns -------------------------------------------------------- */
/* Keyed off data-flight-column so the header and its cells stay in step: they
   share the key, so a column can never end up centred in one and not the other.
   text-align covers inline content; the flex rule covers cells whose content is
   a flex container (the CHT/EGT tag stack, the trend toggle), which text-align
   alone does not move. */
.aircraft-flights-table [data-flight-column="flags"],
.aircraft-flights-table [data-flight-column="trend"],
.aircraft-flights-table [data-flight-column="ai"],
.aircraft-flights-table [data-flight-column="report"] {
  text-align: center;
}

.aircraft-flights-table td[data-flight-column="flags"] > *,
.aircraft-flights-table td[data-flight-column="trend"] > *,
.aircraft-flights-table td[data-flight-column="ai"] > *,
.aircraft-flights-table td[data-flight-column="report"] > * {
  margin-inline: auto;
}

/* The flags stack is a column flex; centre its items rather than relying on the
   auto margins above, which only centre the stack itself. */
.aircraft-flights-table td[data-flight-column="flags"] .aircraft-flight-flags-stack {
  align-items: center;
}

/* --- Flights heading: which side yields ------------------------------------ */
/* The heading block and the metrics grid share a flex row. Previously the
   heading was `min-width: 0` (collapses freely) while the metrics grid had
   `minmax(0, 1fr)` columns (also collapses), so the metrics lost the fight:
   the guidance sentence stayed on one line while date ranges broke into
   vertical slivers.
   Now the heading is the flexible side — it shrinks and wraps its sentence —
   and the metrics hold their natural width. When the heading can shrink no
   further (roughly the width of its own title) the row wraps and the metrics
   move to the next line intact. */
.aircraft-flights-heading {
  flex-wrap: wrap;
}

.aircraft-flights-heading > div:first-child {
  /* Basis is the comfortable width for the sentence; the min is about the
     width of "Aircraft flight history", which is the point the user asked the
     metrics to wrap at rather than squeeze past. The metrics side carries the
     grow weight: sharing the row, the title holds roughly 30% and the metrics
     panel roughly 70% (measured 29/70 at 1850px). */
  flex: 1 1 18rem;
  min-width: min(100%, 15rem);
}

/* The metrics strip takes ALL the space left beside the title (flex-grow),
   and its columns re-flow against its OWN width via auto-fit: 6-up when wide,
   3-up at mid widths, 2-up on narrow phones — so every card stays visible at
   every size instead of running off the panel. (The previous fixed
   `repeat(6, minmax(6.5rem, auto))` gave the grid a ~650px floor and
   overrode the responsive re-flows, which is what clipped Total logged /
   Average duration on anything narrower than a wide desktop.)
   Selector matches `.aircraft-flights-heading > div`'s specificity so the
   flex values here actually win. */
.aircraft-flights-heading > .aircraft-flights-metrics-grid {
  flex: 4 1 30rem;
  min-width: min(100%, 20rem);
  max-width: 100%;
  /* Content-based card widths: a wide Date range card takes what it needs
     while a 2-digit count stays compact, instead of six equal tracks. Cards
     wrap to new rows as the strip narrows. */
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  column-gap: 30px;
  /* Breathing room between wrapped rows (one row: no effect). */
  row-gap: 10px;
}

.aircraft-flights-heading > .aircraft-flights-metrics-grid .aircraft-activity-card {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
}

/* Column count is fluid now, so per-breakpoint divider bookkeeping
   (nth-child(3n) etc.) can strand dividers at row ends; drop the dividers in
   favor of the card padding. */
.aircraft-flights-metrics-grid .aircraft-activity-card {
  border-right: 0;
}

/* --- Flights column picker --------------------------------------------------- */
.aircraft-flights-columns {
  position: relative;
}

.aircraft-flights-columns > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.aircraft-flights-columns > summary::-webkit-details-marker {
  display: none;
}

/* Dropdown-button affordance: a chevron that flips while the menu is open. */
.aircraft-flights-columns > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.12s ease;
}

.aircraft-flights-columns[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}

/* Absolute so opening the menu never reflows the toolbar beneath it. */
.aircraft-flights-columns-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Sits BELOW the checkbox list, and only while the layout differs from the
   defaults (flight-columns-controller toggles hidden). */
.aircraft-flights-columns-reset {
  width: 100%;
  margin-top: 8px;
}

/* The full column list renders without an inner scroller — it is short
   enough to show whole. */
.aircraft-flights-columns-list {
  display: grid;
  gap: 2px;
}

.aircraft-flights-columns-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}

.aircraft-flights-columns-item:hover {
  background: var(--panel-2);
}

/* --- Mobile flights-page adjustments ---------------------------------------- */
@media (max-width: 720px) {
  /* The Columns picker hugs the right edge of the toolbar on mobile; its menu
     is already right-anchored, so it opens inward from the edge. */
  .aircraft-flights-columns {
    margin-left: auto;
  }

  /* Drag-and-drop is a desktop pointer affordance: on mobile the dashed
     dropzones (Flights tab and the upload dialog) are dead weight — the
     browse/choose-file buttons remain the upload path. */
  .upload-dropzone {
    display: none;
  }
}

/* --- Mobile horizontal-gesture containment ---------------------------------- */
/* A sideways drag on these gets claimed by the browser's swipe back/forward
   navigation on phones. Scrollers keep their native horizontal scroll but stop
   chaining past their edges into the nav gesture; the playback scrub strip and
   replay-trace canvases are not scrollers at all, so pan-y hands horizontal
   drags to the widget while normal vertical page scrolling still works. */
.fb-phase-rail,
.playback-status-strip,
.playback-advisory-chips {
  overscroll-behavior-x: contain;
}

.playback-timeline,
.playback-trace-canvas {
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

/* Chrome-on-Android resolves the swipe back/forward gesture at the ROOT
   scroller, so per-widget containment (above) is not enough on its own: a
   horizontal drag over a non-scrolling region chains straight to the root and
   becomes history navigation. The app never scrolls horizontally at page
   level, so switching off horizontal overscroll navigation globally costs
   nothing and keeps drags on the AI timeline, playback scrubber, and charts
   inside the page. (Vertical overscroll — pull-to-refresh — is untouched.) */
html,
body {
  overscroll-behavior-x: none;
}

/* --- Narrow-viewport width floors ------------------------------------------- */
/* Below ~720px two rows stopped shrinking and forced their whole panel wider
   than the viewport (everything else, metrics strip and chart included, then
   ran off the right edge):
   - the explorer toolbar's view-controls group is a single non-wrapping
     inline-flex, so its min-content was the full 8-button row;
   - the flights filter toolbar's grid columns carry ~600px of combined
     min-content. */
@media (max-width: 720px) {
  .explorer-panel .panel-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-toolbar-group {
    flex-wrap: wrap;
  }

  .explorer-panel .chart-actions {
    justify-content: flex-start;
  }

  .aircraft-flights-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .aircraft-flights-toolbar > * {
    min-width: 0;
    max-width: 100%;
  }
}

/* Compact engine comparisons in the briefing overview. */
.fb-system-row.has-engine-readings { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
.fb-system-measurements { display: grid; gap: 10px; min-width: 0; }
.fb-system-measurements .fb-engine-grid { gap: 1rem 1.75rem; }
.fb-system-measurements .fb-engine-readings h5 { font-size: 12.5px; margin-bottom: 0.5rem; }
.fb-system-measurements .fb-engine-readings dl { gap: 0.4rem; }
.fb-system-measurements .fb-engine-readings dt { font-size: 12px; }
.fb-system-measurements .fb-engine-readings dd { font-size: 14px; }
.fb-system-measurements .fb-measurement-context { display: none; }
.fb-rail-limits .fb-rail-list { gap: 0.8rem; }
.fb-rail-limits .fb-rail-list li { display: grid; grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr); gap: 0.4rem 1rem; align-items: start; }
.fb-rail-limits .fb-rail-line { margin: 0; }
@media (max-width: 480px) {
  .fb-rail-limits .fb-rail-list li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* Trends scope and comparison evidence, issue #503. */
.trend-history-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px;
  border: 1px solid var(--border, #263747);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.trend-history-context p { margin: 0; }
.trend-history-context label { display: flex; align-items: center; gap: 8px; }
.trend-history-context small { flex-basis: 100%; }
.trend-history-context details { flex-basis: 100%; }
.trend-comparison-evidence, .trend-chart-explanation { margin-top: 12px; padding: 12px; border: 1px solid var(--border, #263747); border-radius: 8px; }
[data-finding-maintenance-context], [data-trend-maintenance-context] { grid-column: 1 / -1; min-width: 0; width: 100%; }
.maintenance-review-context { margin-top: 12px; padding: 14px; border: 1px solid var(--border, #263747); border-radius: 8px; overflow-wrap: anywhere; }
.maintenance-review-context h4 { margin: 0 0 8px; font-size: 0.95rem; }
.maintenance-review-context p, .maintenance-review-context li { font-size: 0.85rem; line-height: 1.5; }
.maintenance-review-context p { margin: 0 0 12px; color: var(--muted); }
.maintenance-review-context ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.maintenance-review-context li > * { display: block; }
.maintenance-review-context li span, .maintenance-review-context li small { color: var(--muted); }
.maintenance-review-context button { max-width: 100%; }
.trend-comparison-evidence summary, .trend-chart-explanation summary, .trend-history-context summary { cursor: pointer; font-weight: 600; }
.trend-comparison-evidence p, .trend-comparison-evidence li { font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 640px) {
  .trend-history-context { align-items: flex-start; }
  .trend-history-context label { width: 100%; justify-content: space-between; }
  .trend-comparison-evidence { overflow-wrap: anywhere; }
}

/* Maintenance activity workspace (issue #512). */
body[data-new-ui]:has(#aircraftMaintenancePanel.is-active.is-maintenance-live) .aircraft-context-panel {
  display: none;
}
.maintenance-live-content [hidden] { display: none !important; }
.maintenance-workspace-header,
.maintenance-activity-heading,
.maintenance-composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.maintenance-workspace-header { padding: 4px 0 24px; }
.maintenance-workspace-header h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.5px; }
.maintenance-workspace-header p { margin: 0; color: var(--muted); font-size: 15px; }
.maintenance-workspace-header p span { margin-left: 18px; }
.maintenance-workspace-header nav,
.maintenance-activity-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.maintenance-ui-icon { width: 20px; height: 20px; flex: 0 0 20px; filter: invert(1); opacity: .85; }
.maintenance-view-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  background: none;
  color: #7ca9ff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.maintenance-view-action[aria-current="page"] { color: var(--text); }
.maintenance-view-action:disabled { opacity: .45; cursor: default; }
.maintenance-view-action:focus-visible,
.maintenance-activity-record > summary:focus-visible,
.maintenance-engine-switch button:focus-visible,
.maintenance-optional > summary:focus-visible { outline: 2px solid #7ca9ff; outline-offset: 3px; }
.maintenance-context-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 12px;
}
.maintenance-context-strip > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.maintenance-context-strip > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.maintenance-context-label,
.maintenance-month-heading { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.maintenance-context-label { margin-bottom: 8px; }
.maintenance-context-label small { text-transform: none; letter-spacing: 0; font-size: 11px; }
.maintenance-context-strip strong { font-size: 20px; font-weight: 600; }
.maintenance-context-strip small { color: var(--muted); font-size: 13px; }
.maintenance-engine-switch { display: flex; flex-wrap: wrap; gap: 2px; }
.maintenance-engine-switch button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.maintenance-engine-switch button[aria-pressed="true"] { color: #75ded5; border-color: #488d8b; background: rgba(78, 197, 186, .05); }
.maintenance-engine-switch button:disabled { cursor: default; }
.maintenance-activity-heading { margin: 4px 0 20px; flex-wrap: wrap; }
.maintenance-activity-heading h2 { font-size: 23px; margin: 0; }
.maintenance-activity-heading h2 small { margin-left: 14px; font-size: 14px; font-weight: 400; color: var(--muted); }
.maintenance-activity-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; padding: 10px 18px; }
.maintenance-activity .maintenance-entry-composer {
  padding: 22px 24px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(130, 151, 190, .08);
}
.maintenance-entry-composer > h3 { margin-top: 0; }
.maintenance-composer-heading { justify-content: flex-start; margin-bottom: 22px; gap: 16px; }
.maintenance-composer-heading h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 20px; }
.maintenance-composer-heading > span { color: var(--muted); font-size: 14px; }
.maintenance-composer-heading > button { margin-left: auto; }
.maintenance-quick-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.maintenance-quick-fields .upload-field { min-width: 0; }
.maintenance-quick-fields .upload-field > span { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 600; }
.maintenance-quick-fields input { min-width: 0; width: 100%; min-height: 44px; box-sizing: border-box; font-size: 15px; }
.maintenance-quick-fields small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.maintenance-optional { margin-top: 18px; }
.maintenance-optional > summary { color: var(--muted); font-size: 14px; cursor: pointer; width: fit-content; padding: 8px 0; }
.maintenance-optional > summary span { font-size: 13px; }
.maintenance-optional[open] > summary { margin-bottom: 12px; }
.maintenance-optional > .upload-field { margin: 16px 0; }
.maintenance-quick-oil .maintenance-composer-actions { margin-top: 8px; }
.maintenance-quick-oil .report-status:empty { display: none; }
.maintenance-history-filters { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.maintenance-history-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; width: 48%; min-height: 44px; }
.maintenance-history-search input { width: 100%; border: none; background: none; box-shadow: none; padding: 10px 0; color: var(--text); font: inherit; font-size: 14px; min-width: 0; }
.maintenance-history-search:focus-within { outline: 2px solid #7ca9ff; outline-offset: 2px; }
.maintenance-history-search input:focus { outline: none; }
.maintenance-history-filters > select { width: 220px; max-width: 100%; min-height: 44px; font-size: 14px; }
.maintenance-activity .maintenance-timeline { display: block; }
.maintenance-month-heading { margin: 20px 0 8px; }
.maintenance-activity-record { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(130, 151, 190, .045); }
.maintenance-activity-record > summary { display: flex; align-items: center; gap: 18px; padding: 16px 20px; cursor: pointer; list-style: none; }
.maintenance-activity-record > summary::-webkit-details-marker { display: none; }
.maintenance-activity-record time { flex: 0 0 90px; font-size: 13px; color: var(--muted); }
.maintenance-record-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; height: 42px; border-radius: 8px; background: rgba(111, 153, 255, .08); }
.maintenance-record-icon .maintenance-ui-icon { filter: invert(.7) sepia(.9) saturate(3) hue-rotate(180deg); }
.maintenance-record-icon.is-oil .maintenance-ui-icon { filter: invert(.8) sepia(.7) saturate(2) hue-rotate(105deg); }
.maintenance-record-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.maintenance-record-title strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.maintenance-record-title small { color: var(--muted); font-size: 13px; }
.maintenance-record-meter { font-size: 14px; white-space: nowrap; }
.maintenance-activity-record[open] > summary > .maintenance-ui-icon { transform: rotate(90deg); }
.maintenance-activity-record > .maintenance-entry { border: none; border-top: 1px solid var(--line); border-radius: 0; margin: 0; background: none; }
.maintenance-systems-view { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 1100px) {
  .maintenance-activity-heading h2 small { display: block; margin: 5px 0 0; }
  .maintenance-context-strip { gap: 16px; }
  .maintenance-context-strip > div + div { padding-left: 16px; }
}
@media (max-width: 700px) {
  .maintenance-workspace-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .maintenance-workspace-header nav { gap: 8px; }
  .maintenance-context-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 18px 0; }
  .maintenance-context-strip > div:first-child { grid-column: 1 / -1; }
  .maintenance-context-strip > div:nth-child(2) { border: 0; padding: 0; }
  .maintenance-context-strip strong { font-size: 18px; }
  .maintenance-activity-heading { gap: 14px; }
  .maintenance-activity-actions { gap: 8px; width: 100%; }
  .maintenance-activity-actions button { padding: 10px; flex: 1; }
  .maintenance-activity-actions .maintenance-ui-icon { display: none; }
  .maintenance-quick-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .maintenance-activity .maintenance-entry-composer { padding: 18px; }
  .maintenance-composer-heading { flex-wrap: wrap; gap: 8px; }
  .maintenance-composer-heading > span { order: 3; width: 100%; }
  .maintenance-history-filters { gap: 10px; flex-direction: column; }
  .maintenance-history-search { width: auto; }
  .maintenance-history-filters > select { width: 100%; }
  .maintenance-activity-record > summary { padding: 14px 12px; gap: 10px; flex-wrap: wrap; }
  .maintenance-activity-record time { flex-basis: calc(100% - 100px); font-size: 12px; }
  .maintenance-record-icon { display: none; }
  .maintenance-record-title { order: 3; flex-basis: calc(100% - 30px); }
  .maintenance-record-meter { margin-left: auto; font-size: 12px; }
  .maintenance-activity-record > summary > .maintenance-ui-icon { order: 4; }
}
.maintenance-live-content { gap: 16px; padding-inline: 24px; }
.maintenance-context-strip { padding-block: 14px; margin-bottom: 0; }
.maintenance-context-strip > div:first-child { border-right: 0; }
.maintenance-quick-oil {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "heading heading" "fields fields" "optional actions" "status status";
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
}
.maintenance-quick-oil .maintenance-composer-heading { grid-area: heading; margin-bottom: 8px; }
.maintenance-quick-oil .maintenance-quick-fields { grid-area: fields; align-items: start; }
.maintenance-quick-fields .upload-field { align-content: start; gap: 10px; }
.maintenance-quick-fields input { height: 44px; }
.maintenance-quick-oil .maintenance-optional { grid-area: optional; margin-top: 8px; }
.maintenance-quick-oil .maintenance-composer-actions { grid-area: actions; }
.maintenance-quick-oil .report-status { grid-area: status; margin: 0; }
.maintenance-quick-oil:has(.maintenance-optional[open]) { grid-template-areas: "heading heading" "fields fields" "optional optional" "status status" ". actions"; }
@media (max-width: 700px) {
  .maintenance-quick-oil,
  .maintenance-quick-oil:has(.maintenance-optional[open]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "fields" "optional" "status" "actions"; }
}
 :root[data-theme="light"] .maintenance-ui-icon { filter: none; }

.maintenance-activity .maintenance-quick-oil { padding-block: 18px; }
.maintenance-quick-oil:has(.report-status:empty):not(:has(.maintenance-optional[open])) { grid-template-areas: "heading heading" "fields fields" "optional actions"; }
@media (max-width: 700px) {
  .maintenance-live-content { padding-inline: 0; }
  .maintenance-quick-oil:has(.report-status:empty):not(:has(.maintenance-optional[open])) { grid-template-areas: "heading" "fields" "optional" "actions"; }
}
:root[data-theme="light"] .maintenance-engine-switch button[aria-pressed="true"] { color: #126b64; border-color: #2e8278; }
:root[data-theme="light"] .maintenance-view-action { color: #315db5; }
:root[data-theme="light"] .maintenance-view-action[aria-current="page"] { color: var(--text); }
:root[data-theme="light"] .maintenance-context-strip .is-amber { color: #996200; }
:root[data-theme="light"] .maintenance-context-strip .is-red { color: #b31c16; }

.maintenance-engine-context { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 8px; }
.maintenance-engine-context .maintenance-context-label { margin: 0; }

/* Systems overview keeps specialist tools behind native disclosures. */
.maintenance-systems-heading h2 { margin: 0 0 8px; font-size: 23px; }
.maintenance-systems-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.maintenance-system-group { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 0; }
.maintenance-system-group > summary { display: flex; align-items: center; gap: 20px; padding: 20px; cursor: pointer; list-style: none; }
.maintenance-system-group > summary::-webkit-details-marker { display: none; }
.maintenance-system-group > summary > span:first-child { display: grid; gap: 6px; flex: 1; }
.maintenance-system-group > summary strong { font-size: 18px; font-weight: 600; }
.maintenance-system-group > summary small, .maintenance-system-recency { font-size: 13px; color: var(--muted); }
.maintenance-system-group[open] > summary { border-bottom: 1px solid var(--line); }
.maintenance-system-group[open] > summary > img { transform: rotate(90deg); }
.maintenance-system-group > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.maintenance-system-history { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }
.maintenance-system-history > span { color: var(--muted); font-size: 13px; margin-right: auto; }
.maintenance-system-history button { font-size: 13px; }
.maintenance-system-details { display: grid; gap: 16px; padding: 0 16px 16px; min-width: 0; }
.maintenance-system-details > .maintenance-live-panel { margin: 0; box-shadow: none; }
@media (max-width: 700px) {
  .maintenance-system-group > summary { gap: 12px; padding: 16px; flex-wrap: wrap; }
  .maintenance-system-group > summary > span:first-child { flex-basis: calc(100% - 40px); }
  .maintenance-system-recency { order: 3; width: 100%; }
  .maintenance-system-details { padding: 0 8px 8px; }
}

.maintenance-setup-readiness { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.maintenance-setup-readiness strong { font-size: 16px; }
.maintenance-setup-readiness p, .maintenance-setup-readiness ul { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.maintenance-setup-readiness ul { padding-left: 20px; }
.maintenance-setup-optional > summary { padding: 12px 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.maintenance-setup-optional > summary span { color: var(--muted); font-size: 12px; margin-left: 10px; font-weight: 400; }
.maintenance-setup-optional[open] > summary { margin-bottom: 12px; }
.maintenance-setup-optional > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[data-mx-setup-panel] > .panel-header { flex-wrap: wrap; gap: 16px; }
[data-mx-setup-panel] .maintenance-header-actions { flex-shrink: 0; }
[data-mx-setup-panel] .maintenance-header-actions button { white-space: nowrap; }
.maintenance-plug-usage { display: grid; gap: 8px; margin-top: 16px; }
.maintenance-plug-usage > details { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.maintenance-plug-usage summary { cursor: pointer; }
.maintenance-plug-usage summary > * { display: inline-block; margin-right: 16px; }
.maintenance-plug-usage summary > span { color: var(--muted); }
.maintenance-plug-position-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.maintenance-plug-position-hours dd { margin: 4px 0 0; }
.maintenance-plug-install { display: grid; gap: 12px; }
.maintenance-plug-install > div { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.maintenance-plug-install label { display: grid; gap: 6px; min-width: 0; }
.maintenance-plug-install input { min-width: 0; width: 100%; }
.maintenance-plug-install input[type="checkbox"] { width: 20px; height: 20px; }
[data-mx-plugs-panel] > .panel-header { flex-wrap: wrap; gap: 16px; }
[data-mx-plugs-panel] .maintenance-header-actions { flex-wrap: wrap; }
[data-mx-plugs-panel] .maintenance-header-actions button { white-space: nowrap; }
.maintenance-plug-install > div > label:first-child { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.maintenance-bs-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.maintenance-bs-activity-detail { padding: 16px; }
[data-bs-editor] > .panel-header { flex-wrap: wrap; gap: 16px; }
[data-bs-editor] .maintenance-header-actions { flex-wrap: wrap; }
[data-bs-editor] .maintenance-header-actions button { white-space: nowrap; }
[data-bs-draft-status] { font-weight: 600; color: var(--text); }
[data-bs-editor] > .panel-body { padding: 0 20px 20px; }

.maintenance-kpi-card .maintenance-meter-reading {
  display: block;
  margin-top: 0.3rem;
}

/* Separate CGR monitor timing, opt-in twin aircraft only. */
.cgr-twin-dialog { max-width: min(820px, calc(100vw - 32px)); color: var(--text); }
.cgr-twin-dialog .upload-dialog-card { width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; }
.cgr-twin-field { display: flex; gap: 12px; align-items: center; color: var(--text); margin: 12px 0; }
.cgr-twin-field > span:first-child { flex: 1; overflow-wrap: anywhere; }
.cgr-twin-field small { display: block; color: var(--muted); margin-top: 5px; }
.cgr-twin-field .cgr-sync-offset { width: 100px; font-variant-numeric: tabular-nums; }
.cgr-twin-field select, .cgr-twin-field input { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--text); }
.cgr-sync-stepper { display: inline-flex; align-items: stretch; flex: 0 0 auto; }
.cgr-twin-field .cgr-sync-stepper input { border-radius: 7px 0 0 7px; }
.cgr-sync-step-buttons { display: flex; flex-direction: column; }
.cgr-sync-step-buttons button { width: 30px; min-height: 24px; padding: 0; border: 1px solid var(--line); border-left: 0; background: var(--panel-2); color: var(--text); font: inherit; line-height: 1; cursor: pointer; touch-action: manipulation; }
.cgr-sync-step-buttons button:first-child { border-radius: 0 7px 0 0; }
.cgr-sync-step-buttons button:last-child { border-top: 0; border-radius: 0 0 7px 0; }
.cgr-sync-step-buttons button:hover:not(:disabled) { background: var(--panel); }
.cgr-sync-step-buttons button:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; z-index: 1; }
.cgr-sync-step-buttons button:disabled { opacity: .4; cursor: default; }
.cgr-sync-recordings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cgr-sync-recordings > p { margin: 0; }
.cgr-sync-recordings [data-missing-recordings] { flex-basis: 100%; }
.cgr-sync-recordings-link { background: none; border: 0; padding: 4px 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cgr-sync-recordings-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.cgr-sync-preview { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.cgr-sync-preview canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.cgr-sync-toolbar, .cgr-sync-zoom, .cgr-sync-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cgr-sync-toolbar { justify-content: space-between; margin: 10px 0 4px; }
.cgr-sync-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.cgr-sync-zoom button { min-height: 34px; }
.cgr-sync-zoom [data-zoom-in], .cgr-sync-zoom [data-zoom-out] { min-width: 36px; font-size: 18px; }
.cgr-sync-range { justify-content: space-between; color: var(--muted); font-size: 12px; }
.cgr-sync-range output { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cgr-sync-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 12px; }
.cgr-sync-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cgr-sync-legend i { display: inline-block; width: 22px; border-top: 2px solid; }
.cgr-twin-action { display: inline-flex; align-items: center; gap: 8px; }
.cgr-twin-action small { color: var(--muted); }
@media(max-width: 600px) { .cgr-twin-field { flex-wrap: wrap; } .cgr-twin-field > span:first-child { flex-basis: 100%; } .cgr-twin-action small { display:none; } }
.cgr-separate-toggle, .cgr-reprocess-flight { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
[data-cgr-twin-config] { grid-column: 1 / -1; }
.cgr-twin-dialog footer { position: sticky; bottom: -22px; background: var(--panel); padding: 14px 0; }
