:root {
  --te-bg: #050d13;
  --te-panel: rgba(9, 25, 34, .92);
  --te-panel-2: #0c202b;
  --te-panel-3: #102a34;
  --te-line: rgba(147, 191, 203, .17);
  --te-line-hot: rgba(45, 224, 183, .48);
  --te-text: #f4f8f7;
  --te-muted: #91aab1;
  --te-dim: #58737b;
  --te-mint: #2de0b7;
  --te-mint-deep: #073c38;
  --te-blue: #6fa9dc;
  --te-gold: #f0ba62;
  --te-coral: #ff806f;
  --te-shadow: 0 30px 90px rgba(0, 0, 0, .34);
  --te-radius: 24px;
  --te-sans: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --te-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--te-bg); overflow-x: clip; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--te-text);
  font-family: var(--te-sans);
  overflow-x: clip;
  max-width: 100%;
  background:
    radial-gradient(circle at 12% -5%, rgba(45, 224, 183, .14), transparent 34rem),
    radial-gradient(circle at 84% 24%, rgba(89, 133, 177, .13), transparent 42rem),
    linear-gradient(148deg, #040c12 0%, #07151d 50%, #051018 100%);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.lang-cn { display: none; }
html[data-lang="cn"] .lang-en { display: none; }
html[data-lang="cn"] .lang-cn { display: inline; }
p.lang-cn { display: none; }
html[data-lang="cn"] p.lang-cn { display: block; }

.te-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; contain: paint; }
.te-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(114, 177, 188, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 177, 188, .08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.te-atmosphere i { position: absolute; border: 1px solid rgba(45, 224, 183, .08); border-radius: 50%; contain: strict; }
.te-atmosphere i:nth-child(1) { width: min(430px, 70vw); height: min(430px, 70vw); right: 0; top: 160px; transform: translateX(35%); }
.te-atmosphere i:nth-child(2) { width: min(310px, 55vw); height: min(310px, 55vw); right: 0; top: 220px; transform: translateX(28%); }
.te-atmosphere i:nth-child(3) { width: min(190px, 40vw); height: min(190px, 40vw); right: 0; top: 280px; transform: translateX(18%); }

.te-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--te-line);
  background: #061018;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.te-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.te-brand img { filter: none; }
.te-brand > span { display: grid; gap: 2px; }
.te-brand strong { font-size: 14px; letter-spacing: .19em; }
.te-brand small { color: var(--te-muted); font-size: 12px; }
.te-header-actions { display: flex; align-items: center; gap: 9px; }
.te-mode, .te-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--te-line);
  border-radius: 999px;
  background: rgba(12, 32, 43, .75);
  color: var(--te-muted);
  text-decoration: none;
  font: 680 11px var(--te-mono);
}
.te-mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--te-gold); box-shadow: 0 0 0 1px rgba(240, 186, 98, .35); }
.te-pill { cursor: pointer; }
.te-pill:hover { color: var(--te-text); border-color: var(--te-line-hot); }

.te-shell { position: relative; width: min(1900px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.te-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 52px; padding: 0 8px 40px; }
.te-eyebrow { margin: 0 0 11px; color: var(--te-mint); font: 760 10px/1.4 var(--te-mono); letter-spacing: .19em; }
.te-hero h1 { max-width: 980px; margin: 0; font-size: clamp(42px, 5.1vw, 82px); line-height: .97; letter-spacing: -.055em; }
.te-hero h1 em { color: var(--te-mint); font-style: normal; }
.te-hero > div:first-child > p:last-child, .te-hero > div:first-child > p.lang-en, .te-hero > div:first-child > p.lang-cn { max-width: 850px; margin: 22px 0 0; color: var(--te-muted); font-size: 16px; line-height: 1.7; }
.te-hero-signal { display: grid; grid-template-columns: repeat(3, minmax(126px, 1fr)); gap: 1px; padding: 1px; overflow: hidden; border: 1px solid var(--te-line); border-radius: 20px; background: var(--te-line); }
.te-hero-signal div { min-height: 108px; display: grid; align-content: center; gap: 8px; padding: 20px; background: rgba(7, 23, 31, .97); }
.te-hero-signal strong { color: var(--te-mint); font: 760 18px var(--te-mono); }
.te-hero-signal span { color: var(--te-muted); font-size: 11px; }

.te-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid rgba(240, 186, 98, .34);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(240, 186, 98, .08), rgba(9, 25, 34, .91));
}
.te-boundary-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(240, 186, 98, .45); border-radius: 12px; color: var(--te-gold); font: 800 18px var(--te-mono); }
.te-boundary .te-eyebrow { margin-bottom: 3px; color: var(--te-gold); }
.te-boundary p:last-child { margin: 0; color: var(--te-muted); font-size: 12px; line-height: 1.5; }
.te-boundary ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin: 0; padding: 0; list-style: none; }
.te-boundary li { padding: 8px 10px; border: 1px solid var(--te-line); border-radius: 9px; color: var(--te-coral); font: 690 9px var(--te-mono); }

