.dd-magic-tools{margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}.dd-magic-tools .btn{font-size:11px}.dd-magic-tools .concentration{color:#d2b976;border-color:#a38e58}.dd-magic-toolbar{margin:14px 0}.dd-spell-menu{display:grid;gap:12px}.dd-spell-menu article,.dd-effect-list article,.dd-resource-list article{display:flex;align-items:start;justify-content:space-between;gap:16px;border:1px solid var(--border);border-radius:10px;padding:15px;min-width:0}.dd-spell-menu article>div:first-child,.dd-effect-list article>div:first-child{min-width:0;flex:1}.dd-spell-menu h3{font:19px Georgia;color:#d8c58f;margin-bottom:6px}.dd-spell-menu small,.dd-resource-list small,.dd-effect-list small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.dd-spell-menu p,.dd-effect-list p{font-size:12px;line-height:1.6;margin-top:9px}.dd-spell-menu .button-row{flex-shrink:0;max-width:130px}.dd-spell-rule{padding:13px 15px;border-left:2px solid #b3a16b;background:#b3a16b0d;font-size:13px;line-height:1.7;margin-bottom:18px}.dd-target-list{display:grid;gap:8px;max-height:220px;overflow-y:auto;touch-action:pan-y;padding:4px;margin:12px 0}.dd-target-list>label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.dd-target-list input[type=number]{width:65px}.dd-spell-outcomes{display:grid;gap:10px;margin:15px 0}.dd-spell-outcomes article{padding:12px;border:1px solid var(--border);border-radius:8px}.dd-spell-outcomes p{font-size:13px;margin-top:8px}.dd-spell-outcomes small{color:var(--muted);font-size:11px}.dd-effect-list,.dd-resource-list{display:grid;gap:10px}.dd-effect-list .button-row{justify-content:flex-end}.dd-magic-ready{color:#a5c4b0;font-size:11px;margin:10px 0}.dd-roll-mode{font-size:13px;padding:10px 12px;background:#bcaa6d13;border:1px solid #bcaa6d55;border-radius:8px;margin:12px 0}
@media(max-width:600px){.dd-spell-menu article{flex-direction:column;gap:12px;padding:12px}.dd-spell-menu .button-row{max-width:none;width:100%}.dd-spell-menu .button-row .btn{flex:1;justify-content:center}.dd-effect-list article,.dd-resource-list article{flex-wrap:wrap;padding:12px}.dd-magic-tools{gap:5px}.dd-magic-tools .btn{font-size:10px;padding:7px}.dd-spell-rule{font-size:12px}.dd-target-list{max-height:190px}}

/* Keep recovery and multi-action result footers reachable on narrow screens. */
#modal .dialog-foot{flex-wrap:wrap;min-width:0}#modal .dialog-foot>.btn{max-width:100%;min-width:0;white-space:normal}
