body #screenEnemyPicker button[data-current-turn=true]{background:#3e341b!important;border-color:#e8c568!important;color:#ffe8aa!important}body #screenEnemyPicker button[data-current-turn=true]::before{content:"▶";color:#f6cf76;margin-right:5px}body #screenEnemyPicker button[data-current-turn=true][aria-selected=true]::after{background:#111d2e}body .enemy-name-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}body .enemy-name-row .enemy-context{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0!important;border:0;padding:0;flex:0 1 auto;min-width:0}body .enemy-name-row .roll-mode-segment{margin:0}body .enemy-summary-header{gap:8px;padding-bottom:8px}body .enemy-header-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center;margin:0;padding:6px 0 0;border:0;min-width:0}body .enemy-header-details .enemy-hp-strip{display:flex;align-items:center;gap:9px;margin:0;padding:4px 0;border:0;min-width:0;flex-wrap:nowrap}body .enemy-header-details .enemy-hp-track{flex:1;min-width:40px;max-width:240px;height:7px}body .enemy-header-details .enemy-hp-value{gap:4px;flex-shrink:0}body .enemy-header-details .enemy-hp-value input{font-size:20px!important;width:43px!important;box-sizing:border-box;padding:3px 4px!important}body .enemy-header-details .enemy-hp-value>span{font-size:11px}body .enemy-header-details .enemy-hp-controls{gap:5px;flex-shrink:0}body .enemy-header-details .enemy-hp-controls input{width:52px!important;box-sizing:border-box;padding:5px!important;font-size:11px}body .enemy-header-details .enemy-hp-controls button{font-size:11px;padding:5px 7px;min-height:28px}body .enemy-header-details [data-defense-actor]{padding:0!important;min-width:0;gap:8px}body .enemy-header-details .md-defense-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}body .enemy-header-details .md-defense-grid>div{min-width:0;padding-left:8px;gap:4px;border-left:1px solid #40536d;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}body .enemy-header-details .md-defense-grid b{font-size:10px!important;line-height:1.4}body .enemy-header-details .md-defense-grid span{font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}body .enemy-header-details .md-section-head{min-height:0;padding:0!important;border:0}body .enemy-header-details .md-section-head button{font-size:11px;min-height:26px;padding:4px 7px!important}@media(max-width:1150px){body .enemy-header-details{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px}body .enemy-header-details .enemy-hp-controls button{padding:4px 5px}body .enemy-header-details .enemy-hp-track{min-width:30px}}@media(max-width:900px){body .enemy-header-details{grid-template-columns:1fr;gap:8px}body .enemy-header-details .enemy-hp-track{max-width:none}}

body #screenEnemyPicker button[data-current-turn=true]::before{content:none;display:none}
/* Four equally sized reference columns. Dividers have their own padding. */
body .enemy-header-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:stretch}body .enemy-header-details .enemy-hp-strip{grid-column:1;display:grid;grid-template-columns:auto minmax(30px,1fr);gap:6px 10px;padding:6px 12px 6px 0;align-content:center}body .enemy-header-details .enemy-hp-controls{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;min-width:0}body .enemy-header-details .enemy-hp-track{width:100%;min-width:0;max-width:none}body .enemy-header-details [data-defense-actor],body .enemy-header-details .md-defense-grid{display:contents!important}body .enemy-header-details .md-defense-grid>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;box-sizing:border-box;border-left:1px solid #40536d;padding:6px 14px;gap:6px;margin:0}body .enemy-header-details .md-defense-grid b{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px!important;line-height:1.4;margin:0;border:0;padding:0}body .enemy-header-details .md-defense-grid span{max-width:100%;overflow-wrap:anywhere}body .enemy-name-row .enemy-defense-edit{position:static!important;min-height:0!important;border:0!important;margin:0!important;padding:0!important;box-shadow:none!important;display:flex!important;align-items:center;background:transparent}body .enemy-name-row .enemy-defense-edit h4{display:none!important}body .enemy-name-row .enemy-defense-edit button{font-size:11px!important;min-height:28px!important}body .enemy-context>.combat-condition{background:#2b2942;border:1px solid #8f83b6;color:#e1d9f8}body .enemy-context .combat-condition-name,body .enemy-context .combat-condition-name button{color:#e1d9f8}body .enemy-context>.combat-condition:focus{border-color:#c3b5f0}body .enemy-context .combat-condition-excerpt{background:#1b2438;border-color:#8f83b6;color:#e2e8f0}@media(max-width:900px){body .enemy-header-details{grid-template-columns:repeat(4,minmax(0,1fr))}body .enemy-header-details .md-defense-grid>div{padding:6px 8px}body .enemy-header-details .enemy-hp-strip{padding-right:8px;grid-template-columns:1fr}body .enemy-header-details .enemy-hp-track{grid-column:1}}@media(max-width:650px){body .enemy-header-details{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px}}

