.flight-demo {
  overflow: hidden;
  border: 1px solid #d2dce5;
  border-radius: 15px;
  background: white;
  box-shadow: 0 12px 34px -20px #223d5360;
  color: #202a35;
  text-align: left;
  font: 15px/1.55 "YTclaw Product Sans","Microsoft YaHei",sans-serif;
}
.flight-demo[hidden], .flight-demo [hidden], [data-flight-poster][hidden] { display: none; }
.flight-panes { display: grid; grid-template-columns: 40% 60%; }
.flight-chat,.flight-machine { min-width: 0; }
.flight-machine { display: flex; flex-direction: column; border-left: 1px solid #dee5eb; }
.flight-bar { height: 46px; display: flex; gap: 9px; align-items: center; padding-inline: 16px; border-bottom: 1px solid #e6ebef; }
.flight-bar strong { font-size: 14px; font-weight: 580; }
.flight-brand { width: 23px; height: 23px; background: url(assets/symbol.png) center/contain no-repeat; }
.flight-monitor { width: 16px; height: 11px; border: 1.5px solid #5d7286; border-radius: 2px; position: relative; }
.flight-monitor::after { content: ""; position: absolute; width: 8px; height: 1.5px; background: #5d7286; bottom: -4px; left: 2.5px; }
.flight-thread { min-height: 315px; padding: 20px clamp(13px,2vw,25px); }
.flight-speaker,.flight-agent { display: block; color: #5c6977; font-size: 12px; margin-bottom: 5px; }
.flight-speaker { text-align: right; }
.flight-prompt { max-width: 95%; width: fit-content; margin-left: auto; padding: 10px 13px; border-radius: 13px 13px 4px 13px; background: #eef3fa; }
.flight-answer { margin-top: 19px; }
.flight-agent { font-weight: 650; color: #344e6a; }
.flight-artifact { display: flex; align-items: center; gap: 9px; width: fit-content; margin-top: 9px; padding: 6px 13px 6px 8px; background: #f6f8fa; border: 1px solid #dce4eb; border-radius: 8px; }
.flight-artifact b,.flight-artifact small { display: block; }
.flight-artifact b,.flight-command { font: 13px/1.5 Consolas,monospace; }
.flight-artifact small { color: #626f79; font-size: 12px; }
.flight-py { display: grid; place-items: center; width: 29px; height: 35px; border: 1px solid #bfd3e1; border-radius: 5px; background: #eef7ff; color: #264a70; font: bold 12px/1 Consolas,monospace; }
.flight-command { display: block; margin-top: 8px; color: #475968; }
.flight-command::before { content: "$ "; color: #718498; }
.flight-snippet { width: fit-content; max-width: 100%; margin: 8px 0 0; padding: 7px 10px; border-left: 2px solid #b8cbd9; background: #f6f8fa; color: #345067; font: 12px/1.5 Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.flight-stage { display: grid; align-content: center; flex: 1; padding: 12px; background: #f7f9fb; }
.flight-screen {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16/9;
  border-radius: 8px; background: #0088a8 url(assets/workbench-split.png) 96.6% 61.9% / 202.6% 175% no-repeat;
}
.flight-file { position: absolute; top: 19%; left: 12%; display: grid; justify-items: center; gap: 3px; color: white; font: 12px/1.4 Consolas,monospace; text-shadow: 0 1px 3px #003240; }
.flight-file .flight-py { text-shadow: none; box-shadow: 0 2px 5px #00415245; }
.flight-file.is-opening span:last-child { border-radius: 3px; background: #16467b; padding-inline: 3px; }
.flight-game { position: absolute; height: 90%; aspect-ratio: 240/273; top: 5%; left: 54%; transform: translateX(-50%); display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; border: 1px solid #c8d5df; background: #0a1d34; box-shadow: 0 10px 25px #00344470; }
.flight-titlebar { display: flex; justify-content: space-between; align-items: center; background: #eff1f4; color: #253548; font: 12px/1.5 "Microsoft YaHei",sans-serif; padding: 2px 8px; }
.flight-game canvas { width: 100%; height: 0; flex: 1; display: block; image-rendering: pixelated; }
.flight-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid #e2e8ed; }
.flight-controls > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.flight-controls strong { font-size: 14px; font-weight: 600; }
.flight-status { font-size: 13px; color: #596775; }
.flight-controls button { flex: none; min-height: 36px; padding: 6px 16px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; color: white; background: #183b59; cursor: pointer; }
.flight-controls button:hover { background: #245171; }
.flight-controls button:focus-visible { outline: 2px solid #1866c1; outline-offset: 3px; }
@media (max-width: 700px) {
  .flight-panes { grid-template-columns: 1fr; }
  .flight-machine { grid-row: 1; border-left: 0; border-bottom: 1px solid #dee5eb; }
  .flight-stage { padding: 8px; }
  .flight-bar { height: 36px; padding-inline: 12px; }
  .flight-thread { min-height: 220px; padding: 10px 12px; font-size: 14px; }
  .flight-answer { margin-top: 9px; }
  .flight-artifact { margin-top: 5px; }
  .flight-controls { padding: 9px 12px; }
  .flight-controls > div { display: grid; }
  .flight-file { left: 7%; }
  .flight-file .flight-py { width: 22px; height: 26px; }
  .flight-file span:last-child { font-size: 10px; }
}
