/* Same compact type scale in Basic / Advanced / Career Skills. */
#skillsAll .section-head h2,#skillsCareer .section-head h2,#skillsAdvanced .section-head h2{font-family:inherit;font-size:14px;line-height:1.35}
#skillsAll .skill-name,#skillsCareer .skill-name,#skillsAdvanced .skill-name{font-size:13px;line-height:1.4}
#skillsAll .skill-score,#skillsCareer .skill-score,#skillsAdvanced .skill-score{font-size:20px}
.settings-category233{margin:8px 0;border:1px solid var(--line,#493821);border-radius:12px;background:var(--panel,#201b14);min-width:0}
.settings-category233>summary{cursor:pointer;padding:14px 16px;min-height:48px;box-sizing:border-box;font-size:14px;font-weight:700;color:var(--ink,#eee6d7);overflow-wrap:anywhere}
.settings-category233>.settings-content233{margin:0;padding:0 14px 14px;min-width:0}
.settings-content233 .settings-title233{display:none}
.settings-content233 p{font-size:13px;line-height:1.5;margin:8px 0}
.settings-content233 .backend-grid133{gap:12px}
.settings-content233 button,.settings-content233 input,.settings-content233 select{max-width:100%;box-sizing:border-box}
dialog:has(>.scroll-card233){overflow:hidden;padding:0;max-height:calc(var(--usable-height231,100dvh) - 24px)}
dialog>.scroll-card233{box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;max-height:calc(var(--usable-height231,100dvh) - 28px)}
dialog>.scroll-card233>.persistent-head233{position:sticky;top:-16px;z-index:20;background:var(--panel,#201b14);padding:12px 0;margin-top:-4px;isolation:isolate}
dialog.ui-dialog231>.scroll-card233>.persistent-head233{top:-20px}
.persistent-head233>button{flex:0 0 auto;min-height:44px;min-width:44px}
.gear-drawer-panel85>.gear-drawer-head85{position:sticky;top:0;z-index:20;background:var(--panel,#201b14);padding:12px 0}
.priest-magic233{margin-top:16px}
.priest-panel233{margin:8px 0}
.priest-panel233 p,.priest-spell233 p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.priest-panel233 button{min-height:44px;margin:6px 4px 6px 0;white-space:normal}
.priest-spell233{margin:8px 0;padding:10px;border:1px solid var(--line,#493821);border-radius:10px}
.priest-spell233>summary{cursor:pointer;font-size:14px;min-height:32px}
.priest-status233{border-left:3px solid var(--accent2,#d6b16b);padding:8px}
@media(max-width:390px){dialog.ui-dialog231>.scroll-card233>.persistent-head233{top:-16px}}

/* Prayer cards: distinct entries, readable metadata and a clear right-hand action. */
.prayers231 [data-known-prayers231],[data-prayer-results231]{display:grid;gap:12px;margin-top:14px}
.prayer-card231{margin:0!important;padding:0!important;border:1px solid var(--line,#493821);border-radius:14px;overflow:hidden;background:var(--panel,#201b14);min-width:0}
.prayer-card231>summary{padding:14px 16px;cursor:pointer;min-height:64px;line-height:1.4}
.prayer-card231>summary b{font-size:16px;font-weight:650;overflow-wrap:anywhere}
.prayer-card231>summary small{display:block;font-size:12px;line-height:1.5;margin:5px 0 0 17px;color:var(--muted,#b8ad9b);overflow-wrap:anywhere}
.prayer-card231[open]>summary{border-bottom:1px solid var(--line,#493821)}
.prayer-content235{padding:12px 16px 16px}
.prayer-content235>p,.prayer-content235 details{font-size:14px;line-height:1.6;margin:10px 0}
.prayer-card231 .spell-facts219{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.prayer-card231 .spell-facts219 b{font-size:14px}
.prayer-footer235{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
.prayer-effects235{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 160px;min-width:0}
.prayer-effects235 .spell-chip219{margin:0;white-space:normal;text-align:left}
.prayer-actions235{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
.prayer-actions235 .pray-action235{min-width:104px;min-height:46px;padding:10px 20px;font-size:15px;font-weight:700;border:1px solid var(--gold,#cba45f);border-radius:10px;background:#846329;color:#fff5de;cursor:pointer}
.prayer-actions235 .secondary-btn{min-height:44px}
.priest-lock235{color:var(--muted,#b8ad9b);padding:8px 12px;border-left:3px solid var(--gold,#cba45f)}

/* Species choices need room for complete Talent names on phones. */
#characterCreatorDialog .talent-picks50{display:grid;gap:12px}
#characterCreatorDialog .talent-picks50 label,#characterCreatorDialog .fixed-talent50{grid-template-columns:minmax(0,1fr) 44px;gap:12px;padding:14px;min-width:0}
#characterCreatorDialog .talent-picks50 label>span,#characterCreatorDialog .fixed-talent50>span{font-size:16px;line-height:1.5;overflow-wrap:anywhere;grid-column:1;grid-row:1}
#characterCreatorDialog .talent-picks50 label>select{grid-column:1 / -1;grid-row:2;width:100%;min-width:0;min-height:48px;font-size:16px;padding:12px}
#characterCreatorDialog .talent-picks50 .talent-info-button215{grid-column:2;grid-row:1;align-self:start;margin:0;width:44px;min-width:44px;height:44px}
#characterCreatorDialog .fixed-talent50>b{grid-column:1;grid-row:2;text-align:left;font-size:12px}
.wealth-form236 label{display:grid;gap:10px;font-size:16px}
.wealth-form236 input{box-sizing:border-box;min-height:52px;padding:12px;font-size:20px;border:1px solid #79623b;border-radius:12px;background:#15120d;color:#f2e9d8}
.wealth-actions236{display:flex;gap:12px}
.wealth-actions236 button{flex:1;min-height:48px;font-size:16px;padding:12px;border:1px solid #79623b;border-radius:12px;background:#2a2217;color:#eed395}
.wealth-form236 [role=alert]{color:#f1b6a6;min-height:1.5em}
.career-identity237{display:flex;gap:12px;align-items:stretch;min-width:0}
.identity-actions:has(>.career-identity237){grid-template-columns:1fr}
.career-identity237>.identity-tile{flex:1;min-width:0;width:auto}
.career-progress237{margin-top:12px;width:100%;font-size:14px}
.career-progress237>div{display:flex;justify-content:space-between;gap:8px;align-items:center}
.career-progress237>div>span{font-size:13px}
.career-progress237>div>b{font-size:16px}
.career-progress237 progress{display:block;width:100%;height:10px;margin:8px 0;accent-color:#d5b36b}
.career-progress237>small{font-size:12px;line-height:1.4;white-space:normal}
.career-level237{flex:0 1 140px;min-width:110px;padding:14px 10px;border:1px solid #b69553;border-radius:14px;background:#5b4523;color:#f5e5bc;font-size:14px;font-weight:bold;line-height:1.4;white-space:normal}
.career-level237>small{display:block;margin-top:8px;font-size:12px}
.sword-gear237 p,.sword-roll237 p{font-size:15px;line-height:1.55;white-space:normal}
.sword-test-facts237{display:grid;gap:6px;padding:14px;border:1px solid #79623b;border-radius:12px;margin-bottom:16px}
.sword-test-facts237>span,.sword-description237>small{font-size:13px;color:var(--muted)}
.sword-technique237{margin:12px 0;border:1px solid var(--line,#493821);border-radius:14px;overflow:hidden}
.sword-technique237>summary{padding:16px;min-height:52px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:1.5;color:var(--ink)}
.sword-technique237>summary>b{display:block;margin:6px 0 0 20px;font-size:13px;color:#d5b36b}
.sword-description237{padding:0 16px 16px}
.sword-actions237{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sword-actions237 button,.sword-roll237>button{min-height:48px;padding:12px 16px;border:1px solid #79623b;border-radius:12px;background:#2a2217;color:#eed395;font-size:14px;line-height:1.4;white-space:normal}
.sword-actions237 button:disabled{opacity:.5}
.sword-rules237,.sword-library237,.sword-result237{margin:16px 0}
.sword-rules237>summary,.sword-library237>summary,.sword-result237>summary{padding:12px 0;font-size:15px;line-height:1.5;cursor:pointer}
.sword-roll237>label{display:grid;gap:8px;font-size:15px;margin-top:14px;line-height:1.5}
.sword-roll237 input:not([type=checkbox]){box-sizing:border-box;min-height:48px;padding:12px;font-size:18px;border:1px solid #79623b;border-radius:10px;background:#15120d;color:#f2e9d8}
.sword-roll237>label.sword-confirm237{display:flex;align-items:flex-start;gap:12px}
.sword-confirm237 input{flex:0 0 22px;width:22px;min-height:22px;margin-top:4px}
.sword-roll237 [role=alert]{color:#f1b6a6}
@media(max-width:360px){.career-identity237{gap:8px}.career-level237{min-width:90px;flex-basis:100px;font-size:12px}}
.combat-effects240{margin-bottom:22px}
.combat-effect240{padding:16px;margin:12px 0;border:1px solid #79623b;border-radius:14px;background:#211b13}
.combat-effect-head240{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.combat-effect-head240>div{min-width:0}
.combat-effect-head240 h3{font-family:inherit;font-size:17px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}
.combat-effect-head240 small{font-size:12px;line-height:1.5;color:var(--muted)}
.combat-effect-head240>button{flex:0 0 44px;min-width:44px;height:44px;padding:0;border:1px solid #79623b;border-radius:10px;background:#30261a;color:#f4dfb5;font-size:28px;line-height:1}
.effect-clock240{font-size:15px;font-weight:bold;color:#d9b875;margin:12px 0}
.combat-effect240 details{margin-top:12px;font-size:14px;line-height:1.5}
.combat-effect240 .spell-chips219{gap:8px;flex-wrap:wrap}
.combat-effects240>small{font-size:12px;line-height:1.5;color:var(--muted)}
