.otc-country-profile-avatar{position:relative;display:inline-flex;line-height:0}.otc-country-profile-avatar>.otc-country-flag,.v7-portrait-wrap>.otc-country-flag{position:absolute;right:14%;bottom:14%;width:20px!important;height:15px!important;object-fit:cover;border:1px solid #fff;border-radius:2px;z-index:4;box-sizing:border-box}.otc-country-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.otc-country-form label{display:grid;gap:5px}.otc-country-form select{max-width:100%}.otc-country-form [role=status]{min-width:10em}@media(max-width:600px){.v7-portrait-wrap>.otc-country-flag{width:16px!important;height:12px!important}}
.otc-country-card-wrap,.otc-country-rank,.otc-country-podium{position:relative;display:inline-block;line-height:0;flex-shrink:0}.otc-country-podium{display:block;width:fit-content;margin:0 auto}.otc-country-card-wrap>.otc-country-flag,.otc-country-rank>.otc-country-flag,.otc-country-podium>.otc-country-flag{position:absolute;right:0;bottom:0;width:20px!important;height:15px!important;object-fit:cover;border:1px solid white;border-radius:2px;z-index:5;box-sizing:border-box}.otc-country-podium>.otc-country-flag{bottom:12px}.v7-mobile-avatar>.otc-country-card-wrap>.v7-portrait-wrap{width:56px;height:56px}.rank-row>.otc-country-rank>.otc-country-flag{width:15px!important;height:11px!important}@media(max-width:600px){.otc-country-card-wrap>.otc-country-flag{width:16px!important;height:12px!important}}
.otc-country-analyst,.otc-country-follow{position:relative;display:inline-block;line-height:0;flex-shrink:0}.otc-country-analyst>.otc-country-flag,.otc-country-follow>.otc-country-flag{position:absolute;right:0;bottom:0;width:15px!important;height:11px!important;object-fit:cover;border:1px solid #fff;border-radius:2px;z-index:5;box-sizing:border-box}
.otc-center .otc-dash__person>.otc-country-follow{flex:0 0 44px;width:44px;height:44px}.otc-center .otc-dash__person .otc-country-flag{border-radius:2px}.otc-country-analyst>.avatar{display:inline-flex}
.otc-country-mini{position:relative;display:inline-flex;line-height:0;flex-shrink:0}.otc-country-mini>.otc-country-flag{position:absolute;right:0;bottom:0;width:12px!important;height:9px!important;object-fit:cover;border:1px solid white;border-radius:2px;z-index:5;box-sizing:border-box}

.otc-country-css-probe{--otc-country-css-loaded:1}

.otc-profile-avatar-stack{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-inline-size:0;flex-shrink:0}
.otc-country-label{display:inline-flex;align-items:center;width:fit-content;vertical-align:middle;flex:none}
.otc-country-label>.otc-country-label-flag{flex:0 0 16px;width:16px;height:12px;object-fit:contain;border-radius:2px;display:block}
.otc-profile-avatar-stack > .v2-cromo { position: relative; }
.otc-profile-avatar-stack > .v2-cromo > .otc-country-label {
    position: absolute;
    inset-inline-end: 8px;
    inset-block-end: 8px;
    z-index: 6;
}
.v7-avatar-panel>.otc-country-label,.v7-mobile-avatar>.otc-country-label{align-self:center;margin-block:4px}
.v7-mobile-avatar:has(>.otc-country-label){height:auto;min-height:0;display:flex;flex-direction:column;justify-content:center}
.v7-mobile-avatar>.otc-country-label{justify-content:center}

/* Tipster center: keep the country beside the name, out of the portrait. */
:is([data-otc-reference="portal"], [data-otc-reference="directory"], [data-otc-reference="profile"] .similar-grid) .v7-name-wrap:has(> .otc-country-label),
:is([data-otc-reference="portal"], [data-otc-reference="directory"], [data-otc-reference="profile"] .similar-grid) .v7-mobile-name:has(> .otc-country-label) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    min-width: 0;
}
:is([data-otc-reference="portal"], [data-otc-reference="directory"], [data-otc-reference="profile"] .similar-grid) .v7-name-wrap:has(> .otc-country-label) {
    height: auto;
    min-height: 30px;
}
:is([data-otc-reference="portal"], [data-otc-reference="directory"], [data-otc-reference="profile"] .similar-grid) .v7-name-wrap > .otc-country-label,
:is([data-otc-reference="portal"], [data-otc-reference="directory"], [data-otc-reference="profile"] .similar-grid) .v7-mobile-name > .otc-country-label {
    flex: 0 1 auto;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.otc-country-tooltip[hidden] { display: none; }
.otc-country-tooltip {
    position: fixed;
    z-index: 100400;
    box-sizing: border-box;
    max-width: min(240px, calc(100vw - 16px));
    padding: 5px 8px;
    border: 1px solid #464756;
    border-radius: 6px;
    background: #1b1b25;
    color: #f4f2ee;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    font: 600 12px/1.3 system-ui, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}
img[data-otc-country-name]:focus-visible {
    outline: 2px solid #c6f135;
    outline-offset: 2px;
}

/* Keep flags reachable above the full-card profile link. */
.v7-card:has(.v7-card-link) :is(.v7-name-wrap, .v7-mobile-name, .v7-avatar-panel, .v7-mobile-avatar):has(> .otc-country-label) {
    position: relative;
    z-index: 11;
    pointer-events: none;
}
.v7-card:has(.v7-card-link) :is(.otc-country-label, .otc-country-label img) {
    pointer-events: auto;
}
