.character-prerequisites{margin:4px 0 9px;border:1px solid var(--border,#555);border-radius:5px;font-size:var(--fs11,12px);line-height:1.35}
.character-prerequisites summary{cursor:pointer;padding:5px 8px}
.character-prerequisites summary b{margin-right:8px}
.character-prerequisites p{margin:3px 8px 6px;font-size:var(--fs10,11px)}
.prereq-missing{color:var(--amber,#e0a030)}
.prereq-gm{color:var(--cyan,#7ecde0)}
.prereq-met{color:var(--green,#8fcc8f)}
.prereq-list{list-style:none;margin:0;padding:0 8px 5px;max-height:190px;overflow:auto}
.prereq-list li{display:grid;grid-template-columns:minmax(125px,23%) minmax(0,1fr);gap:3px 10px;padding:4px 0;border-top:1px solid var(--border,#555);overflow-wrap:anywhere}
.prereq-list small{white-space:nowrap}
@media(max-width:600px){.prereq-list li{grid-template-columns:1fr}.prereq-list{max-height:230px}}
@media print{.character-prerequisites{display:none}}
.prereq-buy-actions{display:flex;flex-wrap:wrap;gap:5px;margin:4px 8px 7px}
.prereq-buy-button{font-size:inherit;white-space:normal}
.prereq-buy-dialog{width:min(620px,calc(100vw - 24px));max-height:85vh;box-sizing:border-box;overflow:auto;margin:auto;padding:14px;border:1px solid var(--border,#647480);border-radius:8px;background:var(--bg2,#182832);color:var(--text,#e6edf3);font-size:14px}
.prereq-buy-dialog::backdrop{background:#0009}
.prereq-buy-head,.prereq-buy-foot{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.prereq-buy-head h3{flex:1;margin:0}
.prereq-buy-head button{min-width:40px;min-height:40px}
.prereq-buy-choice{display:grid;gap:4px;margin:10px 0}
.prereq-buy-choice input,.prereq-buy-choice select{box-sizing:border-box;width:100%;max-width:100%;padding:7px;background:var(--bg,#14232b);color:inherit;border:1px solid var(--border,#647480);border-radius:4px;font:inherit}
.prereq-buy-changes,.prereq-buy-remaining ul{padding-left:20px;line-height:1.5;overflow-wrap:anywhere}
.prereq-buy-remaining{padding:8px;border-left:3px solid var(--amber,#e0a030);margin:10px 0}
.prereq-buy-foot{position:sticky;bottom:-14px;padding:12px 0;background:var(--bg2,#182832);border-top:1px solid var(--border,#647480)}
.prereq-buy-foot b{flex:1 0 100%}
@media print{.prereq-buy-dialog,.prereq-buy-button{display:none}}
