/* Shared open history rail for analysis forms and reports. */
.career-analysis-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start;max-width:1100px}
.career-analysis-workspace[data-career-analysis]{max-width:100%;margin-top:16px}
.career-analysis-history-shortcut{display:none}.career-analysis-heading .career-analysis-balance{margin-left:auto}
.career-analysis-main,.career-report-main{min-width:0}
.career-analysis-workspace>.career-analysis-panel{width:auto;margin:0 0 36px}
.career-analysis-history{min-width:0;margin:0;padding:18px 0 18px 20px;border:0;border-left:1px solid var(--line);font-size:.82rem}
.career-analysis-history h2{margin:0 0 12px;font:650 1.05rem/1.3 var(--cc-font-ui);letter-spacing:-.02em}
.career-analysis-history-list{display:grid;gap:0;margin:12px 0;padding:0;list-style:none}
.career-analysis-history-item{position:relative;min-width:0;padding:12px 26px 12px 0;border-bottom:1px solid var(--line)}
.career-analysis-history-button{display:grid;gap:5px;min-width:0;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.career-analysis-history-button strong{font-weight:600;font-size:.86rem;line-height:1.35}
.career-analysis-history-button span,.career-analysis-history-empty,.career-analysis-history-status{color:var(--muted);font-size:.75rem;line-height:1.5}
.career-analysis-history-button:hover strong{color:var(--accent)}
.career-analysis-history:not([data-expanded=true]) .career-analysis-history-item:nth-child(n+6),.career-analysis-history:not([data-expanded=true]) [data-career-history-more]{display:none}
.career-analysis-history summary{display:flex;align-items:center;min-height:36px;cursor:pointer;color:var(--accent);font-size:.8rem;font-weight:600;list-style:none}
.career-analysis-history summary::-webkit-details-marker{display:none}
.career-analysis-history-actions{position:absolute;right:0;top:7px;z-index:1}
.career-analysis-history-actions summary{justify-content:center;min-width:28px;font-size:1.2rem}
.career-analysis-history-actions[open]{min-width:150px;padding:0 8px 8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 8px 20px #0001}
.career-analysis-history-actions[open] summary{justify-content:end}
.career-analysis-history-actions .button{display:block;width:100%;min-height:36px;padding:7px 9px;margin-top:4px;font-size:.75rem;text-align:left}
.career-analysis-history-filters{display:grid;gap:10px;margin-top:10px}
.career-analysis-history-filters label{display:grid;gap:5px;min-width:0;font-size:.75rem}
.career-analysis-history-filters input,.career-analysis-history-filters select{width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid var(--control-border);border-radius:var(--radius);color:var(--ink);background:var(--surface);font:inherit}
.career-analysis-history-options{display:grid;gap:10px;margin:8px 0}
.career-analysis-history .button{min-height:36px;padding:8px 10px;font-size:.75rem}
.career-analysis-history :is(a,button,summary,input,select):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.career-analysis-history [data-career-history-status]:empty{display:none}
.career-report-main .career-report-actions,.career-report-main .career-report-section,.career-report-main .career-report-score,.career-report-main .career-report-details{padding:20px}
.career-analysis-main .career-analysis-heading{align-items:center}.career-analysis-main .career-analysis-fields{gap:14px}
@media(max-width:960px){.career-analysis-workspace{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.career-analysis-history{padding-left:16px}}
@media(max-width:760px){.career-analysis-history-shortcut{display:inline-flex;align-items:center;min-height:44px}.career-analysis-heading .career-analysis-balance{margin-left:0}.career-analysis-workspace{grid-template-columns:minmax(0,1fr);gap:8px}.career-analysis-history{padding:18px 0;border-left:0;border-top:1px solid var(--line)}.career-analysis-workspace>.career-analysis-panel{margin-bottom:12px}.career-analysis-history-list{margin-top:8px}.career-analysis-history :is(summary,.button){min-height:44px}.career-analysis-history-actions summary{min-width:44px}.career-analysis-history-item{padding-right:44px}}
@media(prefers-reduced-motion:no-preference){.career-analysis-history-button strong{transition:color .15s}.career-analysis-history-actions[open]{animation:history-reveal .12s ease-out}@keyframes history-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}}

@media print{.career-analysis-history{display:none}.career-analysis-workspace{display:block}}
