.header-stats{display:flex;gap:5px;align-items:center;min-width:0}.header-stat{min-width:66px;padding:7px 9px;border:1px solid #ffffff0e;border-radius:10px;background:#ffffff04;line-height:1.2;text-align:left;white-space:nowrap}.header-stat small{display:block;color:#858d9e;font-size:10px;margin-bottom:4px}.header-stat strong{font-size:14px;font-variant-numeric:tabular-nums;color:#eef1f7;font-weight:650}.header-stat.earning strong{color:#9be0b9}.header-stat.rest strong{color:#edcf88}.cabinet-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;color:#e7e8ee!important;background:#ffffff08!important;border:1px solid #ffffff16!important;border-radius:10px;padding:10px 13px;font-size:12px;cursor:pointer}.app-user{margin-left:auto;display:flex;align-items:center;gap:12px;min-width:0}.app-header{gap:18px}.app-header .app-nav{gap:4px}.app-header .user-chip{max-width:150px;font-size:11px}.account-logout{margin-top:24px;width:100%;padding:12px!important;color:#f1b7bb!important;border:1px solid #e1949a33!important}.header-stats.stale{opacity:.5}#proxyRotate{display:flex;align-items:center;gap:8px}#proxyRotate[hidden]{display:none}#rotateProxyStatus{max-width:240px;font-size:11px;color:#9ca6b7}#rotateProxyBtn{white-space:nowrap}body>header{gap:18px}body>header nav{margin-right:0}#identity{font-size:11px;max-width:140px}.app-user .header-stats{order:0}.cabinet-link{order:1}@media(max-width:1350px){.app-header,body>header{flex-wrap:wrap}.app-user{flex:1;justify-content:flex-end}.header-stat{min-width:59px;padding:6px 8px}}@media(max-width:900px){.app-header .app-user .user-chip{display:block}.app-header .app-user,body>header .app-user{width:100%;flex-wrap:wrap;justify-content:space-between}.header-stats{order:2!important;flex:1 0 100%;justify-content:space-between}.header-stat{flex:1;min-width:0;padding:7px}.header-stat small{font-size:9px}.header-stat strong{font-size:13px}.cabinet-link{margin-left:auto}.app-header .app-nav{flex-wrap:wrap}#proxyRotate{flex-wrap:wrap}.app-header .brand{flex-shrink:0}}@media(max-width:420px){.header-stat{padding:6px 4px}.header-stat small{font-size:8px}.header-stat strong{font-size:12px}}

.app-user{flex-shrink:0}.header-stats{flex-shrink:0}.cabinet-link{width:auto!important;flex:0 0 auto!important;min-width:0;margin-top:0!important}.app-header .user-chip{white-space:nowrap;flex-shrink:0}body>header .app-user{flex:0 0 auto}body>header nav{flex:1 0 auto}
@media(max-width:1100px){.app-header{padding-top:12px;padding-bottom:12px}.app-header .app-user{flex:1 0 100%;justify-content:flex-end}.app-header .user-chip{margin-right:auto}}
@media(max-width:900px){body>header .app-user,.app-header .app-user{flex:0 0 100%;width:100%;gap:10px}.header-stats{flex:0 0 100%;width:100%;gap:5px}.header-stat{white-space:nowrap;flex:1 1 0}.app-header .app-user .user-chip{margin-right:auto}body>header nav{order:0;flex:0 0 100%;width:100%;justify-content:flex-start}body>header .app-user #identity{margin-left:0}.header-stat.earning{flex-grow:1.4}}

/* Account counters share a separate sticky strip across Farm Web views. */
body .account-stats-strip {
    position: sticky;
    top: var(--stats-header-height, 0px);
    z-index: 99;
    background: #151b24;
    border-bottom: 1px solid #333d4d;
    padding: 5px 16px;
}
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 1100px;
    margin: 0 auto;
}
.account-counter-group {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    border: 1px solid #2d3746;
    border-radius: 7px;
    padding: 0 6px 0 8px;
    background: #191f29;
}
.account-counter-caption {
    font-size: 11px;
    font-weight: 650;
    color: #b6c2d3;
    white-space: nowrap;
}
.account-counter-values {
    display: grid;
    grid-template-columns: repeat(var(--counter-columns), minmax(0, 1fr));
    min-width: 0;
}
body .account-counter {
    display: grid;
    place-items: center;
    min-height: 28px;
    padding: 0 1px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    line-height: 1;
    color: #d1d5db;
    border-radius: 4px;
}
.account-counter + .account-counter {border-left: 1px solid #ffffff0e;}
body .account-counter:hover {background: #ffffff0c;}
body .account-counter:focus-visible {outline: 2px solid #9bc6ff;outline-offset: -2px;}
body .counter-sold {color: #77c6a1;}
body .counter-ready {color: #b5de70;}
body .counter-rest_timer {color: #f5cf54;}
body .counter-rest, body .counter-appeal {color: #ed963e;}
body .counter-invalid {color: #ff8997;}
body .header-stats[hidden], body .account-stats-strip[hidden] {display: none !important;}
body .account-stats-strip.stale {opacity: .75;}
body .app-user > .header-stats {
    flex: 0 0 auto;
    width: auto;
    order: 0 !important;
    min-width: 0;
}
body .app-user .header-earnings-link {
    display: block;
    text-decoration: none;
    min-width: 0;
    padding: 5px 8px;
}
body .header-earnings-link:hover {background: #253244;border-color: #5275a1;}
body .header-earnings-link small {margin-bottom: 2px;color: #a9b8cc;}
@media (max-width: 920px) {
    .account-stats-grid {grid-template-columns: 1fr;gap: 3px;}
    body .account-counter {min-height: 24px;}
}
@media (max-width: 700px) {
    body .account-stats-strip {top: 0;padding: 4px 10px;}
    body .app-header .app-user, body > header .app-user {gap: 7px;}
    body .app-header .app-user .user-chip, body > header .app-user #identity {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        margin-right: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body .app-user .cabinet-link {margin-left: 0;padding-inline: 9px;}
}

/* Paid bookings between delivered and available accounts. */
body .counter-booked {color: #c4a0ff;}