.te-auth { max-width: 900px; margin: 44px auto; padding: 28px; display: flex; align-items: center; gap: 22px; border: 1px solid var(--te-line-hot); border-radius: var(--te-radius); background: var(--te-panel); box-shadow: var(--te-shadow); }
.te-auth > span { display: grid; flex: 0 0 auto; width: 60px; height: 60px; place-items: center; border-radius: 18px; color: var(--te-mint); background: rgba(45, 224, 183, .1); font-size: 26px; }
.te-auth h2 { margin: 0 0 7px; font-size: 20px; }
.te-auth p { margin: 0; color: var(--te-muted); line-height: 1.6; }
.te-auth a { margin-left: auto; padding: 12px 17px; border-radius: 11px; background: var(--te-mint); color: #04241f; text-decoration: none; font-weight: 780; white-space: nowrap; }

.te-workspace { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(650px, 1.55fr) minmax(310px, .7fr); gap: 18px; align-items: start; }
.te-command-column, .te-operations, .te-proof-column {
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius);
  background: #0a1a24;
  box-shadow: var(--te-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.te-command-column, .te-proof-column { position: sticky; top: 94px; padding: 24px; max-height: calc(100vh - 112px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--te-line-hot) transparent; }
.te-operations { padding: 26px; }
.te-panel-head { display: flex; align-items: center; gap: 13px; }
.te-panel-head > span { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border: 1px solid var(--te-line-hot); border-radius: 13px; color: var(--te-mint); font: 760 12px var(--te-mono); }
.te-panel-head .te-eyebrow { margin: 0 0 2px; }
.te-panel-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.te-panel-copy { margin: 17px 0; color: var(--te-muted); font-size: 12px; line-height: 1.6; }
.te-role { display: inline-flex; margin-top: 18px; padding: 7px 10px; border: 1px solid var(--te-line); border-radius: 999px; color: var(--te-blue); font: 730 10px var(--te-mono); }
.te-role.operator { color: var(--te-mint); border-color: var(--te-line-hot); }

.te-rail { display: grid; gap: 7px; margin: 0 0 16px; padding: 0; list-style: none; }
.te-rail li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--te-line); border-radius: 11px; color: var(--te-muted); background: rgba(7, 21, 29, .68); }
.te-rail li::before { content: attr(data-step); display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: rgba(120, 159, 170, .09); color: var(--te-dim); font: 720 9px var(--te-mono); }
.te-rail b { overflow: hidden; text-overflow: ellipsis; font: 690 10px var(--te-mono); white-space: nowrap; }
.te-rail small { color: var(--te-dim); font: 650 8px var(--te-mono); }
.te-rail li.done { border-color: rgba(45, 224, 183, .24); color: var(--te-text); }
.te-rail li.done::before { content: "✓"; color: var(--te-mint); background: rgba(45, 224, 183, .1); }
.te-rail li.active { border-color: var(--te-line-hot); background: linear-gradient(90deg, rgba(45, 224, 183, .1), rgba(7, 21, 29, .75)); color: var(--te-text); }
.te-rail li.active::before { color: #03261f; background: var(--te-mint); }

.te-next-card { padding: 15px; border: 1px solid var(--te-line-hot); border-radius: 15px; background: linear-gradient(145deg, rgba(45, 224, 183, .09), rgba(10, 31, 40, .7)); }
.te-next-card small { color: var(--te-mint); font: 730 8px var(--te-mono); letter-spacing: .13em; }
.te-next-card strong { display: block; margin: 7px 0 5px; font: 760 13px var(--te-mono); }
.te-next-card code { color: var(--te-blue); font: 10px var(--te-mono); }
.te-next-card p { margin: 9px 0 0; color: var(--te-muted); font-size: 11px; line-height: 1.5; }
.te-primary, .te-secondary, .te-download { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; margin-top: 11px; padding: 11px 14px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; }
.te-primary { color: #04251f; background: linear-gradient(135deg, #41e7c0, #1fcba7); box-shadow: 0 12px 30px rgba(45, 224, 183, .15); }
.te-secondary { color: var(--te-text); border: 1px solid rgba(240, 186, 98, .35); background: rgba(240, 186, 98, .08); }
.te-primary > span:first-child, .te-secondary > span:first-child, .te-download > span:first-child { font-size: 19px; }
.te-primary > span:last-child, .te-secondary > span:last-child, .te-download > span:last-child { display: grid; gap: 2px; }
.te-primary b, .te-secondary b, .te-download b { font-size: 12px; }
.te-primary small, .te-secondary small, .te-download small { opacity: .72; font-size: 9px; }
.te-primary:disabled, .te-secondary:disabled, .te-download:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.te-text-button { width: 100%; margin-top: 11px; padding: 9px; border: 0; background: transparent; color: var(--te-muted); cursor: pointer; font: 670 10px var(--te-mono); }
.te-text-button:hover { color: var(--te-text); }
.te-status { min-height: 34px; margin-top: 7px; padding: 8px 10px; color: var(--te-muted); font-size: 10px; line-height: 1.5; }
.te-status.success { color: var(--te-mint); }
.te-status.error { color: var(--te-coral); }
.te-status.busy { color: var(--te-gold); }

.te-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.te-run-status { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--te-line); border-radius: 999px; color: var(--te-muted); font: 740 9px var(--te-mono); }
.te-run-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--te-dim); }
.te-run-status.active i { background: var(--te-mint); box-shadow: 0 0 0 1px rgba(45, 224, 183, .35); }
.te-run-status.completed i { background: var(--te-blue); }
.te-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 16px; }
.te-metrics article { min-height: 116px; display: grid; align-content: space-between; padding: 15px; border: 1px solid var(--te-line); border-radius: 16px; background: rgba(7, 21, 29, .76); }
.te-metrics article > span { color: var(--te-muted); font-size: 10px; }
.te-metrics strong { overflow: hidden; color: var(--te-text); font: 760 25px var(--te-mono); text-overflow: ellipsis; }
.te-metrics small { color: var(--te-dim); font: 660 7px var(--te-mono); letter-spacing: .08em; }

