/* Content reflows inside the existing draggable character window. */
.caster-orders,.caster-features,.training-owned,.training-available,.caster-forms{margin:12px 0;padding-top:8px;border-top:1px solid #ffffff18}
.caster-orders h3,.caster-features h3,.training-owned h3,.training-available h3,.caster-forms h3{margin:3px 0 10px}
.caster-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}
.caster-order{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:12px;white-space:normal;text-align:left;min-width:0;background:#182527;border:1px solid #587269}
.caster-order.candidate{border-color:#e1c784;box-shadow:inset 0 0 0 1px #e1c784}.caster-order.selected{background:#254034}
.caster-order small,.caster-feature small,.caster-orders>small,.training-available>small{display:block;color:#bdcdc5;line-height:1.45}
.caster-order strong{font-size:14px}.caster-order em{color:#9de0a1;font-style:normal;font-size:11px}
.caster-feature,.training-option{display:flex;align-items:center;gap:10px;margin:8px 0;padding:9px;background:#ffffff06;border-radius:7px}
.caster-feature>div,.training-option>div{flex:1;min-width:0}.training-option small{display:block;font-size:11px;color:#bfcbc5;line-height:1.4}
.training-option select{max-width:120px;min-width:0}.training-option button{white-space:nowrap}
.training-owned{display:flex;flex-wrap:wrap;gap:7px}.training-owned h3{width:100%}.training-chip{display:flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #587266;border-radius:7px;background:#1b2d26;font-size:12px}.training-chip img{width:25px;height:25px}
.caster-forms{display:flex;flex-wrap:wrap;gap:8px}.caster-forms h3{width:100%}.caster-form{display:flex;align-items:center;gap:6px;flex:1 1 44%;flex-wrap:wrap;text-align:left}.caster-form small{width:100%;font-size:11px;color:#c0c9c1}.caster-form.locked{opacity:.5}
.caster-channel,.caster-familiar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px;border:1px solid #789aa9;border-radius:6px;margin:10px 0;background:#172f3b}.caster-channel strong{flex:1}.caster-channel small{color:#b5dce8}
.caster-familiar img{width:32px;height:32px}.caster-familiar strong{flex:1 1 180px}.caster-warning{color:#e9bc70}
#casterChoice{pointer-events:auto}#casterChoice>header{display:flex;justify-content:space-between;align-items:center;cursor:grab}#casterChoice p{margin:6px 0}
.item-tooltip{width:max-content;max-width:min(290px,calc(100vw - 24px));font-size:12px;line-height:1.5}.item-tooltip strong{display:block;color:#f5d99e;font-size:13px;margin-bottom:5px}.item-tooltip>div:first-of-type{color:#b4c4c7;font-size:11px;margin-bottom:5px}
.item-facts{font-size:13px;line-height:1.5}.item-facts>div:first-child{font-size:11px;color:#b4c4c7;margin-bottom:6px}.item-mastery-info{font-size:12px;padding:6px 0}.item-mastery-info p{max-width:440px;color:#bec5c4;margin:5px 0}.item-actions{margin-top:10px;padding-top:9px;border-top:1px solid #ffffff1c;display:flex;flex-wrap:wrap;gap:7px}
.caster-status-warning{color:#f3b284;font-size:12px}
@media(max-width:620px){.training-option{flex-wrap:wrap}.training-option>div{min-width:160px}.training-option select{flex:1;max-width:none}.caster-order{padding:9px}.caster-order-grid{gap:6px}.caster-feature{flex-wrap:wrap}.caster-feature>div{min-width:150px}.caster-form{flex-basis:100%}}

#casterChoice{position:relative;width:100%;box-sizing:border-box;pointer-events:auto;background:#183a2cf2;border:1px solid #dac47799;border-radius:6px;padding:10px 12px;color:#e9ddb3}
#casterChoice header{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px}#casterChoice header button{height:24px;min-height:24px;width:24px;padding:0}#casterChoice p{font-size:12px;margin:6px 0 10px}#casterChoice>button{width:100%;padding:7px;min-height:32px}
.training-pickers{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.training-pickers>small{flex-basis:100%}.training-pickers select{flex:1 1 110px;max-width:100%;min-height:36px}.training-reason{color:#e9bc70!important;margin-top:6px}
.caster-circles,.circle-actions{margin:12px 0;padding-top:8px;border-top:1px solid #ffffff18}.caster-circles h3,.circle-actions h3{margin:3px 0 10px}.caster-circles>small,.circle-actions>small{display:block;color:#bdcdc5;line-height:1.45;margin:7px 0}.caster-circles>.caster-order-grid{margin-top:10px}.circle-feature{padding:9px;margin:8px 0;background:#ffffff06;border-radius:6px}.circle-feature strong,.circle-feature small{display:block}.circle-feature small,.circle-feature-preview{font-size:12px;line-height:1.45;color:#bdcdc5;margin:5px 0}.circle-feature.locked{opacity:.65}.circle-choice-reason{color:#e9bc70!important}.circle-land-controls,.circle-action-buttons,.circle-resources{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.circle-land-controls select{min-width:0;max-width:100%;flex:1}.circle-action-buttons button{white-space:normal;text-align:left;flex:1 1 170px;min-height:38px}.circle-action-buttons button[aria-pressed="true"]{border-color:#e1c784;background:#254034}.circle-resources span{font-size:12px;background:#1b2d26;padding:5px 8px;border:1px solid #587266;border-radius:6px}
@media(pointer:coarse){.training-option button,.training-pickers select,.caster-circles>button,.caster-circles select,.circle-action-buttons button,.circle-land-controls button{min-height:44px}}
.rest-resource-list{margin:12px 0;padding-top:8px;border-top:1px solid #ffffff18}.rest-resource-list h3{margin:3px 0 10px}.rest-resource-list p{font-size:12px;line-height:1.45;color:#bdcdc5}
.circle-target-controls{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.circle-target-controls small{flex-basis:100%;color:#bdcdc5;font-size:12px}.circle-target-controls button{flex:1 1 145px;min-height:44px;white-space:normal}
.circle-spell-options{display:flex;flex-wrap:wrap;gap:8px;flex-basis:100%;margin:5px 0}.circle-spell-options label{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 155px}.circle-spell-options label span{font-size:11px;color:#bdcdc5}.circle-spell-options select{min-width:0;width:100%;max-width:100%;min-height:38px}.circle-spell-options button{min-height:38px;white-space:normal}@media(pointer:coarse){.circle-spell-options select,.circle-spell-options button{min-height:44px}}
.caster-water{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;padding:10px;border:1px solid #5b9da7;border-radius:6px;background:#183844}.caster-water button{min-height:44px}.caster-water small{flex-basis:100%;color:#c0e7ef}
.circle-spell-point-hint{flex-basis:100%;color:#bdcdc5;font-size:11px;line-height:1.45}
.caster-exploration{display:flex;flex-wrap:wrap;gap:7px;padding:9px 0;margin:8px 0;border-top:1px solid #ffffff18}.caster-exploration button{flex:1 1 145px;min-height:44px;white-space:normal}.caster-exploration small{flex-basis:100%;color:#bdcdc5;font-size:11px;line-height:1.4}
/* Wizard schools reuse the compact caster cards and fit the mobile sheet. */
.caster-schools,.wizard-school-actions{margin:12px 0;padding-top:8px;border-top:1px solid #ffffff18}.caster-schools h3,.wizard-school-actions h3{margin:3px 0 10px}.caster-schools>small,.caster-schools>p{display:block;color:#c7c7de;font-size:12px;line-height:1.45;margin:7px 0}.wizard-school-grid{margin-top:10px}.wizard-school{background:#20253a;border-color:#616485}.wizard-school.candidate{background:#32304a}.school-current{display:flex;align-items:center;gap:10px;margin:9px 0}.school-preview{padding:10px;margin:10px 0;background:#a9a3ee0b;border:1px solid #a9a3ee35;border-radius:7px}.school-preview h4{margin:0 0 8px;color:#e2d2a5}.school-preview>button{min-height:40px;width:100%;white-space:normal}.school-permanent-confirm{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.4;margin:12px 0;min-height:40px;cursor:pointer}.school-permanent-confirm input{flex:0 0 18px;width:18px;height:18px;accent-color:#d7bd80;margin:0}.school-choice-reason{color:#e9bc70!important}.wizard-portents{display:flex;flex-direction:column;gap:8px;margin:10px 0}.wizard-portents>small{color:#c7c7de;font-size:12px;line-height:1.45}.wizard-portent{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;background:#ffffff06;border:1px solid #aaa2dd35;border-radius:7px}.wizard-portent.spent{opacity:.55}.portent-die{display:grid;place-items:center;min-width:40px;height:40px;color:#f2e1b0;border:1px solid #bba8e5;border-radius:9px;background:#373250;font-size:20px}.wizard-portent>small{color:#c7c7de;font-size:11px}.portent-controls{display:flex;flex-wrap:wrap;gap:5px;flex:1 1 235px}.portent-controls button{flex:1;min-width:70px;min-height:38px;padding:7px 5px;white-space:normal;font-size:11px}.portent-controls button[aria-pressed="true"]{background:#48405e;border-color:#e1c784;color:#f2e1b0}.wizard-portents>button{min-height:38px;white-space:normal}
@media(pointer:coarse){.school-preview>button,.school-permanent-confirm,.portent-controls button,.wizard-portents>button{min-height:44px}}
