:root {
  --ink: #1f2926;
  --muted: #65716d;
  --line: #dfe5e1;
  --paper: #ffffff;
  --canvas: #f4f6f3;
  --green: #167c62;
  --green-soft: #dcefe7;
  --coral: #cf604f;
  --coral-soft: #f8e3df;
  --yellow: #e5b83e;
  --yellow-soft: #f8efce;
  --blue: #4c6f8e;
  --radius: 6px;
  --shadow: 0 12px 36px rgba(31, 41, 38, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  background: #202825;
  color: white;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 0 8px 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; }
.brand strong { display: block; font-size: 16px; }
.brand span { display: block; margin-top: 3px; color: #9eaaa5; font-size: 12px; }
.nav { display: grid; gap: 4px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #b8c2be;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
}
.nav-item:hover { color: white; background: #2b3531; }
.nav-item.active { color: white; background: var(--green); }
.nav-icon { width: 20px; text-align: center; font-size: 18px; }
.xiaoli-mini { position: relative; height: 20px; border-radius: 50%; background: var(--yellow); }
.xiaoli-mini::before, .xiaoli-mini::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 3px;
  height: 4px;
  background: #26342e;
  border-radius: 50%;
}
.xiaoli-mini::before { left: 5px; }
.xiaoli-mini::after { right: 5px; }
.xiaoli-mini i:first-child { position: absolute; left: 5px; top: 2px; width: 10px; height: 4px; background: #26342e; border-radius: 8px 8px 2px 2px; transform: rotate(-5deg); }
.xiaoli-mini i:last-child { position: absolute; left: 7px; bottom: 4px; width: 6px; height: 3px; border-bottom: 1.5px solid #26342e; border-radius: 50%; }
.sidebar-footer { margin-top: auto; }
.storage-meter { padding: 14px 10px; border-top: 1px solid #34403b; }
.storage-meter > div:first-child { display: flex; justify-content: space-between; font-size: 12px; color: #aeb9b4; }
.storage-meter strong { color: white; }
.meter-track { height: 4px; margin-top: 10px; overflow: hidden; background: #3c4843; border-radius: 4px; }
.meter-track span { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .3s ease; }
.quiet-button { width: 100%; padding: 9px; color: #b8c2be; border: 0; background: transparent; }
.main { min-width: 0; }
.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 2px 0 0; font-size: 22px; font-weight: 680; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.top-actions { display: flex; gap: 10px; margin-left: auto; }
.primary-button, .secondary-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 650;
}
.primary-button { color: white; background: var(--green); }
.primary-button:hover { background: #126950; }
.secondary-button { color: var(--ink); background: white; border-color: var(--line); }
.secondary-button:hover { border-color: #aebbb5; }
.wide { width: 100%; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
}
.mobile-menu { display: none; }
.view { display: none; padding: 28px 32px 42px; }
.view.active { display: block; }
.demo-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 25px 26px 0;
  margin-bottom: 18px;
  overflow: hidden;
  color: white;
  background: #26342e;
  border-left: 4px solid var(--yellow);
}
.demo-journey-copy { display: flex; align-items: center; gap: 17px; }
.demo-journey-copy h2 { margin: 4px 0 7px; font-size: 21px; }
.demo-journey-copy p:last-child { margin: 0; color: #c7d1cc; font-size: 12px; }
.demo-journey .eyebrow { color: #f2d576; }
.agent-orbit { width: 62px; height: 62px; flex: none; display: grid; place-items: center; border: 1px solid #63726b; border-radius: 50%; }
.agent-orbit .xiaoli-face { width: 46px; height: 46px; }
.journey-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2px; border-top: 1px solid #44514b; }
.journey-steps button { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; padding: 15px 12px; color: #dce5e1; background: transparent; border: 0; border-right: 1px solid #44514b; text-align: left; }
.journey-steps button:last-child { border-right: 0; }
.journey-steps button:hover, .journey-steps button.active { background: #314039; }
.journey-steps span { grid-row: 1 / 3; color: var(--yellow); font-size: 11px; font-weight: 800; }
.journey-steps strong { font-size: 12px; }
.journey-steps small { margin-top: 3px; color: #9faca6; font-size: 9px; }
.persona-strip { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 20px 22px; margin-bottom: 18px; color: white; background: #26342e; border-left: 4px solid var(--yellow); }
.persona-avatar { width: 64px; height: 64px; display: grid; place-items: center; background: var(--yellow); color: #26342e; font-size: 25px; font-weight: 800; }
.persona-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.persona-title h2 { margin: 3px 0 0; font-size: 20px; }
.persona-title > span { color: #dce5e1; font-size: 12px; }
.fiction-label { color: #f4d779; font-size: 10px; font-weight: 750; }
.persona-main > p { max-width: 900px; margin: 8px 0 11px; color: #c8d2cd; font-size: 12px; line-height: 1.65; }
.persona-strip .tag { color: #e9efec; background: #35463e; border-color: #506259; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); }
.stat { min-height: 134px; padding: 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat span, .stat small { display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin: 13px 0 9px; font-size: 31px; }
.stat small { color: #89938f; font-size: 11px; }
.stat.accent { color: white; background: var(--green); }
.stat.accent span, .stat.accent small { color: #d5ece4; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { margin-bottom: 18px; }
.section-heading.inline { display: flex; justify-content: space-between; align-items: flex-end; }
.section-heading h2, .gap-header h2 { margin: 4px 0 0; font-size: 17px; }
.action-list { display: grid; }
.action-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.action-row:first-child { border-top: 0; }
.action-row small, .experience-meta, .card-meta { display: block; margin-top: 4px; color: var(--muted); }
.action-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.action-symbol.green { color: var(--green); background: var(--green-soft); }
.action-symbol.coral { color: var(--coral); background: var(--coral-soft); }
.action-symbol.yellow { color: #866811; background: var(--yellow-soft); }
.action-symbol.blue { color: var(--blue); background: #e5edf3; }
.arrow { color: #8b9691; }
.ability-visual { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(180px, 1.1fr); gap: 12px; align-items: center; }
#ability-radar { width: 100%; height: auto; max-height: 220px; }
.skill-bars { display: grid; gap: 12px; }
.skill-bar-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.skill-bar-head span:last-child { color: var(--muted); }
.skill-bar-track { height: 7px; background: #edf0ed; border-radius: 6px; overflow: hidden; }
.skill-bar-track span { display: block; height: 100%; background: var(--green); }
.recent-panel { margin-top: 18px; }
.timeline-panel { margin-top: 18px; }
.timeline-summary { color: var(--muted); font-size: 10px; }
.experience-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; padding: 8px 0 4px; }
.timeline-item { position: relative; min-height: 122px; padding: 22px 18px 12px 0; border-top: 2px solid #d8dfdb; }
.timeline-item::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--green); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--green); }
.timeline-item time { color: var(--coral); font-size: 9px; font-weight: 750; }
.timeline-item strong { display: block; margin: 7px 0 5px; font-size: 12px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.text-button { color: var(--green); border: 0; background: none; }
.experience-table { display: grid; }
.experience-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) 1fr 110px 36px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.experience-row:first-child { border-top: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  color: #3d5950;
  background: #edf4f0;
  border: 1px solid #d9e8e1;
  border-radius: 4px;
  font-size: 11px;
}
.type-pill { color: var(--coral); font-size: 12px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-wrap input { width: 100%; border: 0; outline: 0; }
select, input, textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid #ccd5d0;
  border-radius: var(--radius);
  outline: none;
}
select, input { min-height: 40px; padding: 0 11px; }
textarea { padding: 11px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 124, 98, .1); }
.toolbar select { width: 150px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.experience-card {
  min-height: 250px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}
.experience-card header { display: flex; justify-content: space-between; gap: 12px; }
.experience-card h3 { margin: 4px 0 8px; font-size: 16px; }
.experience-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.result-line { padding: 10px; margin: 14px 0; background: var(--yellow-soft); font-size: 12px; }
.card-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 15px; }
.empty-state { display: none; padding: 70px 20px; text-align: center; }
.empty-state.show { display: block; }
.empty-state p { color: var(--muted); }
.chat-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 18px; justify-content: center; min-height: calc(100vh - 163px); }
.chat-context, .chat-panel { background: white; border: 1px solid var(--line); }
.chat-context { padding: 22px; align-self: start; }
.chat-context h2 { margin: 5px 0 16px; font-size: 17px; }
.agent-status { display: flex; align-items: center; gap: 8px; padding: 10px; margin-bottom: 16px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 700; }
.agent-status span, .agent-pulse { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22,124,98,.12); }
.chat-context-cards { display: grid; gap: 8px; }
.context-card { padding: 12px; border: 1px solid var(--line); }
.context-card span { display: block; color: var(--muted); font-size: 10px; }
.context-card strong { display: block; margin-top: 5px; font-size: 13px; }
.goal-card { padding: 13px; margin-top: 10px; color: white; background: #26342e; }
.goal-card span, .goal-card strong { display: block; }
.goal-card span { color: #aebbb5; font-size: 10px; }
.goal-card strong { margin: 5px 0 8px; font-size: 13px; }
.goal-card .text-button { padding: 0; color: #f0d06a; background: transparent; border: 0; }
.agent-capabilities { display: grid; gap: 7px; margin-top: 18px; }
.agent-capabilities > strong { margin-bottom: 3px; font-size: 12px; }
.prompt-chip { min-height: 34px; padding: 0 10px; color: #40534c; background: #f5f8f6; border: 1px solid var(--line); text-align: left; font-size: 12px; }
.prompt-chip:hover { border-color: var(--green); }
.chat-panel { display: grid; grid-template-rows: auto minmax(360px, 1fr) auto auto; min-height: 660px; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.agent-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--green); font-size: 12px; font-weight: 800; }
.xiaoli-face {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 rgba(137, 101, 12, .09);
}
.xiaoli-hair {
  position: absolute;
  left: 16%;
  top: 8%;
  width: 68%;
  height: 27%;
  background: #26342e;
  border-radius: 70% 55% 45% 30%;
  transform: rotate(-5deg);
}
.xiaoli-hair::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 35%;
  width: 26%;
  height: 70%;
  background: #26342e;
  border-radius: 0 70% 50% 40%;
  transform: rotate(18deg);
}
.xiaoli-eye {
  position: absolute;
  top: 47%;
  width: 9%;
  height: 12%;
  background: #26342e;
  border-radius: 50%;
  transform-origin: center;
}
.xiaoli-eye.left { left: 29%; }
.xiaoli-eye.right { right: 29%; }
.xiaoli-smile {
  position: absolute;
  left: 39%;
  top: 65%;
  width: 22%;
  height: 11%;
  border-bottom: 2px solid #26342e;
  border-radius: 50%;
}
.chat-header strong, .chat-header small { display: block; }
.chat-header small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.proactive-message { display: flex; gap: 10px; align-items: center; padding: 11px 18px; color: #495c54; background: var(--yellow-soft); border-bottom: 1px solid #ecdfae; }
.proactive-message span { flex: none; padding: 3px 6px; color: #725b16; background: white; font-size: 9px; font-weight: 800; }
.proactive-message p { margin: 0; font-size: 11px; line-height: 1.5; }
.chat-messages { overflow: auto; padding: 22px; background: #fafbf9; }
.message { max-width: 82%; padding: 12px 14px; margin-bottom: 13px; font-size: 13px; line-height: 1.65; white-space: pre-line; }
.message.agent { background: white; border: 1px solid var(--line); }
.message.user { margin-left: auto; color: white; background: var(--green); }
.message-meta { display: block; margin-bottom: 4px; opacity: .65; font-size: 9px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 18px; border-top: 1px solid var(--line); }
.chat-suggestions button { padding: 7px 10px; color: var(--green); background: white; border: 1px solid #cfe0d8; font-size: 11px; }
.agent-workflow, .agent-receipt { margin: 0 18px 10px; border: 1px solid var(--line); }
.agent-workflow { padding: 13px; background: #f7faf8; }
.workflow-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; }
.workflow-head span { color: var(--green); }
.workflow-reason { margin: -2px 0 10px; color: #53645d; font-size: 10px; line-height: 1.55; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.workflow-step { padding: 8px; color: var(--muted); background: white; border: 1px solid var(--line); font-size: 10px; }
.workflow-step.done { color: var(--green); border-color: #b8d7ca; background: var(--green-soft); }
.tool-call-log { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tool-call-log span { padding: 4px 7px; color: #52625b; background: white; border: 1px solid var(--line); font-size: 9px; }
.agent-receipt { padding: 15px; background: white; border-top: 3px solid var(--green); }
.agent-receipt h3 { margin: 0 0 5px; font-size: 15px; }
.agent-receipt p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.receipt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.receipt-item { padding: 10px; background: var(--canvas); }
.receipt-item span, .receipt-item strong { display: block; }
.receipt-item span { color: var(--muted); font-size: 9px; }
.receipt-item strong { margin-top: 4px; font-size: 11px; }
.receipt-actions { display: flex; gap: 7px; margin-top: 12px; }
.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 14px 18px 18px; }
.chat-composer textarea { min-height: 52px; resize: none; }
.jobs-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.jobs-toolbar h2 { margin: 5px 0 0; font-size: 20px; }
.jobs-filters { display: flex; gap: 8px; }
.jobs-filters select { width: 130px; }
.job-agent-note { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-bottom: 16px; background: var(--green-soft); border-left: 3px solid var(--green); }
.job-agent-note strong, .job-agent-note p { display: block; margin: 0; }
.job-agent-note p { margin-top: 3px; color: #4f655c; font-size: 11px; }
.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.job-card { padding: 20px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.job-card-top { display: flex; justify-content: space-between; gap: 16px; }
.job-card h3 { margin: 4px 0 5px; font-size: 17px; }
.job-company { color: var(--muted); font-size: 12px; }
.job-score { min-width: 58px; height: 58px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-size: 17px; font-weight: 800; }
.job-meta { display: flex; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 11px; }
.job-reason { min-height: 64px; padding: 11px; background: #f6f8f7; font-size: 12px; line-height: 1.6; }
.job-evidence { padding: 10px 11px; margin-top: 8px; border-left: 2px solid var(--yellow); background: #fffcf1; font-size: 10px; line-height: 1.55; }
.job-evidence strong { color: #725b16; }
.job-actions { display: flex; gap: 8px; margin-top: 14px; }
.job-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.workspace-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr); min-height: calc(100vh - 163px); background: white; border: 1px solid var(--line); }
.workspace-input, .workspace-output { padding: 26px; }
.workspace-input { border-right: 1px solid var(--line); }
label { display: grid; gap: 7px; margin-bottom: 16px; color: #43504b; font-size: 12px; font-weight: 650; }
.privacy-note { color: #8b9691; font-size: 11px; text-align: center; }
.image-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.image-input span { color: var(--muted); font-size: 11px; }
.image-input button:disabled, .evidence-actions button:disabled { cursor: not-allowed; opacity: .45; }
.match-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; }
.match-placeholder p { max-width: 420px; color: var(--muted); line-height: 1.7; }
.target-glyph { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; color: var(--coral); background: var(--coral-soft); border-radius: 50%; font-size: 30px; }
.score-strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; padding: 18px; margin-bottom: 22px; color: white; background: var(--green); }
.score-strip div:not(.score-arrow) { text-align: center; }
.score-strip span { display: block; color: #d0e8df; font-size: 11px; }
.score-strip strong { display: block; margin-top: 6px; font-size: 26px; }
.score-arrow { align-self: center; color: var(--yellow); font-size: 24px; }
.requirements-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.matched-list { display: grid; gap: 10px; margin: 10px 0 20px; }
.matched-card { display: grid; grid-template-columns: 1fr 68px; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.matched-card h3 { margin: 0 0 6px; font-size: 14px; }
.matched-score { display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-size: 18px; font-weight: 800; }
.interview-brief { max-width: 1084px; margin: 0 auto 22px; padding: 22px; background: white; border: 1px solid var(--line); border-top: 4px solid var(--yellow); }
.interview-brief-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.interview-brief-head h2 { margin: 5px 0 0; font-size: 19px; }
.interview-skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.interview-skill-grid > section { padding: 15px; background: #f7f9f8; border: 1px solid var(--line); }
.interview-skill-grid h3 { margin: 0 0 12px; font-size: 13px; }
.interview-gap-panel { border-top: 3px solid var(--coral) !important; }
.interview-skill-list { display: grid; gap: 8px; }
.interview-skill-item { padding: 9px 10px; background: white; border: 1px solid var(--line); }
.interview-skill-item header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.interview-skill-item strong { font-size: 12px; }
.skill-state { color: var(--muted); font-size: 9px; }
.skill-state.ready { color: var(--green); }
.skill-state.gap { color: var(--coral); }
.interview-skill-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.interview-question-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.readiness-badge { padding: 6px 9px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.interview-question-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.interview-question { padding: 13px; border: 1px solid var(--line); }
.interview-question strong { display: block; font-size: 12px; line-height: 1.5; }
.interview-question p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.interview-question .answer-tip { padding: 8px; margin-top: 8px; color: #4a5e55; background: var(--green-soft); }
.resume-layout { position: relative; display: grid; grid-template-columns: 300px minmax(500px, 760px); gap: 24px; justify-content: center; }
.resume-controls { padding: 22px; background: white; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
fieldset { padding: 0; margin: 0 0 18px; border: 0; }
legend { margin-bottom: 10px; font-size: 12px; font-weight: 650; }
.checkbox-list { max-height: 260px; overflow: auto; display: grid; gap: 8px; }
.check-row { display: flex; gap: 9px; align-items: flex-start; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; }
.check-row input { width: auto; min-height: auto; margin-top: 2px; }
.resume-paper { min-height: 760px; padding: 48px; background: white; box-shadow: var(--shadow); }
.resume-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 3px solid var(--ink); }
.resume-header p { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.resume-header h1 { margin: 0 0 5px; font-size: 30px; font-weight: 750; }
.resume-header h2 { margin: 0; font-size: 24px; }
.resume-header span { padding: 5px 8px; background: var(--yellow-soft); font-size: 11px; }
.resume-content { padding: 24px 0; }
.resume-empty { padding: 80px 20px; color: var(--muted); text-align: center; }
.resume-section { margin-bottom: 25px; }
.resume-section h3 { margin: 0 0 10px; font-size: 15px; }
.resume-section ul { padding-left: 19px; margin: 0; }
.resume-section li { margin-bottom: 9px; line-height: 1.7; font-size: 13px; }
.source-trace { display: block; margin-top: 7px; color: #7b8781; font-size: 9px; line-height: 1.5; }
.locked-fact { padding: 1px 3px; color: #654f0e; background: var(--yellow-soft); border-bottom: 1px solid #d9bd55; font-weight: 750; }
.resume-assurance { padding: 14px; margin-top: 14px; background: #f6f8f7; border: 1px solid var(--line); border-left: 3px solid var(--yellow); }
.assurance-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; font-size: 11px; }
.assurance-head span { color: #8a6e1e; font-size: 9px; }
.resume-assurance label { display: flex; grid-template-columns: none; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 10px; font-weight: 500; }
.resume-assurance input { width: 15px; height: 15px; margin: 0; }
.resume-assurance.approved { border-left-color: var(--green); background: var(--green-soft); }
.version-compare { padding: 14px; margin-top: 14px; background: #f8faf9; border: 1px solid var(--line); }
.compare-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px; background: white; text-align: center; }
.compare-score span { color: var(--muted); font-size: 9px; }
.compare-score b { display: block; margin-top: 4px; color: var(--green); font-size: 16px; }
.compare-score i { color: var(--yellow); font-style: normal; }
.version-compare p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.resume-footer { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.resume-actions { display: grid; gap: 7px; align-content: start; }
.resume-actions .icon-button:disabled { cursor: not-allowed; opacity: .32; }
.gap-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.warning-panel { border-top: 3px solid var(--coral); }
.diagnosis-list { display: grid; gap: 11px; }
.diagnosis-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.diagnosis-item:first-child { border-top: 0; }
.diagnosis-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; }
.warning-panel .diagnosis-icon { color: var(--coral); background: var(--coral-soft); }
.diagnosis-item strong { font-size: 13px; }
.diagnosis-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.roadmap-panel { margin-top: 18px; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.roadmap-step { position: relative; padding: 18px; border-left: 1px solid var(--line); }
.roadmap-step:first-child { border-left: 0; }
.roadmap-step span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; color: white; background: var(--green); border-radius: 50%; font-size: 12px; }
.roadmap-step h3 { margin: 0 0 7px; font-size: 14px; }
.roadmap-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
dialog { width: min(620px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.large-dialog { width: min(900px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(24, 31, 28, .5); }
#experience-form, #import-form, #resume-import-form { padding: 24px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-header h2 { margin: 3px 0 0; font-size: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.generated-preview { min-height: 74px; padding: 13px; margin-bottom: 16px; color: var(--muted); background: var(--canvas); border: 1px dashed #c7d0cb; border-radius: var(--radius); font-size: 12px; line-height: 1.6; }
.evidence-upload { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.evidence-preview {
  min-height: 82px;
  display: grid;
  align-content: center;
  padding: 12px;
  overflow: hidden;
  background: var(--canvas);
  border: 1px dashed #bcc8c2;
  border-radius: var(--radius);
}
.evidence-preview.has-image { min-height: 150px; background-size: cover; background-position: center; color: white; text-shadow: 0 1px 4px #000; }
.evidence-preview span { font-weight: 700; }
.evidence-preview small { margin-top: 4px; color: inherit; opacity: .78; }
.evidence-actions { display: grid; gap: 7px; }
.ocr-status { color: var(--green); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.segmented-control { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; margin-bottom: 20px; background: #e9eeeb; border-radius: var(--radius); }
.segment { min-height: 36px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; }
.segment.active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(31,41,38,.1); font-weight: 700; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); gap: 22px; }
.resume-import-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: stretch; }
.resume-dropzone { min-height: 260px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed #aebbb4; background: #f5f8f6; text-align: center; }
.resume-dropzone strong { font-size: 17px; }
.resume-dropzone p, .resume-dropzone small { margin: 0; color: var(--muted); }
.source-help { padding: 11px 13px; margin-bottom: 16px; color: #40534c; background: var(--green-soft); border-left: 3px solid var(--green); font-size: 12px; line-height: 1.6; }
.import-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.import-tools span { color: var(--muted); font-size: 11px; }
.import-summary { padding: 18px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); }
.import-summary ul { padding-left: 18px; margin: 16px 0 24px; }
.import-summary li { margin-bottom: 10px; font-size: 12px; line-height: 1.5; }
.source-badge { padding: 9px; color: var(--green); background: white; border: 1px solid #d6e3dc; border-radius: 4px; font-size: 12px; font-weight: 700; }
.mock-question { padding: 14px; margin-bottom: 16px; background: var(--green-soft); border-left: 3px solid var(--green); }
.mock-question span, .mock-question strong { display: block; }
.mock-question span { margin-bottom: 5px; color: var(--green); font-size: 9px; font-weight: 800; }
.mock-question strong { font-size: 13px; line-height: 1.55; }
.mock-score-panel { padding: 14px; margin-bottom: 16px; background: #f7f9f8; border: 1px solid var(--line); }
.mock-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-total strong { color: var(--green); font-size: 25px; }
.mock-dimensions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mock-dimension { padding: 9px 6px; background: white; text-align: center; }
.mock-dimension span, .mock-dimension b { display: block; }
.mock-dimension span { color: var(--muted); font-size: 9px; }
.mock-dimension b { margin-top: 4px; font-size: 13px; }
.mock-feedback { margin: 12px 0 0; color: #4b5d55; font-size: 11px; line-height: 1.6; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; transform: translateY(20px); opacity: 0; padding: 11px 15px; color: white; background: var(--ink); border-radius: var(--radius); transition: .2s ease; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }
.xiaoli-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #26342e;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(22, 66, 53, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.xiaoli-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 66, 53, .34); }
.xiaoli-fab-avatar { width: 48px; height: 48px; animation: xiaoli-breathe 2.8s ease-in-out infinite; }
.xiaoli-fab:hover .xiaoli-eye { animation: xiaoli-blink .7s ease; }
.xiaoli-fab-dot { position: absolute; right: 1px; top: 1px; width: 13px; height: 13px; background: var(--yellow); border: 2px solid white; border-radius: 50%; }
.xiaoli-fab[aria-expanded="true"] { transform: scale(.92); opacity: 0; pointer-events: none; }
.xiaoli-drawer {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 46;
  width: min(400px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto auto;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(26, 45, 37, .24);
  transform: translateY(22px) scale(.96);
  transform-origin: right bottom;
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.xiaoli-drawer.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.xiaoli-drawer-header { display: grid; grid-template-columns: 40px 1fr 38px; gap: 10px; align-items: center; padding: 14px 15px; color: white; background: #26342e; }
.xiaoli-drawer-header .agent-avatar, .chat-header .xiaoli-face { background: var(--yellow); }
.xiaoli-drawer-header strong, .xiaoli-drawer-header small { display: block; }
.xiaoli-drawer-header small { margin-top: 3px; color: #c5d1cb; font-size: 10px; }
.xiaoli-drawer-header .icon-button { color: white; background: transparent; border-color: #526159; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #68d0a7; border-radius: 50%; }
.xiaoli-drawer-context { padding: 9px 14px; color: #596a63; background: var(--yellow-soft); border-bottom: 1px solid #ecdfae; font-size: 10px; line-height: 1.5; }
.xiaoli-drawer-messages { padding: 16px; }
.xiaoli-drawer-messages .message { max-width: 88%; padding: 10px 12px; font-size: 12px; }
.xiaoli-drawer-suggestions { padding: 9px 14px; }
.xiaoli-drawer-composer { padding: 10px 14px 12px; }
.xiaoli-drawer-composer textarea { min-height: 46px; }
.xiaoli-full-link { min-height: 34px; color: var(--green); background: #f7f9f8; border: 0; border-top: 1px solid var(--line); font-size: 10px; }
@keyframes xiaoli-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes xiaoli-blink {
  0%, 35%, 100% { transform: scaleY(1); }
  50%, 65% { transform: scaleY(.12); }
}

@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .workspace-grid, .resume-layout, .chat-layout { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .workspace-input { border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-actions { display: flex; }
  .job-grid { grid-template-columns: 1fr; }
  .interview-skill-grid { grid-template-columns: 1fr; }
  .ability-visual { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; width: 236px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { min-height: 78px; padding: 14px 16px; flex-wrap: wrap; }
  .topbar h1 { font-size: 17px; }
  .top-actions { width: 100%; margin-left: 0; }
  .top-actions #open-import { display: none; }
  .top-actions #load-demo { display: inline-flex; flex: 1; justify-content: center; }
  .top-actions #quick-add { flex: 1; justify-content: center; }
  .view { padding: 18px 14px 30px; }
  .stat-grid, .experience-grid, .gap-grid, .roadmap { grid-template-columns: 1fr; }
  .persona-strip { grid-template-columns: 1fr; }
  .persona-title { display: block; }
  .persona-title > span { display: block; margin-top: 5px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .demo-journey { grid-template-columns: 1fr; padding: 20px 18px 0; }
  .demo-journey > .primary-button { width: 100%; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .journey-steps button:nth-child(2) { border-right: 0; }
  .journey-steps button:nth-child(-n+2) { border-bottom: 1px solid #44514b; }
  .mock-dimensions { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-wrap: wrap; }
  .jobs-toolbar, .jobs-filters { display: grid; grid-template-columns: 1fr; }
  .jobs-filters select { width: 100%; }
  .search-wrap { flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .experience-row { grid-template-columns: 1fr auto; }
  .experience-row .tag-list { display: none; }
  .resume-paper { min-height: 620px; padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .segmented-control { grid-template-columns: 1fr 1fr; }
  .import-layout, .resume-import-grid { grid-template-columns: 1fr; }
  .chat-panel { min-height: 600px; }
  .chat-composer { grid-template-columns: 1fr; }
  .workflow-steps, .receipt-grid { grid-template-columns: 1fr 1fr; }
  .interview-brief-head { align-items: stretch; flex-direction: column; }
  .interview-question-list { grid-template-columns: 1fr; }
  .xiaoli-fab { right: 16px; bottom: 16px; }
  .xiaoli-drawer {
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(78vh, 680px);
    border-radius: 8px 8px 0 0;
    transform-origin: center bottom;
  }
}

@media print {
  body { background: white; }
  .sidebar, .topbar, .resume-controls, .resume-actions, .interview-brief, .xiaoli-fab, .xiaoli-drawer { display: none !important; }
  .app-shell, .main, .view, .resume-layout { display: block !important; }
  .view:not(#resume-view) { display: none !important; }
  #resume-view { padding: 0; }
  .resume-paper { box-shadow: none; min-height: auto; }
}
