:root{--power-class:var(--selection-fill);--power-race:#f4dfc5;--power-spell:#dceaf5;--power-cantrip:#e9e0f3;--power-other:#f2dada}
.character-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.character-sections>div,.character-sections .card,.character-sections .sectionline{min-width:0}
.character-sections .abilities{grid-template-columns:repeat(3,minmax(0,1fr))}
.character-sections .ability .label{letter-spacing:.2px;font-size:12px;overflow-wrap:anywhere}
.character-sections h2{overflow-wrap:anywhere}.character-sections .sectionline>button{flex-shrink:0}
.character-sections .skills{grid-template-columns:minmax(0,1fr)}
.power-tone-class{background:var(--power-class)}.power-tone-race{background:var(--power-race)}.power-tone-spell{background:var(--power-spell)}.power-tone-cantrip{background:var(--power-cantrip)}.power-tone-other{background:var(--power-other)}
.favorites-highlight{background:var(--card)}
.power-entry{padding:14px 12px;border-radius:8px;margin:3px 0;border-bottom-color:#304a4220}
#revision-selected .row,#sheet-picker-results .row{padding:12px;border-radius:8px;margin:5px 0}
.spell-count{font-size:14px;line-height:1.6;margin:10px 0;border-left-color:var(--selected-button)}
.exhaustion-condition{display:block}.exhaustion-condition ul{padding-left:20px;margin:8px 0 0;font-size:14px;line-height:1.6}
.notes-clear{margin-right:auto}.notes-clear-help{margin:8px 0 0!important}
@media(min-width:701px) and (max-width:1150px){.character-sections .abilities{grid-template-columns:repeat(2,minmax(0,1fr))}.character-sections .card{padding:14px}.character-sections .sectionline{gap:8px}.character-sections h2{font-size:22px}}
@media(max-width:700px){.character-sections{grid-template-columns:minmax(0,1fr);gap:0}.character-sections .abilities{grid-template-columns:repeat(3,minmax(0,1fr))}}

.gear-actions>button,.gear-actions>button:first-child{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;flex:0 0 46px;padding:8px;display:inline-flex;align-items:center;justify-content:center}
.gear-attunement{margin:0 0 6px;font-size:13px}

/* Align the paired column headings even when only one has an action button. */
@media(min-width:701px){.character-sections>div>.sectionline{min-height:46px;align-items:center}.character-sections>div>.sectionline>h2{margin:0}}
.background-feature-group .reference-name{text-align:left;line-height:1.5}
.empty-character-state{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.empty-character-state p{margin:0}