.te-vessel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.te-vessel { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--te-line); border-radius: 18px; background: linear-gradient(145deg, rgba(14, 40, 51, .9), rgba(7, 21, 29, .8)); }
.te-vessel::after { content: ""; position: absolute; width: 140px; height: 140px; right: -72px; bottom: -82px; border: 1px solid rgba(45, 224, 183, .12); border-radius: 50%; }
.te-vessel-head { display: flex; justify-content: space-between; gap: 12px; }
.te-vessel h3 { margin: 3px 0 4px; font-size: 15px; }
.te-vessel p { margin: 0; color: var(--te-muted); font-size: 10px; }
.te-vessel-state { align-self: start; padding: 6px 8px; border-radius: 8px; color: var(--te-gold); background: rgba(240, 186, 98, .08); font: 720 8px var(--te-mono); }
.te-vessel-state.ready, .te-vessel-state.completed { color: var(--te-mint); background: rgba(45, 224, 183, .09); }
.te-vessel-state.operating { color: var(--te-blue); background: rgba(111, 169, 220, .1); }
.te-vessel-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.te-vessel-facts div { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--te-line); }
.te-vessel-facts span { color: var(--te-dim); font-size: 8px; text-transform: uppercase; }
.te-vessel-facts b { font: 700 10px var(--te-mono); }

