/* RotE presentation only. Preserve control visibility, map geometry and DOM order. */
#section-rote{--rote-line:rgba(143,168,197,.21);--rote-gold:#eac887;--rote-muted:#acbbcd}
#section-rote>.dash-section-title{position:relative;margin:0!important;padding:32px 32px 12px;border:1px solid var(--rote-line);border-bottom:0;border-radius:20px 20px 0 0;background:radial-gradient(ellipse at top right,rgba(96,106,164,.23),transparent 65%),#141e2d;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.25;letter-spacing:-.035em;color:#f1f4fa}
#section-rote>.dash-section-subtitle{margin:0 0 28px!important;padding:0 32px 30px;border:1px solid var(--rote-line);border-top:0;border-radius:0 0 20px 20px;background:#141e2d;color:var(--rote-muted);line-height:1.7;font-size:.9rem}
#section-rote>:is(#rote-orders-panel,#rote-squads-panel,#rote-plan-panel,#rote-acc-panel,#rote-phd-panel,#rote-hist-panel,#rote-results-panel){--panel-tint:rgba(116,151,191,.11);position:relative;padding:26px!important;margin-bottom:22px!important;border:1px solid var(--rote-line)!important;border-radius:17px!important;background:linear-gradient(115deg,var(--panel-tint),transparent 65%),var(--bg-card)!important;box-shadow:0 8px 28px rgba(0,0,0,.1)}
#section-rote>#rote-orders-panel{--panel-tint:rgba(213,174,95,.08);border-top-color:rgba(234,200,135,.5)!important}
#section-rote>#rote-squads-panel{--panel-tint:rgba(74,154,175,.09);border-top-color:rgba(112,202,221,.5)!important}
#section-rote>#rote-plan-panel{--panel-tint:rgba(130,115,206,.11);border-top-color:rgba(169,152,228,.5)!important}
#section-rote>:is(#rote-acc-panel,#rote-phd-panel,#rote-hist-panel,#rote-results-panel){border-top-color:rgba(139,174,209,.4)!important}
#section-rote>:is(#rote-orders-panel,#rote-squads-panel,#rote-acc-panel,#rote-phd-panel,#rote-hist-panel,#rote-results-panel)>div:first-child{font-size:1.12rem!important;letter-spacing:-.015em;margin-bottom:10px!important;line-height:1.45}
#section-rote>:is(#rote-orders-panel,#rote-squads-panel,#rote-acc-panel,#rote-phd-panel,#rote-hist-panel,#rote-results-panel)>p{max-width:1040px;line-height:1.8!important;font-size:.84rem!important;margin-bottom:18px!important}
#section-rote :is(.btn,.tab-btn,.phase-btn){border-radius:9px!important;min-height:40px;line-height:1.35;white-space:normal}
#section-rote :is(#rote-orders-load,#rote-squads-load,#rote-acc-load,#rote-phd-load,#rote-hist-load,#rote-results-load){background:rgba(222,182,111,.1)!important;border:1px solid rgba(222,182,111,.34)!important;color:#efd3a5!important;box-shadow:none!important;padding:10px 16px!important}
#section-rote :is(#rote-orders-load,#rote-squads-load,#rote-acc-load,#rote-phd-load,#rote-hist-load,#rote-results-load):hover{background:rgba(222,182,111,.18)!important;border-color:#c5a56f!important}
#section-rote :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #a8c9e7!important;outline-offset:3px}
#section-rote :is(#rote-orders-body details,#rote-plan-panel>details,#rote-hist-panel>details){border-radius:11px!important;border-color:var(--rote-line)!important;background:rgba(5,12,22,.3)!important}
#section-rote #rote-orders-body summary{padding:13px 16px!important;font-size:.88rem;line-height:1.5}
#section-rote #rote-orders-body details[open]{border-color:rgba(234,200,135,.4)!important}
#section-rote #rote-orders-body textarea{padding:12px!important;border-radius:9px!important;line-height:1.6}
#section-rote #rote-orders-body textarea:read-only{background:rgba(13,20,30,.55)!important}
#section-rote #rote-plan-panel>details summary,#section-rote #rote-hist-panel>details summary{line-height:1.6;padding-block:4px}
#section-rote #rpl-tabs{gap:8px!important;padding:8px 0 16px;border-bottom:1px solid var(--rote-line)}
#section-rote #rpl-grand{font-variant-numeric:tabular-nums;color:var(--rote-gold)!important}
#section-rote #rote-squads-panel .rsq-phases{gap:8px;margin-bottom:18px}
#section-rote #rote-squads-panel .rsq-ph{min-height:38px;padding:8px 14px;border-radius:9px;letter-spacing:.02em}
#section-rote #rote-squads-panel .rsq-ph.on{background:#a0d3e2;color:#0b1a24;border-color:#bde9f4;box-shadow:0 0 0 3px rgba(108,188,211,.1)}
#section-rote #rote-squads-panel .rsq-map{border-color:rgba(114,164,200,.32);box-shadow:inset 0 0 45px rgba(0,0,0,.2)}
#section-rote .rote-controls{padding:24px!important;border:1px solid var(--rote-line)!important;border-radius:17px!important;background:linear-gradient(135deg,rgba(85,107,152,.1),transparent),var(--bg-card)!important;display:flex;gap:24px;flex-wrap:wrap;align-items:start}
#section-rote .rote-control-group{flex:1 1 260px;min-width:0;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
#section-rote .rote-control-group>label{flex-basis:100%;font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;font-weight:600;color:var(--rote-muted);margin:0 0 3px}
#section-rote .rote-control-group>div{min-width:0;max-width:100%}
#section-rote #rote-stars-display{color:var(--rote-gold)!important;font-size:1.45rem;font-variant-numeric:tabular-nums}
#section-rote :is(#rote-stars-slider,#rote-zoom-slider){accent-color:var(--rote-gold);height:6px;cursor:pointer;min-width:70px!important}
#section-rote .phase-btn{font-size:.78rem;padding:9px 13px!important}
#section-rote .phase-btn.active{border-color:rgba(234,200,135,.65)!important;background:rgba(234,200,135,.13)!important;color:var(--rote-gold)!important;box-shadow:0 0 0 2px rgba(234,200,135,.06)}
#section-rote :is(#rote-zoom-in,#rote-zoom-out){width:36px!important;height:36px!important;flex-shrink:0;color:var(--rote-gold)!important;border-radius:8px!important}
#section-rote #rote-zoom-reset{min-height:36px;border-radius:8px!important}
#section-rote .rote-controls+div{padding:10px!important;gap:10px!important;border-radius:17px!important;border-color:var(--rote-line)!important;background:var(--bg-card)!important}
#section-rote .rote-controls+div>div{padding:17px 10px;min-width:100px!important;border-radius:10px;background:rgba(123,153,188,.05)}
#section-rote :is(#rote-ds-total,#rote-mid-total,#rote-ls-total,#rote-special-total){font-size:1.65rem!important;font-variant-numeric:tabular-nums}
#section-rote #rote-canvas-container{border-radius:17px!important;border-color:var(--rote-line)!important;background:#0c1323!important;box-shadow:0 12px 30px rgba(0,0,0,.2)}
#section-rote #rote-error{border-radius:12px!important;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){
#section-rote>.dash-section-title{padding:24px 19px 10px;font-size:1.6rem}
#section-rote>.dash-section-subtitle{padding:0 19px 23px;margin-bottom:20px!important}
#section-rote>:is(#rote-orders-panel,#rote-squads-panel,#rote-plan-panel,#rote-acc-panel,#rote-phd-panel,#rote-hist-panel,#rote-results-panel){padding:18px 15px!important;border-radius:13px!important}
#section-rote .rote-controls{padding:18px 15px!important;gap:22px}
#section-rote .rote-control-group{flex-basis:100%}
#section-rote #rote-canvas-container{padding:8px!important}
#section-rote #rote-phd-snap{margin:8px 0!important}
#section-rote #rote-squads-panel .rsq-deck{grid-template-columns:minmax(0,1fr)}
#section-rote #rote-orders-body summary{padding:12px!important}
}
@media(prefers-reduced-motion:reduce){#section-rote #rote-squads-panel :is(.scan,.rsq-core,.rsq-core:before,.rsq-core:after,.rsq-pl.on:before){animation:none!important}}
/* Allow the dashboard flex item and zoom toolbar to shrink on narrow screens. */
.dash-main:has(#section-rote.active){min-width:0}
#section-rote .rote-control-group>div{flex-wrap:wrap}
#section-rote #rote-zoom-slider{width:100px;flex:1 1 70px!important}
