/* Saved assessment history. Scoped independently from report Overview. */
#screen-results #sec-journey:has(.ah-page) { max-width:1360px!important; margin-inline:auto; }
.ah-page { --ah-line:color-mix(in srgb,var(--text) 12%,transparent); --ah-soft:color-mix(in srgb,var(--blue) 7%,var(--surface)); display:grid; gap:24px; color:var(--text); padding-block:20px 32px; min-width:0; font-family:var(--font-body); }
.ah-page * { box-sizing:border-box; }
.ah-heading,.ah-section-head { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.ah-heading { padding:4px 0 8px; }
.ah-eyebrow { font-size:10px; font-weight:750; letter-spacing:.13em; color:var(--blue); }
.ah-heading h1 { font:600 clamp(27px,3.2vw,43px)/1.12 var(--font-display); letter-spacing:-.045em; margin:12px 0; }
.ah-heading p,.ah-section-head p { font-size:13px; line-height:1.6; margin:5px 0 0; color:var(--text-2); }
.ah-card { border:1px solid var(--ah-line); background:var(--surface); border-radius:23px; min-width:0; overflow:hidden; box-shadow:0 8px 26px color-mix(in srgb,var(--text) 3%,transparent); }
.ah-timeline { position:relative; padding:26px 28px 20px; background:linear-gradient(145deg,var(--ah-soft),var(--surface) 62%); }
.ah-timeline::before { content:''; position:absolute; height:2px; inset:0 0 auto; background:linear-gradient(90deg,var(--teal),var(--blue),transparent); }
.ah-chart-title { display:flex; align-items:center; gap:13px; min-width:0; }
.ah-chart-title .ah-eyebrow { display:block; font-size:9px; margin-bottom:5px; }
.ah-chart-icon { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border:1px solid color-mix(in srgb,var(--blue) 20%,transparent); border-radius:13px; color:var(--blue); background:var(--surface); }
.ah-chart-icon svg { width:21px; height:21px; }
.ah-scale-label { display:flex; align-items:center; gap:5px; flex-shrink:0; border:1px solid var(--ah-line); border-radius:9px; padding:7px 10px; background:var(--surface); }
.ah-scale-label b { color:var(--text); font-family:var(--font-display); }
.ah-page h2 { font:600 19px/1.3 var(--font-display); letter-spacing:-.025em; margin:0; }
.ah-section-head>span { color:var(--muted); font-size:11px; }
.ah-btn,.ah-icon-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:11px 16px; border:1px solid var(--ah-line); background:var(--surface); color:var(--text); border-radius:12px; font:600 12px/1.4 var(--font-body); cursor:pointer; text-align:center; }
.ah-btn:hover,.ah-icon-btn:hover { background:var(--ah-soft); border-color:var(--blue); }
.ah-btn svg,.ah-icon-btn svg,.ah-text-btn svg,.ah-safety h3 svg { width:17px; height:17px; flex-shrink:0; }
.ah-icon-btn { width:44px; padding:8px; }
.ah-icon-btn:disabled { opacity:.3; cursor:default; }
.ah-page :focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.ah-chart-scroll { overflow-x:auto; margin-top:13px; scrollbar-width:thin; padding:4px 0; }
.ah-chart { position:relative; height:300px; }
.ah-chart>svg { position:absolute; width:100%; height:300px; inset:0; pointer-events:none; }
.ah-gridline { stroke:var(--ah-line); stroke-dasharray:2 7; stroke-width:1; }
.ah-gridline--base { stroke-dasharray:none; }
.ah-line { stroke:color-mix(in srgb,var(--blue) 52%,transparent); stroke-width:2; fill:none; stroke-dasharray:4 5; }
.ah-axis { position:absolute; font:10px var(--font-body); color:var(--muted); transform:translateY(-50%); }
.ah-point { position:absolute; top:0; width:64px; height:297px; transform:translateX(-50%); background:none; border:0; padding:0; cursor:pointer; color:var(--text-2); border-radius:13px; }
.ah-point-lane { position:absolute; inset:5px -3px 0; border:1px solid transparent; border-radius:14px; pointer-events:none; }
.ah-point.is-selected .ah-point-lane { background:linear-gradient(180deg,color-mix(in srgb,var(--blue) 7%,transparent),color-mix(in srgb,var(--blue) 3%,transparent)); border-color:color-mix(in srgb,var(--blue) 20%,transparent); }
.ah-score-column { position:absolute; left:50%; width:28px; transform:translateX(-50%); border-radius:7px 7px 0 0; background:linear-gradient(180deg,color-mix(in srgb,var(--blue) 23%,transparent),color-mix(in srgb,var(--blue) 4%,transparent)); pointer-events:none; }
.ah-point.is-selected .ah-score-column { background:linear-gradient(180deg,color-mix(in srgb,var(--blue) 45%,transparent),color-mix(in srgb,var(--blue) 7%,transparent)); }
.ah-point i { position:absolute; left:50%; transform:translate(-50%,-50%); width:10px; height:10px; border:2px solid var(--blue); border-radius:50%; background:var(--surface); }
.ah-point.is-selected i { background:var(--blue); box-shadow:0 0 0 5px color-mix(in srgb,var(--blue) 13%,transparent); }
.ah-point-value { position:absolute; left:0; right:0; font:650 24px/1.25 var(--font-display); letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.ah-point.is-selected .ah-point-value { color:var(--blue); }
.ah-point-date { position:absolute; top:244px; left:0; right:0; font:650 11px/1.4 var(--font-body); }
.ah-point-date small { display:block; color:var(--muted); font-size:9px; font-weight:550; margin-top:5px; }
.ah-point.is-selected .ah-point-date { color:var(--blue); }
.ah-point.is-unscored .ah-point-value { color:var(--muted); }
.ah-chart-footer { border-top:1px solid var(--ah-line); padding-top:15px; display:flex; align-items:start; justify-content:space-between; gap:20px; font-size:11px; color:var(--text-2); line-height:1.7; }
.ah-chart-hint { display:inline-flex; align-items:center; gap:8px; }
.ah-chart-hint svg { width:15px; height:15px; color:var(--blue); flex-shrink:0; }
.ah-selection-label { display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--blue); }
.ah-selection-label i { width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.ah-workspace { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:22px; }
.ah-matrix-card .ah-section-head { padding:25px 25px 20px; align-items:start; border-bottom:1px solid var(--ah-line); }
.ah-paging { display:flex; gap:6px; }
.ah-paging:has(>button:first-child:disabled):has(>button:last-child:disabled),
.ah-matrix-card:has(.ah-paging>button:first-child:disabled):has(.ah-paging>button:last-child:disabled) .ah-window-note { display:none; }
.ah-table-scroll { overflow:auto; scrollbar-width:thin; }
.ah-table { width:100%; border-collapse:separate; border-spacing:0; font-size:12px; }
.ah-table caption { caption-side:bottom; padding:16px 22px 0; text-align:left; color:var(--muted); font-size:10px; line-height:1.7; }
.ah-table th,.ah-table td { border-bottom:1px solid var(--ah-line); text-align:center; padding:12px 9px; }
.ah-table th:first-child { text-align:left; padding-left:23px; position:sticky; left:0; z-index:1; background:var(--surface); min-width:155px; max-width:210px; }
.ah-table tbody th { font-weight:600; font-size:12px; line-height:1.5; }
.ah-table thead th { font-size:10px; font-weight:600; vertical-align:bottom; background:color-mix(in srgb,var(--text) 2%,var(--surface)); }
.ah-table th button { border:0; background:none; color:var(--text-2); cursor:pointer; font:inherit; min-width:60px; min-height:44px; }
.ah-table th button span { display:block; white-space:nowrap; margin-top:4px; }
.ah-table .is-selected { background:var(--ah-soft); }
.ah-table thead .is-selected { box-shadow:inset 0 3px var(--blue); }
.ah-table .is-selected button { color:var(--blue); }
.ah-table td small { color:var(--muted); font-size:9px; }
.ah-cell-score { display:inline-flex; align-items:center; justify-content:center; width:39px; min-height:32px; border:1px solid color-mix(in srgb,var(--blue) 9%,transparent); border-radius:8px; background:color-mix(in srgb,var(--blue) var(--ah-strength),transparent); font-weight:650; font-variant-numeric:tabular-nums; }
.ah-unscored { color:var(--muted); }
.ah-load-status { padding:8px 23px; font-size:11px; color:var(--text-2); line-height:1.7; }
.ah-load-status:empty { display:none; }
.ah-window-note { padding:14px 23px; margin:0; color:var(--muted); font-size:10px; }
.ah-record { padding:25px; border-top:3px solid var(--blue); background:linear-gradient(165deg,var(--ah-soft),var(--surface) 38%); }
.ah-record h2 { font-size:24px; margin:12px 0 7px; }
.ah-model { font-size:10px; color:var(--muted); overflow-wrap:anywhere; margin:0 0 23px; }
.ah-primary { width:100%; color:var(--blue); background:var(--ah-soft); border-color:color-mix(in srgb,var(--blue) 25%,transparent); }
.ah-safety { border-top:1px solid var(--ah-line); margin-top:25px; padding-top:22px; }
.ah-safety h3 { display:flex; align-items:center; gap:8px; font:600 14px var(--font-display); margin:0; }
.ah-safety h3 svg { color:var(--teal); }
.ah-safety>p,.ah-exclusions p { font-size:12px; line-height:1.75; color:var(--text-2); margin:11px 0; }
.ah-exclusions details { border:1px solid var(--ah-line); padding:0 12px; border-radius:10px; margin-top:9px; background:var(--surface); }
.ah-exclusions summary { cursor:pointer; font-size:12px; font-weight:600; line-height:1.6; min-height:44px; align-content:center; padding:11px 0; }
.ah-exclusions p { overflow-wrap:anywhere; }
.ah-text-btn { display:inline-flex; align-items:center; gap:7px; min-height:44px; font:600 11px/1.5 var(--font-body); color:var(--blue); background:none; border:0; padding:8px 0; cursor:pointer; text-align:left; }
/* Loading is real request state. This entire subtree is removed on ready or
	error; cached revisits never play a synthetic loading sequence. */
.ah-matrix-loading { padding:25px; }
.ah-loader-head { display:flex; align-items:center; gap:15px; margin-bottom:25px; }
.ah-loader-head>div { min-width:0; }
.ah-loader-head strong { font:600 15px/1.5 var(--font-display); color:var(--text); }
.ah-loader-head p { font-size:11px; line-height:1.7; color:var(--text-2); margin:5px 0 0; }
.ah-loader-orbit { display:grid; place-items:center; position:relative; width:46px; height:46px; flex:0 0 46px; border-radius:50%; color:var(--blue); background:var(--ah-soft); }
.ah-loader-orbit>svg { width:19px; height:19px; }
.ah-loader-orbit::before { content:''; position:absolute; inset:0; border:2px solid color-mix(in srgb,var(--blue) 12%,transparent); border-top-color:var(--blue); border-right-color:var(--teal); border-radius:50%; animation:ah-loader-turn 1.8s linear infinite; }
.ah-loader-count { margin-left:auto; color:var(--muted); font-size:10px; white-space:nowrap; border:1px solid var(--ah-line); padding:6px 9px; border-radius:8px; }
.ah-loader-preview { position:relative; overflow:hidden; border:1px solid var(--ah-line); border-radius:13px; background:var(--surface); }
.ah-loader-preview::after { content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--blue) 7%,transparent) 48%,transparent 75%); transform:translateX(-100%); animation:ah-loader-sweep 2.2s ease-in-out infinite; pointer-events:none; }
.ah-loader-dates { display:flex; align-items:center; padding:13px; gap:14px; background:var(--ah-soft); border-bottom:1px solid var(--ah-line); font-size:10px; color:var(--text-2); }
.ah-loader-dates>span { flex:1; text-align:center; min-width:0; }
.ah-loader-dates>span:first-child { flex:1.8; text-align:left; font-size:8px; letter-spacing:.08em; }
.ah-loader-dates small { display:block; font-size:9px; margin-top:4px; white-space:nowrap; }
.ah-loader-row { display:grid; grid-template-columns:1.8fr repeat(var(--ah-loading-cols),minmax(0,1fr)); gap:14px; align-items:center; padding:13px; min-height:49px; border-bottom:1px solid var(--ah-line); }
.ah-loader-row:last-child { border-bottom:0; }
.ah-loader-row>span { display:flex; justify-content:center; }
.ah-loader-row>span:first-child { justify-content:flex-start; }
.ah-loader-row i { display:block; width:28px; max-width:100%; height:23px; border-radius:6px; background:color-mix(in srgb,var(--blue) 7%,var(--surface)); }
.ah-loader-row>span:first-child i { height:9px; border-radius:4px; background:var(--fill-1); }
@keyframes ah-loader-turn { to { transform:rotate(360deg); } }
@keyframes ah-loader-sweep { to { transform:translateX(100%); } }
body.mpaged #sec-journey:not(.mpage-active) .ah-loader-orbit::before,
body.mpaged #sec-journey:not(.mpage-active) .ah-loader-preview::after { animation-play-state:paused; }
@media(hover:hover) and (pointer:fine) {
 .ah-point:hover .ah-point-lane { border-color:color-mix(in srgb,var(--blue) 25%,transparent); background:color-mix(in srgb,var(--blue) 5%,transparent); }
 .ah-point:hover .ah-point-value { color:var(--blue); }
 .ah-table tbody tr:hover td { background:color-mix(in srgb,var(--blue) 4%,var(--surface)); }
}
.ah-empty { color:var(--text-2); padding:24px; font-size:13px; line-height:1.7; }
.ah-disclaimer { font-size:10px; line-height:1.7; color:var(--muted); margin:0; text-align:center; }
@media(max-width:1024px) { .ah-workspace { grid-template-columns:minmax(0,1fr) 260px; gap:16px; } .ah-record { padding:20px; } }
@media(max-width:760px) { .ah-workspace { grid-template-columns:1fr; } .ah-record { order:-1; display:grid; grid-template-columns:1fr 1fr; column-gap:25px; } .ah-record>.ah-eyebrow,.ah-record>h2,.ah-record>.ah-model,.ah-record>.ah-btn { grid-column:1; } .ah-safety { grid-column:2; grid-row:1/5; margin:0; padding:0 0 0 20px; border-top:0; border-left:1px solid var(--ah-line); } }
@media(max-width:640px) { .ah-page { gap:17px; padding-top:12px; } .ah-heading { align-items:start; flex-direction:column; gap:15px; } .ah-heading h1 { font-size:29px; } .ah-timeline { padding:20px 16px 16px; } .ah-chart-footer { flex-direction:column; gap:7px; } .ah-card { border-radius:18px; } .ah-page h2 { font-size:17px; } .ah-matrix-card .ah-section-head { padding:20px 16px 10px; gap:10px; } .ah-section-head p { font-size:11px; } .ah-table th:first-child { min-width:140px; padding-left:16px; } .ah-record { display:block; } .ah-record h2 { font-size:24px; } .ah-safety { border-left:0; border-top:1px solid var(--ah-line); padding:20px 0 0; margin-top:20px; } }
@media(max-width:640px) {
 .ah-chart-title { gap:9px; } .ah-chart-icon { width:34px; height:38px; flex-basis:34px; border-radius:10px; }
 .ah-chart-title .ah-eyebrow { font-size:8px; } .ah-chart-title h2 { font-size:16px; }
 .ah-timeline .ah-section-head { gap:10px; align-items:center; } .ah-scale-label { display:block; text-align:center; padding:6px; font-size:9px!important; }
 .ah-scale-label b { display:block; font-size:12px; } .ah-point { width:48px; } .ah-point-value { font-size:22px; }
 .ah-score-column { width:23px; } .ah-point-date { font-size:10px; } .ah-chart-footer { font-size:10px; }
 .ah-matrix-loading { padding:20px 15px; } .ah-loader-head { gap:11px; margin-bottom:20px; } .ah-loader-head strong { font-size:14px; }
 .ah-loader-count { display:none; } .ah-loader-orbit { width:39px; height:39px; flex-basis:39px; }
 .ah-loader-dates { gap:7px; padding:12px 9px; } .ah-loader-dates>span:first-child { font-size:7px; } .ah-loader-dates small { font-size:8px; }
 .ah-loader-row { gap:7px; padding-inline:9px; } .ah-loader-row i { width:24px; height:21px; }
}
@media(prefers-reduced-motion:reduce) { .ah-page *,.ah-page *::before,.ah-page *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } .ah-loader-preview::after { display:none; } }

@media (min-width: 1025px) {
	body.myai-open #sec-journey { padding-inline: 18px; }
	body.myai-open .ah-workspace { grid-template-columns: minmax(0, 1fr); }
	body.myai-open .ah-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
	body.myai-open .ah-heading h1 { font-size: 28px; letter-spacing: 0; }
	body.myai-open .ah-section-head { flex-wrap: wrap; gap: 12px; }
	body.myai-open .ah-timeline { padding: 20px 16px 16px; }
	body.myai-open .ah-chart-footer { flex-direction: column; gap: 8px; }
	body.myai-open .ah-matrix-card .ah-section-head { padding: 20px 16px; }
	body.myai-open .ah-record { padding: 20px; }
	body.myai-open .ah-page :is(button, p, h1, h2, h3) { overflow-wrap: anywhere; }
}