.te-timeline-card { margin-top: 12px; padding: 18px; border: 1px solid var(--te-line); border-radius: 18px; background: rgba(7, 21, 29, .78); }
.te-card-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.te-card-title h3 { margin: 0; font-size: 14px; }
.te-card-title > span { color: var(--te-dim); font: 650 8px var(--te-mono); }
.te-timeline { display: grid; gap: 9px; margin-top: 18px; }
.te-track { display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: center; gap: 10px; }
.te-track-label { overflow: hidden; color: var(--te-muted); font: 670 9px var(--te-mono); text-overflow: ellipsis; white-space: nowrap; }
.te-track-line { position: relative; height: 28px; overflow: hidden; border: 1px solid var(--te-line); border-radius: 9px; background: repeating-linear-gradient(90deg, rgba(95, 136, 146, .06) 0, rgba(95, 136, 146, .06) 1px, transparent 1px, transparent 10%); }
.te-segment { position: absolute; top: 4px; bottom: 4px; min-width: 3px; border-radius: 5px; background: linear-gradient(90deg, rgba(45, 224, 183, .6), var(--te-mint)); }
.te-segment.gate { background: linear-gradient(90deg, rgba(240, 186, 98, .55), var(--te-gold)); }
.te-segment.work { background: linear-gradient(90deg, rgba(111, 169, 220, .55), var(--te-blue)); }
.te-segment.cancelled { opacity: .42; filter: saturate(.35); }

.te-resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.te-resource-grid article { min-height: 128px; padding: 16px; border: 1px solid var(--te-line); border-radius: 16px; background: rgba(7, 21, 29, .76); }
.te-resource-number { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 7px; }
.te-resource-number strong { font: 760 24px var(--te-mono); }
.te-resource-number span { color: var(--te-muted); font-size: 9px; }
.te-resource-grid article > p:last-child { margin: 0; color: var(--te-muted); font-size: 9px; line-height: 1.5; }

.te-seal { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; padding: 14px; border: 1px solid rgba(45, 224, 183, .26); border-radius: 15px; background: rgba(45, 224, 183, .07); }
.te-seal > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #03261f; background: var(--te-mint); font-weight: 900; }
.te-seal > div { display: grid; gap: 3px; }
.te-seal b { font-size: 11px; }
.te-seal small { color: var(--te-muted); font-size: 8px; }
.te-seal.invalid { border-color: rgba(255, 128, 111, .4); background: rgba(255, 128, 111, .08); }
.te-seal.invalid > span { color: #2b0804; background: var(--te-coral); }
.te-proof-facts { display: grid; gap: 0; margin: 0; }
.te-proof-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--te-line); }
.te-proof-facts dt { color: var(--te-muted); font-size: 9px; }
.te-proof-facts dd { min-width: 0; margin: 0; overflow: hidden; color: var(--te-text); font: 9px var(--te-mono); text-overflow: ellipsis; white-space: nowrap; }
.te-ledger-head { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 9px; }
.te-ledger-head h3 { margin: 0; font-size: 12px; }
.te-ledger-head > span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--te-line); border-radius: 8px; color: var(--te-mint); font: 700 9px var(--te-mono); }
.te-ledger { display: grid; gap: 7px; max-height: 310px; margin: 0; padding: 0; overflow: auto; list-style: none; scrollbar-width: thin; }
.te-ledger li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 9px; border: 1px solid var(--te-line); border-radius: 10px; background: rgba(7, 21, 29, .66); }
.te-ledger li > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--te-mint); background: rgba(45, 224, 183, .09); font: 700 8px var(--te-mono); }
.te-ledger li > div { min-width: 0; display: grid; gap: 3px; }
.te-ledger b { overflow: hidden; font: 680 9px var(--te-mono); text-overflow: ellipsis; white-space: nowrap; }
.te-ledger code { overflow: hidden; color: var(--te-dim); font: 7px var(--te-mono); text-overflow: ellipsis; white-space: nowrap; }
.te-ledger-empty { padding: 16px !important; color: var(--te-muted); font-size: 10px; text-align: center; }
.te-download { color: var(--te-text); border: 1px solid var(--te-line-hot); background: linear-gradient(145deg, rgba(45, 224, 183, .1), rgba(10, 31, 40, .78)); }
.te-download-evidence { min-height: 28px; padding: 7px 2px; color: var(--te-muted); font: 8px/1.5 var(--te-mono); overflow-wrap: anywhere; }
.te-standards { margin-top: 13px; padding-top: 14px; border-top: 1px solid var(--te-line); }
.te-standards h3 { margin: 0 0 9px; font-size: 11px; }
.te-reference { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--te-line); }
.te-reference a { color: var(--te-blue); font-size: 9px; text-decoration: none; }
.te-reference span { color: var(--te-dim); font: 7px var(--te-mono); }

