/* Reserved text flow, existing painted icons and symmetrical recap slots. */
#contentBarGoal:has(#r16TideResult){flex:1;min-width:0}
#contentBarGoal #r16TideResult{position:static!important;display:grid;grid-template-rows:repeat(3,auto);font:700 12px/17px Arial;white-space:normal;text-align:left;padding:2px 0}
#r16TideResult>span{position:static!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere;color:#f2f1fa}
.r17-next-action{display:block;margin-top:2px;font:700 12px/14px Arial;color:#e9bd74}
body:has(#exchangePreview) #r12StepReceipt{display:none!important}
#twinStatus{min-height:66px!important}
#r16Details{border:1px solid #da8a6d;padding:0 6px;background:#10152d}
#r16Details>summary{list-style:none;min-height:44px}
#r16Details>summary::before{content:'▸';margin-right:6px}
#r16Details[open]>summary::before{content:'▾'}
#r16Details>summary::-webkit-details-marker{display:none}
#r16Details[open]{height:44px;max-height:44px;overflow:visible;position:relative}
#r16Details[open]>.r17-recap-body{position:absolute;z-index:310;background:#201c3d;left:-7px;right:-7px;bottom:44px;max-height:35dvh;overflow:auto;padding:8px;border:1px solid #da8a6d}
.r17-feedback-line{display:block;font:700 14px/21px Arial}
.r17-concept{display:block;font:400 13px/19px Arial;color:#e9bd74;margin-top:3px}
.r15-final-unit[data-empty=true],.r15-final-lane:not(:has([data-uid])) .r15-final-unit{height:126px;min-height:126px;opacity:.5}
.r15-side-label{flex-direction:row!important;flex-wrap:wrap;gap:3px}
.r15-final-lane{grid-template-columns:94px 1fr}
.r17-branches{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0}
body[data-content-id=moen] #exchangePreview{padding:4px!important}
.r17-branches>div{border:1px solid #69cfe9;background:#10152d;padding:4px}
.r17-branches>div[data-branch=prevented]{border-color:#da8a6d}
.r17-branches strong,.r17-branches span{display:block;font:700 12px/17px Arial;color:#f2f1fa}
.r13-projection{display:none!important}
.r17-projection{position:absolute;top:33px;left:0;right:auto;z-index:40;display:flex;align-items:center;justify-content:center;gap:3px;background:#512b3de8;border:1px dashed #e9bd74;padding:1px;color:#fff2e9;font:700 12px/16px Arial;pointer-events:none;white-space:nowrap}
.r17-projection img{width:14px;height:16px;object-fit:contain;opacity:.8}
.r17-projection[data-mode=ebb]{background:#203e56e8;border-color:#69cfe9}
.r17-hero-preview{position:static!important;display:inline-flex;width:auto;line-height:18px;margin-left:4px;padding:0 3px;box-sizing:border-box}
body:has(#forecastPanel:not([hidden])) #enemyTideStyle{display:none}
body:has(#forecastPanel[hidden]) .r17-projection{display:none}
#forecastTitle:has(.r17-mini-track){display:flex!important;align-items:center;justify-content:space-between;gap:6px}
.r17-mini-track{display:flex;align-items:center;gap:2px;min-height:20px}
.r17-mini-state{font:700 10px/14px Arial;color:#e9bd74;white-space:nowrap}
.r17-mini-anchor{display:flex;align-items:center;gap:2px;padding:0 1px;border:1px solid #da8a6d}
.r17-mini-anchor img{width:14px;height:14px;object-fit:contain}
.r17-mini-anchor b{display:none}
.r17-mini-anchor small{display:none}
.r17-mini-anchor[data-mode=ebb]{border-color:#69cfe9}
.r17-mini-link{display:flex;align-items:center;position:relative;min-width:26px;height:16px}
.r17-mini-link i{width:10px;height:8px;border:2px solid #da8a6d;border-radius:50%;margin-left:-3px;box-sizing:border-box}
[data-chain-state=first] .r17-mini-anchor[data-done=true]{outline:2px solid #e9bd74;outline-offset:1px}
[data-chain-state=reversed] .r17-mini-anchor{border-style:dashed}
[data-chain-state=reversed] .r17-mini-link i:nth-child(3){visibility:hidden}
[data-chain-state=reversed] .r17-mini-link::after{content:'⇄';position:absolute;inset:0;color:#69cfe9;font:700 18px/16px Arial;text-align:center}
@media(max-height:650px){
 #forecastTitle:has(.r17-mini-track){flex-direction:column;align-items:flex-start;gap:0}
 body[data-content-active=true] #enemyHero{flex:1 1 auto!important;min-width:0!important}
 body[data-content-active=true] #enemyHero .name{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font:700 11px/14px Arial!important;min-width:0!important}
 body[data-content-active=true] #enemyHero .avatar{width:24px!important;min-width:24px!important;height:24px!important}
 body[data-content-active=true]:has(#forecastPanel:not([hidden])) #enemyTide{display:none!important}
 #contentBarGoal #r16TideResult{font:700 11px/14px Arial}
 .r15-final-unit[data-empty=true],.r15-final-lane:not(:has([data-uid])) .r15-final-unit{height:72px;min-height:72px}
 .r17-feedback-line{font-size:12px;line-height:17px}
 .r17-concept{font-size:11px;line-height:15px}
 .r17-branches strong,.r17-branches span{font-size:11px;line-height:14px}
 .r17-projection{font-size:10px;line-height:14px;padding:1px}
 .r17-hero-preview{width:auto}
}
@media(max-height:650px) and (max-width:599px){
 body[data-content-active=true] .r79-tide-source{display:none!important}
 body[data-content-active=true] #enemyTideCount{display:inline!important}
 body[data-content-active=true] #enemyHero{flex:1 1 auto!important;min-width:0!important}
 body[data-content-active=true] #enemyHero .name{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font:700 11px/14px Arial!important;min-width:0!important}
 body[data-content-active=true] #enemyHero .avatar{width:24px!important;min-width:24px!important;height:24px!important}
 body[data-content-active=true] .hero-stats{flex-shrink:0}
}
@media(min-width:600px) and (max-height:650px){
 #exchangePreview .r17-branches{grid-column:1;grid-row:2}
 #exchangePreview>div:last-child{grid-row:1/3!important}
 #forecastTitle:has(.r17-mini-track){flex-direction:column;align-items:flex-start;gap:0}
 .r17-mini-anchor b{display:none}
}
