#playerTurnEnemies[hidden]{display:none!important}#playerTurnEnemies{display:flex;flex-direction:column;min-height:0;flex:1;border:1px solid #40536d;border-radius:12px;background:#111d2e;overflow:hidden;padding:12px;gap:12px}.player-turn-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;border-bottom:1px solid #40536d;padding-bottom:10px}.player-turn-heading h2{font-size:17px;line-height:1.4;margin:0}.player-turn-heading p{font-size:12px;color:#b2c1d4;margin:3px 0 0}.player-enemy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;gap:12px;overflow:auto;min-height:0;padding:1px}.player-enemy-card{min-width:0;border:1px solid #40536d;border-radius:10px;padding:12px;background:#152033}.player-enemy-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.player-enemy-heading h3{font-size:15px;line-height:1.4;margin:0}.player-enemy-card .enemy-hp-strip{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0;margin-bottom:10px}.player-enemy-card .enemy-hp-controls{flex-basis:100%;flex-wrap:wrap}.player-enemy-card .hp-adjust-label{font-size:11px;color:#b2c1d4}.player-enemy-reactions h4{font-size:12px;margin:0 0 8px;color:#c6d9ef}.player-enemy-reactions .md-entry{margin:0;padding:8px 0;border-top:1px solid #35465c}.player-enemy-reactions .md-entry-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.player-enemy-reactions .md-buttons{display:flex;align-items:center;gap:6px;margin:8px 0}.player-enemy-reactions button{border:1px solid #52647d;border-radius:5px;padding:5px 8px;font-size:12px;background:#1e293b}.player-enemy-reactions button:disabled{opacity:.45;cursor:default}.player-enemy-reactions .md-description{font-size:13px;line-height:1.6}.player-enemy-reactions .md-resource-count{font-size:11px;padding:3px 6px;border-radius:5px;background:#153e2b;color:#bbf7d0;white-space:nowrap}.player-enemy-reactions .md-resource-count.is-spent{background:#321c24;color:#fda4af}.player-enemy-reactions .md-refresh-label{margin-left:auto;font-size:11px;color:#b2c1d4}.player-reaction-empty{font-size:12px;line-height:1.5;color:#b2c1d4;margin:8px 0}.is-player-turn #monstersList,.is-player-turn #screenEnemyPicker [data-focus-enemy]{display:none!important}@media(max-width:1100px){.player-enemy-grid{grid-template-columns:1fr}}