.te-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 68px); border-top: 1px solid var(--te-line); color: var(--te-dim); font: 650 9px var(--te-mono); }

@media (max-width: 1500px) {
  .te-workspace { grid-template-columns: 300px minmax(600px, 1fr); }
  .te-proof-column { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 260px minmax(280px, 1fr) minmax(280px, .8fr); gap: 18px; max-height: none; }
  .te-proof-column > .te-panel-head, .te-proof-column > .te-seal, .te-proof-column > .te-proof-facts { grid-column: 1; }
  .te-ledger-head, .te-ledger { grid-column: 2; }
  .te-ledger-head { grid-row: 1; margin-top: 0; }
  .te-ledger { grid-row: 2 / span 4; max-height: 360px; }
  .te-download, .te-download-evidence, .te-standards { grid-column: 3; }
  .te-download { grid-row: 1; margin-top: 0; }
}

@media (max-width: 1080px) {
  .te-hero { grid-template-columns: 1fr; }
  .te-hero-signal { width: 100%; }
  .te-boundary { grid-template-columns: auto 1fr; }
  .te-boundary ul { grid-column: 1 / -1; justify-content: flex-start; }
  .te-workspace { grid-template-columns: 1fr; }
  .te-command-column { position: static; max-height: none; }
  .te-rail { grid-template-columns: repeat(2, 1fr); }
  .te-proof-column { display: block; }
  .te-ledger-head { margin-top: 20px; }
  .te-download { margin-top: 12px; }
}

@media (max-width: 720px) {
  .te-header { min-height: 66px; padding: 10px 14px; }
  .te-brand small, .te-mode, .te-pill:last-child span { display: none; }
  .te-pill:last-child { width: 38px; justify-content: center; padding: 0; }
  .te-shell { width: min(100% - 20px, 1900px); padding-top: 34px; }
  .te-hero { gap: 28px; padding: 0 3px 30px; }
  .te-hero h1 { font-size: clamp(37px, 12vw, 60px); }
  .te-hero-signal { grid-template-columns: 1fr; }
  .te-hero-signal div { min-height: 76px; }
  .te-boundary { padding: 15px; }
  .te-boundary ul { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .te-auth { display: grid; margin: 24px 0; }
  .te-auth a { margin: 0; text-align: center; }
  .te-command-column, .te-operations, .te-proof-column { padding: 18px; border-radius: 19px; }
  .te-stage-head { align-items: flex-start; }
  .te-metrics { grid-template-columns: repeat(2, 1fr); }
  .te-vessel-grid, .te-resource-grid { grid-template-columns: 1fr; }
  .te-rail { grid-template-columns: 1fr; }
  .te-track { grid-template-columns: 76px minmax(0, 1fr); }
  .te-footer { display: grid; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  .te-header, .te-command-column, .te-download, .te-text-button, .te-footer { display: none !important; }
  body { color: #111; background: #fff; }
  .te-shell { width: 100%; padding: 0; }
  .te-workspace { display: block; }
  .te-operations, .te-proof-column { margin-bottom: 12px; border: 1px solid #bbb; box-shadow: none; background: #fff; }
}
