:root {
  --brand: #285afa;
  --brand-hover: #1847e8;
  --brand-deep: #0a2cc4;
  --brand-soft: #edf2ff;
  --brand-faint: #f7f9ff;
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8f9fc;
  --heading: #101828;
  --body: #344054;
  --secondary: #667085;
  --weak: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --success: #267a4b;
  --success-soft: #edf7f0;
  --warning: #9a6208;
  --warning-soft: #fff7e4;
  --danger: #c52d45;
  --danger-soft: #fff0f2;
  --product-rail: 220px;
  --header-height: 64px;
  --shadow-float: 0 18px 46px rgba(28, 45, 84, 0.14);
  --shadow-input: 0 10px 28px rgba(24, 47, 99, 0.1);
  color: var(--body);
  background: var(--canvas);
  font-family: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--body);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(40, 90, 250, 0.2);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-app {
  min-height: 100dvh;
}

.global-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 196px;
  gap: 9px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.brand-lockup strong {
  color: var(--brand);
  font-weight: 720;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: var(--brand);
  -webkit-mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 1080 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M231.76,276.2l142.77,46.68c10.22,3.34,18.92,10.28,24.51,19.57l74.34,123.48,46.41-85.4-68.02-124.49L10.2,70.21l373.75,558.99,32.91-60.23-185.1-292.78Z'/%3E%3Cpath fill='black' d='M695.52,629.75L1069.8,70.18l-441.78,186.22-224.33,410.55,136.3,356.87-57.99-332.83c-1.57-9.04.16-18.34,4.87-26.18l194.13-322.53c5.58-9.28,14.28-16.23,24.51-19.57l142.62-46.63-185.17,292.88,32.55,60.79Z'/%3E%3Cpath fill='black' d='M605.3,537.26l-44.49,73.9,32.29,53.71c4.71,7.83,6.44,17.13,4.87,26.16l-57.98,332.78,136.3-356.87-70.99-129.69Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 1080 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M231.76,276.2l142.77,46.68c10.22,3.34,18.92,10.28,24.51,19.57l74.34,123.48,46.41-85.4-68.02-124.49L10.2,70.21l373.75,558.99,32.91-60.23-185.1-292.78Z'/%3E%3Cpath fill='black' d='M695.52,629.75L1069.8,70.18l-441.78,186.22-224.33,410.55,136.3,356.87-57.99-332.83c-1.57-9.04.16-18.34,4.87-26.18l194.13-322.53c5.58-9.28,14.28-16.23,24.51-19.57l142.62-46.63-185.17,292.88,32.55,60.79Z'/%3E%3Cpath fill='black' d='M605.3,537.26l-44.49,73.9,32.29,53.71c4.71,7.83,6.44,17.13,4.87,26.16l-57.98,332.78,136.3-356.87-70.99-129.69Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-switcher {
  position: relative;
}

.global-nav-link,
.creator-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 650;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.global-nav-link svg,
.creator-link svg {
  width: 16px;
  height: 16px;
}

.global-nav-link:hover,
.creator-link:hover {
  color: var(--heading);
  background: var(--surface-muted);
}

.global-nav-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.switcher-chevron {
  width: 13px !important;
  height: 13px !important;
  transition: transform 160ms ease-out;
}

[data-product-menu-toggle][aria-expanded="true"] .switcher-chevron {
  transform: rotate(180deg);
}

.product-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 236px;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.product-menu button {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--body);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-menu button:hover {
  color: var(--brand);
  background: var(--brand-faint);
}

.product-menu button b {
  color: inherit;
  font-size: 12px;
  font-weight: 680;
}

.product-menu button small {
  color: var(--weak);
  font-size: 10.5px;
}

.global-command {
  display: flex;
  align-items: center;
  width: min(34vw, 440px);
  height: 40px;
  gap: 8px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--secondary);
  background: var(--surface);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.global-command:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(40, 90, 250, 0.1);
}

.global-command svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.global-command input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--heading);
  background: transparent;
  font-size: 13px;
}

.global-command input::placeholder {
  color: var(--weak);
}

.global-command kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--weak);
  background: var(--surface-muted);
  font-family: inherit;
  font-size: 11px;
}

.creator-link {
  margin-left: 10px;
}

.header-control {
  display: grid;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  color: var(--secondary);
  background: #fff;
  cursor: pointer;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.header-control:hover {
  color: var(--brand);
  border-color: #bac9fb;
  background: var(--brand-faint);
}

.header-control svg {
  width: 18px;
  height: 18px;
}

.application-shell {
  display: grid;
  grid-template-columns: var(--product-rail) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100dvh - var(--header-height));
  min-height: 0;
  transition: grid-template-columns 180ms ease;
}

