/* Legible controls and comfortable touch targets for the coaching workspaces. */
@media(max-width:530px){html[lang=en] .sidebar .nav[data-view=tournament] span:after{content:'Tournaments'}}
html[data-theme=light] .page-heading p,html[data-theme=light] .home-hero-copy>p,html[data-theme=light] .home-tool-card p,html[data-theme=light] .muted{color:#525763}
.macro-layer-controls,.macro-play-controls,.macro-layer-controls select{font-size:11px}
.macro-play-controls label{font-size:10px}
.macro-bottom-bar,.macro-bottom-bar .text-link{font-size:10px}
.macro-roster h3{font-size:11px}.macro-roster h3>button{font-size:9px}
.macro-roster-row select{font-size:10px}.macro-hp-row{font-size:8px}
.macro-group-actions>label,.macro-group-actions select,.macro-group-actions>.button{font-size:10px}
.macro-plan-buttons>.button{font-size:11px}.macro-reset{font-size:10px!important}
.trainer-settings-body>label,.trainer-settings-grid label,.trainer-settings-body select,.trainer-source{font-size:11px}
.trainer-actionbar>label{font-size:11px}.retri-summary span{font-size:11px}
.event-lineups label{font-size:12px}.event-lineups p{font-size:12px;line-height:1.6}
.build-talents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.build-talents label{font-size:12px;color:var(--muted)}.build-talents select{display:block;width:100%;margin-top:7px;font-size:12px}.detail-build .build-talents{margin:15px 0}.detail-build .build-talents select{margin:7px 0 0;min-width:0;width:100%}
.event-local-archive{display:flex;align-items:center;gap:12px;padding:0 20px 20px}.event-local-archive label{font-size:12px;display:flex;align-items:center;gap:10px}.event-local-archive select{min-width:160px;max-width:100%;font-size:12px}.trainer-actionbar{border-top:0;border-bottom:1px solid var(--line)}
html[data-theme=light] .macro-layer-controls,html[data-theme=light] .macro-play-controls,html[data-theme=light] .macro-roster-row select,html[data-theme=light] .trainer-settings-body label,html[data-theme=light] .trainer-settings-grid label,html[data-theme=light] .trainer-source,html[data-theme=light] .trainer-actionbar label,html[data-theme=light] .retri-summary span{color:#525763}
@media(max-width:790px){.macro-roster-row select{font-size:10px}.macro-roster h3>button{font-size:9px}.macro-plan-buttons>.button{font-size:10px}}
@media(max-width:790px){.macro-marker.heroes:not(.with-hero)>img{background:transparent;border:0}.macro-marker.heroes:not(.with-hero):after{content:'';position:absolute;inset:7px;border:1px solid #5bbfff;border-radius:50%;pointer-events:none}.macro-marker.heroes.red:not(.with-hero):after{border-color:#ff738a}}
@media(max-width:530px){
 .macro-workspace{grid-template-columns:1fr}.macro-toolrail{grid-column:1;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;border-right:0;border-bottom:1px solid var(--line);padding:6px 8px;gap:4px}.macro-toolrail>button{width:35px;height:35px;font-size:18px}.macro-toolrail>label{flex-direction:row;padding:3px}
 .macro-map-area{grid-column:1}.macro-layer-controls,.macro-layer-controls select{font-size:10px}.macro-layer-controls select{min-height:30px}.macro-play-controls label{font-size:10px}.macro-play-controls>button{min-height:32px}
 .macro-roster{padding:12px;gap:8px 10px}.macro-roster-row{min-height:44px;padding:5px}.macro-roster-row select{font-size:10px;min-height:26px}.macro-roster-row>img{width:18px;height:18px}.macro-roster-row>button{min-height:30px;width:20px;font-size:17px}.macro-roster h3{font-size:10px}.macro-roster h3>button{font-size:8px}.macro-hp-row{font-size:7px}
 .macro-bottom-bar,.macro-bottom-bar .text-link{font-size:9px}.macro-group-actions>label,.macro-group-actions select,.macro-group-actions>.button{font-size:10px}.macro-group-actions>.button{min-height:34px}
 .trainer-actionbar>.button{font-size:10px;min-height:36px}.trainer-actionbar>label{font-size:10px}.trainer-settings-grid input{font-size:13px}.trainer-settings-grid label,.trainer-settings-body>label,.trainer-settings-body select{font-size:11px}.trainer-source{font-size:10px}.retri-summary span{font-size:10px}.retri-ready-prompt p{font-size:11px}
 .event-lineups{grid-template-columns:1fr;gap:20px}.event-lineups label{font-size:12px}.event-lineups select{font-size:12px;min-height:38px}.event-lineups p{font-size:11px}
 .event-local-archive{flex-wrap:wrap;padding:0 13px 15px}.event-local-archive label{flex-wrap:wrap}.event-local-archive select{min-width:130px}
 .build-talents{grid-template-columns:1fr;gap:12px}.build-talents select{min-height:38px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.retri-arena.in-range .retri-cast>img{animation:none}.damage-popup{animation:none}.retri-projectile.hit{animation:none}.home-tool-card{transition:none}}
.macro-map-viewport{width:100%;aspect-ratio:1524/704;overflow:auto;position:relative;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#607391 #111e2c}
.macro-map-viewport .map-stage{width:100%;max-height:none!important;aspect-ratio:1524/704;container-type:inline-size;touch-action:none}
.macro-map-area{background:var(--panel);justify-content:flex-start}.macro-map-area .map-original{width:100%;height:100%;object-fit:fill}
#macro-terrain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}#map-drawing{z-index:3;pointer-events:none}.pan-mode{cursor:grab}.pan-mode:active{cursor:grabbing}
.macro-context{padding:16px;display:grid;gap:14px;background:var(--panel);border-top:1px solid var(--line);flex:1}.macro-pit-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.macro-context label{font-size:11px;color:var(--muted)}.macro-context select{display:block;width:100%;margin-top:6px;font-size:11px;min-height:34px}.macro-event-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.macro-event-controls>label:first-child{flex:1;min-width:130px}.macro-context .macro-checkbox{display:flex;gap:6px;align-items:center}.macro-context input[type=checkbox]{min-height:0;accent-color:var(--red)}
.macro-event-strip{display:flex;gap:7px;flex-wrap:wrap}.macro-event-strip>button{width:37px;height:37px;border:1px solid var(--line);border-radius:7px;background:var(--bg);display:grid;place-items:center;font-size:23px;color:var(--text)}.macro-event-strip>button img{width:24px;height:24px;object-fit:contain}.macro-event-strip>button.selected{border-color:var(--red);background:#ef43551a}.macro-defense summary{font-size:11px;cursor:pointer;color:var(--text)}.macro-defense>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.macro-defense label{display:flex;gap:6px;align-items:center}
.macro-time-settings{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.macro-time-settings>label:nth-child(2){display:flex;align-items:center;gap:8px}.macro-time-settings input[type=text]{width:68px;min-height:30px;font-size:11px;padding:5px}.macro-time-settings .button{font-size:10px;min-height:30px}.macro-alignment-note{font-size:10px;color:var(--muted);line-height:1.6;margin:0}.macro-zoom{display:flex;align-items:center;gap:6px;white-space:nowrap}.macro-zoom button{width:29px;height:29px;border:1px solid #61758b55;border-radius:5px;color:var(--text);font-size:18px}.macro-zoom output{font-size:10px;min-width:35px;text-align:center}.macro-bottom-bar{flex-wrap:wrap;background:var(--panel);color:var(--muted)}
.macro-inspector{padding:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px}.macro-inspector[hidden]{display:none}.macro-inspector>span{display:flex;gap:7px;align-items:center;font-size:11px;flex:1}.macro-inspector img{width:24px;height:24px;object-fit:contain}.macro-inspector label{display:flex;align-items:center;gap:7px}.macro-inspector input{min-height:0;width:90px}.macro-inspector .button{font-size:10px;min-height:30px}
.macro-marker{width:clamp(18px,3.2cqw,42px);height:clamp(18px,3.2cqw,42px);padding:2px}.macro-marker.turrets{width:clamp(14px,2.8cqw,37px);height:clamp(18px,3.6cqw,48px)}.macro-marker.nexus{filter:drop-shadow(0 0 5px #55b8ff)}.macro-marker.jungle,.macro-marker.minions,.macro-marker.events{width:clamp(12px,2.2cqw,30px);height:clamp(12px,2.2cqw,30px);padding:0;border:0;background:none}.macro-marker.objectives{width:clamp(18px,3.2cqw,43px);height:clamp(18px,3.2cqw,43px)}.macro-marker.healing_turtle{filter:drop-shadow(0 0 8px #27db88)}.macro-marker.healing_turtle:before{content:'';position:absolute;width:210%;height:210%;left:-55%;top:-55%;border:1px solid #6dffa7;border-radius:50%;background:radial-gradient(#30ef8055,#30ef8011 70%);pointer-events:none}.macro-marker.healing_turtle img{filter:none;position:relative}.macro-marker.wisp img,.macro-marker.sentry img{filter:none;opacity:1}.macro-marker.wisp{filter:drop-shadow(0 0 4px #6fffda)}.macro-marker.wisp.collected{filter:grayscale(.8);opacity:.5}.macro-marker.sentry{border:1px solid #ffdd86;border-radius:50%;padding:2px;background:#082035}.macro-marker.golden{filter:drop-shadow(0 0 6px #ffd96b)}.macro-marker.golden img{filter:brightness(0) saturate(100%) invert(84%) sepia(63%) saturate(681%) hue-rotate(349deg)}
.macro-shell:fullscreen .macro-map-area{align-items:center;justify-content:flex-start;overflow:auto}.macro-shell:fullscreen .macro-map-viewport{width:min(100%,calc((100vh - 106px)*1524/704));flex:none}.macro-shell:fullscreen .macro-bottom-bar,.macro-shell:fullscreen .macro-context{width:100%;flex:none}.macro-shell:fullscreen .map-stage{width:100%;max-height:none!important}
@media(max-width:790px){.macro-context{padding:13px;gap:13px}.macro-pit-controls{gap:8px}.macro-bottom-bar #macro-tool-hint{flex-basis:100%}.macro-zoom{margin-left:auto}.macro-marker.heroes:not(.with-hero)>img{padding:0}.macro-marker.heroes:not(.with-hero):after{inset:0}.macro-context label{font-size:11px}.macro-defense>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
.macro-marker.turrets,.macro-marker.jungle,.macro-marker.minions,.macro-marker.objectives{padding:0}.macro-marker.turrets img,.macro-marker.objectives img,.macro-marker.jungle img,.macro-marker.minions img{padding:0;border:0;border-radius:0;background:transparent}
.macro-marker.wisp{width:clamp(12px,2.3376cqw,32px);height:clamp(8.47px,1.652cqw,22.59px);transform:translate(-50%,-92%)}.macro-marker.wisp img{border-radius:0;background:none;border:0;padding:0}
