/* 兜底：实验室模式下两栏永远可见（旧的 nback-integrated 规则会藏掉它们） */
body.lab-mode #view-coding > .panel,
body.lab-mode #view-practice > .panel { display: flex !important; }

/* 统一实验框架 v2 样式：左大（题目与选择） + 右小（AI 对话） */
body.lab-mode .panel.le-left { flex: 1 1 66% !important; max-width: 66% !important; min-width: 0 !important; }
body.lab-mode .panel.le-right { flex: 1 1 34% !important; max-width: 34% !important; min-width: 280px !important; }

.le-panel { display: block; padding: 2px 2px 18px; }

.le-hero { padding: 4px 2px 10px; border-bottom: 1px solid #f0e3e8; margin-bottom: 12px; }
.le-kicker { font-size: 11px; letter-spacing: 2px; color: #b07c8c; text-transform: uppercase; }
.le-hero h2 { margin: 6px 0 6px; font-size: 20px; line-height: 1.5; color: #7d1b33; font-weight: 600; }
.le-hero p { margin: 0; font-size: 13px; color: #6f5a63; line-height: 1.8; }

.le-scenario { background: #fdf7ef; border: 1px solid #f0dfc8; border-radius: 10px; padding: 12px 14px; font-size: 12.8px; line-height: 1.85; color: #6b5140; margin-bottom: 12px; }

.le-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8b6a76; margin-bottom: 8px; }
.le-faint { font-size: 11.5px; color: #a08b94; line-height: 1.7; }

.le-card { background: #fff; border: 1px solid #f0e3e8; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(120,40,70,.04); }
.le-card > summary { cursor: pointer; font-size: 13px; color: #8a2542; font-weight: 600; list-style: none; }
.le-card > summary::-webkit-details-marker { display: none; }

.le-qtitle { margin: 6px 0 6px; font-size: 17px; line-height: 1.55; color: #4d2a35; font-weight: 600; }
.le-prompt { margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; color: #5c4a51; }

.le-choices { display: flex; flex-direction: column; gap: 8px; }
.le-choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e8d8de; border-radius: 10px; padding: 11px 13px; cursor: pointer; font-size: 13.5px; line-height: 1.7; background: #fff; transition: border-color .15s, background .15s; }
.le-choice:hover { border-color: #d8b5c2; background: #fffafc; }
.le-choice input { margin-top: 3px; accent-color: #a71b3c; }
.le-choice.is-ok { border-color: #6fb28a; background: #f3fbf6; }
.le-choice.is-bad { border-color: #cf6b60; background: #fdf4f2; }

.le-ok { margin-top: 10px; font-size: 12.5px; color: #2f7a52; background: #f2fbf5; border: 1px solid #cfe9da; border-radius: 8px; padding: 9px 11px; line-height: 1.7; }
.le-warn { margin-top: 10px; font-size: 12.5px; color: #9c3b2c; background: #fdf5f2; border: 1px solid #f0d2c9; border-radius: 8px; padding: 9px 11px; line-height: 1.7; }

.le-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.le-btn { background: #a71b3c; color: #fff; border: 1px solid #a71b3c; border-radius: 9px; padding: 9px 18px; font-size: 13px; cursor: pointer; }
.le-btn:hover { background: #8f1533; }
.le-btn-ghost { background: #fff; color: #8a2542; border: 1px solid #e0c6d1; border-radius: 9px; padding: 8px 14px; font-size: 12.5px; cursor: pointer; }
.le-btn-ghost:disabled { opacity: .4; cursor: default; }

.le-label { display: block; font-size: 12px; color: #8b6a76; margin: 10px 0 4px; }
.le-input { width: 100%; border: 1px solid #e8d8de; border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; color: #4d3a42; background: #fff; box-sizing: border-box; }
.le-input:focus { outline: none; border-color: #c98aa1; box-shadow: 0 0 0 3px rgba(200,138,161,.12); }
textarea.le-input { min-height: 68px; resize: vertical; line-height: 1.7; }

.le-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; }

.le-impl + .le-impl { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #f0e3e8; }

.le-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.le-table td { padding: 7px 6px; border-bottom: 1px solid #f4e9ee; }
.le-table td:last-child { color: #a08b94; }

/* 试跑弹窗 */
.le-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(40,20,30,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; }
.le-modal-card { width: 72vw; height: 72vh; max-width: 1180px; max-height: 860px; background: #fff; border-radius: 16px; box-shadow: 0 24px 80px rgba(40,10,25,.35); display: flex; flex-direction: column; overflow: hidden; }
.le-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #efe4e9; font-size: 13px; color: #7b5a68; background: #fdf8fa; flex-shrink: 0; }
.le-modal-head button { border: 1px solid #e0c6d1; background: #fff; color: #8a2542; border-radius: 8px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.le-modal-body { flex: 1; min-height: 0; background: #fbf8f9; }
.le-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  body.lab-mode #view-coding > .panel.w2, body.lab-mode #view-practice > .panel.w2 { flex: 1 1 100%; max-width: 100%; }
  body.lab-mode #view-coding > .panel.w1, body.lab-mode #view-practice > .panel.w1 { display: none; }
}
@media (max-width: 768px) {
  .le-hero h2 { font-size: 16.5px; }
  .le-qtitle { font-size: 15.5px; }
  .le-prompt, .le-choice { font-size: 13px; }
  .le-card { padding: 13px; }
  .le-modal { padding: 0; }
  .le-modal-card { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .le-actions .le-btn, .le-actions .le-btn-ghost { min-height: 42px; }
  .le-input { font-size: 16px; }
}
/* 样式：真实程序节选 */
.le-code-block{border:1px solid #ecd6de;border-radius:9px;margin:8px;overflow:hidden;background:#fdf9fa}
.le-code-title{font-size:11.5px;color:#8d2b45;background:#fdf1f4;padding:5px 9px;border-bottom:1px solid #f0dbe2}
.le-pre{margin:0;padding:9px;font:11.5px/1.55 Consolas,"Courier New",monospace;color:#4b3a42;white-space:pre-wrap;word-break:break-word;max-height:280px;overflow:auto}

