/* ══════════════════════════════════════════════════════════════════════
   XHS V3.0 prototype surface (hero / card / kpi / grid / chart / table).
   Ported 1:1 from prototype assets/app.css, scoped under .xhs-v3 so it
   never collides with the shared styles.css (.hero / .empty / .btn …).
   Tokens reused from shell/tokens.css (MAN YI palette, light + dark).
   ══════════════════════════════════════════════════════════════════════ */

.xhs-v3 { min-width: 0; }

/* ── Buttons ── */
.xhs-v3 .btn {
  height: 38px; padding: 0 13px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); border-radius: 9px;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; transition: 0.18s; white-space: nowrap;
  font-size: 13px;
}
.xhs-v3 .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.xhs-v3 .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.xhs-v3 .btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.xhs-v3 .btn-tech { background: var(--tech); border-color: var(--tech); color: #fff; }
.xhs-v3 .btn-ghost { background: transparent; }
.xhs-v3 .btn-danger { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.xhs-v3 .btn-sm { height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
.xhs-v3 .btn-lg { height: 44px; padding: 0 20px; }
.xhs-v3 .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ── Grid / card ── */
.xhs-v3 .grid { display: grid; gap: 12px; min-width: 0; }
.xhs-v3 .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xhs-v3 .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xhs-v3 .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xhs-v3 .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xhs-v3 .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: none; min-width: 0;
}
.xhs-v3 .card:hover { border-color: var(--line-strong); }
.xhs-v3 .card.clickable { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.xhs-v3 .card.clickable:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.xhs-v3 .card-pad { padding: 16px; }
.xhs-v3 .card-lg { padding: 18px; }
.xhs-v3 .card-flat { box-shadow: none; }
.xhs-v3 .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.xhs-v3 .card-title { font-size: 15px; font-weight: 800; margin: 0; }
.xhs-v3 .card-note { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.xhs-v3 .card-actions { display: flex; gap: 8px; }

/* ── KPI ── */
.xhs-v3 .kpi { padding: 14px; position: relative; overflow: hidden; }
.xhs-v3 .kpi::after {
  content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%;
  right: -20px; top: -22px; background: var(--primary-soft); opacity: 0.45;
}
.xhs-v3 .kpi.tech::after { background: var(--tech-soft); }
.xhs-v3 .kpi.blue::after { background: var(--blue); opacity: 0.1; }
.xhs-v3 .kpi.warn::after { background: var(--warning-soft); }
.xhs-v3 .kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xhs-v3 .kpi-value { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; margin: 6px 0 2px; }
.xhs-v3 .kpi-foot { font-size: 12px; color: var(--muted); }
.xhs-v3 .trend-up { color: var(--success); }
.xhs-v3 .trend-down { color: var(--danger); }

/* ── Section ── */
.xhs-v3 .section { margin-top: 16px; }
.xhs-v3 .section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 9px; }
.xhs-v3 .section-title { font-size: 17px; font-weight: 850; margin: 0; }
.xhs-v3 .section-subtitle { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

/* ── Badge ── */
.xhs-v3 .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px;
  border-radius: 999px; font-size: 11px; font-weight: 750;
  background: var(--surface-3); color: var(--muted); white-space: nowrap;
}
.xhs-v3 .badge-success { background: var(--success-soft); color: var(--success); }
.xhs-v3 .badge-warning { background: var(--warning-soft); color: var(--warning); }
.xhs-v3 .badge-danger { background: var(--danger-soft); color: var(--danger); }
.xhs-v3 .badge-primary { background: var(--primary-soft); color: var(--primary-strong); }
.xhs-v3 .badge-tech { background: var(--tech-soft); color: var(--tech); }
.xhs-v3 .badge-blue { background: var(--blue); color: #fff; }

/* ── Alert ── */
.xhs-v3 .alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 9px; border: 1px solid; }
.xhs-v3 .alert-warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.xhs-v3 .alert-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.xhs-v3 .alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.xhs-v3 .alert-info { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.xhs-v3 .alert-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; }
.xhs-v3 .alert-body { flex: 1; }
.xhs-v3 .alert-title { font-weight: 800; }
.xhs-v3 .alert-text { font-size: 12px; margin-top: 2px; opacity: 0.85; }

/* ── List ── */
.xhs-v3 .list { display: flex; flex-direction: column; }
.xhs-v3 .list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.xhs-v3 .list-row:first-child { border-top: 0; padding-top: 0; }
.xhs-v3 .list-row:last-child { padding-bottom: 0; }
.xhs-v3 .list-row.clickable { cursor: pointer; }
.xhs-v3 .list-row.clickable:hover .list-title { color: var(--primary-strong); }
.xhs-v3 .list-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3);
  display: grid; place-items: center; flex: 0 0 38px; font-weight: 800; color: var(--muted);
}
.xhs-v3 .list-body { min-width: 0; flex: 1; }
.xhs-v3 .list-title { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xhs-v3 .list-meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.xhs-v3 .list-actions { display: flex; gap: 7px; align-items: center; }

/* ── Table ── */
.xhs-v3 .table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.xhs-v3 table { width: 100%; border-collapse: collapse; min-width: 720px; }
.xhs-v3 th, .xhs-v3 td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.xhs-v3 th { font-size: 12px; color: var(--muted); background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.xhs-v3 td { font-size: 13px; }
.xhs-v3 .table-wrap tr:last-child td { border-bottom: 0; }
.xhs-v3 .table-main { font-weight: 750; }
.xhs-v3 .table-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.xhs-v3 tbody tr { cursor: pointer; transition: background 0.12s; }
.xhs-v3 tbody tr:hover { background: var(--surface-2); }

/* ── Filter bar / forms ── */
.xhs-v3 .filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; margin-bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.xhs-v3 .search { min-width: 220px; flex: 1; max-width: 420px; position: relative; }
.xhs-v3 .search .input { width: 100%; padding-left: 38px; }
.xhs-v3 .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; place-items: center; }
.xhs-v3 .input, .xhs-v3 .select, .xhs-v3 .textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: 9px;
  color: var(--text); outline: none; transition: 0.18s; font-size: 13px;
}
.xhs-v3 .input, .xhs-v3 .select { height: 38px; padding: 0 12px; }
.xhs-v3 .textarea { width: 100%; min-height: 110px; padding: 12px; resize: vertical; }
.xhs-v3 .input:focus, .xhs-v3 .select:focus, .xhs-v3 .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.xhs-v3 .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xhs-v3 .field label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.xhs-v3 .field .input, .xhs-v3 .field .select { width: 100%; }
.xhs-v3 .field-note { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ── Tabs / segment / chip ── */
.xhs-v3 .segment { display: inline-flex; background: var(--surface-3); padding: 4px; border-radius: 10px; gap: 3px; }
.xhs-v3 .segment button { border: 0; background: transparent; border-radius: 7px; padding: 7px 11px; color: var(--muted); font-weight: 700; cursor: pointer; }
.xhs-v3 .segment button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }
.xhs-v3 .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow: auto; }
.xhs-v3 .tab { border: 0; background: transparent; padding: 10px 13px; color: var(--muted); font-weight: 750; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.xhs-v3 .tab.active { color: var(--primary-strong); border-bottom-color: var(--primary); }
.xhs-v3 .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 12px; cursor: pointer;
}
.xhs-v3 .chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }

