/* Compact editorial ending comparisons; source data and stable IDs stay intact. */
.ending-grid[data-ending-layout="compact"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch;margin-top:18px}
.ending-grid[data-ending-layout="compact"]>.ending-card{min-width:0;margin:0;padding:18px;display:grid;grid-template-rows:auto auto 1fr auto;gap:12px;border-radius:14px}
.ending-grid[data-ending-layout="compact"] .ending-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
.ending-grid[data-ending-layout="compact"] .ending-card-head h2{margin:0;color:#ffd0e7;font-size:20px;line-height:1.22;letter-spacing:-.02em;overflow-wrap:anywhere}
.ending-grid[data-ending-layout="compact"] .ending-tone{font-size:11px;line-height:1.3;padding:4px 8px;gap:5px}
.ending-scale{min-width:0;padding:0 2px 5px}
.ending-scale-labels{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:10px;line-height:1.3;color:var(--muted)}
.ending-scale-track{position:relative;height:7px;border-radius:99px;background:linear-gradient(90deg,#ed7196,#d69b9e 40%,#c6b791 58%,#83d7c7);box-shadow:inset 0 0 0 1px #ffffff12}
.ending-scale-marker{position:absolute;top:50%;width:11px;height:15px;transform:translate(-50%,-50%);border:2px solid #fff3f6;border-radius:4px;background:#25182e;box-shadow:0 1px 5px #0006}
.ending-grid[data-ending-layout="compact"] .ending-section{min-width:0;margin:0;padding:12px;background:rgba(13,9,20,.32);border:1px solid var(--line2);border-radius:10px}
.ending-grid[data-ending-layout="compact"] .ending-section h3{margin:0 0 8px;font-size:12px;line-height:1.35;color:#ffda99}
.ending-grid[data-ending-layout="compact"] .ending-outcome h3{color:#a7e4eb}
.ending-grid[data-ending-layout="compact"] .ending-section p,.ending-grid[data-ending-layout="compact"] .ending-requirements{margin:0;font-size:13px;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.ending-grid[data-ending-layout="compact"] .ending-requirements{padding-left:17px}
.ending-requirements li+li{margin-top:5px}
.ending-requirements li::marker{color:#ed9dc6}
@supports(grid-template-rows:subgrid){.ending-grid[data-ending-layout="compact"]>.ending-card{grid-template-rows:subgrid;grid-row:span 4}}
@media(max-width:1000px){.ending-grid[data-ending-layout="compact"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.ending-grid[data-ending-layout="compact"]{grid-template-columns:minmax(0,1fr);gap:14px}.ending-grid[data-ending-layout="compact"]>.ending-card{padding:16px}.ending-grid[data-ending-layout="compact"] .ending-card-head h2{font-size:21px}}

/* Actual profile tiers are separate from the editorial ending-outcome scale. */
.criminal-profile-help{margin:18px 0;padding:22px;border-color:rgba(190,144,230,.32)}
.criminal-profile-help>h2{font-size:23px;line-height:1.25;color:#ffd0e7;margin:0 0 10px}
.criminal-profile-help p{font-size:14px;line-height:1.55;margin:10px 0}
.profile-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:20px 0 16px}
.profile-stage{--profile-color:#f8df94;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:14px 6px;border:1px solid var(--line2);border-top:4px solid var(--profile-color);border-radius:11px;background:rgba(14,9,22,.35);text-align:center}
.profile-tier-1{--profile-color:#ffa45e}.profile-tier-2{--profile-color:#bb82ff}.profile-tier-3{--profile-color:#ced2dc}.profile-tier-4{--profile-color:#83818c}
.profile-stage svg{display:block;width:34px;height:34px;color:var(--profile-color)}
.profile-stage strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.profile-stage small{font-size:11px;line-height:1.3;color:var(--muted)}
.criminal-profile-help .profile-goal{color:#f8df94;font-weight:600}
.profile-advice{padding-left:20px;font-size:14px;line-height:1.55;margin:14px 0}
.profile-advice li+li{margin-top:7px}.profile-advice li::marker{color:#ca9ef0}
.criminal-profile-help .profile-permanent{padding:10px 12px;border-left:3px solid #ee9aab;background:#ed71960a;border-radius:0 8px 8px 0}
.criminal-profile-help .profile-icon-note,.criminal-profile-help .profile-guide-refs{font-size:11px;color:var(--muted)}
@media(max-width:640px){.criminal-profile-help{padding:16px}.criminal-profile-help>h2{font-size:21px}.profile-stages{grid-template-columns:1fr;gap:6px;margin:16px 0}.profile-stage{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;padding:10px 12px;border-top:1px solid var(--line2);border-left:4px solid var(--profile-color);text-align:left}.profile-stage svg{width:26px;height:26px}.profile-stage strong{font-size:13px}.profile-stage small{font-size:10px;text-align:right}.criminal-profile-help p,.profile-advice{font-size:13px}}

.profile-improvement{border-top:1px solid var(--line2);margin-top:14px;padding-top:4px}.profile-improvement>summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600;color:#f2afd1;cursor:pointer;list-style:none}.profile-improvement>summary::-webkit-details-marker{display:none}.profile-improvement>summary::after{content:'⌄';margin-left:auto;font-size:18px}.profile-improvement[open]>summary::after{transform:rotate(180deg)}.profile-improvement>summary:focus-visible{outline:2px solid var(--pink);outline-offset:3px;border-radius:6px}
