.character-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:2.5rem;align-items:start;margin-top:1.6rem}
.character-layout>div{min-width:0}.character-section{margin-bottom:2rem}.character-section h2{font-size:1.5rem;margin-bottom:.6rem}.character-section>p{color:var(--muted);max-width:65ch}.character-layout .eyebrow{color:var(--gold)}
.character-profile-link{margin-left:auto}.character-profile-link .button{font-size:.9375rem}
.character-profile-table{width:100%;border-collapse:collapse;margin:1rem 0;font-variant-numeric:tabular-nums;font-size:.9375rem}.character-profile-table th,.character-profile-table td{padding:.75rem .5rem;border-bottom:1px solid var(--line);text-align:right}.character-profile-table th:first-child{padding-left:0;text-align:left}.character-profile-table th:last-child,.character-profile-table td:last-child{padding-right:0}.character-profile-table thead th{color:var(--muted);font-size:.8rem;font-weight:500;letter-spacing:.02em}.character-profile-table tbody th{font-weight:500;overflow-wrap:anywhere}.character-profile-table tbody td{white-space:nowrap;color:#efe0c2}.character-profile-table tbody tr:hover{background:#b9955509}.character-profile-table a{color:#eadbb9}.character-profile-table small{display:block;color:var(--muted);font-size:.75rem;font-weight:400;margin-top:.15rem}.character-section .fine-print{font-size:.875rem}.profile-snapshot-note{margin-top:.7rem}
.character-profile-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.character-profile-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.character-profile-table{min-width:520px;margin:.4rem 0}.character-profile-table th:last-child,.character-profile-table td:last-child{min-width:8.5rem}.character-profile-table thead th{padding-top:.25rem;padding-bottom:.25rem}.character-profile-table .profile-sort{display:inline-flex;align-items:center;justify-content:flex-end;gap:.4rem;min-height:44px;margin:0;padding:.45rem .15rem;border:0;border-radius:.2rem;background:transparent;color:inherit;box-shadow:none;font:inherit;letter-spacing:inherit;white-space:nowrap;cursor:pointer}.character-profile-table th:first-child .profile-sort{justify-content:flex-start}.character-profile-table .profile-sort:hover{background:#b9955514;color:#eadbb9}.character-profile-table .profile-sort:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.character-profile-table .profile-sort:disabled{cursor:default;opacity:1}.profile-sort [data-profile-sort-icon]{color:var(--gold);font-size:.875rem;min-width:.65rem}.profile-sort abbr{text-decoration:none}.character-profile-table thead th[aria-sort="ascending"],.character-profile-table thead th[aria-sort="descending"]{color:#eadbb9}.character-section .profile-sort-help{font-size:.8rem;line-height:1.6;margin:.1rem 0 .4rem}.profile-sort-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.profile-missing{color:var(--muted)}
.character-aside{border-left:1px solid var(--line);padding-left:1.8rem}.box-roster{list-style:none;padding:0;margin:.9rem 0}.box-roster li{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.8rem 0}.box-roster li:first-child{padding-top:.3rem}.box-roster strong{font-weight:550;color:#efe0c2}.box-roster span{font-size:.875rem;color:var(--muted)}.character-about{color:#d1d4c9}.character-about p{margin:.65rem 0}
.character-reference{border-top:1px solid var(--line);padding:1.3rem 0}.character-reference h2{font-size:1.4rem}.character-reference p{color:var(--muted)}.character-reference .button-row{gap:1.2rem}
@media(max-width:1050px){.character-layout{gap:1.5rem;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}.character-aside{padding-left:1.2rem}}
@media(max-width:850px){.character-layout{grid-template-columns:1fr}.character-aside{border-left:0;border-top:1px solid var(--line);padding:1.4rem 0 0}.character-profile-link{margin-left:0}.profile-strip{flex-wrap:wrap}.character-profile-link .button{padding:.5rem .8rem}}
@media(max-width:560px){.character-profile-link{flex-basis:100%;padding-top:.35rem}.character-section{margin-bottom:1.6rem}.box-roster li{gap:.6rem}.character-profile-table{font-size:.85rem}.character-profile-table th,.character-profile-table td{padding:.7rem .35rem}.character-profile-table tbody th{font-size:.875rem}.character-profile-table thead th{font-size:.75rem}}
.character-profile-dialog{box-sizing:border-box;width:min(1240px,calc(100vw - 2rem));max-width:none;max-height:calc(100dvh - 2rem);padding:0;border:1px solid #88714c;border-radius:8px;background:#17171a;color:#eee3d1;box-shadow:0 24px 90px #0009}
.character-profile-dialog::backdrop{background:#09090cd9;backdrop-filter:blur(4px)}
.character-preview-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem 1rem;padding:.85rem 1rem;border-bottom:1px solid var(--line)}
.character-preview-header h2{font:1.25rem Georgia,serif;margin:0;color:#e5c992}
.character-preview-actions{display:flex;align-items:center;gap:1rem;font-size:.8rem}
.character-preview-actions button{padding:.35rem .65rem;background:transparent;border:1px solid #79684b;border-radius:4px;color:inherit;cursor:pointer}
.character-profile-dialog iframe{display:block;width:100%;height:min(76dvh,820px);border:0;background:#121215}
.character-preview-note{font-size:.75rem;color:var(--muted);margin:.5rem 1rem .7rem}
@media(max-width:600px){.character-profile-dialog{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem)}.character-preview-header{padding:.65rem .8rem}.character-preview-header h2{font-size:1.1rem}.character-profile-dialog iframe{height:76dvh}.character-preview-note{margin:.4rem .8rem .6rem}}