.player-enemy-grid{flex:1;grid-auto-rows:auto;align-content:start;align-items:start}.player-enemy-card{display:flex;flex-direction:column;min-height:240px;height:auto;box-sizing:border-box;padding:0;overflow:visible}.player-enemy-fixed{flex-shrink:0;padding:12px 12px 0;background:#152033}.player-enemy-fixed .enemy-hp-strip{margin-bottom:0}.player-enemy-body{flex:none;min-height:0;overflow:visible;padding:12px}.player-enemy-body .player-enemy-reactions+ .player-enemy-reactions{margin-top:12px}.player-enemy-body:focus-visible{outline:2px solid var(--ui-link);outline-offset:-2px}

/* Compact off-turn saves stay below HP; each button shows ability and save bonus. */
body #playerTurnEnemies .player-enemy-saves{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:8px 0 0}
body #playerTurnEnemies .player-enemy-saves button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px!important;min-height:52px!important;min-width:0;padding:5px!important;overflow:visible}
body #playerTurnEnemies .player-enemy-saves .md-save-identity{display:flex;flex-direction:column;align-items:center;gap:0}
body #playerTurnEnemies .player-enemy-saves .md-save-score{display:none}
body #playerTurnEnemies .player-enemy-saves .md-save-name{font-size:11px!important;line-height:1.2}
body #playerTurnEnemies .player-enemy-saves strong{font-size:17px!important;line-height:1.1}
body #playerTurnEnemies .md-result[hidden]{display:none!important}
body #playerTurnEnemies .player-enemy-body>section{padding:0;border:0}

/* Keep compact fixed controls above a naturally sized, scrollable long-content area. */
body #playerTurnEnemies .player-enemy-grid{grid-auto-rows:max-content;align-items:start;align-content:start;overflow:auto}
body #playerTurnEnemies .player-enemy-card{height:auto!important;max-height:none!important;min-height:0;overflow:hidden;flex-shrink:0}
body #playerTurnEnemies .player-enemy-body{height:auto!important;max-height:300px;flex:0 0 auto;overflow-x:hidden;overflow-y:auto;min-height:0}
body #playerTurnEnemies .player-enemy-reactions{height:auto!important;max-height:none!important;min-height:0;overflow:visible}
body #playerTurnEnemies .player-enemy-reactions .md-entry{height:auto!important;max-height:none!important;overflow:visible}

/* Player-turn overview starts immediately; enemy management returns on enemy turns. */
body #enemyMain.is-player-turn #screenEnemyPicker{display:none!important}

/* Stable player-turn roster above one shared off-turn reading area. */
body #playerTurnEnemies{gap:8px;padding:10px}
body #playerTurnEnemies .player-turn-heading{padding-bottom:7px}
body #playerTurnEnemies .player-enemy-grid{display:flex;flex-direction:column;gap:0;flex:2 1 0;min-height:110px;overflow:auto;border:1px solid var(--ui-line);border-radius:7px;padding:0}
body #playerTurnEnemies .player-enemy-card{display:grid;grid-template-columns:minmax(150px,1fr) minmax(250px,1.5fr) minmax(270px,1.5fr) 80px;align-items:center;gap:12px;padding:10px!important;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;min-height:90px;height:auto!important;flex:none;background:var(--ui-surface);overflow:visible}
body #playerTurnEnemies .player-enemy-card:last-child{border-bottom:0}
body #playerTurnEnemies .player-enemy-card.is-overview-selected{background:var(--ui-raised);box-shadow:inset 3px 0 var(--ui-combat)}
body #playerTurnEnemies .player-enemy-fixed{display:contents}
body #playerTurnEnemies .player-enemy-heading{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0;min-width:0;border:0}
body #playerTurnEnemies .player-enemy-heading h3{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
body #playerTurnEnemies .is-defeated .player-enemy-heading h3{color:var(--ui-muted)}
body #playerTurnEnemies .enemy-hp-strip{margin:0;padding:0;min-width:0;gap:5px}
body #playerTurnEnemies .enemy-hp-strip input[id^="current-hp"]{width:58px;height:30px;min-height:30px;font-size:18px}
body #playerTurnEnemies .enemy-hp-controls{gap:4px!important;flex-wrap:nowrap}
body #playerTurnEnemies .enemy-hp-controls button{font-size:11px;padding:4px 6px!important;min-width:0}
body #playerTurnEnemies .hp-adjust-label{display:none}
body #playerTurnEnemies .player-enemy-saves{margin:0;gap:4px}
body #playerTurnEnemies .player-enemy-saves button{height:43px!important;min-height:43px!important;padding:3px!important}
body #playerTurnEnemies .player-enemy-saves strong{font-size:15px!important}
body #playerTurnEnemies .player-offturn-select{padding:6px;border:1px solid var(--ui-line);border-radius:5px;font-size:12px;background:var(--ui-input);color:var(--ui-text);min-height:30px}
body #playerTurnEnemies .player-offturn-select[aria-pressed=true]{background:var(--ui-combat-fill);border-color:var(--ui-combat)}
body #playerTurnEnemies .player-offturn-details{flex:1 1 0;min-height:130px;overflow:auto;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-input)}
body #playerTurnEnemies .player-offturn-details .player-enemy-body{max-height:none;overflow:visible;padding:12px;height:auto!important}
body #playerTurnEnemies .player-offturn-details .player-enemy-body[hidden]{display:none!important}
body #playerTurnEnemies .player-offturn-title{font-size:14px;color:var(--ui-text);margin:0 0 8px}
body #playerTurnEnemies .player-enemy-reactions .md-entry{border:0;border-top:1px solid var(--ui-line);border-radius:0}
@media(max-width:1500px){body #playerTurnEnemies .player-enemy-card{grid-template-columns:minmax(130px,1fr) minmax(230px,1.5fr) 80px;gap:6px 12px}body #playerTurnEnemies .player-enemy-saves{grid-column:1/3;grid-row:2}body #playerTurnEnemies .player-offturn-select{grid-column:3;grid-row:1/3}}

/* Side-by-side roster and off-turn reference with a stable vertical division. */
body #playerTurnEnemies{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);grid-template-rows:auto minmax(0,1fr);gap:8px 12px}
body #playerTurnEnemies .player-turn-heading{grid-column:1/-1}
body #playerTurnEnemies .player-enemy-grid{grid-column:1;grid-row:2;min-height:0;height:100%;box-sizing:border-box}
body #playerTurnEnemies .player-offturn-details{grid-column:2;grid-row:2;min-height:0;height:100%;box-sizing:border-box;border:0;border-left:1px solid var(--ui-line);border-radius:0;background:transparent;padding-left:2px}
body #playerTurnEnemies .player-enemy-card{grid-template-columns:minmax(100px,1fr) minmax(200px,1.4fr) 70px;gap:7px;min-height:0}
body #playerTurnEnemies .player-enemy-saves{grid-column:1/3;grid-row:2}
body #playerTurnEnemies .player-offturn-select{grid-column:3;grid-row:1/3}
@media(max-width:1200px){body #playerTurnEnemies{grid-template-columns:minmax(0,3fr) minmax(230px,2fr)}body #playerTurnEnemies .player-enemy-card{grid-template-columns:minmax(0,1fr) 70px}body #playerTurnEnemies .player-enemy-heading{grid-column:1;grid-row:1;flex-direction:row;align-items:center;justify-content:space-between}body #playerTurnEnemies .enemy-hp-strip{grid-column:1/-1;grid-row:2}body #playerTurnEnemies .player-enemy-saves{grid-column:1/-1;grid-row:3}body #playerTurnEnemies .player-offturn-select{grid-column:2;grid-row:1}}

body #playerTurnEnemies .player-enemy-heading{flex-wrap:wrap}body #playerTurnEnemies .player-enemy-heading .story-tag{font-size:11px;white-space:normal}body #playerTurnEnemies .player-enemy-loot{font-size:11px;padding:4px 7px;min-height:27px;border:1px solid var(--ui-combat);border-radius:6px;background:var(--ui-combat-fill);color:var(--ui-text)}

body #playerTurnEnemies .player-offturn-defenses{margin:0 0 14px;padding:0 0 10px!important;border-bottom:1px solid var(--ui-line)!important}body #playerTurnEnemies .player-offturn-defenses .md-section-head{display:flex!important;margin-bottom:8px}body #playerTurnEnemies .player-offturn-defenses .md-defense-grid{display:grid;grid-template-columns:1fr;gap:10px}body #playerTurnEnemies .player-offturn-defenses .md-defense-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}body #playerTurnEnemies .player-offturn-defenses .md-defense-grid b{font-size:12px;color:var(--ui-muted)}body #playerTurnEnemies .player-offturn-defenses .md-description{display:block!important;font-size:13px}

body #playerTurnEnemies dl.player-offturn-defenses{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}body #playerTurnEnemies .player-offturn-defenses .enemy-defense-fact{display:flex;flex-direction:column;align-items:flex-start;gap:4px}body #playerTurnEnemies .player-offturn-defenses dt{font-size:12px;color:var(--ui-muted)}body #playerTurnEnemies .player-offturn-defenses dd{margin:0;display:flex;flex-wrap:wrap;gap:4px}

/* Compact enemy row: identity/actions, health controls, then one aligned save strip. */
body #playerTurnEnemies .player-enemy-card{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:8px 10px;padding:10px 12px!important}
body #playerTurnEnemies .player-enemy-heading{grid-column:1;grid-row:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:6px 10px;flex-wrap:wrap}
body #playerTurnEnemies .player-enemy-heading h3{margin:0;font-size:13px;line-height:1.4}
body #playerTurnEnemies .player-enemy-facts{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
body #playerTurnEnemies .player-enemy-facts .story-tag{padding:2px 5px;font-size:11px;line-height:1.4}
body #playerTurnEnemies .player-enemy-row-actions{grid-column:2;grid-row:1;display:flex;align-items:center;gap:5px}
body #playerTurnEnemies .player-enemy-row-actions button{min-height:27px;padding:4px 7px;font-size:11px;white-space:nowrap}
body #playerTurnEnemies .player-offturn-select{grid-column:auto;grid-row:auto}
body #playerTurnEnemies .enemy-hp-strip{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0;margin:0}
body #playerTurnEnemies .enemy-hp-controls{flex-basis:auto!important;margin:0!important;margin-left:auto!important}
body #playerTurnEnemies .player-enemy-saves{grid-column:1/-1;grid-row:3;gap:5px;margin:0}
body #playerTurnEnemies .player-enemy-saves button{height:38px!important;min-height:38px!important;gap:1px;padding:3px!important}
body #playerTurnEnemies .player-enemy-saves strong{font-size:14px!important}
@media(max-width:1200px){body #playerTurnEnemies .player-enemy-card{grid-template-columns:minmax(0,1fr)}body #playerTurnEnemies .player-enemy-heading{grid-column:1;grid-row:1}body #playerTurnEnemies .player-enemy-row-actions{grid-column:1;grid-row:2;justify-content:flex-end}body #playerTurnEnemies .enemy-hp-strip{grid-row:3}body #playerTurnEnemies .player-enemy-saves{grid-row:4}}

/* Fill the roster width and keep a comfortable, aligned three-row rhythm. */
body #playerTurnEnemies .player-enemy-grid{align-items:stretch}
body #playerTurnEnemies .player-enemy-card{width:100%;max-width:none;box-sizing:border-box;gap:11px 14px;padding:13px 14px!important}
body #playerTurnEnemies .player-enemy-heading{gap:8px 12px}
body #playerTurnEnemies .player-enemy-heading h3{font-size:14px}
body #playerTurnEnemies .player-enemy-row-actions{gap:7px}
body #playerTurnEnemies .player-enemy-row-actions button{min-height:30px;padding:5px 9px;font-size:12px}
body #playerTurnEnemies .enemy-hp-strip{width:100%;gap:8px}
body #playerTurnEnemies .enemy-hp-controls{gap:6px!important}
body #playerTurnEnemies .player-enemy-saves{width:100%;gap:7px}
body #playerTurnEnemies .player-enemy-saves button{height:44px!important;min-height:44px!important;gap:3px}
body #playerTurnEnemies .player-enemy-saves strong{font-size:16px!important}