/* ── Progress / stepper ── */
.xhs-v3 .progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.xhs-v3 .progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-strong)); border-radius: inherit; }
.xhs-v3 .stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 18px; }
.xhs-v3 .step { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 34px; }
.xhs-v3 .step::before {
  content: attr(data-step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line); font-weight: 800;
}
.xhs-v3 .step::after { content: ""; position: absolute; height: 2px; background: var(--line); top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); }
.xhs-v3 .step:last-child::after { display: none; }
.xhs-v3 .step.active { color: var(--text); font-weight: 700; }
.xhs-v3 .step.active::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.xhs-v3 .step.done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.xhs-v3 .step.done::after { background: var(--success); }

/* ── Empty state ── */
.xhs-v3 .empty { padding: 40px 18px; text-align: center; display: grid; place-items: center; }
.xhs-v3 .empty-illustration {
  width: 72px; height: 72px; border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-soft), var(--tech-soft));
  display: grid; place-items: center; margin-bottom: 14px; font-size: 28px;
}
.xhs-v3 .empty h3 { margin: 0 0 6px; font-size: 17px; }
.xhs-v3 .empty p { margin: 0 auto 16px; color: var(--muted); max-width: 460px; font-size: 13px; }
.xhs-v3 .empty-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ── Hero (research) ── */
.xhs-v3 .hero {
  padding: 26px; background: linear-gradient(135deg, var(--surface) 0%, var(--primary-soft) 48%, var(--tech-soft) 100%);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px; align-items: center; overflow: hidden; position: relative;
}
.xhs-v3 .hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; bottom: -120px; background: var(--primary-soft); opacity: 0.5; }
.xhs-v3 .hero-copy { position: relative; z-index: 1; }
.xhs-v3 .hero-label { color: var(--primary-strong); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; }
.xhs-v3 .hero h2 { font-size: 26px; line-height: 1.25; margin: 8px 0; letter-spacing: -0.02em; }
.xhs-v3 .hero p { color: var(--muted); max-width: 700px; font-size: 13px; }
.xhs-v3 .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.xhs-v3 .hero-visual {
  min-height: 160px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); display: grid; place-items: center;
  position: relative; z-index: 1; padding: 16px;
}
.xhs-v3 .mini-dashboard { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xhs-v3 .mini-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.xhs-v3 .mini-tile strong { display: block; font-size: 20px; }
.xhs-v3 .mini-tile span { color: var(--muted); font-size: 11px; }

/* ── Chart / bars / donut / stat rows ── */
.xhs-v3 .chart {
  height: 210px; border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  background: var(--surface); position: relative; overflow: hidden;
}
.xhs-v3 .bars { height: calc(100% - 14px); display: flex; align-items: flex-end; gap: 10px; }
.xhs-v3 .bar {
  flex: 1; border-radius: 8px 8px 3px 3px; min-width: 12px; position: relative;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}
.xhs-v3 .bar.tech { background: linear-gradient(180deg, var(--tech), var(--blue)); }
.xhs-v3 .bar.empty { background: var(--surface-3); }
.xhs-v3 .bar-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.xhs-v3 .donut {
  width: 140px; height: 140px; border-radius: 50%; position: relative; flex: 0 0 140px;
  background: conic-gradient(var(--primary) 0 38%, var(--tech) 38% 68%, var(--warning) 68% 84%, var(--line-strong) 84%);
}
.xhs-v3 .donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.xhs-v3 .donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font-weight: 850; }
.xhs-v3 .donut-center small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.xhs-v3 .stat-row { display: flex; align-items: center; gap: 12px; }
.xhs-v3 .stat-row + .stat-row { margin-top: 12px; }
.xhs-v3 .stat-name { width: 92px; font-size: 12px; color: var(--muted); }
.xhs-v3 .stat-bar { flex: 1; height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.xhs-v3 .stat-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.xhs-v3 .stat-value { width: 44px; text-align: right; font-size: 12px; font-weight: 750; }

/* ── Avatar / timeline / link ── */
.xhs-v3 .avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  background: linear-gradient(135deg, var(--primary-soft), var(--tech-soft));
  display: grid; place-items: center; font-weight: 850; color: var(--primary-strong);
}
.xhs-v3 .avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.xhs-v3 .timeline { position: relative; padding-left: 24px; }
.xhs-v3 .timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.xhs-v3 .timeline-item { position: relative; padding: 0 0 18px; }
.xhs-v3 .timeline-item:last-child { padding-bottom: 0; }
.xhs-v3 .timeline-item::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--surface);
}
.xhs-v3 .timeline-title { font-weight: 750; }
.xhs-v3 .timeline-meta { font-size: 12px; color: var(--muted); }
.xhs-v3 .link { color: var(--primary-strong); font-weight: 700; cursor: pointer; }
.xhs-v3 .link:hover { text-decoration: underline; }

