:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16202a;
  background: #f4f7fb;
  --text: #16202a;
  --muted: #687584;
  --line: rgba(25, 36, 49, .1);
  --blue: #2f6df6;
  --cyan: #05a8c9;
  --surface: rgba(255, 255, 255, .8);
  --shadow: 0 24px 80px rgba(32, 45, 64, .1);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 18% 12%, rgba(47,109,246,.13), transparent 29rem), radial-gradient(circle at 85% 8%, rgba(5,168,201,.1), transparent 25rem), linear-gradient(180deg, #fbfcfd, #f1f5f9); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }
.topbar { position: sticky; top: 12px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 18px 54px rgba(32,45,64,.1); backdrop-filter: blur(24px); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.brand { color: var(--text); text-decoration: none; display: grid; gap: 2px; }.brand span,.eyebrow { color: #748291; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.brand strong { font-size: 16px; }
.mode-chip,.status-chip,.candidate-pill,.type-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 10px; color: #536170; background: #edf2f7; font-size: 12px; font-weight: 700; white-space: nowrap; }.mode-chip i { width: 7px; height: 7px; border-radius: 50%; background: #c78213; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin: 18px 0; padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,246,253,.78)); box-shadow: var(--shadow); }.hero h1 { max-width: 690px; margin: 11px 0 15px; font-size: clamp(39px, 6vw, 70px); line-height: .98; letter-spacing: -.06em; }.hero-copy { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.75; }.hero-note { align-self: end; display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(47,109,246,.13); border-radius: 20px; background: rgba(47,109,246,.07); }.hero-note span { color: #5075ba; font-size: 12px; font-weight: 800; }.hero-note strong { font-size: 18px; }.hero-note small { color: var(--muted); }
.workflow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.58); }.workflow-step { display: flex; align-items: center; gap: 8px; color: #87919c; font-size: 13px; font-weight: 800; }.workflow-step b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e8edf4; font-size: 11px; }.workflow-step.active { color: #245bc9; }.workflow-step.active b { color: #fff; background: var(--blue); }.workflow > i { flex: 1; height: 1px; max-width: 80px; background: #d9e1e9; }
.layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 16px; }.panel,.results,.guardrail { border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 18px 54px rgba(32,45,64,.065); }.panel { padding: 23px; }.panel-head,.results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.panel-head h2,.results-head h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; }.helper { color: var(--muted); font-size: 12px; }.drop-zone { display: grid; place-items: center; gap: 9px; min-height: 262px; margin-top: 22px; padding: 20px; border: 1.5px dashed #aec4ee; border-radius: 20px; background: linear-gradient(135deg, rgba(47,109,246,.055), rgba(5,168,201,.035)); text-align: center; }.drop-zone input { display: none; }.drop-zone strong { font-size: 16px; }.drop-zone small { max-width: 260px; color: var(--muted); line-height: 1.55; }.upload-glyph { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-size: 25px; }.text-button { width: 100%; margin-top: 12px; border: 0; background: transparent; color: #3169d9; font-size: 13px; font-weight: 750; }.material-card { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 15px; border: 1px solid rgba(39,163,107,.2); border-radius: 18px; background: rgba(39,163,107,.05); }.file-mark { display: grid; width: 36px; height: 42px; place-items: center; border-radius: 9px; color: #d24545; background: #fff; box-shadow: 0 3px 10px rgba(24,35,49,.09); font-size: 10px; font-weight: 900; }.material-card strong { display: block; max-width: 230px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.material-card span:not(.status-chip) { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.status-chip { margin-left: auto; color: #1b8052; background: rgba(39,163,107,.11); }.detected-box { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }.detected-head { display: flex; justify-content: space-between; color: #536170; font-size: 12px; font-weight: 800; }.detected-head small { color: #8a96a4; font-weight: 500; }.chapter-list { display: grid; gap: 7px; margin-top: 12px; }.chapter-list span { color: #4c5b6a; font-size: 12px; }
.config-panel.disabled { opacity: .58; }.field { margin-top: 20px; }.field > label { display: block; margin-bottom: 9px; color: #364351; font-size: 13px; font-weight: 800; }.choices { display: flex; flex-wrap: wrap; gap: 8px; }.choice { border: 1px solid #dce4ed; border-radius: 999px; padding: 8px 11px; color: #596675; background: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }.choice.active { border-color: rgba(47,109,246,.28); color: #2058c7; background: rgba(47,109,246,.1); }.two-fields { display: grid; grid-template-columns: .65fr 1.35fr; gap: 12px; }.quantity { display: flex; overflow: hidden; border: 1px solid #dce4ed; border-radius: 12px; background: #fff; }.quantity input { min-width: 0; width: 100%; border: 0; padding: 10px; outline: 0; }.quantity span { display: grid; place-items: center; padding: 0 10px; color: #66727f; background: #f1f4f7; font-size: 13px; }select { width: 100%; border: 1px solid #dce4ed; border-radius: 12px; padding: 10px; color: #3d4a58; background: #fff; outline: 0; }.generate-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 25px; border: 0; border-radius: 15px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--blue), #4085f7); box-shadow: 0 10px 22px rgba(47,109,246,.25); font-size: 14px; font-weight: 800; }.generate-button:disabled { cursor: not-allowed; background: #bdc8d5; box-shadow: none; }
.results { display: none; margin-top: 16px; padding: 25px; }.results.visible { display: block; animation: enter .28s ease-out; }.results-head p { max-width: 630px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }.result-count { display: grid; min-width: 80px; place-items: center; border: 1px solid rgba(47,109,246,.14); border-radius: 16px; padding: 10px; color: #5870a0; background: rgba(47,109,246,.06); }.result-count strong { color: #215acb; font-size: 25px; }.result-count span { font-size: 11px; }.question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 21px; }.question-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.86); }.question-head { display: flex; justify-content: space-between; }.type-pill { color: #255eca; background: rgba(47,109,246,.09); }.candidate-pill { color: #9a6715; background: rgba(199,130,19,.1); }.question-card h3 { margin: 14px 0 12px; font-size: 15px; line-height: 1.55; }.question-options { display: grid; gap: 6px; color: #566474; font-size: 12px; line-height: 1.45; }.question-options div { padding: 7px 9px; border-radius: 8px; background: #f6f8fa; }.question-card details { margin-top: 13px; color: #536170; font-size: 12px; }.question-card summary { cursor: pointer; color: #3569c9; font-weight: 750; }.answer-box,.question-card details p { margin: 10px 0 0; line-height: 1.6; }.evidence { margin-top: 9px; padding: 8px; border-left: 2px solid #78a1ee; color: #55709d; background: #f2f6ff; line-height: 1.5; }.question-card footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 17px; }.quiet-button,.save-button { border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 750; }.quiet-button { border: 1px solid #dae2ea; color: #617080; background: #fff; }.save-button { border: 1px solid rgba(47,109,246,.16); color: #245ccc; background: rgba(47,109,246,.09); }.save-button.saved { border-color: rgba(39,163,107,.2); color: #1d8153; background: rgba(39,163,107,.1); }.guardrail { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 18px 22px; }.guardrail div { display: grid; gap: 5px; }.guardrail span { color: #6781ae; font-size: 11px; font-weight: 900; letter-spacing: .08em; }.guardrail strong { font-size: 14px; }.guardrail p { max-width: 560px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) { .app-shell { width: min(100% - 24px, 680px); padding-top: 12px; }.hero,.layout { grid-template-columns: 1fr; }.hero { padding: 25px; }.hero h1 { font-size: clamp(38px, 12vw, 60px); }.workflow { overflow: auto; }.workflow > i { min-width: 25px; }.question-grid { grid-template-columns: 1fr; }.guardrail { display: grid; }.topbar { top: 6px; }.mode-chip { font-size: 10px; } }

.fixed-value { border: 1px solid #dce4ed; border-radius: 12px; padding: 11px 12px; color: #3d4a58; background: #f7f9fb; font-size: 13px; font-weight: 700; }
.question-metadata { display: flex; flex-wrap: wrap; gap: 6px; margin: -3px 0 12px; }
.question-metadata span { border: 1px solid #e1e7ee; border-radius: 999px; padding: 4px 8px; color: #667483; background: #f7f9fb; font-size: 10px; font-weight: 700; }
.candidate-pill.pending { color: #9a6715; background: rgba(199,130,19,.1); }
.candidate-pill.approved { color: #1b8052; background: rgba(39,163,107,.11); }
.candidate-pill.returned { color: #b34949; background: rgba(201,74,74,.1); }
.save-button:disabled { cursor: default; opacity: .72; }
.review-center { margin-top: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 18px 54px rgba(32,45,64,.065); }
.review-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.review-counts span { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: #657382; background: rgba(255,255,255,.7); font-size: 11px; }
.review-counts b { margin-left: 4px; color: #223246; font-size: 16px; }
.review-list { display: grid; gap: 12px; margin-top: 20px; }
.review-item { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.86); }
.review-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-item-head h3 { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; }
.review-source { padding: 10px 12px; border-radius: 10px; color: #5d6d7d; background: #f5f7fa; font-size: 11px; line-height: 1.55; }
.review-note { display: grid; gap: 7px; margin-top: 13px; color: #425160; font-size: 12px; font-weight: 800; }
.review-note textarea { width: 100%; min-height: 72px; border: 1px solid #dce4ed; border-radius: 11px; padding: 10px 11px; color: #364351; background: #fff; font: inherit; font-size: 12px; line-height: 1.55; resize: vertical; }
.review-note textarea:focus { outline: 2px solid rgba(47,109,246,.13); border-color: rgba(47,109,246,.35); }
.review-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 13px; }
.return-button { color: #a74444; }
.review-finished { color: #1b8052; font-size: 12px; font-weight: 800; }
.review-boundary { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 820px) {
  .review-item-head { display: grid; }
  .review-counts { justify-content: flex-start; }
  .review-actions { flex-wrap: wrap; justify-content: flex-start; }
}

/* 真实文件生成状态沿用现有蓝灰视觉，不新增页面层级。 */
.status-chip.loading { color: #255eca; background: rgba(47,109,246,.1); }
.material-note { margin: 12px 0 0; color: #667584; font-size: 12px; line-height: 1.65; }
.generate-button.is-loading { cursor: progress; }
.inline-error { margin: 15px 0 -7px; padding: 10px 12px; border: 1px solid rgba(201,74,74,.18); border-radius: 12px; color: #a94343; background: rgba(201,74,74,.06); font-size: 12px; line-height: 1.55; }
.generation-warning { color: #9a6715 !important; }
.token-usage { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.55fr); gap: 16px; align-items: center; margin-top: 18px; padding: 16px; border: 1px solid rgba(47,109,246,.16); border-radius: 18px; background: linear-gradient(135deg, rgba(47,109,246,.06), rgba(5,168,201,.035)); }
.token-usage p { margin: 0; }.token-usage strong { display: block; margin-top: 4px; color: #243c5e; font-size: 15px; }.token-usage small { display: block; margin-top: 6px; color: #6a7888; font-size: 11px; line-height: 1.55; }.token-usage dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }.token-usage dl div { padding: 10px; border: 1px solid rgba(47,109,246,.1); border-radius: 12px; background: rgba(255,255,255,.68); }.token-usage dt { color: #687789; font-size: 11px; font-weight: 700; }.token-usage dd { margin: 4px 0 0; color: #245cca; font-size: 17px; font-weight: 850; }.token-session { grid-column: 1 / -1; color: #627184; font-size: 12px; }.token-session b { color: #245cca; }
@media (max-width: 820px) { .token-usage { grid-template-columns: 1fr; }.token-usage dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 工作台与模型用量分析共用同一套蓝白玻璃语言。 */
.view-switcher { position: fixed; top: 25px; left: 50%; z-index: 20; display: inline-flex; gap: 3px; transform: translateX(-50%); padding: 4px; border: 1px solid rgba(25,36,49,.09); border-radius: 14px; background: rgba(246,249,252,.82); box-shadow: 0 10px 28px rgba(32,45,64,.08); backdrop-filter: blur(18px); }
.view-switcher a { padding: 7px 10px; border-radius: 10px; color: #6a7787; text-decoration: none; font-size: 12px; font-weight: 800; white-space: nowrap; }.view-switcher a.active { color: #245cca; background: rgba(47,109,246,.1); }
.usage-shell { padding-bottom: 54px; }.usage-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin: 18px 0 16px; padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,246,253,.78)); box-shadow: var(--shadow); }.usage-hero h1 { max-width: 700px; margin: 11px 0 15px; font-size: clamp(37px, 5.5vw, 66px); line-height: .99; letter-spacing: -.06em; }.usage-hero p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }.usage-hero aside { align-self: end; display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(47,109,246,.13); border-radius: 20px; background: rgba(47,109,246,.07); }.usage-hero aside span { color: #5075ba; font-size: 12px; font-weight: 800; }.usage-hero aside strong { font-size: 18px; }.usage-hero aside small { color: var(--muted); }
.usage-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }.usage-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.usage-metric,.usage-section { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 18px 54px rgba(32,45,64,.06); }.usage-metric { min-height: 130px; display: grid; align-content: start; gap: 6px; padding: 18px; }.usage-metric span { color: #667585; font-size: 12px; font-weight: 800; }.usage-metric strong { color: #214f9e; font-size: clamp(24px, 3vw, 35px); letter-spacing: -.04em; }.usage-metric small { color: #7b8896; font-size: 11px; line-height: 1.45; }.usage-section { margin-top: 16px; padding: 22px; }.usage-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.usage-section-head h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.035em; }.usage-section-head > span { border: 1px solid rgba(47,109,246,.12); border-radius: 999px; padding: 7px 10px; color: #4e6d9e; background: rgba(47,109,246,.055); font-size: 11px; font-weight: 800; white-space: nowrap; }.usage-bars { display: flex; align-items: end; gap: 9px; min-height: 190px; margin-top: 25px; padding: 0 4px 0; border-bottom: 1px solid #e3e9ef; }.usage-bar-item { flex: 1; min-width: 24px; display: grid; grid-template-rows: 150px auto; align-items: end; gap: 8px; text-align: center; }.usage-bar-item i { display: block; width: min(100%, 35px); height: var(--bar-height); justify-self: center; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #58a0f6, #2f6df6); box-shadow: 0 8px 18px rgba(47,109,246,.2); }.usage-bar-item span { overflow: hidden; color: #718091; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.usage-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.usage-split .usage-section { min-width: 0; }.usage-source-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }.usage-source-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e8edf2; }.usage-source-list li:last-child { border-bottom: 0; }.usage-source-list strong { display: block; max-width: 260px; overflow: hidden; color: #344354; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.usage-source-list small { color: #7c8997; font-size: 10px; }.usage-source-list b { align-self: center; color: #245cca; font-size: 13px; white-space: nowrap; }.usage-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }.usage-facts div { padding: 14px 10px; border-radius: 13px; background: #f5f8fc; }.usage-facts span,.usage-facts b { display: block; }.usage-facts span { color: #768596; font-size: 11px; }.usage-facts b { margin-top: 6px; color: #245cca; font-size: 17px; }.usage-table-wrap { overflow-x: auto; margin-top: 18px; }.usage-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }.usage-table th { padding: 0 10px 10px; color: #7a8795; font-size: 11px; font-weight: 800; }.usage-table td { max-width: 220px; overflow: hidden; padding: 12px 10px; border-top: 1px solid #e8edf2; color: #526171; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.usage-table td:nth-child(2) { max-width: 220px; }.usage-empty,.usage-loading,.usage-error { margin-top: 20px; padding: 20px; border: 1px dashed #ccd7e3; border-radius: 15px; color: #708093; background: rgba(247,250,253,.72); font-size: 13px; line-height: 1.6; text-align: center; }.usage-empty.compact { margin-top: 20px; }.usage-error { color: #a94343; border-color: rgba(201,74,74,.2); background: rgba(201,74,74,.05); }.usage-privacy-note { margin: 16px 0 0; color: #728093; font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-width: 820px) { .view-switcher { top: 70px; }.usage-hero { grid-template-columns: 1fr; padding: 25px; }.usage-summary-grid,.usage-split { grid-template-columns: 1fr; }.usage-facts { grid-template-columns: 1fr; }.usage-bars { overflow-x: auto; }.usage-bar-item { min-width: 34px; }.usage-shell .topbar { margin-bottom: 56px; } }

/* 视图导航独占顶部空间，避免覆盖页面标题。 */
.app-shell { padding-top: 88px; }
.view-switcher { top: 18px; }

/* 多材料学习、后台任务、候选审核沿用现有蓝白玻璃体系。 */
.workflow-shell { padding-bottom: 60px; }
.workflow-page-hero { margin: 18px 0 16px; padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(237,246,253,.78)); box-shadow: var(--shadow); }
.workflow-page-hero h1 { max-width: 850px; margin: 10px 0 14px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.055em; }
.workflow-page-hero > p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.workflow-columns { display: grid; grid-template-columns: minmax(320px,.78fr) minmax(0,1.22fr); gap: 16px; }
.flow-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 18px 54px rgba(32,45,64,.06); }
.full-panel { min-height: 360px; }
.section-heading,.detail-title,.candidate-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading h2,.detail-title h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.section-heading > span,.section-heading > strong { color: #66788e; font-size: 11px; white-space: nowrap; }
.multi-upload { display: grid; place-items: center; min-height: 135px; margin-top: 18px; border: 1px dashed #b9c9dc; border-radius: 18px; padding: 20px; color: #2b5ea7; background: rgba(238,246,254,.66); text-align: center; cursor: pointer; }
.multi-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.multi-upload strong,.multi-upload small { display: block; }.multi-upload small { margin-top: 7px; color: #718095; font-size: 11px; line-height: 1.55; }
.multi-upload.is-uploading { pointer-events: none; cursor: progress; opacity: .68; }
.selected-files { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border: 1px solid #e1e7ee; border-radius: 15px; background: #f8fafc; }
.selected-files-head,.uploaded-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selected-files-head strong,.uploaded-heading strong { color: #405166; font-size: 12px; }.selected-files-head span,.uploaded-heading span { color: #758397; font-size: 10px; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e4e9ef; border-radius: 11px; background: #fff; }
.selected-file > div { min-width: 0; }.selected-file strong,.selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.selected-file strong { color: #3f5064; font-size: 11px; }.selected-file small { margin-top: 4px; color: #8190a0; font-size: 9px; }
.selected-file button { border: 0; border-radius: 8px; padding: 6px 8px; color: #a34b4b; background: rgba(201,74,74,.08); font-size: 10px; font-weight: 800; }.selected-file button:disabled { cursor: not-allowed; opacity: .5; }
.add-files-button { justify-self: start; margin-top: 2px; }
.upload-progress { display: grid; gap: 9px; margin-top: 14px; padding: 14px; border: 1px solid rgba(47,109,246,.15); border-radius: 15px; background: rgba(47,109,246,.055); }
.upload-progress > div { display: flex; align-items: center; gap: 9px; }.upload-progress strong { color: #365474; font-size: 11px; }.upload-progress b { margin-left: auto; color: #245cca; font-size: 12px; }
.upload-progress > i { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(47,109,246,.12); }.upload-progress > i span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f6df6,#59a0f2); transition: width .18s ease; }
.upload-progress small { color: #728296; font-size: 9px; line-height: 1.5; }
.upload-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid rgba(47,109,246,.2); border-top-color: #2f6df6; border-radius: 50%; animation: upload-spin .75s linear infinite; }
.uploaded-heading { margin-top: 18px; }
@keyframes upload-spin { to { transform: rotate(360deg); } }
.set-name { display: grid; gap: 7px; margin-top: 15px; color: #445468; font-size: 12px; font-weight: 800; }
.set-name input { border: 1px solid #dce4ed; border-radius: 12px; padding: 11px 12px; color: #344354; background: #fff; outline: none; }
.set-name input:focus { border-color: rgba(47,109,246,.35); box-shadow: 0 0 0 3px rgba(47,109,246,.08); }
.list-heading { margin-top: 30px; }.flow-list,.job-table,.file-grid { display: grid; gap: 9px; margin-top: 14px; }
.queue-row { display: flex; align-items: center; gap: 8px; }.queue-row > .flow-row,.queue-row > .job-row { flex: 1 1 auto; min-width: 0; }
.detail-actions { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.danger-button { flex: 0 0 auto; border: 1px solid rgba(187,73,73,.2); border-radius: 9px; padding: 7px 9px; color: #a34b4b; background: rgba(201,74,74,.07); font-size: 10px; font-weight: 850; white-space: nowrap; }.danger-button:hover { background: rgba(201,74,74,.13); }.danger-button:disabled { cursor: not-allowed; opacity: .48; }
.flow-row,.job-row { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #e1e7ee; border-radius: 15px; padding: 13px; color: #344354; background: rgba(255,255,255,.8); text-align: left; }
.flow-row.selected { border-color: rgba(47,109,246,.28); background: rgba(47,109,246,.055); }
.flow-row strong,.flow-row small,.job-row strong,.job-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.flow-row small,.job-row small { margin-top: 5px; color: #7a8796; font-size: 10px; font-weight: 500; }
.flow-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }.flow-status.run { color: #285fc8; background: rgba(47,109,246,.09); }.flow-status.ok { color: #1b8052; background: rgba(39,163,107,.1); }.flow-status.warn { color: #a55a32; background: rgba(201,105,61,.1); }
.flow-empty,.locked-config { margin-top: 16px; padding: 24px; border: 1px dashed #cbd6e2; border-radius: 16px; color: #718095; background: rgba(247,250,253,.72); font-size: 12px; line-height: 1.65; text-align: center; }
.progress-track { height: 8px; overflow: hidden; margin-top: 20px; border-radius: 999px; background: #edf1f5; }.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f6df6,#57a2ed); transition: width .25s ease; }.progress-copy { margin: 8px 0 0; color: #708095; font-size: 11px; }
.file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.file-tile { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #e4e9ef; border-radius: 13px; background: #f8fafc; }.file-tile > div { min-width: 0; }.file-tile strong,.file-tile small,.file-tile em { display: block; overflow: hidden; text-overflow: ellipsis; }.file-tile strong { font-size: 12px; white-space: nowrap; }.file-tile small { margin-top: 5px; color: #7a8796; font-size: 10px; }.file-tile em { margin-top: 6px; color: #aa4a4a; font-size: 10px; font-style: normal; line-height: 1.45; }.file-tile button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 6px 8px; color: #a34b4b; background: rgba(201,74,74,.08); font-size: 10px; font-weight: 800; }.file-tile button:disabled { cursor: not-allowed; opacity: .45; }
.file-boundary { margin: 8px 0 0; color: #7b8999; font-size: 9px; }
.analysis-box { margin-top: 16px; padding: 16px; border: 1px solid rgba(47,109,246,.14); border-radius: 17px; background: rgba(47,109,246,.05); }.analysis-box span { color: #3565ba; font-size: 11px; font-weight: 850; }.analysis-box p { margin: 8px 0 0; color: #526478; font-size: 12px; line-height: 1.7; }.analysis-box b { display: block; margin-top: 9px; color: #9a6715; font-size: 11px; }
.batch-config { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e4e9ef; }.simple-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }.simple-options label { color: #4c5b6c; font-size: 11px; font-weight: 800; }.simple-options select { margin-top: 7px; }
.count-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }.count-grid label { padding: 11px; border: 1px solid #e1e7ee; border-radius: 13px; color: #536477; background: #f8fafc; font-size: 11px; font-weight: 800; }.count-grid span { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: #7a8796; }.count-grid input { min-width: 0; width: 100%; border: 0; color: #245cca; background: transparent; font-size: 18px; font-weight: 850; outline: none; }.boundary-copy { margin: 10px 0 0; color: #758397; font-size: 10px; line-height: 1.55; text-align: center; }
.job-row { grid-template-columns: minmax(0,1fr) minmax(150px,.4fr) auto; }.job-progress span { display: block; color: #44607e; font-size: 11px; font-weight: 800; text-align: right; }.job-progress i { display: block; height: 6px; overflow: hidden; margin-top: 6px; border-radius: 999px; background: #edf1f5; }.job-progress b { display: block; height: 100%; background: #4c83e9; }
.candidate-toolbar { align-items: center; margin: 18px 0; }.candidate-toolbar > div { display: flex; align-items: center; gap: 8px; }.candidate-toolbar span { color: #6f7e90; font-size: 11px; }.candidate-toolbar select { width: min(340px,100%); }.export-button { flex: 0 0 auto; border: 1px solid rgba(47,109,246,.18); border-radius: 11px; padding: 10px 13px; color: #245cca; background: rgba(47,109,246,.08); font-size: 11px; font-weight: 850; }.export-button:hover { background: rgba(47,109,246,.13); }.export-button:disabled { cursor: not-allowed; opacity: .45; }.full-panel .question-grid { margin-top: 16px; }
@media (max-width: 820px) { .app-shell { padding-top: 76px; }.view-switcher { top: 12px; max-width: calc(100vw - 24px); overflow-x: auto; }.usage-shell .topbar,.workflow-shell .topbar { margin-bottom: 0; }.workflow-page-hero { padding: 24px; }.workflow-columns { grid-template-columns: 1fr; }.file-grid,.simple-options,.count-grid { grid-template-columns: 1fr 1fr; }.job-row { grid-template-columns: 1fr; }.queue-row { align-items: stretch; }.queue-row .danger-button { align-self: center; }.job-progress span { text-align: left; }.candidate-toolbar { display: grid; }.candidate-toolbar > div { display: grid; grid-template-columns: 1fr auto; }.candidate-toolbar select { width: 100%; } }

.boot-message { width: min(640px, calc(100% - 40px)); margin: 180px auto 0; padding: 24px; border: 1px solid rgba(25,36,49,.1); border-radius: 20px; color: #667585; background: rgba(255,255,255,.82); box-shadow: 0 18px 54px rgba(32,45,64,.07); text-align: center; }
.boot-message strong,.boot-message span { display: block; }.boot-message strong { color: #33455a; font-size: 17px; }.boot-message span { margin-top: 8px; font-size: 12px; line-height: 1.6; }
.boot-message button { margin-top: 14px; border: 0; border-radius: 10px; padding: 9px 13px; color: #fff; background: #2f6df6; font-weight: 800; }
.boot-error { color: #9a4b4b; }
.similarity-note { margin: 11px 0 0; padding: 8px 9px; border-left: 2px solid #dfa550; border-radius: 0 8px 8px 0; color: #8a5d1a; background: #fff8eb; font-size: 12px; line-height: 1.5; }
.knowledge-point-picker { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid #e4e9ef; border-radius: 14px; background: #f8fafc; }.knowledge-point-picker strong,.knowledge-point-picker small { display: block; }.knowledge-point-picker strong { color: #33455a; font-size: 12px; }.knowledge-point-picker small { margin-top: 3px; color: #718196; font-size: 11px; line-height: 1.5; }.knowledge-point-chips { display: flex; flex-wrap: wrap; gap: 7px; }.knowledge-chip { border: 1px solid #dbe4ef; border-radius: 999px; padding: 6px 9px; color: #65758a; background: #fff; font-size: 11px; line-height: 1.25; }.knowledge-chip.selected { border-color: rgba(47,109,246,.35); color: #245cca; background: rgba(47,109,246,.1); font-weight: 750; }
.scope-picker { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid #e4e9ef; border-radius: 14px; background: #f8fafc; }.scope-picker > div > strong,.scope-picker > div > small,.scope-choice small,.coverage-mode small { display: block; }.scope-picker > div > strong { color: #33455a; font-size: 12px; }.scope-picker > div > small,.scope-choice small,.coverage-mode small { margin-top: 3px; color: #718196; font-size: 11px; line-height: 1.5; }.scope-choice { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fff; cursor: pointer; }.scope-choice.selected { border-color: rgba(47,109,246,.45); background: rgba(47,109,246,.06); }.scope-choice input { margin: 3px 0 0; }.scope-choice b { display: block; color: #33455a; font-size: 12px; }.coverage-mode { color: #4c5b6c; font-size: 11px; font-weight: 800; }.coverage-mode select { margin: 7px 0 0; }
.review-history { margin-top: 10px; padding: 8px 10px; border-radius: 9px; color: #627184; background: #f7f9fb; font-size: 11px; line-height: 1.55; }.review-history summary { color: #536b8e; }.review-history p { margin: 7px 0 0; }
.job-quality { display: block; margin-top: 5px; color: #61789b; font-size: 10px; font-style: normal; line-height: 1.45; }
.revision-editor { margin-top: 11px; padding: 11px; border: 1px solid #dce6f2; border-radius: 12px; background: #f7faff; }.revision-editor summary { color: #315f9e; font-size: 12px; font-weight: 800; }.revision-editor label { display: grid; gap: 5px; margin-top: 9px; color: #52667e; font-size: 11px; font-weight: 750; }.revision-editor textarea,.revision-editor input { width: 100%; box-sizing: border-box; border: 1px solid #d7e0eb; border-radius: 8px; padding: 8px; color: #34465a; background: #fff; font: inherit; font-weight: 500; line-height: 1.5; }.revision-editor textarea { min-height: 64px; resize: vertical; }.revision-editor .save-button { margin-top: 10px; }.revision-editor small { display: block; margin-top: 7px; color: #7a899b; line-height: 1.45; }
.quiz-panel { max-width: 860px; margin: 0 auto; }.quiz-summary { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #e4e9ef; }.quiz-summary > div { display: grid; gap: 3px; min-width: 112px; padding: 12px 14px; border-radius: 14px; background: #f5f8fc; }.quiz-summary span,.quiz-summary small { color: #718196; font-size: 10px; }.quiz-summary strong { color: #245cca; font-size: 20px; }.quiz-summary .quiet-button { margin-left: auto; }.quiz-list { display: grid; gap: 14px; margin-top: 18px; }.quiz-card { padding: 20px; border: 1px solid #e0e7ef; border-radius: 18px; background: #fff; }.quiz-card h2 { margin: 15px 0; color: #253444; font-size: 17px; line-height: 1.65; }.quiz-options { display: grid; gap: 8px; }.quiz-option { width: 100%; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dfe6ee; border-radius: 12px; padding: 12px; color: #516174; background: #f8fafc; text-align: left; transition: .16s ease; }.quiz-option:hover { border-color: rgba(47,109,246,.4); background: #f3f7ff; }.quiz-option.selected { border-color: #4e82e8; color: #245cca; background: rgba(47,109,246,.08); }.quiz-option:disabled { cursor: default; }.quiz-option b { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #51709a; background: #e9eff7; font-size: 11px; }.quiz-option.selected b { color: #fff; background: #2f6df6; }.quiz-option span { font-size: 13px; line-height: 1.55; }.quiz-short-answer { width: 100%; min-height: 110px; border: 1px solid #dce4ed; border-radius: 12px; padding: 12px; color: #34465a; background: #f8fafc; font: inherit; line-height: 1.6; resize: vertical; }.quiz-result { margin-top: 14px; padding: 14px; border-radius: 12px; font-size: 13px; line-height: 1.65; }.quiz-result b,.quiz-result span { display: block; }.quiz-result p { margin: 6px 0 0; }.quiz-result.correct { color: #19764d; background: rgba(39,163,107,.1); }.quiz-result.incorrect { color: #a04c43; background: rgba(201,74,74,.09); }.quiz-result.reference { color: #45637f; background: rgba(47,109,246,.07); }.quiz-card footer { display: flex; justify-content: flex-end; margin-top: 14px; }
