:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-bright: #fbfaf7;
  --ink: #192e34;
  --ink-soft: #526166;
  --muted: #879091;
  --line: #deded7;
  --line-dark: rgba(237, 241, 233, 0.13);
  --rail: #192f35;
  --rail-soft: #244149;
  --accent: #c95638;
  --accent-dark: #a94029;
  --accent-pale: #f2e4dc;
  --gold: #d6a75e;
  --green: #92a98e;
  --body: "DengXian", "等线", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: var(--body);
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(201, 86, 56, .28); outline-offset: 2px; }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .24s ease; }

.sidebar { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 28px 17px 18px; color: #edf0e8; background: var(--rail); overflow: hidden; }
.sidebar::after { position: absolute; right: -88px; bottom: 78px; width: 220px; height: 220px; border: 1px solid rgba(219, 174, 109, .13); border-radius: 50%; content: ""; box-shadow: 0 0 0 23px rgba(219, 174, 109, .025), 0 0 0 47px rgba(219, 174, 109, .018); pointer-events: none; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 1px 7px 32px; }
.brand-symbol { display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 27px; padding: 5px 4px; border: 1px solid rgba(229, 184, 115, .72); border-radius: 50% 50% 47% 47%; transform: rotate(-16deg); }
.brand-symbol span { display: block; width: 3px; border-radius: 5px; background: var(--gold); }
.brand-symbol span:nth-child(1) { height: 8px; }.brand-symbol span:nth-child(2) { height: 13px; }.brand-symbol span:nth-child(3) { height: 7px; }
.brand-name { color: #f4f1e8; font-family: var(--body); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.brand-name span { color: var(--gold); }
.brand-caption { margin-top: 4px; color: #aab7b3; font-size: 11px; letter-spacing: .04em; }
.new-session-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 43px; padding: 0 13px; border: 1px solid rgba(231, 237, 226, .2); border-radius: 4px; color: #f1eee4; background: rgba(255, 255, 255, .055); text-align: left; font-size: 12px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.new-session-button:hover { border-color: rgba(226, 183, 116, .65); background: rgba(255, 255, 255, .11); transform: translateY(-1px); }
.plus-mark { color: var(--gold); font-size: 19px; line-height: 1; }
.sidebar-section-head { display: flex; justify-content: space-between; align-items: center; margin: 34px 7px 11px; color: #91a3a1; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.session-count { min-width: 20px; padding: 3px 5px; border-radius: 10px; color: #c6d0c6; background: rgba(255, 255, 255, .08); text-align: center; font-size: 10px; letter-spacing: 0; }
.session-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 245px); overflow: auto; scrollbar-color: rgba(255,255,255,.2) transparent; scrollbar-width: thin; }
.session-row { position: relative; }
.session-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px 7px; width: 100%; padding: 11px 9px 10px 12px; border: 1px solid transparent; border-radius: 4px; color: #b5c2bd; background: transparent; text-align: left; transition: .18s ease; }
.session-item { padding-right: 38px; }
.session-item:hover { color: #f2eee3; background: rgba(255, 255, 255, .055); }
.session-item.is-active { border-color: rgba(221, 173, 100, .22); color: #f7f1e7; background: rgba(222, 179, 112, .105); }
.session-item-title { overflow: hidden; font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.session-item-meta { color: #829491; font-size: 10px; letter-spacing: .02em; }
.session-item-score { align-self: start; padding: 3px 5px; border-radius: 3px; color: #e0bd82; background: rgba(225, 182, 113, .11); font-size: 10px; }
.session-delete { position: absolute; right: 6px; bottom: 7px; display: none; padding: 3px 5px; border: 0; border-radius: 3px; color: #d9a69a; background: rgba(25, 47, 53, .94); font-size: 9px; }
.session-row:hover .session-delete, .session-row:focus-within .session-delete { display: block; }
.session-delete:hover { color: white; background: var(--accent); }
.empty-history { margin: 9px 7px; color: #879895; font-size: 10px; line-height: 1.7; }
.sidebar-footnote { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 14px 7px 2px; border-top: 1px solid var(--line-dark); }
.local-indicator { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #9ab28d; box-shadow: 0 0 0 4px rgba(154, 178, 141, .12); }
.sidebar-footnote strong, .sidebar-footnote span { display: block; }
.sidebar-footnote strong { margin-bottom: 4px; color: #d2dcd4; font-size: 10px; font-weight: 500; }
.sidebar-footnote div span { color: #859895; font-size: 9px; line-height: 1.6; }

.main-area { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; background-color: var(--paper); background-image: radial-gradient(rgba(49, 67, 66, .06) .55px, transparent .55px); background-size: 12px 12px; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 65px; padding: 0 35px; border-bottom: 1px solid rgba(25, 46, 52, .1); background: rgba(244, 242, 236, .91); backdrop-filter: blur(16px); }
.crumbs { display: flex; align-items: center; gap: 10px; color: #707c7d; font-size: 11px; letter-spacing: .02em; }
.crumb-index { color: var(--accent); font-family: var(--body); font-size: 15px; font-style: normal; font-weight: 700; }
.crumb-divider { color: #bcc0ba; }
.crumb-current { max-width: min(34vw, 360px); overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.topbar-leading { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.sidebar-toggle { flex: 0 0 auto; }
.model-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #dedfd7; border-radius: 3px; color: #687778; background: rgba(255,255,255,.4); text-align: left; font-size: 10px; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.model-chip:hover { border-color: #c9a587; color: var(--accent-dark); background: #fffdfa; }
.model-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.model-chip.is-configured .model-chip-dot { background: #839e79; box-shadow: 0 0 0 3px rgba(131,158,121,.12); }
.icon-button { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid transparent; border-radius: 50%; color: #59696a; background: transparent; transition: .18s ease; }
.icon-button:hover { border-color: #d9d9d0; color: var(--accent); background: #fffdfa; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.mobile-brand { display: none; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--ink); background: transparent; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.brand-symbol.small { width: 22px; height: 22px; padding: 4px 3px; }
.toast { position: fixed; z-index: 20; top: 77px; left: 50%; max-width: min(90vw, 520px); padding: 11px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #f8f4ed; background: #20383d; box-shadow: 0 12px 32px rgba(22, 41, 45, .18); opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: .24s ease; font-size: 11px; line-height: 1.55; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.welcome-view { width: min(100% - 60px, 850px); margin: auto; padding: 62px 30px 42px; animation: arrive .55s cubic-bezier(.22,1,.36,1) both; }
.welcome-kicker { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 10px; letter-spacing: .14em; }
.kicker-line { width: 24px; height: 1px; background: var(--accent); }
.welcome-view h1 { margin: 23px 0 14px; color: #1a3036; font-family: var(--display); font-size: clamp(34px, 4.4vw, 53px); font-weight: 600; letter-spacing: 0; line-height: 1.32; }
.welcome-view h1 em { color: var(--accent); font-weight: 400; }
.welcome-copy { max-width: 570px; margin: 0; color: #6a7778; font-size: 12px; line-height: 1.9; }
.starter-card { margin-top: 29px; padding: 17px 18px 14px; border: 1px solid #d9dbd4; border-radius: 5px; background: rgba(255, 255, 252, .84); box-shadow: 0 10px 26px rgba(35, 51, 50, .035); transition: border-color .2s ease, box-shadow .2s ease; }
.starter-card:focus-within { border-color: rgba(201, 86, 56, .5); box-shadow: 0 10px 29px rgba(201, 86, 56, .07); }
.starter-card label { display: block; margin-bottom: 10px; color: #35484b; font-size: 11px; font-weight: 600; }
.starter-card textarea, .answer-composer textarea, .feedback-card textarea { display: block; width: 100%; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; line-height: 1.85; }
.starter-card textarea { min-height: 116px; }
textarea::placeholder, input::placeholder { color: #a4aaa6; }
.starter-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 11px; border-top: 1px solid #ecece5; }
.input-hint { color: #8b9591; font-size: 9px; }
.sparkle-mark { margin-right: 4px; color: var(--gold); font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 37px; padding: 0 14px; border: 0; border-radius: 3px; color: #fff9f1; background: var(--accent); box-shadow: 0 5px 11px rgba(201, 86, 56, .15); font-size: 10px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { background: var(--accent-dark); box-shadow: 0 7px 16px rgba(201, 86, 56, .23); transform: translateY(-1px); }
.button-arrow { font-size: 14px; }
.examples-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.examples-label { margin-right: 4px; color: #9a9f9b; font-size: 9px; }
.example-chip { padding: 6px 9px; border: 1px solid #dbdcd5; border-radius: 20px; color: #697779; background: rgba(251,250,247,.68); font-size: 9px; transition: .18s ease; }
.example-chip:hover { border-color: #d7a28f; color: var(--accent-dark); background: #fffaf5; }
.welcome-footer { display: flex; justify-content: space-between; margin-top: 63px; padding-top: 13px; border-top: 1px solid rgba(27, 47, 52, .13); color: #9a9f98; font-family: var(--display); font-size: 11px; }
.welcome-footer span:first-child { color: var(--accent); }

.workspace-view { flex: 1; min-height: 0; padding: 27px 30px 25px; }
.workspace-grid { display: grid; grid-template-columns: minmax(350px, 1.05fr) minmax(310px, .8fr); gap: 27px; width: min(100%, 1260px); height: 100%; min-height: 0; margin: 0 auto; }
.conversation-column, .result-column { display: flex; flex-direction: column; min-height: 0; }
.session-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 1px 17px; border-bottom: 1px solid rgba(25, 46, 52, .13); }
.eyebrow { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow-rule { width: 17px; height: 1px; background: #c9a28a; }
.session-heading h1 { max-width: 650px; margin: 10px 0 5px; overflow: hidden; color: var(--ink); font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.session-subtitle { margin: 0; color: #85908e; font-size: 10px; }
.session-state { display: flex; align-items: center; gap: 6px; margin-top: 3px; padding: 6px 8px; border: 1px solid #dfddd3; border-radius: 15px; color: #798581; background: rgba(251,250,247,.7); white-space: nowrap; font-size: 9px; }
.state-dot { width: 5px; height: 5px; border-radius: 50%; background: #8b9f82; }
.conversation-scroll { flex: 1; min-height: 125px; overflow: auto; scrollbar-color: #c7c9c1 transparent; scrollbar-width: thin; }
.message-list { display: flex; flex-direction: column; gap: 13px; padding: 17px 3px 18px 0; }
.message { display: flex; gap: 10px; animation: message-in .32s ease both; }
.message-avatar { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-family: var(--body); font-size: 11px; font-weight: 600; }
.message.assistant .message-avatar { color: #a14a30; background: #f0e2d9; }
.message.user .message-avatar { color: #486268; background: #dce5e0; }
.message-body { min-width: 0; padding-top: 2px; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #82908e; font-size: 10px; }
.message-meta strong { color: #34494c; font-weight: 600; }
.message-round-number { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 1px solid #e6d4c6; border-radius: 50%; color: #96553d; background: #f7eee7; font-size: 9px; font-weight: 600; line-height: 1; white-space: nowrap; }
.message-text { color: #34484b; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.assistant.is-question { margin-top: 2px; padding: 11px 13px 12px 0; }
.message.assistant.is-question .message-text { color: #253f44; font-size: 13px; }
.message.assistant.is-notice .message-text { color: #8c6d48; }
.quick-replies { margin-top: 11px; }
.quick-replies-label { margin-bottom: 6px; color: #8b9690; font-size: 9px; }
.quick-replies-list { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-reply-button { max-width: 100%; padding: 7px 10px; border: 1px solid #d7dcd4; border-radius: 4px; color: #496164; background: rgba(255, 255, 252, .86); text-align: left; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.quick-reply-button:hover { border-color: #c78b70; color: var(--accent-dark); background: #fffaf5; transform: translateY(-1px); }
.quick-reply-button:focus-visible { outline: 2px solid rgba(201, 86, 56, .28); outline-offset: 2px; }
.retry-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 3px 2px 12px 34px; padding: 8px 10px; border: 1px solid #e9cfc4; border-radius: 4px; color: #98553f; background: #fbf0e9; font-size: 9px; line-height: 1.6; }
.text-button { padding: 4px 6px; border: 0; color: var(--accent-dark); background: transparent; white-space: nowrap; font-size: 9px; }
.text-button:hover { text-decoration: underline; }
.answer-composer, .feedback-card { padding: 13px 14px 10px; border: 1px solid #d9dcd4; border-radius: 4px; background: rgba(255, 255, 252, .79); }
.composer-label { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #536366; font-size: 10px; font-weight: 600; }
.composer-index { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #d6b18e; border-radius: 50%; color: #ac6743; font-family: var(--display); font-size: 10px; font-style: italic; }
.answer-composer textarea, .feedback-card textarea { min-height: 63px; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid #ecece5; }
.muted-hint { color: #9aa29e; font-size: 9px; }
.secondary-button { display: inline-flex; align-items: center; gap: 12px; min-height: 30px; padding: 0 10px; border: 1px solid #c6ccc5; border-radius: 3px; color: #42585b; background: #f8f8f3; font-size: 9px; transition: .18s ease; }
.secondary-button:hover { border-color: #b17d62; color: var(--accent-dark); background: white; }
.secondary-button:disabled, .generate-button:disabled, .primary-button:disabled { cursor: wait; opacity: .58; transform: none; }
.generate-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; padding: 11px 12px; border: 1px solid rgba(201, 86, 56, .2); border-radius: 4px; background: #f3e8de; }
.generate-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.generate-icon { color: var(--accent); font-size: 14px; }
.generate-copy strong, .generate-copy span { display: block; }
.generate-copy strong { margin-bottom: 3px; color: #63473d; font-size: 9px; font-weight: 600; }
.generate-copy div span { color: #9a7970; font-size: 8px; }
.generate-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 31px; padding: 0 11px; border: 0; border-radius: 3px; color: #fff7ee; background: var(--accent); font-size: 9px; transition: .18s ease; }
.generate-button:hover { background: var(--accent-dark); box-shadow: 0 5px 14px rgba(201, 86, 56, .2); }
.generate-button-mark { font-size: 13px; }
.feedback-card { margin-top: 12px; border-color: rgba(47, 82, 81, .19); background: rgba(242, 244, 237, .9); animation: arrive .3s ease both; }
.feedback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.feedback-head-actions { display: flex; align-items: center; gap: 6px; }
.feedback-collapse-button, .feedback-expand-button, .feedback-return-button { min-height: 27px; padding: 0 9px; border: 1px solid #d5dbd2; border-radius: 3px; color: #607573; background: rgba(255, 255, 252, .7); font-size: 9px; transition: .18s ease; white-space: nowrap; }
.feedback-collapse-button:hover, .feedback-expand-button:hover, .feedback-return-button:hover { border-color: #b17d62; color: var(--accent-dark); background: white; }
.feedback-collapsed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(47, 82, 81, .2); border-radius: 5px; color: #72817b; background: #f5f6f0; font-size: 10px; line-height: 1.5; }
.feedback-collapsed-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.feedback-expand-button { border-color: #c6ccc5; color: #42585b; }
.feedback-return-button { border-color: transparent; color: #9a573f; background: transparent; }
.feedback-head h2 { margin: 5px 0 0; color: #334b4d; font-family: var(--display); font-size: 18px; font-weight: 600; }
.feedback-count { padding: 4px 6px; border: 1px solid #dbe0d7; border-radius: 3px; color: #71807c; font-size: 8px; }
.feedback-card textarea { min-height: 54px; }
.feedback-card .composer-bottom { border-color: #e4e8de; }

.result-column { overflow: auto; padding-left: 1px; scrollbar-color: #c7c9c1 transparent; scrollbar-width: thin; }
.result-topline { display: flex; align-items: center; justify-content: space-between; min-height: 31px; margin-bottom: 13px; border-bottom: 1px solid rgba(25, 46, 52, .13); color: #667677; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.result-topline span:last-child { color: #89938d; font-size: 9px; letter-spacing: .02em; }
.empty-result { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 280px; padding: 20px 22px; border: 1px dashed #cdd0c8; border-radius: 4px; background: rgba(250, 249, 245, .6); }
.empty-orbit { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid #dcc0a8; border-radius: 50%; color: var(--accent); background: radial-gradient(circle, #fffaf3 0 43%, #f0e8db 45% 47%, transparent 49%); font-size: 17px; }
.result-empty-tag { margin-bottom: 8px; padding: 4px 7px; border: 1px solid #d9ded5; border-radius: 12px; color: #7b8982; font-size: 8px; }
.empty-result h2 { margin: 0 0 9px; color: #455a5c; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.45; }
.empty-result p { max-width: 260px; margin: 0; color: #87918e; font-size: 10px; line-height: 1.8; }
.score-preview { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 27px; color: #99a19c; }
.score-preview span { font-size: 8px; letter-spacing: .16em; }
.score-preview b { color: #aab0a9; font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1; }
.score-preview small { margin-left: 3px; font-family: var(--body); font-size: 9px; }
.result-content { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; animation: arrive .35s ease both; }
.score-card { padding: 16px 17px; border: 1px solid #dfd5c4; border-radius: 6px; color: #34494c; background: linear-gradient(145deg, #fffdf8 0%, #f5efe3 100%); box-shadow: 0 8px 20px rgba(67, 53, 36, .08); }
.score-card-top { display: flex; align-items: center; justify-content: space-between; color: #42585a; font-size: 11px; }
.score-card-top i { margin-left: 5px; color: #788680; font-size: 10px; font-style: normal; }
.score-stamp { padding: 4px 6px; border: 1px solid #e4d5ba; border-radius: 4px; color: #95623a; background: rgba(255, 249, 237, .8); font-family: var(--body); font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.score-number { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 13px; }
.score-number strong { color: #bd573a; font-family: var(--body); font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.score-number > span:nth-child(2) { color: #73817b; font-size: 11px; }
.score-caption { margin-left: auto; color: #7c8983; font-size: 9px; letter-spacing: .04em; }
.dimension-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dimension-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 8px; border: 1px solid #e7dfd1; border-radius: 5px; color: #4e6262; background: rgba(255, 255, 255, .58); font-size: 10px; }
.dimension-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dimension-track { height: 3px; overflow: hidden; border-radius: 4px; background: rgba(227, 236, 224, .13); }
.dimension-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bc775b, #e0bc78); transition: width .6s cubic-bezier(.22,1,.36,1); }
.dimension-score { color: #a94f34; text-align: right; font-family: var(--body); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-explainer { margin-top: 13px; padding-top: 10px; border-top: 1px solid #e6decf; color: #526467; }
.score-explainer summary { color: #965e3e; cursor: pointer; font-size: 10px; }
.score-explainer summary:hover { color: #743d29; }
.score-explainer p { margin: 8px 0; color: #657572; font-size: 10px; line-height: 1.7; }
.score-explainer dl { display: grid; gap: 5px; margin: 0; }
.score-explainer dl div { display: grid; grid-template-columns: 91px 1fr; gap: 7px; font-size: 9px; line-height: 1.6; }
.score-explainer dt { color: #98613f; }
.score-explainer dd { margin: 0; color: #657572; }
.prompt-card { overflow: hidden; border: 1px solid #d7d9d1; border-radius: 4px; background: rgba(255, 255, 252, .9); }
.prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 13px 9px; border-bottom: 1px solid #ecede7; }
.prompt-card-head h2 { margin: 4px 0 0; color: #3c5053; font-family: var(--display); font-size: 19px; font-weight: 600; }
.expand-preview-button { padding: 5px 8px; border: 1px solid #d7d9d1; border-radius: 3px; color: #8d4933; background: #fff8f1; font-size: 8px; transition: .18s ease; white-space: nowrap; }
.expand-preview-button:hover { border-color: #c67b60; background: #f7e9df; }
.copy-button { padding: 5px 8px; border: 1px solid #d7d9d1; border-radius: 3px; color: #6a7b79; background: transparent; font-size: 8px; transition: .18s ease; }
.copy-button:hover { border-color: #c67b60; color: var(--accent-dark); background: #fff8f1; }
.prompt-text { max-height: 310px; overflow: auto; padding: 12px 13px 14px; color: #435255; font-size: 11px; line-height: 1.82; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.prompt-card-foot { display: flex; justify-content: space-between; padding: 8px 13px; border-top: 1px solid #ecede7; color: #9aa19a; font-size: 8px; }
.prompt-card-foot b { color: var(--accent); font-weight: 600; }
.notes-card { padding: 11px 13px 12px; border-left: 2px solid #d6a96c; background: rgba(239, 234, 222, .77); }
.notes-heading { display: flex; align-items: center; gap: 7px; color: #695541; font-size: 9px; }
.notes-mark { color: var(--accent); font-size: 11px; }
.notes-card p { margin: 7px 0 0; color: #746c5f; font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.version-history { padding-top: 2px; }
.version-history-head { display: flex; justify-content: space-between; margin-bottom: 7px; color: #778583; font-size: 8px; }
.version-history-head span:first-child { color: #536669; font-size: 9px; font-weight: 600; }
.version-history-description { margin: -2px 0 8px; color: #788681; font-size: 10px; line-height: 1.65; }
#version-list { display: flex; flex-wrap: wrap; gap: 6px; }
.version-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #d8dad3; border-radius: 3px; color: #77817e; background: rgba(251,250,247,.72); font-size: 8px; transition: .16s ease; }
.version-pill:hover { border-color: #bd8a6e; color: var(--accent-dark); }
.version-pill.is-selected { border-color: #c27a5e; color: #9e482f; background: #f2e5dc; }
.version-pill b { font-family: var(--body); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }

.global-footer { display: flex; align-items: center; justify-content: space-between; min-height: 33px; padding: 0 35px; border-top: 1px solid rgba(25, 46, 52, .1); color: #929c97; background: rgba(244, 242, 236, .93); font-size: 9px; letter-spacing: .02em; }
.global-footer i { margin: 0 5px; color: #c38d6d; font-style: normal; }
.global-footer b { margin-left: 3px; color: var(--accent); font-family: var(--display); font-size: 12px; font-weight: 600; }
.is-hidden { display: none !important; }

.settings-dialog { width: min(490px, calc(100vw - 28px)); max-height: min(90vh, 760px); padding: 0; overflow: auto; border: 1px solid #deded6; border-radius: 6px; color: var(--ink); background: var(--paper-bright); box-shadow: 0 25px 80px rgba(20, 42, 46, .25); }
.settings-dialog::backdrop { background: rgba(17, 37, 41, .45); backdrop-filter: blur(3px); }
.prompt-preview-dialog { width: min(1120px, calc(100vw - 32px)); height: min(94dvh, 1080px); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid #d5d8cf; border-radius: 8px; color: var(--ink); background: #fbfaf6; box-shadow: 0 28px 100px rgba(14, 34, 38, .32); }
.prompt-preview-dialog::backdrop { background: rgba(17, 37, 41, .62); backdrop-filter: blur(4px); }
.prompt-preview-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; min-height: 0; }
.prompt-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 25px 16px; border-bottom: 1px solid #e4e5dd; background: rgba(255, 255, 252, .97); }
.prompt-preview-heading h2 { margin: 5px 0 0; color: #30484b; font-family: var(--display); font-size: 24px; font-weight: 600; }
.prompt-preview-actions { display: flex; align-items: center; gap: 9px; }
.prompt-preview-actions .prompt-view-switch button, .prompt-preview-actions .copy-button, .prompt-preview-actions .expand-preview-button { min-height: 34px; padding: 0 12px; font-size: 10px; }
.prompt-preview-close { flex: 0 0 auto; width: 34px; height: 34px; font-size: 20px; }
.prompt-preview-body { overflow: auto; overscroll-behavior: contain; scrollbar-color: #c7c9c1 transparent; scrollbar-width: thin; }
.prompt-preview-dialog .prompt-text { width: min(100%, 940px); max-height: none; min-height: 100%; margin: 0 auto; padding: 34px 48px 54px; overflow: visible; color: #3e5052; font-size: 14px; line-height: 1.95; }
.prompt-preview-dialog .prompt-text.markdown-source { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, "Cascadia Code", monospace; font-size: 13px; }
.prompt-preview-dialog .prompt-text.markdown-preview h3 { margin-top: 25px; font-size: 21px; }
.prompt-preview-dialog .prompt-text.markdown-preview h4 { margin-top: 20px; font-size: 17px; }
.prompt-preview-dialog .prompt-text.markdown-preview p { margin-bottom: 16px; }
.prompt-preview-dialog .prompt-text.markdown-preview li { margin: 7px 0; }
.prompt-preview-dialog .prompt-text.markdown-preview blockquote { padding: 12px 16px; }
.prompt-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 25px; border-top: 1px solid #e4e5dd; color: #89938d; background: #f6f5ef; font-size: 9px; }
.prompt-preview-foot b { color: var(--accent); font-weight: 600; }
.settings-form { padding: 24px 25px 20px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 7px 0 0; color: #2e4448; font-family: var(--display); font-size: 25px; font-weight: 400; }
.dialog-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #dfe0d8; border-radius: 50%; color: #6d7a78; background: transparent; font-size: 18px; line-height: 1; }
.dialog-close:hover { color: var(--accent); border-color: #d7aa97; }
.dialog-copy { margin: 12px 0 19px; color: #87928e; font-size: 10px; line-height: 1.8; }
.field-label { display: block; margin: 13px 0 6px; color: #5b6b6b; font-size: 9px; font-weight: 600; }
.field-label span { margin-left: 5px; color: #a2a8a3; font-weight: 400; }
.settings-form select, .settings-form input { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid #dbded7; border-radius: 3px; color: #3e5154; background: white; font-size: 10px; }
.settings-form input:focus, .settings-form select:focus { border-color: #c28064; outline: 2px solid rgba(201,86,56,.1); }
.model-picker { display: flex; align-items: stretch; gap: 7px; }
.model-input-wrap { position: relative; min-width: 0; flex: 1 1 auto; }
.model-input-wrap input { width: 100%; padding-right: 36px; }
.model-list-toggle { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 31px; height: 33px; padding: 0; border: 0; border-radius: 2px; color: #72817c; background: transparent; font-size: 16px; line-height: 1; }
.model-list-toggle:hover, .model-list-toggle[aria-expanded="true"] { color: var(--accent-dark); background: #f7f2ec; }
.model-list-toggle:disabled { cursor: wait; opacity: .5; }
.model-options-menu { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; left: 0; max-height: min(230px, 42vh); overflow: auto; padding: 4px; border: 1px solid #d9ded6; border-radius: 4px; background: #fffefa; box-shadow: 0 12px 28px rgba(34, 53, 51, .16); }
.model-option { display: flex; align-items: center; width: 100%; min-height: 31px; padding: 6px 9px; border: 0; border-radius: 3px; color: #455a5b; background: transparent; text-align: left; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.model-option:hover, .model-option.is-selected { color: #8c4932; background: #f6ebe3; }
.model-option:focus-visible { outline: 2px solid rgba(201, 86, 56, .3); outline-offset: -2px; }
.model-options-empty { padding: 10px; color: #88918c; font-size: 9px; line-height: 1.6; }
.fetch-model-button { flex: 0 0 auto; min-width: 69px; padding: 0 9px; border: 1px solid #d8dbd4; border-radius: 3px; color: #536a68; background: #f7f7f1; font-size: 9px; transition: .18s ease; }
.fetch-model-button:hover { border-color: #bd8a6e; color: var(--accent-dark); background: white; }
.fetch-model-button:disabled, .model-test-button:disabled { cursor: wait; opacity: .58; }
.provider-fields { margin-top: 6px; }
.clear-key-button { margin-top: 8px; padding: 4px 0; border: 0; color: #9d6d59; background: transparent; font-size: 9px; }
.clear-key-button:hover { color: var(--accent-dark); text-decoration: underline; }
.ollama-tip { margin-top: 15px; padding: 9px 10px; border-left: 2px solid #b89b68; color: #7c715c; background: #f1eee3; font-size: 9px; line-height: 1.6; }
.ollama-tip span { margin-right: 5px; color: var(--accent); }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #e7e8e1; }
.dialog-actions > button { display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 37px; min-height: 37px; padding: 0 8px; justify-content: center; white-space: nowrap; font-size: 10px; }
.model-test-button { gap: 6px; }
.dialog-actions .primary-button { gap: 6px; }
.settings-feedback { min-height: 16px; margin-top: 9px; color: #70876b; font-size: 9px; }

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thinking-spin { to { transform: rotate(360deg); } }
@keyframes thinking-progress { from { transform: translateX(-110%); } to { transform: translateX(390%); } }

@media (min-width: 1500px) {
  .workspace-view { padding-right: 44px; padding-left: 44px; }
  .workspace-grid { grid-template-columns: minmax(480px, 1.08fr) minmax(390px, .8fr); gap: 34px; }
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .workspace-view { padding: 22px 22px 20px; }
  .workspace-grid { grid-template-columns: minmax(300px, 1fr) minmax(270px, .85fr); gap: 18px; }
  .topbar { padding: 0 24px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 15; top: 0; bottom: 0; left: 0; width: 270px; min-height: 100dvh; box-shadow: 15px 0 35px rgba(15, 35, 40, .2); transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { min-height: 100dvh; }
  .topbar { min-height: 57px; padding: 0 17px; }
  .mobile-brand { display: flex; }
  .sidebar-toggle { display: none; }
  .crumbs { display: none; }
  .topbar-actions { gap: 6px; }
  .workspace-view { padding: 17px 17px 20px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 21px; height: auto; }
  .conversation-column { min-height: 570px; }
  .conversation-scroll { min-height: 180px; max-height: 420px; }
  .result-column { overflow: visible; }
  .empty-result { min-height: 220px; }
  .global-footer { padding: 0 17px; }
  .welcome-view { width: min(100% - 28px, 680px); padding: 45px 8px 32px; }
  .welcome-footer { margin-top: 44px; }
  .session-list { max-height: calc(100dvh - 245px); }
}

@media (max-width: 520px) {
  .topbar { min-height: 54px; padding: 0 12px; }
  .mobile-brand { gap: 6px; font-size: 11px; }
  .brand-symbol.small { width: 20px; height: 20px; }
  .model-chip { padding: 6px 7px; font-size: 9px; }
  .model-chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .welcome-view { padding-top: 42px; }
  .welcome-view h1 { margin-top: 18px; font-size: 35px; }
  .welcome-copy { font-size: 11px; }
  .starter-card { margin-top: 23px; padding: 14px 12px 11px; }
  .starter-footer { align-items: flex-start; flex-direction: column; }
  .starter-footer .primary-button { align-self: flex-end; }
  .welcome-footer { gap: 8px; margin-top: 40px; font-size: 9px; }
  .workspace-view { padding: 13px 12px 18px; }
  .session-heading h1 { max-width: 250px; font-size: 22px; }
  .session-state { padding: 5px 6px; font-size: 9px; }
  .session-subtitle { max-width: 240px; font-size: 10px; }
  .conversation-column { min-height: 580px; }
  .quick-reply-button { padding: 7px 9px; font-size: 10px; }
  .generate-strip { align-items: flex-start; flex-direction: column; }
  .generate-button { align-self: flex-end; }
  .composer-bottom { align-items: flex-start; }
  .muted-hint { max-width: 56%; line-height: 1.5; }
  .result-column { margin-top: 0; }
  .settings-form { padding: 19px 17px 16px; }
  .dialog-actions { gap: 5px; }
  .dialog-actions > button { height: 34px; min-height: 34px; padding: 0 4px; font-size: 9px; }
  .dialog-actions .primary-button { min-height: 34px; gap: 4px; padding: 0 4px; font-size: 9px; }
  .model-test-button { padding: 0 4px; }
  .prompt-preview-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 6px; }
  .prompt-preview-head { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 14px 12px; }
  .prompt-preview-heading h2 { font-size: 20px; }
  .prompt-preview-actions { width: 100%; gap: 6px; }
  .prompt-preview-actions .prompt-view-switch { margin-right: auto; }
  .prompt-preview-actions .prompt-view-switch button, .prompt-preview-actions .copy-button { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .prompt-preview-close { width: 32px; height: 32px; }
  .prompt-preview-dialog .prompt-text { padding: 22px 17px 36px; font-size: 12px; line-height: 1.9; }
  .prompt-preview-dialog .prompt-text.markdown-source { font-size: 11px; }
  .prompt-preview-dialog .prompt-text.markdown-preview h3 { font-size: 18px; }
  .prompt-preview-dialog .prompt-text.markdown-preview h4 { font-size: 15px; }
  .prompt-preview-foot { align-items: flex-start; flex-direction: column; gap: 3px; padding: 9px 14px; font-size: 8px; }
  .global-footer { padding: 0 12px; font-size: 9px; }
}


/* 对话、回答和生成状态各自占据明确区域。 */
@media (min-width: 821px) {
  .app-shell { height: 100dvh; min-height: 640px; overflow: hidden; }
  .app-shell.is-sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
  .sidebar { min-width: 0; height: 100dvh; min-height: 640px; transition: opacity .18s ease, padding .24s ease; }
  .app-shell.is-sidebar-collapsed .sidebar { padding-right: 0; padding-left: 0; opacity: 0; pointer-events: none; }
  .main-area { height: 100dvh; min-height: 640px; overflow: hidden; }
  .workspace-view { flex: 1; min-height: 0; }
  .workspace-grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, .85fr); gap: 24px; }
}

.session-heading { padding-bottom: 14px; }
.session-subtitle { max-width: 620px; font-size: 12px; line-height: 1.65; }
.session-state { padding: 7px 10px; font-size: 10px; }
.conversation-scroll { min-height: 110px; }
.message-list { gap: 15px; padding: 19px 7px 18px 0; }
.message { gap: 12px; }
.message-avatar { flex-basis: 28px; width: 28px; height: 28px; font-size: 12px; }
.message-meta { margin-bottom: 6px; font-size: 11px; }
.message-text { font-size: 13px; line-height: 1.8; }
.message.assistant.is-question { padding: 8px 12px 11px 0; }
.message.assistant.is-question .message-text { font-size: 15px; line-height: 1.75; }
.message-body { flex: 1; }
.composer-dock { flex: 0 0 auto; max-height: none; overflow: visible; padding: 12px 4px 2px 0; border-top: 1px solid rgba(25, 46, 52, .13); }
.answer-composer, .feedback-card { padding: 14px 15px 12px; border-radius: 6px; background: rgba(255, 255, 252, .94); box-shadow: 0 5px 16px rgba(35, 51, 50, .045); }
.quick-replies { margin: 0 0 13px; }
.quick-replies-label { margin-bottom: 8px; color: #526669; font-size: 11px; font-weight: 600; }
.quick-replies-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.quick-reply-button { position: relative; min-height: 39px; padding: 8px 10px 8px 31px; border-color: #d7ddd6; border-radius: 5px; font-size: 11px; line-height: 1.55; }
.quick-reply-button::before { position: absolute; top: 50%; left: 10px; display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #b9c5bd; border-radius: 4px; color: transparent; content: "✓"; font-size: 10px; font-weight: 700; transform: translateY(-50%); }
.quick-reply-button.is-selected { border-color: #bd795e; color: #8f442f; background: #f7ebe3; box-shadow: inset 0 0 0 1px rgba(201, 86, 56, .08); }
.quick-reply-button.is-selected::before { border-color: #b85c40; color: white; background: #b85c40; }
.quick-reply-button.is-recommended { padding-right: 79px; border-color: #c79768; }
.quick-reply-button.is-recommended::after { position: absolute; top: 6px; right: 7px; padding: 2px 5px; border: 1px solid #dfc39e; border-radius: 9px; color: #93643c; background: #fff8e9; content: "模型推荐"; font-size: 8px; line-height: 1.3; white-space: nowrap; }
.quick-reply-button.is-selected.is-recommended::after { border-color: #d5a77d; color: #92503a; background: #fff4e8; }
.quick-replies-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: #87938d; font-size: 10px; line-height: 1.5; }
.quick-replies-footer span:last-child { flex: 0 0 auto; color: #a04f36; font-weight: 600; }
.answer-custom-label { margin: 0 0 5px; font-size: 11px; }
.answer-composer textarea, .feedback-card textarea { min-height: 62px; font-size: 13px; line-height: 1.7; }
.answer-composer-footer { margin-top: 8px; }
.conversation-thinking { display: flex; align-items: flex-start; gap: 12px; width: min(100%, 520px); max-width: calc(100% - 42px); margin: 0 0 13px 40px; padding: 13px 16px 13px 13px; border: 1px solid #e7d5c4; border-radius: 5px 13px 13px 13px; color: #78523e; background: linear-gradient(115deg, #fffaf2, #f7efe6); box-shadow: 0 5px 16px rgba(65, 48, 37, .07); animation: arrive .22s ease both; }
.conversation-thinking-spinner { flex: 0 0 22px; width: 22px; height: 22px; border: 3px solid #ead8c7; border-top-color: #bd6041; border-radius: 50%; animation: thinking-spin .8s linear infinite; }
.conversation-thinking-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.conversation-thinking-copy strong { color: #664839; font-size: 11px; font-weight: 600; }
.conversation-thinking-detail { color: #89786b; font-size: 9px; line-height: 1.5; }
.conversation-thinking-status { margin-top: 3px; color: #9a573f; font-size: 8px; font-weight: 600; }
.conversation-thinking-progress { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #ecded1; }
.conversation-thinking-progress span { display: block; width: 27%; height: 100%; border-radius: inherit; background: #bd6041; animation: thinking-progress 1.4s ease-in-out infinite; }
.composer-bottom { gap: 12px; }
.muted-hint { max-width: 68%; font-size: 10px; line-height: 1.55; }
.secondary-button { min-height: 35px; padding: 0 12px; border-radius: 4px; font-size: 10px; }
.composer-mode-link { display: inline-flex; margin-top: 8px; padding: 3px 0; border: 0; color: #9a573f; background: transparent; font-size: 10px; }
.composer-mode-link:hover { text-decoration: underline; }
.answer-record { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.answer-record-label { color: #788983; font-size: 10px; }
.answer-record-options { display: flex; flex-wrap: wrap; gap: 6px; }
.answer-record-option { padding: 4px 8px; border: 1px solid #d9ded6; border-radius: 12px; color: #425d5e; background: #f6f7f1; font-size: 10px; line-height: 1.5; }
.answer-record-detail { margin: 2px 0 0; color: #354b4d; white-space: pre-wrap; }
.question-paused-note { margin-top: 10px; padding: 8px 10px; border-left: 2px solid #c8a679; color: #7a6a53; background: #f2eee5; font-size: 10px; line-height: 1.6; }
.feedback-card { border-color: rgba(47, 82, 81, .24); background: #f5f6f0; }
.feedback-head { margin-bottom: 12px; }
.feedback-head h2 { font-size: 20px; }
.feedback-count { font-size: 9px; }
.feedback-pause-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 12px; padding: 8px 10px; border-radius: 4px; background: #eeefe8; }
.feedback-pause-note { color: #6f7d74; font-size: 10px; line-height: 1.55; }
.feedback-pause-row .composer-mode-link { flex: 0 0 auto; margin: 0; }
.retry-row { margin-top: 7px; font-size: 10px; }
.generation-action { flex: 0 0 auto; margin: 0 0 13px; padding: 13px 14px 12px; border: 1px solid #d9d9d0; border-radius: 6px; background: #f8f6f0; transition: border-color .2s ease, background .2s ease; }
.generation-action.is-ready { border-color: rgba(201, 86, 56, .34); background: #f5eae1; }
.generation-action-heading { display: flex; align-items: center; gap: 9px; }
.generation-action-mark { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d9c3a2; border-radius: 50%; color: #a45a3d; background: #fffaf2; font-size: 12px; }
.generation-action-heading .eyebrow { margin-bottom: 3px; font-size: 9px; }
.generation-action-heading strong { display: block; color: #344d4e; font-size: 12px; line-height: 1.5; font-weight: 600; }
.generation-action p { margin: 8px 0 0 34px; color: #77817b; font-size: 11px; line-height: 1.65; }
.generation-action .generate-button { margin: 10px 0 0 34px; min-height: 35px; padding: 0 13px; border-radius: 4px; font-size: 11px; }
.empty-result { min-height: 0; padding: 21px 20px; border-style: solid; border-color: #e0e1d9; background: rgba(250, 249, 245, .75); }
.empty-result h2 { margin-bottom: 5px; font-size: 20px; }
.empty-result p { max-width: 340px; font-size: 11px; }
.score-preview { margin-top: 22px; padding-top: 16px; border-top: 1px solid #e8e8e0; }
.result-content { gap: 14px; }
.result-column { padding-bottom: 9px; }
.score-card { padding: 16px 17px; border-radius: 6px; }
.score-card-top { font-size: 11px; }
.dimension-list { gap: 11px; }
.dimension-row { font-size: 10px; }
.prompt-card { border-radius: 6px; }
.prompt-card-head { padding: 13px 15px 11px; }
.prompt-card-head h2 { font-size: 19px; }
.prompt-actions { display: flex; align-items: center; gap: 8px; }
.prompt-view-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #e0e1d9; border-radius: 4px; background: #f6f6f1; }
.prompt-view-switch button { padding: 4px 7px; border: 0; border-radius: 3px; color: #75827d; background: transparent; font-size: 9px; }
.prompt-view-switch button.is-selected { color: #8d4933; background: #f0e1d7; }
.prompt-text { max-height: 350px; padding: 15px 17px; font-size: 13px; line-height: 1.85; }
.prompt-text.markdown-preview { white-space: normal; }
.prompt-text.markdown-preview p { margin: 0 0 10px; }
.prompt-text.markdown-preview h3, .prompt-text.markdown-preview h4 { margin: 15px 0 7px; color: #2c484d; line-height: 1.5; }
.prompt-text.markdown-preview h3 { font-size: 15px; }
.prompt-text.markdown-preview h4 { font-size: 13px; }
.prompt-text.markdown-preview ul, .prompt-text.markdown-preview ol { margin: 6px 0 12px; padding-left: 22px; }
.prompt-text.markdown-preview li { margin: 4px 0; padding-left: 2px; }
.prompt-text.markdown-preview blockquote { margin: 10px 0; padding: 7px 11px; border-left: 2px solid #c9a36e; color: #677673; background: #f5f3ec; }
.prompt-text.markdown-preview pre { overflow-x: auto; padding: 10px; border-radius: 4px; color: #e9eee7; background: #233d42; white-space: pre; }
.prompt-text.markdown-preview code { padding: 1px 4px; border-radius: 3px; color: #81503b; background: #f2eee5; font-family: Consolas, "Cascadia Code", monospace; font-size: .92em; }
.prompt-text.markdown-preview pre code { padding: 0; color: inherit; background: transparent; }
.notes-card { padding: 13px 15px; border-radius: 3px; }
.notes-card p { font-size: 11px; line-height: 1.8; }
.version-history-head { font-size: 10px; }
.version-pill { padding: 7px 9px; font-size: 10px; }

@media (max-width: 820px) {
  .app-shell { display: block; height: auto; min-height: 100dvh; overflow: visible; }
  .main-area { height: auto; min-height: 100dvh; overflow: visible; }
  .workspace-view { height: auto; min-height: 0; }
  .workspace-grid { height: auto; }
  .conversation-column { min-height: 0; }
  .conversation-scroll { min-height: 0; max-height: none; overflow: visible; }
  .composer-dock { max-height: none; overflow: visible; }
  .result-column { overflow: visible; }
  .generation-action { margin-bottom: 0; }
}

@media (max-width: 520px) {
  .quick-replies-list { grid-template-columns: minmax(0, 1fr); }
  .quick-reply-button.is-recommended { padding-right: 79px; padding-left: 31px; }
  .quick-replies-footer { align-items: flex-start; }
  .composer-dock { padding-right: 0; }
  .composer-bottom { align-items: center; }
  .muted-hint { max-width: 58%; }
  .feedback-pause-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .feedback-head-actions { gap: 4px; }
  .feedback-head-actions .feedback-count { padding: 4px 5px; }
  .feedback-collapse-button { min-height: 26px; padding: 0 7px; }
  .feedback-collapsed-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feedback-collapsed-actions { width: 100%; justify-content: flex-end; }
  .generation-action-heading strong { font-size: 11px; }
  .prompt-card-head { align-items: flex-start; flex-direction: column; }
  .prompt-actions { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-thinking-spinner, .conversation-thinking-progress span { animation: none; }
}

.conversation-column { position: relative; }
.conversation-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.panel-zoom-button { min-height: 29px; padding: 0 9px; border: 1px solid #d8dcd3; border-radius: 4px; color: #566c6d; background: rgba(255, 255, 252, .82); font-size: 10px; transition: .18s ease; white-space: nowrap; }
.panel-zoom-button:hover { border-color: #c88a70; color: var(--accent-dark); background: #fffaf5; }
.result-topline-actions { display: flex; align-items: center; gap: 8px; }
.result-topline-actions .panel-zoom-button { min-height: 24px; padding: 0 7px; font-size: 9px; }
.question-jump-nav { position: absolute; z-index: 8; top: 50%; right: -11px; width: 20px; transform: translateY(-50%); }
.question-jump-rail { display: flex; align-items: center; justify-content: center; width: 24px; min-height: 62px; padding: 5px 3px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.question-jump-ruler { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: space-around; height: min(18vh, 112px); min-height: 58px; }
.question-jump-tick { display: block; flex: 0 0 1px; width: 13px; background: #bdc5bd; transition: width .16s ease, height .16s ease, background .16s ease; }
.question-jump-tick.is-active { width: 19px; height: 2px; background: #263f43; }
.question-jump-rail:hover .question-jump-tick { background: #82938b; }
.question-jump-rail:hover .question-jump-tick.is-active { background: #263f43; }
.question-jump-menu { position: absolute; top: 50%; right: 26px; display: none; width: min(330px, calc(100vw - 76px)); max-height: min(58vh, 440px); overflow: hidden; border: 1px solid #d9ddd4; border-radius: 14px; background: rgba(255, 255, 253, .98); box-shadow: 0 12px 34px rgba(29, 47, 47, .19); transform: translateY(-50%); }
.question-jump-nav.is-open .question-jump-menu { display: flex; flex-direction: column; }
.question-jump-menu-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px 8px; border-bottom: 1px solid #eceee8; color: #43595b; background: #fff; font-size: 10px; }
.question-jump-menu-head span { color: #9aa39b; font-size: 8px; }
.question-jump-menu-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; padding: 4px 7px 7px; scrollbar-color: #c8ccc4 transparent; scrollbar-width: thin; }
.question-jump-item { display: grid; grid-template-columns: 23px minmax(0, 1fr); align-items: start; gap: 4px; width: 100%; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 9px; color: #36484a; background: transparent; text-align: left; cursor: pointer; }
.question-jump-item:hover, .question-jump-item.is-active { background: #f1f2ee; }
.question-jump-number { padding-top: 1px; color: #8c9891; font-family: var(--body); font-size: 9px; font-variant-numeric: tabular-nums; }
.question-jump-text { display: block; min-width: 0; overflow: hidden; color: inherit; font-size: 10px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.score-card-top > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.score-collapsed-summary { color: #a94f34; font-weight: 700; letter-spacing: .02em; }
.score-card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.section-collapse-button { min-height: 24px; padding: 0 7px; border: 1px solid rgba(219, 231, 222, .22); border-radius: 3px; color: #bdd0c8; background: rgba(255, 255, 255, .04); font-size: 8px; transition: .18s ease; }
.section-collapse-button:hover { border-color: rgba(237, 195, 126, .55); color: #edc37e; }
.score-card .section-collapse-button { border-color: #e2d9ca; color: #667773; background: rgba(255, 255, 255, .45); }
.score-card .section-collapse-button:hover { border-color: #c98c72; color: #9b4c32; background: #fffaf3; }
.score-card.is-collapsed { padding-top: 11px; padding-bottom: 11px; }
.score-card.is-collapsed .score-card-top { min-height: 22px; }
.version-history-head { align-items: center; }
.version-history-head > div { display: flex; align-items: center; gap: 7px; }
.version-history-summary { color: #9a573f; font-size: 8px; font-weight: 500; }
.history-collapse-button { border-color: #d8ddd5; color: #788783; background: rgba(255, 255, 252, .65); }
.history-collapse-button:hover { border-color: #c88a70; color: var(--accent-dark); background: #fffaf5; }
.version-history.is-collapsed { padding: 8px 10px; border: 1px solid #e0e2da; border-radius: 4px; background: rgba(250, 249, 245, .62); }

.focus-dialog { width: min(1440px, calc(100vw - 32px)); height: min(94dvh, 1120px); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid #d6d9d1; border-radius: 8px; color: var(--ink); background: #f8f7f1; box-shadow: 0 28px 100px rgba(14, 34, 38, .34); }
.focus-dialog::backdrop { background: rgba(17, 37, 41, .68); backdrop-filter: blur(4px); }
.focus-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; }
.focus-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 10px; border-bottom: 1px solid #e2e4dc; background: rgba(255, 255, 252, .96); }
.focus-dialog-head h2 { margin: 3px 0 0; color: #30484b; font-family: var(--display); font-size: 20px; font-weight: 600; }
.focus-dialog-content { min-height: 0; overflow: hidden; padding: 9px 22px 16px; }
.focus-dialog-content > .conversation-column, .focus-dialog-content > .result-column { width: 100%; height: 100%; min-height: 0; max-height: 100%; }
.focus-dialog-content > .conversation-column { padding: 0 7px 3px; }
.focus-dialog-content > .conversation-column .conversation-scroll { min-height: 0; max-height: none; }
.focus-dialog-content > .result-column { overflow: auto; padding: 0 5px 10px; }
.focus-dialog-content > .result-column .result-topline { margin-bottom: 11px; }
.is-focus-expanded #conversation-zoom-button, .is-focus-expanded #result-zoom-button { display: none; }

@media (max-width: 820px) {
  .question-jump-nav { right: -6px; }
  .focus-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); }
  .focus-dialog-content { padding: 7px 13px 12px; }
  .focus-dialog-content > .conversation-column { min-height: 0; height: 100%; }
  .focus-dialog-content > .conversation-column .conversation-scroll { min-height: 0; max-height: none; overflow: auto; }
  .focus-dialog-content > .result-column { margin-top: 0; overflow: auto; }
}

@media (max-width: 520px) {
  .conversation-heading-actions { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .conversation-heading-actions .panel-zoom-button { min-height: 25px; padding: 0 6px; font-size: 8px; }
  .conversation-heading-actions .session-state { margin-top: 0; }
  .result-topline-actions { gap: 4px; }
  .result-topline-actions .panel-zoom-button { min-height: 22px; padding: 0 5px; font-size: 7px; }
  .question-jump-nav { right: -4px; }
  .question-jump-menu { right: 24px; width: min(310px, calc(100vw - 58px)); max-height: 58dvh; }
  .focus-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); border-radius: 6px; }
  .focus-dialog-head { padding: 9px 12px 8px; }
  .focus-dialog-head h2 { font-size: 17px; }
  .focus-dialog-content { padding: 5px 8px 8px; }
  .focus-dialog-content > .conversation-column { padding: 0 2px; }
  .score-card-actions { gap: 4px; }
  .section-collapse-button { min-height: 22px; padding: 0 5px; }
  .version-history-head > div { flex-wrap: wrap; gap: 4px; }
}

.session-heading > div:first-child { flex: 1 1 auto; min-width: 0; }
.session-heading h1 { display: -webkit-box; width: 100%; max-width: 100%; margin-top: 5px; font-size: clamp(17px, 1.65vw, 20px); line-height: 1.3; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.session-subtitle { display: -webkit-box; max-width: 100%; overflow: hidden; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.conversation-heading-actions { max-width: 180px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.retry-row { align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
.retry-row > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.retry-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; max-width: 100%; }
.retry-actions .text-button { flex: 0 0 auto; padding: 4px 3px; font-size: 8px; }

@media (max-width: 520px) {
  .session-heading { align-items: flex-start; gap: 7px; }
  .session-heading h1 { font-size: clamp(16px, 4vw, 18px); }
  .conversation-heading-actions { max-width: 125px; flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  .conversation-heading-actions .panel-zoom-button { font-size: 7px; }
  .retry-row { flex-wrap: wrap; }
  .retry-row > span { flex: 1 1 100%; }
  .retry-actions { width: 100%; }
  .conversation-thinking { max-width: calc(100% - 34px); margin-left: 32px; padding: 11px; }
}

.question-options-preview { margin-top: 7px; color: #7c8983; font-size: 9px; }
.question-options-preview summary { display: inline-flex; align-items: center; gap: 5px; color: #75827c; cursor: pointer; list-style: none; }
.question-options-preview summary::-webkit-details-marker { display: none; }
.question-options-preview summary::before { color: #a06449; content: "+"; font-size: 12px; line-height: 1; }
.question-options-preview[open] summary::before { content: "−"; }
.question-options-preview-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.question-options-preview-item { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 7px; border: 1px solid #d9ded6; border-radius: 11px; color: #506567; background: rgba(250, 250, 245, .72); font-size: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.question-options-preview-item.is-recommended { border-color: #d4b18e; color: #8c563c; background: #fff8ec; }
.question-options-preview-item.is-selected { border-color: #9eafa2; color: #3e5a53; background: #eff4ed; }
.question-options-preview-item small { flex: 0 0 auto; color: #a26a45; font-size: 8px; }
.question-options-preview-item small.selected-tag { color: #54715e; }
.answer-edited-mark { padding: 2px 5px; border-radius: 8px; color: #8a765d; background: #eee9dc; font-size: 8px; }
.message-inline-actions { margin-top: 3px; }
.message-edit-button { padding: 2px 0; border: 0; color: #9a573f; background: transparent; font-size: 9px; }
.message-edit-button:hover { text-decoration: underline; }
.answer-edit-form { display: grid; gap: 8px; margin-top: 7px; padding: 10px; border: 1px solid #dce0d7; border-radius: 5px; background: rgba(250, 250, 245, .88); }
.answer-edit-label, .answer-edit-custom-label { color: #526669; font-size: 9px; font-weight: 600; }
.answer-edit-options { display: flex; flex-direction: column; gap: 6px; }
.answer-edit-options .quick-reply-button { width: 100%; min-width: 0; min-height: 34px; padding: 7px 10px 7px 34px; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.answer-edit-options .quick-reply-button.is-recommended { padding-right: 72px; }
.answer-edit-custom-label { display: grid; gap: 4px; }
.answer-edit-custom { display: block; width: 100%; min-height: 52px; padding: 7px 8px; resize: vertical; border: 1px solid #dce0d7; border-radius: 4px; color: var(--ink); background: #fffefa; font-size: 10px; line-height: 1.6; }
.answer-edit-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid #e6e8e0; }
.answer-edit-count { color: #87928b; font-size: 8px; }
.answer-edit-actions { display: flex; align-items: center; gap: 6px; }
.answer-edit-cancel, .answer-edit-save { min-height: 27px; padding: 0 8px; border: 1px solid #d5dbd2; border-radius: 3px; color: #657773; background: #fbfaf5; font-size: 9px; }
.answer-edit-save { border-color: var(--accent); color: #fff8ee; background: var(--accent); }
.answer-edit-save:hover { background: var(--accent-dark); }

@media (max-width: 520px) {
  .answer-edit-form { padding: 8px; }
  .answer-edit-options .quick-reply-button.is-recommended { padding-right: 72px; }
}

.panel-zoom-button, .expand-preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.button-icon { display: inline-grid; flex: 0 0 auto; place-items: center; color: #a45e45; font-size: 14px; line-height: 1; }
.score-radar-figure { width: min(100%, 380px); margin: 0 auto 8px; }
.score-radar { display: block; width: 100%; height: auto; overflow: visible; }
.score-radar-hint { margin: -4px 0 0; color: #788680; text-align: center; font-size: 9px; }
.score-radar-grid { fill: none; stroke: #ddd6ca; stroke-width: 1; }
.score-radar-axis { stroke: #d7d0c4; stroke-width: 1; }
.score-radar-area { fill: rgba(201, 86, 56, .13); stroke: #c95638; stroke-width: 2; stroke-linejoin: round; }
.score-radar-point { fill: #fffaf1; stroke: #b8573b; stroke-width: 2; }
.score-radar-label { fill: #586a68; font-family: var(--body); font-size: 10px; font-weight: 600; }

@media (max-width: 520px) {
  .dimension-list { gap: 5px; }
  .dimension-row { gap: 5px; padding: 6px; font-size: 9px; }
  .dimension-name { font-size: 9px; }
  .dimension-score { font-size: 10px; }
}

.session-heading-copy { min-width: 0; }
.workflow-model-control { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; margin-top: 8px; color: #7b8983; font-size: 9px; font-weight: 500; }
.workflow-model-select { min-width: 0; max-width: 220px; min-height: 27px; padding: 0 24px 0 8px; border: 1px solid #dedfd7; border-radius: 4px; color: #506467; background: rgba(255, 255, 252, .8); font: inherit; text-overflow: ellipsis; }
.workflow-model-select:focus-visible { border-color: #c28064; outline: 2px solid rgba(201, 86, 56, .12); }
.workflow-model-select:disabled { opacity: .62; }
.generation-action { position: relative; overflow: hidden; }
.generation-action > * { position: relative; z-index: 1; }
.generation-model-control { margin: 10px 0 0 34px; }
.generation-model-control .workflow-model-select { max-width: min(240px, 65vw); }
.generation-action.is-generating { border-color: rgba(201, 86, 56, .62); background: linear-gradient(115deg, #f8e7dc, #fff8ef 42%, #f3e3d8 72%, #f8e7dc); background-size: 220% 100%; animation: generation-card-glow 2.6s ease-in-out infinite; }
.generation-action.is-generating::before { position: absolute; z-index: 0; inset: 0 auto 0 -45%; width: 42%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); content: ""; animation: generation-sweep 2.2s ease-in-out infinite; }
.generation-action.is-generating .generation-action-mark { color: #fffaf2; border-color: transparent; background: var(--accent); box-shadow: 0 0 0 4px rgba(201, 86, 56, .11); animation: generation-mark-pulse 1.8s ease-in-out infinite; }
.generate-button.is-generating, .generate-button.is-generating:disabled { opacity: 1; background: linear-gradient(105deg, #a94831, #d67954 48%, #a94831); background-size: 220% 100%; box-shadow: 0 5px 18px rgba(173, 77, 49, .24); animation: generation-button-shimmer 1.8s linear infinite; }
.generate-button.is-generating .generate-button-mark { animation: generation-sparkle-spin 2.4s ease-in-out infinite; }
.generation-progress { display: none; height: 3px; margin: 11px 0 0 34px; overflow: hidden; border-radius: 2px; background: rgba(190, 123, 93, .16); }
.generation-progress span { display: block; width: 35%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bd6043, #e6aa76, #bd6043); transform: translateX(-110%); }
.generation-action.is-generating .generation-progress { display: block; }
.generation-action.is-generating .generation-progress span { animation: generation-progress-run 1.4s ease-in-out infinite; }
@keyframes generation-card-glow { 0%, 100% { background-position: 0% 50%; box-shadow: 0 0 0 rgba(201, 86, 56, 0); } 50% { background-position: 100% 50%; box-shadow: 0 8px 24px rgba(201, 86, 56, .11); } }
@keyframes generation-sweep { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: .7; } 75% { opacity: .45; } 100% { transform: translateX(360%); opacity: 0; } }
@keyframes generation-mark-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(201, 86, 56, .1); } 50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(201, 86, 56, .04); } }
@keyframes generation-button-shimmer { to { background-position: -220% 50%; } }
@keyframes generation-sparkle-spin { 0%, 15% { transform: rotate(0) scale(1); } 55% { transform: rotate(180deg) scale(1.18); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes generation-progress-run { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }

@media (max-width: 520px) {
  .workflow-model-control { gap: 5px; margin-top: 7px; }
  .workflow-model-select { max-width: min(205px, 60vw); }
  .generation-model-control, .generation-progress { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .generation-action.is-generating, .generation-action.is-generating::before, .generation-action.is-generating .generation-action-mark, .generate-button.is-generating, .generate-button.is-generating .generate-button-mark, .generation-action.is-generating .generation-progress span { animation: none; }
}

/* 暖纸工作台：正文优先，朱红只用于当前动作和选择反馈。 */
:root {
  --body: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --paper: #f3f1eb;
  --paper-bright: #fffdf8;
  --ink: #263d3b;
  --ink-soft: #5b6b64;
  --muted: #738079;
  --line: #deded3;
  --rail: #203a36;
  --rail-soft: #2b4840;
  --accent: #b75639;
  --accent-dark: #91412c;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
.main-area { background-image: radial-gradient(rgba(70, 80, 63, .045) .6px, transparent .6px); background-size: 8px 8px; }
.sidebar { background: linear-gradient(165deg, #25433b, #1b322f); }
.brand-lockup { padding-bottom: 30px; }
.brand-name { font-size: 20px; letter-spacing: .12em; }
.brand-caption { font-size: 12px; letter-spacing: .14em; }
.new-session-button { min-height: 46px; border-radius: 8px; font-size: 13px; }
.new-session-button:hover .plus-mark { transform: rotate(90deg); }
.plus-mark { transition: transform .3s var(--ease-out); }
.sidebar-section-head { font-size: 11px; }
.session-item { grid-template-columns: minmax(0, 1fr) auto; border-radius: 8px; padding: 13px 12px; }
.session-item.is-active::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 2px; border-radius: 2px; background: var(--gold); content: ""; }
.session-item-title { grid-column: 1 / -1; padding-right: 24px; font-size: 13px; }
.session-item-meta { grid-column: 1; align-self: center; }
.session-item-score { grid-column: 2; }
.session-delete { top: 10px; bottom: auto; }
.sidebar-footnote strong { font-size: 12px; }
.sidebar-footnote div span { font-size: 11px; }
.topbar { min-height: 64px; padding-inline: 24px; background: rgba(249, 247, 240, .95); }
.crumbs { font-size: 12px; }
.topbar-actions { min-width: 0; margin-left: 16px; }
.model-chip { max-width: min(330px, 35vw); min-height: 36px; padding: 8px 12px; border-radius: 20px; font-size: 12px; }
.model-chip-dot { flex-shrink: 0; }
#model-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-footer { min-height: 30px; font-size: 10px; }
.welcome-view { width: min(100% - 48px, 900px); padding: 42px 32px; animation: none; }
.welcome-view > * { animation: studio-enter .6s var(--ease-out) both; }
.welcome-kicker { font-size: 12px; animation-delay: .02s; }
.welcome-view h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.025em; animation-delay: .07s; }
.welcome-view h1 em { font-style: normal; }
.welcome-copy { font-size: 14px; animation-delay: .12s; }
.starter-card { border-radius: 14px; padding: 22px; box-shadow: 0 6px 24px rgba(51, 60, 44, .05); animation-delay: .17s; }
.starter-card label { font-size: 14px; }
.starter-card textarea { font-size: 15px; min-height: 126px; }
.input-hint { font-size: 12px; }
.primary-button { min-height: 40px; border-radius: 7px; font-size: 13px; }
.primary-button:hover .button-arrow { transform: translate(2px, -2px); }
.button-arrow { transition: transform .2s var(--ease-out); }
.examples-row { animation-delay: .22s; }
.examples-label, .example-chip { font-size: 12px; }
.example-chip { padding: 7px 12px; }
.welcome-footer { gap: 16px; margin-top: 36px; font-size: 12px; animation-delay: .27s; }
.workspace-view { padding: 20px 24px 18px; animation: studio-enter .4s var(--ease-out) both; }
.workspace-grid { width: min(100%, 1440px); gap: 22px; }
.conversation-column { min-width: 0; padding: 18px 20px 14px; border: 1px solid #dfdfd4; border-radius: 14px; background: rgba(255, 253, 247, .68); box-shadow: 0 3px 16px rgba(44, 61, 46, .025); }
.session-heading { position: relative; display: block; padding: 0 0 14px; }
.session-heading-copy { flex-basis: 100%; padding-right: 0; }
.session-heading h1 { margin: 8px 0 6px; font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.45; }
.session-subtitle { color: #6b7970; font-size: 12px; }
.eyebrow { font-size: 11px; }
.conversation-heading-actions { position: static; display: block; width: 0; height: 0; }
.conversation-heading-actions .panel-zoom-button { position: absolute; right: 0; bottom: 14px; }
.conversation-heading-actions .session-state { position: absolute; right: 0; top: 0; }
.session-heading .eyebrow { padding-right: 92px; }
.session-heading .workflow-model-control { width: calc(100% - 100px); }
.session-state { margin: 0; padding: 5px 9px; border-color: #dce1d5; background: #eef2e8; color: #566d59; font-size: 11px; }
.panel-zoom-button { min-height: 30px; border-radius: 6px; font-size: 11px; }
.workflow-model-control { width: 100%; gap: 8px; margin-top: 10px; font-size: 11px; }
.workflow-model-control > span { flex-shrink: 0; }
.workflow-model-select { flex: 1; width: 0; max-width: 300px; min-height: 32px; border-radius: 6px; background-color: #fffdf8; }
.conversation-scroll { min-height: 140px; overscroll-behavior: contain; }
.message-list { gap: 22px; padding: 20px 8px 20px 0; }
.message { gap: 10px; animation: none; }
.message.is-new { animation: studio-enter .4s var(--ease-out) both; }
.message-avatar { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; font-size: 11px; }
.message.assistant .message-avatar { color: #945238; background: #f0e3d7; }
.message.user .message-avatar { color: #4d6c58; background: #e3eadd; }
.message-meta { flex-wrap: wrap; gap: 7px; color: #7f897c; font-size: 11px; }
.message-meta strong { color: #53695c; font-weight: 500; }
.message-round-number { height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #9c6950; font-size: 11px; font-variant-numeric: tabular-nums; }
.message-round-number::before { content: "· "; color: #b4b5a7; }
.message-text { color: #405348; font-size: 14px; line-height: 1.85; }
.message.assistant.is-question { padding: 0; }
.message.assistant.is-question .message-text { font-size: 15px; line-height: 1.85; font-weight: 500; }
.answer-record-label { font-size: 11px; }
.answer-record-options { gap: 5px; }
.answer-record-option { padding: 7px 10px; border-radius: 7px; border-color: #e1e4d8; background: #f0f3e9; font-size: 12px; line-height: 1.7; }
.message-edit-button, .question-options-preview, .question-options-preview-item { font-size: 11px; }
.question-options-preview { margin-top: 9px; }
.question-options-preview-item { border-radius: 6px; padding: 5px 8px; }
.composer-dock { padding: 12px 0 0; scrollbar-width: thin; scrollbar-color: #c7c9b9 transparent; }
.answer-composer, .feedback-card { margin-top: 0; padding: 16px; border-radius: 10px; box-shadow: 0 3px 12px rgba(45, 58, 39, .04); animation: studio-enter .3s var(--ease-out) both; }
.quick-replies-label { font-size: 13px; }
.quick-replies-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.quick-reply-button { display: block; width: 100%; padding: 11px 12px 11px 35px; border-radius: 8px; font-size: 13px; line-height: 1.75; }
.quick-reply-button::before { left: 12px; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-reply-button.is-recommended { padding-right: 12px; padding-top: 30px; }
.quick-reply-button.is-recommended::after { top: 8px; left: 35px; right: auto; border: 0; padding: 1px 6px; font-size: 10px; }
.quick-reply-button:hover { transform: translateX(2px); }
.quick-reply-button.is-selected::before { box-shadow: 0 0 0 3px rgba(183, 86, 57, .1); }
.quick-replies-footer { align-items: flex-start; font-size: 11px; }
.answer-composer textarea, .feedback-card textarea { min-height: 70px; padding: 8px 10px; border: 1px solid #e4e5da; border-radius: 7px; background: #fafaf4; font-size: 14px; transition: border-color .2s ease, background .2s ease; }
.answer-composer textarea:focus, .feedback-card textarea:focus { border-color: #c9967d; background: #fffdf8; }
.answer-custom-label { margin-bottom: 8px; font-size: 12px; }
.composer-bottom { gap: 10px; margin-top: 10px; padding-top: 10px; }
.muted-hint { max-width: 52%; color: #778275; font-size: 11px; }
.secondary-button { min-height: 37px; border-radius: 6px; font-size: 12px; }
.composer-mode-link { font-size: 11px; line-height: 1.6; }
.feedback-head h2 { font-size: 17px; }
.feedback-count, .feedback-collapse-button, .feedback-expand-button, .feedback-return-button { font-size: 11px; }
.feedback-collapsed-row { margin-top: 0; border-radius: 8px; font-size: 12px; }
.conversation-thinking { max-width: calc(100% - 36px); margin-left: 36px; border-radius: 10px; padding: 16px; }
.conversation-thinking-copy strong { font-size: 13px; }
.conversation-thinking-detail { font-size: 12px; line-height: 1.7; }
.conversation-thinking-status { font-size: 11px; }
.retry-row { margin-left: 36px; border-radius: 8px; padding: 12px; font-size: 12px; }
.retry-actions .text-button { font-size: 11px; }
.result-column { min-width: 0; padding-right: 4px; }
.result-topline { min-height: 33px; margin-bottom: 12px; color: #52675b; font-size: 12px; }
.result-topline-actions { min-width: 0; }
.result-topline-actions .panel-zoom-button { min-height: 30px; font-size: 11px; }
.generation-action { padding: 18px; border-radius: 12px; border-color: #deddd0; background: #f9f7ef; }
.generation-action.is-ready { background: #f5eade; border-color: #d8b7a0; }
.generation-action-heading strong { font-size: 14px; }
.generation-action-heading .eyebrow { font-size: 10px; margin-bottom: 5px; }
.generation-action p { color: #756a5e; font-size: 12px; line-height: 1.8; }
.generation-model-control { width: auto; margin-left: 34px; }
.generation-model-control .workflow-model-select { max-width: 100%; }
.generation-action .generate-button { min-height: 40px; border-radius: 7px; font-size: 13px; margin-top: 14px; }
.result-content { gap: 16px; }
.prompt-card { border-color: #d8ddce; border-radius: 12px; box-shadow: 0 4px 16px rgba(44, 61, 46, .04); }
.prompt-card-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 17px 18px 14px; background: #fffdf8; }
.prompt-card-head h2 { margin-top: 6px; font-size: 20px; }
.prompt-actions { width: 100%; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.prompt-actions .copy-button { margin-left: auto; }
.prompt-view-switch { border-radius: 6px; }
.prompt-view-switch button, .copy-button, .expand-preview-button { min-height: 30px; padding: 5px 9px; border-radius: 5px; font-size: 11px; }
.prompt-text { max-height: 360px; padding: 20px; color: #435348; font-size: 14px; line-height: 1.95; }
.prompt-text.markdown-preview h3 { font-size: 16px; margin-top: 20px; }
.prompt-text.markdown-preview h4 { font-size: 14px; }
.prompt-card-foot { padding: 11px 18px; font-size: 11px; }
.score-card { border: 1px solid #dddece; border-radius: 12px; padding: 17px 18px; background: #f7f6ed; box-shadow: none; }
.score-card-top { gap: 10px; font-size: 12px; }
.score-card-top i { font-size: 10px; }
#score-card-body { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; column-gap: 8px; }
#score-card-body[hidden] { display: none; }
.score-number { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; margin: 12px 0; }
.score-number strong { font-size: 44px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.score-caption { margin: 4px 0 0; font-size: 11px; }
.score-radar-figure { width: min(100%, 240px); margin: 12px auto; }
.score-radar-hint { font-size: 10px; line-height: 1.5; margin-top: 0; }
.score-radar-grid { stroke: #d8d8c8; }
.score-radar-axis { stroke: #d8d8c8; }
.score-radar-area { fill: rgba(110, 137, 99, .16); stroke: #738968; }
.score-radar-point { stroke: #738968; fill: #fffdf8; }
.score-radar-label { fill: #566a56; font-weight: 500; }
.dimension-list { grid-column: 1 / -1; gap: 8px; }
.dimension-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 10px; border-color: #e3e4d7; border-radius: 7px; background: rgba(255, 253, 248, .65); }
.dimension-name { color: #566654; font-size: 11px; }
.dimension-score { color: #667d56; font-size: 12px; }
.dimension-track { display: block; grid-column: 1 / -1; height: 3px; background: #e6e7db; }
.dimension-fill { display: block; background: #8c9e78; transform-origin: left; }
.score-explainer { grid-column: 1 / -1; border-color: #dddfd0; }
.score-explainer summary { font-size: 12px; }
.score-explainer p, .score-explainer dl div { font-size: 11px; }
.score-explainer dl div { grid-template-columns: 126px minmax(0, 1fr); }
.section-collapse-button, .history-collapse-button { min-height: 27px; border-radius: 5px; font-size: 11px; }
.score-stamp { font-size: 11px; }
.notes-card { padding: 16px 18px; border-radius: 0 9px 9px 0; background: #eeecdf; }
.notes-heading { font-size: 12px; }
.notes-card p { font-size: 12px; }
.version-history-head, .version-history-head span:first-child, .version-history-description { font-size: 12px; }
.version-pill { border-radius: 6px; font-size: 12px; padding: 8px 12px; }
.version-pill b { font-size: 12px; }
.version-history-summary { font-size: 11px; }
.question-jump-nav { right: 1px; }
.question-jump-menu { border-radius: 10px; }
.question-jump-menu-head { padding: 13px 15px; font-size: 12px; }
.question-jump-menu-head span { font-size: 11px; }
.question-jump-item { gap: 8px; padding: 9px; }
.question-jump-text, .question-jump-number { font-size: 12px; }
.question-jump-nav.is-open .question-jump-menu { animation: jump-menu-enter .2s var(--ease-out) both; }
.answer-edit-form { padding: 14px; border-radius: 8px; animation: studio-enter .25s var(--ease-out) both; }
.answer-edit-options .quick-reply-button { font-size: 12px; line-height: 1.75; }
.answer-edit-options .quick-reply-button.is-recommended { padding: 30px 10px 10px 35px; }
.answer-edit-label, .answer-edit-custom-label, .answer-edit-custom { font-size: 12px; }
.answer-edit-count, .answer-edit-cancel, .answer-edit-save { font-size: 11px; }
.settings-dialog { width: min(540px, calc(100vw - 28px)); border-radius: 16px; }
.settings-form { padding: 28px; }
.dialog-heading h2 { font-size: 25px; font-weight: 500; }
.dialog-copy { color: #738075; font-size: 12px; line-height: 1.8; }
.field-label { font-size: 13px; }
.field-label span { font-size: 11px; }
.settings-form select, .settings-form input { min-height: 42px; border-radius: 7px; font-size: 13px; }
.model-input-wrap input { padding-right: 40px; }
.model-list-toggle { width: 35px; height: 38px; border-radius: 5px; }
.fetch-model-button { border-radius: 7px; font-size: 12px; }
.model-option { padding: 10px; font-size: 12px; }
.model-options-menu { border-radius: 8px; animation: studio-enter .18s var(--ease-out) both; }
.model-options-empty, .clear-key-button, .ollama-tip, .settings-feedback { font-size: 11px; line-height: 1.7; }
.dialog-actions { gap: 10px; }
.dialog-actions > button { height: 42px; min-height: 42px; font-size: 13px; }
.dialog-close { width: 32px; height: 32px; transition: transform .25s var(--ease-out), color .2s ease; }
.dialog-close:hover { transform: rotate(90deg); }
.focus-dialog, .prompt-preview-dialog { border-radius: 16px; }
dialog[open] { animation: dialog-enter .3s var(--ease-out) both; }
dialog[open]::backdrop { animation: backdrop-enter .25s ease both; }
.focus-dialog-content > .conversation-column { padding: 18px; }
.focus-dialog-content > .result-column { padding: 12px; }
.copy-button.is-copied { border-color: #a7b89a; color: #476941; background: #edf3e7; animation: copied-pop .3s var(--ease-out); }
.prompt-view-switch button { transition: background .2s ease, color .2s ease; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: wait; }
button:focus-visible, summary:focus-visible { outline: 2px solid #b75639; outline-offset: 3px; }
details[open] > :not(summary) { animation: studio-enter .25s var(--ease-out) both; }
@keyframes studio-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes jump-menu-enter { from { opacity: 0; transform: translate(8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes copied-pop { 50% { transform: scale(1.04); } }
@media (min-width: 821px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .workspace-grid { grid-template-columns: minmax(0, 1.12fr) minmax(310px, .9fr); }
  .composer-dock { flex-shrink: 1; max-height: 56%; min-height: 100px; overflow: auto; }
  .answer-composer .quick-replies-list { max-height: min(17dvh, 155px); overflow: auto; scrollbar-width: thin; scrollbar-color: #b5bea9 #f6f7ef; padding-right: 5px; overscroll-behavior: contain; }
  .composer-dock:empty { min-height: 0; max-height: 0; padding: 0; border: 0; }
}
@media (min-width: 1500px) {
  .workspace-view { padding-inline: 36px; }
  .workspace-grid { gap: 28px; }
}
@media (max-width: 1120px) and (min-width: 821px) {
  .app-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .workspace-view { padding: 16px; }
  .workspace-grid { gap: 16px; }
  .conversation-column { padding: 16px 14px 12px; }
}
@media (max-width: 820px) {
  .workspace-view { padding: 16px; }
  .conversation-column { padding: 16px; }
  .model-chip { max-width: 45vw; font-size: 11px; }
  .result-column { padding-right: 0; }
  .generation-action { margin-bottom: 14px; }
  .conversation-scroll { max-height: 52dvh; overflow: auto; }
  .focus-dialog-content > .conversation-column .composer-dock { flex-shrink: 1; max-height: 56%; overflow: auto; }
  .focus-dialog-content > .conversation-column .quick-replies-list { max-height: 18dvh; overflow: auto; }
}
@media (max-width: 520px) {
  .workspace-view { padding: 10px; }
  .conversation-column { padding: 14px 12px; border-radius: 10px; }
  .session-heading h1 { max-width: 100%; font-size: 19px; }
  .session-subtitle { max-width: 100%; }
  .conversation-heading-actions { flex-direction: row; max-width: 100%; }
  .conversation-heading-actions .panel-zoom-button { font-size: 11px; }
  .generation-model-control { margin-left: 0; }
  .generation-action p, .generation-action .generate-button { margin-left: 0; }
  .quick-reply-button.is-recommended { padding: 30px 12px 11px 35px; }
  .composer-bottom { flex-wrap: wrap; }
  .muted-hint { flex: 1 1 100%; max-width: 100%; }
  .composer-bottom .secondary-button { margin-left: auto; }
  .prompt-card-head { padding: 15px; }
  .prompt-text { padding: 16px; }
  .settings-form { padding: 22px 18px; }
  .dialog-actions > button, .dialog-actions .primary-button { min-height: 40px; font-size: 12px; }
  .welcome-view { width: calc(100% - 24px); padding: 34px 6px; }
  .welcome-view h1 { font-size: 32px; }
  .welcome-footer { font-size: 11px; gap: 8px; }
  .starter-card { padding: 18px; }
  .toast { font-size: 12px; }
}
/* 尊重系统的减少动态效果设置，加载状态仍保留文字和等待时间。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 三阶段工作预览：访谈优先，生成与评审各有明确的入口。 */
.workspace-tabs { display: flex; flex: 0 0 auto; gap: 4px; margin: 0 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eceee5; }
.workspace-tabs button { flex: 1; min-width: 0; padding: 10px 4px; border: 0; border-radius: 6px; color: #748174; background: transparent; font-size: 12px; transition: background .2s ease, box-shadow .2s ease; }
.workspace-tabs button[aria-selected="true"] { color: #344f40; background: #fffdf8; box-shadow: 0 2px 6px #23382a12; font-weight: 600; }
.result-topline { flex-shrink: 0; }
.interview-preview { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 170px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.interview-preview header { flex-shrink: 0; padding: 18px 18px 12px; border-bottom: 1px solid #e5e6da; }
.interview-preview h2, .evaluation-action h2 { margin: 6px 0 8px; font-size: 19px; }
.interview-preview header p, .evaluation-action p { margin: 0; color: #70806e; font-size: 12px; line-height: 1.8; }
#interview-preview-list { min-height: 0; overflow: auto; padding: 0 18px; scrollbar-width: thin; scrollbar-color: #b9c2af transparent; }
.interview-record { padding: 17px 0; border-bottom: 1px solid #e5e6da; }
.interview-record:last-child { border: 0; }
.interview-record > strong { color: #7a876e; font-size: 11px; font-weight: 500; }
.interview-record > p { margin: 8px 0; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.interview-record-jump { padding: 0; border: 0; background: transparent; color: #9a573f; font-size: 11px; text-align: left; }
.interview-record-jump:hover { text-decoration: underline; }
.interview-record-answer { padding: 10px 12px; border-left: 2px solid #9aab86; border-radius: 0 6px 6px 0; background: #f1f4ea; color: #465c45; font-size: 12px; line-height: 1.8; }
.interview-record-answer .answer-record-option { padding: 0; border: 0; background: transparent; }
.interview-record .text-button { padding: 8px 0 0; font-size: 11px; }
.interview-record .interview-record-pending { color: #8a8d7d; font-size: 11px; }
.result-column .generation-action { flex-shrink: 0; margin-top: 14px; margin-bottom: 0; padding: 14px; }
.generation-action .generation-model-control, .include-score-control { margin-left: 0; }
.include-score-control { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #64735c; font-size: 11px; }
.include-score-control input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.result-column .generation-action p { margin-left: 0; }
.result-column .generation-action .generate-button { width: 100%; margin-left: 0; }
.evaluation-action { flex-shrink: 0; margin-bottom: 16px; padding: 18px; border: 1px solid #daddcd; border-radius: 12px; background: #f5f4e8; }
.evaluation-action .primary-button { width: 100%; margin-top: 14px; }
#evaluation-status { margin-top: 10px; color: #986044; overflow-wrap: anywhere; }
.evaluation-action.is-evaluating { border-color: #c79072; }
.evaluation-action.is-evaluating .primary-button { background: linear-gradient(110deg, #ae5336 25%, #d9906b 48%, #ae5336 72%); background-size: 220% 100%; animation: generation-button-shimmer 2s linear infinite; }
.evaluation-source, .evaluation-notes { margin: 0 0 12px; color: #728068; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.evaluation-notes:empty { display: none; }
.evaluation-history { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.evaluation-history:empty { display: none; }
.evaluation-report-button { padding: 6px 8px; border: 1px solid #dadfcf; border-radius: 6px; color: #748068; background: #fffdf8; font-size: 11px; }
.evaluation-report-button[aria-pressed="true"] { color: #8f4c34; border-color: #d7ac92; background: #f5e9dd; }
.workflow-model-control { align-items: center; }
.workflow-model-button { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; width: 0; min-height: 47px; padding: 8px 10px; border: 1px solid #daddcf; border-radius: 8px; background: #fffdf8; text-align: left; transition: border-color .2s ease, background .2s ease; }
.workflow-model-button:hover { border-color: #bd947b; background: #fcf7ed; }
.workflow-model-button > span:first-child { display: grid; gap: 4px; min-width: 0; }
.workflow-model-button strong { overflow: hidden; color: #465a45; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.workflow-model-button small { color: #8a8f7e; font-size: 10px; white-space: nowrap; }
.workflow-picker-arrow { flex-shrink: 0; color: #9d6546; font-size: 16px; }
.workflow-picker-dialog { width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; }
.workflow-model-options { max-height: 35dvh; margin: 14px 0; padding-right: 4px; overflow: auto; scrollbar-width: thin; scrollbar-color: #b9c2af transparent; }
.workflow-model-options h3 { margin: 14px 0 8px; color: #8d785f; font-size: 11px; font-weight: 500; }
.workflow-model-option { position: relative; display: grid; gap: 5px; width: 100%; margin-bottom: 6px; padding: 12px 34px 12px 12px; border: 1px solid #e1e3d8; border-radius: 8px; background: #fffdf8; text-align: left; transition: background .2s ease, border-color .2s ease; }
.workflow-model-option strong { color: #405641; font-size: 13px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.workflow-model-option small { color: #8d937f; font-size: 11px; overflow-wrap: anywhere; }
.workflow-model-option:hover { border-color: #c59476; background: #fcf6ec; }
.workflow-model-option[aria-pressed="true"] { border-color: #bca386; background: #f5eee1; }
.workflow-model-option[aria-pressed="true"]::after { position: absolute; top: 15px; right: 12px; color: var(--accent); content: "✓"; }
.workflow-custom { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: #6d785f; }
.workflow-custom .secondary-button { width: 100%; margin-top: 12px; }
#workflow-picker-settings { margin-top: 16px; font-size: 12px; }
.answer-fields { overflow: auto; min-height: 0; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #b9c2af transparent; }
.answer-fields .quick-replies-list { max-height: none; overflow: visible; padding: 0; }
.answer-fields .answer-custom-label { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e6da; }
.answer-fields textarea { width: 100%; }
.answer-composer-footer { flex-shrink: 0; }
.answer-composer button[type="submit"]:disabled { cursor: not-allowed; opacity: .48; color: #7f8876; background: #f1f2e9; box-shadow: none; }
.answer-composer button[type="submit"]:disabled:hover { transform: none; }
.message-round-number { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 1.5; }
.message-round-number::before { content: none; }
.message-meta { align-items: center; }

/* 清单式工作预览：以核对需求为主，完整内容按需展开。 */
.workspace-tabs { position: relative; isolation: isolate; gap: 0; padding: 4px; border: 0; background: #e9ece2; }
.workspace-tabs::before { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 6px; background: #fffdf8; box-shadow: 0 2px 6px #23382a10; content: ""; transform: translateX(calc(var(--tab-index, 0) * 100%)); transition: transform .35s var(--ease-out); }
.workspace-tabs button[aria-selected="true"] { background: transparent; box-shadow: none; }
.result-topline { border: 0; margin-bottom: 16px; font-size: 12px; }
.result-topline-actions .panel-zoom-button { font-size: 11px; }
.interview-preview { border: 0; border-radius: 10px; background: rgba(255, 253, 248, .6); }
.interview-preview header { padding: 20px 18px 14px; border: 0; }
.preview-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.interview-preview h2 { margin: 0; color: #405548; font-size: 16px; font-weight: 600; }
#preview-answer-count { color: #8c927f; font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-filters { display: flex; gap: 6px; margin-top: 16px; }
.preview-filters button { padding: 5px 10px; border: 0; border-radius: 5px; color: #7d8877; background: transparent; font-size: 11px; transition: color .2s ease, background .2s ease; }
.preview-filters button:hover { background: #eef0e6; }
.preview-filters button[aria-pressed="true"] { color: #46604c; background: #e8eddf; }
#interview-preview-list { padding: 0 18px 14px; overscroll-behavior: contain; }
.preview-context { margin: 0 0 8px; border-bottom: 1px solid #e7e8de; color: #7b8474; font-size: 11px; }
.preview-context > summary { padding: 12px 0; cursor: pointer; }
.preview-context > div { padding: 8px 0 14px; }
.preview-context p { margin: 6px 0 16px; color: #536450; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.requirement-item { border-bottom: 1px solid #e5e7dd; transition: background .2s ease; }
.requirement-item:last-child { border-bottom: 0; }
.requirement-item > summary { display: grid; grid-template-columns: 23px minmax(0, 1fr) 17px 10px; align-items: start; gap: 8px; padding: 17px 0; list-style: none; cursor: pointer; }
.requirement-item > summary::after { content: "⌄"; color: #a5ae98; font-size: 12px; padding-top: 2px; transition: transform .25s var(--ease-out); }
.requirement-item[open] > summary::after { transform: rotate(180deg); }
.requirement-item > summary::-webkit-details-marker { display: none; }
.requirement-number { padding-top: 2px; color: #a3ab97; font-size: 11px; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.requirement-copy { display: grid; min-width: 0; gap: 7px; }
.requirement-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #485c49; font-size: 13px; font-weight: 500; line-height: 1.75; overflow-wrap: anywhere; }
.requirement-copy > span { overflow: hidden; color: #8a927f; font-size: 11px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.requirement-status { padding-top: 3px; color: #809572; font-size: 12px; text-align: center; transition: transform .25s ease; }
.requirement-item.is-pending .requirement-status, .requirement-item.is-pending .requirement-copy > span { color: #aa6e4a; }
.requirement-item > summary:hover .requirement-number, .requirement-item[open] .requirement-number { color: var(--accent); }
.requirement-item[open] { background: #f4f5ec; }
.requirement-item[open] > summary { padding-bottom: 12px; }
.requirement-item[open] .requirement-copy strong { display: block; }
.requirement-item[open] .requirement-copy > span { display: none; }
.requirement-item[open] .requirement-status { transform: scale(1.15); }
.requirement-body { padding: 0 12px 20px 33px; }
.requirement-body .interview-record-answer { padding: 0 0 0 12px; background: transparent; border-radius: 0; }
.requirement-body .text-button { margin-top: 12px; padding: 4px 0; font-size: 11px; }
.interview-record-pending, .preview-filter-empty { color: #8c927f; font-size: 12px; line-height: 1.9; }
.preview-filter-empty { padding: 30px 4px; }
.result-column .generation-action { display: flex; align-items: center; gap: 12px; padding: 15px 0 0; border: 0; border-top: 1px solid #dadfcf; border-radius: 0; background: transparent; }
.generation-action-heading { flex: 1; min-width: 0; gap: 8px; }
.generation-action-heading strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; color: #728168; font-weight: 400; }
.generation-action-mark { flex-shrink: 0; width: 24px; height: 24px; border: 0; background: transparent; color: #ab7753; }
.result-column .generation-action .generate-button { flex-shrink: 0; width: auto; margin: 0; min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: 12px; }
.generation-confirm-dialog { width: min(470px, calc(100vw - 28px)); }
.generation-confirm-dialog .workflow-model-control { margin: 24px 0 18px; }
.generation-confirm-dialog .include-score-control { padding: 14px; border: 1px solid #e3e6d8; border-radius: 8px; background: #f4f6ec; font-size: 12px; }
.generation-confirm-tip { margin: 18px 0 24px; color: #929582; font-size: 11px; line-height: 1.8; }
#confirm-generation-button { width: 100%; min-height: 44px; }
.evaluation-confirm-dialog .workflow-model-control { margin: 22px 0; }
#confirm-evaluation-button { width: 100%; min-height: 44px; }
.evaluation-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border: 0; border-radius: 0; background: transparent; }
.evaluation-action .primary-button { width: auto; margin: 0; min-height: 38px; padding: 0 14px; font-size: 12px; }
#evaluation-status { flex-basis: 100%; }
#evaluation-status:empty { display: none; }
.result-column > .version-history { flex: 0 0 auto; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #e2e5d9; border-radius: 9px; background: #f9f9f1; }
.version-history-head span:nth-child(2) { display: none; }
.version-history-description { font-size: 11px; line-height: 1.7; }
#version-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.version-pill { flex-shrink: 0; }
#score-card-body { grid-template-columns: minmax(0, 1fr); }
.score-number { flex-direction: row; align-items: baseline; gap: 8px; }
.score-radar-figure { width: min(100%, 360px); margin: 4px auto 20px; }
.preview-context > summary { color: #56664f; }
.session-subtitle { display: none; }
.session-heading h1 { margin-bottom: 16px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.session-heading #interview-model-button { min-height: 30px; padding: 5px 8px; border-color: transparent; background: #eef1e6; }
#interview-model-button small { display: none; }
.conversation-column { border-color: transparent; box-shadow: none; }
.answer-composer { padding: 14px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.answer-fields .quick-reply-button { background: rgba(255, 253, 248, .85); }
.answer-fields .quick-reply-button.is-selected { background: #f3e9dc; }
.answer-fields .quick-reply-button::before { transition: border-color .2s ease, background .2s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.answer-fields .quick-reply-button.is-selected::before { transform: scale(1.08); }
@media (min-width: 821px) {
  .workspace-grid { gap: 28px; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .9fr); }
  .conversation-column { padding: 20px; }
  .result-column { padding-top: 3px; }
}
@media (max-width: 1120px) and (min-width: 821px) {
  .workspace-grid { gap: 22px; }
  .conversation-column { padding: 18px 14px; }
  .interview-preview header { padding-inline: 14px; }
  #interview-preview-list { padding-inline: 14px; }
}
@media (max-width: 520px) {
  .session-heading h1 { font-size: 19px; }
  .result-topline { margin-top: 8px; }
  .requirement-item > summary { padding-block: 16px; }
  .requirement-body { padding-left: 20px; }
  .result-column .generation-action { margin-bottom: 16px; }
}
@media (min-width: 821px) {
  .composer-dock:has(.answer-composer) { display: flex; flex-direction: column; max-height: 59%; overflow: hidden; }
  .answer-composer { display: flex; flex-direction: column; min-height: 0; }
  .answer-fields { max-height: 30dvh; }
  .answer-composer .composer-mode-link { flex-shrink: 0; }
}
@media (max-width: 820px) {
  .interview-preview { flex: none; min-height: 0; }
  #interview-preview-list { max-height: 55dvh; }
  .answer-fields { max-height: 40dvh; }
  .focus-dialog-content .answer-fields .quick-replies-list { max-height: none; overflow: visible; }
}
