.fold-simulation {
  --fs-bg: #0c1121;
  --fs-panel: #141c32;
  --fs-border: #303e5d;
  --fs-text: #eef2ff;
  --fs-muted: #a6b4d4;
  box-sizing: border-box;
  width: min(1460px, calc(100vw - 48px));
  max-width: none;
  height: min(940px, calc(100dvh - 48px));
  max-height: none;
  padding: 0;
  border: 1px solid #52668f;
  border-radius: 16px;
  color: var(--fs-text);
  background: var(--fs-bg);
  box-shadow: 0 30px 100px #03071588;
  overflow: hidden;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.fold-simulation[open] { display: flex; flex-direction: column; }
.fold-simulation::backdrop { background: #050919c9; backdrop-filter: blur(5px); }
.fold-simulation *, .fold-simulation *::before, .fold-simulation *::after { box-sizing: border-box; }
.fold-simulation [hidden] { display: none !important; }
.fold-simulation button, .fold-simulation input { font: inherit; }
.fold-simulation button { cursor: pointer; color: var(--fs-text); border: 1px solid var(--fs-border); background: #1b2642; border-radius: 7px; padding: 9px 12px; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.fold-simulation button:hover { background: #2a3858; border-color: #647da6; }
.fold-simulation button:focus-visible, .fold-simulation input:focus-visible, .fs-canvas:focus-visible { outline: 2px solid #d8ff36; outline-offset: 3px; }
.fold-simulation button:disabled { opacity: .4; cursor: not-allowed; }
.fold-simulation button.fs-primary { background: #d8ff36; color: #172800; border-color: #d8ff36; font-weight: 700; }
.fold-simulation button.fs-primary:hover { background: #e4ff79; }
.fs-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 24px; border-bottom: 1px solid var(--fs-border); background: #151f38; }
.fs-brand { display: flex; align-items: center; gap: 13px; }
.fs-brand-icon { display: grid; place-items: center; font-size: 35px; width: 46px; height: 46px; background: #3156ff; color: #d8ff36; border-radius: 10px; }
.fs-eyebrow { display: block; color: #a8bcff; font: 10px/1.5 Consolas, monospace; letter-spacing: 1.6px; }
.fold-simulation h2 { color: var(--fs-text); margin: 2px 0 0; font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: .7px; }
.fs-header-actions { display: flex; align-items: center; gap: 14px; }
.fold-simulation button.fs-close { width: 34px; height: 34px; padding: 0; font-size: 26px; line-height: 1; border-color: transparent; background: transparent; color: #a6b4d4; }
.fs-body { flex: 1; display: flex; min-height: 0; }
.fs-stage { position: relative; min-width: 0; flex: 1; overflow: hidden; background: var(--fs-bg); }
.fs-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.fs-canvas.fs-dragging { cursor: grabbing; }
.fs-stage-heading { pointer-events: none; position: absolute; top: 23px; left: 24px; right: 170px; display: flex; align-items: center; gap: 8px; color: #ccd7ef; font-size: 12px; }
.fs-stage-heading > [data-fs-field="name"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #d8ff36; box-shadow: 0 0 12px #d8ff3644; flex: 0 0 auto; }
.fs-mode { color: #99a9cb; font: 9px Consolas, monospace; border: 1px solid #3c4a69; padding: 3px 5px; border-radius: 3px; white-space: nowrap; }
.fs-view-tools { position: absolute; top: 18px; right: 20px; display: flex; gap: 3px; background: #151f38dd; border: 1px solid #344462; padding: 3px; border-radius: 7px; }
.fold-simulation .fs-view-tools button { padding: 5px 8px; border: 0; background: transparent; color: #c5d2eb; font-size: 11px; }
.fold-simulation .fs-view-tools button:hover { background: #2c3b5c; color: white; }
.fs-stage-bottom { position: absolute; bottom: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; color: #8292b3; font-size: 10px; letter-spacing: .2px; }
.fs-axis { display: flex; gap: 9px; font: 10px Consolas, monospace; }
.fs-axis i { font-style: normal; }.fs-axis i:nth-child(1) { color: #d8ff36; }.fs-axis i:nth-child(2) { color: #43e6ff; }.fs-axis i:nth-child(3) { color: #ff79be; }
.fs-sidebar { flex: 0 0 300px; width: 300px; border-left: 1px solid var(--fs-border); background: var(--fs-panel); padding: 0 22px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a4b6a transparent; }
.fs-section { padding: 23px 0 20px; border-bottom: 1px solid #293650; }
.fs-section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.fold-simulation h3 { margin: 0; font-size: 12px; color: var(--fs-text); font-weight: 650; letter-spacing: .5px; }
.fs-progress-number { display: flex; align-items: baseline; gap: 4px; color: #d8ff36; }
.fs-progress-number b { font: 500 34px/1.1 "Segoe UI", sans-serif; letter-spacing: -1.5px; }.fs-progress-number small { font-size: 12px; }
.fold-simulation input[type="range"] { width: 100%; accent-color: #d8ff36; height: 20px; padding: 0; margin: 0; cursor: pointer; }
.fold-simulation input[type="range"]:disabled { opacity: .4; cursor: not-allowed; }
.fs-range-labels { display: flex; justify-content: space-between; margin: 3px 0 18px; font-size: 10px; color: #91a1c3; }
.fs-playback { display: flex; gap: 8px; }
.fs-playback button:first-child { flex: 1; }.fs-playback button:last-child { width: 63px; }
.fs-muted { color: var(--fs-muted); font-size: 10px; line-height: 1.8; margin: 13px 0 0; }
.fs-status { font-size: 9px; color: #c9ed8d; background: #8cbf2520; border: 1px solid #839c3d50; border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.fs-status.fs-status-warn { color: #ffd390; background: #b77f271a; border-color: #8d6d36; }
.fs-stats { display: flex; flex-direction: column; gap: 13px; margin: 0; }
.fs-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11px; }
.fs-stats dt { color: var(--fs-muted); font-weight: 400; }.fs-stats dd { margin: 0; color: #eef2ff; font-variant-numeric: tabular-nums; font-size: 11px; text-align: right; }
.fs-diagnostic { margin: 16px 0 0; color: #a0b2d7; font-size: 10px; line-height: 1.8; padding-left: 10px; border-left: 2px solid #4b659c; }
.fs-toggle { display: flex; align-items: center; gap: 4px; color: var(--fs-muted); font-size: 10px; cursor: pointer; }.fs-toggle input { width: 13px; height: 13px; accent-color: #d8ff36; margin: 0; }
.fs-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 8px; color: #c6d1e8; font-size: 10px; }.fs-legend > span { display: flex; align-items: center; gap: 8px; }
.fs-line { width: 20px; height: 0; border-top: 2px solid; }.fs-m { border-color: #ff79be; }.fs-v { border-color: #43e6ff; }.fs-f { border-color: #d8ff36; }.fs-u { border-color: #b69aff; border-top-style: dashed; }
.fs-model-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 18px; padding-bottom: 18px; border: 0; }.fs-note-icon { color: #8c9fc6; width: 14px; height: 14px; border: 1px solid #6c81ab; border-radius: 50%; text-align: center; font: 10px/12px Georgia, serif; flex: 0 0 14px; margin-top: 3px; }
.fs-model-note p { margin: 0; font-size: 10px; line-height: 1.8; color: #c0cde6; }.fs-model-note p span { color: #93a4c7; }
.fs-file-actions { display: flex; flex-direction: column; gap: 7px; }.fold-simulation .fs-file-actions button { display: flex; justify-content: space-between; font-size: 10px; color: #b4c5e8; background: transparent; border-color: #33435f; padding: 9px 10px; }
.fs-footer { flex: 0 0 33px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 20px; color: #91a3c8; background: #10182c; border-top: 1px solid var(--fs-border); font-size: 10px; }
.fs-footer > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.fs-footer > span:last-child { font: 9px Consolas, monospace; color: #64799f; letter-spacing: 1px; white-space: nowrap; }
.fs-empty { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(380px, 80%); text-align: center; }.fs-empty-symbol { display: block; font: 84px/1.2 "Segoe UI", sans-serif; color: #4469ef; margin-bottom: 14px; }.fold-simulation .fs-empty h3 { font-size: 18px; font-weight: 500; }.fs-empty p { font-size: 12px; color: #92a4ca; line-height: 1.8; margin: 14px 0 22px; }
.fs-error { position: absolute; bottom: 55px; left: 24px; right: 24px; padding: 12px 15px; color: #ffd3d9; background: #552330f2; border: 1px solid #a34d62; border-radius: 7px; font-size: 12px; line-height: 1.6; max-height: 32%; overflow-y: auto; }
.fs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .fold-simulation { width: calc(100vw - 24px); height: calc(100dvh - 24px); border-radius: 10px; }
  .fs-sidebar { flex-basis: 260px; width: 260px; padding-left: 17px; padding-right: 17px; }
  .fs-header { padding: 14px 18px; }.fs-section { padding-top: 18px; padding-bottom: 17px; }.fs-section-title { margin-bottom: 13px; }
  .fs-stage-heading { left: 18px; right: 155px; }.fs-mode { display: none; }.fs-view-tools { right: 13px; }
}
@media (max-width: 700px) {
  .fold-simulation { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .fs-header { padding: 10px 13px; gap: 8px; }.fs-brand { gap: 9px; }.fs-brand-icon { width: 34px; height: 34px; font-size: 28px; }.fs-eyebrow { font-size: 8px; letter-spacing: .8px; }.fold-simulation h2 { font-size: 17px; }.fs-header-actions { gap: 6px; }.fold-simulation .fs-header-actions button { padding: 7px 9px; font-size: 10px; }
  .fs-body { flex-direction: column; }.fs-stage { flex: 1 0 38%; min-height: 210px; }.fs-sidebar { flex: 0 1 47%; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; border-left: 0; border-top: 1px solid var(--fs-border); padding: 0 17px 14px; }.fs-progress-section { grid-column: 1 / -1; }.fs-progress-section .fs-section-title { margin-bottom: 4px; }.fs-progress-section .fs-muted { margin-top: 9px; }.fs-progress-number b { font-size: 26px; }.fs-range-labels { margin-bottom: 9px; }.fs-section { padding-top: 14px; padding-bottom: 14px; }.fs-file-actions { grid-column: 1 / -1; flex-direction: row; }.fs-file-actions button { flex: 1; }.fs-model-note { grid-column: 1 / -1; padding-top: 11px; padding-bottom: 11px; }.fs-model-note p br { display: none; }.fs-model-note p span { margin-left: 8px; }.fs-stage-bottom { left: 16px; bottom: 12px; font-size: 9px; }.fs-stage-heading { top: 17px; left: 16px; }.fs-view-tools { top: 11px; }.fs-footer { padding: 0 13px; flex-basis: 28px; font-size: 9px; }.fs-footer > span:last-child { display: none; }.fs-stats { gap: 10px; }.fs-stats > div { font-size: 10px; }.fs-stats dd { font-size: 10px; }
  .fs-empty { top: 52%; }.fs-empty-symbol { display: none; }.fold-simulation .fs-empty h3 { font-size: 15px; }.fs-empty p { font-size: 10px; margin: 9px 0 12px; }.fs-error { left: 14px; right: 14px; bottom: 35px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fold-simulation * { scroll-behavior: auto; } }
