/* Показатель и его действие — одна нажимаемая карточка. */
#topbar .resources{align-items:stretch}
#topbar .resources>.metric-control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-height:92px;height:100%;padding:9px 11px 7px;border:1px solid #a9c1ae2d;border-radius:8px;text-align:left;cursor:pointer;touch-action:manipulation;background:linear-gradient(155deg,#c7d0b510,#a9c4a604);box-shadow:inset 0 1px #eff1d80a,0 2px 2px #06100e20;transition:background .16s,border-color .16s,box-shadow .16s,transform .12s;-webkit-tap-highlight-color:#d7bb7e28}
#topbar .resources>.cash-resource{border-color:#c8a36c45;background:linear-gradient(120deg,#c8a36c18,#c8a36c05)}
#topbar .metric-readout{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;min-height:48px;width:100%}
#topbar .cash-readout,#topbar .rep-readout{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
#topbar .cash-copy{display:block;min-width:0;flex:1}
#topbar .cash-copy>span{display:block;margin-bottom:4px;color:#aebdb2;font:450 .75rem/1.15 var(--font)}
#topbar .cash-copy>strong{display:block;white-space:nowrap;letter-spacing:-.5px;line-height:1.2}
#topbar .rep-resource .rep-copy{display:block;min-width:0}
#topbar .rep-resource .rep-copy>small{display:block;font-size:.6875rem;line-height:1.15;margin-bottom:2px}
#topbar .rep-resource .rep-copy>strong{display:block;font-size:1.125rem;line-height:1.15}
#topbar .rep-resource .rank-emblem{width:34px}
#topbar .rep-resource .rank-badge{width:34px;height:39px}
#topbar .rep-title{font-size:.625rem;margin-top:3px}
#topbar .vital-readout .vital-label{display:block;width:100%}
#topbar .vital-readout .vital-label b{margin:3px 0 6px}
#topbar .vital-readout>.progress{width:100%;flex:none}
#topbar .heat-readout{align-items:flex-start}
#topbar .heat-heading{display:flex;align-items:center;gap:5px;font:450 .75rem/1.2 var(--font);color:#b0c0b5;white-space:nowrap}
#topbar .heat-heading>.ico{width:12px;height:12px;color:#9fb4a6;flex:none}
#topbar .heat-heading>b{font-size:.625rem;font-weight:450;color:#8fa497}
#topbar .heat-readout .heat-stars{display:flex;gap:3px;flex:none;margin:5px 0 3px}
#topbar .heat-status{font-size:.5625rem;line-height:1.3;color:#94aa9a}
#topbar .metric-action{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:none;width:100%;margin-top:6px;padding-top:6px;border-top:1px solid #bdc49e1a;font:500 .6875rem/1.2 var(--font);color:#b8ba96;white-space:nowrap}
#topbar .metric-action>span:first-child{text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#b8ba9660;text-underline-offset:3px}
#topbar .metric-more{display:flex;align-items:center;justify-content:center;gap:2px;flex:none;width:19px;height:14px;border:1px solid #b8ba9636;border-radius:3px;background:#d7ca9807;box-shadow:inset 0 1px #e4e4b707}
#topbar .metric-more>i{display:block;height:2px;width:2px;border-radius:50%;background:currentColor}
#topbar .resources>.metric-control:hover,#topbar .resources>.metric-control:focus-visible{border-color:#c7b47b88;background:linear-gradient(150deg,#c5c39b1c,#b7cbbb0b);box-shadow:inset 0 1px #f2e9c61a,0 3px 9px #060e0c40;transform:translateY(-1px)}
#topbar .resources>.metric-control:focus-visible{outline:2px solid #d5b77e;outline-offset:3px}
#topbar .metric-control:hover .metric-action,#topbar .metric-control:focus-visible .metric-action{color:#e0c68d;border-top-color:#c7b47b2e}
#topbar .metric-control:hover .metric-action>span:first-child,#topbar .metric-control:focus-visible .metric-action>span:first-child{text-decoration-style:solid;text-decoration-color:#e0c68d80}
#topbar .metric-control:hover .metric-more,#topbar .metric-control:focus-visible .metric-more{border-color:#c7b47b88;background:#d7bc7e15}
#topbar .resources>.metric-control:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #0004;background:#c3bd8815}
#topbar .resources>.metric-control.is-low,#topbar .resources>.metric-control.danger{border-color:#d8957145;background:linear-gradient(145deg,#c7846017,#c7846005)}
#topbar .metric-control.is-low .metric-action,#topbar .metric-control.danger .metric-action{color:#cfaa85}
#topbar .resources>.metric-control.is-low:hover,#topbar .resources>.metric-control.is-low:focus-visible,#topbar .resources>.metric-control.danger:hover,#topbar .resources>.metric-control.danger:focus-visible{border-color:#d9a2759c;background:linear-gradient(150deg,#ce997126,#c784600c)}
#topbar .metric-control.danger .heat-heading{color:#e9ad8b}
.metric-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
.metric-tooltip{position:fixed;z-index:90;display:block;width:min(265px,calc(100vw - 24px));padding:13px 15px;border:1px solid #9d9e6e80;border-radius:7px;background:linear-gradient(125deg,#354032fa,#24302afa);color:#d2d6bb;box-shadow:inset 0 1px #e3d5a617,0 8px 22px #07120d60;pointer-events:auto}
.metric-tooltip[hidden]{display:none}
.metric-tooltip>strong{display:block;font:550 .875rem/1.35 var(--font);color:#e4d4a9;margin-bottom:5px}
.metric-tooltip>span{display:block;font:400 .8125rem/1.6 var(--font);color:#aebca4}
@media(min-width:601px) and (max-width:1000px){
 #topbar .header-actions .header-quests>span{display:none}
 #topbar .breadcrumb{min-width:0;gap:8px}
 #topbar .breadcrumb>span,#topbar .breadcrumb>i{display:none}
 #topbar .breadcrumb>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(min-width:851px) and (max-width:1100px){
 #topbar .resources>.metric-control{padding:8px 8px 7px}
 #topbar .cash-readout,#topbar .rep-readout{gap:6px}
 #topbar .cash-readout>.resource-icon{width:25px;height:25px}
 #topbar .rep-resource .rank-emblem{width:28px}
 #topbar .rep-resource .rank-badge{width:28px;height:33px}
 #topbar .metric-action{font-size:.625rem}
 #topbar .metric-more{width:16px}
 #topbar .heat-heading{font-size:.6875rem;gap:4px}
 #topbar .heat-heading>b{display:none}
 #topbar .heat-status{font-size:.5rem}
}
@media(max-width:850px){
 #topbar .resources>.metric-control{min-height:83px;padding:8px 11px 7px}
 #topbar .metric-readout{min-height:43px}
 #topbar .metric-action{margin-top:5px;padding-top:5px}
 #topbar .heat-status{display:none}
}
@media(max-width:600px){
 #topbar .resources{padding:10px;gap:7px 6px}
 #topbar .resources>.metric-control{min-height:80px;padding:7px 9px 6px;border-radius:7px}
 #topbar .metric-readout{min-height:40px}
 #topbar .cash-readout>.resource-icon{display:none}
 #topbar .cash-copy>span{font-size:.6875rem;margin-bottom:4px}
 #topbar .cash-copy>strong{font-size:1.1875rem}
 #topbar .rep-readout{gap:5px;align-items:center}
 #topbar .rep-resource .rep-copy>small{font-size:.6875rem;line-height:1.2;margin-bottom:4px}
 #topbar .rep-resource .rep-copy>strong{font-size:1.125rem}
 #topbar .rep-resource .rank-emblem{width:23px}
 #topbar .rep-resource .rank-badge{width:23px;height:27px}
 #topbar .rep-resource strong em{display:none}
 #topbar .vital-readout .vital-label{font-size:.75rem}
 #topbar .vital-readout .vital-label b{font-size:1rem;line-height:1.15;margin:2px 0 5px}
 #topbar .vital-readout .vital-label b small{font-size:.625rem}
 #topbar .vital-readout>.progress{height:3px}
 #topbar .heat-heading{font-size:.6875rem;gap:4px}
 #topbar .heat-heading>b{display:none}
 #topbar .heat-readout .heat-stars{gap:3px;margin:7px 0 1px}
 #topbar .heat-stars>.ico{width:12px;height:12px}
 #topbar .metric-action{font-size:.6875rem;padding-top:5px;margin-top:4px}
 #topbar .metric-more{width:15px;height:13px;gap:1px}
 #topbar .metric-more>i{width:2px;height:2px}
}
@media(max-width:370px){
 #topbar .resources{padding-inline:8px;column-gap:5px}
 #topbar .resources>.metric-control{padding-inline:7px}
 #topbar .cash-copy>span,#topbar .rep-resource .rep-copy>small{font-size:.625rem}
 #topbar .cash-copy>strong{font-size:1.0625rem}
 #topbar .rep-readout{gap:4px}
 #topbar .rep-resource .rank-emblem{width:20px}
 #topbar .rep-resource .rank-badge{width:20px;height:25px}
 #topbar .rep-resource .rep-copy>strong{font-size:1.0625rem}
 #topbar .vital-readout .vital-label{font-size:.6875rem}
 #topbar .vital-readout .vital-label>.ico{width:10px;height:10px;margin-right:3px}
 #topbar .heat-heading{font-size:.625rem}
 #topbar .heat-readout .heat-stars{gap:2px}
 #topbar .heat-stars>.ico{width:10px;height:10px}
 #topbar .metric-action{font-size:.625rem;gap:3px}
 #topbar .metric-more{width:14px;gap:1px}
}
@media(prefers-reduced-motion:reduce){#topbar .resources>.metric-control{transition:none}#topbar .resources>.metric-control:hover,#topbar .resources>.metric-control:focus-visible{transform:none}}
