body.dcc-release .row-drag-handle,body.dcc-release .gm-drag-handle,body.dcc-release .hotlist-drag-handle,body.dcc-release .tab-drag-handle{color:#b99a3d!important}
body.dcc-release .gm-drag-handle{font-size:24px;width:30px;height:30px}
body.dcc-release .sheet-actions-row .sheet-actions{margin-left:auto}
body.dcc-release .details-top-row{grid-template-columns:repeat(4,minmax(0,1fr))}
.release-siblings{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px;margin-bottom:15px}
@media(max-width:1000px){.release-siblings{grid-template-columns:minmax(0,1fr)}}
.release-siblings[hidden],.release-siblings>section[hidden],.release-party[hidden]{display:none}
.release-section{min-width:0;border:1px solid var(--de-structure);background:var(--de-panel)}
.release-section h2.h{display:flex;justify-content:space-between;gap:8px;font-size:16px;margin:0;padding:8px;color:white!important;background:var(--de-structure)!important;text-transform:uppercase;flex-wrap:wrap}
.release-section table{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--de-panel)}
.release-section th,.release-section td{padding:5px;border:1px solid var(--de-structure);text-align:left}
.release-section input{width:100%;min-width:0;box-sizing:border-box;background:var(--de-input)!important;border:0!important;outline:none;padding:6px}
.release-section input:focus{outline:2px solid var(--de-accent);outline-offset:-2px}
.release-section input:invalid{box-shadow:inset 0 -2px #e74747}
.release-section .release-number{width:85px}
.release-section[data-section="gold"] .release-number{width:127.5px;max-width:40%}
.release-section .release-row-actions{display:flex;gap:8px;padding:8px;flex-wrap:wrap}
body.dcc-release .gm-portrait{position:relative;overflow:hidden}.release-npc-visibility{display:flex;gap:8px;align-items:center;margin-top:10px}
.release-pref{margin:14px 0}.release-pref>label{display:block;margin-bottom:6px}
.release-party{box-sizing:border-box;width:calc(100% - (2 * var(--sheet-frame-gutter)));max-width:var(--sheet-frame-max);margin:16px auto 22px;border:1px solid var(--de-structure);background:var(--de-panel);padding:10px}
.release-party>h2{font-size:16px;margin:0 0 8px}
.release-party-row{display:flex;align-items:stretch;gap:12px;overflow-x:auto;padding-bottom:6px;overscroll-behavior-x:contain}
.release-party-cards{display:flex;flex:0 0 auto;gap:8px;align-items:stretch}
.release-party-cards+.release-party-cards{border-left:var(--dcc-party-divider-width) solid var(--dcc-party-divider-color);padding-left:12px}
.release-party-card{position:relative;box-sizing:border-box;padding:8px;border:1px solid var(--de-structure);display:grid;grid-template-columns:18px 44px minmax(0,1fr);gap:6px;flex:0 0 205px;width:205px;min-width:205px;max-width:205px;font-size:12px;align-items:center}
.release-party-card.dragging{opacity:.45;cursor:grabbing}.release-party-card.drag-before{box-shadow:inset 3px 0 var(--de-accent)}.release-party-card.drag-after{box-shadow:inset -3px 0 var(--de-accent)}
.release-party-portrait{position:relative;width:44px;height:44px;overflow:hidden;background:var(--de-bg)}
.release-party-portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 0%}
.release-party-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;text-align:center;font-size:12px}
.release-party-identity{min-width:0;font-size:12px;line-height:1.35}.release-party-identity>div{margin-top:3px;line-height:1.35}.release-party-identity>b,.release-party-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35!important}
body.dcc-release .release-party-name{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;min-height:0!important;font:700 12px/1.35 "Special Elite",Georgia,serif!important;text-align:left;color:var(--de-text)}
.release-party-stats b{display:block}.release-health{grid-column:1/-1;position:relative;height:22px;border:1px solid var(--de-structure);overflow:hidden;text-align:center}
.release-health-fill{position:absolute;inset:0 auto 0 0;z-index:0}/* Special Elite ink is 2px above its centered line box at the existing 12px size. */
.release-health span{position:absolute;inset:0;padding-top:4px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;z-index:1;color:#fff;line-height:1.35}
.release-dead{font-weight:bold;color:#e74747}.release-death-overlay{position:absolute;inset:0;display:grid;place-items:center;color:#fff;pointer-events:none;overflow:hidden;z-index:3;line-height:1;background:rgba(30,30,30,.58)}
.release-death-overlay>svg{opacity:.9;position:relative;z-index:1;width:80%;height:80%;max-width:190px;max-height:190px;filter:drop-shadow(0 1px 2px #000);pointer-events:none}
#portraitBox{position:relative}.release-group-ready code{display:block;font-size:28px;margin:15px 0}
.release-copy-feedback{min-height:24px}.release-qr{width:280px;max-width:100%;background:white;padding:8px;box-sizing:border-box}
body.dcc-release .release-party-drag{grid-row:1;align-self:stretch;color:#b99a3d!important;cursor:grab;touch-action:none;user-select:none;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:22px;min-height:28px}
body.dcc-release .release-party-drag:focus-visible{outline:2px solid var(--de-accent)}
body.dcc-release #characterHistoryPage .history-table{table-layout:fixed;width:100%}
body.dcc-release #characterHistoryPage .history-table th:nth-child(1){width:32%}
body.dcc-release #characterHistoryPage .history-table th:nth-child(2){width:42%}
body.dcc-release #characterHistoryPage .history-table th:nth-child(3){width:26%}
body.dcc-release #characterHistoryPage .history-table td{vertical-align:middle;overflow-wrap:anywhere;padding:8px}
body.dcc-release #characterHistoryPage .history-table button{padding:7px;min-width:0;font-size:12px}
@media(max-width:700px){body.dcc-release .details-top-row{grid-template-columns:1fr 1fr}.release-siblings{grid-template-columns:1fr}.release-party{width:calc(100% - 16px);margin-top:12px;margin-bottom:18px}body.dcc-release .combat-formula-row.evade-row .combat-title,body.dcc-release .combat-formula-row.evade-row label,body.dcc-release .combat-formula-row.evade-row input,body.dcc-release .combat-formula-row.evade-row .combat-op{font-size:16px!important}}
@media(max-width:430px){body.dcc-release .details-top-row{grid-template-columns:1fr}}

/* Round 2: scope control styling, scrollbars and HP contrast to the repaired surfaces. */
.release-party-row{scrollbar-color:var(--de-selected) var(--de-panel);scrollbar-width:thin;touch-action:pan-x pan-y}.release-party-row::-webkit-scrollbar{height:10px}.release-party-row::-webkit-scrollbar-track{background:var(--de-panel)}.release-party-row::-webkit-scrollbar-thumb{background:var(--de-selected);border:2px solid var(--de-panel);border-radius:5px}.release-party-row::-webkit-scrollbar-thumb:hover{background:var(--de-accent)}
.release-party-pointer-ghost{position:fixed;z-index:1000;pointer-events:none;opacity:.85;background:var(--de-panel);overflow:hidden}.release-party-card:focus-within{outline-offset:2px}
body.dcc-release .release-section table,body.dcc-release .release-section td{background:var(--de-input)}body.dcc-release .release-section input{appearance:none;border:0!important;border-radius:0;box-shadow:none;color:var(--de-text)!important;outline:none}body.dcc-release .release-section input:focus-visible{outline:2px solid var(--de-accent);outline-offset:-2px}body.dcc-release .release-section input:invalid{box-shadow:inset 0 -2px var(--de-error)}
body.dcc-release #health [data-health-value],body.dcc-release [data-health-group] [data-health-value],body.dcc-release .gm-resource-bar[data-bar="hp"] .gm-resource-percent,body.dcc-release .release-health>span{color:#fff!important;text-shadow:0 1px 1px rgba(15,15,15,.9),0 0 1px rgba(15,15,15,.85)}
.history-date-separator{white-space:pre}.history-date,.history-time{white-space:nowrap}@media(max-width:700px){.history-date,.history-time{display:block}.history-date-separator{display:none}}
body.dcc-release .gm-card.release-explicit-dead:not(.dragging){opacity:1}
