:root {
  --ink: #14171f;
  --muted: #808799;
  --soft-muted: #99a1b2;
  --line: #e4e8f0;
  --selected: #dce8ff;
  --sidebar: #ffffff;
  --metric: #f2f6ff;
  --blue: #1f7cff;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; }
body { min-width: 1024px; min-height: 720px; overflow: hidden; overflow: clip; background: #fff; }
button, textarea { font: inherit; }
button { color: inherit; }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 720px;
  overflow: hidden;
  overflow: clip;
  background: #fff;
}

.sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 205px;
  border: 1px solid #eaeaea;
  background: rgba(255,255,255,.96);
}

.brand {
  position: absolute;
  top: 26px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 6;
}
.brand .logo { width: 145px; height: 27px; object-fit: contain; object-position: left center; }

.side-content { position: absolute; left: 13px; top: 73px; width: 168px; }
.nav-stack { display: flex; flex-direction: column; gap: 6px; }
.nav-item, .history-item {
  appearance: none;
  width: 168px;
  height: 34px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  font-weight: 400;
  transition: background .18s ease, transform .18s ease;
}
.nav-item:hover, .history-item:hover { background: #f2f5fa; }
.nav-item:hover { font-weight: 600; }
.nav-item.selected, .history-item.selected { background: var(--selected); }
.nav-item.selected { font-weight: 600; }
.history-item.selected { font-weight: 600; }
.nav-item img { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-item[data-toast^="异动归因"] img { transform: scale(1.16); transform-origin: center; }
.nav-item span { font-size: 14px; line-height: 20px; }
.section-label { height: 28px; padding: 8px 8px 0; color: var(--muted); font-size: 12px; }
.history { margin-top: 6px; }
.history-heading { height: 40px; padding: 14px 8px 6px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.history-heading img { width: 14px; height: 14px; }
.history-item { position: relative; font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: block; }
.history-item.selected::after { content: ""; position: absolute; right: 11px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: #3989ff; }

.header {
  position: absolute;
  left: 205px;
  right: 0;
  top: 0;
  height: 65px;
  z-index: 3;
  background: #fff;
}
.page-title { position: absolute; left: 31px; top: 26px; font-size: 16px; font-weight: 700; }
.utilities { position: absolute; right: 18px; top: 21px; display: flex; align-items: center; gap: 14px; }
.utilities button { width: 20px; height: 26px; padding: 3px 0; border: 0; background: transparent; cursor: pointer; opacity: .82; transition: opacity .2s, transform .2s; }
.utilities button:hover { opacity: 1; }
.utilities img { width: 20px; height: 20px; display: block; }
.utilities .avatar-btn { width: 26px; height: 26px; padding: 0; }
.utilities .avatar-btn img { width: 26px; height: 26px; }

.home-stage { position: absolute; inset: 65px 0 0 205px; }
.home-layout { position: absolute; top: calc(50% - 32.5px); left: 0; right: 0; height: 515px; transform: translateY(-50%); }
.hero { position: absolute; top: 0; left: 50%; width: 786px; height: 301px; transform: translateX(-50%); }
.hero-title { position: absolute; top: 10px; left: 239px; margin: 0; font-size: 24px; line-height: 34px; font-weight: 700; white-space: nowrap; }
.hero-title .brand-gradient { background: linear-gradient(90deg,#0971fa,#37c8df); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-mascot { position: absolute; z-index: 5; width: 158px; height: 158px; object-fit: contain; left: 566px; top: 23px; transform: rotate(10.84deg); filter: drop-shadow(0 5px 9px rgba(18,107,180,.12)); pointer-events: none; }
.aurora {
  position: absolute;
  left: 190px;
  top: 73px;
  width: 530px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, rgb(248,250,253) 0%, rgb(251,253,254) 54%, rgb(255,255,255) 100%);
  background-size: 190% 100%;
  background-position: 0% 50%;
  animation: aurora-palette-flow 4.8s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.aurora::before {
  content: "";
  position: absolute;
  inset: -24px -78px -14px;
  border-radius: inherit;
  background: linear-gradient(148.544402deg,
    rgba(87,166,255,0) 6.8966%,
    rgba(87,166,255,0) 27.586%,
    rgba(87,166,255,.15) 37.069%,
    rgba(84,214,250,.20) 46.552%,
    rgba(110,224,189,.18) 56.034%,
    rgba(255,186,158,.14) 65.517%,
    rgba(255,186,158,0) 75.862%);
  filter: blur(11px) saturate(124%);
  opacity: .96;
  transform: translate3d(-110px,6px,0) rotate(-2deg) scale(1.06);
  transform-origin: center;
  animation: aurora-drift-primary 4.6s cubic-bezier(.42,.05,.58,.95) infinite alternate;
  will-change: transform;
}
.aurora::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -30px -86px -16px;
  pointer-events: none;
  background: linear-gradient(26.118538deg,
    rgba(255,255,255,0) 8.4746%,
    rgba(255,255,255,0) 44.068%,
    rgba(255,255,255,.42) 55.932%,
    rgba(255,255,255,0) 69.492%);
  filter: blur(14px) saturate(120%);
  opacity: .90;
  transform: translate3d(92px,-5px,0) rotate(2deg) scale(1.05);
  transform-origin: center;
  animation: aurora-drift-secondary 6s cubic-bezier(.42,0,.58,1) infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift-primary {
  0% { transform: translate3d(-110px,6px,0) rotate(-2deg) scale(1.06); }
  46% { transform: translate3d(-4px,-6px,0) rotate(1deg) scale(1.13); }
  100% { transform: translate3d(100px,4px,0) rotate(3deg) scale(1.07); }
}
@keyframes aurora-drift-secondary {
  0% { transform: translate3d(92px,-5px,0) rotate(2deg) scale(1.05); }
  54% { transform: translate3d(-4px,7px,0) rotate(-1deg) scale(1.12); }
  100% { transform: translate3d(-90px,-3px,0) rotate(-3deg) scale(1.07); }
}
@keyframes aurora-palette-flow {
  0% { background-position: 0% 50%; }
  46% { background-position: 58% 44%; }
  100% { background-position: 100% 52%; }
}
.prompt-card {
  position: absolute;
  left: 37px;
  top: 114px;
  width: 712px;
  height: 124px;
  border: 1px solid rgba(225,231,241,.72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(250,253,255,.22) 0%, rgba(255,255,255,.56) 34%, rgba(255,255,255,.90) 58%, rgba(255,255,255,.98) 100%);
  box-shadow: 0 2px 28px 9px rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
  backdrop-filter: blur(18px) saturate(126%);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.prompt-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 48px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.25)),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.10) 52%, rgba(255,255,255,.03));
  border-bottom: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52);
  -webkit-backdrop-filter: blur(14px) saturate(132%);
  backdrop-filter: blur(14px) saturate(132%);
  opacity: 1;
}
.prompt-card:focus-within { border-color: #b9d8ff; box-shadow: 0 10px 32px rgba(58,123,213,.12); }
.prompt-input { position: absolute; left: 27px; right: 58px; top: 13px; height: 48px; border: 0; outline: 0; resize: none; background: transparent; color: #4a5261; font-size: 15px; line-height: 24px; padding: 4px 0; }
.prompt-card.has-value .prompt-input { color: #0d0f14; }
.prompt-suggestion { position: absolute; z-index: 1; left: 27px; top: 17px; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 90px); color: #7a8291; font-size: 15px; line-height: 21px; pointer-events: none; opacity: 1; transform: translateY(0); transition: opacity .16s ease, transform .16s ease; }
.prompt-suggestion.hidden, .prompt-card.has-value .prompt-suggestion { opacity: 0; transform: translateY(-2px); }
.suggestion-text { display: block; white-space: nowrap; will-change: opacity, filter, transform; }
.suggestion-text.leaving { animation: suggestion-blur-out .33s cubic-bezier(.4,0,.6,1) forwards; }
.suggestion-text.arriving { animation: suggestion-blur-in .52s cubic-bezier(.2,.7,.2,1) both; }
.shortcut { flex: 0 0 auto; padding: 2px 5px; border-radius: 4px; background: #f0f2fa; color: #8c94a6; font-size: 10px; line-height: 14px; }
@keyframes suggestion-blur-out { to { opacity: 0; filter: blur(7px); transform: translateX(-7px) scale(.985); } }
@keyframes suggestion-blur-in { from { opacity: 0; filter: blur(8px); transform: translateX(8px) scale(.985); } to { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); } }
.composer-tools { position: absolute; left: 27px; bottom: 11px; display: flex; align-items: center; height: 26px; gap: 9px; }
.plus { font-size: 24px; font-weight: 300; line-height: 24px; }
.divider { width: 1px; height: 10px; background: #c8ced9; }
.skill-trigger { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; background: transparent; font-size: 13px; cursor: pointer; }
.skill-trigger img { width: 18px; height: 18px; }
.skill-trigger .tiny-chevron { width: 12px; height: 12px; transform: rotate(-90deg); }
.send-btn { position: absolute; right: 12px; bottom: 7px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s, filter .2s; }
.send-btn:hover { filter: brightness(.96); }
.send-btn:disabled { cursor: default; pointer-events: none; filter: none; }
.send-btn img { width: 30px; height: 30px; }
.send-btn::after { content: "↑"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: Arial, sans-serif; font-size: 17px; line-height: 30px; opacity: 0; transform: translateY(2px); transition: opacity .18s ease, transform .18s ease; }
.send-btn.is-ready { background: linear-gradient(135deg, #59b8ff 0%, #3478ff 52%, #5b63f3 100%); box-shadow: none; cursor: pointer; }
.send-btn.is-ready img { opacity: 0; }
.send-btn.is-ready::after { opacity: 1; transform: translateY(0); }
.send-btn.is-ready:hover { background: linear-gradient(135deg, #59b8ff 0%, #3478ff 52%, #5b63f3 100%); filter: brightness(.98); box-shadow: none; }
.context-actions { position: absolute; left: 55px; top: 80px; display: flex; gap: 14px; }
.context-actions button { height: 34px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 17px; box-shadow: none; cursor: pointer; font-size: 14px; line-height: 20px; white-space: nowrap; flex-shrink: 0; transition: background .18s, box-shadow .18s; }
.context-actions button:nth-child(1) { width: 100px; }
.context-actions button:nth-child(2) { width: 114px; }
.context-actions button:hover { background: rgba(255,255,255,.36); }
.context-actions button.selected { padding-left: 10px; border: 1px solid rgba(20,23,31,.08); background: #fff; color: #2f333b; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px rgba(20,23,31,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.context-actions button.selected img { display: block; }
.context-actions button.selected::before { content: none; }
.context-actions img { width: 16px; height: 16px; }
.pills { position: absolute; left: 170px; top: 267px; display: flex; gap: 12px; }
.pill { height: 34px; padding: 8px 12px 8px 14px; border-radius: 17px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pill:hover { border-color: #a8c8ff; box-shadow: 0 5px 14px rgba(31,124,255,.08); }
.pill.active { border-color: #8bbaff; background: #fff; box-shadow: 0 0 0 1px rgba(31,124,255,.05), 0 5px 14px rgba(31,124,255,.08); color: #0d0f14; }
.pill img:first-child { width: 16px; height: 16px; }
.pill[data-pill="房产"] img:first-child { box-sizing: border-box; padding: 1.5px; }
.pill img:last-child { width: 12px; height: 12px; }
.recommendations { position: absolute; top: 393px; left: 50%; width: 700px; transform: translateX(-50%); }
.recommendation-head { display: flex; align-items: center; gap: 15px; height: 18px; }
.recommendation-head strong { font-size: 13px; font-weight: 600; }
.refresh-btn { border: 0; background: transparent; color: #596170; font-size: 12px; cursor: pointer; padding: 0; }
.refresh-btn:hover { color: var(--blue); }
.question-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.question { height: 28px; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; cursor: pointer; font-size: 13px; text-align: left; transition: color .18s, transform .18s; white-space: nowrap; }
.question:hover, .question:focus-visible, .question:active, .question.selected { color: var(--blue); }
.question-icon { width: 18px; height: 18px; flex: 0 0 18px; background-color: currentColor; -webkit-mask: url('./assets/question.svg') center / contain no-repeat; mask: url('./assets/question.svg') center / contain no-repeat; transition: background-color .18s; }

.chat-stage { --content-anchor-top: max(134px, calc(50% - 170.5px)); position: absolute; inset: 65px 0 0 205px; overflow: hidden; }
.analysis-layout { position: absolute; left: 50%; top: 50%; width: 1075px; height: 627px; transform: translate(-50%, -50%); transform-origin: center; }
.analysis-stage > .user-thread { left: calc(50% + 41.5px); top: max(0px, calc(50% - 313.5px)); }
.analysis-stage > .progress-card { left: calc(50% - 350.5px); top: var(--content-anchor-top); transition: opacity .3s ease; }
.progress-card.finishing { opacity: 0; }
.analysis-stage > .bottom-composer { left: calc(50% - 350.5px); bottom: calc(47px + clamp(20px, 5vh, 40px)); }
.result-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none; }
.result-scroll::-webkit-scrollbar { display: none; }
.result-scroll-space { width: 1px; height: calc(100vh - 65px + 220px); pointer-events: none; }
.result-scroll .result-wrap { top: 212px; }
.user-thread { position: absolute; top: 59px; left: 479px; width: 519px; }
.result-stage { --result-edge: 47px; --result-lift: clamp(20px, 5vh, 40px); }
.result-stage .user-thread { left: calc(50% + 41.5px); top: calc(var(--result-edge) - var(--result-lift)); }
.result-stage .result-scroll .result-wrap { left: calc(50% - 350.5px); top: var(--content-anchor-top); }
.result-stage .bottom-composer { left: calc(50% - 350.5px); bottom: calc(47px + var(--result-lift)); }
.inline-result-stage .result-scroll .user-thread { left: calc(50% + 41.5px); top: max(0px, calc(50% - 313.5px)); }
.inline-result-stage .result-scroll .result-wrap { left: calc(50% - 350.5px); top: var(--content-anchor-top); }
.result-stage::before { content: ""; position: absolute; z-index: 4; left: calc(50% - 350.5px); bottom: calc(47px + var(--result-lift)); width: 690px; height: 100px; background: #fff; pointer-events: none; }
.result-stage::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: calc(47px + var(--result-lift)); background: #fff; pointer-events: none; }
.user-avatar { position: absolute; left: 323px; top: 3px; width: 40px; height: 40px; object-fit: contain; }
.attachment { position: absolute; top: 6px; left: auto; right: 219px; height: 36px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; color: #788091; font-size: 15px; background: #fff; }
.attachment img { width: 16px; height: 16px; }
.user-bubble { position: absolute; left: auto; right: 219px; top: 46px; width: max-content; height: 42px; padding: 12px 20px; background: #edf5ff; border-radius: 12px; font-size: 15px; text-align: center; }
.assistant-avatar { position: absolute; z-index: 2; left: calc(50% - 411.5px); top: calc(var(--content-anchor-top) - 1px); width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.08)); }

@property --progress-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.progress-card { --progress-border-angle: 0deg; position: absolute; left: 187px; top: 193px; width: 607px; border: 2px solid transparent; border-radius: 20px; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--progress-border-angle), #8dccff 0deg, #b7dcff 72deg, #dfe6f2 145deg, #d9e5f5 210deg, #8fe9d8 286deg, #93d8ff 330deg, #8dccff 360deg) border-box; overflow: hidden; animation: progress-border-flow 4.5s linear infinite; transition: height .42s cubic-bezier(.2,.8,.2,1), border-radius .42s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.progress-card.expanded { height: 339px; box-shadow: 0 10px 28px rgba(80,157,205,.055); }
.progress-card.collapsed { height: 70px; border-radius: 16px; box-shadow: 0 6px 20px rgba(80,138,196,.05); }
@keyframes progress-border-flow { to { --progress-border-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .progress-card { animation: none; } }
.progress-summary { position: relative; height: 70px; padding: 11px 30px; }
.progress-summary h2 { margin: 0; height: 26px; font-size: 16px; line-height: 24px; }
.progress-summary p { margin: 0; color: var(--soft-muted); font-size: 12px; line-height: 18px; }
.collapse-btn { position: absolute; right: 19px; top: 11px; height: 28px; min-width: 50px; padding: 5px 8px 5px 12px; display: flex; align-items: center; gap: 4px; border: 1px solid #e0e5f0; border-radius: 9px; background: #fff; font-size: 12px; cursor: pointer; transition: background .2s; }
.collapse-btn:hover { background: #f7f9fc; }
.collapse-btn img { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .35s; }
.collapsed .collapse-btn { min-width: 31px; width: 31px; border: 0; right: 4px; top: 7px; padding: 6px; }
.collapsed .collapse-btn span { display: none; }
.collapsed .collapse-btn img { transform: rotate(0); width: 19px; height: 19px; }
.progress-content { margin: 0 22px 0 30px; padding: 8px 8px 14px 0; border-top: 1px solid var(--line); opacity: 1; transition: opacity .18s; }
.progress-card.expanded .progress-content { height: calc(100% - 70px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; touch-action: pan-y; }
.progress-content:focus-visible { outline: 2px solid rgba(31,124,255,.22); outline-offset: -2px; border-radius: 0 0 12px 12px; }
.progress-content::-webkit-scrollbar { width: 5px; }
.progress-content::-webkit-scrollbar-track { background: transparent; }
.progress-content::-webkit-scrollbar-thumb { border-radius: 999px; background: #d7dfec; }
.progress-content::-webkit-scrollbar-thumb:hover { background: #bdc9dc; }
.collapsed .progress-content { opacity: 0; pointer-events: none; }
.steps { position: relative; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 6px; top: 8px; width: 1px; height: 176px; background: #dbe3f0; }
.step { position: relative; min-height: 18px; padding-left: 28px; font-size: 13px; line-height: 18px; color: #6e7585; }
.step img { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; z-index: 1; }
.step.done { color: var(--ink); }
.step.active { min-height: 36px; color: var(--ink); font-weight: 600; }
.step small { display: block; color: var(--soft-muted); font-size: 11px; line-height: 16px; font-weight: 400; }
.active-dot { animation: active-pulse 1.4s ease-in-out infinite; }
@keyframes active-pulse { 0%,100% { filter: drop-shadow(0 0 0 rgba(31,124,255,0)); } 50% { filter: drop-shadow(0 0 5px rgba(31,124,255,.65)); } }

.bottom-composer { position: absolute; z-index: 5; left: 187px; bottom: 47px; width: 690px; height: 100px; border: 1px solid var(--line); border-radius: 17px; background: #fff; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.bottom-composer:focus-within { border-color: #b9d8ff; box-shadow: 0 8px 24px rgba(31,124,255,.08); }
.bottom-composer textarea { position: absolute; left: 19px; top: 11px; right: 54px; height: 41px; border: 0; outline: 0; resize: none; background: transparent; font-size: 14px; line-height: 22px; color: #596170; }
.bottom-composer textarea::placeholder { color: #8c919e; }
.bottom-composer .composer-tools { left: 19px; bottom: 10px; }
.bottom-composer .send-btn { bottom: 9px; }

.result-wrap { position: absolute; left: 123px; top: -7px; width: 598px; opacity: 0; animation: result-rise .35s .08s ease forwards; }
.result-wrap.brief-result { top: 212px; }
@keyframes result-rise { to { opacity: 1; } }
.result-avatar { width: 40px; height: 40px; margin: 3px; object-fit: contain; flex: 0 0 40px; }
.result-content { width: 598px; }
.elapsed { height: 30px; padding-top: 1px; border-bottom: 1px solid var(--line); color: var(--soft-muted); font-size: 15px; line-height: 18px; }
.report { padding-top: 12px; }
.report h2 { margin: 0; font-size: 17px; line-height: 27px; }
.conclusion { display: flex; align-items: center; gap: 6px; margin: 4px 0 15px 2px; font-size: 13px; line-height: 19px; opacity: .76; }
.conclusion-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.conclusion-icon img { display: block; width: 14px; height: 14px; }
.conclusion-icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: Arial, sans-serif; font-size: 9px; line-height: 1; font-weight: 700; }
.metrics { display: flex; gap: 20px; }
.metric { width: 186px; height: 62px; padding: 9px 14px; border-radius: 12px; background: var(--metric); }
.metric-label { color: #737a8a; opacity: .62; font-size: 12px; line-height: 18px; }
.metric-row { position: relative; top: 4px; display: flex; align-items: center; gap: 8px; height: 21px; }
.metric-value { font-size: 18px; line-height: 18px; font-weight: 700; }
.delta { font-size: 11px; font-weight: 500; white-space: nowrap; }
.delta.good { color: #14ad6b; }
.delta.warn { color: #ff6e12; }
.report-copy { padding-top: 14px; color: #14171f; font-size: 14px; line-height: 24px; }
.report-copy section { margin-bottom: 7px; }
.report-copy h3 { margin: 0 0 3px; font-size: 16px; line-height: 25px; }
.report-copy p, .report-copy ul { margin: 0; color: #14171f; opacity: 1; }
.report-copy ul { padding-left: 21px; }
.report-copy li { margin: 0; }
.disclaimer { color: #abb0bd; font-size: 11px; line-height: 17px; margin-top: 6px; }
.result-actions { display: flex; align-items: center; gap: 4px; height: 28px; margin-top: 4px; }
.action-btn { width: 28px; height: 28px; padding: 6px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; transition: background .18s, transform .18s; }
.action-btn:hover { background: #f1f4f9; }
.action-btn img { width: 16px; height: 16px; display: block; }
.action-btn.download img { box-sizing: border-box; padding: 1px; transform: rotate(180deg) scale(.9); transform-origin: center; }
.result-actions .action-btn:nth-child(3) img { width: 17px; height: 17px; }
.action-btn.liked { background: #eaf2ff; }
.jump-btn { position: absolute; z-index: 6; left: calc(50% - 24.5px); top: calc(444px - var(--result-lift, 0px)); width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 4px 10px -2px rgba(0,0,0,.22); cursor: pointer; opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.jump-btn.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.jump-btn img { width: 20px; height: 20px; }

.skill-popover { position: absolute; left: 24px; bottom: 42px; width: 178px; padding: 8px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(23,35,58,.12); animation: pop .2s ease; z-index: 10; }
.skill-popover button { width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; text-align: left; font-size: 13px; cursor: pointer; }
.skill-popover button:hover { background: #f2f6ff; }
@keyframes pop { from { opacity: 0; transform: translateY(5px) scale(.98); } }

.demo-controller { position: fixed; right: 20px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(218,224,235,.9); border-radius: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(20,30,50,.10); opacity: 0; transition: opacity .2s; }
.demo-controller:hover { opacity: 1; }
.demo-controller span { padding: 0 7px; color: #7b8496; font-size: 11px; }
.demo-controller button { border: 0; border-radius: 8px; background: transparent; padding: 6px 9px; font-size: 12px; cursor: pointer; }
.demo-controller button:hover, .demo-controller button.active { background: #edf4ff; color: #176ff2; }
@media (prefers-reduced-motion: reduce) {
  .aurora, .aurora::before, .aurora::after, .prompt-card::before, .suggestion-text { animation: none; }
}

@media (max-height: 760px) {
  body, .screen { min-height: 100%; }
  .progress-card.expanded { height: 300px; }
  .bottom-composer { bottom: 40px; }
  .analysis-stage > .bottom-composer { bottom: calc(40px + clamp(20px, 5vh, 40px)); }
  .result-stage .bottom-composer { bottom: calc(40px + var(--result-lift)); }
  .result-stage::before { bottom: calc(40px + var(--result-lift)); }
  .result-stage::after { height: calc(40px + var(--result-lift)); }
  .jump-btn { top: calc(406px - var(--result-lift, 0px)); }
  .result-wrap.brief-result { top: 150px; }
  .result-scroll .result-wrap { top: 150px; }
  .result-stage { --result-edge: 40px; }
  .result-stage .result-scroll .result-wrap { top: var(--content-anchor-top); }
  .result-scroll-space { height: calc(100vh - 65px + 290px); }
}

@media (max-width: 1200px) {
  .analysis-layout { transform: translate(-50%, -50%) scale(.84); }
}

@media (max-width: 1080px) {
  .analysis-layout { transform: translate(-50%, -50%) scale(.75); }
}
