/* Scrollable cards keep stable headers and wrap content instead of widening. */
body .enemy-five-cards .enemy-info-card{overflow-x:hidden;overflow-y:auto;min-width:0;scrollbar-gutter:stable;box-sizing:border-box}body .enemy-five-cards .md-section-head{position:sticky;top:0;z-index:5;flex:0 0 auto;min-height:40px;height:auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;padding:8px 0;margin:0 0 8px;background:#0b1422;border-bottom:1px solid #40536d;box-shadow:0 3px 0 #0b1422;box-sizing:border-box}body .enemy-five-cards .md-section-head h4{display:block;flex:0 0 auto;min-width:0;font-size:12px!important;line-height:1.5;white-space:normal;margin:0;padding:0}body .enemy-five-cards .md-section-head>div{flex:0 1 auto;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;min-width:0}body .enemy-five-cards .md-section-head button{flex-shrink:0;min-height:28px;height:auto;line-height:1.4}body .md-info-badges,body .md-skills,body .md-buttons,body .md-toolbar,body .enemy-context,body .damage-type-badges{min-width:0;max-width:100%;flex-wrap:wrap}body .md-info-badges>span,body .md-skills>span{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}body .md-info-badges>span{flex-wrap:wrap}body .md-skills>span>button.skill-badge{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;flex:1}body .md-skills>span>button:last-child{flex-shrink:0}body .md-passive-badge button{flex-shrink:0}body .md-entry-head{min-width:0;align-items:flex-start;gap:8px}body .md-entry-head>strong{min-width:0;overflow-wrap:anywhere}body .md-entry-head>div{flex-shrink:0}body .md-entry,body .md-description,body .spellcasting-context{min-width:0;max-width:100%;overflow-wrap:anywhere}body .md-description{overflow-x:hidden}body .md-entry .md-buttons button{white-space:normal;overflow-wrap:anywhere;max-width:100%}body #initiativeList{overflow-x:hidden}body .initiative-person{min-width:0}body #screenEnemyPicker button{max-width:100%;white-space:normal;overflow-wrap:anywhere}body .md-stat-label{min-width:0}body .md-stat-tile{min-width:0}body .md-stat-caption{overflow-wrap:anywhere}body .md-loot-table{table-layout:fixed}body .comp-details,body .comp-browse,body #compRelated{overflow-x:hidden}body .comp-rule-table{table-layout:fixed}body .comp-rule-table td{overflow-wrap:anywhere}body .choice-selector,body .choice-grid button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}

body .combat-workspace{max-width:none!important;margin:0!important;width:100%;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box}body .enemy-five-cards .enemy-info-card{display:flex;flex-direction:column;overflow:hidden!important;padding:10px;min-width:0;min-height:0}body .enemy-five-cards .md-section-head{position:static!important;top:auto;flex:0 0 auto;margin:0!important;padding:4px 0 10px;box-shadow:none;z-index:auto}body .enemy-card-body{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:8px 2px 0 0;box-sizing:border-box}body .enemy-card-body>div:first-child{margin-top:0}body #initiativeList{min-width:0;width:100%;box-sizing:border-box;padding-right:2px;overflow-x:hidden!important;scrollbar-gutter:stable}body .initiative-row{grid-template-columns:minmax(0,1fr) 42px 28px;gap:4px;min-width:0;width:100%;box-sizing:border-box;padding:8px 6px}body .initiative-select{padding:0;min-width:0;max-width:100%;background:transparent;border:0;box-sizing:border-box}body .initiative-score{min-width:0;max-width:42px}body .initiative-score input{width:100%!important;min-width:0;max-width:42px;box-sizing:border-box;padding:5px 2px!important}body .initiative-remove{min-width:28px;width:28px;padding:0;box-sizing:border-box}body .initiative-person small{white-space:normal;overflow-wrap:anywhere}body #quickPlayerForm input{min-width:0;box-sizing:border-box}body .combat-workspace>#combatLeftColumn{min-width:0}

/* Selection changes paint, never font metrics or control dimensions. */
body :is(.choice-selector,.choice-grid,.roll-mode-segment,.item-compendium-tabs,.item-kind-selector,.comp-category-buttons) button,body #screenEnemyPicker button,body>header nav button{font-weight:650!important;transition:none!important}body .comp-category-buttons button,body .comp-category-all{position:relative;padding-left:25px!important}body .comp-category-buttons button[aria-pressed=true]::before,body .comp-category-all[aria-pressed=true]::before{position:absolute;left:9px;top:50%;transform:translateY(-50%)}body #screenEnemyPicker button{border-width:1px!important}body .item-kind-selector button{border-width:2px!important;font-weight:650!important}body .item-kind-selector button::before{content:"";display:inline-block;width:13px}body .item-kind-selector button[aria-pressed=true]::before{content:"✓"}body .ui-save-indicator{min-width:116px;box-sizing:border-box;text-align:center}body .enemy-card-body,body #initiativeList{scrollbar-gutter:stable}body .enemy-card-body>*,body .enemy-summary-header>*{animation:none!important}body button:active:not(:disabled){transform:none}body #screenEnemyPicker{align-items:stretch}body .enemy-info-card .md-section-head{min-height:44px}body .enemy-info-card .md-section-head h4{font-weight:700!important}body .md-section-head button{transition:none}

body .md-rules-content{font-size:13px;line-height:1.6;padding:8px 0 0;white-space:normal}body .md-reaction-rule{display:grid;grid-template-columns:1fr;gap:4px;border-left:2px solid #607a99;padding:8px 10px;margin:7px 0;background:#111e30;border-radius:0 5px 5px 0}body .md-reaction-rule>strong{font-size:11px!important;letter-spacing:.04em;color:#f6cf76;text-transform:uppercase}body .md-reaction-rule>div{font-size:13px;line-height:1.6;color:#dce7f4}body .md-rules-content em{color:#d3c5f8}body .md-rules-content strong{color:#f8d897}