/* HP has a clear readout, then a single adjustment row. */
body .enemy-header-details .enemy-hp-strip{position:relative;grid-template-columns:1fr;gap:7px;padding:6px 16px 6px 0;align-content:center}body .enemy-header-details .enemy-hp-value{display:flex;align-items:center;gap:5px}body .enemy-header-details .enemy-hp-value label{font-size:11px;letter-spacing:.04em;color:#afc5dc;margin-right:3px}body .enemy-header-details .enemy-hp-value input{width:52px!important;min-height:32px;font-size:23px!important;font-weight:700!important;text-align:center;padding:2px 5px!important;line-height:1.2;background:#14243a;border:1px solid #647b97;border-radius:6px}body .enemy-header-details .enemy-hp-value>span{font-size:13px;color:#b9cbe0}body .enemy-header-details .enemy-hp-track{grid-column:1;max-width:none;width:100%;height:6px;min-width:0;background:#25354b;border-radius:4px}body .enemy-header-details .enemy-hp-controls{display:grid;grid-template-columns:auto 44px minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:center;grid-column:1;min-width:0}body .hp-adjust-label{font-size:11px!important;color:#aebfd5;white-space:nowrap}body .enemy-header-details .enemy-hp-controls input{width:44px!important;min-width:0;min-height:29px;padding:4px!important;text-align:center;font-size:12px!important;background:#0b1626;border-color:#647b97}body .enemy-header-details .enemy-hp-controls button{min-width:0;min-height:29px;font-size:11px!important;padding:4px 5px;white-space:normal;line-height:1.3}body .enemy-header-details .md-defense-grid>div{border-left:0!important;position:relative;padding-left:18px!important;padding-right:10px;min-width:0}body .enemy-header-details .md-defense-grid>div::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:1px;background:#52647d;pointer-events:none}body .enemy-header-details .md-defense-grid b{position:relative;line-height:1.4;word-break:normal;overflow-wrap:normal}@media(max-width:1150px){body .enemy-header-details .enemy-hp-controls{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr)}body .hp-adjust-label{grid-column:1/-1}body .enemy-header-details .enemy-hp-strip{padding-right:10px}body .enemy-header-details .md-defense-grid>div{padding-left:12px!important}body .enemy-header-details .md-defense-grid b{overflow-wrap:anywhere}}

/* Override legacy first-column padding; the divider occupies a dedicated grid track. */
body .enemy-header-details [data-defense-actor] .md-defense-grid>div,body .enemy-header-details [data-defense-actor] .md-defense-grid>div:first-child{display:grid!important;grid-template-columns:1px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:6px;align-content:center;align-items:start;justify-content:normal;padding:8px 10px 8px 0!important;border:0!important;position:relative;min-width:0}body .enemy-header-details [data-defense-actor] .md-defense-grid>div::before{position:static!important;grid-column:1;grid-row:1/3;align-self:stretch;content:"";width:1px;height:auto;background:#52647d;margin:0;top:auto;bottom:auto;left:auto}body .enemy-header-details [data-defense-actor] .md-defense-grid>div>b,body .enemy-header-details [data-defense-actor] .md-defense-grid>div>span{grid-column:2;margin:0;min-width:0;max-width:100%}

body .enemy-header-details [data-defense-actor] .md-defense-grid>div,body .enemy-header-details [data-defense-actor] .md-defense-grid>div:first-child{position:relative;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;padding:8px 12px 10px 16px!important}body .enemy-header-details [data-defense-actor] .md-defense-grid>div::before{position:absolute!important;left:0;top:5px;bottom:6px;width:1px;height:auto;align-self:auto}body .defense-column-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}body .defense-column-heading b{min-width:0;margin:0;font-size:11px!important;line-height:1.4;overflow-wrap:anywhere}body .defense-column-heading .defense-column-edit{flex-shrink:0;font-size:11px!important;min-height:26px;padding:3px 7px;border:1px solid #52647d;border-radius:5px;background:#213047;color:#d5e5f5}body .enemy-header-details [data-defense-actor] .md-defense-grid>div>span{display:block;min-width:0;max-width:100%}
