.language-toggle { position: fixed; right: 22px; bottom: 20px; z-index: 20; min-width: 72px; padding: 9px 14px; border: 1px solid #0b8f89; border-radius: 999px; background: #fff; color: #087d78; font: 600 12px/1.2 inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(24, 66, 76, .16); }
.language-toggle:hover, .language-toggle:focus-visible { background: #e4f5f2; outline: 2px solid rgba(11, 143, 137, .28); outline-offset: 2px; }

/* Account security is isolated from the processing module layout. */
.app-shell .account-heading { align-items: center; margin-bottom: 28px; }
.app-shell .account-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cce7df; border-radius: 999px; background: #f1fbf8; color: #147568; font-size: 12px; font-weight: 700; }
.app-shell .account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 40px; }
.app-shell .account-panel { padding: 26px; border: 1px solid #dbe3e8; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(24, 48, 61, .05); }
.app-shell .account-panel h2 { margin: 5px 0 0; color: #17212b; font-size: 19px; }
.app-shell .account-panel .section-intro { margin-bottom: 22px; }
.app-shell .panel-kicker { color: #087f78; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.app-shell .account-form { display: grid; gap: 14px; }
.app-shell .account-form label { display: grid; gap: 7px; color: #46545e; font-size: 13px; font-weight: 700; }
.app-shell .account-form input { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #cbd6dc; border-radius: 6px; background: #fbfcfd; color: #17212b; font: inherit; }
.app-shell .account-form input:focus { border-color: #168b82; outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(22, 139, 130, .12); }
.app-shell .account-form small { margin-top: -2px; color: #87949d; font-size: 11px; font-weight: 400; }
.app-shell .account-form .btn-primary { width: 100%; margin-top: 2px; }
.app-shell .account-email-form .btn-primary { margin-top: 17px; }
.app-shell .form-message { min-height: 20px; margin: 0; color: #52616d; font-size: 13px; line-height: 1.5; }
.app-shell .session-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.app-shell .account-sessions-panel { grid-column: 1 / -1; }
.app-shell .session-list { display: grid; gap: 9px; margin: 0 0 14px; }
.app-shell .session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e2e9ed; border-radius: 6px; background: #f8fafb; }
.app-shell .session-row div { display: grid; gap: 4px; min-width: 0; }
.app-shell .session-row strong { overflow: hidden; color: #273743; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .session-row span, .app-shell .muted-copy { color: #7a8790; font-size: 12px; }
.app-shell .session-revoke { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #dbe3e8; border-radius: 50%; background: #fff; color: #a04a3f; cursor: pointer; }
.app-shell .session-revoke:hover { background: #fff1ef; }
@media (max-width: 760px) { .app-shell .account-grid { grid-template-columns: 1fr; } .app-shell .account-heading, .app-shell .session-heading { align-items: start; flex-direction: column; } .app-shell .account-sessions-panel { grid-column: auto; } }
* { box-sizing: border-box; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; max-width: 860px; margin: 32px auto; padding: 0 20px; color: #222; background: #fafbfc; }
h1 { margin-bottom: 4px; }
.badge { font-size: 12px; background: #007bff; color: #fff; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
.subtitle { color: #666; margin-top: 0; }

/* ===== 五阶段工作流 ===== */
.stage { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 20px 24px; margin-top: 20px; }
.stage-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stage-heading { min-width: 0; }
.stage-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #007bff; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.stage-header h2 { margin: 0; font-size: 18px; }
.stage-kicker { margin: 3px 0 0; color: #7a828c; font-size: 12px; }
.stage-action { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.package-option { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #425466; font-size: 13px; cursor: pointer; }
.package-option input { width: 16px; height: 16px; accent-color: #007bff; }
.stage-status { color: #666; font-size: 13px; margin-top: 6px; min-height: 20px; }
#inferenceElapsed { margin-left: auto; }
#processingElapsed { margin-left: auto; }
.stage-placeholder { padding: 14px 16px; border: 1px dashed #c7d0da; border-radius: 8px; color: #697586; background: #f8fafc; font-size: 13px; line-height: 1.6; }
.stage-placeholder-card { min-height: 148px; }
.stage-summary { margin: 12px 0; padding: 14px 16px; border: 1px solid #cdd8e3; border-radius: 8px; background: #fbfdff; color: #425466; font-size: 13px; line-height: 1.55; }
.stage-summary-title { color: #243b53; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.stage-summary-lead { color: #526579; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; margin-top: 9px; }
.stage-summary-risk { margin-top: 9px; color: #26734d; }
.stage-summary-risk.has-risk { color: #b54708; }
#inspectionSummary .stage-summary-risk { display: none; }
.inference-stream { margin: 12px 0; border: 1px solid #cdd8e3; border-radius: 8px; overflow: hidden; background: #101820; color: #d9e7ef; }
.inference-stream-header { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #263744; color: #9fc5d6; font-size: 12px; }
.inference-stream-content { margin: 0; padding: 12px; min-height: 96px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.6 Consolas, "Courier New", monospace; }
.processing-details-title { color: #243b53; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.processing-details-lead { color: #526579; margin-bottom: 10px; }
.processing-ledger { border: 1px solid #d9e2ec; border-radius: 7px; overflow: hidden; background: #fff; }
.processing-ledger-row { display: grid; grid-template-columns: 28px 74px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-bottom: 1px solid #edf2f7; }
.processing-ledger-row:last-child { border-bottom: 0; }
.processing-ledger-index { color: #829ab1; font-variant-numeric: tabular-nums; }
.processing-ledger-category { color: #1769aa; font-size: 12px; font-weight: 700; }
.processing-ledger-main strong { color: #243b53; font-size: 13px; }
.processing-ledger-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; color: #526579; font-size: 12px; line-height: 1.45; }
.processing-ledger-arrow { color: #829ab1; }
.processing-ledger-context { margin-top: 2px; color: #829ab1; font-size: 11px; }
.processing-ledger-status { white-space: nowrap; border-radius: 10px; padding: 2px 7px; background: #e3fcef; color: #26734d; font-size: 11px; }
.processing-ledger-status.status-failed { background: #ffebe6; color: #b54708; }
.processing-ledger-status.status-preserved { background: #f0f4f8; color: #526579; }
.empty-ledger { padding: 12px; color: #829ab1; font-size: 12px; }
.processing-summary-heading { margin-top: 16px; padding-top: 13px; border-top: 1px solid #d9e2ec; }
#processingSummary { height: auto; max-height: none; overflow: visible; }
#processingSummary .processing-ledger { overflow: visible; }

/* ===== 按钮 ===== */
.btn-primary { padding: 10px 26px; font-size: 15px; background: #007bff; color: #fff; border: none; border-radius: 6px; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #0069d9; }
.btn-primary.repeat-action { background: #f0b429; color: #3d2b00; }
.btn-primary.repeat-action:hover { background: #d99a16; }
.btn-primary:disabled { background: #9cc3ef; cursor: not-allowed; }
.btn-secondary { padding: 9px 22px; font-size: 14px; background: #fff; color: #56616f; border: 1px solid #c7d0da; border-radius: 6px; cursor: pointer; }
.btn-secondary:hover { border-color: #8aa4bf; color: #315d85; }
.btn-secondary.approve-attention { animation: approve-attention 1.1s ease-in-out infinite; border-color: #2e7d32; color: #1b5e20; background: #dafbe1; }
.btn-secondary:disabled { color: #9aa3ad; background: #f3f5f7; cursor: not-allowed; }
.quick-clean-btn { margin-left: auto; padding: 8px 18px; border: 0; border-radius: 6px; background: #e8590c; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.quick-clean-btn:hover { background: #d9480f; }
.quick-clean-btn:disabled { background: #ffc078; cursor: not-allowed; }
.quick-clean-btn { margin-left: auto; padding: 8px 18px; border: 0; border-radius: 6px; background: #e8590c; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.quick-clean-btn:hover { background: #d9480f; }
.quick-clean-btn:disabled { background: #ffc078; cursor: not-allowed; }

@keyframes approve-attention {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.15); }
	50% { box-shadow: 0 0 0 5px rgba(46, 125, 50, 0.28); }
}

/* ===== 平台切换 ===== */
#stage4Controls { flex-direction: column; align-items: flex-start; gap: 10px; }
.platform-toggle { display: flex; align-items: center; gap: 8px; }
.platform-label { font-size: 13px; color: #666; }
.platform-btn { padding: 6px 14px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #444; cursor: pointer; transition: all .2s; }
.platform-btn:hover { border-color: #28a745; color: #28a745; }
.platform-btn.active { background: #28a745; color: #fff; border-color: #28a745; }

/* ===== 贴图模式切换 ===== */
.embed-toggle { display: flex; align-items: center; gap: 8px; }
.embed-btn { padding: 6px 14px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #444; cursor: pointer; transition: all .2s; }
.embed-btn:hover { border-color: #28a745; color: #28a745; }
.embed-btn.active { background: #28a745; color: #fff; border-color: #28a745; }

/* ===== 模块化处理工作台 ===== */
.module-workbench { flex: 0 0 100%; width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f2; }
.module-workbench-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.module-workbench-note { color: #8b949e; font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.module-card { position: relative; display: flex; align-items: flex-start; gap: 9px; min-height: 72px; padding: 11px 12px; border: 1px solid #d0d7de; border-radius: 8px; background: #fff; cursor: pointer; }
.module-card.active { border-color: #2e7d32; background: #f6fff8; }
.module-card.disabled { background: #f6f8fa; cursor: not-allowed; opacity: .72; }
.module-input { margin-top: 3px; accent-color: #2e7d32; }
.module-card-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.module-card-title { color: #24292f; font-size: 13px; font-weight: 700; }
.module-card-desc { color: #656d76; font-size: 12px; line-height: 1.45; }
.module-status { flex-shrink: 0; padding: 2px 6px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.module-status.ready { color: #1a7f37; background: #dafbe1; }
.module-status.planned { color: #8250df; background: #fbefff; }
.module-status.blender { color: #0969da; background: #ddf4ff; }
.module-status.llm { color: #8250df; background: #fbefff; }
.module-status.integration { color: #9a6700; background: #fff8c5; }
.m3-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid #b7dfc0; border-radius: 8px; background: #f6fff8; }
.m3-controls label { display: flex; flex-direction: column; gap: 4px; color: #3f4b43; font-size: 12px; font-weight: 600; }
.m3-controls input, .m3-controls select { width: 100%; min-height: 30px; padding: 4px 6px; border: 1px solid #c7d3ca; border-radius: 5px; background: #fff; color: #24292f; }

@media (max-width: 600px) {
	.module-grid { grid-template-columns: 1fr; }
	.module-workbench-header { align-items: flex-start; flex-direction: column; gap: 3px; }
	.m3-controls { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 601px) and (max-width: 820px) {
	.module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 上传区 ===== */
.dropzone { border: 2px dashed #bbb; padding: 22px; text-align: center; border-radius: 10px; background: #fafbfc; cursor: pointer; transition: border-color .2s; }
.dropzone:hover, .dropzone.dragover { border-color: #007bff; background: #f0f6ff; }
.dropzone > p:first-child { margin: 0 0 6px; }
.dropzone .filename { min-height: 20px; margin: 0; color: #007bff; font-weight: 600; }

/* ===== 预览 ===== */
.preview { margin-top: 16px; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; background: #f4f7f8; }
.preview-title { padding: 8px 12px; font-size: 13px; color: #666; border-bottom: 1px solid #eee; }
#preview, [data-task-preview] { width: 100%; height: 320px; background: #f4f7f8; }
.hidden { display: none; }

/* ===== 模型信息面板 ===== */
.model-info { margin-top: 16px; border: 1px solid #d0d7de; border-radius: 10px; overflow: hidden; background: #f8fafc; }
.model-info-header { padding: 10px 14px; font-size: 14px; font-weight: 600; color: #24292f; background: #f0f3f6; border-bottom: 1px solid #d0d7de; }
.model-info-body { padding: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.info-item { display: flex; gap: 8px; font-size: 13px; line-height: 1.6; }
.info-label { color: #656d76; min-width: 60px; flex-shrink: 0; }
.info-value { color: #24292f; font-weight: 500; word-break: break-all; }
.info-texture-section { margin-top: 12px; }
.info-sub-title { font-size: 13px; font-weight: 600; color: #24292f; margin: 10px 0 6px; }
.geometry-quality { display: flex; flex-wrap: wrap; gap: 6px; }
.quality-badge { font-size: 12px; padding: 3px 8px; border-radius: 12px; }
.quality-badge.good { color: #1a7f37; background: #dafbe1; }
.quality-badge.caution { color: #9a6700; background: #fff8c5; }
.quality-badge.bad { color: #cf222e; background: #ffebe9; }
.uv-analysis-summary { width: 100%; font-size: 12px; line-height: 1.5; color: #57606a; }
.inspection-option { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: #1f3b5b; font-size: 13px; }
.inspection-option input { margin: 0; }
.inspection-option small { color: #b45309; }
.materials-list { font-size: 13px; }
.mat-item { padding: 4px 0; border-bottom: 1px dashed #eee; }
.mat-item b { color: #24292f; }
.mat-tex { display: inline-block; font-size: 12px; color: #57606a; background: #f0f3f6; padding: 1px 6px; border-radius: 4px; margin: 2px 4px 2px 0; }
.mat-tex.no-tex { color: #cf222e; background: #ffebe9; }
.no-data { color: #8b949e; font-size: 13px; font-style: italic; }
.stage-summary-subtitle { margin-top: 12px; font-size: 13px; font-weight: 600; color: #24292f; }
.summary-plan span { line-height: 1.5; }
.module-results { display: grid; gap: 8px; }
.module-result-row { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(150px, 1fr) minmax(170px, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid #e1e8ef; border-radius: 5px; background: #fbfdff; color: #526579; font-size: 12px; line-height: 1.45; }
.module-result-row strong { color: #243b53; }
.module-result-status { white-space: nowrap; font-weight: 600; color: #26734d; }
.module-result-status.status-needs_review { color: #b54708; }
.module-result-status.status-blocked { color: #b42318; }
@media (max-width: 720px) { .module-result-row { grid-template-columns: 1fr; gap: 3px; } .module-result-status { white-space: normal; } }
.inference-stream { margin: 12px 0; border: 1px solid #c9d7e5; border-radius: 8px; overflow: hidden; background: #101820; }
.inference-stream-header { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; color: #d7e5f2; background: #1b2a38; font-size: 12px; font-weight: 600; }
.inference-stream-header span:last-child { color: #8fb3cf; font-weight: 400; }
.inference-stream-content { margin: 0; padding: 12px; max-height: 260px; overflow-y: auto; color: #c7e7d0; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ===== 处理日志面板 ===== */
.log-panel { margin-top: 16px; border: 1px solid #d0d7de; border-radius: 10px; overflow: hidden; background: #0d1117; }
.log-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #161b22; color: #c9d1d9; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-user-select: none; user-select: none; }
.log-header:hover { background: #1c2129; }
.log-content { padding: 10px 14px; max-height: 300px; overflow-y: auto; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.7; }
.log-line { color: #c9d1d9; white-space: pre-wrap; word-break: break-all; }
.log-line.log-info { color: #58a6ff; }
.log-line.log-success { color: #3fb950; }
.log-line.log-error { color: #f85149; }
.log-line.log-normal { color: #c9d1d9; }

/* ===== 清洗结果汇总 ===== */
.clean-result { margin-top: 16px; border: 1px solid #d0d7de; border-radius: 10px; overflow: hidden; background: #fff; }
.clean-result-header { padding: 10px 14px; font-size: 14px; font-weight: 600; color: #24292f; background: #f0f3f6; border-bottom: 1px solid #d0d7de; }
.clean-result-body { padding: 14px; }

/* ===== 任务选择 ===== */
.tasks { border: 1px solid #e3e3e3; border-radius: 10px; background: #fafbfc; padding: 12px 16px; margin-top: 16px; }
.tasks legend { font-size: 13px; color: #666; padding: 0 6px; }
.tasks label { display: inline-block; margin: 6px 18px 6px 0; cursor: pointer; }
.task-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.task-row label { min-width: 210px; cursor: pointer; }
select.provider { padding: 6px 8px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; color: #444; }
.prompt-row input { flex: 1; min-width: 260px; padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; }

/* ===== 操作栏 ===== */
.actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
select { padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; }

/* ===== 检测报告 ===== */
.report { background: #fff; border: 1px solid #e3e3e3; padding: 20px; border-radius: 10px; margin-top: 16px; }
.score { font-size: 46px; font-weight: 700; }
.mode { font-size: 14px; color: #888; margin-left: 12px; font-weight: 400; }
.row { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0; color: #444; }
.error { color: #d32f2f; }
.warning { color: #f57c00; }
.info { color: #1976d2; }
.issue { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.issue .cat { font-weight: 600; }
.issue .sug { color: #1976d2; font-style: italic; }
.issue .cost { font-size: 11px; background: #fff3e0; color: #e65100; border-radius: 8px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.vtitle { margin: 0 0 10px; }

/* ===== 物体-材质映射 / 贴图来源标签 ===== */
.material-slots, .embedded-tex, .external-tex, .original-tex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.mat-tag { display: inline-block; font-size: 12px; color: #24292f; background: #e8f0fe; padding: 2px 10px; border-radius: 12px; border: 1px solid #c4d6f5; }
.src-yes { font-size: 12px; color: #1a7f37; background: #dafbe1; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.src-no { font-size: 12px; color: #656d76; background: #f0f3f6; padding: 2px 8px; border-radius: 8px; }
.src-count { font-size: 12px; color: #0969da; background: #ddf4ff; padding: 2px 8px; border-radius: 8px; font-weight: 600; }

/* ===== 物体-材质映射标签（mesh → material） ===== */
.slot-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #e8f0fe; border: 1px solid #c4d6f5; border-radius: 12px; padding: 2px 10px; margin: 2px 4px 2px 0; }
.slot-mesh { color: #0969da; font-weight: 600; }
.slot-arrow { color: #8b949e; font-size: 11px; }
.slot-mat { color: #24292f; }

/* ===== 材质-贴图连接（shader + 贴图连接） ===== */
.mat-detail-item { padding: 8px 0; border-bottom: 1px dashed #e3e3e3; }
.mat-detail-item:last-child { border-bottom: none; }
.mat-name { font-weight: 700; color: #24292f; font-size: 13px; }
.mat-shader { font-size: 11px; color: #656d76; background: #f0f3f6; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.mat-connections { margin-top: 4px; padding-left: 12px; }
.conn-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 0; }
.conn-img { color: #0969da; font-weight: 500; }
.conn-arrow { color: #8b949e; }
.conn-ch { color: #24292f; background: #ddf4ff; padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.tag-embed { font-size: 10px; color: #1a7f37; background: #dafbe1; padding: 0 4px; border-radius: 4px; margin-left: 4px; }
.no-conn { font-size: 12px; color: #8b949e; font-style: italic; padding-left: 12px; }

/* ===== 文件贴图引用 ===== */
.texture-analysis { padding: 4px 0; }
.analysis-summary { display: block; font-size: 13px; color: #24292f; margin-bottom: 8px; }
.analysis-summary b { color: #0969da; }
.analysis-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.group-label { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.connected-label { color: #1a7f37; background: #dafbe1; }
.unconnected-label { color: #9a6700; background: #fff8c5; }
.file-tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.file-tag.connected { color: #1a7f37; background: #e6f4ea; border: 1px solid #aee6b8; }
.file-tag.unconnected { color: #9a6700; background: #fff8c5; border: 1px solid #f5e08c; }
.analysis-subsection { margin-top: 12px; padding-top: 8px; border-top: 1px solid #e3e3e3; }
.material-slot-textures { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 5px 0; border-bottom: 1px dashed #e3e3e3; }
.material-slot-textures:last-child { border-bottom: none; }
.slot-texture-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #24292f; }
.slot-texture-item > span:first-child { color: #57606a; font-weight: 600; }
.slot-texture-item > span:last-child { color: #0969da; font-family: Consolas, monospace; word-break: break-all; }

/* ===== 优化步骤 ===== */
.steps { margin-top: 6px; }
.step { padding: 6px 10px; border-radius: 6px; margin: 4px 0; background: #f6f8fa; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
.step.done { border-left: 4px solid #2e7d32; }
.step.failed { border-left: 4px solid #d32f2f; }
.step.skipped { border-left: 4px solid #f57c00; }

/* ===== 下载 ===== */
.download-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
a.download { display: inline-block; padding: 10px 20px; background: #2e7d32; color: #fff; border-radius: 6px; text-decoration: none; }
a.download:hover { background: #256d28; }
a.download.fbx { background: #1565c0; }
a.download.fbx:hover { background: #0d47a1; }

/* ===== Application shell and task board ===== */
:root {
	--ink: #17212b;
	--muted: #657482;
	--line: #dbe3e8;
	--canvas: #f4f7f8;
	--panel: #ffffff;
	--teal: #087f78;
	--teal-dark: #04655f;
	--teal-soft: #dff4ef;
	--blue-soft: #e3f0ff;
	--amber: #b96b00;
	--amber-soft: #fff1d6;
}

html { scroll-behavior: smooth; }
body {
	max-width: none;
	min-width: 320px;
	margin: 0;
	padding: 0;
	color: var(--ink);
	background: var(--canvas);
	font-family: "Aptos", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
button, input, select { font: inherit; }
button { touch-action: manipulation; }
.app-shell { min-height: 100vh; }
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 34px;
	min-height: 68px;
	padding: 0 max(24px, calc((100% - 1280px) / 2));
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; width: 25px; height: 25px; padding: 5px; border-radius: 6px; background: var(--teal); }
.brand-mark i { display: block; width: 3px; background: #fff; border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 17px; }
.primary-nav { display: flex; align-self: stretch; align-items: stretch; gap: 4px; }
.primary-nav a, .nav-muted { display: inline-flex; align-items: center; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; text-decoration: none; cursor: pointer; }
.primary-nav a:hover, .primary-nav a.active, .nav-muted:hover { color: var(--teal); border-bottom-color: var(--teal); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; white-space: nowrap; }
.icon-button { justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }
.credits-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); white-space: nowrap; }
.credits-button strong { color: var(--teal-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.local-badge { padding: 5px 8px; border-radius: 4px; color: #52606d; background: #edf1f3; font-size: 12px; white-space: nowrap; }
main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 46px 0 28px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.dashboard-intro h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.subtitle { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.new-task-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--teal); border-radius: 6px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.new-task-button:hover { background: var(--teal-dark); }
.new-task-button:disabled { border-color: #b8c5c9; background: #b8c5c9; color: #f7f9fa; cursor: not-allowed; }
.new-task-button span { font-size: 19px; font-weight: 400; line-height: 1; }
.credit-admission-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(23, 33, 43, .32); }.credit-admission-dialog.hidden { display: none; }.credit-admission-panel { position: relative; width: min(390px, 100%); padding: 28px; border: 1px solid #dbe3e8; border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(24, 48, 61, .22); }.credit-admission-panel h1 { margin: 0; color: #17212b; font-size: 24px; }.credit-admission-panel p:not(.eyebrow) { margin: 10px 0 0; color: #657482; font-size: 14px; line-height: 1.6; }.credit-admission-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #657482; cursor: pointer; font-size: 16px; }.credit-admission-close:hover { border-color: #dbe3e8; color: #17212b; background: #f4f7f8; }.credit-admission-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }.credit-admission-actions .btn-primary, .credit-admission-actions .btn-secondary { min-height: 36px; padding: 0 12px; }
.intro-actions { display: flex; align-items: center; gap: 10px; }.test-entitlement { display: grid; gap: 2px; padding: 7px 10px; border: 1px solid #b9d9d4; border-radius: 6px; background: #f3fbf9; }.test-entitlement b { color: var(--teal-dark); font-size: 12px; }.test-entitlement span { color: #687780; font-size: 10px; }
.task-overview { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 7px 22px rgba(24, 48, 61, .05); }
.task-summary { display: flex; align-items: center; gap: 14px; min-height: 100px; padding: 20px 24px; }
.task-art { display: grid; width: 54px; height: 54px; place-items: center; flex: 0 0 auto; border: 1px solid #bfdfd9; border-radius: 7px; background: var(--teal-soft); color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.task-title-wrap { min-width: 0; }.task-label { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.task-title-wrap h2 { overflow: hidden; margin: 0; color: var(--ink); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.task-title-wrap p:last-child { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-status-wrap { display: flex; align-items: end; flex: 0 0 auto; flex-direction: column; gap: 7px; margin-left: auto; color: var(--muted); font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; }.status-idle { color: #64717b; background: #edf1f3; }
.history-list { display: grid; gap: 10px; }.history-card { padding:13px 18px; border:1px solid #dbe3e8; border-radius:6px; background:#fff; }.history-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.history-card-side { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:0 0 auto; }.history-card h2 { margin:2px 0 3px; font-size:17px; }.history-card-heading p:last-child { margin:0; color:#71808a; font-size:12px; }.history-meta { display:flex; align-items:center; gap:12px; white-space:nowrap; }.history-meta time { color:#71808a; font-size:11px; font-weight:500; letter-spacing:0; }.history-credit { color:#71808a; font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }.history-delete-button { flex:0 0 auto; width:30px; height:30px; padding:0; border:1px solid #efc4c1; border-radius:5px; background:#fff8f7; color:#c0392b; cursor:pointer; font-size:16px; line-height:1; }.history-delete-button:hover { border-color:#a93226; color:#a93226; background:#fff0ee; }.history-stages { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:11px; }.history-stage { display:inline-flex; gap:6px; padding:5px 9px; border:1px solid #e1e8eb; border-radius:4px; color:#53626d; font-size:12px; }.history-stage b { color:#087f78; }.history-error { margin:10px 0 0; color:#b44a43; font-size:13px; }.history-card-actions { display:flex; align-items:center; justify-content:flex-end; margin-left:auto; }.history-card-actions:empty { display:none; }.history-loading { padding:32px; border:1px dashed #cbd7dc; color:#71808a; text-align:center; }
.support-layout { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 18px; padding-bottom: 48px; }
.support-compose-panel, .support-list-panel { min-width: 0; padding: 26px; border: 1px solid #dbe3e8; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(24, 48, 61, .05); }
.support-compose-panel .section-intro, .support-list-panel .section-intro { margin-bottom: 22px; }
.support-compose-panel h2, .support-list-panel h2 { margin: 5px 0 0; color: var(--ink); font-size: 20px; }
.support-form { display: grid; gap: 15px; }
.support-form label { display: grid; gap: 7px; color: #46545e; font-size: 13px; font-weight: 700; }
.support-form input, .support-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cbd6dc; border-radius: 6px; background: #fbfcfd; color: var(--ink); font: inherit; resize: vertical; }
.support-form input:focus, .support-form textarea:focus { border-color: var(--teal); outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(22, 139, 130, .12); }
.support-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.support-form-footer .btn-primary { flex: 0 0 auto; }
.support-list-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.support-count { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.support-request-list { display: grid; gap: 12px; }
.support-request-card { padding: 16px; border: 1px solid #dbe3e8; border-left: 3px solid var(--teal); border-radius: 7px; background: #fbfdfd; }
.support-request-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.support-request-card h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; }
.support-request-meta { margin: 5px 0 13px; color: var(--muted); font-size: 11px; }
.support-request-content, .support-request-feedback { margin: 0; color: #46545e; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.support-request-feedback { margin-top: 12px; padding: 11px 12px; border-radius: 5px; background: #eef9f5; color: #23645b; }
.support-request-feedback-label { display: block; margin-bottom: 4px; color: #147568; font-size: 11px; font-weight: 800; }
.support-status { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #edf1f3; color: #687782; font-size: 11px; font-weight: 700; }
.support-status.open { background: #fff4d6; color: #956b00; }.support-status.in_progress { background: #e4f3fb; color: #14658a; }.support-status.resolved { background: #daf5e8; color: #19704b; }
.support-empty, .support-loading { padding: 32px 18px; border: 1px dashed #cbd6dc; border-radius: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
@media (max-width: 760px) { .support-layout { grid-template-columns: 1fr; }.support-form-footer { align-items: stretch; flex-direction: column; }.support-form-footer .btn-primary { width: 100%; } }
.pipeline-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 18px 24px 21px; border-top: 1px solid #edf1f3; list-style: none; }
.pipeline-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; color: #8a98a4; }.pipeline-steps li:not(:last-child)::after { position: absolute; top: 13px; left: 29px; width: calc(100% - 24px); height: 1px; background: #dbe3e8; content: ""; }
.pipeline-steps li > span { z-index: 1; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #cbd6dc; border-radius: 50%; background: #fff; color: #7b8994; font-size: 10px; font-weight: 700; }
.pipeline-steps strong { padding-top: 1px; color: inherit; font-size: 12px; }.pipeline-steps small { grid-column: 2; margin-top: -8px; font-size: 10px; }
.pipeline-steps .is-current { color: var(--teal-dark); }.pipeline-steps .is-current > span { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 0 0 4px var(--teal-soft); }
.pipeline-steps .is-complete { color: var(--teal-dark); }.pipeline-steps .is-complete > span { border-color: var(--teal); background: var(--teal); color: #fff; }.pipeline-steps .is-complete:not(:last-child)::after { background: var(--teal); }
.pipeline-steps .is-warning { color: #9a6700; }.pipeline-steps .is-warning > span { border-color: #d4a72c; background: var(--amber-soft); color: #9a6700; }.pipeline-steps .is-error { color: #a43d15; }.pipeline-steps .is-error > span { border-color: #d96d49; background: #ffebe0; color: #a43d15; }
.status-active { color: var(--teal-dark); background: var(--teal-soft); }.status-warning { color: #9a6700; background: var(--amber-soft); }.status-error { color: #a43d15; background: #ffebe0; }
.workspace { margin: 28px 0 48px; }.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 16px; }.workspace-heading h2 { margin: 0; font-size: 20px; }.workspace-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.workspace-heading { display: grid; grid-template-columns: 1fr auto; align-items: start; }.workspace-heading h1 { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.2; }.workspace-heading > p { grid-column: 1 / -1; max-width: none; margin-top: 8px; text-align: left; }.back-to-dashboard { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #54636d; font-size: 12px; cursor: pointer; }.back-to-dashboard:hover { border-color: #99c9c3; color: var(--teal-dark); background: var(--teal-soft); }
.stage { margin-top: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 3px 12px rgba(24, 48, 61, .025); }.stage-num { border-radius: 6px; background: var(--teal); }.stage-header h2 { font-size: 17px; }.stage-kicker { color: var(--muted); }.stage-placeholder { border-color: #d8e4e4; background: #f7fbfa; color: #58706d; }.dropzone { border-color: #a8c6c4; border-radius: 7px; background: #f8fbfb; }.dropzone:hover, .dropzone.dragover { border-color: var(--teal); background: var(--teal-soft); }
.btn-primary { border-radius: 6px; background: var(--teal); }.btn-primary:hover { background: var(--teal-dark); }.btn-primary:disabled { background: #9bcac5; }.quick-clean-btn { border-radius: 6px; background: #c96611; }.quick-clean-btn:hover { background: #aa540a; }
.app-footer { display: flex; justify-content: space-between; width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 21px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
	.topbar { gap: 12px; padding-inline: 20px; }.primary-nav { gap: 0; }.primary-nav a, .nav-muted { padding-inline: 8px; }.local-badge { display: none; }.pipeline-steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(105px, 1fr)); }.task-summary { padding-inline: 18px; }
}
@media (max-width: 620px) {
	.topbar { min-height: 58px; }.brand > span:last-child, .icon-button, .credits-button span { display: none; }.topbar-actions { gap: 6px; }.credits-button { padding: 0 7px; }.primary-nav a, .nav-muted { font-size: 12px; }.dashboard-intro { align-items: start; flex-direction: column; padding-top: 30px; }.dashboard-intro h1 { font-size: 26px; }.intro-actions { width: 100%; align-items: stretch; flex-direction: column; }.new-task-button { width: 100%; justify-content: center; }.task-summary { align-items: start; flex-wrap: wrap; }.task-status-wrap { align-items: start; margin-left: 68px; }.task-title-wrap { width: calc(100% - 70px); }.task-title-wrap h2, .task-title-wrap p:last-child { white-space: normal; }.workspace-heading { display: grid; align-items: start; }.workspace-heading > p { text-align: left; }.stage { padding: 18px; }.app-footer { flex-direction: column; gap: 7px; }
}

/* Account entry and public guide */
.account-menu-anchor { position: relative; }
.account-avatar-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--teal-dark); cursor: pointer; }
.account-avatar-button:hover, .account-avatar-button[aria-expanded="true"] { border-color: #99c9c3; background: var(--teal-soft); }
.account-avatar-button.is-authenticated { border-color: var(--teal); background: var(--teal); color: #fff; }
.account-avatar-mark { display: inline-flex; align-items: end; gap: 2px; width: 26px; height: 26px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: var(--teal); }
.account-avatar-mark i { display: block; width: 3px; background: #fff; border-radius: 2px; }
.account-avatar-mark i:nth-child(1) { height: 7px; }.account-avatar-mark i:nth-child(2) { height: 11px; }.account-avatar-mark i:nth-child(3) { height: 15px; }
.account-avatar-signed { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(255, 255, 255, .65); border-radius: 50%; font-size: 14px; font-weight: 800; }
.account-avatar-signed.hidden { display: none; }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; min-width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgba(24, 48, 61, .14); }
.account-menu.hidden { display: none; }
.account-menu-identity { overflow: hidden; margin: 4px 7px 6px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-item { min-height: 34px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.account-menu-item:hover { background: var(--teal-soft); color: var(--teal-dark); }
.guide-flow { display: grid; gap: 28px; padding-bottom: 48px; }
.guide-module { overflow: hidden; border: 1px solid #a9d2cc; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(24, 88, 82, .08); }
.guide-module-title { display: flex; align-items: center; gap: 16px; padding: 24px 30px; background: #087f78; color: #fff; }
.guide-module-title > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; font-size: 14px; font-weight: 800; }
.guide-module-title h2 { margin: 0; font-size: 21px; font-weight: 700; }
.guide-module-title p { margin: 5px 0 0; color: rgba(255, 255, 255, .86); font-size: 13px; }
.guide-module-planned .guide-module-title { background: #4d948b; }
.guide-description { display: flex; min-height: 190px; margin: 24px 30px 0; padding: 22px 24px; box-sizing: border-box; flex-direction: column; justify-content: center; border: 1px solid #c6dfda; border-radius: 13px; background: #f4fbfa; color: #24534e; }
.guide-description p { max-width: 900px; margin: 0; font-size: 14px; line-height: 1.7; }
.guide-description-kicker { margin-bottom: 9px !important; color: #087f78; font-size: 12px !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.guide-description-en { margin-top: 9px !important; color: #52736e; }
.guide-description-note { margin-top: 13px !important; color: #6c817d; font-size: 12px !important; }
.guide-module-planned .guide-description { border-color: #c8ddd9; background: #f7fbfa; }
html[lang="en"] [data-guide-language="zh"], html[lang="zh-CN"] [data-guide-language="en"] { display: none !important; }
html[lang="en"] [data-guide-language="en"].hidden, html[lang="zh-CN"] [data-guide-language="zh"].hidden { display: revert !important; }
.guide-before-after { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; gap: 18px; padding: 28px 30px 32px; }
.guide-panel { min-width: 0; }
.guide-panel > span { display: block; margin-bottom: 9px; color: #087f78; font-size: 12px; font-weight: 700; text-align: center; }
.guide-visual { position: relative; min-height: 190px; overflow: hidden; border: 1px solid #bfdfd9; border-radius: 13px; background: #f3faf9; }
.guide-visual::before, .guide-visual::after { position: absolute; content: ""; }
.guide-visual::before { inset: 24% 22%; border: 2px solid #4caaa0; border-radius: 8px; transform: rotate(-8deg); }
.guide-visual::after { top: 38%; left: 32%; width: 36%; height: 24%; border: 2px solid #8fcac2; border-radius: 50%; }
.guide-visual-material-before { background: repeating-linear-gradient(135deg, #f0f7f6 0 12px, #dcece9 12px 13px); }
.guide-visual-material-after { background: linear-gradient(135deg, #dcefea, #f6fcfb); }
.guide-visual-material-after::before { border-color: #087f78; box-shadow: 22px 15px 0 -4px #4d948b; }
.guide-visual-scale-before::before { transform: scaleX(.55) rotate(-8deg); }
.guide-visual-scale-after::before { transform: scale(1.12) rotate(-8deg); border-color: #087f78; }
.guide-visual-pbr-before { background: radial-gradient(circle at 32% 44%, #b9ccc8 0 15%, transparent 16%), radial-gradient(circle at 65% 55%, #789b94 0 16%, transparent 17%), #eef7f5; }
.guide-visual-pbr-after { background: radial-gradient(circle at 50% 50%, #58aaa0 0 24%, #176f67 25% 31%, transparent 32%), #e2f2ef; }
.guide-visual-segmentation-before::before { border-style: dashed; }
.guide-visual-segmentation-after::before { border-color: #d58a37; border-radius: 5px; transform: translateX(-22px) rotate(-8deg); box-shadow: 46px 20px 0 -2px #4d948b; }
.guide-visual-uv-before { background: repeating-linear-gradient(45deg, transparent 0 14px, #a9cfc8 15px 16px), #f4f9f8; }
.guide-visual-uv-after { background: repeating-linear-gradient(0deg, transparent 0 19px, #5daca2 20px 21px), repeating-linear-gradient(90deg, transparent 0 19px, #5daca2 20px 21px), #edf8f6; }
.guide-visual-rig-before::before { border-radius: 45% 45% 20% 20%; }
.guide-visual-rig-after::before { border-color: #087f78; border-radius: 45% 45% 20% 20%; box-shadow: inset 0 35px 0 -33px #d58a37; }
.guide-arrow { color: #087f78; font-size: 38px; font-weight: 300; text-align: center; }
@media (max-width: 620px) { .account-menu { right: 0; }.guide-module-title { padding: 20px; }.guide-module-title h2 { font-size: 17px; }.guide-description { min-height: 0; margin: 18px 20px 0; padding: 18px; }.guide-description p { font-size: 13px; }.guide-before-after { grid-template-columns: 1fr; gap: 12px; padding: 20px; }.guide-arrow { transform: rotate(90deg); }.guide-visual { min-height: 145px; } }

/* ===== Secondary views ===== */
.view-section.hidden, .billing-panel.hidden { display: none; }
.secondary-view { padding: 46px 0 54px; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.view-heading h1 { margin: 0; color: var(--ink); font-size: 30px; line-height: 1.2; }
.view-heading p:not(.eyebrow) { max-width: 570px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.history-heading-actions { display:flex; align-items:center; flex-wrap:nowrap; gap:7px; margin-left:auto; flex:0 0 auto; white-space:nowrap; }
.history-clear-button { margin:0 85px 0 0; flex:0 0 auto; }
.history-heading-actions .filter-group { flex-wrap:nowrap; }
.filter-group, .billing-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.filter-chip:hover, .filter-chip.active { border-color: #99c9c3; background: var(--teal-soft); color: var(--teal-dark); }
.empty-state { display: grid; min-height: 390px; place-content: center; justify-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.empty-symbol { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-size: 25px; font-weight: 300; }
.empty-state h2 { margin: 17px 0 7px; font-size: 17px; }.empty-state p { max-width: 460px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.balance-card { display: grid; min-width: 180px; gap: 2px; padding: 13px 15px; border: 1px solid #b9d9d4; border-radius: 7px; background: #f3fbf9; }.balance-card span, .balance-card small { color: var(--muted); font-size: 11px; }.balance-card strong { color: var(--teal-dark); font-size: 24px; line-height: 1.15; }
.billing-tabs { margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--line); gap: 22px; }.billing-tab { padding: 0 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }.billing-tab:hover, .billing-tab.active { border-bottom-color: var(--teal); color: var(--teal-dark); font-weight: 700; }
.billing-panel { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.section-intro { margin-bottom: 22px; }.section-intro h2 { margin: 0; font-size: 18px; }.section-intro p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.subscription-status { display: grid; justify-items: end; max-width: 360px; margin: 18px 0 0 auto; text-align: right; }
.amount-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }.amount-option, .amount-custom { display: flex; min-height: 88px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }.amount-option:hover, .amount-option:focus-visible { border-color: #5fa99d; background: #eef8f6; outline: none; }.amount-option.active { border-color: #19776c; background: #19776c; box-shadow: inset 0 0 0 1px #125e56; color: #fff; }.amount-option.active span { color: #d9f1ed; }.amount-option:disabled { opacity: 1; cursor: not-allowed; }.amount-option strong { font-size: 18px; }.amount-option span, .amount-custom span { color: var(--muted); font-size: 11px; }.amount-custom { align-items: stretch; padding: 13px; }.amount-custom input { min-width: 0; padding: 0; border: 0; outline: none; color: var(--muted); background: transparent; font-size: 15px; }
.checkout-summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: center; margin-top: 18px; padding: 17px; border-radius: 6px; background: #f4f8f8; }.checkout-summary div { display: grid; gap: 4px; }.checkout-summary span { color: var(--muted); font-size: 11px; }.checkout-summary strong { color: var(--ink); font-size: 13px; }.checkout-summary .btn-primary:disabled { opacity: 1; color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.plan-card { display: flex; min-height: 292px; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 7px; }.plan-card.current-plan { border-color: #19776c; box-shadow: inset 0 3px 0 var(--teal); background: #f1faf8; }.plan-card > p { margin: 0; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .08em; }.plan-card h2 { margin: 9px 0 7px; font-size: 19px; }.plan-price { min-height: 30px; color: var(--muted); font-size: 13px; }.plan-card ul { display: grid; gap: 9px; margin: 22px 0 auto; padding: 0; list-style: none; color: #42515b; font-size: 13px; }.plan-card li::before { margin-right: 7px; color: var(--teal); content: "•"; }.plan-card button { width: 100%; margin-top: 20px; }.plan-card button:disabled { opacity: .7; cursor: not-allowed; }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }.transactions-table { min-width: 700px; width: 100%; border-collapse: collapse; text-align: left; }.transactions-table th { padding: 12px 14px; background: #f5f8f9; color: #53626c; font-size: 11px; font-weight: 600; }.transactions-table td { padding: 17px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 820px) { .amount-grid { grid-template-columns: repeat(3, 1fr); }.checkout-summary { grid-template-columns: 1fr 1fr; }.checkout-summary .btn-primary { grid-column: span 2; }.plan-grid { grid-template-columns: 1fr; }.plan-card { min-height: 0; }.plan-card ul { margin-bottom: 4px; } }
@media (max-width: 620px) { .secondary-view { padding-top: 30px; }.view-heading { align-items: start; flex-direction: column; }.history-heading-actions { width:100%; margin-left:0; flex-wrap:wrap; }.history-clear-button { margin-right:0; }.history-heading-actions .filter-group { flex-wrap:wrap; }.balance-card { width: 100%; }.billing-tabs { gap: 15px; }.billing-panel { padding: 18px; }.subscription-status { justify-items: start; max-width: none; margin-left: 0; text-align: left; }.amount-grid { grid-template-columns: repeat(2, 1fr); }.amount-custom { grid-column: span 2; }.checkout-summary { grid-template-columns: 1fr; }.checkout-summary .btn-primary { grid-column: auto; } }

/* ===== All-task home dashboard ===== */
.task-overview { overflow: hidden; }
.task-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 20px 24px 15px; border-bottom: 1px solid #edf1f3; }.task-board-heading h2 { margin: 0; font-size: 18px; }.task-board-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }.task-board-heading > span { color: var(--muted); font-size: 11px; }
.task-list { display: grid; }.task-row-card { display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(465px, 3fr) minmax(85px, .45fr) minmax(110px, .65fr); gap: 20px; align-items: center; min-height: 112px; padding: 16px 24px; border-bottom: 1px solid #edf1f3; }.task-row-card:last-child { border-bottom: 0; }.task-row-card.is-selected { box-shadow: inset 3px 0 0 var(--teal); }.task-row-card.is-running { background: #fbfefd; }.task-row-card .task-title-wrap { width: auto; }.task-row-card .task-title-wrap h2 { font-size: 15px; }.task-row-card .task-title-wrap p:last-child { white-space: normal; }.task-row-card .pipeline-steps { min-width: 0; padding: 0; border: 0; }.task-row-card .pipeline-steps li { grid-template-columns: 26px minmax(0, 1fr); column-gap: 6px; }.task-row-card .pipeline-steps li:not(:last-child)::after { top: 12px; left: 27px; width: calc(100% - 20px); }.task-row-card .pipeline-steps li > span { width: 25px; height: 25px; font-size: 9px; }.task-row-card .pipeline-steps strong { overflow: hidden; padding-top: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.task-credit { display: grid; gap: 2px; }.task-credit span, .task-credit small { color: var(--muted); font-size: 10px; }.task-credit strong { color: var(--ink); font-size: 16px; }.task-action { display: grid; justify-items: start; gap: 5px; color: var(--muted); font-size: 10px; }.compact-action { min-height: 30px; padding: 0 13px; border: 1px solid var(--teal); border-radius: 5px; background: #fff; color: var(--teal-dark); font-size: 12px; font-weight: 700; cursor: pointer; }.compact-action:hover { background: var(--teal-soft); }.compact-action:disabled { border-color: #b8d8d4; background: #eef6f5; color: #79918f; cursor: not-allowed; }
.task-title-trigger { border-bottom: 1px solid transparent; color: var(--ink); text-decoration: none; }.task-title-trigger:hover, .task-title-trigger:focus-visible { border-bottom-color: var(--teal); color: var(--teal-dark); outline: none; }

/* ===== Persistent workspace navigation ===== */
.app-shell { min-height: 100vh; padding-left: 244px; }
.side-panel { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 244px; flex-direction: column; padding: 20px 13px 16px; border-right: 1px solid var(--line); background: #f8fafb; }
.side-brand { margin: 0 8px 27px; }.side-nav { display: grid; gap: 3px; }.side-nav + .side-nav { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }.side-nav-label { margin: 0 10px 6px; color: #7b8993; font-size: 11px; font-weight: 700; letter-spacing: .06em; }.side-nav .nav-link { display: flex; width: 100%; min-height: 36px; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #46545e; font-size: 13px; text-align: left; cursor: pointer; }.side-nav .nav-link:hover { background: #edf3f3; color: var(--teal-dark); }.side-nav .nav-link.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }.nav-symbol { display: inline-grid; width: 16px; place-items: center; color: #71808a; font-size: 14px; }.nav-icon img { display: block; width: 16px; height: 16px; opacity: .72; }.side-nav .nav-link.active .nav-icon img, .side-nav .nav-link:hover .nav-icon img { filter: invert(38%) sepia(19%) saturate(1574%) hue-rotate(128deg) brightness(84%) contrast(96%); opacity: 1; }.side-status { display: flex; align-items: center; gap: 8px; margin: auto 9px 0; padding-top: 16px; border-top: 1px solid var(--line); color: #71808a; font-size: 11px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #20a16a; box-shadow: 0 0 0 3px #daf4e7; }
.topbar { gap: 20px; min-height: 60px; padding: 0 28px; }.page-context { display: flex; align-items: center; gap: 8px; color: #667580; font-size: 13px; }.page-context b { color: #b0bbc2; font-weight: 400; }.page-context strong { color: var(--ink); font-weight: 600; }.topbar-actions { margin-left: auto; }.topbar .local-badge { display: none; }
main { width: min(1180px, calc(100% - 48px)); }.app-footer { width: min(1180px, calc(100% - 48px)); }

@media (max-width: 900px) { .app-shell { padding-left: 0; }.side-panel { position: sticky; top: 0; flex-direction: row; width: 100%; min-height: 56px; height: auto; align-items: center; gap: 12px; padding: 9px 16px; border-right: 0; border-bottom: 1px solid var(--line); }.side-brand { margin: 0; }.side-brand > span:last-child { display: none; }.side-nav { display: flex; gap: 2px; }.side-nav + .side-nav { margin: 0 0 0 auto; padding: 0; border: 0; }.side-nav-label, .side-status { display: none; }.side-nav .nav-link { min-height: 34px; width: auto; padding-inline: 8px; }.nav-symbol { display: none; }.topbar { position: static; min-height: 50px; padding-inline: 20px; }.topbar .page-context { font-size: 12px; } main, .app-footer { width: min(860px, calc(100% - 40px)); } }
@media (max-width: 520px) { .side-panel { gap: 5px; padding-inline: 11px; }.side-nav .nav-link { padding-inline: 6px; font-size: 12px; }.side-nav-account .nav-link { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.topbar { padding-inline: 16px; }.page-context > span, .page-context b { display: none; } main, .app-footer { width: min(100% - 28px, 860px); } }
.preview-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }.preview-gallery-card { min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }.gallery-label { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #edf1f3; }.gallery-label span { color: var(--ink); font-size: 13px; font-weight: 700; }.gallery-label small { color: var(--muted); font-size: 10px; }.preview-gallery-card .preview { margin: 0; border: 0; border-radius: 0; }.preview-gallery-card .preview-title { display: none; }.preview-gallery-card #preview { height: 252px; }.preview-empty { display: grid; min-height: 252px; place-items: center; color: #90a0aa; background: repeating-linear-gradient(45deg, #fbfcfc, #fbfcfc 8px, #f7f9f9 8px, #f7f9f9 16px); font-size: 12px; }

@media (max-width: 1100px) { .task-row-card { grid-template-columns: minmax(180px, 1fr) minmax(390px, 2.4fr) minmax(80px, .45fr); }.task-action { grid-column: 3; }.task-row-card .task-action .compact-action { grid-row: 2; }.task-row-card .task-action #dashboardElapsed { display: none; } }
@media (max-width: 820px) { .task-row-card { grid-template-columns: minmax(180px, 1fr) minmax(340px, 2fr); overflow-x: auto; }.task-row-card .task-credit { display: none; }.task-row-card .task-action { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; }.task-row-card .task-action .compact-action { grid-column: 2; grid-row: 1 / span 2; }.task-row-card .pipeline-steps { grid-template-columns: repeat(5, minmax(83px, 1fr)); overflow: visible; }.preview-gallery { grid-template-columns: 1fr; }.preview-gallery-card { min-height: 240px; }.preview-gallery-card #preview, .preview-empty { min-height: 190px; height: 190px; } }
@media (max-width: 620px) { .task-board-heading { align-items: start; flex-direction: column; gap: 5px; padding: 17px; }.task-row-card { grid-template-columns: 1fr; gap: 13px; min-height: 0; padding: 18px; overflow: hidden; }.task-row-card .pipeline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }.task-row-card .pipeline-steps li:not(:last-child)::after { display: none; }.task-row-card .pipeline-steps strong { overflow: visible; white-space: normal; }.preview-gallery { margin-top: 14px; }.preview-gallery-card #preview, .preview-empty { min-height: 205px; height: 205px; } }

/* Homepage task rows: stage labels remain readable without connector lines. */
.task-row-card .pipeline-steps {
	justify-content: start;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 4px;
}
.task-row-card .pipeline-steps li { min-width: 0; }
.task-row-card .pipeline-steps strong { min-width: 5em; overflow: visible; font-size: 10px; text-overflow: clip; white-space: nowrap; }
.task-row-card .pipeline-steps li:not(:last-child)::after,
.task-row-card .pipeline-steps .is-complete:not(:last-child)::after {
	display: none;
}

.task-row-card {
	grid-template-columns: 220px minmax(0, 1fr) 108px 96px 88px 64px 64px;
	gap: 12px;
}
.task-row-card > .task-title-wrap { grid-column: 1; grid-row: 1; }
.task-row-card > .pipeline-steps { grid-column: 2; grid-row: 1; }
.task-row-card > .task-progress { grid-column: 3; grid-row: 1; }
.task-row-card > .task-time { grid-column: 4; grid-row: 1; }
.task-row-card > .task-credit { grid-column: 5; grid-row: 1; }
.task-row-card > .task-action { grid-column: 6; grid-row: 1; }
.task-row-card > .task-mode-toggle { grid-column: 7; grid-row: 1; }
.task-progress {
	display: grid;
	justify-items: start;
	gap: 2px;
	min-width: 0;
}
.task-time span,
.task-credit span { color: var(--muted); font-size: 10px; }
.task-progress .status-pill { min-height: 22px; padding: 0 8px; font-size: 12px; }
.task-time,
.task-credit { display: grid; grid-template-rows: 12px 16px; row-gap: 2px; min-width: 0; }
.task-time span,
.task-credit span { line-height: 12px; }
.task-time strong,
.task-credit strong { line-height: 16px; }
.task-time strong { color: var(--ink); font-size: 10px; }
.task-action {
	justify-items: start;
}
.task-action [data-task-elapsed] {
	white-space: nowrap;
}
.task-action .compact-action {
	margin: 0;
}
.task-mode-toggle {
	display: grid;
	justify-items: start;
}
.task-mode-toggle .task-mode-btn {
	display: inline-flex;
	min-width: 78px;
	min-height: 30px;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0 7px 0 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--teal-dark);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: color .18s ease;
}
.task-mode-toggle .task-mode-btn:hover { color: var(--ink); }
.task-mode-track { position: relative; display: inline-flex; width: 32px; height: 18px; flex: 0 0 auto; align-items: center; border-radius: 999px; background: #b9c2c7; transition: background .18s ease; }
.task-mode-thumb { width: 14px; height: 14px; margin-left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 33, 43, .22); transform: translateX(14px); transition: transform .18s ease; }
.task-mode-btn[aria-checked="true"] .task-mode-track { background: var(--teal); }
.task-mode-btn[aria-checked="false"] { color: #65727a; }
.task-mode-btn[aria-checked="false"] .task-mode-thumb { transform: translateX(0); }

@media (min-width: 821px) {
	.task-row-card > .task-progress,
	.task-row-card > .task-time,
	.task-row-card > .task-credit,
	.task-row-card > .task-action,
	.task-row-card > .task-mode-toggle {
		position: relative;
		left: -0.3cm;
	}
	.task-row-card > .task-progress {
		left: 0.4cm;
	}
	.task-row-card > .task-time {
		left: 0.2cm;
	}
	.task-row-card > .task-credit {
		left: 0;
	}
	.task-row-card > .task-action {
		left: -0.5cm;
	}
	.task-row-card > .task-mode-toggle {
		left: 0;
	}
}

@media (min-width: 821px) and (max-width: 1100px) {
	.task-row-card {
		grid-template-columns: 170px minmax(0, 1fr) 96px 90px 78px 70px 64px;
		gap: 12px;
	}
	.task-row-card .pipeline-steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 0;
	}
	.task-row-card .pipeline-steps strong {
		overflow: visible;
		white-space: normal;
	}
	.task-row-card .task-progress,
	.task-row-card .task-credit {
		transform: none;
	}
	.task-mode-toggle {
		justify-self: start;
	}
}

@media (max-width: 820px) {
	.task-row-card {
		grid-template-columns: 1fr;
		overflow: hidden;
	}
	.task-row-card .pipeline-steps {
		width: 100%;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 0;
	}
	.task-row-card .pipeline-steps li {
		width: auto;
	}
	.task-row-card .pipeline-steps strong {
		overflow: visible;
		white-space: normal;
	}
	.task-row-card .task-action {
		display: grid;
		grid-column: auto;
	}
	.task-row-card .task-progress,
	.task-row-card .task-credit {
		transform: none;
	}
}

/* Dashboard preview cards end at the visible preview or its empty state. */
.preview-gallery-card {
	min-height: 0;
}
.preview-gallery-card:has(#previewWrap:not(.hidden)) > .preview-empty {
	display: none;
}

/* ===== 前后对比表 ===== */
table.compare { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
table.compare th, table.compare td { border: 1px solid #e3e3e3; padding: 6px 10px; text-align: left; }
table.compare th { background: #f6f8fa; }
.note { color: #888; font-size: 13px; }
