:root {
  --bg: #f6f7f4;
  --ink: #17201c;
  --muted: #66736c;
  --line: #d9ded8;
  --panel: #ffffff;
  --field: #f9faf8;
  --accent: #00796f;
  --accent-weak: #d8efea;
  --ok: #137333;
  --warn: #a05d00;
  --fail: #b3261e;
  --no-go: #5f1b1b;
  --shadow: 0 18px 40px rgba(23, 32, 28, 0.08);
  --split-screen-scale: 1;
  --split-screen-width: 100%;
  --split-screen-min-height: 100svh;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.feature-hidden {
  display: none !important;
}

.standard-view-hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 0;
}

.input-panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-row,
.status-row,
.quick-row,
.metric-row,
.limit-strip {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.06;
}

h2 {
  font-size: 38px;
  line-height: 1.1;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.freshness {
  min-width: 94px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.feature-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 2px 0 4px;
}

.feature-tab {
  min-width: 0;
  min-height: 40px;
  padding: 0 5px;
  border-color: #cbd3ce;
  background: #f9faf8;
  color: #3f4d46;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.feature-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.feature-tab.is-active:hover {
  color: #ffffff;
}

.operation-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.operation-context > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.operation-context span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.operation-context strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.operation-context button {
  min-height: 34px;
  padding: 0 10px;
  color: #46534d;
  font-size: 12px;
  font-weight: 800;
}

.standards-mode-panel {
  display: grid;
}

.standard-view-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f2f5f2;
}

.standard-view-control label {
  display: block;
  color: #49564f;
}

.standard-view-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.standard-view-control span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.standard-view-control input:checked + span {
  background: var(--accent);
  color: #fff;
}

.standards-query-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.standards-query-head,
.standards-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.standards-query-head h3,
.standards-result-head h3 {
  margin-bottom: 0;
}

.standards-query-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.standards-query-head > span,
.standards-result-head > span {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 5px 8px;
  background: #eef3ef;
  color: #4b5a52;
  font-size: 12px;
  font-weight: 850;
}

.standard-suggestions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.standard-suggestions button {
  min-height: 34px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}

.standards-version-caveat {
  color: #5f6d66;
}

.fuel-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.fuel-panel-head p,
.fuel-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.fuel-grid-primary {
  padding-bottom: 2px;
}

