#propeller-lab {
  color-scheme: light;
  --page: var(--bg);
  --surface: var(--panel);
  --soft: #e8f3f1;
  --active: var(--accent);
  --active-ink: #ffffff;
  --p: #a94626;
  --s: #0d687d;
  --t: #82600c;
  --g: #7557a8;
  color: var(--ink);
  background: var(--page);
  padding: 28px 32px 32px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.5;
}
#propeller-lab *, #propeller-lab *::before, #propeller-lab *::after {box-sizing: border-box;}
#propeller-lab button, #propeller-lab input, #propeller-lab select {font: inherit;}
#propeller-lab button {cursor: pointer; min-height: 44px;}
#propeller-lab button:focus-visible, #propeller-lab input:focus-visible, #propeller-lab select:focus-visible, #propeller-lab summary:focus-visible, #propeller-lab a:focus-visible {outline: 3px solid var(--active); outline-offset: 3px;}
#propeller-lab button {color: inherit;}
#propeller-lab h1, #propeller-lab h2, #propeller-lab h3, #propeller-lab p {margin: 0;}
#propeller-lab h1 {font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.2; letter-spacing: -1.25px;}
#propeller-lab h2 {font-size: 15px; font-weight: 500;}
#propeller-lab h3 {font-size: 15px; font-weight: 500;}
#propeller-lab strong {font-weight: 500;}
#propeller-lab .lab-eyebrow {font-size: 10px; letter-spacing: 1.5px; font-weight: 500; color: var(--muted);}
#propeller-lab .lab-app-header {display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line);}
#propeller-lab .lab-brand {display: flex; gap: 8px; align-items: center; font-size: 14px; letter-spacing: 1.5px; font-weight: 500;}
#propeller-lab .lab-brand-mark {width: 26px; height: 26px; border-radius: 7px; background: var(--active); color: var(--active-ink); display: grid; place-items: center; font-size: 17px; font-style: italic;}
#propeller-lab .lab-brand-light {font-weight: 400; color: var(--muted);}
#propeller-lab .lab-brand-divider {height: 15px; width: 1px; background: var(--line); margin: 0 8px;}
#propeller-lab .quiet-button {display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 5px 0; color: var(--muted); font-size: 12px; white-space: nowrap;}
#propeller-lab .quiet-button:hover {color: var(--ink);}
#propeller-lab .intro {display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 27px 0 25px;}
#propeller-lab .intro-label {margin-bottom: 9px;}
#propeller-lab .intro p {margin-top: 9px; color: var(--muted); font-size: 13px;}
#propeller-lab .scenario-switch {display: flex; gap: 3px; padding: 4px; background: var(--soft); border-radius: 9px; flex-shrink: 0;}
#propeller-lab .scenario-switch button {padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 12px; white-space: nowrap;}
#propeller-lab .scenario-switch button[aria-pressed="true"] {background: var(--surface); color: var(--active); box-shadow: 0 1px 4px #0000000b;}
#propeller-lab .workspace {display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface);}
#propeller-lab .scene-panel {min-width: 0; background: #101d2c; color: #e0ebf2; display: flex; flex-direction: column;}
#propeller-lab .scene-heading {display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 22px 0; font-size: 10px; letter-spacing: 1.5px; color: #b2c4d3;}
#propeller-lab .scene-heading>span:first-child {display: flex; gap: 7px; align-items: center;}
#propeller-lab .live-dot {width: 5px; height: 5px; border-radius: 50%; background: #8cc8b0;}
#propeller-lab .scene-model {font-size: 11px; letter-spacing: 0; color: #92a7b9;}
#propeller-lab .canvas-area {position: relative; flex: 1; min-height: 463px;}
#propeller-lab canvas {display: block; width: 100%; height: 100%; position: absolute; inset: 0; touch-action: none; cursor: grab;}
#propeller-lab canvas:active {cursor: grabbing;}
#propeller-lab .scene-status {position: absolute; left: 22px; top: 18px; display: flex; gap: 12px; font-size: 11px; color: #adbfce; pointer-events: none;}
#propeller-lab .scene-rpm {color: #7690a5; font-variant-numeric: tabular-nums;}
#propeller-lab .scene-bottom {position: absolute; left: 18px; right: 18px; bottom: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px;}
#propeller-lab .view-switch {display: flex; background: #192a3c; padding: 3px; border-radius: 8px;}
#propeller-lab .view-switch button {font-size: 11px; border: 0; border-radius: 5px; background: transparent; padding: 6px 12px; color: #9bb0c1;}
#propeller-lab .view-switch button[aria-pressed="true"] {background: #33495d; color: #eaf2f6;}
#propeller-lab .motion-button {background: transparent; border: 0; padding: 6px 5px; color: #a1b8ca; font-size: 11px;}
#propeller-lab .orbit-hint {position: absolute; left: 22px; bottom: 80px; font-size: 10px; color: #7e98ad; pointer-events: none;}
#propeller-lab .result-strip {display: grid; grid-template-columns: 1.04fr 1fr 1fr; padding: 17px 22px 19px; border-top: 1px solid #293849; gap: 18px;}
#propeller-lab .result-strip>div {min-width: 0;}
#propeller-lab .result-strip>div>div {display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap;}
#propeller-lab .result-label {font-size: 9px; letter-spacing: 1.3px; color: #8fa7ba;}
#propeller-lab .result-strip strong {font-size: 23px; line-height: 1.2; letter-spacing: -.5px; font-variant-numeric: tabular-nums;}
#propeller-lab .result-strip [data-net-yaw-value], #propeller-lab .result-strip [data-net-roll-value] {font-size: 11px; color: #a1b8ca; font-variant-numeric: tabular-nums;}
#propeller-lab .result-caption {font-size: 10px; color: #8fa7ba; display: block; margin-top: 5px;}
#propeller-lab .control-panel {padding: 20px 22px 18px; min-width: 0;}
#propeller-lab .control-heading {display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 22px;}
#propeller-lab .control-heading h2 {font-size: 14px;}
#propeller-lab .control-heading>span {font-size: 10px; padding: 2px 7px; color: var(--active); background: var(--soft); border-radius: 4px;}
/* The application uses uppercase label spans; the simulator has nested labels. */
#propeller-lab label span {display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; text-transform: none;}
#propeller-lab .slider-control {display: block; margin-bottom: 18px;}
#propeller-lab .control-label {display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; margin-bottom: 8px;}
#propeller-lab .symbol {color: var(--muted); margin-left: 3px;}
#propeller-lab output {font-size: 12px; font-variant-numeric: tabular-nums; color: var(--active); font-weight: 500; white-space: nowrap;}
#propeller-lab input[type="range"] {width: 100%; accent-color: var(--active); display: block; margin: 0; height: 16px; cursor: ew-resize;}
#propeller-lab .range-labels {display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); margin-top: 5px;}
#propeller-lab .pitch-insight {font-size: 11px; color: var(--muted); margin-top: -5px; margin-bottom: 12px; min-height: 33px;}
#propeller-lab .maneuver-button {width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--soft); color: var(--active); font-size: 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px;}
#propeller-lab .maneuver-button:hover {border-color: var(--active);}
#propeller-lab .control-divider {height: 1px; background: var(--line); margin: 18px 0;}
#propeller-lab .advanced-controls {border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px;}
#propeller-lab .advanced-controls summary {min-height: 44px; padding: 12px 0; font-size: 11px; color: var(--muted); cursor: pointer; margin-bottom: 15px;}
#propeller-lab .advanced-controls .slider-control {margin-bottom: 16px;}
#propeller-lab .select-control {font-size: 11px; display: block;}
#propeller-lab .small-note {color: var(--muted); font-size: 10px; display: inline-block; margin-left: 3px;}
#propeller-lab select {display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); color: var(--ink); margin-top: 8px; padding: 8px 6px; font-size: 11px;}
#propeller-lab .effects-heading {display: flex; align-items: center; gap: 16px; margin: 23px 0 12px;}
#propeller-lab .effects-heading h2 {font-size: 13px;}
#propeller-lab .all-effects {background: transparent; border: 0; padding: 2px 0; font-size: 11px; color: var(--muted);}
#propeller-lab .all-effects[aria-pressed="true"] {color: var(--active); text-decoration: underline; text-underline-offset: 4px;}
#propeller-lab .effects-heading-note {margin-left: auto; font-size: 10px; color: var(--muted);}
#propeller-lab .effect-grid {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;}
#propeller-lab .effect-button {background: var(--surface); border: 1px solid var(--line); border-radius: 9px; text-align: left; padding: 14px 15px; display: block; min-width: 0;}
#propeller-lab .effect-button:hover {background: var(--soft);}
#propeller-lab .effect-button[aria-pressed="true"] {border-color: var(--active); box-shadow: inset 0 0 0 1px var(--active); background: var(--soft);}
#propeller-lab .effect-title {display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500;}
#propeller-lab .effect-dot {width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--effect);}
#propeller-lab .effect-p {--effect: var(--p);} #propeller-lab .effect-s {--effect: var(--s);} #propeller-lab .effect-t {--effect: var(--t);} #propeller-lab .effect-g {--effect: var(--g);}
#propeller-lab .effect-number {margin-left: auto; font-size: 9px; color: var(--muted); font-weight: 400;}
#propeller-lab .effect-subtitle {display: block; font-size: 11px; color: var(--muted); padding-top: 5px;}
#propeller-lab .effect-result {display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; padding-top: 13px; font-variant-numeric: tabular-nums;}
#propeller-lab .effect-result>span:first-child {color: var(--effect);}
#propeller-lab .effect-result>span:last-child {color: var(--muted); white-space: nowrap;}
#propeller-lab .selected-insight {display: flex; align-items: baseline; gap: 10px; padding: 16px 2px 13px; font-size: 12px; color: var(--muted);}
#propeller-lab .insight-marker {width: 5px; height: 5px; background: var(--active); border-radius: 50%; flex-shrink: 0; position: relative; top: -1px;}
#propeller-lab .lab-app-footer {display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted);}
#propeller-lab .lab-sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;}
#propeller-lab dialog {background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 26px; max-width: 580px; width: calc(100% - 32px); max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 90px #00000033;}
#propeller-lab dialog::backdrop {background: #07141acc;}
#propeller-lab .dialog-heading {display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px;}
#propeller-lab dialog h2 {font-size: 23px; letter-spacing: -.6px; line-height: 1.25; margin-bottom: 16px;}
#propeller-lab dialog p {font-size: 12px; color: var(--muted); margin-bottom: 14px;}
#propeller-lab dialog h3 {margin: 21px 0 10px;}
#propeller-lab .model-specs {margin: 16px 0; font-size: 11px;}
#propeller-lab .model-specs>div {display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);}
#propeller-lab .model-specs dt {color: var(--muted);} #propeller-lab .model-specs dd {margin: 0; text-align: right;}
#propeller-lab .source-link {font-size: 12px; color: var(--active); text-underline-offset: 3px;}
@media (max-width: 1100px) {
  #propeller-lab {padding: 20px 24px 18px;}
  #propeller-lab .intro {flex-wrap: wrap; gap: 17px;}
  #propeller-lab .workspace {grid-template-columns: minmax(0, 1fr) 266px;}
  #propeller-lab .control-panel {padding: 20px 18px 18px;}
  #propeller-lab .effect-button {padding: 13px 12px;}
  #propeller-lab .effect-number {display: none;}
  #propeller-lab .effect-title {font-size: 11px;}
}
@media (max-width: 760px) {
  #propeller-lab {padding: 16px;}
  #propeller-lab .lab-app-header {padding-bottom: 16px;}
  #propeller-lab .lab-brand .lab-eyebrow, #propeller-lab .lab-brand-divider {display: none;}
  #propeller-lab .intro {padding: 23px 0 20px;}
  #propeller-lab .workspace {grid-template-columns: minmax(0, 1fr);}
  #propeller-lab .canvas-area {min-height: 430px;}
  #propeller-lab .control-panel {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; padding: 20px;}
  #propeller-lab .control-heading {grid-column: 1/-1; margin-bottom: 20px;}
  #propeller-lab .slider-control {margin-bottom: 20px;}
  #propeller-lab .pitch-insight {grid-column: 1; min-height: 0; margin-top: -4px;}
  #propeller-lab .maneuver-button {grid-column: 2; align-self: start; margin-top: -4px;}
  #propeller-lab .control-divider {grid-column: 1/-1; margin: 8px 0 18px;}
  #propeller-lab .advanced-controls {grid-column: 1/-1;}
  #propeller-lab .advanced-controls[open] {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px;}
  #propeller-lab .advanced-controls summary {grid-column: 1/-1;}
  #propeller-lab .effect-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
  #propeller-lab .effect-title {font-size: 12px;}
  #propeller-lab .effect-number {display: inline;}
  #propeller-lab .effects-heading {flex-wrap: wrap; gap: 10px 18px;}
  #propeller-lab .effects-heading-note {flex-basis: 100%; margin-left: 0;}
  #propeller-lab .lab-app-footer {flex-wrap: wrap; gap: 4px;}
}
@media (max-width: 420px) {
  #propeller-lab {padding: 14px 10px;}
  #propeller-lab .lab-brand {font-size: 12px;}
  #propeller-lab .quiet-button {font-size: 11px; gap: 6px;}
  #propeller-lab h1 {font-size: 27px; letter-spacing: -.9px;}
  #propeller-lab .intro p {font-size: 12px;}
  #propeller-lab .scenario-switch {width: 100%; justify-content: space-between;}
  #propeller-lab .scenario-switch button {flex: 1; padding: 8px 6px;}
  #propeller-lab .scene-heading {padding: 16px 14px 0; letter-spacing: 1px;}
  #propeller-lab .scene-model {font-size: 9px;}
  #propeller-lab .canvas-area {min-height: 370px;}
  #propeller-lab .scene-status {left: 14px; top: 13px; font-size: 10px;}
  #propeller-lab .scene-bottom {left: 10px; right: 10px; bottom: 12px; gap: 6px;}
  #propeller-lab .view-switch button {padding: 7px 9px;}
  #propeller-lab .motion-button {font-size: 10px;}
  #propeller-lab .orbit-hint {left: 14px; top: 38px; bottom: auto;}
  #propeller-lab .result-strip {padding: 15px 14px; gap: 12px;}
  #propeller-lab .result-label {font-size: 8px; letter-spacing: .7px;}
  #propeller-lab .result-strip strong {font-size: 20px;}
  #propeller-lab .result-strip>div>div {gap: 2px;}
  #propeller-lab .result-strip [data-net-yaw-value], #propeller-lab .result-strip [data-net-roll-value] {font-size: 10px;}
  #propeller-lab .result-caption {font-size: 9px;}
  #propeller-lab .control-panel {padding: 18px 14px; gap: 0 16px;}
  #propeller-lab .control-label {font-size: 11px; gap: 4px;}
  #propeller-lab .range-labels {font-size: 9px;}
  #propeller-lab .pitch-insight {font-size: 10px;}
  #propeller-lab .maneuver-button {font-size: 10px; padding: 8px;}
  #propeller-lab .advanced-controls[open] {grid-template-columns: 1fr;}
  #propeller-lab .small-note {font-size: 10px;}
  #propeller-lab .effect-button {padding: 13px 11px;}
  #propeller-lab .effect-title {font-size: 11px; gap: 5px;}
  #propeller-lab .effect-number {display: none;}
  #propeller-lab .effect-subtitle {font-size: 10px;}
  #propeller-lab .effect-result {font-size: 10px; gap: 3px;}
  #propeller-lab .selected-insight {font-size: 11px;}
}
@media (pointer: coarse) {
  #propeller-lab button {min-height: 44px;}
  #propeller-lab input[type="range"] {min-height: 32px;}
  #propeller-lab select {min-height: 44px; font-size: 16px;}
  #propeller-lab .advanced-controls summary {min-height: 44px; padding-top: 12px;}
}

