.e6b { max-width: 1120px; }
.e6b-switch {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1rem 0;
  border: 1px solid #c5dbd3; border-radius: .75rem; padding: .6rem 1rem;
}
.e6b-switch legend, .e6b label { font-weight: 700; }
.e6b-switch label { display: inline-flex; gap: .35rem; align-items: center; min-height: 44px; }
.e6b-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.e6b-graphic, .e6b-panel {
  min-width: 0; padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid #d2e5de; border-radius: 1rem; background: white;
}
.e6b canvas { display: block; width: min(100%, 400px); height: auto; margin: 0 auto 1rem; }
.e6b-graphic label, .e6b-panel label { display: grid; gap: .3rem; }
.e6b-graphic label + label { margin-top: .65rem; }
.e6b input[type="range"] { width: 100%; min-height: 30px; margin: 0; accent-color: var(--pine); }
.e6b input[type="radio"] { accent-color: var(--pine); }
.e6b-panel { display: grid; gap: .85rem; justify-items: start; }
.e6b-fields { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.e6b-panel input, .e6b-panel select { width: 100%; min-width: 0; min-height: 44px; font: inherit; padding: .35rem; }
.e6b-panel .button { white-space: normal; }
.e6b-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.e6b-result { padding: .65rem .85rem; background: #e1f3ed; border-radius: .5rem; font-weight: 700; }
.e6b-result:empty { display: none; }
@media (max-width: 760px) {
  .e6b-layout { grid-template-columns: minmax(0, 1fr); }
}

.runway-tool { padding-top: 0; }
.runway-tool > p { margin: .4rem 0 1rem; }
.runway-map { position: relative; max-width: 400px; margin: 0 auto; }
.runway-map canvas { border-radius: .75rem; background: #0c4261; }
.runway-sock { position: absolute; left: 16%; top: 20%; width: 18%; pointer-events: none; }
.runway-sock g { transform-origin: 12px 35px; }
@media (prefers-reduced-motion: no-preference) {
  .runway-sock g { transition: transform .2s ease-out; }
}
.runway-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.runway-options [aria-pressed="true"] { background: var(--pine); color: white; }
.runway-note { font-size: .9rem; color: #375b56; }

#triangle-layout canvas { width: 100%; border-radius: .75rem; background: #10364a; }
#triangle-layout input[type="range"] { padding: 0; accent-color: var(--pine); }
.triangle-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; font-size: .9rem; }
.triangle-key span { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 50%; }
.triangle-air { background: #1b78b5; }
.triangle-wind { background: #d17621; }
.triangle-ground { background: #218160; }

.tool-jumps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .6rem; max-width: 1120px; margin-block: 1.1rem 0;
}
.tool-jumps a {
  display: flex; align-items: center; gap: .6rem; min-height: 46px;
  padding: .55rem .8rem; border: 1px solid #c5dbd3; border-radius: .65rem;
  background: white; color: var(--pine);
}
.tool-jumps a:is(:hover, :focus-visible) { background: var(--mint); }
.tool-jumps svg { flex: none; }

#descent-layout canvas { width: 100%; border-radius: .75rem; background: #10364a; }

#descent-layout input[type="range"] { padding: 0; min-height: 30px; }
#descent-layout output { color: var(--pine); font-variant-numeric: tabular-nums; }
#descent-layout .descent-position { display: flex; align-items: center; gap: .5rem; }
#descent-layout input[type="checkbox"] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--pine); }

.tool-return { display: flex; justify-content: flex-end; margin-top: 1rem; }
.tool-return a { display: inline-flex; align-items: center; gap: .45rem; }
.converter-panel { width: 100%; }
.converter-fields, .converter-results {
  display: grid; width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .75rem;
}
.converter-fields label { min-width: 0; }
.converter-results { margin: 0; }
.converter-results > div {
  padding: .8rem 1rem; border-radius: .65rem; background: #e6f4ee; overflow-wrap: anywhere;
}
.converter-results dt { font-size: .9rem; }
.converter-results dd { margin: 0; color: var(--pine); font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; }
#converter-status:empty { display: none; }

.fuel-layout select { max-width: 100%; }
.fuel-summary { gap: .65rem; }
.fuel-total {
  display: grid; gap: .15rem; width: 100%; padding: 1rem;
  border-radius: .7rem; background: #10364a; color: white;
}
.fuel-total output { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 750; }
.fuel-meter { display: flex; width: 100%; min-height: .75rem; overflow: hidden; border-radius: 999px; background: #e6f4ee; }
.fuel-meter span { flex-basis: 0; }
.fuel-parts { margin: 0; width: 100%; }
.fuel-parts > div { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #d2e5de; }
.fuel-parts dt { display: flex; align-items: center; gap: .45rem; }
.fuel-parts dd { margin: 0; font-weight: 700; text-align: right; }
.fuel-parts dt span { width: .65rem; height: .65rem; flex: none; border-radius: 50%; }
#fuel-status:empty { display: none; }

.fuel-label { display: inline-flex; align-items: center; gap: .4rem; color: var(--pine); }
.fuel-label svg { flex: none; }
.fuel-controls { align-items: end; }