/* ── Two pane ── */
.xhs-v3 .two-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr); gap: 16px; }
.xhs-v3 .sticky-panel { position: sticky; top: 80px; align-self: start; }

/* ── Misc ── */
.xhs-v3 .upload-zone {
  border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px; text-align: center;
  background: var(--surface-2); cursor: pointer;
}
.xhs-v3 .qr-placeholder {
  width: 150px; height: 150px; margin: 0 auto 12px; border-radius: 14px;
  background: repeating-linear-gradient(45deg, var(--line-strong) 0 4px, var(--surface) 4px 8px);
  display: grid; place-items: center;
}
.xhs-v3 .qr-placeholder > div { background: var(--surface); padding: 8px 12px; border-radius: 10px; font-weight: 850; font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .xhs-v3 .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xhs-v3 .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xhs-v3 .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xhs-v3 .hero { grid-template-columns: minmax(0, 1fr) 300px; }
  .xhs-v3 .two-pane { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .xhs-v3 .hero, .xhs-v3 .two-pane { grid-template-columns: 1fr; }
  .xhs-v3 .sticky-panel { position: static; }
  .xhs-v3 .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xhs-v3 .grid-2, .xhs-v3 .grid-3, .xhs-v3 .grid-4, .xhs-v3 .grid-5, .xhs-v3 .form-grid { grid-template-columns: 1fr; }
  .xhs-v3 .card-pad, .xhs-v3 .card-lg { padding: 14px; }
  .xhs-v3 .hero { padding: 18px; }
  .xhs-v3 .hero h2 { font-size: 22px; }
  .xhs-v3 .kpi-value { font-size: 22px; }
  .xhs-v3 .stepper { grid-template-columns: repeat(5, 84px); overflow: auto; padding-bottom: 8px; }
  .xhs-v3 .filter-bar { align-items: stretch; }
  .xhs-v3 .search { max-width: none; min-width: 100%; }
  .xhs-v3 .list-row { align-items: flex-start; }
  .xhs-v3 .list-actions { flex-direction: column; align-items: stretch; }
}

/* ── XHS journey entry: Web counterpart of the verified mini-program query flow ── */
.xhs-journey-entry {
  --xhs-ink: #143d35;
  --xhs-ink-soft: #2e5a50;
  --xhs-coral: #FF4D3A;
  --xhs-coral-deep: #c94e6e;
  --xhs-paper: #fffdf8;
  --xhs-mist: #f6f0e6;
  --xhs-line: #dce6df;
  max-width: 1360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.34fr);
  gap: 18px;
  color: var(--xhs-ink);
}
.xhs-journey-entry > section,
.xhs-journey-query,
.xhs-journey-header {
  border: 1px solid var(--xhs-line);
  border-radius: 20px;
  background: var(--xhs-paper);
  box-shadow: 0 12px 28px rgba(20, 61, 53, 0.06);
}
.xhs-journey-header {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 214px;
  padding: 34px clamp(22px, 4vw, 52px);
  background:
    radial-gradient(circle at 86% 16%, rgba(232, 103, 135, 0.24) 0 4%, transparent 4.2%),
    radial-gradient(circle at 78% 80%, rgba(20, 61, 53, 0.12) 0 16%, transparent 16.2%),
    linear-gradient(118deg, #fffdf8 0%, #f9f0e7 50%, #f7e9ed 100%);
}
.xhs-journey-header::after {
  content: "XHS";
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  bottom: -17px;
  color: rgba(20, 61, 53, 0.08);
  font-size: clamp(82px, 13vw, 178px);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.9;
  pointer-events: none;
}
.xhs-journey-header .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--xhs-coral-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.xhs-journey-header h1 {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0;
  color: var(--xhs-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.xhs-journey-header > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--xhs-ink-soft);
  font-size: 14px;
  line-height: 1.75;
}
.xhs-journey-query {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 12px;
  padding: 23px;
}
.xhs-journey-query h2,
.xhs-journey-navigation h2,
.xhs-journey-history h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--xhs-ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.xhs-journey-query label {
  display: grid;
  gap: 7px;
  color: var(--xhs-ink-soft);
  font-size: 12px;
  font-weight: 750;
}
.xhs-journey-query input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #c9d7ce;
  border-radius: 12px;
  outline: none;
  color: var(--xhs-ink);
  background: #ffffff;
  font: inherit;
  transition: box-shadow 160ms cubic-bezier(.23, 1, .32, 1), border-color 160ms cubic-bezier(.23, 1, .32, 1);
}
.xhs-journey-query input::placeholder { color: #90a29b; }
.xhs-journey-query input:focus { border-color: var(--xhs-coral); box-shadow: 0 0 0 4px rgba(232, 103, 135, 0.14); }
.xhs-journey-query .primary {
  align-self: end;
  min-height: 48px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  color: #fffaf8;
  background: var(--xhs-coral);
  box-shadow: 0 10px 18px rgba(201, 78, 110, 0.22);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background 160ms cubic-bezier(.23, 1, .32, 1);
}
.xhs-journey-query .primary:hover { background: var(--xhs-coral-deep); transform: translateY(-1px); }
.xhs-journey-query .primary:active { transform: scale(.97); }
.xhs-journey-query .primary:disabled { cursor: progress; opacity: .72; transform: none; }
.xhs-journey-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #72847d;
  font-size: 12px;
  line-height: 1.65;
}
.xhs-journey-navigation { padding: 23px; }
.xhs-journey-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.xhs-journey-action {
  position: relative;
  min-height: 104px;
  padding: 18px 15px 15px 62px;
  border: 1px solid #dce6df;
  border-radius: 14px;
  color: var(--xhs-ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), border-color 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 160ms cubic-bezier(.23, 1, .32, 1);
}
.xhs-journey-action::before {
  position: absolute;
  top: 17px;
  left: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff8f8;
  background: var(--xhs-ink);
  content: "查";
  font-size: 12px;
  font-weight: 850;
}
.xhs-journey-action:nth-child(2)::before { content: "深"; background: #2c6b5b; }
.xhs-journey-action:nth-child(3)::before { content: "作"; background: #b76b53; }
.xhs-journey-action:nth-child(4)::before { content: "优"; background: var(--xhs-coral); }
.xhs-journey-action:nth-child(5)::before { content: "研"; background: #6c6695; }
.xhs-journey-action:nth-child(6)::before { content: "比"; background: #5076a8; }
.xhs-journey-action:nth-child(7)::before { content: "监"; background: #7d7563; }
.xhs-journey-action:hover { transform: translateY(-2px); border-color: var(--xhs-coral); box-shadow: 0 12px 22px rgba(20, 61, 53, 0.09); }
.xhs-journey-action:active { transform: scale(.985); }
.xhs-journey-action:focus-visible { outline: 3px solid rgba(232, 103, 135, 0.55); outline-offset: 2px; }
.xhs-journey-action strong { display: block; font-size: 14px; line-height: 1.35; }
.xhs-journey-action small { display: block; margin-top: 6px; color: #71837c; font-size: 11px; line-height: 1.55; }
.xhs-journey-history {
  align-self: start;
  padding: 23px;
  background: linear-gradient(180deg, #173f36 0%, #14352d 100%) !important;
  border-color: #14352d !important;
  color: #fdf9f2;
}
.xhs-journey-history h2 { color: #fdf9f2; }
.xhs-journey-history .xhs-journey-action {
  width: 100%;
  min-height: 78px;
  margin-top: 10px;
  padding-top: 14px;
  padding-left: 55px;
  border-color: rgba(255,255,255,.14);
  color: #fdf9f2;
  background: rgba(255,255,255,.08);
}
.xhs-journey-history .xhs-journey-action::before { top: 14px; left: 13px; background: var(--xhs-coral); }
.xhs-journey-history .xhs-journey-action small { color: rgba(255,255,255,.68); }
.xhs-journey-history .xhs-journey-action:hover { border-color: rgba(232, 103, 135, .85); box-shadow: none; }
.xhs-journey-history .xhs-journey-note { color: rgba(255,255,255,.72); }
@media (max-width: 980px) {
  .xhs-journey-entry { grid-template-columns: 1fr; }
  .xhs-journey-header { grid-column: auto; }
  .xhs-journey-history { grid-row: auto; }
}
@media (max-width: 640px) {
  .xhs-journey-entry { gap: 12px; }
  .xhs-journey-entry > section, .xhs-journey-query, .xhs-journey-header { border-radius: 16px; }
  .xhs-journey-header { min-height: 182px; padding: 25px 20px; }
  .xhs-journey-header h1 { font-size: 30px; }
  .xhs-journey-header > p:last-child { font-size: 13px; }
  .xhs-journey-query { grid-template-columns: 1fr; padding: 18px; }
  .xhs-journey-query .primary { width: 100%; }
  .xhs-journey-navigation, .xhs-journey-history { padding: 18px; }
  .xhs-journey-actions { grid-template-columns: 1fr; }
  .xhs-journey-action { min-height: 86px; }
}

/* ── XHS report delivery: evidence-first report reading surface ── */
.xhs-report-header {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 26px 30px;
  border: 1px solid #dce6df;
  border-radius: 20px;
  color: #fdf9f2;
  background: linear-gradient(120deg, #143d35 0%, #255b4d 68%, #367265 100%);
  box-shadow: 0 14px 30px rgba(20, 61, 53, .13);
}
.xhs-report-header p { margin: 0; color: #f5b7c4; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.xhs-report-header h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.xhs-report-back {
  width: fit-content;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.78);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.xhs-report-back:hover { color: #fff; }
.xhs-report-loading,
.xhs-report-empty {
  padding: 42px 22px;
  border: 1px dashed #c8d7cf;
  border-radius: 16px;
  color: #6c8179;
  background: #fffdf8;
  text-align: center;
}
.xhs-report-layout {
  display: grid;
  grid-template-columns: minmax(210px, .28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.xhs-report-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 120px);
  padding: 10px;
  overflow: auto;
  border: 1px solid #dce6df;
  border-radius: 16px;
  background: #fffdf8;
}
.xhs-report-nav-item {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  color: #355c52;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  transition: background 150ms cubic-bezier(.23,1,.32,1), color 150ms cubic-bezier(.23,1,.32,1);
}
.xhs-report-nav-item:hover { color: #143d35; background: #f5eee4; }
.xhs-report-nav-item.active { color: #fff8f8; background: #FF4D3A; box-shadow: 0 7px 14px rgba(232, 37, 63, .18); }
.xhs-report-detail-root { min-width: 0; }
.xhs-report-detail {
  overflow: hidden;
  border: 1px solid #dce6df;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(20, 61, 53, .05);
}
.xhs-report-detail > h2 {
  margin: 0;
  padding: 24px 26px 15px;
  color: #143d35;
  font-size: 24px;
  letter-spacing: -.03em;
}
.xhs-report-payload { padding: 18px 26px 26px; border-top: 1px solid #e5ece7; }
.xhs-report-payload > h3 { margin: 0 0 15px; color: #244b41; font-size: 15px; }
.xhs-report-detail .xhs-report-meta,
.xhs-report-detail .xhs-report-refs,
.xhs-report-detail .xhs-report-limitations { margin: 0 26px 14px; }
.xhs-report-list { margin-top: 18px; }
.xhs-report-list-items { display: grid; gap: 9px; padding: 14px 16px 16px; }
.xhs-report-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  padding: 14px 15px;
  border: 1px solid #dce6df;
  border-radius: 12px;
  color: #143d35;
  background: #fffdf8;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 150ms cubic-bezier(.23,1,.32,1), border-color 150ms cubic-bezier(.23,1,.32,1), box-shadow 150ms cubic-bezier(.23,1,.32,1);
}
.xhs-report-list-item:hover { transform: translateY(-1px); border-color: #FF4D3A; box-shadow: 0 8px 17px rgba(20, 61, 53, .08); }
.xhs-report-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.xhs-report-list-item small { color: #70837c; font-size: 11px; }
.xhs-report-list-item span { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #c94e6e; font-size: 12px; font-weight: 800; }
@media (max-width: 820px) {
  .xhs-report-layout { grid-template-columns: 1fr; }
  .xhs-report-nav { position: static; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); grid-template-columns: none; max-height: none; overflow-x: auto; }
  .xhs-report-header { padding: 22px 20px; }
}
@media (max-width: 640px) {
  .xhs-report-header { border-radius: 16px; }
  .xhs-report-detail { border-radius: 16px; }
  .xhs-report-detail > h2 { padding: 20px 18px 14px; font-size: 21px; }
  .xhs-report-payload { padding: 16px 18px 20px; }
  .xhs-report-detail .xhs-report-meta,
  .xhs-report-detail .xhs-report-refs,
  .xhs-report-detail .xhs-report-limitations { margin-inline: 18px; }
}


/* ── Account growth diagnosis: user-facing layer over governed evidence ── */
.xhs-v3.account-diagnosis { max-width: 1260px; margin: 0 auto; padding-bottom: 30px; }
.xhs-v3 .diagnosis-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.xhs-v3 .account-diagnosis-hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px;
  border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--primary-soft) 68%, var(--tech-soft) 100%);
  box-shadow: var(--shadow-soft); overflow: hidden; position: relative;
}
.xhs-v3 .account-diagnosis-hero::after { content: ""; position: absolute; right: -95px; bottom: -125px; width: 270px; height: 270px; border-radius: 50%; background: var(--primary); opacity: .08; }
.xhs-v3 .account-diagnosis-copy, .xhs-v3 .diagnosis-confidence { position: relative; z-index: 1; }
.xhs-v3 .account-identity { display: flex; gap: 13px; align-items: flex-start; }
.xhs-v3 .account-monogram { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 58px; font-size: 22px; font-weight: 900; color: #fff; background: linear-gradient(145deg, var(--primary-strong), var(--tech)); box-shadow: 0 12px 26px var(--primary-soft); }
.xhs-v3 .diagnosis-eyebrow { margin: 1px 0 4px; color: var(--primary-strong); font-size: 11px; letter-spacing: .1em; font-weight: 850; }
.xhs-v3 .account-diagnosis-hero h2 { font-size: 27px; letter-spacing: -.035em; margin: 0; line-height: 1.15; }
.xhs-v3 .account-description { color: var(--muted); margin: 7px 0 0; font-size: 13px; line-height: 1.6; max-width: 690px; }
.xhs-v3 .diagnosis-conclusion { margin-top: 22px; padding: 15px 17px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--surface) 76%, transparent); }
.xhs-v3 .diagnosis-conclusion-label { color: var(--primary-strong); display: block; font-size: 11px; font-weight: 850; letter-spacing: .08em; margin-bottom: 6px; }
.xhs-v3 .diagnosis-conclusion strong { display: block; font-size: 17px; line-height: 1.45; }
.xhs-v3 .diagnosis-conclusion p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 6px 0 0; }
.xhs-v3 .diagnosis-confidence { align-self: stretch; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: color-mix(in srgb, var(--surface) 88%, transparent); display: flex; flex-direction: column; }
.xhs-v3 .confidence-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.xhs-v3 .confidence-head strong { color: var(--text); font-size: 13px; }
.xhs-v3 .confidence-track { height: 8px; margin: 14px 0 11px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.xhs-v3 .confidence-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--tech)); }
.xhs-v3 .diagnosis-confidence p { color: var(--muted); line-height: 1.65; font-size: 12px; margin: 0; }
.xhs-v3 .confidence-link { margin-top: auto; padding: 14px 0 0; color: var(--primary-strong); background: transparent; border: 0; text-align: left; font-size: 12px; font-weight: 800; cursor: pointer; }
.xhs-v3 .confidence-link:hover { text-decoration: underline; }
.xhs-v3 .diagnosis-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.xhs-v3 .diagnosis-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xhs-v3 .diagnosis-work-card { min-width: 0; overflow: hidden; padding: 0; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.xhs-v3 .diagnosis-work-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.xhs-v3 .diagnosis-work-card:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.xhs-v3 .diagnosis-work-cover { display: block; height: 158px; position: relative; background: linear-gradient(135deg, var(--primary-soft), var(--tech-soft)); overflow: hidden; }
.xhs-v3 .diagnosis-work-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.xhs-v3 .diagnosis-work-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 30px; color: var(--primary-strong); font-weight: 900; }
.xhs-v3 .diagnosis-work-state { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 99px; background: color-mix(in srgb, #000 55%, transparent); color: #fff; font-size: 10px; font-weight: 800; }
.xhs-v3 .diagnosis-work-body { display: block; padding: 12px; }
.xhs-v3 .diagnosis-work-body strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 38px; line-height: 1.45; font-size: 13px; }
.xhs-v3 .diagnosis-work-body small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 6px; color: var(--muted); font-size: 11px; }
.xhs-v3 .diagnosis-work-metrics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; min-height: 21px; color: var(--muted); font-size: 11px; }
.xhs-v3 .diagnosis-work-metrics em { padding: 3px 6px; border-radius: 6px; background: var(--surface-3); font-style: normal; }
.xhs-v3 .diagnosis-empty { color: var(--muted); }
.xhs-v3 .diagnosis-empty strong { display: block; color: var(--text); margin-bottom: 6px; }
.xhs-v3 .diagnosis-empty p { margin: 0; line-height: 1.6; font-size: 13px; }
.xhs-v3 .diagnosis-observation-list { display: grid; gap: 12px; }
.xhs-v3 .diagnosis-observation { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.xhs-v3 .diagnosis-observation:last-child { padding-bottom: 0; border-bottom: 0; }
.xhs-v3 .diagnosis-observation span { color: var(--muted); font-size: 11px; }
.xhs-v3 .diagnosis-observation strong { display: block; margin-top: 3px; font-size: 14px; }
.xhs-v3 .diagnosis-observation p { color: var(--muted); line-height: 1.55; font-size: 12px; margin: 4px 0 0; }
.xhs-v3 .diagnosis-action { background: linear-gradient(140deg, var(--surface) 0%, var(--tech-soft) 130%); }
.xhs-v3 .diagnosis-action-title { margin-top: 10px; }
.xhs-v3 .diagnosis-action-why { min-height: 52px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.xhs-v3 .diagnosis-action-metric { margin: 16px 0; padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.xhs-v3 .diagnosis-action-metric span { display: block; color: var(--muted); font-size: 11px; }
.xhs-v3 .diagnosis-action-metric strong { display: block; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.xhs-v3 .boundary-list { display: flex; flex-wrap: wrap; gap: 8px; }
.xhs-v3 .boundary-list span { padding: 7px 9px; border-radius: 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.xhs-v3 .diagnosis-audit { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.xhs-v3 .diagnosis-audit summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; cursor: pointer; font-weight: 800; font-size: 13px; }
.xhs-v3 .diagnosis-audit summary small { color: var(--muted); font-weight: 600; }
.xhs-v3 .diagnosis-audit[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.xhs-v3 .diagnosis-audit-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px; }
.xhs-v3 .diagnosis-audit-content h3 { margin: 0 0 12px; font-size: 13px; }
.xhs-v3 .diagnosis-footer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 980px) {
  .xhs-v3 .account-diagnosis-hero { grid-template-columns: 1fr; }
  .xhs-v3 .diagnosis-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xhs-v3 .diagnosis-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .xhs-v3 .account-diagnosis-hero { padding: 17px; border-radius: 14px; }
  .xhs-v3 .account-diagnosis-hero h2 { font-size: 23px; }
  .xhs-v3 .account-monogram { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; font-size: 18px; }
  .xhs-v3 .diagnosis-work-grid, .xhs-v3 .diagnosis-kpis, .xhs-v3 .diagnosis-audit-content { grid-template-columns: 1fr; }
  .xhs-v3 .diagnosis-work-grid { grid-auto-flow: column; grid-auto-columns: minmax(218px, 78vw); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .xhs-v3 .diagnosis-work-card { scroll-snap-align: start; }
  .xhs-v3 .diagnosis-work-cover { height: 176px; }
  .xhs-v3 .diagnosis-topbar { margin-bottom: 8px; }
}


/* ── Work diagnosis ── */
.xhs-v3.work-diagnosis { max-width: 1120px; margin: 0 auto; padding-bottom: 30px; }
.xhs-v3 .work-diagnosis-hero { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-soft); }
.xhs-v3 .work-diagnosis-media { min-height: 280px; background: linear-gradient(145deg, var(--primary-soft), var(--tech-soft)); }
.xhs-v3 .work-diagnosis-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xhs-v3 .work-cover-placeholder { width: 100%; height: 100%; min-height: 280px; display: grid; place-items: center; color: var(--primary-strong); font-size: 56px; font-weight: 900; }
.xhs-v3 .work-diagnosis-copy { display: flex; flex-direction: column; justify-content: center; padding: 27px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); }
.xhs-v3 .work-diagnosis-copy h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.28; letter-spacing: -.03em; }
.xhs-v3 .work-diagnosis-meta { color: var(--muted); font-size: 12px; margin: 9px 0 0; }
.xhs-v3 .work-readiness { margin-top: 21px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.xhs-v3 .work-readiness > span { color: var(--muted); font-size: 11px; }
.xhs-v3 .work-readiness strong { display: block; margin-top: 3px; font-size: 16px; }
.xhs-v3 .work-readiness p { color: var(--muted); margin: 5px 0 0; font-size: 12px; line-height: 1.65; }
.xhs-v3 .readiness-ready { border-left: 3px solid var(--success); }
.xhs-v3 .readiness-review { border-left: 3px solid var(--warning); }
.xhs-v3 .work-facts { display: grid; gap: 0; }
.xhs-v3 .work-fact { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.xhs-v3 .work-fact:first-child { border-top: 0; padding-top: 0; }
.xhs-v3 .work-fact span { color: var(--muted); font-size: 12px; }
.xhs-v3 .work-fact strong { font-size: 13px; font-weight: 700; word-break: break-word; line-height: 1.55; }
.xhs-v3 .work-fact-block strong { color: var(--muted); font-weight: 550; }
.xhs-v3 .diagnosis-unavailable, .xhs-v3 .diagnosis-available { border-radius: 10px; padding: 14px; background: var(--surface-2); }
.xhs-v3 .diagnosis-unavailable { border-left: 3px solid var(--warning); }
.xhs-v3 .diagnosis-available { border-left: 3px solid var(--success); }
.xhs-v3 .diagnosis-unavailable strong, .xhs-v3 .diagnosis-available strong { display: block; font-size: 13px; }
.xhs-v3 .diagnosis-unavailable p, .xhs-v3 .diagnosis-available p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.xhs-v3 .work-diagnosis-card { min-height: 192px; display: flex; flex-direction: column; }
.xhs-v3 .work-diagnosis-state { display: inline-flex; align-self: flex-start; padding: 4px 7px; margin-bottom: 13px; border-radius: 7px; font-size: 11px; font-weight: 800; }
.xhs-v3 .work-state-ready { background: var(--success-soft); color: var(--success); }
.xhs-v3 .work-state-warning { background: var(--warning-soft); color: var(--warning); }
.xhs-v3 .work-diagnosis-card p { min-height: 57px; color: var(--muted); margin: 9px 0; line-height: 1.65; font-size: 12px; }
.xhs-v3 .work-diagnosis-card small { margin-top: auto; color: var(--muted); font-size: 11px; line-height: 1.55; }
.xhs-v3 .work-performance-card { display: flex; flex-direction: column; justify-content: center; }
.xhs-v3 .work-status-title { font-size: 18px; line-height: 1.4; }
.xhs-v3 .work-status-copy { min-height: 45px; margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
@media (max-width: 760px) {
  .xhs-v3 .work-diagnosis-hero { grid-template-columns: 1fr; }
  .xhs-v3 .work-diagnosis-media { min-height: 230px; max-height: 330px; }
  .xhs-v3 .work-diagnosis-copy { padding: 18px; }
  .xhs-v3 .work-diagnosis-copy h2 { font-size: 22px; }
  .xhs-v3 .work-fact { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; }
}


/* ── Media evidence in work diagnosis ── */
.xhs-v3 .media-evidence-card { min-height: 238px; display: flex; flex-direction: column; }
.xhs-v3 .media-evidence-list { display: grid; gap: 0; margin: 3px 0 14px; }
.xhs-v3 .media-evidence-list .work-fact { grid-template-columns: 78px minmax(0, 1fr); padding: 8px 0; }
.xhs-v3 .media-evidence-card > .btn { align-self: flex-start; margin-top: auto; }
.xhs-v3 .media-evidence-card > .card-note { margin: auto 0 0; line-height: 1.65; }
.xhs-v3 .media-suggestions { display: grid; gap: 6px; margin-top: auto; }
.xhs-v3 .media-suggestions span { display: block; padding: 8px 10px; border-left: 2px solid var(--tech); border-radius: 0 7px 7px 0; background: var(--tech-soft); color: var(--text); font-size: 12px; line-height: 1.5; }
