/* 号码灵感实验室：数据熔炉新版 */
.labx-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 15px; margin-bottom: 14px; }
.labx-lottery { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.labx-lottery > label { font-size: 11px; color: var(--muted); }
.labx-groups { display: flex; align-items: center; gap: 6px; }
.labx-groups .chip { height: 29px; padding: 0 10px; font-size: 11px; }
.labx-cost { margin-left: auto; font-size: 12px; color: var(--muted); }
.labx-cost b { color: var(--brand); font-size: 18px; font-variant-numeric: tabular-nums; }
.labx-grid { display: grid; grid-template-columns: minmax(238px, 276px) minmax(0, 1fr) minmax(238px, 276px); gap: 14px; align-items: start; }
.labx-rail { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 190px); overflow: auto; padding-right: 2px; }
.labx-rail-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 1px; color: var(--faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.labx-rail-label b { color: var(--muted); font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.labx-rail::-webkit-scrollbar { width: 5px; }
.labx-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.labx-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px; }
.labx-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.labx-group-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.labx-group-head b { min-width: 21px; height: 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.labx-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.labx-dot.self { background: var(--brand); }
.labx-dot.time { background: var(--gold); }
.labx-dot.structure { background: var(--blue); }

/* 自定义灵感（中间栏，熔炉上方） */
.labx-custom {
  position: relative; z-index: 3; margin-top: 12px; padding: 10px 12px 11px;
  border: 1px solid rgba(243, 183, 68, .38); border-radius: 12px;
  background: linear-gradient(140deg, rgba(243, 183, 68, .12), rgba(211, 58, 58, .08) 70%);
  box-shadow: 0 0 22px -8px rgba(243, 183, 68, .45);
  transition: box-shadow .2s, border-color .2s;
}
.labx-custom.filled {
  border-color: rgba(243, 183, 68, .7);
  box-shadow: 0 0 30px -6px rgba(243, 183, 68, .6);
}
.labx-custom-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.labx-custom-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #f6d27d, #e5aa38); color: #2b1c09;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 4px 14px -6px rgba(243, 183, 68, .8);
}
.labx-custom-hint { color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 600; }
.labx-custom-count { margin-left: auto; color: rgba(255, 255, 255, .4); font-size: 9px; font-variant-numeric: tabular-nums; }
.labx-custom textarea {
  width: 100%; min-height: 52px; resize: vertical; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .28);
  color: #fff; padding: 7px 9px; font-size: 12px; line-height: 1.6; font-family: inherit;
}
.labx-custom textarea::placeholder { color: rgba(255, 255, 255, .38); }
.labx-custom textarea:focus { outline: none; border-color: rgba(243, 183, 68, .75); }
.labx-factor { border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin-bottom: 7px; background: var(--surface-2); transition: border-color .16s, background .16s, opacity .16s; cursor: grab; }
.labx-factor:active { cursor: grabbing; }
.labx-factor:last-child { margin-bottom: 0; }
.labx-factor.on { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.labx-factor.locked { border-color: color-mix(in srgb, var(--gold) 32%, var(--line)); }
.labx-factor.disabled { opacity: .58; }
.labx-factor-head { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.labx-factor-icon { width: 25px; height: 25px; border-radius: 7px; background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.labx-factor-title { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.labx-factor-title b { font-size: 11px; }
.labx-factor-title small { font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.labx-inject { height: 22px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 9px; cursor: pointer; flex: none; }
.labx-inject.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.labx-inject:disabled { opacity: .55; cursor: not-allowed; }
.labx-factor-body { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; cursor: default; }
.labx-factor-body input:not([type="range"]):not([type="checkbox"]) {
  width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); padding: 0 7px; font-size: 11px;
}
.labx-factor-body input:focus { outline: none; border-color: var(--brand); }
.labx-factor-body textarea {
  width: 100%; min-height: 58px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); padding: 5px 7px; font-size: 11px;
  line-height: 1.6; resize: vertical; font-family: inherit;
}
.labx-factor-body textarea:focus { outline: none; border-color: var(--brand); }
.labx-factor-body small { color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.labx-factor-body small a { color: var(--brand); }
.labx-value { font-size: 10.5px; font-weight: 600; line-height: 1.55; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.labx-value.muted { font-weight: 400; }
.labx-mini-row { display: flex; justify-content: space-between; gap: 7px; font-size: 9px; color: var(--muted); }
.labx-mini-row span:first-child { color: var(--ink-2); font-weight: 600; }
.labx-seg { display: flex; padding: 2px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.labx-seg button { flex: 1; height: 21px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.labx-seg button.active { background: var(--brand); color: #fff; }
.labx-zone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.labx-zone-row input { text-align: center; padding: 0 2px !important; }
.labx-factor-disabled { color: var(--muted); font-size: 8.5px; line-height: 1.5; margin-top: 7px; }
.labx-stage {
  position: relative; min-width: 0; border-radius: 22px; padding: 16px;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(620px 400px at 50% -10%, rgba(211, 58, 58, .3), transparent 62%),
    radial-gradient(460px 350px at 100% 104%, rgba(47, 107, 216, .2), transparent 65%),
    linear-gradient(150deg, #1b2231, #10151e 68%);
  box-shadow: 0 26px 55px -36px rgba(10, 15, 25, .7);
}
.labx-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 25px 25px; mask-image: linear-gradient(180deg, #000, transparent 50%);
}
.labx-stage.over { outline: 2px solid rgba(243,183,68,.75); outline-offset: -2px; }
.labx-stage-head { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.labx-stage-head .eyebrow { color: rgba(255,255,255,.45); }
.labx-stage-head h2 { font-size: 20px; color: #fff; }
.labx-stage-meta { color: rgba(255,255,255,.55); font-size: 9.5px; padding-top: 4px; }
.labx-stage-meta b { color: #f3b744; font-size: 15px; }
.labx-furnace { position: relative; z-index: 2; min-height: 430px; display: flex; align-items: center; justify-content: center; }
/* 因子注入热度：注入越多，炉心光晕越盛 */
.labx-heat {
  position: absolute; inset: 4% 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 183, 68, .55), rgba(211, 58, 58, .3) 45%, transparent 72%);
  filter: blur(14px); opacity: var(--heat, 0); transition: opacity .45s ease;
}
.labx-flash {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 52%, rgba(243, 183, 68, .6), transparent 62%);
}
.labx-stage.flare .labx-flash { animation: labx-flash .95s ease; }
@keyframes labx-flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
.labx-stage.flare .labx-orb { animation: labx-burst .95s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes labx-burst {
  0% { transform: scale(1); box-shadow: inset 0 0 45px rgba(255,255,255,.13), 0 0 55px rgba(211,58,58,.26); }
  30% { transform: scale(1.24); box-shadow: inset 0 0 60px rgba(255,255,255,.3), 0 0 110px rgba(243,183,68,.85); }
  100% { transform: scale(1); box-shadow: inset 0 0 45px rgba(255,255,255,.13), 0 0 55px rgba(211,58,58,.26); }
}
.labx-stage.flare .labx-particles span { animation-duration: calc(.7s + var(--i) * .06s); opacity: .95; }
.labx-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.labx-particles span {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%;
  background: #f3b744; opacity: .45;
  transform: rotate(calc(var(--i) * 28deg)) translateY(calc(-90px - var(--i) * 9px));
  animation: labx-float calc(2.2s + var(--i) * .15s) ease-in-out infinite alternate;
}
@keyframes labx-float { to { opacity: .9; transform: rotate(calc(var(--i) * 28deg)) translateY(calc(-120px - var(--i) * 9px)) scale(1.6); } }
.labx-core {
  position: relative; width: 330px; height: 330px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  outline: none; flex: none; user-select: none;
}
.labx-core:focus-visible { box-shadow: 0 0 0 3px rgba(243,183,68,.5); }
.labx-aura { position: absolute; inset: -24px; border-radius: 50%; background: radial-gradient(circle, rgba(211,58,58,.38), rgba(47,107,216,.1) 48%, transparent 68%); filter: blur(10px); animation: labx-breathe 5s ease-in-out infinite; }
@keyframes labx-breathe { 0%,100% { opacity: .5; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.05); } }
.labx-orb-ring { position: absolute; inset: 48px; border-radius: 50%; border: 1px solid rgba(243,183,68,.55); animation: labx-spin 16s linear infinite; }
.labx-orb-ring::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
@keyframes labx-spin { to { transform: rotate(360deg); } }
.labx-core.busy .labx-orb { animation: labx-pulse .7s ease-in-out infinite alternate; }
@keyframes labx-pulse { to { transform: scale(1.06); box-shadow: 0 0 70px rgba(243,183,68,.5); } }
.labx-orb {
  position: relative; width: 184px; height: 184px; border-radius: 50%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.55), rgba(211,58,58,.52) 36%, rgba(10,15,25,.8) 72%);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 0 45px rgba(255,255,255,.13), 0 0 55px rgba(211,58,58,.26);
}
.labx-orb-spark { color: #f6d98b; font-size: 24px; line-height: 1; }
.labx-orb b { color: #fff; font-size: 13px; margin-top: 3px; }
.labx-orb small { color: rgba(255,255,255,.55); font-size: 8px; margin-top: 3px; }
.labx-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.labx-chip {
  --r: 156px;
  position: absolute; left: 50%; top: 50%; max-width: 94px;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  background: rgba(20,27,39,.9); color: rgba(255,255,255,.82);
  font-size: 8.5px; white-space: nowrap; pointer-events: auto; cursor: pointer;
  box-shadow: 0 5px 14px -8px rgba(0,0,0,.6);
  animation: labx-chip-in .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes labx-chip-in {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(24px) rotate(calc(-1 * var(--a))) scale(.3); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) scale(1); }
}
.labx-chip:hover { border-color: rgba(243,183,68,.6); color: #fff; }
.labx-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: #f3b744; flex: none; }
.labx-chip i { color: rgba(255,255,255,.35); font-style: normal; font-size: 9px; }
.labx-drop { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); z-index: 9; padding: 8px 13px; border-radius: 999px; background: rgba(243,183,68,.96); color: #2a1c08; font-size: 11px; font-weight: 700; }
.labx-stage-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.labx-stage-controls .muted { color: rgba(255,255,255,.42); font-size: 9.5px; }
.labx-stage-controls .btn { min-width: 150px; }
.labx-footnote { position: relative; z-index: 2; color: rgba(255,255,255,.35); font-size: 9px; margin-top: 8px; }
.labx-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.labx-result-card, .labx-reason-card { padding: 15px; }
.labx-result-head, .labx-reason-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.labx-result-head h3, .labx-reason-head h3 { font-size: 15px; letter-spacing: -.02em; }
.labx-result-head .eyebrow, .labx-reason-head .eyebrow { margin-bottom: 2px; }
.labx-result-head .muted { font-size: 9px; color: var(--muted); }
.labx-results { display: flex; flex-direction: column; gap: 6px; }
.labx-result-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.labx-result-row .muted { width: 40px; flex: none; font-size: 9px; }
.labx-result-actions { display: flex; gap: 6px; margin-top: 8px; }
.labx-result-actions .btn { flex: 1; height: 31px; }
.labx-empty { min-height: 126px; border: 1px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.labx-empty-glyph { color: var(--gold); font-size: 22px; line-height: 1; }
.labx-empty b { color: var(--ink-2); font-size: 12px; }
.labx-reason { color: var(--ink-2); font-size: 11px; line-height: 1.8; }
.labx-reason.muted { color: var(--muted); }
.labx-reason-foot { color: var(--faint); font-size: 9px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 9px; }
.labx-bet-panel { max-width: 440px !important; }
.labx-bet-summary { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 11px; border-radius: 9px; background: var(--surface-2); font-size: 12px; margin-bottom: 12px; }
.labx-bet-summary b { color: var(--brand); font-size: 18px; }
.labx-bet-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; font-size: 11px; color: var(--muted); }
.labx-bet-note { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 12px; }

/* 生成结果弹框：沿用灵感熔炉的深色视觉 */
.labx-result-mask {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow: auto; background: rgba(7, 10, 15, .66); backdrop-filter: blur(3px);
}
.labx-result-dialog {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  color: rgba(255, 255, 255, .82); border: 1px solid rgba(243, 183, 68, .28); border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(211, 58, 58, .24), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(47, 107, 216, .16), transparent 44%),
    linear-gradient(150deg, #20232c, #101218 74%);
  box-shadow: 0 32px 90px -28px rgba(0, 0, 0, .86), 0 0 70px rgba(211, 58, 58, .11);
  transform-origin: center center;
}
.labx-result-dialog::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: radial-gradient(rgba(255, 255, 255, .55) .65px, transparent .65px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 76%, transparent);
}
.labx-result-dialog > * { position: relative; z-index: 1; }
.labx-result-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .018);
}
.labx-result-dialog-head small { color: rgba(243, 183, 68, .72); font-size: 8px; letter-spacing: .15em; font-weight: 600; }
.labx-result-dialog-head h2 { margin: 4px 0 0; color: #fff; font-size: 21px; letter-spacing: -.025em; }
.labx-result-dialog-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .44); font-size: 10px; }
.labx-result-close {
  width: 29px; height: 29px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  display: grid; place-items: center; flex: none; color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .045); cursor: pointer;
}
.labx-result-close:hover { color: #f2c86b; border-color: rgba(243, 183, 68, .5); }
.labx-result-dialog-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.labx-result-output { min-width: 0; padding: 18px 20px 19px; background: rgba(255, 255, 255, .015); }
.labx-result-reason { min-width: 0; padding: 18px 20px 19px; background: rgba(255, 255, 255, .035); border-left: 1px solid rgba(255, 255, 255, .09); }
.labx-result-kicker { color: rgba(243, 183, 68, .56); font-size: 8px; letter-spacing: .13em; font-weight: 600; }
.labx-result-output h3, .labx-result-reason h3 { margin: 4px 0 0; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.labx-result-lead { margin: 5px 0 14px; color: rgba(255, 255, 255, .42); font-size: 9.5px; }
.labx-result-list { display: flex; flex-direction: column; gap: 7px; }
.labx-result-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 10px;
  border: 1px solid rgba(243, 183, 68, .19); border-radius: 9px; background: rgba(0, 0, 0, .2);
}
.labx-result-item > .labx-result-group-label { width: 40px; flex: none; color: rgba(255, 255, 255, .42); font-size: 9px; }
.labx-result-item .balls { flex: 1; gap: 5px; }
.labx-result-item .ball { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16), 0 0 16px rgba(211, 58, 58, .14); }
.labx-result-actions { margin-top: 14px; }
.labx-result-dialog .labx-result-actions .btn {
  height: 31px; border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .7);
}
.labx-result-dialog .labx-result-actions .btn-primary {
  border-color: #e4b34b; background: linear-gradient(180deg, #f6d27d, #e5aa38); color: #2b1c09;
}
.labx-result-reason-text {
  margin: 9px 0 11px; color: rgba(255, 255, 255, .6); font-size: 12px; line-height: 1.85;
}
.labx-result-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.labx-result-tags span { padding: 3px 6px; border-radius: 4px; color: rgba(243, 206, 132, .82); background: rgba(243, 183, 68, .1); font-size: 8px; }
.labx-result-disclaimer { margin: 12px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .3); font-size: 8.5px; line-height: 1.65; }
.labx-result-enter-active { animation: labx-result-mask-in .45s ease both; }
.labx-result-enter-active .labx-result-dialog { animation: labx-result-pop 1.8s linear both; }
.labx-result-leave-active { animation: labx-result-mask-out .22s ease both; }
.labx-result-leave-active .labx-result-dialog { animation: labx-result-out .22s ease both; }
@keyframes labx-result-mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes labx-result-mask-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes labx-result-pop {
  0% { opacity: 0; transform: scale(.62) rotate(-1080deg); }
  64% { opacity: 1; transform: scale(1.035) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes labx-result-out { to { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  .labx-result-enter-active, .labx-result-leave-active,
  .labx-result-enter-active .labx-result-dialog, .labx-result-leave-active .labx-result-dialog {
    animation: none;
  }
}
@media (max-width: 760px) {
  .labx-result-dialog-body { grid-template-columns: 1fr; }
  .labx-result-reason { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); }
  .labx-result-dialog-head, .labx-result-output, .labx-result-reason { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 1240px) {
  .labx-grid { grid-template-columns: 252px minmax(0, 1fr); }
  .labx-rail { max-height: none; }
  .labx-rail-right { grid-column: 1 / -1; }
  .labx-rail-right .labx-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .labx-rail-right .labx-group-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .labx-grid { grid-template-columns: 1fr; }
  .labx-stage { order: -1; }
  .labx-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .labx-rail-right .labx-group { grid-template-columns: 1fr 1fr; }
  .labx-furnace { min-height: 420px; }
  .labx-core { width: 290px; height: 290px; }
  .labx-chip { --r: 136px; }
}
@media (max-width: 640px) {
  .labx-toolbar { align-items: flex-start; gap: 9px; }
  .labx-cost { margin-left: 0; }
  .labx-rail { grid-template-columns: 1fr; }
  .labx-rail-right .labx-group { grid-template-columns: 1fr; }
  .labx-furnace { min-height: 360px; }
  .labx-core { width: 250px; height: 250px; }
  .labx-orb { width: 152px; height: 152px; }
  .labx-orbit { display: none; }
  .labx-stage-controls { flex-direction: column; align-items: stretch; }
  .labx-stage-controls .btn { width: 100%; }
}

/* AI 流式思考过程 */
.labx-stream { display: flex; flex-direction: column; gap: 10px; }
.labx-stream-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.labx-stream-head b { color: var(--gold); }
.labx-stream-note { font-size: 12px; color: var(--muted); font-weight: 400; }
.labx-stream-text {
  min-height: 180px; max-height: 340px; overflow: auto; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  font-size: 12.5px; line-height: 1.8; color: var(--text, #3c4350);
  white-space: pre-wrap; word-break: break-word;
}
.labx-stream-foot { font-size: 12px; color: var(--muted); margin: 0; }
