/* Same vertical center for both character tokens at every breakpoint. */
.level-die .die-value,.proficiency-token strong{top:44px}
@media(max-width:700px){.level-die .die-value,.proficiency-token strong{top:34.4px}}
@media(max-width:380px){.level-die .die-value,.proficiency-token strong{top:30.8px}}
#modal [data-vform=damage] .modalactions{border-top:0;margin-top:16px;padding-top:0}
#modal .hp-damage-divider{margin:22px 0}
#modal .hp-calculated-maximum{width:100%;min-height:46px;text-align:center;background:var(--paper);color:var(--ink);opacity:1;appearance:textfield;box-sizing:border-box}
#modal .hp-calculated-maximum::-webkit-inner-spin-button,#modal .hp-calculated-maximum::-webkit-outer-spin-button{appearance:none;margin:0}
.hp-source{min-width:0;flex:1;padding:8px 0;text-align:left}
.hp-source small{display:block;margin-top:5px;line-height:1.5;overflow-wrap:anywhere}
.hp-detail-line,.equipment-cap-note{display:block}
.equipment-cap-note{margin-top:5px;font-size:12px;font-weight:400;color:var(--muted)}
.hp-mode-dropdown{position:relative;width:100%;min-width:0}
.hp-mode-field>select[hidden]{display:none!important}
.hp-mode-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--ui-control-height);padding:11px 12px;box-sizing:border-box;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--ui-field-bg);color:var(--ink);font-size:16px;line-height:1.4;list-style:none;cursor:pointer;touch-action:manipulation}
.hp-mode-dropdown>summary::-webkit-details-marker{display:none}
.hp-mode-dropdown>summary::marker{content:""}
.hp-mode-chevron{width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 3px 4px}
.hp-mode-dropdown[open] .hp-mode-chevron{transform:rotate(225deg);margin-bottom:0}
.hp-mode-options{position:absolute;z-index:25;top:calc(100% + 4px);left:0;right:0;box-sizing:border-box;max-height:240px;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--ui-field-bg);box-shadow:0 8px 22px #1d352222}
.hp-mode-options>button{display:block;width:100%;min-height:var(--ui-control-height);padding:11px 12px;text-align:left;white-space:normal;font-size:16px;line-height:1.4;border:0;border-radius:6px;background:transparent;color:var(--ink)}
.hp-mode-options>button.is-selected{background:#304a42;color:#fff}
.hp-mode-options>button:hover:not(.is-selected){background:#edf0e5}
.hp-mode-dropdown>summary:focus-visible,.hp-mode-options>button:focus-visible{outline:3px solid #b89b5e;outline-offset:2px}

/* No trailing divider between the final HP modifier and Add. */
.hp-modifiers .modifier-row:last-child{border-bottom:0}
