.character-codex{max-width:1160px;margin:0 auto;padding:35px 0 60px}.character-codex h1{margin:.2em 0;font-size:clamp(2rem,5vw,3.5rem)}.codex-eyebrow,.character-heading small{letter-spacing:.13em;font-size:.7rem;font-weight:700}.codex-review-note{background:#75a1c015;border-left:3px solid #7199b6;border-radius:4px;padding:8px 14px}.codex-tools{flex-wrap:wrap;align-items:end;gap:18px;margin:28px 0;display:flex}.codex-tools label{gap:7px;font-size:.85rem;font-weight:600;display:grid}.codex-tools input,.codex-tools select{color:inherit;background:0 0;border:1px solid #8299a9;border-radius:9px;min-height:44px;padding:12px}.codex-tools input{width:min(300px,80vw)}.codex-tools select option{color:var(--aw-text);background:var(--aw-input)}.codex-tools>span{padding-bottom:12px;font-size:.85rem}.character-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,325px),1fr));gap:20px;display:grid}.character-card{--element:#7d9eac;border:1px solid #8299a94d;border-top:4px solid var(--element);background:#78a2c008;border-radius:14px;flex-direction:column;gap:15px;padding:22px;display:flex}.character-card[data-element=Fire]{--element:#c57759}.character-card[data-element=Earth]{--element:#8ca36a}.character-card[data-element=Water]{--element:#6eabcf}.character-card[data-element=Air]{--element:#a8babe}.character-card[data-element=Avatar]{--element:#b698cd}.character-heading{align-items:center;gap:16px;display:flex}.character-heading img{image-rendering:pixelated;background:#75a1c01a;border-radius:8px}.character-heading h2{margin:4px 0;font-size:1.65rem}.character-heading span,.character-card p{font-size:.94rem;line-height:1.65}.character-card p{margin:0}.character-tags{flex-wrap:wrap;gap:7px;display:flex}.character-tags span{border:1px solid #8299a966;border-radius:20px;padding:4px 9px;font-size:.75rem}.character-card details{border-top:1px solid #8299a94d;padding-top:14px}.character-card summary{cursor:pointer;min-height:32px;font-weight:600}.character-card details p{padding-top:12px}.character-card footer{margin-top:auto;padding-top:4px;font-size:.75rem}.codex-muted{opacity:.85}@media (max-width:600px){.character-codex{padding-top:24px}.character-card{padding:18px}.codex-tools label:first-child,.codex-tools input{width:100%}}.character-codex>nav{margin-bottom:24px}.character-codex>nav a{color:inherit;background:#75a1c022;border-radius:9px;padding:10px 18px;font-weight:600;text-decoration:none;display:inline-block}.character-codex>header{all:unset;color:var(--ink);display:block}.character-codex>header h1,.character-codex>header p{color:var(--ink)}.character-card>footer{all:unset;color:var(--muted);margin-top:auto;font-size:.75rem;display:block}.character-card,.character-codex .codex-tools input,.character-codex .codex-tools select{background:var(--surface);color:var(--ink)}.codex-shell{max-width:1600px;margin:auto;padding:24px clamp(18px,4vw,64px) 50px}.codex-shell .character-codex{padding-top:0}.codex-sections{all:unset;flex-wrap:wrap;gap:8px;max-width:1160px;margin:0 auto 26px;display:flex}.codex-sections a{min-height:44px;color:var(--ink);border:1px solid #0000;border-radius:9px;align-items:center;padding:11px 16px;text-decoration:none;display:inline-flex}.codex-sections a:hover,.codex-sections a[aria-current=page]{background:var(--soft);border-color:var(--line)}.codex-heading-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px;display:flex}.codex-heading-row>header{all:unset;color:var(--ink);display:block}.codex-heading-row>header h1,.codex-heading-row>header p{color:var(--ink)}.codex-heading-row .codex-tools{gap:12px;margin:0}.codex-heading-row .codex-tools input{width:230px}.codex-staff{max-width:1160px;margin:auto}.codex-staff>.character-card{max-width:420px}.codex-staff h1{font-size:2.5rem}.codex-shell>.app{min-height:0}.character-card footer a{color:var(--accent)}@media (max-width:600px){.codex-shell{padding:18px 16px 40px}.codex-sections{gap:4px;margin-bottom:20px}.codex-sections a{padding:9px 12px}.codex-heading-row{gap:18px}.codex-heading-row .codex-tools{width:100%}.codex-heading-row .codex-tools label:first-child{flex:1;width:auto;min-width:170px}.codex-heading-row .codex-tools input{width:100%}.codex-heading-row .codex-tools>span{width:100%;padding-bottom:0}}