.fuel-input-section,
.fuel-result-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.fuel-input-section > summary,
.fuel-result-section > summary {
  cursor: pointer;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.fuel-full-label {
  margin-bottom: 10px;
}

.fuel-inline-check {
  align-self: end;
  min-height: 44px;
  justify-content: flex-start;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.segment-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) minmax(110px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6f4;
}

.segment-checks > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segment-checks .checkbox-line {
  min-height: 36px;
  padding: 8px 10px;
  background: white;
}

.segment-checks small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.4;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input[type="text"] {
  padding: 0 12px;
}

select:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

.full-width-label {
  grid-column: 1 / -1;
}

.flysmart-entry {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #2b3940;
  border-radius: 8px;
  background: #30383e;
  color: #eef5f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.flysmart-entry label {
  color: #dfe7e4;
}

.flysmart-entry input[type="text"],
.flysmart-entry input[type="number"] {
  min-height: 52px;
  border-color: #1f292e;
  background: #172126;
  color: #f6fbfa;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.segment-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #1c282d;
  border-radius: 8px;
  background: #e7eceb;
}

.segment-control label {
  display: block;
  color: #4f5b5f;
}

.segment-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-control span {
  display: grid;
  min-height: 42px;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}

.segment-control input:checked + span {
  background: linear-gradient(#4eb8da, #1493bd);
  color: white;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.wind-parts {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 12px minmax(62px, 0.9fr) 30px minmax(62px, 0.9fr);
  gap: 8px;
  align-items: end;
}

.wind-parts label {
  min-width: 0;
}

.wind-parts input[type="number"] {
  padding: 0 8px;
}

.wind-separator {
  min-height: 52px;
  display: grid;
  place-items: center;
  color: #eef5f3;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.format-hint {
  margin: 0;
  color: #d2ddd9;
  font-size: 13px;
  line-height: 1.5;
}

.minima-entry {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.minima-entry legend {
  padding: 0 4px;
}

.mel-query-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mel-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.mel-flow-strip span {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 6px;
}

.mel-usage-rule {
  margin: 0 0 10px;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  background: #f3f8f6;
  color: #41534a;
  font-size: 12px;
  line-height: 1.55;
  padding: 8px 10px;
}

.mel-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.mel-select-grid .full-width-label {
  margin-bottom: 0;
}

.mel-query-panel .mel-input-hint {
  margin: 0;
}

.mel-query-panel label {
  margin-bottom: 6px;
}

.minima-entry legend .checkbox-line {
  min-height: 38px;
  padding: 8px 10px;
  background: var(--panel);
}

.minima-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #cfe2dd;
  border-radius: 8px;
  background: #f4faf8;
}

#minimaGuideTitle {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.minima-guide p {
  margin: 4px 0 0;
  color: #4d5f57;
  font-size: 13px;
  line-height: 1.5;
}

.minima-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.minima-input-state {
  color: #4d5f57;
  font-size: 12px;
  font-weight: 750;
}

.minima-guide-tag {
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.minima-guide-tag.required {
  background: #e5f3ef;
  color: var(--accent);
}

.minima-guide-tag.optional {
  background: #fff4df;
  color: var(--warn);
}

.minima-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.minima-field-hidden {
  display: none !important;
}

.minima-field-required {
  border-color: #cfe2dd;
}

.minima-field-required > span:first-child::after {
  content: " *";
  color: var(--accent);
  font-weight: 900;
}

.minima-field-optional > span:first-child::after {
  content: " 复核";
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
}

.minima-field-choice > span:first-child::after {
  content: " 二选一";
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.minima-grid .wide {
  grid-column: 1 / -1;
}

.checkbox-line {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.inline-check {
  min-height: 44px;
  align-self: end;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

select:disabled {
  color: #9aa29e;
  background: #eef1ed;
}

.quick-row {
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status-row {
  gap: 16px;
  animation: rise-in 220ms ease-out both;
}

.status-badge {
  min-width: 92px;
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.status-badge.ok {
  background: var(--ok);
}

.status-badge.caution {
  background: var(--warn);
}

.status-badge.fail {
  background: var(--fail);
}

.status-badge.no-go {
  background: var(--no-go);
}

.visual-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: stretch;
}

.wind-card,
.runway-visual {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wind-card {
  min-height: 260px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.wind-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wind-card strong {
  max-width: 100%;
  font-size: 38px;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wind-card small,
.wind-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.runway-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(0deg, #8c9291 0, #808786 6px, #979d9a 12px);
}

.runway-strip {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 96px;
  transform: translateX(-50%);
  border: 2px solid #202524;
  background: #141716;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.runway-line {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 7px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(0deg, #f7f7f2 0, #f7f7f2 28px, transparent 28px, transparent 54px);
}

.threshold {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 9px;
  background: repeating-linear-gradient(90deg, #f6f6f0 0, #f6f6f0 8px, transparent 8px, transparent 14px);
}

.threshold.top {
  top: 8px;
}

.threshold.bottom {
  bottom: 8px;
}

.runway-number {
  position: absolute;
  left: 0;
  right: 0;
  color: #f6f6f0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.runway-number.top {
  top: 42px;
  transform: rotate(180deg);
}

.runway-number.bottom {
  bottom: 42px;
}

.qfu-readout {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 800;
}

.component {
  position: absolute;
  z-index: 2;
  color: #1cc847;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.component::before,
.component::after {
  content: "";
  position: absolute;
  display: block;
}

.component-cross {
  top: 47%;
  width: 34%;
  height: 4px;
  background: #1cc847;
}

.component-cross span {
  position: absolute;
  top: -26px;
  white-space: nowrap;
}

.component-cross.from-left {
  left: 13%;
}

.component-cross.from-left::after {
  right: -2px;
  top: -7px;
  border-left: 13px solid #1cc847;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.component-cross.from-left span {
  right: -56px;
}

.component-cross.from-right {
  right: 13%;
}

.component-cross.from-right::after {
  left: -2px;
  top: -7px;
  border-right: 13px solid #1cc847;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.component-cross.from-right span {
  left: -56px;
}

.component-cross.calm {
  left: 33%;
  right: 33%;
  width: auto;
  background: #6d7673;
}

.component-cross.calm span {
  left: 50%;
  transform: translateX(-50%);
}

.component-longitudinal {
  left: calc(50% + 68px);
  width: 4px;
  height: 25%;
  background: #1cc847;
}

.component-longitudinal span {
  position: absolute;
  left: 12px;
  white-space: nowrap;
}

.component-longitudinal.headwind {
  top: 18%;
}

.component-longitudinal.headwind::after {
  left: -7px;
  bottom: -2px;
  border-top: 13px solid #1cc847;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}

.component-longitudinal.headwind span {
  bottom: -24px;
}

.component-longitudinal.tailwind {
  bottom: 18%;
}

.component-longitudinal.tailwind::after {
  left: -7px;
  top: -2px;
  border-bottom: 13px solid #1cc847;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}

.component-longitudinal.tailwind span {
  top: -24px;
}

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

.metric,
.limit-strip > div,
.source-block,
.wind-detail-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  min-height: 126px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric span,
.limit-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  font-size: 38px;
  line-height: 1;
}

.metric small,
.limit-strip small {
  color: var(--muted);
}

.limit-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.limit-strip > div {
  min-height: 90px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.limit-strip strong {
  font-size: 24px;
}

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

.message {
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.message.warn {
  border-color: #dfb36f;
  background: #fff7e8;
}

.message.fail,
.message.no-go {
  border-color: #e2aaa5;
  background: #fff0ef;
}

.decision-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  align-items: baseline;
  padding: 13px 14px;
  border: 1px solid #cfe2dd;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f4faf8;
}

.decision-summary > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.decision-summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.decision-summary small {
  grid-column: 2;
  color: #52635b;
  font-size: 12px;
  line-height: 1.45;
}

.decision-summary.is-caution {
  border-color: #e7c58c;
  border-left-color: var(--warn);
  background: #fff8eb;
}

.decision-summary.is-fail,
.decision-summary.is-no-go {
  border-color: #e2aaa5;
  border-left-color: var(--fail);
  background: #fff2f1;
}

.minima-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.fuel-result {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.fuel-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fuel-result-head h3 {
  margin: 0;
}

.fuel-result-head span {
  border-radius: 8px;
  padding: 6px 10px;
  background: #eef3ef;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.fuel-result-head span.fail,
.fuel-result-head span.no-go {
  color: var(--fail);
}

.fuel-result-head span.caution {
  color: var(--warn);
}

.fuel-result-head span.ok {
  color: var(--ok);
}

.fuel-summary {
  margin: 0;
  color: #425149;
  font-size: 14px;
  line-height: 1.55;
}

.fuel-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.fuel-totals > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fuel-totals span,
.fuel-totals small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.fuel-totals strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.fuel-result-section table td:first-child {
  width: 28%;
  font-weight: 750;
}

.fuel-result-section table td:nth-child(2) {
  width: 24%;
  white-space: nowrap;
}

.fuel-result-section p {
  margin: 6px 0;
  color: #3f4d46;
  font-size: 13px;
  line-height: 1.55;
}

.fuel-boundary-note {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-weight: 750;
}

.fuel-state-title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.fuel-state-minimum {
  color: var(--warn);
}

.fuel-state-emergency {
  color: var(--fail);
}

.fuel-result-section ol,
.fuel-result-section ul {
  margin: 6px 0 0;
  padding-left: 22px;
  color: #3f4d46;
  font-size: 13px;
  line-height: 1.6;
}

.standards-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.standards-result-head {
  align-items: center;
  margin-bottom: 10px;
}

.standards-result-head > span.ok {
  background: var(--accent-weak);
  color: var(--accent);
}

.standards-result-head > span.warn {
  background: #fff4df;
  color: var(--warn);
}

.standard-version-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.standard-version-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.standard-version-row strong {
  color: var(--ink);
  font-size: 13px;
}

.standard-version-row span:last-child {
  white-space: nowrap;
}

.standards-summary {
  margin: 8px 0 10px;
  color: #4b5b53;
  font-size: 13px;
  line-height: 1.55;
}

.standards-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.standard-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.standard-item.is-revision {
  border-left: 4px solid var(--accent);
}

.standard-item-title {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.standard-item-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.standard-item-tags {
  margin-top: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.standard-item-snippet {
  margin-top: 8px;
  padding: 8px 9px;
  border-left: 3px solid #bdd8d1;
  background: #f2f7f5;
  color: #2f3e36;
  font-size: 13px;
  line-height: 1.55;
}

.standard-item-fulltext {
  margin: 8px 0 0;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d2ded9;
  border-radius: 6px;
  background: #eef2ef;
  color: #243028;
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.minima-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.minima-result-head h3 {
  margin-bottom: 0;
}

.minima-result-head span {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent-weak);
  color: var(--accent);
}

.minima-result-head span.fail,
.minima-result-head span.no-go {
  background: #fff0ef;
  color: var(--fail);
}

.minima-result-head span.caution {
  background: #fff7e8;
  color: var(--warn);
}

.minima-summary {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8faf7;
  color: #425149;
  font-size: 14px;
  line-height: 1.55;
}

.minima-summary.fail,
.minima-summary.no-go {
  border-color: #e2aaa5;
  background: #fff0ef;
  color: var(--fail);
  font-weight: 750;
}

.minima-summary.caution {
  border-color: #e7c58c;
  background: #fff7e8;
  color: #7d4a00;
}

.minima-row.status-fail td {
  background: #fff7f6;
}

.minima-row.status-warn td {
  background: #fffbf2;
}

.minima-result td.status-ok {
  color: var(--ok);
  font-weight: 800;
}

.minima-result td.status-fail {
  color: var(--fail);
  font-weight: 800;
}

.minima-result td.status-warn {
  color: var(--warn);
  font-weight: 800;
}

.tables {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.wind-detail-section,
.source-block {
  padding: 16px;
}

.wind-detail-section > summary,
.source-block > summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  list-style: none;
}

.wind-detail-section > summary::-webkit-details-marker,
.source-block > summary::-webkit-details-marker {
  display: none;
}

.wind-detail-section > summary::after,
.source-block > summary::after {
  content: "展开";
  float: right;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.wind-detail-section[open] > summary::after,
.source-block[open] > summary::after {
  content: "收起";
}

.wind-detail-section > h3,
.source-block > h3 {
  display: none;
}

.wind-detail-section table,
.source-block ul {
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

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

tr:last-child td {
  border-bottom: 0;
}

.source-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.notice-query-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.echeck-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.echeck-panel-head,
.echeck-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.echeck-panel-head h3,
.echeck-result-head h3 {
  margin-bottom: 0;
}

.echeck-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.echeck-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.8fr);
  gap: 10px;
}

.echeck-control-grid-single {
  grid-template-columns: minmax(180px, 320px);
}

.echeck-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.echeck-action-row button {
  min-height: 40px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.echeck-reset-row {
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  align-items: center;
}

.echeck-reset-row button.is-armed {
  background: #111;
  border-color: #111;
  color: #fff;
}

.echeck-reset-row span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.echeck-voice-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.echeck-voice-row button {
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.echeck-voice-row button.listening {
  background: #111;
  color: #fff;
  border-color: #111;
}

.echeck-voice-row span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.echeck-next-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfe2dd;
  border-radius: 8px;
  background: #eef7f4;
}

.echeck-next-callout span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.echeck-next-callout strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.echeck-next-callout button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.result-next-callout {
  margin: 0 0 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.notice-query-head,
.notice-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-query-head h3,
.notice-result-head h3 {
  margin-bottom: 0;
}

.notice-query-head span,
.notice-result-head span {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: #f6f8f4;
  color: var(--muted);
  white-space: nowrap;
}

.notice-import-box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.notice-import-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.notice-import-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.notice-import-head button {
  min-height: 34px;
  padding: 0 10px;
}

.notice-file-picker {
  display: grid;
  gap: 6px;
}

.notice-file-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notice-file-picker input {
  border-style: dashed;
  font-size: 13px;
  min-height: 44px;
  padding: 10px;
}

.notice-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.notice-suggestions > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notice-suggestions button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}

.notice-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.echeck-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.echeck-result-head span {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: #f6f8f4;
  color: var(--muted);
  white-space: nowrap;
}

.echeck-result-head span.ok {
  background: #f4f4f4;
  color: #111;
}

.echeck-result-head span.caution {
  background: #f4f4f4;
  color: #111;
}

.echeck-result-head span.warn {
  background: #f4f4f4;
  color: #111;
}

.echeck-progress {
  height: 8px;
  border-radius: 999px;
  background: #edf1ed;
  margin-top: 12px;
  overflow: hidden;
}

#echeckProgressFill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #111;
  transition: width 180ms ease-out;
}

#echeckProgressFill.caution,
#echeckProgressFill.warn {
  background: #111;
}

.echeck-summary {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.6;
}

.echeck-list {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  display: block;
}

.echeck-card {
  border: 2px solid #151a17;
  border-radius: 8px;
  background: #fff;
  color: #151a17;
  overflow: hidden;
}

.echeck-card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 2px solid #151a17;
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

.echeck-card-title strong {
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: 0;
  line-height: 1.1;
}

.echeck-card-title span {
  color: #2d332f;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.echeck-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.echeck-card-column + .echeck-card-column {
  border-left: 2px solid #151a17;
}

.echeck-card-stack {
  display: grid;
  gap: 0;
}

.echeck-card-section {
  border-bottom: 1px solid #151a17;
}

.echeck-card-section:last-child {
  border-bottom: 0;
}

.echeck-card-section-title {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #050606;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}

.echeck-section-note {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: #f7f7f7;
  font-size: 12px;
  line-height: 1.5;
}

.echeck-line-block {
  padding: 6px 10px;
  border-bottom: 1px solid #edf0ed;
  background: #fff;
}

.echeck-line-block:last-child {
  border-bottom: 0;
}

.echeck-line-block.critical {
  background: #fff;
}

.echeck-line-block.done {
  background: #f2f2f2;
  color: #555;
}

.echeck-line-block.voice-hit {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.echeck-line {
  display: grid;
  grid-template-columns: 22px minmax(120px, auto) minmax(34px, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 7px;
  min-height: 31px;
}

.echeck-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111;
}

.echeck-line-label {
  min-width: 0;
  font-family: "Songti SC", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.echeck-line-block.done .echeck-line-label {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.echeck-dots {
  align-self: center;
  min-width: 18px;
  height: 0;
  border-bottom: 3px dotted currentColor;
  opacity: 0.95;
  transform: translateY(3px);
}

.echeck-line-response {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 74px;
  color: #151a17;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.echeck-response-input {
  width: min(160px, 32vw);
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid #9ca6a0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.echeck-signature-input {
  width: min(180px, 36vw);
  text-align: left;
}

.echeck-response-suffix {
  color: #151a17;
}

.echeck-line-note {
  margin: 4px 0 0 29px;
  color: #333;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.echeck-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f9fbfa;
  padding: 12px;
  line-height: 1.5;
}

.notice-result-head span.ok {
  background: var(--accent-weak);
  color: var(--accent);
}

.notice-result-head span.warn {
  background: #f6f8f4;
  color: var(--muted);
}

.notice-summary {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice-list {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.notice-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.notice-item-title {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.notice-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notice-snippet {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #f9fbfa;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  padding: 8px;
}

.notice-fulltext {
  margin: 10px 0 0;
  background: #eef2ef;
  border: 1px solid #d2ded9;
  border-radius: 6px;
  color: #243028;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.mel-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.mel-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mel-result-head h3 {
  margin-bottom: 0;
}

.mel-result-head span {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.mel-result-head span.ok {
  background: var(--accent-weak);
  color: var(--accent);
}

.mel-result-head span.warn {
  background: #f6f8f4;
  color: var(--muted);
}

.mel-result-head span.caution {
  background: #fff7e8;
  color: var(--warn);
}

.mel-result-head span.no-go {
  background: #fff0ef;
  color: var(--fail);
}

.mel-summary {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.mel-tree {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.mel-candidate-list {
  display: grid;
  gap: 8px;
}

.mel-candidate-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.mel-candidate-button:hover,
.mel-candidate-button:focus {
  border-color: var(--accent);
  background: #f2faf7;
}

.mel-candidate-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.mel-candidate-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.mel-candidate-more {
  font-size: 12px;
  color: var(--muted);
  background: #f6f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.mel-chapter {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
  display: grid;
  gap: 8px;
}

.mel-chapter-title {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 8px;
}

.mel-chapter > summary {
  list-style: none;
}

.mel-chapter > summary::marker {
  display: none;
}

.mel-chapter-content {
  display: grid;
  gap: 8px;
  padding: 0 2px;
}

.mel-alert {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 6px 8px;
}

.mel-alert-title {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mel-alert-content {
  padding: 6px 2px 4px;
  display: grid;
  gap: 6px;
}

.mel-release-list {
  padding: 8px 2px 4px;
  display: grid;
  gap: 6px;
}

.mel-release-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.mel-release-item summary {
  cursor: pointer;
  padding: 6px 8px;
}

.mel-release-item-summary {
  font-size: 12px;
  font-weight: 700;
}

.mel-release-content {
  padding: 6px 8px 8px;
  display: grid;
  gap: 6px;
}

.mel-rule-summary {
  display: grid;
  gap: 6px;
  border: 1px solid #d6e4df;
  border-radius: 8px;
  background: #f6faf8;
  padding: 8px;
}

.mel-rule-note {
  color: #41534a;
  font-size: 12px;
  line-height: 1.5;
}

.mel-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mel-rule-chips span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 4px 6px;
}

.mel-performance-summary {
  margin: 0;
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #eef3f0;
  color: #243028;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  padding: 7px;
}

.mel-release-row {
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f5f7f4;
  color: var(--muted);
}

.mel-release-description {
  font-size: 13px;
  line-height: 1.55;
  border-radius: 6px;
  padding: 6px 8px;
  border: 1px dashed var(--line);
  background: #f9fbfa;
  color: var(--ink);
}

.mel-workflow-trace {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.mel-workflow-trace span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--muted);
  min-height: 28px;
  padding: 4px 6px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.mel-workflow-trace span.available {
  color: var(--ink);
  background: #f2f6f4;
}

.mel-workflow-trace span.active {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.mel-workflow-trace span.disabled {
  opacity: 0.55;
}

.mel-mi-list {
  padding-left: 8px;
  display: grid;
  gap: 4px;
}

.mel-mi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 0 4px;
}

.mel-mi-entry {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbf9;
  padding: 6px;
}

.mel-program-link {
  justify-self: start;
  border: 1px solid var(--line);
  background: #f0f3f1;
  color: var(--ink);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.mel-program-link:hover {
  border-color: var(--accent);
}

.mel-mi-list-title {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 2px;
}

.mel-mi-link {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--accent-weak);
  color: var(--ink);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.mel-mi-link:hover {
  border-color: var(--accent);
}

.mel-mi-missing {
  font-size: 12px;
  color: var(--muted);
}

.mel-amm-list {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.mel-mi-viewer {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f3f7f6;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.mel-mi-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mel-mi-viewer-head span {
  font-size: 13px;
  font-weight: 700;
}

.mel-mi-viewer-head button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  width: 24px;
  height: 24px;
  padding: 0;
}

.mel-mi-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#melMiViewerContent {
  margin: 0;
  background: #eef2ef;
  border: 1px solid #d2ded9;
  border-radius: 6px;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #243028;
}

.status-ok {
  color: var(--ok);
  font-weight: 800;
}

.status-caution {
  color: var(--warn);
  font-weight: 800;
}

.status-no-go {
  color: var(--no-go);
  font-weight: 800;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tables {
    grid-template-columns: 1fr;
  }

  .visual-row {
    grid-template-columns: 1fr;
  }

  .echeck-card-grid {
    grid-template-columns: 1fr;
  }

  .echeck-card-column + .echeck-card-column {
    border-left: 0;
    border-top: 2px solid #151a17;
  }
}

@media (max-width: 1120px) {
  .tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .input-panel,
  .result-panel {
    padding: 20px;
  }

  .field-grid,
  .minima-grid,
  .fuel-grid,
  .echeck-control-grid,
  .metric-row,
  .limit-strip {
    grid-template-columns: 1fr;
  }

  .standard-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standard-version-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .echeck-action-row {
    grid-template-columns: 1fr 1fr;
  }

  .echeck-reset-row {
    grid-template-columns: 1fr;
  }

  .echeck-card-title {
    display: grid;
    gap: 4px;
  }

  .echeck-card-title span {
    white-space: normal;
  }

  .echeck-line {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px 8px;
  }

  .echeck-dots {
    display: none;
  }

  .echeck-line-response {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .echeck-response-input,
  .echeck-signature-input {
    width: min(100%, 220px);
  }

  .segment-checks {
    grid-template-columns: 1fr;
  }

  .wind-parts {
    grid-template-columns: minmax(78px, 1fr) 10px minmax(64px, 1fr) 28px minmax(64px, 1fr);
  }

  .flysmart-entry input[type="text"],
  .flysmart-entry input[type="number"] {
    font-size: 20px;
  }

  .status-row {
    align-items: flex-start;
  }

  .status-badge {
    min-width: 78px;
    height: 78px;
    font-size: 17px;
  }

  .runway-visual {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  body.split-compact .workspace {
    width: var(--split-screen-width);
    min-height: var(--split-screen-min-height);
    transform: scale(var(--split-screen-scale));
    transform-origin: top left;
  }

  body.split-compact .input-panel,
  body.split-compact .result-panel {
    padding: 14px;
    gap: 14px;
  }

  body.split-compact .brand-row {
    gap: 10px;
    align-items: flex-start;
  }

  body.split-compact h1 {
    font-size: 28px;
  }

  body.split-compact .freshness {
    min-width: 82px;
    padding: 6px 8px;
  }

  body.split-compact .feature-switcher {
    gap: 6px;
    padding-bottom: 2px;
  }

  body.split-compact .feature-tab {
    min-width: 0;
    min-height: 36px;
    padding: 0 4px;
    font-size: 12px;
  }

  body.split-compact .operation-context {
    gap: 8px;
    padding: 8px 10px;
  }

  body.split-compact .operation-context strong {
    font-size: 13px;
  }

  body.split-compact .operation-context button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  body.split-compact .echeck-panel,
  body.split-compact .echeck-result,
  body.split-compact .notice-result,
  body.split-compact .minima-result,
  body.split-compact .fuel-result,
  body.split-compact .mel-result {
    padding: 12px;
  }

  body.split-compact .standards-query-panel,
  body.split-compact .fuel-panel,
  body.split-compact .standards-result {
    padding: 11px;
  }

  body.split-compact .fuel-grid,
  body.split-compact .fuel-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.split-compact .fuel-result-section table {
    font-size: 11px;
  }

  body.split-compact .standard-suggestions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.split-compact .standard-suggestions button {
    min-height: 30px;
    font-size: 11px;
  }

  body.split-compact .echeck-summary {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.45;
  }

  body.split-compact .echeck-voice-row {
    grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
    gap: 6px;
  }

  body.split-compact .echeck-voice-row button,
  body.split-compact .echeck-voice-row span {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }

  body.split-compact .echeck-next-callout {
    min-height: 34px;
    gap: 6px;
    padding: 6px 8px;
  }

  body.split-compact .echeck-next-callout strong {
    font-size: 13px;
  }

  body.split-compact .echeck-next-callout button {
    min-height: 27px;
    padding: 0 7px;
    font-size: 11px;
  }

  body.split-compact .echeck-card-title {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
  }

  body.split-compact .echeck-card-title strong {
    font-size: 24px;
  }

  body.split-compact .echeck-card-title span {
    white-space: nowrap;
  }

  body.split-compact .echeck-card-section-title {
    min-height: 32px;
    font-size: 18px;
    padding: 4px 8px;
  }

  body.split-compact .echeck-line-block {
    padding: 5px 8px;
  }

  body.split-compact .echeck-line {
    grid-template-columns: 20px minmax(118px, auto) minmax(28px, 1fr) minmax(72px, auto);
    gap: 6px;
    min-height: 29px;
  }

  body.split-compact .echeck-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  body.split-compact .echeck-line-label {
    font-size: 16px;
    line-height: 1.2;
  }

  body.split-compact .echeck-dots {
    display: block;
    border-bottom-width: 2px;
    transform: translateY(2px);
  }

  body.split-compact .echeck-line-response {
    grid-column: auto;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
    min-width: 60px;
  }

  body.split-compact .echeck-response-input {
    width: min(150px, 25vw);
    min-height: 28px;
    font-size: 13px;
    padding: 3px 6px;
  }

  body.split-compact .echeck-signature-input {
    width: min(168px, 28vw);
  }
}
