/* 2024 play sheet (sheet view), split out of style.css. */
.sheet-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.sheet-controls input,.sheet-controls select{width:auto;flex:0 1 190px;margin:0}.vitals{font-size:17px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}.chip.active{background:linear-gradient(#8a2037,#5c1023);color:#fff6e3;border-color:#c19465}main[data-step=sheet] .grant-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid #bba68140}main[data-step=sheet] .grant-row>span{flex:1 1 260px}
main[data-step=sheet] .roll-ability{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:6px 0;border-bottom:1px solid #bba68140}main[data-step=sheet] .roll-ability strong{flex:1 1 100%}.check-roll-dialog .sheet-controls button{flex:0 0 auto}
main[data-step=sheet] .target-row{padding:8px 0;border-bottom:1px solid #bba68140}
/* Tabs now use the approved .player-workspace .tabs styling from style.css. */
.sheet2024-body{min-width:0}
/* Slot strip: − spends, + restores. */
.slot-pools[hidden],.slot-toggle[hidden]{display:none}
/* Slots that would wrap to a second row fold behind one summary line (slotAccordion in creator-2024-sheet-v1.js) */
.sheet-slot-summary.slots-accordion{flex-wrap:wrap;gap:6px 0}
.slots-accordion .slot-summary-heading{display:none}
.slot-toggle{display:flex;align-items:center;gap:8px;flex:1 1 100%;min-height:32px;padding:2px 4px;border:0;background:transparent;color:inherit;font:inherit;font-size:.875rem;font-weight:700;text-align:left;cursor:pointer;border-radius:4px}
.slot-toggle>.ui-icon{width:20px;height:20px;flex:none;color:#76516b}
.slot-toggle-text{flex:1;min-width:0}
.slot-toggle .stat-chevron{flex:none;transition:transform .15s}
.slot-toggle[aria-expanded=true] .stat-chevron{transform:rotate(180deg)}
.slot-toggle:focus-visible{outline:2px solid #9a2338;outline-offset:1px}
.slots-accordion .slot-pools{flex:1 1 100%;padding-top:6px}
@media(max-width:820px){.slot-toggle{min-height:44px}}
.sheet2024-slots .slot-pool{gap:8px}.sheet2024-slots .slot-step{min-width:34px;min-height:34px;padding:0 8px;font-size:18px;line-height:1}

/* Same source-aware ongoing status in adult and kid sheets. */
.ongoing-effects-status { margin-block: .75rem; }
.ongoing-instance { padding: .5rem; border-block-start: 1px solid currentColor; }
.ongoing-instance p { margin-block: .25rem; overflow-wrap: anywhere; }
.ongoing-reminder { font-weight: 600; }
.k24-status .ongoing-effects-status { flex-basis: 100%; background: #fff; color: #183454; border: 1px solid #bed4eb; border-radius: .75rem; padding: .75rem; }
.ongoing-effects-status .sheet-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.arcane-recovery-choice{margin:8px 0}.arcane-recovery-choice summary{cursor:pointer;font-weight:600}.arcane-recovery-choice label.check{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}.arcane-recovery-choice input[type=number]{width:4.5em;flex:0 0 auto;margin:0}.arcane-recovery-choice[data-over=true]>p.hint:last-child{color:#8a1f1f;font-weight:600}

/* Approved player-sheet shell for the native 2024 sheet: compact ongoing-effects strip inside the quick controls. */
.player-workspace>.ongoing-effects-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0;padding:6px 12px;border:1px solid #bba68199;border-radius:4px;background:#f4eddc66}
.player-workspace>.ongoing-effects-status>h3{margin:0;font-size:1rem}
.player-workspace>.ongoing-effects-status p{margin:0;font-size:.85rem}
.player-workspace>.ongoing-effects-status .sheet-controls{margin:0}
.player-workspace>.ongoing-effects-status .ongoing-instance{flex:1 1 100%;border-block-start:1px solid #bba68155}
.sheet-quick-controls .inspiration-held{margin:0}
.header-speed-extra{display:block;font-size:.72rem;color:#5d4c38}
.sheet-action-rows{display:block}

.inventory-workspace-2024{min-width:0}
.inventory-workspace-2024 .inventory-tools{flex-wrap:wrap}
.inventory-workspace-2024 .inventory-tools .inventory-add{flex:1 1 320px;margin:0}
.player-mode .player-workspace-body:has(.inventory-workspace-2024){padding-bottom:140px;scroll-padding-block:10px 130px}
.inventory-item.is-filtered{display:none}
.inventory-detail-row td{padding:8px 12px 12px;background:#f4eddc66}
.inventory-detail-row[hidden]{display:none}
.inventory-dialog{max-width:min(92vw,460px)}
/* The generic workspace search targets .player-item; keep that hook but undo the legacy list-row grid for table groups. */
.inventory-table tbody.player-item{display:table-row-group;grid-template-columns:none;padding:0;border:0;gap:0}
.inventory-table tbody.player-item[hidden]{display:none}
@media(max-width:640px){.inventory-table tbody.player-item{display:block}}
.spell-workspace-2024{min-width:0}
.player-mode .player-workspace-body:has(.spell-workspace-2024){padding-bottom:140px;scroll-padding-block:10px 130px}
.spell-table .is-filtered{display:none}
.spell-table tr.spell-use-card{padding:0}

/* Spells tab: one compact stats row per spellcasting source (class, Magic Initiate, species ...). */
.spellcasting-summaries{min-width:0}
.spellcasting-summary.spellcasting-source{grid-template-columns:minmax(120px,1.1fr) repeat(3,minmax(0,1fr));padding:6px 10px;margin-bottom:6px;align-items:center}
.spellcasting-summary.spellcasting-source>.spellcasting-source-name{font-size:1rem;line-height:1.2;overflow-wrap:anywhere}
.spellcasting-summary.spellcasting-source strong{font-size:1.125rem}
@media(max-width:640px){.spellcasting-summary.spellcasting-source{grid-template-columns:repeat(3,minmax(0,1fr))}.spellcasting-summary.spellcasting-source>.spellcasting-source-name{grid-column:1/-1}}
.spellcasting-summary.spellcasting-source .spellcasting-ability-icon{display:none}
.spellcasting-summary.spellcasting-source>div>span{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.spellcasting-summary.spellcasting-source small{font-size:.75rem}

/* Rogue, Monk, Sorcerer and Warlock class features (sheet-class-features-a-v1.js): one row per server-derived action. */
.class-features-a .class-feature-row{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .75rem;padding:.35rem 0;border-top:1px solid rgba(58,31,18,.15)}
.class-features-a .class-feature-row:first-of-type{border-top:0}
.class-features-a .turn-cost-badge{padding:.05rem .5rem;border:1px solid #72152b;border-radius:999px;color:#72152b;font-size:.8125rem;font-weight:600;white-space:nowrap}
.class-features-a .class-feature-row small{flex-basis:100%}
.class-features-a .class-feature-passive{margin:.25rem 0}
/* Actions workspace: the class-feature controllers sit under their row heading (sheet-2024-actions-v1.js). */
.actions-2024 .class-action-entry>.action-row-name{padding:8px 8px 0}
.actions-2024 .class-action-entry>.sheet-controls{margin:2px 10px 8px 62px;gap:6px 8px}
.actions-2024 .class-action-entry>.sheet-controls>small{flex:1 1 100%}
.actions-2024 .actions-empty{padding:12px 8px}
.actions-2024 .sheet-action-group[hidden],.actions-2024 .sheet-action-entry[hidden]{display:none}
@media(max-width:640px){.actions-2024 .class-action-entry>.sheet-controls{margin-left:10px}}

/* Inventory popover (sheet-2024-inventory-v1.js): quantity, equip and attune controls and weapon properties. */
.inventory-item-popover .inventory-controls{margin:8px 0}
.inventory-item-popover .inventory-properties{margin:6px 0}
.inventory-item-popover .inventory-quantity{min-width:2ch;text-align:center;font-weight:700}
.inventory-workspace-2024 .inventory-tools select{max-width:min(100%,260px)}
.inventory-workspace-2024 .inventory-tools .inventory-add-item{margin-left:auto}

/* Manage Spells (sheet-2024-spells-v1.js): the same parchment dialog as the inventory dialogs. */
.spell-manage-2024{width:min(640px,calc(100vw - 24px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:22px 24px 18px;border:3px double #a78a55;border-radius:5px;background:#f2e8d2 url('/art/creator-ivory-stained-parchment-v1.png') center/cover;box-shadow:0 8px 35px #1c130c88;color:var(--ink)}
.spell-manage-2024>h3{margin:0 0 8px;font-size:1.5rem}
.spell-manage-2024 .currency-close{position:absolute;top:8px;right:10px}
.spell-manage-head{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-bottom:6px}
.spell-manage-tabs{display:flex;gap:5px}.spell-manage-tabs button.active{background:var(--wine);color:#fff6e2}
.spell-manage-tabs{flex-wrap:wrap}.spell-manage-gm{margin:8px 0;font-size:.9rem}.spell-manage-gm summary{cursor:pointer}.spell-manage-gm input[type=text]{width:100%;margin-top:6px}.spell-manage-pay{display:grid;gap:6px;margin:10px 0}
.spell-swap-prompts{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.spell-manage-filters{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:8px 0}.spell-manage-filters select,.spell-manage-filters input[type=search]{width:auto;flex:1 1 130px;margin:0}
.spell-manage-list{max-height:min(46vh,420px);max-height:min(46dvh,420px);overflow:auto;border:1px solid #bba78088;border-radius:4px;background:#f4eddc66;padding:4px 10px}
.spell-manage-group h4{margin:10px 0 2px;font-size:1rem}
.spell-manage-row{display:flex;gap:10px;align-items:flex-start;padding:5px 0;min-height:40px;border-bottom:1px solid #bba78033}.spell-manage-row.is-locked{opacity:.65}
.spell-manage-row small{display:block;color:#5d4c38}.spell-manage-row input{margin-top:4px}
.spell-manage-2024 .actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
@media(max-width:640px){.spell-manage-2024{padding:18px 12px 14px}}

/* Inventory: carrying capacity bar, search and sort, quantity stepper, Add Item dialog, equip warning (sheet-2024-inventory-*.js). */
.inventory-load{border:1px solid #bba78088;border-radius:6px;padding:9px 12px;margin:0 0 10px;background:#fff9eb40}
.inventory-load-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:.875rem}
.inventory-load-status{margin-left:auto;color:var(--muted)}
.inventory-load-near .inventory-load-status{color:#8a5a12}
.inventory-load-over{border-color:#b5483c}.inventory-load-over .inventory-load-status{color:#8f1d2c;font-weight:bold}
.inventory-load-meter{height:10px;border-radius:5px;background:#c3b79e66;margin:6px 0;overflow:hidden}
.inventory-load-fill{display:block;height:100%;background:var(--moss);border-radius:5px}
.inventory-load-near .inventory-load-fill{background:#c18a2c}.inventory-load-over .inventory-load-fill{background:#8f1d2c}
.inventory-load-note{margin:4px 0 0;font-size:.8125rem}
.inventory-recommendations{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.inventory-recommendation{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.8125rem;padding:6px 8px;border-radius:4px;background:#e9dfc666}
.inventory-recommendation-over{background:#f2d4cc99}
.inventory-find{display:flex;flex:1 1 320px;gap:6px;align-items:center;min-width:0}
.inventory-find input[type=search]{flex:1 1 140px;min-width:0;margin:0}.inventory-find select{margin:0}
.inventory-qty-stepper{display:inline-flex;align-items:center;gap:3px}
.inventory-qty-stepper .inventory-qty-input{width:3.4em;margin:0;padding:4px;text-align:center;min-height:30px}
.inventory-row-description{margin:4px 0 0 52px;font-size:.8125rem}.inventory-row-description summary{font-weight:normal;color:var(--muted)}.inventory-row-description p{margin:4px 0;white-space:pre-line}
.inventory-remove{margin-left:auto}
.inventory-add-dialog{width:min(720px,calc(100vw - 24px))}
.inventory-add-body input[type=search]{width:100%;margin:0 0 8px}
.inventory-add-controls{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}.inventory-add-controls select{width:auto;margin:0;flex:1 1 140px}
.inventory-add-results{list-style:none;margin:6px 0;padding:0;max-height:min(46vh,420px);overflow:auto;border:1px solid #bba78066;border-radius:5px}
.inventory-add-result{border-bottom:1px solid #bba78055}.inventory-add-result.open{background:#fff9eb55}
.inventory-add-head{display:flex;width:100%;gap:10px;align-items:center;text-align:left;border:0;background:none;padding:7px 8px;font:inherit;color:inherit}
.inventory-add-text{display:grid;min-width:0}.inventory-add-text small{color:var(--muted)}.inventory-add-snippet{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-add-result.open .inventory-add-snippet{display:none}
.inventory-add-detail{padding:2px 10px 10px 58px}.inventory-add-qty{align-items:center;flex-wrap:wrap}.inventory-add-qty input{width:5em;margin:0;text-align:center}
.inventory-add-status{min-height:1.3em}
.equip-warning-list{padding-left:20px;display:grid;gap:8px}
.item-use-cost{margin:0 0 12px}.item-use-cost-line{margin:4px 0;font-size:.875rem}.item-use-clash{margin:6px 0}

/* Typed damage, defenses and the Dead state (docs/NATIVE2024-DAMAGE.md). */
.damage-panel{display:grid;gap:8px;margin:0 0 10px}
.damage-parts{display:grid;gap:7px}
.damage-part{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,1.5fr) auto;gap:7px;align-items:center}
.damage-part:not(:has(.damage-part-remove)){grid-template-columns:minmax(70px,1fr) minmax(0,1.5fr)}
.damage-part input,.damage-part select{width:100%;min-width:0;margin:0;min-height:44px}
.damage-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.player-mode main .damage-buttons button,.player-popover .damage-buttons button,.damage-panel .damage-part-remove,.damage-panel .damage-add-part,.damage-panel summary,.damage-panel .damage-defense-list button{min-height:44px;margin:0}
.damage-add-part{justify-self:start}
.damage-preview{margin:0;min-height:1.3em;font-weight:600;color:#5a1a28;overflow-wrap:anywhere}
.damage-ruling-prompt label{display:block}
.damage-adjust,.damage-defenses{border-top:1px solid #bba68155;padding-top:6px}
.damage-adjust summary,.damage-defenses summary{cursor:pointer;display:flex;align-items:center;font-size:.875rem;font-weight:600}
.damage-defense-list{margin:6px 0;padding:0;list-style:none;display:grid;gap:4px;font-size:.875rem}
.damage-defense-list li{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between}
.damage-ruling select,.damage-ruling input[type=text]{flex:1 1 140px;min-height:44px}
.dead-banner{flex:1 1 100%;display:grid;gap:4px;margin:0 0 8px;padding:10px 12px;border:2px solid #5a1a28;border-radius:6px;background:#3b1019;color:#f6e9d0}
.dead-banner strong{font-size:1.25rem;letter-spacing:.04em;text-transform:uppercase}
.dead-banner .sheet-controls{margin:4px 0 0}
.dead-banner button{min-height:44px}
.dead-banner.kid-dead{background:#eef1ff;border:2px solid #aab7f0;color:#1f2a5a;border-radius:14px}
.dead-banner.kid-dead strong{text-transform:none;letter-spacing:0;font-size:1.3rem}
.damage-revive input,.damage-revive select{min-height:44px;width:100%}
.damage-revive button{min-height:44px}
.k24-status>.dead-banner{flex-basis:100%}
@media(max-width:700px){
 /* mobile-lite-v1.css already opens the HP popover as a bottom sheet (fixed, scrolls inside itself); a dimmed page behind it makes the sheet read as one. */
 .player-mode .player-header .player-hp[open]::after{content:'';position:fixed;inset:0;background:#1d130a55;z-index:80}
}
/* Rest menu (sheet-rest-v1.js, docs/NATIVE2024-REST.md): hit dice tracker, Short Rest / Long Rest steps, confirmation. */
.hit-dice{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;margin:6px 0}
.hit-dice-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0}
.hit-die{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;margin:0;border:0;background:none;color:#57495e;--die-fill:#57495e;--die-line:#f1e7d1;flex:none;cursor:default;border-radius:6px;min-width:0;min-height:0}
.hit-die .hit-die-icon{width:100%;height:100%;display:block}
.hit-die.spent{--die-fill:none;--die-line:#57495e;opacity:.75}
.hit-die.spending{color:#9a2338;--die-fill:#9a2338;--die-line:#f1e7d1}
button.hit-die{cursor:pointer}
.hit-dice.pickable .hit-die{width:34px;height:34px}
.hit-dice.pickable button.hit-die:hover{background:#aa865022}
.hit-dice.pickable button.hit-die[aria-pressed=true]{background:#9a233822;outline:2px solid #9a2338;outline-offset:-1px}
.hit-dice-count{font-size:.8125rem;white-space:nowrap}
.rest-flow{display:block}.rest-step{display:flex;flex-direction:column;gap:8px}
.rest-step>*{margin-top:0;margin-bottom:0}
.rest-step-head{display:flex;align-items:center;gap:8px}.rest-step-head h4{margin:0;font-size:1.05rem}.rest-step-title:focus{outline:none}
.rest-back{background:none;border:0;padding:6px 8px 6px 0;color:#75172a;font-weight:600;cursor:pointer;min-height:36px;margin:0}
.rest-choices{display:grid;gap:8px}
.player-popover .rest-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;margin:0;padding:12px 14px;min-height:64px;text-align:left;border:1px solid #aa8650;border-radius:6px;background:#f8f0dd;color:#2a1d12;cursor:pointer}
.rest-choice strong{font-size:1.05rem;color:#75172a}.rest-choice span{font-size:.875rem;line-height:1.3}
.rest-choice:hover:not(:disabled){background:#fff7e2;border-color:#75172a}.rest-choice:disabled{opacity:.55;cursor:not-allowed}
.rest-flash{margin:0;padding:6px 8px;border-left:3px solid #3f7a4c;background:#e4efdc;font-size:.875rem}
.rest-rolls{display:flex;flex-direction:column;gap:6px}
.rest-roll{display:grid;grid-template-columns:minmax(70px,1fr) 78px minmax(70px,1fr);align-items:center;gap:8px;margin:0}
.rest-roll input{width:100%;margin:0;min-height:40px;text-align:center}.rest-roll-result{font-size:.875rem}
.rest-ammo-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;gap:8px;margin:6px 0}.rest-ammo-row select,.rest-ammo-row input{min-width:0;width:100%;min-height:40px;margin:0}
.rest-live{margin:0;font-weight:600}.rest-error{margin:0;color:#8a1f1f;font-weight:600;min-height:0}.rest-error:empty{display:none}
.player-popover .rest-finish,.player-popover .rest-actions button{margin:0}
.rest-finish{min-height:44px;font-weight:700}
.rest-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.rest-actions .rest-finish{flex:1 1 auto}
.rest-undo.link{align-self:flex-start;background:none;border:0;padding:6px 0;text-decoration:underline;color:#75172a;cursor:pointer;min-height:36px;margin:0}
.rest-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.rest-summary{list-style:none;padding:0}.rest-summary li{padding:6px 8px;border-left:3px solid #3f7a4c;background:#e4efdc40}
.rest-done-title:focus{outline:none}.rest-done-title{margin:0;color:#2f6b3f}
.rest-next h5{margin:0 0 4px}.rest-next .spell-swap-prompts{margin:0}
.rest-popover{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto}
.player-header .player-rest .player-popover.rest-popover{width:min(390px,calc(100vw - 32px))}
.rest-flow .arcane-recovery-choice{margin:0;padding:8px;border:1px solid #aa865088;border-radius:5px}
.rest-flow .arcane-recovery-choice input[type=number]{min-height:40px}
/* Phones and touch: a bottom sheet, 44px targets, nothing wider than the screen. */
@media(max-width:760px),(hover:none) and (pointer:coarse){
 .standard-sheet .player-rest[open]>.rest-popover{left:8px!important;right:8px!important;width:auto!important;max-height:min(80vh,calc(100vh - 24px))!important;max-height:min(80dvh,calc(100dvh - 24px))!important;border-radius:14px 14px 4px 4px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
 .rest-flow button,.rest-flow summary,.rest-flow input{min-height:44px}
 .hit-dice.pickable .hit-die{width:44px;height:44px;min-width:44px;min-height:44px}
 .hit-dice.pickable .hit-die-icon{width:30px;height:30px}
 .rest-back{min-width:44px;min-height:44px}.rest-undo.link{min-height:44px}
 .rest-roll{grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr)}
 .rest-flow,.rest-flow *{max-width:100%;box-sizing:border-box}
 .rest-flow .arcane-recovery-choice label.check{flex-wrap:wrap}
 .rest-flow .arcane-recovery-choice input[type=number]{width:5em}
}
/* The header's Rest button styling must not reach the Arcane Recovery summary inside the menu. */
.player-header .player-rest .rest-flow summary{background:none;border:0;box-shadow:none;color:#75172a;padding:6px 0;min-width:0;display:block;white-space:normal;font-weight:600;border-radius:0;text-align:left;font-size:inherit}
.kid-sheet .player-rest .rest-flow summary,.k24-rest .rest-flow summary{background:none;border:0;box-shadow:none;color:#174f85;padding:6px 0;min-width:0;display:block;white-space:normal;font-weight:700}

/* Actions sort control (sheet-action-sort-v1.js): quiet toggle beside the type chips, and a small "Best" mark on the top damage row. */
.sheet-action-toolbar{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.sheet-action-toolbar .sheet-action-filters{flex:1 1 auto}
.sheet-action-toolbar .action-sort-toggle{min-height:44px;padding:7px 12px;font-size:.8125rem;background:#c3b79e44;border:1px solid transparent;opacity:.85;white-space:nowrap}
.sheet-action-toolbar .action-sort-toggle:hover,.sheet-action-toolbar .action-sort-toggle:focus-visible{opacity:1;border-color:#ae826488}
.is-best-action .action-row-name strong::after{content:'Best';margin-left:8px;padding:1px 6px;border:1px solid #ae826499;border-radius:9px;font-size:.6875rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle;opacity:.8}

/* Inventory in play: coins, attunement, potions and spell scrolls (sheet-2024-inventory-play-v1.js) and the Add Item bar. */
.inventory-play-dialog .play-modes{display:flex;gap:6px;margin:0 0 10px;flex-wrap:wrap}
.inventory-play-dialog .play-mode{min-height:44px;flex:1 1 90px}
.inventory-play-dialog .play-mode.active{background:#7a5a2d;color:#fff9eb;border-color:#5a4020}
.inventory-play-dialog .play-carry{margin:4px 0 10px;font-weight:600}
.inventory-play-dialog .play-coin-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 8px}
.inventory-play-dialog .play-field,.inventory-play-dialog .play-coin{display:grid;gap:3px;font-size:.8125rem}
.inventory-play-dialog .play-coin input,.inventory-play-dialog .play-field input,.inventory-play-dialog .play-field select{width:100%;min-height:44px;margin:0;box-sizing:border-box}
.inventory-play-dialog .play-status{color:#3d6b2a;min-height:1.3em}
.inventory-play-dialog .play-effect{margin:6px 0;font-weight:600}
.inventory-play-dialog .play-result{font-weight:600;margin:10px 0;overflow-wrap:anywhere}
.inventory-play-dialog .play-warn{color:#8c3a1e}
.inventory-play-dialog .play-warnings{margin:8px 0;padding-left:18px}
.inventory-play-dialog .play-roll-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.inventory-play-dialog .play-roll-actions button{min-height:44px;flex:1 1 140px}
.inventory-play-dialog .play-enter{margin:8px 0}
.inventory-play-dialog .play-dice{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.inventory-play-dialog .play-dice input{width:3.4em;min-height:44px;text-align:center;font-size:1rem}
.inventory-play-dialog .play-override{display:flex;align-items:center;gap:8px;min-height:44px}
.inventory-play-dialog .play-override input{width:22px;height:22px;flex:none}
.inventory-play-dialog .play-go{min-height:44px}
.inventory-attunement-dialog .attunement-item{flex-wrap:wrap}
.inventory-attunement-dialog .play-attune-act{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inventory-attunement-dialog .attunement-item button{min-height:44px}
.inventory-attunement-dialog .attunement-slot{width:62px;height:62px}
.inventory-attune-warn{margin-left:6px;color:#8c3a1e;font-weight:700}
.inventory-add-footer{flex-wrap:wrap;align-items:center}.inventory-add-bar{display:none;align-items:center;gap:8px;flex:1 1 100%;flex-wrap:wrap;margin:0;padding:8px;border:1px solid #bba780;border-radius:6px;background:#fff9eb88}
.inventory-add-bar.show{display:flex}
.inventory-add-bar .inventory-add-picked{flex:1 1 140px;min-width:0;overflow-wrap:anywhere;font-weight:600}
.inventory-add-bar input{width:5em;margin:0;text-align:center}
.inventory-add-bar button{min-height:44px;min-width:44px}
.inventory-choice-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 16px;margin:10px 0}.inventory-choice-fields label{display:block;font-weight:600}.inventory-choice-fields select{display:block;width:100%;max-width:100%;margin:4px 0 0;box-sizing:border-box}
.inventory-choice{margin:8px 0 0}.inventory-choice .hint{margin:0 0 4px}
@media(max-width:820px),(hover:none) and (pointer:coarse){.inventory-choice-fields select{min-height:44px;font-size:1rem}}
.inventory-add-dialog{max-width:min(92vw,720px)}
dialog.inventory-add-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
.inventory-add-dialog .inventory-add-body{flex:1 1 auto;min-height:0;max-height:none;display:flex;flex-direction:column;overflow:hidden}
.inventory-add-dialog .inventory-add-body>*{flex:none}
.inventory-add-dialog .inventory-add-body>.inventory-add-results{flex:1 1 auto;min-height:96px;max-height:none;overflow:auto}
/* Fighter, Barbarian and Monk subclass actions (sheet-subclass-a-v1.js): touch targets stay 44px on phones. */
.subclass-a-entry .subclass-use,.subclass-a-panel .subclass-use{min-height:44px;min-width:44px}
.subclass-a-entry small.hint{display:block;margin:.25rem 0 0}
.subclass-a-panel .sheet-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .75rem;padding:.35rem 0;border-top:1px solid rgba(58,31,18,.15)}
.check-roll-dialog.class-feature-review select,.check-roll-dialog.class-feature-review input[type=number],.check-roll-dialog.class-feature-review input[type=text]{min-height:44px}
.check-roll-dialog.class-feature-review input[type=checkbox]{width:24px;height:24px;margin-right:.5rem;vertical-align:middle}
@media (max-width:760px){.subclass-a-entry .action-table-line{display:flex;flex-wrap:wrap;gap:.4rem}.subclass-a-entry .action-row-use{margin-left:auto}}
.check-roll-dialog.class-feature-review label:has(>input[type=checkbox]){display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:44px}
/* Subclass set B (sheet-class-features-b-v1.js): grouped by turn cost; every control is at least 44px tall. */
.class-features-b .class-feature-group{margin:.6rem 0 .1rem;font-size:.95rem}
.class-features-b .class-feature-row button,.class-features-b .class-feature-row .small{min-height:44px;min-width:44px}
.class-features-b .class-feature-status{display:block;margin:.25rem 0}
.class-features-stack{display:grid;gap:1rem}
.class-feature-review .sb-dice{display:flex;flex-wrap:wrap;gap:.5rem}
.class-feature-review .sb-dice label{display:grid;gap:.15rem;min-width:4.5rem}
.class-feature-review .sb-dice input,.class-feature-review select,.class-feature-review input[type=number],.class-feature-review input[type=text]{min-height:44px;font-size:1rem}
.class-feature-review input[type=checkbox]{width:24px;height:24px}
.class-feature-review .sb-creatures{display:grid;gap:.4rem}
.class-feature-review select{-webkit-appearance:none;appearance:none;height:44px;padding-right:34px;background:#fbf6e8aa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23292116' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center}
.class-feature-review label{min-height:44px}
.damage-stay-up button,.species-riders button,.species-riders select,.species-riders input[type=text]{min-height:44px}
.damage-stay-up .sheet-controls{align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.inventory-effects{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.inventory-effect{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 10px;border:1px solid var(--line,#8a7a5a);border-radius:8px}
.inventory-effect button,.inventory-summary-bar .inventory-dawn{min-height:44px}
.feature-custom-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.feature-custom-dialog textarea{width:100%;min-height:8rem;box-sizing:border-box}
@media(max-width:820px){.feature-custom-actions button,.feature-add-feature button,.feature-custom-dialog :is(button,input,select,textarea){min-height:44px}
.feature-custom-dialog select{-webkit-appearance:none;appearance:none;height:44px;padding-right:34px;background:#fbf6e8aa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23292116' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center}}

/* Granted spells dialog */
.grant-dialog .grant-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #bba78066}.grant-dialog .grant-info{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}.grant-dialog .grant-form{display:grid;gap:8px;margin-top:14px}.grant-dialog .grant-form label{display:grid;gap:3px}.grant-dialog .grant-form label.check{display:flex;gap:8px;align-items:center}.grant-dialog button,.grant-dialog input:not([type=checkbox]),.grant-dialog select{min-height:44px}.grant-dialog input[type=checkbox]{width:24px;height:24px}.grant-dialog textarea{width:100%;box-sizing:border-box}.grant-dialog [hidden]{display:none!important}.spell-grants-button{min-height:44px}

.sheet-encounter-offer{max-width:420px}.sheet-encounter-row{display:flex;gap:8px;align-items:center;padding:4px 0}

/* The player's initiative view (sheet-encounter-v1.js): a small link while the character is in a running encounter, and a read-only turn order. */
.sheet-initiative-link{position:fixed;left:16px;bottom:16px;z-index:20;padding:8px 14px;border:1px solid #bba780;border-radius:999px;background:#fbf6e8;color:#292116;font:inherit;font-size:.9rem;box-shadow:0 2px 8px #0003;cursor:pointer}
.sheet-initiative-link:hover,.sheet-initiative-link:focus-visible{border-color:#7a2a2a;color:#7a2a2a}
.sheet-initiative{max-width:380px;width:calc(100vw - 32px)}
.sheet-initiative-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:4px}
.sheet-initiative-row{display:flex;gap:8px;align-items:baseline;justify-content:space-between;padding:6px 10px;border:1px solid #bba78066;border-radius:6px;background:#fbf6e866}
.sheet-initiative-row.is-turn{border-color:#7a2a2a;background:#7a2a2a1f;font-weight:700}.sheet-initiative-row.is-me span{text-decoration:underline dotted}.sheet-initiative-row em{font-style:normal;font-size:.8rem;color:#7a2a2a}
body.player-mode .header-initiative .initiative-roll{min-width:44px;min-height:44px}
@media(max-width:820px){.sheet-initiative-link{bottom:76px}}
/* Adult player sheet: compact entries on phones; descriptions and management stay in their existing panes. */
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .action-table-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px;min-height:52px}
 body.player-mode:not(.kid-friendly-mode) .action-table-line .action-row-name{flex:1 1 90px;min-width:70px}
 body.player-mode:not(.kid-friendly-mode) .action-table-line .sheet-action-tile{width:28px;height:28px}
 body.player-mode:not(.kid-friendly-mode) .action-row-name strong{font-size:.875rem}
 body.player-mode:not(.kid-friendly-mode) .action-row-range:before,body.player-mode:not(.kid-friendly-mode) .action-row-hit:before,body.player-mode:not(.kid-friendly-mode) .action-row-effect:before{content:none}
 body.player-mode:not(.kid-friendly-mode) .action-row-range{font-size:.75rem}
 body.player-mode:not(.kid-friendly-mode) .action-row-effect{display:flex;align-items:center;gap:2px}
 body.player-mode:not(.kid-friendly-mode) .action-effect-part{margin:0;gap:2px}
 body.player-mode:not(.kid-friendly-mode) main .action-number,body.player-mode:not(.kid-friendly-mode) main .action-row-use button{min-width:44px;min-height:44px;padding:4px}
 body.player-mode:not(.kid-friendly-mode) .action-row-details>summary{position:static;min-width:44px;min-height:44px;display:grid;place-items:center}
 body.player-mode:not(.kid-friendly-mode) .sheet-action-entry:has(>.action-row-details){display:flex;flex-wrap:wrap;align-items:center}
 body.player-mode:not(.kid-friendly-mode) .sheet-action-entry:has(>.action-row-details)>.action-table-line{flex:1 1 210px}
 body.player-mode:not(.kid-friendly-mode) .sheet-action-entry>.action-row-details[open]{flex-basis:100%}
 body.player-mode:not(.kid-friendly-mode) .night-wings-line{display:flex;align-items:center;gap:5px;padding:4px;min-height:52px}
 body.player-mode:not(.kid-friendly-mode) .night-wings-line .action-row-name{flex:1;min-width:0}
 body.player-mode:not(.kid-friendly-mode) .night-wings-summary{display:none}
 body.player-mode:not(.kid-friendly-mode) .night-wings-line .action-row-use button{min-height:44px}
 body.player-mode:not(.kid-friendly-mode) .spell-table tr.spell-list-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;margin:0;padding:3px;gap:3px}
 body.player-mode:not(.kid-friendly-mode) .spell-table .spell-list-row td:first-child{grid-column:auto;min-width:0}
 body.player-mode:not(.kid-friendly-mode) .spell-table .spell-list-row td[data-label]{display:none}
 body.player-mode:not(.kid-friendly-mode) main .spell-name-button,body.player-mode:not(.kid-friendly-mode) main .spell-table td>button.small{min-height:44px}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-item-row{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px;padding:3px;margin:0}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-item-row td:first-child{grid-column:auto;min-width:0}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-item-row td:nth-child(3),body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-item-row td:nth-child(4),body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-row-description{display:none}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-qty-stepper button{display:none}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-qty-stepper input{width:48px;min-width:44px;min-height:44px}
 body.player-mode:not(.kid-friendly-mode) .inventory-workspace-2024 .inventory-quick-actions{display:flex;gap:2px}
 body.player-mode:not(.kid-friendly-mode) main .inventory-quick-actions button{min-width:44px;min-height:44px;padding:4px}
 body.player-mode:not(.kid-friendly-mode) main .feature-list-entry{min-height:44px;padding:4px 7px}
 body.player-mode:not(.kid-friendly-mode) .feature-list-entry .sheet-action-tile{width:28px;height:28px}
 body.player-mode:not(.kid-friendly-mode) main .favorite-shortcut{min-height:44px;flex-basis:125px;padding:4px 6px}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .action-table-line .action-row-name{flex-basis:115px;min-width:105px}
 body.player-mode:not(.kid-friendly-mode) .action-row-effect{flex-wrap:wrap;min-width:0;max-width:100%}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.action-row-name{flex:1 1 100px;padding:0}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.sheet-controls{margin:0;gap:3px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.sheet-controls>span,body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.sheet-controls>small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.sheet-controls button{min-height:44px}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .action-table-line .action-row-name small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.player-mode:not(.kid-friendly-mode) .favorite-shortcuts{flex-wrap:wrap;overflow:visible}
 body.player-mode:not(.kid-friendly-mode) main .favorite-shortcut{flex:1 1 120px;max-width:none}
 body.player-mode:not(.kid-friendly-mode) .spell-list-tools button{width:auto;flex:1 1 130px}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .player-workspace>.tabs{top:calc(48px + env(safe-area-inset-top));scroll-margin-top:calc(48px + env(safe-area-inset-top))}
 body.player-mode:not(.kid-friendly-mode) .sheet-action-entry,body.player-mode:not(.kid-friendly-mode) .inventory-item-row,body.player-mode:not(.kid-friendly-mode) .spell-list-row,body.player-mode:not(.kid-friendly-mode) .feature-list-entry{scroll-margin-top:calc(105px + env(safe-area-inset-top))}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) main .inventory-group-toggle{min-width:32px;min-height:44px}
 body.player-mode:not(.kid-friendly-mode) main .inventory-caret-spacer{width:32px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry .action-row-name>.ui-icon{width:28px;height:28px;flex:none}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"]>.sheet-controls button{font-size:0;min-width:44px;padding:4px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"] button[aria-label="Use Unbound"]::after{content:'Use';font-size:.8125rem}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"] button[aria-label="End Unbound"]::after{content:'End';font-size:.8125rem}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key="wraithUnbound"] button[aria-label="Restore one use of Unbound"]::after{content:'↺';font-size:1rem}
}
.spellcasting-compact{display:none}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .spellcasting-compact{display:flex;align-items:center;gap:7px;margin-bottom:8px}
 body.player-mode:not(.kid-friendly-mode) .spellcasting-compact-card{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;font-size:.8125rem}
 body.player-mode:not(.kid-friendly-mode) main .spellcasting-sources-trigger{min-height:44px;padding:5px 8px}
}
.spellcasting-sources-popover{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 24px);max-height:65vh;max-height:65dvh;overflow:auto;padding:16px;background:#f3ead7;border:1px solid #aa8650;box-shadow:0 4px 18px #0006;color:#292116}
.spellcasting-sources-popover h3{padding-right:35px}
.spellcasting-sources-popover .spellcasting-compact-card{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-top:1px solid #bba681}
.spellcasting-sources-close{position:absolute;top:6px;right:6px;min-width:44px;min-height:44px}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .spell-detail-pane[popover]{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 24px);max-height:70vh;max-height:70dvh;overflow:auto;background:#f3ead7;border:1px solid #aa8650;box-shadow:0 4px 18px #0006;z-index:20}
 body.player-mode:not(.kid-friendly-mode) .spell-detail-pane .spell-detail-close{min-width:44px;min-height:44px}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .feature-detail-column[popover]:not(:popover-open){display:none!important}
 body.player-mode:not(.kid-friendly-mode) .feature-detail-column[popover]{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 24px);max-height:70vh;max-height:70dvh;overflow:auto;background:#f3ead7;border:1px solid #aa8650;box-shadow:0 4px 18px #0006;z-index:20}
 body.player-mode:not(.kid-friendly-mode) .feature-detail-column .feature-detail-close{position:absolute;top:4px;right:4px;min-width:44px;min-height:44px}
}
@media(max-width:640px){body.player-mode:not(.kid-friendly-mode) .feature-detail-column[popover] .feature-detail-card{padding-top:50px}}
@media(max-width:640px){
 .character-journal:not(.journal-entry-open) .journal-layout>.journal-editor{display:none}
 .dialog-journal-popover{width:min(calc(100vw - 24px),680px);max-height:65vh;max-height:65dvh;overflow:auto;overscroll-behavior:contain;background:#f3e8d1;border:1px solid #9a784c;border-radius:10px;box-shadow:0 18px 50px #100c0bcc;padding:16px}
 .dialog-journal-popover::backdrop{background:rgba(24,18,14,.2)}
 .dialog-journal-popover .journal-editor{margin:0}
 .dialog-journal-popover .journal-mobile-close{position:sticky;top:0;float:right;z-index:1;min-height:44px;margin:-4px -4px 8px 10px}
 .dialog-journal-popover .journal-editor textarea{min-height:160px}
}
@media(max-width:640px){
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key]{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key]>.action-row-name{flex:1 1 100px;padding:0}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key]>.sheet-controls{margin:0;gap:3px}
 body.player-mode:not(.kid-friendly-mode) .class-action-entry[data-resource-key]>.sheet-controls button{min-height:44px}
}
@media(max-width:640px){.character-journal.journal-entry-open{padding-bottom:55vh;padding-bottom:55dvh}}
@media(max-width:640px){body.player-mode:not(.kid-friendly-mode) .spell-detail-pane[popover]:not(:popover-open){display:none!important}}
.inventory-custom-description{white-space:pre-wrap;overflow-wrap:anywhere}

/* Combat hand planning uses the same quiet parchment and compact controls as the sheet. */
.attack-readiness-dialog{width:min(34rem,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
.attack-readiness-dialog .attack-hand-plan{margin:12px 0;padding:12px 14px;border:1px solid #a88a52;border-radius:5px;background:rgba(250,244,226,.85)}
.attack-readiness-dialog .attack-cost-list{margin:0;padding-left:1.25rem;display:grid;gap:8px}
.attack-readiness-dialog .hands-after-preview{margin:12px 0 0;font-size:.9rem}
.attack-readiness-dialog>.error:empty{display:none}
.attack-readiness-dialog .sheet-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.hands-follow-up{padding:10px 12px;border:1px solid #a88a52;border-radius:5px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f4ecd8;margin:8px 0}
.hands-follow-up p{flex:1 1 16rem;margin:0}.hands-follow-up strong{flex:0 0 auto}
@media(max-width:640px){.attack-readiness-dialog{padding:16px}.attack-readiness-dialog .sheet-controls button{min-height:44px;flex:1}.attack-readiness-dialog label{max-width:100%}.hands-follow-up button{min-height:44px}}

.attack-readiness-dialog .attack-shield-confirm[hidden]{display:none}

.spellcasting-headline{margin-bottom:8px;font-size:.9375rem}.spellcasting-headline>strong{font-size:1.0625rem}.spellcasting-differs{list-style:none;margin:3px 0 0;padding:0;font-size:.75rem;color:#5c4a33}.spellcasting-all{margin-top:4px}.spellcasting-all>summary{cursor:pointer;font-size:.8125rem;min-height:32px;display:flex;align-items:center}

.rest-quiver-row{display:grid;grid-template-columns:minmax(0,1fr) auto 4em auto;align-items:center;gap:.35em;margin:.4em 0}.rest-quiver-row input{width:100%;min-width:0;text-align:center}.rest-quiver-row button{min-width:2.2em}

.weapon-row-heading,.weapon-row-meta{display:flex;align-items:center;flex-wrap:wrap;column-gap:.4rem}
.action-row-name .weapon-row-heading strong{overflow-wrap:normal}
.weapon-row-heading .weapon-carry-control{white-space:nowrap;min-height:24px;padding:1px 6px;font-size:.75rem;line-height:1.2}
.weapon-row-meta small+small::before{content:'· ';color:#76654e}
@media (min-width:901px) and (max-width:1050px){
 .actions-2024 :is(.action-table-head,.action-table-line){grid-template-columns:minmax(160px,1fr) 64px 64px 82px 64px}
 .action-row-name:has(.weapon-carry-control)>.sheet-action-tile,.action-row-name:has(.weapon-carry-control)>.ui-icon{display:none}
}

.carry-setup-panel{margin:.65rem 0}
.player-mode main .carry-setup-toggle,.player-mode main .inventory-summary-bar>.carry-setup-shortcut{min-height:40px;padding:.45rem 1rem;font-size:.9375rem;font-weight:700}
.carry-setup-toggle{scroll-margin-top:1rem}
.carry-setup-content{margin-top:.55rem}

/* Sort controls share the table header's typography and alignment. */
.player-mode main .inventory-table th:has(.inventory-sort-column) { padding: 0; }
.player-mode main .inventory-table th button.inventory-sort-column {
  display: inline-block;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.inventory-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-inline-start: .45em;
  vertical-align: middle;
  color: #806d55;
}
.inventory-sort-arrows::before, .inventory-sort-arrows::after {
  content: "";
  border-inline: 4px solid transparent;
}
.inventory-sort-arrows::before { border-bottom: 4px solid currentColor; }
.inventory-sort-arrows::after { border-top: 4px solid currentColor; }
.player-mode main .inventory-table th[aria-sort] .inventory-sort-column {
  color: #701d35;
  box-shadow: inset 0 -2px currentColor;
}
th[aria-sort] .inventory-sort-arrows { color: inherit; }
th[aria-sort="ascending"] .inventory-sort-arrows::after,
th[aria-sort="descending"] .inventory-sort-arrows::before { visibility: hidden; }
.player-mode main .inventory-table th .inventory-sort-column:hover,
.player-mode main .inventory-table th .inventory-sort-column:focus-visible {
  background-color: rgba(123, 83, 44, .10);
}
.player-mode main .inventory-table th .inventory-sort-column:focus-visible {
  outline: 2px solid #701d35;
  outline-offset: -3px;
}

.inventory-stored-elsewhere {
  margin: .65rem 0;
  padding: .6rem .8rem;
  border: 1px solid #bba780;
  border-radius: 4px;
}
.inventory-stored-elsewhere h4 { margin: 0 0 .25rem; }
.inventory-stored-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .35rem 0; }
.inventory-stored-row + .inventory-stored-row { border-top: 1px solid #bba78077; }
.inventory-stored-info { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.inventory-stored-info span, .inventory-stored-info details { font-size: .875rem; }