.product-rail {
  position: relative;
  z-index: 20;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 16px 12px 12px;
  overflow: visible;
  border-right: 1px solid var(--line);
  background: #fdfefe;
}

.product-heading-row {
  position: static;
  display: flex;
  min-height: 53px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.product-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-height: 48px;
  padding: 4px 8px 13px;
}

.rail-collapse-button {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: -12px;
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--secondary);
  background: #fff;
  box-shadow: 0 4px 12px rgba(28, 45, 84, 0.08);
  cursor: pointer;
}

.rail-collapse-button:hover,
.rail-collapse-button:focus-visible {
  color: var(--brand);
  border-color: #bac9fb;
  background: var(--brand-faint);
  outline: none;
}

.rail-collapse-button svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}

.product-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.product-symbol svg {
  width: 19px;
  height: 19px;
}

.product-heading > span:last-child,
.rail-footer > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.product-heading b,
.rail-footer b {
  overflow: hidden;
  color: var(--heading);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-heading small,
.rail-footer small {
  overflow: hidden;
  color: var(--weak);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-navigation {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  padding: 13px 0 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.rail-group {
  display: grid;
  gap: 3px;
}

.rail-group h2 {
  margin: 9px 9px 4px;
  color: var(--weak);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.rail-link {
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--secondary);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out;
}

.rail-link:hover {
  color: var(--heading);
  background: var(--surface-muted);
}

.rail-link:active {
  transform: translateY(1px);
}

.rail-link.is-active {
  color: var(--brand);
  border-color: #dfe6ff;
  background: var(--brand-soft);
}

.rail-icon {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  place-items: center;
  color: var(--secondary);
  background: #f2f4f7;
}

.rail-link.is-active .rail-icon {
  color: #fff;
  background: var(--brand);
}

.rail-icon svg {
  width: 17px;
  height: 17px;
}

.rail-link > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.rail-link b {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-link small {
  overflow: hidden;
  color: var(--weak);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-link.is-active small {
  color: #6e83c8;
}

.rail-footer {
  display: grid;
  min-height: 54px;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--line);
}

.team-monogram {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 750;
}

.rail-footer button {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  color: var(--secondary);
  background: #fff;
  cursor: pointer;
}

.rail-footer button svg {
  width: 17px;
  height: 17px;
}

.rail-resizer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  touch-action: none;
}

.rail-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  content: "";
  background: transparent;
}

.rail-resizer:hover::after,
.rail-resizer:focus-visible::after,
.prototype-app[data-rail-resizing="true"] .rail-resizer::after {
  background: var(--brand);
}

.rail-resizer:focus-visible {
  outline: none;
}

.prototype-app[data-rail-collapsed="true"] .application-shell {
  grid-template-columns: 64px minmax(0, 1fr);
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-rail {
  padding-inline: 8px;
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-heading {
  justify-content: center;
  padding-inline: 0;
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-heading > span:last-child,
.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-group h2,
.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-link > span:last-child,
.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer > span:nth-child(2),
.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer > button {
  display: none;
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-collapse-button svg {
  transform: rotate(180deg);
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-link {
  grid-template-columns: 32px;
  justify-content: center;
  padding-inline: 0;
}

.prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 0;
}

.prototype-app[data-rail-collapsed="true"] .rail-resizer {
  display: none;
}

.prototype-app[data-rail-resizing="true"] {
  cursor: col-resize;
  user-select: none;
}

.prototype-app[data-rail-resizing="true"] .application-shell {
  transition: none;
}

.mobile-scrim {
  display: none;
}

.page-workspace {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  background-color: var(--canvas);
}

.page-root {
  width: 100%;
  max-width: 1440px;
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 32px 64px;
  outline: 0;
}

.page-root[data-route="workspace"] {
  height: 100%;
  padding-bottom: 22px;
  overflow: hidden;
}

.mobile-pagebar {
  display: none;
}

.page-view {
  min-width: 0;
  animation: page-enter 240ms ease-out both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.page-heading {
  min-width: 0;
  max-width: 760px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.page-eyebrow::before {
  width: 16px;
  height: 2px;
  background: currentColor;
  content: "";
}

.page-heading h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.18;
  text-wrap: balance;
}

.page-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--body);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out, transform 160ms ease-out;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button:hover {
  color: var(--brand);
  border-color: #afc0fb;
  background: var(--brand-faint);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.button.primary:hover {
  color: #fff;
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.text-button {
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.text-button:hover {
  color: var(--brand-deep);
}

.status-chip {
  display: inline-flex;
  height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--secondary);
  background: var(--surface-muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.status-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--weak);
}

.status-chip.is-success {
  color: var(--success);
  border-color: #cde7d4;
  background: var(--success-soft);
}

.status-chip.is-success i {
  background: var(--success);
}

.status-chip.is-warning {
  color: var(--warning);
  border-color: #efdfb8;
  background: var(--warning-soft);
}

.status-chip.is-warning i {
  background: var(--warning);
}

.status-chip.is-danger {
  color: var(--danger);
  border-color: #f1ccd3;
  background: var(--danger-soft);
}

.status-chip.is-danger i {
  background: var(--danger);
}

.status-chip.is-blue {
  color: var(--brand);
  border-color: #d9e2ff;
  background: var(--brand-soft);
}

.status-chip.is-blue i {
  background: var(--brand);
}

.status-chip.is-muted {
  color: var(--secondary);
  background: var(--surface-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.metric-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--line-strong);
  content: "";
}

.metric-card.is-blue::after {
  width: 72px;
  background: var(--brand);
}

.metric-card.is-attention::after {
  width: 64px;
  background: var(--warning);
}

.metric-card > span {
  display: block;
  color: var(--secondary);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--heading);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.metric-card small {
  display: block;
  margin-top: 3px;
  color: var(--weak);
  font-size: 11px;
}

/* AI 对话工作台 */
.chat-page {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-page .page-header {
  margin-bottom: 16px;
}

.chat-workspace {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.role-brief {
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.role-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.role-mark svg {
  width: 20px;
  height: 20px;
}

.role-copy {
  min-width: 0;
}

.role-copy > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--weak);
  font-size: 10.5px;
}

.role-copy > span b {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--warning);
  background: var(--warning-soft);
  font-weight: 650;
}

.role-copy h2 {
  margin: 3px 0 0;
  color: var(--heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role-copy p {
  margin: 1px 0 0;
  color: var(--secondary);
  font-size: 11px;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.stage-strip button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--weak);
  background: transparent;
  cursor: pointer;
}

.stage-strip button:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 18%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.stage-strip button i {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  place-items: center;
  color: var(--secondary);
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.stage-strip button > span {
  display: grid;
  min-width: 0;
  text-align: left;
}

.stage-strip button > span {
  color: inherit;
  font-size: 12px;
  font-weight: 650;
}

.stage-strip button small {
  margin-top: 1px;
  color: var(--weak);
  font-size: 9.5px;
  font-weight: 500;
}

.stage-strip button.is-active {
  color: var(--brand);
}

.stage-strip button.is-active i {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.chat-flow {
  min-height: 0;
  padding: 20px clamp(18px, 5vw, 72px) 24px;
  overflow-y: auto;
  background: #fbfcff;
}

.message {
  display: flex;
  max-width: 780px;
  gap: 11px;
  margin-bottom: 20px;
}

.message > img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid #e2e7f6;
  border-radius: 9px;
  object-fit: cover;
}

.message > div {
  min-width: 0;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.message-meta b {
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
}

.message-meta span {
  color: var(--weak);
  font-size: 10.5px;
}

.message p {
  margin: 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.8;
}

.user-message {
  margin-right: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.user-message > div {
  max-width: 620px;
  padding: 12px 14px;
  border-radius: 10px 10px 2px;
  color: #fff;
  background: var(--brand);
}

.user-message .message-meta {
  justify-content: space-between;
}

.user-message .message-meta b,
.user-message .message-meta span,
.user-message p {
  color: #fff;
}

.user-message .message-meta span {
  opacity: 0.68;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.suggestion-row button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cbd6ff;
  border-radius: 7px;
  color: var(--brand);
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.suggestion-row button:hover {
  background: var(--brand-soft);
}

.consensus-card {
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #dce3f4;
  border-radius: 10px;
  background: #fff;
}

.consensus-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px 0;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
}

.consensus-card > header b {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--warning);
  background: var(--warning-soft);
}

.consensus-card > h3 {
  margin: 4px 13px 10px;
  color: var(--heading);
  font-size: 15px;
}

.consensus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.consensus-grid > div {
  min-width: 0;
  padding: 11px 13px;
}

.consensus-grid > div:not(:last-child) {
  border-right: 1px solid var(--line);
}

.consensus-grid span {
  color: var(--weak);
  font-size: 10px;
}

.consensus-grid p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
}

.consensus-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 9px 12px;
}

.composer {
  padding: 12px clamp(18px, 5vw, 72px) 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.composer textarea {
  width: 100%;
  min-height: 30px;
  max-height: 120px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--heading);
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: var(--weak);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.composer-footer > span {
  color: var(--weak);
  font-size: 10px;
}

.send-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.send-button:hover {
  background: var(--brand-hover);
}

.send-button svg {
  width: 15px;
  height: 15px;
}

.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: typing-pulse 900ms ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 120ms;
}

.typing i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes typing-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* 配置库 */
.page-toolbar,
.asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.segmented-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.segmented-control button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  color: var(--secondary);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.segmented-control button span {
  margin-left: 4px;
  color: var(--weak);
}

.segmented-control button:hover {
  color: var(--heading);
  background: var(--surface-muted);
}

.segmented-control button.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.segmented-control.small {
  min-height: 34px;
}

.segmented-control.small button {
  min-height: 26px;
  padding: 0 9px;
}

.inline-search {
  display: flex;
  width: min(32vw, 300px);
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--weak);
  background: #fff;
}

.inline-search.large {
  width: min(42vw, 420px);
}

.inline-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.inline-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--heading);
  background: transparent;
  font-size: 12px;
}

.compact-metrics .metric-card {
  min-height: 105px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rule-card {
  display: grid;
  min-width: 0;
  min-height: 222px;
  grid-template-rows: auto 1fr auto auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.rule-card:hover,
.rule-card.is-selected {
  border-color: #bcc9fa;
  box-shadow: 0 10px 28px rgba(31, 58, 119, 0.08);
  transform: translateY(-2px);
}

.rule-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rule-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.rule-symbol svg {
  width: 17px;
  height: 17px;
}

.rule-card-copy {
  padding: 13px 0 12px;
}

.rule-card-copy > span {
  color: var(--weak);
  font-size: 10px;
}

.rule-card-copy h2 {
  margin: 3px 0 2px;
  overflow: hidden;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-card-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-card dl > div {
  padding: 10px 0;
}

.rule-card dl > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.rule-card dt {
  color: var(--weak);
  font-size: 9.5px;
}

.rule-card dd {
  margin: 2px 0 0;
  color: var(--body);
  font-size: 11px;
  font-weight: 650;
}

.rule-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  color: var(--weak);
  font-size: 10px;
}

.rule-card > footer button {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  place-items: center;
  color: var(--secondary);
  background: var(--surface-muted);
  cursor: pointer;
}

.rule-card > footer button:hover {
  color: #fff;
  background: var(--brand);
}

.rule-card > footer svg {
  width: 14px;
  height: 14px;
}

.add-rule-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-style: dashed;
  color: var(--secondary);
  cursor: pointer;
}

.add-rule-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 9px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.add-rule-card svg {
  width: 19px;
  height: 19px;
}

.add-rule-card b {
  color: var(--heading);
  font-size: 13px;
}

.add-rule-card small {
  margin-top: 3px;
  color: var(--weak);
  font-size: 10px;
}

.family-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #dde5ff;
  border-radius: 8px;
  background: var(--brand-faint);
}

.family-note span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 9.5px;
  font-weight: 700;
}

.family-note p {
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
}

/* 采集运营 */
.operations-panel,
.recent-assets {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.panel-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-header > div > span,
.report-panel header span {
  color: var(--weak);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.panel-header h2,
.report-panel header h2 {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 11.5px;
}

.data-table th {
  padding: 10px 14px;
  color: var(--weak);
  background: var(--surface-muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
}

.data-table td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  color: var(--body);
  vertical-align: middle;
}

.data-table tbody tr:first-child td {
  border-top: 0;
}

.data-table tbody tr:hover td {
  background: #fbfcff;
}

.data-table td > b {
  display: block;
  color: var(--heading);
  font-size: 11.5px;
  font-weight: 650;
}

.data-table td > small {
  display: block;
  margin-top: 2px;
  color: var(--weak);
  font-size: 9.5px;
}

.progress-cell {
  display: grid;
  min-width: 130px;
  grid-template-columns: minmax(70px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.progress-cell > span {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f5;
}

.progress-cell i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.progress-cell b {
  color: var(--secondary);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.table-action {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--secondary);
  background: #fff;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.table-action:hover {
  color: var(--brand);
  border-color: #b9c7fa;
}

.operations-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.operations-foot > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-icon {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
}

.foot-icon svg {
  width: 16px;
  height: 16px;
}

.operations-foot p {
  display: grid;
  margin: 0;
}

.operations-foot p b {
  color: var(--heading);
  font-size: 11px;
}

.operations-foot p small {
  color: var(--weak);
  font-size: 9.5px;
}

/* 候选人评审 */
.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 0.7fr)) minmax(310px, 1.6fr);
  align-items: stretch;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.review-summary > div {
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 2px;
  padding: 12px 16px;
}

.review-summary > div + div {
  border-left: 1px solid var(--line);
}

.review-summary span {
  color: var(--weak);
  font-size: 10px;
}

.review-summary strong {
  color: var(--heading);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.review-filter {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px !important;
}

.review-filter button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--secondary);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.review-filter button.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.candidate-workbench {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.candidate-list-panel,
.candidate-focus {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.candidate-list-panel > header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.candidate-list-panel > header span {
  color: var(--weak);
  font-size: 9.5px;
}

.candidate-list-panel > header h2 {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 14px;
}

.candidate-list-panel > header label {
  display: flex;
  width: 180px;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--weak);
}

.candidate-list-panel > header label svg {
  width: 14px;
  height: 14px;
}

.candidate-list-panel > header input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.candidate-list {
  display: grid;
}

.candidate-row {
  display: grid;
  min-width: 0;
  min-height: 86px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.candidate-row:last-child {
  border-bottom: 0;
}

.candidate-row:hover {
  background: #fbfcff;
}

.candidate-row.is-selected {
  background: var(--brand-faint);
  box-shadow: inset 3px 0 0 var(--brand);
}

.candidate-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 720;
}

.candidate-row-copy {
  display: grid;
  min-width: 0;
}

.candidate-row-copy b {
  color: var(--heading);
  font-size: 12px;
}

.candidate-row-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--secondary);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-row-copy em {
  margin-top: 4px;
  color: var(--weak);
  font-size: 9px;
  font-style: normal;
}

.candidate-score {
  display: grid;
  justify-items: end;
}

.candidate-score b {
  color: var(--heading);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.candidate-score small {
  color: var(--weak);
  font-size: 9px;
}

.candidate-focus {
  padding: 18px;
}

.candidate-focus-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.candidate-focus-head .candidate-avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.candidate-focus-head > div {
  min-width: 0;
}

.candidate-focus-head > div > span {
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 650;
}

.candidate-focus-head h2 {
  margin: 1px 0 0;
  color: var(--heading);
  font-size: 17px;
}

.candidate-focus-head p {
  margin: 1px 0 0;
  color: var(--secondary);
  font-size: 10.5px;
}

.grade-badge {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 15px;
}

.fit-score {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 6px 12px;
  padding: 14px 0;
}

.fit-score > span {
  color: var(--secondary);
  font-size: 10px;
}

.fit-score strong {
  color: var(--heading);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.fit-score strong small {
  color: var(--weak);
  font-size: 9px;
}

.fit-score > i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf0f5;
}

.fit-score em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.focus-section {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.focus-section h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 11px;
}

.focus-section p {
  margin: 0;
  color: var(--secondary);
  font-size: 10.5px;
  line-height: 1.7;
}

.focus-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-section li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font-size: 10.5px;
}

.focus-section li svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.risk-note {
  margin: 0 -9px;
  padding: 11px 9px;
  border-top: 0;
  border-radius: 8px;
  background: var(--warning-soft);
}

.risk-note h3 {
  color: var(--warning);
}

.focus-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* 分析报告 */
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
}

.report-panel {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.report-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.report-panel header button {
  padding: 0;
  color: var(--brand);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.funnel-chart {
  display: grid;
  gap: 11px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 86px 52px minmax(80px, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.funnel-row span {
  color: var(--secondary);
  font-size: 10.5px;
}

.funnel-row b,
.funnel-row small {
  font-variant-numeric: tabular-nums;
}

.funnel-row b {
  color: var(--heading);
  font-size: 11px;
}

.funnel-row small {
  color: var(--weak);
  font-size: 9.5px;
  text-align: right;
}

.funnel-row > i,
.bar-row > i {
  height: 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf0f5;
}

.funnel-row em,
.bar-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px minmax(70px, 1fr) 44px;
  align-items: center;
  gap: 9px;
}

.bar-row span {
  color: var(--secondary);
  font-size: 10px;
}

.bar-row b {
  color: var(--heading);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.insight-note {
  margin: 18px 0 0;
  padding: 10px 11px;
  border-left: 3px solid var(--brand);
  color: var(--secondary);
  background: var(--brand-faint);
  font-size: 10.5px;
  line-height: 1.65;
}

.role-matrix {
  position: relative;
  min-height: 210px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.role-matrix::before,
.role-matrix::after {
  position: absolute;
  background: var(--line);
  content: "";
}

.role-matrix::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.role-matrix::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.role-matrix > span:not(.matrix-axis) {
  position: absolute;
  z-index: 1;
  padding: 4px 7px;
  border: 1px solid #d8e1ff;
  border-radius: 6px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 9px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.role-matrix > span.is-risk {
  color: var(--danger);
  border-color: #f0ccd3;
  background: var(--danger-soft);
}

.matrix-axis {
  position: absolute;
  z-index: 2;
  color: var(--weak);
  font-size: 8.5px;
}

.matrix-axis.y {
  top: -17px;
  left: 0;
}

.matrix-axis.x {
  right: 0;
  bottom: -19px;
}

.action-panel {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  border-color: var(--brand-deep);
  background: #1434b5;
}

.action-panel > span {
  color: #bcc9ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.action-panel h2 {
  max-width: 480px;
  margin: 7px 0 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.action-panel p {
  max-width: 540px;
  margin: 0 0 16px;
  color: #d7dfff;
  font-size: 11px;
  line-height: 1.7;
}

.action-panel .button.primary {
  color: var(--brand-deep);
  border-color: #fff;
  background: #fff;
}

/* 招聘资产 */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.asset-card {
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease-out, transform 180ms ease-out;
}

.asset-card:hover {
  border-color: #bdcaf8;
  transform: translateY(-2px);
}

.asset-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asset-card header > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.asset-card header > span svg {
  width: 18px;
  height: 18px;
}

.asset-card header button {
  color: var(--weak);
  background: transparent;
  cursor: pointer;
}

.asset-card header button svg {
  width: 17px;
  height: 17px;
}

.asset-card > div {
  padding: 15px 0 14px;
}

.asset-card > div > span {
  color: var(--weak);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.asset-card h2 {
  margin: 2px 0 3px;
  color: var(--heading);
  font-size: 16px;
}

.asset-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 10.5px;
}

.asset-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.asset-card footer b {
  color: var(--brand);
  font-size: 11px;
}

.asset-card footer small {
  color: var(--weak);
  font-size: 9px;
}

.asset-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 42px minmax(0, 1fr) auto 90px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
}

.recent-assets .asset-row:nth-child(2) {
  border-top: 0;
}

.file-type {
  display: grid;
  width: 40px;
  height: 30px;
  border-radius: 6px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 8px;
  font-weight: 750;
}

.asset-row > div {
  display: grid;
}

.asset-row > div b {
  color: var(--heading);
  font-size: 11px;
}

.asset-row > div small {
  color: var(--weak);
  font-size: 9.5px;
}

.asset-row em {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--secondary);
  background: var(--surface-muted);
  font-size: 9px;
  font-style: normal;
}

.asset-row time {
  color: var(--weak);
  font-size: 9px;
  text-align: right;
}

/* 技能超市 */
.skill-feature {
  display: grid;
  min-height: 132px;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--brand-deep);
  border-radius: 11px;
  color: #fff;
  background: #1434b5;
}

.feature-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.feature-symbol svg {
  width: 25px;
  height: 25px;
}

.skill-feature > div:nth-child(2) {
  min-width: 0;
}

.skill-feature > div:nth-child(2) > span {
  color: #b9c8ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.skill-feature h2 {
  margin: 4px 0 5px;
  color: #fff;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.skill-feature p {
  max-width: 660px;
  margin: 0;
  color: #d8e0ff;
  font-size: 10.5px;
  line-height: 1.65;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-meta span {
  display: grid;
  justify-items: end;
}

.feature-meta b {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.feature-meta small {
  color: #b9c8ff;
  font-size: 8.5px;
}

.skill-feature .button.primary {
  color: var(--brand-deep);
  border-color: #fff;
  background: #fff;
}

.skill-toolbar {
  margin-top: 4px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  display: grid;
  min-width: 0;
  min-height: 220px;
  grid-template-rows: auto 1fr auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, transform 180ms ease-out;
}

.skill-card:hover {
  border-color: #bbc8fa;
  box-shadow: 0 10px 28px rgba(31, 58, 119, 0.08);
  transform: translateY(-2px);
}

.skill-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.skill-symbol svg {
  width: 18px;
  height: 18px;
}

.skill-copy {
  padding: 14px 0 16px;
}

.skill-copy > span {
  color: var(--weak);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.skill-copy h2 {
  margin: 4px 0 5px;
  color: var(--heading);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.skill-copy p {
  margin: 0;
  color: var(--secondary);
  font-size: 10.5px;
  line-height: 1.65;
}

.skill-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.skill-card > footer > span {
  color: var(--weak);
  font-size: 9.5px;
}

/* 管理列表 */
.management-panel {
  margin-bottom: 12px;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-cell > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  place-items: center;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 720;
}

.member-cell p {
  display: grid;
  margin: 0;
}

.member-cell p b {
  color: var(--heading);
  font-size: 11px;
}

.member-cell p small {
  color: var(--weak);
  font-size: 9px;
}

.version-label {
  display: inline-flex !important;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--brand-deep) !important;
  background: var(--brand-soft);
  font-size: 9.5px !important;
  font-variant-numeric: tabular-nums;
}

.management-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.management-foot > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.management-foot > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
}

.management-foot > div > span svg {
  width: 16px;
  height: 16px;
}

.management-foot p {
  display: grid;
  margin: 0;
}

.management-foot p b {
  color: var(--heading);
  font-size: 11px;
}

.management-foot p small {
  color: var(--weak);
  font-size: 9.5px;
}

/* 企业控制 */
.service-strip {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 14px 17px;
  border: 1px solid #cfe6d7;
  border-radius: 10px;
  background: var(--success-soft);
}

.service-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
}

.service-pulse {
  width: 10px;
  height: 10px;
  border: 3px solid #bce0c8;
  border-radius: 50%;
  background: var(--success);
  box-sizing: content-box;
}

.service-strip p {
  display: grid;
  margin: 0;
}

.service-strip p b {
  color: var(--heading);
  font-size: 12px;
}

.service-strip p small {
  color: var(--success);
  font-size: 9.5px;
}

.service-stats {
  display: flex;
  gap: 28px;
}

.service-stats span {
  display: grid;
  justify-items: end;
}

.service-stats b {
  color: var(--heading);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.service-stats small {
  color: var(--secondary);
  font-size: 8.5px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.control-card {
  min-width: 0;
  min-height: 205px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.control-card header > span {
  color: var(--weak);
  font-size: 9.5px;
}

.control-card header h2 {
  margin: 3px 0 0;
  color: var(--heading);
  font-size: 17px;
}

.control-card header p {
  margin: 1px 0 0;
  color: var(--secondary);
  font-size: 9.5px;
}

.usage-bars {
  display: flex;
  height: 92px;
  align-items: flex-end;
  gap: 9px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}

.usage-bars i {
  flex: 1;
  min-width: 8px;
  border-radius: 4px 4px 0 0;
  background: #cfd9ff;
}

.usage-bars i.is-current {
  background: var(--brand);
}

.usage-card footer {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--weak);
  font-size: 8px;
}

.feedback-scale {
  height: 8px;
  margin: 24px 0 15px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf0f5;
}

.feedback-scale span {
  display: block;
  height: 100%;
  background: var(--success);
}

.feedback-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-card li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  color: var(--secondary);
  font-size: 10px;
}

.feedback-card li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.feedback-card li i.neutral {
  background: var(--warning);
}

.feedback-card li b {
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

.eval-card > strong {
  display: block;
  margin: 13px 0 8px;
  color: var(--brand);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.eval-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.eval-card > div span {
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--secondary);
  background: var(--surface-muted);
  font-size: 8.5px;
}

.capability-panel {
  margin-bottom: 30px;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 24px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 13px;
  border: 1px solid #ced9ff;
  border-radius: 8px;
  color: var(--brand-deep);
  background: #fff;
  box-shadow: var(--shadow-float);
  font-size: 11px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .page-root {
    padding-right: 24px;
    padding-left: 24px;
  }

  .rule-grid,
  .asset-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-workbench {
    grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1.1fr);
  }

  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eval-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .creator-link {
    width: 40px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .review-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-filter {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }
}

@media (max-width: 920px) {
  .global-header {
    padding: 0 14px;
  }

  .brand-lockup {
    min-width: 150px;
  }

  .global-nav {
    display: flex;
  }

  .global-nav > .global-nav-link {
    display: none;
  }

  .global-command {
    width: min(48vw, 420px);
  }

  .application-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .prototype-app[data-rail-collapsed="true"] .application-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-rail {
    position: fixed;
    z-index: 45;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(300px, 84vw);
    height: auto;
    box-shadow: var(--shadow-float);
    transform: translateX(-105%);
    transition: transform 220ms ease-out;
  }

  .rail-collapse-button,
  .rail-resizer {
    display: none;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-rail {
    padding: 16px 12px 12px;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-heading {
    justify-content: flex-start;
    padding: 4px 8px 13px;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .product-heading > span:last-child,
  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-link > span:last-child,
  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer > span:nth-child(2),
  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer > button {
    display: grid;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-group h2 {
    display: block;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-link {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-content: initial;
    padding: 6px 8px;
  }

  .prototype-app:is([data-rail-collapsed="true"], [data-rail-compact="true"]) .rail-footer {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    justify-items: initial;
    padding: 10px 8px 0;
  }

  .prototype-app[data-rail-open="true"] .product-rail {
    transform: translateX(0);
  }

  .mobile-scrim {
    position: fixed;
    z-index: 40;
    inset: var(--header-height) 0 0;
    display: block;
    background: rgba(15, 23, 42, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
  }

  .prototype-app[data-rail-open="true"] .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .page-workspace {
    position: relative;
  }

  .mobile-pagebar {
    position: sticky;
    z-index: 12;
    top: 0;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-pagebar > span {
    color: var(--heading);
    font-size: 12px;
    font-weight: 680;
  }

  .mobile-rail-button {
    display: grid;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    place-items: center;
    color: var(--secondary);
    background: #fff;
    cursor: pointer;
  }

  .mobile-rail-button svg {
    width: 16px;
    height: 16px;
  }

  .page-root {
    min-height: calc(100% - 46px);
    padding: 22px 18px 54px;
  }

  .page-root[data-route="workspace"] {
    height: calc(100% - 46px);
    padding-bottom: 18px;
  }

  .candidate-workbench {
    grid-template-columns: 1fr;
  }

  .candidate-focus {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .brand-lockup {
    min-width: auto;
    margin-right: 12px;
  }

  .brand-lockup > span:not(.brand-mark) {
    display: none;
  }

  .product-switcher .global-nav-link {
    padding-right: 8px;
    padding-left: 8px;
  }

  .global-command {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .global-command kbd,
  .creator-link {
    display: none;
  }

  .page-root {
    padding: 18px 14px 48px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-toolbar,
  .asset-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search,
  .inline-search.large {
    width: 100%;
  }

  .segmented-control {
    max-width: 100%;
    overflow-x: auto;
  }

  .metric-grid,
  .rule-grid,
  .asset-grid,
  .skill-grid,
  .control-grid,
  .candidate-workbench,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .skill-feature {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 16px;
  }

  .feature-symbol {
    width: 46px;
    height: 46px;
  }

  .feature-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .feature-meta span {
    justify-items: start;
  }

  .skill-feature .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .eval-card {
    grid-column: auto;
  }

  .metric-card {
    min-height: 98px;
  }

  .role-brief {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px 12px;
  }

  .role-mark {
    width: 38px;
    height: 38px;
  }

  .role-brief > .text-button {
    display: none;
  }

  .role-copy h2 {
    font-size: 14px;
  }

  .stage-strip {
    padding: 0 9px;
    overflow-x: auto;
  }

  .stage-strip button {
    min-width: 88px;
  }

  .stage-strip button:not(:last-child)::after,
  .stage-strip button small {
    display: none;
  }

  .chat-flow {
    padding: 16px 12px 20px;
  }

  .composer {
    padding: 10px 12px 12px;
  }

  .consensus-grid {
    grid-template-columns: 1fr;
  }

  .consensus-grid > div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-summary {
    grid-template-columns: 1fr 1fr;
  }

  .review-summary > div {
    min-height: 64px;
  }

  .review-summary > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .review-filter {
    grid-column: 1 / -1;
  }

  .candidate-list-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-list-panel > header label {
    width: 100%;
  }

  .service-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-stats {
    width: 100%;
    justify-content: space-between;
  }

  .service-stats span {
    justify-items: start;
  }

  .asset-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .asset-row time {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-control {
    display: none;
  }

  .global-command input::placeholder {
    color: transparent;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    padding: 13px;
  }

  .metric-card strong {
    font-size: 22px;
  }

  .composer-footer > span {
    display: none;
  }

  .composer-footer {
    justify-content: flex-end;
  }

  .candidate-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding-right: 10px;
    padding-left: 10px;
  }

  .candidate-avatar {
    width: 34px;
    height: 34px;
  }

  .funnel-row {
    grid-template-columns: 78px 42px minmax(60px, 1fr);
  }

  .funnel-row small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-shell,
  .rail-collapse-button svg {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
