.profile-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.profile-header-side { display: grid; justify-items: end; gap: 14px; flex: 0 0 auto; }
.profile-heading-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-keepsake { display: block; width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 18px; }
.profile-header > .button { flex: none; }
.character-profile { padding-top: 32px; }
.character-profile .profile-header { margin-bottom: 24px; align-items: center; }
.character-profile .profile-keepsake { width: 48px; height: 48px; border-radius: 13px; }
.character-profile .profile-header .page-title { font-size: 28px; }
.profile-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin: 24px 0; }
.profile-secondary-grid.without-style { grid-template-columns: 1fr; }
.profile-secondary-grid .behavior-style { margin: 0; }
.profile-secondary-grid .quick-entries { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (max-width: 980px) { .profile-secondary-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .character-profile { padding-top: 22px; }
  .character-profile .profile-header { gap: 12px; }
  .character-profile .profile-header .page-title { font-size: 25px; }
  .character-profile .profile-header .page-subtitle { font-size: 12px; }
  .character-profile .profile-keepsake { width: 42px; height: 42px; }
}
.profile-record-meta, .profile-legacy-note { color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile-legacy-note a { margin-left: 8px; }
.behavior-style { margin: 18px 0; border-color: rgba(245, 196, 81, .27); background: linear-gradient(135deg, rgba(245, 196, 81, .065), rgba(255, 255, 255, .02) 70%); }
.behavior-style > .panel-body { padding: 22px 24px; }
.behavior-style-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.behavior-style-head h2 { margin: 4px 0 0; font-size: 19px; }
.behavior-style-head .eyebrow { margin: 0; font-size: 9px; }
.behavior-style-note { color: var(--muted); font-size: 10px; }
.behavior-style-summary { margin: 16px 0 12px; color: var(--paper); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.behavior-signals { display: flex; flex-wrap: wrap; gap: 7px; }
.behavior-signals > span { padding: 5px 10px; border: 1px solid rgba(245, 196, 81, .22); border-radius: 8px; color: var(--gold-0); background: rgba(245, 196, 81, .045); font-size: 11px; }
.behavior-style-footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 4px; }
.behavior-style-footer > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.behavior-style-footer .button { flex: none; }
.behavior-evidence { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.behavior-evidence > summary { color: var(--muted); font-size: 11px; cursor: pointer; min-height: 24px; }
.behavior-evidence article { padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.behavior-evidence article:last-child { border-bottom: 0; }
.behavior-evidence article > p { margin: 9px 0 5px; font-size: 12px; line-height: 1.7; }
.behavior-evidence blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid rgba(245, 196, 81, .45); background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.behavior-full-summary { margin: 12px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.profile-chip-drafts { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; margin: 18px 0; border: 1px dashed rgba(245, 196, 81, .28); border-radius: 13px; }
.profile-chip-drafts strong { font-size: 12px; color: var(--gold-0); }
.profile-chip-drafts p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.profile-chip-drafts .button { flex: none; }
.profile-analysis-pending { display: flex; align-items: baseline; gap: 9px; margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.profile-analysis-pending > span { color: var(--gold-1); }
@media (max-width: 620px) {
  .profile-heading-main { gap: 10px; }
  .profile-keepsake { width: 54px; height: 54px; border-radius: 14px; }
  .profile-header > .button { align-self: flex-end; }
  .behavior-style > .panel-body { padding: 18px 16px; }
  .behavior-style-head { align-items: flex-start; }
  .behavior-style-head h2 { font-size: 18px; }
  .behavior-style-note { max-width: 98px; text-align: right; line-height: 1.6; }
  .behavior-style-summary { font-size: 13px; }
  .behavior-style-footer, .profile-chip-drafts { align-items: flex-start; flex-direction: column; gap: 10px; }
  .behavior-style-footer .button, .profile-chip-drafts .button { align-self: flex-end; }
}
.profile-flow { display: flex; align-items: center; gap: 9px; margin: -10px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255, 255, 255, .03); font-size: 11px; }
.profile-flow span { white-space: nowrap; }
.profile-flow .done, .profile-flow .current { color: var(--gold-1); font-weight: 700; }
.profile-flow i { color: var(--faint); font-style: normal; }
.profile-visual-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; margin: 18px 0; }
.profile-priority-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 18px; margin: 18px 0; }
.identity-panel, .next-step-primary { min-height: 100%; }
.identity-panel h2, .next-step-primary h2 { margin: 5px 0 10px; font-size: 23px; }
.profile-thesis { max-width: 720px; margin: 0 0 10px; color: var(--paper); font-size: clamp(18px, 2.2vw, 25px); font-weight: 800; line-height: 1.55; }
.next-step-primary { border-color: rgba(245, 196, 81, .42); background: linear-gradient(145deg, rgba(245, 196, 81, .13), rgba(120, 73, 190, .12)); }
.next-step-copy { margin: 12px 0 22px; color: var(--paper); font-size: 17px; font-weight: 700; line-height: 1.8; }
.radar-ring { fill: none; stroke: rgba(245, 196, 81, .18); stroke-width: 1; }
.radar-ring.active { stroke: rgba(245, 196, 81, .35); }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { fill: var(--paper); font-size: 11px; }
.radar-area { fill: rgba(245, 196, 81, .2); stroke: var(--gold-1); stroke-width: 2; }
.radar-point { fill: var(--gold-1); stroke: var(--ink-0); stroke-width: 2; }
.trait-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.trait-badge { border: 1px solid rgba(245, 196, 81, .25); border-radius: 14px; background: rgba(245, 196, 81, .06); }
.trait-badge summary { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 12px; cursor: pointer; list-style: none; }
.trait-badge summary::-webkit-details-marker { display: none; }
.trait-badge strong, .trait-badge small { display: block; }
.trait-badge strong { color: var(--gold-1); font-size: 13px; }
.trait-badge small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.badge-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(245, 196, 81, .15); font-size: 18px; }
.trait-badge p { margin: 0; padding: 0 12px 12px 57px; color: var(--paper); font-size: 11px; line-height: 1.55; }
.report-generating-page { min-height: 620px; }
.report-generating-overlay { position: relative; display: grid; justify-items: center; max-width: 680px; margin: 78px auto 0; padding: 58px 30px; border: 1px solid rgba(245, 196, 81, .4); border-radius: 20px; background: rgba(20, 19, 16, .96); box-shadow: 0 24px 80px rgba(0, 0, 0, .3); text-align: center; }
.generating-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(245, 196, 81, .5); border-radius: 50%; color: var(--gold-1); font-size: 24px; animation: report-pulse 1.6s ease-in-out infinite; }
.report-generating-overlay h2 { margin: 18px 0 7px; font-size: 22px; }
.report-generating-overlay p { max-width: 420px; margin: 0; color: var(--paper); line-height: 1.7; }
.report-generating-overlay small { margin-top: 18px; color: var(--muted); font-size: 11px; }
.generating-track { display: block; width: min(100%, 300px); height: 4px; margin-top: 28px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.generating-track i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--gold-1); animation: report-track 1.8s ease-in-out infinite; }
@keyframes report-pulse { 50% { transform: scale(1.06); opacity: .7; } }
@keyframes report-track { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
.situation-panel { margin-top: 18px; }
.work-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.work-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.work-facts p { line-height: 1.7; }
.situation-panel > summary { cursor: pointer; }
@media (max-width: 620px) { .work-facts { grid-template-columns: 1fr; } }
.situation-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.situation-node { position: relative; display: grid; gap: 8px; min-height: 90px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-1); color: var(--paper); cursor: pointer; text-align: left; }
.situation-node small { color: var(--muted); font-size: 12px; }
.situation-node:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 32px; color: var(--muted); }
.situation-node[aria-pressed="true"] { border-color: var(--gold-1); background: rgba(245, 196, 81, .09); }
.situation-node[aria-pressed="true"] strong { color: var(--gold-1); }
.situation-detail { padding: 20px; background: var(--ink-0); border-radius: 12px; overflow-wrap: anywhere; }
.claim-evidence { margin-top: 14px; color: var(--muted); font-size: 11px; opacity: .72; }
.claim-evidence[open] { opacity: 1; }
.claim-evidence summary, .qa-panel summary { cursor: pointer; color: var(--muted); min-height: 32px; }
.claim-evidence .qa-row { opacity: .82; }
.trait-badge > p span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.profile-notice { padding: 16px; margin: 16px 0; border-left: 3px solid var(--gold-1); background: rgba(245, 196, 81, .08); line-height: 1.7; }
.profile-notice a { margin-left: 10px; }
/* 深度整理失败/卡住：明确影响范围与重试入口（BUG-015） */
.analysis-failure { padding: 18px 20px; margin: 16px 0; border: 1px solid rgba(232, 163, 23, .45); border-left: 3px solid var(--gold-1); border-radius: 14px; background: rgba(245, 196, 81, .07); }
.analysis-failure .failure-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--gold-0); font-size: 16px; }
.analysis-failure .failure-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(232, 163, 23, .5); background: rgba(245, 196, 81, .12); font-size: 14px; }
.analysis-failure .failure-scope { margin: 0 0 8px; line-height: 1.7; }
.analysis-failure ul { margin: 0 0 10px; padding-left: 20px; }
.analysis-failure li { margin: 4px 0; line-height: 1.65; color: var(--muted); }
.analysis-failure .failure-reason { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.analysis-failure .failure-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.analysis-failure .failure-actions small { color: var(--faint); }
.analysis-diagnostic { display: block; margin: 0 0 12px; color: var(--faint); }
.analysis-failure .failure-actions { justify-content: space-between; }
.analysis-failure .failure-scope { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.failure-details { margin-top: 12px; }
.failure-details > summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 11px; }
.failure-details .failure-reason { margin: 10px 0 6px; }
.understanding-item, .timeline-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-note { overflow-wrap: anywhere; color: var(--paper); padding: 12px 0; border-top: 1px solid var(--line); }
#profile-review { margin-top: 20px; }
#profile-review label { display: block; margin-bottom: 10px; }
.profile-unknowns { padding-left: 20px; line-height: 1.8; color: var(--muted); }
@media (max-width: 620px) {
  .situation-map { grid-template-columns: 1fr; gap: 20px; }
  .situation-node { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
  .situation-node:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -23px; }
}
.profile-version { display: grid; justify-items: end; flex: 0 0 auto; color: var(--gold-1); font-size: 13px; }
.profile-version small { margin-top: 5px; color: var(--muted); }

/* 段位徽章（对应 demo .tier-badge） */
.tier-chip { display: inline-block; margin-right: 10px; padding: 4px 14px; border: 1px solid rgba(245, 196, 81, .45); border-radius: 50px; color: var(--gold-1); background: rgba(245, 196, 81, .1); font-size: 15px; font-weight: 700; vertical-align: middle; }
.headline { margin: 10px 0 6px; font-size: 21px; font-weight: 900; line-height: 1.5; }

/* 四轴扫描（对应 demo .axis-row / .dim-bar） */
.axis-row { margin-bottom: 16px; }
.axis-row:last-child { margin-bottom: 4px; }
.axis-labels { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: 13px; }
.axis-labels .win { color: var(--paper); font-weight: 700; }
.axis-labels .lose { color: var(--muted); font-size: 11.5px; text-align: right; }
.axis-bar { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.axis-bar .l { background: var(--grad); }
.axis-bar .r { background: rgba(255, 255, 255, .13); }
.axis-basis { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.advice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.advice-copy { color: #e4ded0; font-size: 14.5px; font-weight: 500; line-height: 1.8; }

.profile-tags-row { margin-top: 16px; }
.profile-tags-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.profile-tags-row h2 { margin: 0; font-size: 17px; }

.qa-panel { margin-top: 16px; }
.qa-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa-row:last-child { border-bottom: 0; }
.qa-row .tag { flex: 0 0 auto; margin-top: 2px; }
.qa-row div { display: grid; gap: 4px; }
.qa-row strong { font-size: 13px; font-weight: 500; line-height: 1.6; }
.qa-row small { color: var(--muted); line-height: 1.65; }

.profile-actions { display: flex; gap: 12px; margin-top: 24px; }
@media (max-width: 700px) {
  .profile-visual-grid { grid-template-columns: 1fr; }
  .trait-badges { grid-template-columns: 1fr; }
  .advice-grid { grid-template-columns: 1fr; }
  .profile-header, .profile-tags-row { align-items: flex-start; flex-direction: column; }
  .profile-header-side { width: 100%; align-items: flex-start; justify-items: start; grid-template-columns: auto 1fr; }
  .profile-version { justify-items: start; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-flow { gap: 6px; overflow-x: auto; }
}
.basics-summary { margin-top: 18px; }
.basics-summary > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.basics-summary > summary::-webkit-details-marker { display: none; }
.basics-summary > summary strong { display: block; margin-top: 4px; color: var(--paper); font-size: 15px; }
.basics-summary > summary small { color: var(--muted); font-size: 11px; text-align: right; }
.basics-summary .basic-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.basic-facts p { margin: 6px 0 0; color: var(--paper); line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 620px) {
  .basics-summary > summary { align-items: flex-start; flex-direction: column; }
  .basics-summary > summary small { text-align: left; }
  .basics-summary .basic-facts { grid-template-columns: 1fr; }
}

/* ---------- 游戏化角色卡（PRD §11.5–11.7） ---------- */
.roxy-says { position: relative; overflow: hidden; margin: 18px 0 24px; border: 1px solid rgba(174, 168, 220, .34); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(35, 34, 52, .94), rgba(15, 16, 26, .96) 72%); box-shadow: 0 18px 58px rgba(0, 0, 0, .3), 0 0 34px rgba(137, 126, 203, .08); }
.roxy-says::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #b7b0e7, rgba(137, 126, 203, .18)); }
.roxy-says > .panel-body { padding: 22px clamp(18px, 3vw, 30px) 20px; }
.roxy-says-head { display: block; }
.roxy-says-head .eyebrow { margin: 0; color: #bdb7e8; text-transform: none; letter-spacing: .04em; }
.roxy-says-head h2 { margin: 4px 0 0; color: #f0eef9; font-size: 21px; }
.roxy-says-grid { display: grid; gap: 0; margin-top: 18px; }
.roxy-says-grid > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; padding: 15px 0; border-top: 1px solid rgba(218, 215, 244, .12); }
.roxy-says-grid > div:first-child { padding-top: 0; border-top: 0; }
.roxy-says-grid .eyebrow { margin: 3px 0 0; color: #bdb7e8; }
.roxy-says-summary, .roxy-says-focus, .roxy-says-advice { margin: 0; color: var(--paper); font-size: 14px; line-height: 1.85; }
.roxy-says-summary { color: #e4e2ef; }
.roxy-says-focus { color: #efe1a8; font-weight: 700; }
.roxy-says-grid .button { grid-column: 2; justify-self: start; margin-top: 10px; }
.roxy-says-note { margin: 0; padding-top: 11px; border-top: 1px dashed rgba(255, 255, 255, .1); color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.stage-card { position: relative; margin: 18px 0; border: 1px solid rgba(245, 196, 81, .38); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(245, 196, 81, .1), rgba(20, 18, 27, .92) 42%, rgba(255, 255, 255, .04)); box-shadow: 0 24px 80px rgba(0, 0, 0, .4), 0 0 44px rgba(245, 196, 81, .06); overflow: hidden; }
.stage-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .8; }
.stage-card > .panel-body { padding: 26px clamp(18px, 3vw, 34px); }
.stage-card-head { display: flex; align-items: center; gap: 22px; }
.stage-head-main { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.stage-radar { flex: 0 0 auto; display: grid; justify-items: center; gap: 5px; }
.stage-radar svg { width: 148px; height: 136px; overflow: visible; }
.stage-radar small { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.radar-point.to_verify { fill: var(--muted); }
@media (max-width: 760px) {
  .stage-card-head { flex-wrap: wrap; }
  .stage-radar { width: 100%; margin-top: 4px; }
}

.stage-emblem { position: relative; display: grid; width: 70px; height: 70px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(245, 196, 81, .55); border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(245, 196, 81, .32), rgba(245, 196, 81, .05) 68%); color: var(--gold-0); font-size: 30px; text-shadow: 0 0 18px rgba(245, 196, 81, .55); }
.stage-emblem::before { content: ""; position: absolute; inset: -6px; border: 1px dashed rgba(245, 196, 81, .35); border-radius: 50%; animation: emblem-orbit 26s linear infinite; }
@keyframes emblem-orbit { to { transform: rotate(360deg); } }
.stage-title { min-width: 0; }
.stage-name { margin: 2px 0 6px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; line-height: 1.2; }
.stage-name small { margin-left: 8px; font-size: 15px; font-weight: 700; color: var(--gold-1); -webkit-text-fill-color: var(--gold-1); }
.stage-tagline { margin: 0; color: var(--muted); font-size: 13px; }
.stage-progress-note { margin-left: auto; padding: 6px 14px; border: 1px solid rgba(245, 196, 81, .4); border-radius: 50px; color: var(--gold-1); background: rgba(245, 196, 81, .09); font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage-hint { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold-2); background: rgba(245, 196, 81, .07); color: var(--paper); font-size: 12.5px; line-height: 1.7; }
.stage-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 10px; }
.stage-slot { position: relative; display: grid; gap: 6px; align-content: start; min-height: 100px; padding: 16px 12px 12px; border-radius: 14px; cursor: pointer; text-align: left; transition: transform .18s ease, box-shadow .25s ease, filter .25s ease; }
.stage-slot .slot-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 900; }
.stage-slot .slot-name { color: var(--paper); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.stage-slot .slot-state { color: var(--muted); font-size: 10.5px; letter-spacing: .1em; }
.stage-slot .slot-roman { position: absolute; top: 8px; right: 11px; color: var(--faint); font-size: 11px; letter-spacing: .05em; }
/* 已完成：金质徽章格——高光渐变、外发光、缓慢扫光 */
.stage-slot.done { overflow: hidden; border: 1px solid rgba(255, 226, 150, .75); background: linear-gradient(155deg, rgba(255, 232, 166, .95), rgba(245, 196, 81, .55) 45%, rgba(154, 122, 40, .38)); box-shadow: 0 0 22px rgba(245, 196, 81, .3), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 18px rgba(120, 84, 10, .35); }
.stage-slot.done::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 46%, transparent 60%); transform: translateX(-130%); animation: slot-sheen 5.2s ease-in-out infinite; pointer-events: none; }
.stage-slot.done .slot-mark { background: radial-gradient(circle at 32% 30%, #fff6d8, var(--gold-1) 58%, var(--gold-2)); color: var(--on-gold); border: 1px solid rgba(255, 244, 210, .8); box-shadow: 0 0 12px rgba(245, 196, 81, .55); }
.stage-slot.done .slot-name { color: #241a02; }
.stage-slot.done .slot-state { color: rgba(36, 26, 2, .72); font-weight: 700; }
.stage-slot.done .slot-roman { color: rgba(36, 26, 2, .45); }
.stage-slot.done:hover { transform: translateY(-3px); box-shadow: 0 6px 30px rgba(245, 196, 81, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
/* 待解锁：上锁的暗格，实线描边内凹 */
.stage-slot.pending { border: 1px solid rgba(255, 255, 255, .32); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .22)); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45); }
.stage-slot.pending .slot-mark { border: 1px solid rgba(255, 255, 255, .4); color: var(--muted); background: rgba(255, 255, 255, .04); font-size: 13px; }
/* 待了解：虚线问号格 */
.stage-slot.unknown { border: 1px dashed rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .02); }
.stage-slot.unknown .slot-mark { border: 1px dashed rgba(255, 255, 255, .32); color: var(--faint); }
.stage-slot:hover { transform: translateY(-2px); }
.stage-slot.active { outline: 2px solid rgba(245, 196, 81, .75); outline-offset: 2px; }
@keyframes slot-sheen { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
/* 四段进度光带：与四格一一对应，点亮段呈金色 */
.stage-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; }
.stage-track i { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); transition: all .4s ease; }
.stage-track i.lit { background: linear-gradient(90deg, var(--gold-0), var(--gold-2)); box-shadow: 0 0 10px rgba(245, 196, 81, .5); }
.stage-slot-detail { margin: 0 0 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-0); overflow-wrap: anywhere; }
.stage-slot-detail:empty { display: none; }
.stage-slot-detail h3 { margin: 0 0 8px; color: var(--gold-1); font-size: 16px; }
.slot-condition { margin: 0 0 10px; color: var(--paper); font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.slot-experience { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--gold-2); background: rgba(255, 255, 255, .04); color: #e4ded0; font-size: 13px; line-height: 1.8; }
.stage-slot-detail .question-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stage-completed { margin-top: 14px; }
.stage-completed > summary { cursor: pointer; color: var(--gold-1); font-size: 12px; }
.stage-completed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.stage-chip { padding: 6px 14px; border: 1px solid rgba(245, 196, 81, .45); border-radius: 50px; color: var(--gold-1); background: rgba(245, 196, 81, .1); cursor: pointer; font-size: 12px; font-weight: 700; }
.stage-chip:hover { background: rgba(245, 196, 81, .2); }
/* 跨档已点亮：当前档四格全灰但经历挂在更高档时，显式列出避免误读档位 */
.stage-cross { margin: 2px 0 10px; padding: 12px 14px; border: 1px dashed rgba(245, 196, 81, .4); border-radius: 10px; background: rgba(245, 196, 81, .05); }
.stage-cross > .eyebrow { margin: 0 0 2px; }
.stage-cross .stage-completed-chips { margin: 8px 0 6px; }
.stage-cross .field-help { margin: 0; }
.stage-tier-detail:empty { display: none; }
.stage-tier-detail h3 { margin: 8px 0 4px; color: var(--gold-1); font-size: 14px; }
.stage-tier-detail .stage-tagline { margin: 0 0 4px; }
.tier-achievement { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tier-achievement div { display: grid; gap: 4px; }
.tier-achievement small { color: var(--muted); }
.stage-skills { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-skills > summary { padding: 3px 0 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.stage-skills[open] > .field-help { margin-top: 12px; }
.stage-explanation { margin-top: 12px; }
.stage-explanation > summary { color: var(--muted); font-size: 11px; cursor: pointer; }
.stage-skills-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.skill-badge { border: 1px solid rgba(245, 196, 81, .4); border-radius: 14px; background: rgba(245, 196, 81, .1); transition: border-radius .18s ease, background .18s ease; }
.skill-badge summary { display: flex; align-items: center; gap: 8px; padding: 7px 15px; cursor: pointer; list-style: none; color: var(--gold-1); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.skill-badge summary::marker { content: ""; }.skill-badge summary::-webkit-details-marker { display: none; }
.skill-badge summary small { color: var(--muted); font-size: 10px; font-weight: 500; }
.skill-badge.to_verify { border-style: dashed; background: rgba(255, 255, 255, .03); }
.skill-badge.to_verify summary { color: var(--muted); }
.skill-badge[open] { background: rgba(245, 196, 81, .14); }
.skill-badge p { margin: 0; padding: 2px 15px 12px; color: var(--paper); font-size: 11.5px; line-height: 1.7; max-width: 520px; white-space: normal; }
.stage-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.stage-links button { padding: 2px 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.stage-links button:hover { color: var(--gold-1); }
.stage-promotion { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 16px 20px; border: 1px solid rgba(245, 196, 81, .5); border-radius: 16px; background: linear-gradient(120deg, rgba(245, 196, 81, .16), rgba(232, 163, 23, .07)); box-shadow: 0 0 34px rgba(245, 196, 81, .12); }
.stage-promotion p { margin: 0; color: var(--gold-0); font-size: 14.5px; font-weight: 800; line-height: 1.7; }
.stage-card-unlocated .stage-emblem { border-style: dashed; }
.stage-question { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-0); }
.stage-question h3 { margin: 12px 0; color: var(--paper); font-size: 16.5px; }
.stage-question .option-grid { margin-top: 8px; }
#stage-supplement-flow { margin-top: 16px; }
#stage-supplement-flow:empty { display: none; }

/* 卡片下方的四个快捷入口 */
.quick-entries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.quick-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--paper); cursor: pointer; text-align: left; transition: all .2s ease; }
.quick-entry:hover { border-color: rgba(245, 196, 81, .5); background: rgba(245, 196, 81, .1); transform: translateY(-2px); }
.quick-entry .entry-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: rgba(245, 196, 81, .12); font-size: 19px; }
.quick-entry strong { display: block; font-size: 13.5px; font-weight: 800; }
.quick-entry small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
@media (min-width: 761px) { .quick-entry small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }

.profile-legacy > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }

/* ---------- 职场网络图谱 ---------- */
.network-panel { margin: 4px 0 22px; }
.network-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.network-head h2 { margin: 5px 0 6px; font-size: 21px; }
.network-graph { display: block; width: 100%; max-width: 680px; margin: 6px auto 0; overflow: visible; }
.net-link { stroke: rgba(245, 196, 81, .22); stroke-width: 1.5; }
.net-link.positive { stroke: rgba(143, 227, 136, .5); }
.net-link.firm { stroke: rgba(160, 196, 255, .45); }
.net-center circle { fill: url(#net-center-grad); stroke: var(--gold-1); stroke-width: 1.5; }
.net-center { filter: drop-shadow(0 0 14px rgba(245, 196, 81, .35)); }
.net-center text { fill: var(--on-gold); font-size: 19px; font-weight: 900; text-anchor: middle; }
.net-node circle { fill: var(--ink-2); stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; cursor: pointer; transition: all .2s ease; }
.net-node text { pointer-events: none; }
.net-node .net-node-icon { font-size: 17px; text-anchor: middle; }
.net-node .net-node-label { fill: var(--paper); font-size: 12.5px; font-weight: 700; text-anchor: middle; }
.net-node .net-node-sub { fill: var(--muted); font-size: 10.5px; text-anchor: middle; }
.net-node.positive circle { stroke: rgba(143, 227, 136, .6); }
.net-node.firm circle { stroke: rgba(160, 196, 255, .55); }
.net-node:hover circle { fill: var(--ink-3); stroke: var(--gold-1); filter: drop-shadow(0 0 10px rgba(245, 196, 81, .4)); }
/* 节点详情：黑金人物档案卡（头部徽记 + 态度胶囊 + 信息栅格 + 引用备注 + 来源脚注） */
.network-detail { max-width: 560px; margin: 16px auto 0; }
.network-detail:empty { display: none; }
.net-card { border: 1px solid var(--line-gold); border-radius: 16px; background: linear-gradient(165deg, #16120b, var(--ink-0) 62%); box-shadow: var(--shadow), 0 0 40px rgba(245, 196, 81, .06); overflow: hidden; animation: net-card-in .28s ease; }
@keyframes net-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.net-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(245, 196, 81, .05); }
.net-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid rgba(245, 196, 81, .45); border-radius: 50%; background: rgba(245, 196, 81, .1); font-size: 17px; }
.net-card-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.net-card-title h3 { margin: 0; color: var(--gold-0); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.net-card-role { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.net-attitude { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 50px; border: 1px solid var(--line); color: var(--paper); font-size: 11.5px; font-weight: 600; }
.net-attitude i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.net-attitude.positive { border-color: rgba(143, 227, 136, .45); color: #b8e8b2; }
.net-attitude.positive i { background: #8fe388; box-shadow: 0 0 8px rgba(143, 227, 136, .8); }
.net-attitude.firm { border-color: rgba(160, 196, 255, .45); color: #b3c9ff; }
.net-attitude.firm i { background: #a0c4ff; box-shadow: 0 0 8px rgba(160, 196, 255, .8); }
.net-card-body { display: grid; gap: 2px; padding: 12px 18px 6px; }
.net-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.net-row:last-child { border-bottom: none; }
.net-row-label { color: var(--muted); font-size: 11.5px; letter-spacing: .03em; }
.net-row-value { color: var(--paper); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.net-row.is-unknown .net-row-value { color: #b8b1a3; font-size: 12px; font-style: italic; }
.net-card-note { margin: 4px 18px; padding: 9px 13px; border-left: 3px solid var(--gold-2); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .04); color: #e4ded0; font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; }
.net-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 18px 14px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.net-card-source { color: #b8b1a3; font-size: 11px; }
@media (max-width: 620px) {
  .network-head { flex-direction: column; }
  .network-graph { max-width: 420px; }
  .net-card-head { flex-wrap: wrap; }
  .net-attitude { order: 3; }
  .net-row { grid-template-columns: 76px minmax(0, 1fr); }
}
.profile-legacy > summary::-webkit-details-marker { display: none; }
.profile-legacy > summary strong { display: block; margin-top: 4px; color: var(--paper); font-size: 15px; }
.profile-legacy > summary small { color: var(--muted); font-size: 11px; text-align: right; }
.profile-legacy section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-legacy section:last-child { border-bottom: 0; }
.profile-legacy h2 { margin: 5px 0 10px; font-size: 21px; }

@media (max-width: 760px) {
  .roxy-says-grid { gap: 0; }
  .roxy-says-grid > div,
  .roxy-says-grid > div:first-child { grid-template-columns: 1fr; gap: 6px; }
  .roxy-says-grid .eyebrow { margin-top: 0; }
  .roxy-says-grid .button { grid-column: 1; margin-top: 4px; }
  .stage-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-card-head { flex-wrap: wrap; }
  .stage-progress-note { margin-left: 0; }
  .stage-skills-layout { grid-template-columns: 1fr; }
  .quick-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-promotion { align-items: flex-start; flex-direction: column; }
  .skill-badges { gap: 8px; }
}
