/* v0.73: narrow HUD labels and nested source rows must keep their own bounds. */
#game .controls #autoSkills{position:relative;inset:auto;transform:none;flex:none;box-sizing:border-box;width:52px;height:52px;min-width:44px;padding:11px 3px 4px;gap:0;white-space:nowrap;overflow:visible;background:#15382be8;border-radius:9px;font-family:var(--font-ui)}
#game #autoSkills b{font-size:14px;line-height:20px;white-space:nowrap;color:#dcd9bf}
#game #autoSkills .skillAutoBadge{position:absolute;top:-9px;left:50%;transform:translateX(-50%);min-width:32px;padding:1px 4px;border:1px solid #9b895c;border-radius:4px;background:#213b2b;color:#c6c6a7;font-size:12px;line-height:16px;white-space:nowrap}
#game #autoSkills[aria-pressed=true]{border-color:#e8c879;animation:martialGlow 2s ease-in-out infinite}
#game #autoSkills[aria-pressed=true] .skillAutoBadge{background:#74602d;color:#fff3bb;border-color:#e5c976}
#game #autoSkills[aria-pressed=true] b{color:#ffedb4}
@keyframes martialGlow{0%,100%{box-shadow:0 0 0 1px #dbb65b44,inset 0 0 8px #e7bd5222}50%{box-shadow:0 0 9px #e5c46a88,inset 0 0 9px #efce6855}}
#game #panel .martialSheet{min-width:0;overflow-wrap:break-word}
#game #panel .martialToolbar{flex-wrap:wrap;gap:8px;font-size:12px}
#game #panel .martialToolbar>span{white-space:normal;font-size:12px}
#game #panel .techniqueCard{max-width:100%;box-sizing:border-box}
#game #panel .techniqueCard p{font-size:14px!important;line-height:1.6;margin:8px 0}
#game #panel .techniqueTop{flex-wrap:wrap;gap:8px}
#game #panel .techniqueTop h3{font-size:16px!important;line-height:1.5}
#game #panel .techniqueTop small,#game #panel .techniqueState{font-size:12px;white-space:normal}
#game #panel .skillActions{flex-wrap:wrap;gap:6px}
#game #panel .skillActions button{flex:1 1 120px;min-height:40px;font-size:14px;white-space:normal;word-break:keep-all}
#game #panel .skillRequirement{flex-basis:100%;font-size:12px;line-height:1.5}
#game #panel .techniqueStats{flex-wrap:wrap;font-size:12px;gap:5px}
#game #panel .bookSources{min-width:0;max-width:100%;padding:8px;box-sizing:border-box;overflow-wrap:break-word}
#game #panel .bookSources summary{font-size:14px;line-height:1.5;min-height:32px;word-break:keep-all}
#game #panel .bookSources .lootSourceRows article{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:6px 10px;min-width:0;padding:12px 0}
#game #panel .bookSources .lootSourceRows article>.monsterPortrait{width:36px;height:36px;min-width:36px;margin:0;grid-column:1;grid-row:1}
#game #panel .bookSources .lootSourceRows article>div{grid-column:2;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
#game #panel .bookSources .lootSourceRows strong,#game #panel .bookSources .lootSourceRows span:not(.monsterPortrait){font-size:14px;line-height:1.6;white-space:normal}
#game #panel .bookSources .lootSourceRows button{grid-column:2;justify-self:start;width:auto;max-width:100%;min-height:40px;margin:0;font-size:14px;line-height:1.5;white-space:nowrap}
#game #panel .masteryCard{margin-top:12px;padding-top:10px;border-top:1px solid #b7955666;display:flex;flex-direction:column;gap:6px;font-size:14px}
#game #panel .masteryCard>button{min-height:44px;font-size:14px;white-space:normal}
.masteryTag{color:#f0d68e;font-style:normal;font-size:12px;border:1px solid #c4a35b77;border-radius:4px;padding:2px 5px;width:fit-content}
@media(prefers-reduced-motion:reduce){#game #autoSkills[aria-pressed=true]{animation:none;box-shadow:0 0 5px #e5c46a88}}

#game #panel #supplySettingsForm{font-size:14px;line-height:1.6;margin-top:16px}
#supplySettingsForm fieldset{padding:12px;border:1px solid #aa915965;border-radius:6px}
.supplyInputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:12px 0}
.supplyInputs label{display:flex;flex-direction:column;gap:5px;min-width:0}
.supplyInputs input{box-sizing:border-box;width:100%;min-height:44px;background:#10281f;border:1px solid #aa945f;color:#f1dfb3;padding:8px;font:inherit;border-radius:5px}
#supplySettingsForm button{min-height:44px;font-size:14px;padding:8px 12px;border:1px solid #c0a362;background:#305341;color:#f5e4b9;border-radius:5px}
#supplySettingsForm input[type=checkbox]{width:20px;height:20px;flex:none}
#supplyLive{display:flex;flex-direction:column;gap:5px;border-top:1px solid #ac996050;padding:12px 0}

#game .controls .pkControls #autoSkills{width:48px}