/* Aero Lab is a top-level destination alongside Collections. */
.main-navigation {display: flex; align-items: center; gap: 6px;}
.main-navigation .text-button {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; text-decoration: none; white-space: nowrap;}
.main-navigation .text-button.active,
.main-navigation .text-button[aria-current="page"] {background: #e8f3f1; color: var(--accent-strong);}
.main-navigation .text-button:focus-visible,
.aero-app-card:focus-visible,
.aero-breadcrumb a:focus-visible,
.aero-breadcrumb button:focus-visible {outline: 3px solid var(--accent); outline-offset: 3px;}
#aeroLabView {padding: 28px 32px 32px; min-width: 0;}
.aero-lab-heading {margin-bottom: 26px; max-width: 720px;}
.aero-lab-heading h1,
.aero-lab-heading h2 {margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.8px; line-height: 1.2;}
.aero-lab-heading > p:last-child {margin: 0; color: var(--muted); line-height: 1.6;}
.aero-app-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; max-width: 1000px;}
.aero-app-card {display: block; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 26px; text-decoration: none; transition: border-color 150ms, box-shadow 150ms;}
.aero-app-card:hover {border-color: var(--accent); box-shadow: var(--shadow);}
.aero-app-icon {display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; background: #e8f3f1; color: var(--accent); border-radius: 10px; font-size: 26px;}
.aero-app-icon svg {width: 28px; height: 28px;}
.aero-app-card h2,
.aero-app-card h3 {margin: 0 0 10px; font-size: 22px; letter-spacing: -.4px;}
.aero-app-card p {margin: 0 0 22px; color: var(--muted); line-height: 1.6;}
.aero-app-card .eyebrow {margin: 0 0 8px; font-size: 11px;}
.aero-app-card .aero-app-launch {display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 650;}
.aero-load-status {margin: 20px 32px 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel);}
#aircraftForcesRetry {min-height: 44px; margin: 0 32px 24px;}
.aero-breadcrumb {display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 32px 0; color: var(--muted); font-size: 13px;}
.aero-breadcrumb a,
.aero-breadcrumb button {display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none;}
.aero-breadcrumb a:hover {text-decoration: underline; text-underline-offset: 3px;}
@media (max-width: 640px) {
  .main > .app-header {flex-wrap: wrap; gap: 8px 14px;}
  .main > .app-header > .brand {order: 1;}
  .main > .app-header > .account-menu {order: 2;}
  .main > .app-header > .main-navigation {order: 3; flex-basis: 100%; width: 100%; padding-top: 6px;}
  .main-navigation .text-button {flex: 1;}
  #aeroLabView {padding: 24px 16px 32px;}
  .aero-app-card {padding: 22px;}
  .aero-breadcrumb {padding: 12px 16px 0;}
  .aero-load-status {margin: 20px 16px 12px; padding: 16px;}
  #aircraftForcesRetry {margin: 0 16px 24px;}
}
@media (prefers-reduced-motion: reduce) {
  .aero-app-card {transition: none;}
}
