/* A compact, read-only companion to the conversation; purple identifies actions. */
html, body, main { width: 100%; max-width: 100%; min-width: 0; }
html { height: 100%; overflow: hidden; }
body { height: 100vh; height: var(--chat-viewport-height, 100dvh); }
main, #chat-pane, #chat-body, #messages, #composer-wrap { min-height: 0; min-width: 0; }
#chat-body { overflow: hidden; align-items: stretch; }
/* Reserve the message scroller's vertical padding even when a form is tall. */
#composer-wrap { display: flex; flex-direction: column; max-height: calc(100% - 64px); }
#command-bar, #composer-links { flex-shrink: 0; }
#guidance-dock { flex-shrink: 1; min-height: 0; }
#composer-links:not(:has(a:not(.hidden))) { display: none; }
:root[data-chat-short-viewport] #messages { padding-block: 8px; }
:root[data-chat-short-viewport] #empty-state { padding-top: 8px; }
:root[data-chat-short-viewport] #composer-wrap { max-height: calc(100% - 16px); }
:root[data-chat-short-viewport] #input { max-height: 56px; }
#chat-body > #empty-state, #chat-body > #composer-wrap { width: 100%; max-width: min(100%, 56rem); margin-inline: auto; }
#chat-body > #messages { width: 100%; max-width: min(100%, 48rem); margin-inline: auto; }
#composer-links { flex-wrap: wrap; gap: 10px 22px; }
#composer-links a { white-space: nowrap; }
.ui-icon { display: inline-block; width: 1.25em; height: 1.25em; flex-shrink: 0; background-color: currentColor; vertical-align: -.2em; -webkit-mask: var(--ui-icon) no-repeat center / contain; mask: var(--ui-icon) no-repeat center / contain; }
#btn-send-icon { width: 19px; height: 19px; }
#btn-toggle-canvas .ui-icon { width: 21px; height: 21px; }
#input { min-width: 0; width: 100%; }
#chat-pane > header { flex-shrink: 0; }
#conversation-bar { flex-shrink: 0; }
#messages { overscroll-behavior: contain; }
.bubble-user > div { overflow-wrap: anywhere; }
#canvas-pane { min-width: 0; flex-shrink: 0; background: #f6f4fa; }
#canvas-pane > div:first-child { flex-shrink: 0; }
.workspace-status { margin-top: 3px; color: #645e72; font-size: 12px; line-height: 1.5; }
/* Underline tabs: the active tab is marked once (ink + bar), the current stage gets a small dot. */
#stage-rail { display: flex; flex-wrap: nowrap; gap: 4px; flex-shrink: 0; border-bottom: 1px solid #e6e2ee; }
#stage-rail .stage-chip { position: relative; flex: 1; min-width: 0; white-space: nowrap; padding: 10px 5px 11px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5d576b; background: transparent; border-radius: 6px 6px 0 0; cursor: pointer; transition: color .15s, background-color .15s; }
#stage-rail .stage-chip:hover { color: #3c00bd; background: rgba(84, 35, 231, .05); }
#stage-rail .stage-chip.active { color: #3c00bd; font-weight: 650; background: transparent; box-shadow: inset 0 -2px #5423e7; }
#stage-rail .stage-chip.current:not(.active)::after { content: ""; position: absolute; top: 9px; margin-left: 3px; width: 5px; height: 5px; border-radius: 50%; background: #7b5cf0; }
#workspace-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px; }
#workspace-body [hidden], #guidance-dock[hidden] { display: none !important; }
[id^="workspace-panel-"] { min-width: 0; outline-offset: 4px; overflow-wrap: anywhere; }
.workspace-heading { font-size: 16px; font-weight: 650; line-height: 1.45; color: #1d1a26; }
.workspace-description { margin: 6px 0 18px; font-size: 12.5px; line-height: 1.75; color: #645e72; }
.workspace-card { margin: 12px 0; padding: 16px 18px; background: #fff; border: 1px solid #e6e2ee; border-radius: 12px; box-shadow: 0 1px 2px rgba(29, 26, 38, .04); }
.workspace-card h3 { font-size: 15px; font-weight: 650; line-height: 1.5; color: #1d1a26; }
.workspace-card p { font-size: 13px; line-height: 1.75; margin-top: 7px; white-space: pre-wrap; }
.workspace-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 15px; margin: 14px 0; font-size: 12px; line-height: 1.6; }
.workspace-facts dt { color: #645e72; }.workspace-facts dd { color: #484456; }
.workspace-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.workspace-tags span { padding: 4px 8px; border-radius: 5px; background: #f3effb; color: #5b4084; font-size: 11px; }
.workspace-group { margin: 23px 0; }
.workspace-group h3, .workspace-missing-box h4, .workspace-suggestion h3 { font-size: 13px; font-weight: 650; }
.workspace-list { padding-left: 19px; margin-top: 9px; list-style: disc; color: #484456; font-size: 13px; line-height: 1.85; }
.workspace-list li + li { margin-top: 5px; }
.workspace-evidence { margin-top: 12px; font-size: 12px; line-height: 1.75; }
.workspace-emphasis { font-weight: 550; }
.workspace-evidence blockquote { margin: 7px 0; padding-left: 12px; border-left: 2px solid #cfc1ed; color: #645e72; }
.workspace-missing { color: #8a601d; }
.workspace-missing-box { margin-top: 15px; padding: 12px 14px; background: #fff8e9; border: 1px solid #f3e2bd; border-radius: 10px; color: #7a531a; }
.workspace-missing-box .workspace-list { color: inherit; font-size: 12px; margin-top: 5px; }
.workspace-source { border-top: 1px solid #e3ddee; margin-top: 20px; padding-top: 13px; font-size: 12px; }
.workspace-source summary { cursor: pointer; color: #655578; }
.workspace-source p { margin-top: 12px; white-space: pre-wrap; line-height: 1.85; color: #645e72; }
.workspace-empty { margin: 24px 0; padding: 24px 20px; border: 1px dashed #d6cce9; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.workspace-empty h3 { color: #1d1a26; font-size: 15px; font-weight: 650; }
.workspace-empty p { color: #645e72; font-size: 13px; line-height: 1.8; margin: 8px 0 16px; }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
/* Primary = filled purple (下载 PDF); secondary = white outline, so only one action shouts. */
.workspace-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border: 1px solid #5423e7; border-radius: 8px; padding: 7px 14px; background: #5423e7; color: white; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: 0 1px 2px rgba(60, 0, 189, .18); transition: background-color .15s, border-color .15s, color .15s; }
.workspace-button:hover:not(:disabled) { background: #4519cf; border-color: #4519cf; }
.workspace-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.workspace-secondary { background: #fff; color: #3c00bd; border-color: #d6d0e2; box-shadow: 0 1px 2px rgba(29, 26, 38, .04); }
.workspace-secondary:hover:not(:disabled) { background: #f1ecff; border-color: #c4b3f3; color: #3c00bd; }
#workspace-suggestions { border-top: 1px solid #e6e2ee; padding-top: 18px; margin-top: 26px; }
#workspace-suggestions .workspace-heading { font-size: 14px; }
.workspace-suggestion { padding: 10px 0; font-size: 12.5px; line-height: 1.75; color: #5d576b; }
.workspace-suggestion p { margin-top: 3px; white-space: pre-wrap; }
#workspace-panel-resume { display: flex; flex-direction: column; min-height: min(650px, 70vh); }
#workspace-panel-resume #tpl-rail, #resume-preview-area { padding-left: 0; padding-right: 0; }
#workspace-panel-resume #verification-panel { margin-left: 0; margin-right: 0; }
#resume-preview-area { overflow: visible; }
#canvas-empty { min-height: 330px; }
#canvas-sheet-wrap { padding: 16px; height: auto; overflow: hidden; background: #eae7f0; border: 1px solid #e1dde9; border-radius: 12px; }
#sheet-size { position: relative; margin: 0 auto; overflow: hidden; border-radius: 2px; box-shadow: 0 1px 2px rgba(29, 26, 38, .08), 0 8px 28px rgba(40, 28, 80, .10); }
#live-sheet { position: absolute; left: 0; top: 0; border: 0; min-height: 0; transform-origin: top left; }
#resume-actions { flex-shrink: 0; margin-bottom: 12px; }
#resume-actions .workspace-actions { margin-top: 0; align-items: flex-start; }
.resume-word-action { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.resume-word-action small { font-size: 11px; color: #645e72; }
#resume-actions-hint { margin: 6px 0 0; }
#workspace-export-result { margin-top: 10px; padding: 12px 14px; background: #f1ecff; border: 1px solid #e2d8fb; border-radius: 10px; font-size: 12px; line-height: 1.7; }
#workspace-export-result.error { color: #b42318; background: #fff7f5; border-color: #f6d4cf; }
#workspace-export-result a { display: inline-block; margin-right: 14px; color: #5423e7; text-decoration: underline; }
#resume-editor-overlay { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; background: #f6f4fa; }
#resume-editor-overlay[hidden] { display: none; }
#resume-editor-loading { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: #474255; background: #fff; border-bottom: 1px solid #e6e2ee; }
#resume-editor-loading[hidden] { display: none; }
#resume-editor-frame { width: 100%; flex: 1; min-height: 0; border: 0; display: block; }
#guidance-dock { margin-bottom: 10px; padding: 14px 16px 12px; background: #fff; border: 1px solid #e1d8f5; border-radius: 16px; box-shadow: 0 1px 2px rgba(29, 26, 38, .04), 0 4px 14px rgba(60, 0, 189, .05); max-height: min(280px, 32dvh); overflow: auto; overflow-wrap: anywhere; }
.guidance-label { color: #5423e7; font-size: 11.5px; font-weight: 650; margin-bottom: 4px; }
#guidance-dock h2 { font-size: 14px; line-height: 1.65; font-weight: 650; color: #1d1a26; }
.guidance-why { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: #645e72; }
.guidance-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guidance-option { max-width: 100%; padding: 7px 12px; border: 1px solid #dcd0f7; border-radius: 999px; text-align: left; font-size: 12.5px; line-height: 1.45; color: #3c00bd; background: #fff; transition: background-color .15s, border-color .15s; }
.guidance-option:hover { background: #f1ecff; border-color: #b9a4f0; }
.guidance-hint { margin-top: 8px; font-size: 11px; color: #645e72; line-height: 1.5; }
#btn-close-workspace { display: none; color: #3c00bd; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid #d6d0e2; border-radius: 8px; background: #fff; white-space: nowrap; }
#canvas-pane button:focus-visible, #canvas-pane a:focus-visible, #guidance-dock button:focus-visible { outline: 2px solid #5423e7; outline-offset: 2px; }
@media (max-width: 1279px) and (min-width: 1024px) {
  #chat-pane > header { padding: 0 20px; }
  #canvas-pane > div:first-child { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  /* Constrain the whole flex layout; messages/cards scroll above the composer. */
  body { position: fixed; top: var(--chat-viewport-top, 0px); left: 0; right: 0; }
  #canvas-pane.is-open { display: flex !important; position: fixed; inset: var(--chat-viewport-top, 0px) 0 auto; width: 100%; height: var(--chat-viewport-height, 100dvh); z-index: 70; }
  #input { font-size: 16px; max-height: min(160px, calc(var(--chat-viewport-height, 100dvh) * .2)); overflow-y: auto; }
  #composer-wrap { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #btn-close-workspace { display: inline-block; }
  #canvas-pane > div:first-child { flex-wrap: wrap; padding: 14px 16px 10px; gap: 9px; }
  #workspace-body { padding: 18px 16px; }
  #stage-rail { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 640px) {
  #composer-wrap { padding: 0 12px max(10px, env(safe-area-inset-bottom)); }
  #guidance-dock { padding: 10px 12px; margin-bottom: 8px; max-height: 29dvh; }
  #guidance-dock h2 { font-size: 13px; }
  #command-surface { padding: 6px; border-radius: 18px; }
  #command-surface > .flex { gap: 8px; }
  #command-surface textarea { font-size: 16px; }
  #command-surface .items-start { padding-left: 8px; padding-right: 8px; gap: 8px; }
  #composer-wrap > div:last-child { gap: 15px; }
  #btn-send { width: 40px; height: 40px; }
  #workspace-panel-resume { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .bubble-user, .bubble-ai { animation: none; } }

/* Bundled SVG masks: icons never depend on a remote icon font. */
.ui-icon[data-icon="auto_awesome"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%202.5%206.5L21%2012l-6.5%202.5L12%2021l-2.5-6.5L3%2012l6.5-2.5L12%203Z%22%2F%3E%3Cpath%20d%3D%22m20%202%20.6%201.4L22%204l-1.4.6L20%206l-.6-1.4L18%204l1.4-.6L20%202Z%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="arrow_forward"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14m-6-6%206%206-6%206%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="upload_file"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H6a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V8l-5-5Z%22%2F%3E%3Cpath%20d%3D%22M14%203v5h5m-7%2010v-7m-3%203%203-3%203%203%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="edit_note"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h12M4%209h9M4%2013h6m3%205%206-6%203%203-6%206h-3v-3Z%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="attach_file"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%2012%207-7a4%204%200%200%201%206%206L10%2022a6%206%200%200%201-8-8L13%203m3%205-9%209a2%202%200%200%201-3-3l9-9%22%20transform%3D%22translate%282%200%29%20scale%28.85%29%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="send"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%203%2019%209-19%209%204-9-4-9Z%22%2F%3E%3Cpath%20d%3D%22M7%2012h15%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="stop"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%221%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="keyboard_command_key"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%208H5a3%203%200%201%201%203-3v14a3%203%200%201%201-3-3h14a3%203%200%201%201-3%203V5a3%203%200%201%201%203%203H8Z%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="help"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M9.5%209a2.5%202.5%200%201%201%204.2%201.8c-1.2.8-1.7%201-1.7%202.7m0%203h.01%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="bolt"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m13%202-9%2012h7l-1%208%2010-13h-8l1-7Z%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="description"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H6a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V8l-5-5Z%22%2F%3E%3Cpath%20d%3D%22M14%203v5h5M8%2012h8m-8%204h6%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="article"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207h8m-8%205h8m-8%205h5%22%2F%3E%3C%2Fsvg%3E"); }
.ui-icon[data-icon="close"] { --ui-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M6%2018%2018%206%22%2F%3E%3C%2Fsvg%3E"); }

/* Public-source provenance stays separate from the user's experience cards. */
.workspace-web-sources { margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid #ded5e8; }
.workspace-web-sources > h3 { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #493263; }
.workspace-web-source { padding: 12px 0; border-top: 1px solid #e9e3ee; min-width: 0; }
.workspace-web-source h4 { font-size: 13px; font-weight: 650; line-height: 1.65; overflow-wrap: anywhere; }
.workspace-web-source a { color: #5423bd; text-decoration: underline; text-underline-offset: 3px; }
.workspace-web-source-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; color: #7c7089; font-size: 10px; line-height: 1.6; }
.workspace-web-source .workspace-source { margin-top: 8px; }
.workspace-web-source .workspace-source p { max-height: 260px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.75; }

.workspace-web-source-scope { margin-top: 7px; color: #71637c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }

/* Match table, review checks and follow-up question chips. */
.match-table { margin-top: 18px; }
.match-row { margin-top: 10px; padding: 12px 14px; background: #fff; border: 1px solid #e6e2ee; border-radius: 12px; box-shadow: 0 1px 2px rgba(29, 26, 38, .04); min-width: 0; }
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.match-req { font-size: 13px; font-weight: 600; line-height: 1.6; color: #1d1a26; min-width: 0; overflow-wrap: anywhere; }
.match-badge { flex: 0 0 auto; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #e9e0ff; color: #3c00bd; white-space: nowrap; }
.match-transferable .match-badge { background: #fff1d6; color: #865c1e; }
.match-row.match-gap .match-badge { background: #f1eef5; color: #655c76; }
.match-angle { margin-top: 5px; font-size: 12px; line-height: 1.7; color: #645e72; }
.match-none { margin-top: 5px; font-size: 12px; color: #645e72; }
.match-bullets { margin: 7px 0 0; padding: 0; list-style: none; }
.match-bullets li { margin-top: 6px; min-width: 0; }
.match-item-name { display: block; font-size: 11px; color: #645e72; margin-bottom: 2px; }
.match-bullet { display: block; width: 100%; max-width: 100%; padding: 6px 9px; border: 1px solid #ded3f2; border-radius: 7px; background: #faf8fe; color: #3c00bd; font-size: 12.5px; line-height: 1.65; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.match-bullet:hover { background: #eee6ff; border-color: #aa8ddf; }
/* Resume scan (核对): three tiles, JD coverage bar, grouped issues. */
.scan { margin-top: 4px; }
.scan-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scan-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px; border: 1px solid #e6e2ee; border-radius: 12px; background: #fff; }
.scan-tile-title { font-size: 12px; font-weight: 600; color: #474255; }
.scan-tile-value { font-size: 18px; font-weight: 700; line-height: 1.3; color: #1d1a26; }
.scan-tile-hint { font-size: 11px; line-height: 1.55; color: #7c7089; }
.scan-tile.is-ok .scan-tile-value { color: #1f7a4d; }
.scan-tile.is-warning { border-color: #f0dcb4; background: #fffaf0; }
.scan-tile.is-warning .scan-tile-value { color: #865c1e; }
.scan-tile.is-error { border-color: #f1c4c4; background: #fff6f6; }
.scan-tile.is-error .scan-tile-value { color: #b42318; }
.scan-tile.is-unknown .scan-tile-value { color: #7c7089; }
.scan-tile.is-info { background: #faf8fe; }
.scan-tile.is-info .scan-tile-value { color: #493263; }
.scan-stale { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f3fb; font-size: 12.5px; color: #4d4560; }
.scan-coverage { margin-top: 12px; padding: 12px 14px; border: 1px solid #e6e2ee; border-radius: 12px; background: #fff; }
.scan-coverage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.scan-coverage-title { font-size: 12px; font-weight: 600; color: #474255; }
.scan-coverage-value { font-size: 15px; font-weight: 700; color: #1d1a26; font-variant-numeric: tabular-nums; }
.scan-bar { display: flex; height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #f1eef5; }
.scan-bar > span { height: 100%; }
.scan-bar-direct, .scan-dot-direct { background: #5423e7; }
.scan-bar-transferable, .scan-dot-transferable { background: #e0a43a; }
.scan-bar-gap, .scan-dot-gap { background: #d6d0df; }
.scan-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: #645e72; }
.scan-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.scan-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.scan-issues { margin-top: 16px; }
.scan-issues h4 { font-size: 13px; font-weight: 650; color: #493263; }
.scan-issue { margin-top: 8px; padding: 12px 14px; border: 1px solid #e6e2ee; border-left-width: 3px; border-radius: 10px; background: #fff; min-width: 0; }
.scan-issue.scan-error { border-left-color: #d92d20; }
.scan-issue.scan-warning { border-left-color: #e0a43a; }
.scan-issue.scan-info { border-left-color: #b9b0c7; }
.scan-issue-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.scan-badge { flex: 0 0 auto; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #f1eef5; color: #4d4560; }
.scan-error .scan-badge { background: #fde8e7; color: #b42318; }
.scan-warning .scan-badge { background: #fff1d6; color: #865c1e; }
.scan-issue-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #645e72; }
.scan-issue-message { margin-top: 6px; font-size: 13px; line-height: 1.7; color: #1d1a26; overflow-wrap: anywhere; }
.scan-issue-suggestion { margin-top: 3px; font-size: 12px; line-height: 1.7; color: #645e72; overflow-wrap: anywhere; }
.scan-issue-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scan-action { min-height: 28px; padding: 4px 10px; font-size: 12px; }
#canvas-pane .scan-action:focus-visible { outline: 2px solid #7659f6; outline-offset: 2px; }
@media (max-width: 520px) { .scan-tiles { grid-template-columns: 1fr; } .scan-tile { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; } .scan-tile-hint { flex-basis: 100%; } }
.review-check { margin: 8px 0; padding: 12px 14px; }
.review-ask { display: block; max-width: 100%; text-align: left; white-space: normal; line-height: 1.6; margin-top: 8px; }
.guidance-question-block + .guidance-question-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid #efe9f8; }
.guidance-question-text { font-size: 13.5px; line-height: 1.6; font-weight: 650; color: #1d1a26; }
#canvas-pane .match-bullet:focus-visible, #canvas-pane .review-ask:focus-visible { outline: 2px solid #7659f6; outline-offset: 2px; }

/* ── UI polish (20261013-ui): header, welcome, composer, bubbles. Visual only. ── */
.app-header { box-shadow: none; }
.app-brand { letter-spacing: .04em; }
.app-nav-link { position: relative; padding: 4px 0; font-size: 14px; color: #5d576b; transition: color .15s; }
.app-nav-link:hover { color: #3c00bd; }
.app-nav-link.is-current { color: #3c00bd; font-weight: 600; }
.app-nav-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 2px; border-radius: 2px; background: #5423e7; }
.header-button { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid #e1dcea; border-radius: 8px; background: #fff; color: #474255; font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.header-button:hover:not(:disabled) { border-color: #c4b3f3; color: #3c00bd; background: #faf8ff; }
.header-button:disabled { opacity: .5; cursor: wait; }
.header-icon-button { align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #474255; transition: color .15s, background-color .15s; }
.header-icon-button:hover { color: #3c00bd; background: #f1ecff; }
#chat-pane > header a:focus-visible, #chat-pane > header button:focus-visible,
#empty-state a:focus-visible, #empty-state button:focus-visible,
#composer-wrap a:focus-visible, #composer-wrap button:focus-visible, #composer-wrap label:focus-within,
#messages a:focus-visible, #messages button:focus-visible, #messages summary:focus-visible { outline: 2px solid #5423e7; outline-offset: 2px; }

.welcome-notice { color: #645e72; }
.welcome-card { box-shadow: 0 1px 2px rgba(29, 26, 38, .04), 0 8px 24px rgba(29, 26, 38, .05); }
.welcome-card-link:hover { border-color: #cbbcf4; background: #fcfbff; }
.quick-action[aria-pressed="false"] { background: #fff; color: #3c00bd; border: 1px solid #dcd0f7; box-shadow: none; }
.quick-action[aria-pressed="false"]:hover { background: #f1ecff; border-color: #b9a4f0; }
.quick-action[aria-pressed="true"] { background: #5423e7; color: #fff; border: 1px solid #5423e7; box-shadow: 0 2px 8px rgba(84, 35, 231, .25); }

#command-surface { box-shadow: 0 1px 2px rgba(29, 26, 38, .04), 0 8px 28px rgba(29, 26, 38, .07); }
#command-surface:focus-within { border-color: #b9a4f0; box-shadow: 0 0 0 3px rgba(84, 35, 231, .12), 0 8px 28px rgba(29, 26, 38, .07); }
.composer-lead-icon { color: #8a849a; }
#flow-actions .flow-action { padding: 4px 12px; background: #f6f3ff; border-color: #dcd0f7; color: #3c00bd; font-weight: 500; }
#flow-actions .flow-action:hover:not(:disabled) { background: #ece4ff; }
#composer-links a { color: #645e72; }
#composer-links a:hover { color: #3c00bd; }

/* Chat bubbles: user = brand fill, assistant = plain text with a quiet avatar (no amber rule). */
#messages .bubble-user > div { background: #5423e7; padding: 10px 16px; border-radius: 18px 18px 6px 18px; font-size: 15px; line-height: 1.7; box-shadow: 0 1px 2px rgba(60, 0, 189, .15); }
#messages .bubble-ai > div > div:first-child { width: 30px; height: 30px; background: #f1ecff; border: 1px solid #e2d8fb; }
#messages .bubble-ai > div > div:first-child .ui-icon { color: #5423e7; }
#messages .bubble-ai .border-l-\[4px\] { border-left: 0; padding: 3px 0 0; font-size: 15px; color: #1d1a26; }
@media (max-width: 640px) {
  #empty-state { padding-top: 20px; }
  .welcome-intro { margin-bottom: 20px; }
  .welcome-card { padding: 18px; }
  #messages .bubble-user > div, #messages .bubble-ai .border-l-\[4px\] { font-size: 14.5px; }
  .header-button { height: 30px; }
  .app-nav-link.is-current::after { display: none; }
}
/* 第十四批：模型 ask_user 问题卡（翻页，一次一题） */
.ask-card { position: relative; }
.ask-card [hidden] { display: none !important; }
.ask-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ask-card-label { flex: 1; min-width: 0; color: #5423e7; font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-card-progress { color: #8a8398; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ask-card-nav { display: flex; gap: 2px; }
.ask-card-nav button { width: 26px; height: 26px; border-radius: 8px; color: #474255; font-size: 0; transition: background-color .15s; }
.ask-card-nav button::before { font-size: 15px; line-height: 26px; }
.ask-card-prev::before { content: "‹" / ""; }
.ask-card-next::before { content: "›" / ""; }
.ask-card-nav button:hover:not(:disabled) { background: #f1ecff; color: #3c00bd; }
.ask-card-nav button:disabled { color: #cfc9da; cursor: default; }
.ask-card-prompt { font-size: 14px; line-height: 1.6; font-weight: 650; color: #1d1a26; }
.ask-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-option { max-width: 100%; padding: 6px 12px; border: 1px solid #dcd0f7; border-radius: 999px; font-size: 12.5px; line-height: 1.45; color: #3c00bd; background: #fff; transition: background-color .15s, border-color .15s, color .15s; }
.ask-option:hover { background: #f1ecff; border-color: #b9a4f0; }
.ask-option[aria-pressed="true"] { background: #5423e7; border-color: #5423e7; color: #fff; }
.ask-option[aria-pressed="true"]:hover { background: #3c00bd; border-color: #3c00bd; }
.ask-option[aria-pressed="true"]::before { content: "✓ " / ""; }
.ask-other { border-style: dashed; }
.ask-other[aria-pressed="true"] { border-style: solid; }
.ask-text, .ask-other-input { display: block; width: 100%; margin-top: 10px; padding: 8px 11px; border: 1px solid #dcd0f7; border-radius: 10px; font: inherit; font-size: 13px; line-height: 1.55; color: #1d1a26; background: #fbfaff; resize: vertical; transition: border-color .15s, background-color .15s; }
.ask-text { min-height: 58px; }
.ask-text:focus, .ask-other-input:focus { outline: none; border-color: #5423e7; background: #fff; box-shadow: 0 0 0 3px rgba(84, 35, 231, .12); }
.ask-page-actions { display: flex; gap: 14px; margin-top: 12px; padding-right: 76px; min-height: 30px; align-items: center; }
.ask-skip, .ask-unknown { font-size: 12px; color: #8a8398; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.ask-skip:hover, .ask-unknown:hover { color: #474255; text-decoration-color: currentColor; }
.ask-skip[aria-pressed="true"], .ask-unknown[aria-pressed="true"] { color: #3c00bd; text-decoration-color: currentColor; }
.ask-submit { position: absolute; right: 0; bottom: 0; height: 30px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: #1d1a26; transition: background-color .15s; }
.ask-submit:hover { background: #3c00bd; }
#guidance-dock:has(.ask-card) { max-height: min(320px, 40dvh); }
@media (max-width: 640px) { .ask-card-prompt { font-size: 13px; } }
/* 第十四批：基本信息 / 经历清单表单卡 */
#guidance-dock:has(.intake-card) { max-height: min(480px, 58dvh); }
.intake-card [hidden] { display: none !important; }
.intake-card-label { color: #5423e7; font-size: 11.5px; font-weight: 650; margin-bottom: 10px; }
.intake-card[data-intake="basics"], .intake-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 10px; align-items: end; }
.intake-row { position: relative; margin: 0 0 10px; padding: 12px 12px 12px; border: 1px solid #ece6f7; border-radius: 12px; background: #fcfbff; min-width: 0; }
.intake-row legend { float: left; grid-column: 1 / -1; width: 100%; padding: 0; margin-bottom: -2px; font-size: 12px; font-weight: 650; color: #474255; }
.intake-card[data-intake="basics"] > .intake-card-label, .intake-card[data-intake="basics"] > .intake-actions { grid-column: 1 / -1; }
.intake-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; grid-column: span 2; }
.intake-field-name { font-size: 11.5px; color: #645e72; }
.intake-field input, .intake-field select, .intake-field textarea { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #dcd0f7; border-radius: 9px; font: inherit; font-size: 13px; color: #1d1a26; background: #fff; transition: border-color .15s, box-shadow .15s; }
.intake-field textarea { height: auto; min-height: 52px; padding: 7px 10px; line-height: 1.55; resize: vertical; }
.intake-field select { appearance: none; padding-right: 26px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23645e72' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.intake-field input:focus, .intake-field select:focus, .intake-field textarea:focus { outline: none; border-color: #5423e7; box-shadow: 0 0 0 3px rgba(84, 35, 231, .12); }
.intake-field input:disabled { background: #f4f2f8; color: #a7a1b4; }
.intake-field input[aria-invalid="true"] { border-color: #d92d20; }
.intake-field:has([name="name"]), .intake-row .intake-field:has([name="role"]) { grid-column: span 4; }
.intake-card[data-intake="basics"] .intake-field:has([name="name"]) { grid-column: span 2; }
.intake-field:has([name="summary"]), .intake-field:has([name="availability"]) { grid-column: 1 / -1; }
.intake-row .intake-field:has([name="role"]) { grid-column: 1 / -1; }
.intake-check { grid-column: span 2; display: flex; align-items: center; gap: 6px; height: 34px; font-size: 12.5px; color: #474255; cursor: pointer; }
.intake-check input { width: 15px; height: 15px; accent-color: #5423e7; }
.intake-error { grid-column: 1 / -1; margin-top: -4px; font-size: 12px; color: #b42318; }
.intake-row-remove { position: absolute; top: 9px; right: 10px; font-size: 12px; color: #8a8398; }
.intake-row-remove:hover { color: #b42318; }
.intake-add { width: 100%; height: 34px; border: 1px dashed #c9bbf0; border-radius: 10px; font-size: 12.5px; color: #5423e7; transition: background-color .15s, border-color .15s; }
.intake-add:hover:not(:disabled) { background: #f6f2ff; border-color: #9f86ea; }
.intake-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 12px; }
.intake-skip { font-size: 12.5px; color: #8a8398; }
.intake-skip:hover { color: #474255; }
.intake-submit { height: 32px; padding: 0 18px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; background: #1d1a26; transition: background-color .15s; }
.intake-submit:hover { background: #3c00bd; }
#guidance-dock .intake-card button:focus-visible { outline: 2px solid #5423e7; outline-offset: 2px; }
/* 第十六批：档案已有项只读摘要、缺项表单、从档案选经历。 */
.intake-profile-summary { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid #ece6f7; border-radius: 10px; background: #fcfbff; font-size: 12.5px; line-height: 1.6; color: #474255; }
.intake-profile-summary > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.intake-edit-existing { flex: none; font-size: 12px; font-weight: 600; color: #5423e7; }
.intake-edit-existing:hover { text-decoration: underline; }
.intake-existing-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.intake-field:has([name="phone"]), .intake-field:has([name="email"]) { grid-column: span 3; }
.intake-profile-choices { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.intake-profile-choices legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 650; color: #474255; }
.intake-profile-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #ece6f7; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.intake-profile-choice:hover { border-color: #c9bbf0; }
.intake-profile-choice:has(input:checked) { border-color: #9f86ea; background: #f8f5ff; }
.intake-profile-choice:has(input:focus-visible) { outline: 2px solid #5423e7; outline-offset: 2px; }
.intake-profile-choice input { flex: none; width: 15px; height: 15px; margin-top: 2px; accent-color: #5423e7; }
.intake-profile-choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.intake-profile-choice-name { font-size: 13px; font-weight: 600; color: #1d1a26; }
.intake-profile-choice-meta { font-size: 11.5px; color: #8a8398; }
.intake-profile-choice-summary { font-size: 12px; line-height: 1.55; color: #645e72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.intake-hint { margin: 0 0 10px; font-size: 12px; color: #8a8398; }
.intake-selection-error { margin-top: 8px; font-size: 12px; color: #b42318; }
@media (max-width: 1023px) {
  .ask-text, .ask-other-input, .intake-field input, .intake-field select { font-size: 16px; }
}
@media (max-width: 640px) {
  .intake-field, .intake-card[data-intake="basics"] .intake-field:has([name="name"]) { grid-column: span 3; }
  .intake-field:has([name="name"]), .intake-field:has([name="summary"]), .intake-field:has([name="availability"]) { grid-column: 1 / -1; }
  .intake-check { grid-column: span 3; }
  .intake-field:has([name="phone"]), .intake-field:has([name="email"]) { grid-column: 1 / -1; }
}
/* 第十七批：编排模式首屏入口与工具进度。 */
.orchestrator-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.orchestrator-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 14px; border: 1px solid #e6e2ee; border-radius: 12px; background: #fcfbff; text-align: left; transition: border-color .15s, background-color .15s, transform .15s; }
.orchestrator-entry:hover:not(:disabled) { border-color: #b9a4f0; background: #f6f2ff; }
.orchestrator-entry:active:not(:disabled) { transform: translateY(1px); }
.orchestrator-entry:focus-visible { outline: 2px solid #5423e7; outline-offset: 2px; }
.orchestrator-entry:disabled { opacity: .6; cursor: progress; }
.orchestrator-entry-label { font-size: 13.5px; font-weight: 650; color: #1d1a26; }
.orchestrator-entry-hint { font-size: 12px; line-height: 1.5; color: #645e72; }
@media (max-width: 480px) { .orchestrator-entries { grid-template-columns: 1fr; } }
.tool-progress { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #645e72; }
.tool-progress::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9f86ea; }
.tool-progress[data-status="running"]::before { animation: tool-progress-pulse 1s ease-in-out infinite; }
.tool-progress[data-status="completed"] { color: #8a8398; }
.tool-progress[data-status="completed"]::before { background: #c9bbf0; }
@keyframes tool-progress-pulse { 50% { opacity: .3; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .tool-progress[data-status="running"]::before { animation: none; } }

/* Evidence stays outside the A4; only uncertain text is marked inside it. */
#evidence-bar { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; color: var(--hh-text-3); font-size: 12px; line-height: 1.7; }
#evidence-toggle { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--hh-text-2); cursor: pointer; font-size: 12.5px; white-space: nowrap; }
#evidence-toggle:disabled { cursor: default; color: #777080; }
.evidence-switch { display: inline-block; width: 26px; height: 16px; border-radius: 99px; background: #d9d4e2; padding: 3px; }
.evidence-switch::after { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; }
#evidence-toggle[aria-pressed="true"] .evidence-switch { background: var(--hh-primary); }
#evidence-toggle[aria-pressed="true"] .evidence-switch::after { transform: translateX(10px); }
#evidence-summary { min-width: 0; }
.evidence-pending-link { color: #a14f08; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.evidence-pending-link:disabled { color: var(--hh-text-3); text-decoration: none; cursor: default; }
#evidence-card { position: fixed; z-index: 135; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: var(--hh-text-2); font-size: 12.5px; line-height: 1.7; box-shadow: 0 4px 24px rgba(29, 26, 38, .12); overflow-wrap: anywhere; }
#evidence-card[hidden] { display: none; }
#evidence-card:focus { outline: none; }
#evidence-card :focus-visible, #evidence-toggle:focus-visible, .evidence-pending-link:focus-visible { outline: 2px solid var(--hh-primary); outline-offset: 3px; }
.evidence-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.evidence-head h2 { color: var(--hh-text); font-size: 14px; font-weight: 650; }
.evidence-badge { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.evidence-supported { color: #166534; background: #f0fdf4; }
.evidence-pending { color: #92400e; background: #fffbeb; }
.evidence-manual { color: var(--hh-text-3); background: #f3f4f6; }
.evidence-close { margin: -6px -6px -6px auto; width: 30px; height: 30px; color: #777080; border-radius: 6px; font-size: 20px; cursor: pointer; }
.evidence-close:hover { background: var(--hh-bg); }
.evidence-section + .evidence-section { margin-top: 16px; }
.evidence-section h3, .evidence-confirm h3 { margin: 0 0 7px; color: var(--hh-text-3); font-size: 11.5px; font-weight: 600; }
.evidence-section blockquote { border-left: 3px solid #d9ccf5; margin: 8px 0; padding: 3px 0 3px 11px; white-space: pre-wrap; }
.evidence-section blockquote small { display: block; color: #777080; font-size: 11px; margin-top: 3px; }
.evidence-section blockquote .evidence-warning { color: #a14f08; }
.evidence-more summary { color: var(--hh-primary); cursor: pointer; font-size: 12px; padding: 3px 0; }
.evidence-note { color: #777080; margin-bottom: 10px; }
.evidence-requirement { margin: 6px 0; }
.evidence-req-badge { display: inline-block; margin-left: 7px; padding: 0 5px; border: 1px solid var(--hh-line); border-radius: 4px; color: var(--hh-text-3); font-size: 10.5px; }
.evidence-confirm { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fffbeb; color: #92400e; }
.evidence-confirm h3 { color: #92400e; }
.evidence-confirm p + p { margin-top: 7px; }
.evidence-link { color: var(--hh-primary); font-size: 12px; cursor: pointer; text-align: left; }
.evidence-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.evidence-confirm .evidence-link { margin: 4px 0; }
.evidence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #efedf3; }
.evidence-actions .workspace-button { font-size: 12px; padding: 6px 10px; }
@media (max-width: 767px) {
  #evidence-bar { gap: 8px; font-size: 11px; }
  #evidence-card { inset: auto 0 0; width: 100%; max-width: none; max-height: 70vh; max-height: 70dvh; border-radius: 16px 16px 0 0; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px rgba(29, 26, 38, .12); }
}
@media print {
  #evidence-bar, #evidence-card { display: none !important; }
}
