*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (pointer: coarse) {
    html {
        overscroll-behavior-y: none;
    }
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--t1);
    font-family: 'Manrope', sans-serif;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
    transition: background .35s, color .35s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: var(--noise);
}

@supports(padding:max(0px)) {
    :root {
        --safe-top: max(env(safe-area-inset-top), 0px);
        --safe-bottom: max(env(safe-area-inset-bottom), 0px);
    }
}

* {
    -webkit-tap-highlight-color: transparent
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--sf3);
    border-radius: 4px
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .35;
        transform: scale(.6)
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@keyframes ldot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .3;
        transform: scale(.5)
    }
}

@keyframes tS {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes navItemPop {
    0% {
        transform: scale(.85)
    }

    60% {
        transform: scale(1.12)
    }

    100% {
        transform: scale(1)
    }
}

.sk {
    background: linear-gradient(90deg, var(--sf) 0%, var(--sf2) 50%, var(--sf) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px
}

.ticker-bar {
    min-height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
}

@supports(height:100dvh) {
    .page-grid {
        min-height: calc(100dvh - var(--nav-h));
    }
}

@media (max-width:980px) {
    .page-grid {
        display: block;
    }

    .side-col {
        width: 100%;
        margin-top: 24px;
        position: static;
    }
}

section,
article,
aside {
    min-width: 0;
}

.ticker-bar.header-hidden {
    transform: translateY(-100%);
}

.ticker-inner {
    display: flex;
    align-items: center;
    height: 36px;
    width: 100%;
    min-width: 0
}

.ticker-label {
    background: var(--sf2);
    color: var(--t2);
    border-right: 1px solid var(--bd);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 0 11px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: .9px;
    flex-shrink: 0;
    gap: 4px
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ac3);
    animation: ldot 1.4s ease-in-out infinite
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    min-width: 0
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tS 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
@keyframes tS {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-self: stretch;
        display: flex;
        align-items: center;
    }

    .ticker-scroll::-webkit-scrollbar {
        display: none;
    }

    .ticker-track {
        animation: none !important;
    }

    .ticker-track .t-dup {
        display: none;
    }
}

.t-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    border-right: 1px solid var(--bd);
    flex-shrink: 0
}

.t-c {
    color: var(--t3);
    font-size: 9px
}

.t-p {
    color: var(--t1);
    font-weight: 600
}

.t-u {
    color: var(--ac3)
}

.t-d {
    color: var(--red)
}

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding:
        10px
        max(16px, var(--safe-right))
        10px
        max(16px, var(--safe-left));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.mobile-topbar.header-hidden {
    transform: translateY(-100%);
}

.mobile-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
}

.mob-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none
}

.mob-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--t1)
}

.mob-logo-text span {
    color: var(--ac)
}

.mob-topbar-r {
    display: flex;
    align-items: center;
    gap: 8px
}

.mob-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ac);
    background: rgba(56, 189, 248, .08);
    border: 1px solid rgba(56, 189, 248, .2);
    padding: 3px 7px;
    border-radius: 6px;
}

.mob-refresh-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sf2);
    border: 1px solid var(--bd);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.mob-refresh-btn:active {
    transform: scale(.9);
    color: var(--ac)
}

.wrap {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-left: max(20px, var(--safe-left));
    padding-right: max(20px, var(--safe-right));
    box-sizing: border-box;
}

.page-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        330px;
    gap: 26px;
    align-items: start;
    width: 100%;
    min-height: 100%;
}

.main-col {
    min-width: 0;
    width: 100%;
}

.side-col {
    width: 330px;
    position: relative;
    align-self: start;
}

.hero {
    padding: 32px 0 20px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, .08);
    border: 1px solid rgba(56, 189, 248, .2);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ac);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 12px
}

.h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3.5vw, 46px);
    line-height: 1.08;
    letter-spacing: -1px
}

.h1 .gr {
    background: linear-gradient(135deg, var(--ac), var(--ac2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.hero-sub {
    margin-top: 8px;
    color: var(--t2);
    font-size: 13.5px;
    max-width: 480px;
    line-height: 1.6
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap
}

.hero-facts {
    margin-top: 14px;
    max-width: 620px;
    color: var(--t2);
    font-size: 13px;
    line-height: 1.65
}

.hero-facts b {
    color: var(--t1);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

@media (max-width:640px) {
    .hero-facts {
        font-size: 12.5px;
        margin-top: 12px
    }
}

.hs-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--ac);
    display: block
}

.hs-lbl {
    font-size: 10px;
    color: var(--t3);
    margin-top: 1px
}

.rate-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    perspective: 900px
}

.rc {
    background: linear-gradient(160deg, var(--sf) 0%, var(--sf) 60%, var(--sf2) 140%);
    border: 1px solid var(--bd);
    border-radius: calc(var(--r) - 2px);
    padding: 12px 13px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease)
}

.rc::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: blur(22px);
    opacity: .36;
    z-index: -1;
    transition: opacity .3s var(--ease), transform .3s var(--ease)
}

.rc.usd::before {
    background: radial-gradient(circle, var(--ac), transparent 70%)
}

.rc.eur::before {
    background: radial-gradient(circle, var(--ac2), transparent 70%)
}

.rc.rub::before {
    background: radial-gradient(circle, var(--ac3), transparent 70%)
}

.rc::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
    background-size: 250% 250%;
    background-position: 130% 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease), background-position .6s var(--ease)
}

.rc:hover {
    transform: translateY(-4px) rotateX(2deg) scale(1.015);
    box-shadow: var(--shlg);
    border-color: var(--bd2)
}

.rc:hover::before {
    opacity: .85;
    transform: scale(1.15)
}

.rc:hover::after {
    opacity: 1;
    background-position: -30% 0
}

.rc.active-rc {
    border-color: var(--ac);
    background: linear-gradient(160deg, rgba(56, 189, 248, .07) 0%, var(--sf) 60%, var(--sf2) 140%)
}

.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px
}

.rc-fw {
    display: flex;
    align-items: center;
    gap: 7px
}

.rc-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
    transition: transform .3s var(--spring)
}

.rc:hover .rc-flag {
    transform: scale(1.08) rotate(-4deg)
}

.rc.usd .rc-flag {
    background: rgba(56, 189, 248, .1)
}

.rc.eur .rc-flag {
    background: rgba(129, 140, 248, .1)
}

.rc.rub .rc-flag {
    background: rgba(16, 185, 129, .1)
}

.rc-nm {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15
}

.rc-fl {
    font-size: 9px;
    color: var(--t3);
    margin-top: 1px
}

.rc-badge {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2.5px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace
}

.rc-badge.up {
    background: color-mix(in srgb, var(--ac3) 12%, transparent);
    color: var(--ac3);
    border: 1px solid color-mix(in srgb, var(--ac3) 24%, transparent)
}

.rc-badge.warn {
    background: color-mix(in srgb, var(--yel) 13%, transparent);
    color: var(--yel);
    border: 1px solid color-mix(in srgb, var(--yel) 28%, transparent)
}

.rc-badge:empty {
    display: none
}

.rc-badge.dn {
    background: color-mix(in srgb, var(--red) 12%, transparent);
    color: var(--red);
    border: 1px solid color-mix(in srgb, var(--red) 24%, transparent)
}

.rc-nbrb-lbl {
    font-size: 8.5px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1px
}

.rc-nbrb-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--ac2);
    margin-bottom: 4px
}

.rc-lbl {
    font-size: 8.5px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .5px
}

.rc-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.1;
    color: var(--t1);
    margin: 2px 0 3px
}

.rc-spark {
    height: 28px;
    margin: 3px 0
}

.rc-bs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--bd)
}

.bs-c {
    text-align: center;
    padding: 6px;
    border-radius: 7px;
    background: var(--bg2)
}

.bs-l {
    font-size: 9px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .4px
}

.bs-v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px
}

.bs-c.buy .bs-v {
    color: var(--ac3)
}

.bs-c.sell .bs-v {
    color: var(--red)
}

.sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    flex-wrap: wrap;
    gap: 7px
}

.sec-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px
}

.sec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ac);
    box-shadow: 0 0 9px var(--ac);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0
}

.sec-act {
    color: var(--ac);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(56, 189, 248, .07);
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0
}

.sec-act:hover {
    background: rgba(56, 189, 248, .15)
}

.nbrb-section {
    margin-bottom: 18px
}

.nbrb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 7px
}

.nbrb-title-row {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px
}

.nbrb-badge {
    background: rgba(129, 140, 248, .1);
    border: 1px solid rgba(129, 140, 248, .25);
    color: var(--ac2);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .4px
}

.nbrb-date-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    background: var(--sf2);
    padding: 3px 8px;
    border-radius: 6px
}

.type-toggle {
    display: flex;
    background: var(--sf2);
    border: 1.5px solid var(--bd2);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    margin-bottom: 12px
}

.type-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 7px;
    border: none;
    background: none;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--t3);
    cursor: pointer;
    transition: all .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px
}

.type-btn.active {
    background: var(--sf);
    color: var(--t1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18)
}

.type-btn.active.cash-btn {
    color: var(--ac3)
}

.type-btn.active.card-btn {
    color: var(--ac2)
}

.type-badge {
    font-size: 10px;
    background: var(--sf3);
    padding: 1px 6px;
    border-radius: 20px;
    color: var(--t3);
    font-family: 'JetBrains Mono', monospace
}

.type-btn.active .type-badge {
    background: rgba(56, 189, 248, .15);
    color: var(--ac)
}

.table-wrap {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 18px
}

.tbl-ctrl {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bd);
    flex-wrap: wrap
}

.sbox {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg2);
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    padding: 7px 10px;
    flex: 1;
    min-width: 100px;
    max-width: 200px;
    transition: border-color .2s
}

.sbox:focus-within {
    border-color: var(--ac)
}

.sbox svg {
    width: 13px;
    height: 13px;
    stroke: var(--t3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0
}

.sbox input {
    background: none;
    border: none;
    color: var(--t1);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    width: 100%
}

.sbox input::placeholder {
    color: var(--t3)
}

.ftabs {
    display: flex;
    gap: 2px;
    background: var(--bg2);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--bd);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0
}

.ftabs::-webkit-scrollbar {
    display: none
}

.ftab {
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--t3);
    transition: all .2s;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    flex-shrink: 0
}

.ftab.active {
    background: var(--sf2);
    color: var(--t1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18)
}

.sort-sel {
    background: var(--bg2);
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    color: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    padding: 7px 9px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .2s
}

.sort-sel:focus {
    border-color: var(--ac)
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px
}

.dd-short {
    display: none;
}

.table-wrap thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--t3);
}

thead th {
    background: var(--bg2);
    padding: 9px 12px;
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .7px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color .2s, background .2s
}

thead th:hover {
    color: var(--t2);
    background: var(--sf3)
}

thead th.srt {
    color: var(--ac)
}

.tha {
    display: inline-block;
    margin-left: 3px;
    font-size: 8px;
    opacity: .7
}

tbody tr {
    border-top: 1px solid var(--bd);
    transition: background .15s
}

tbody tr:hover {
    background: rgba(56, 189, 248, .025)
}

[data-theme="light"] tbody tr:hover {
    background: rgba(8, 145, 178, .04)
}

tbody tr.cmp-sel {
    background: rgba(56, 189, 248, .06);
    border-left: 3px solid var(--ac)
}

tbody td {
    padding: 9px 12px;
    vertical-align: middle
}

.b-info {
    display: flex;
    align-items: center;
    gap: 8px
}

.bx-bank {
    color: var(--ac2);
}

.bexp-empty .bx-bank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.b-nm {
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.3;
}

.b-nm::after {
    content: '→';
    margin-left: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    display: inline-block;
    transform: translateX(-3px);
}

.b-nm:hover {
    color: var(--ac);
    border-bottom-color: var(--ac);
}

.b-nm:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.b-tp:empty {
    display: none
}

.b-tp {
    font-size: 9.5px;
    color: var(--t3);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap
}

.spr-b {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    background: rgba(245, 158, 11, .1);
    color: var(--yel);
    border: 1px solid rgba(245, 158, 11, .18)
}

.b-logo {
    flex-shrink: 0;
    position: relative;
    display: flex;
    border-radius: 11px;
    padding: 2px;
    transition: box-shadow .22s var(--ease);
}

@property --ffang {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.b-logo.is-best {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--yel) 42%, transparent),
                0 0 11px -2px color-mix(in srgb, var(--yel) 45%, transparent);
}

.b-logo.is-best::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    padding: 2px;
    background: conic-gradient(from var(--ffang),
            transparent 0deg 205deg,
            color-mix(in srgb, var(--yel) 30%, transparent) 285deg,
            var(--yel) 337deg,
            #fff 350deg,
            var(--yel) 355deg,
            transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: ff-run 2.6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes ff-run {
    to { --ffang: 360deg; }
}

.brow:hover .b-logo.is-best {
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--yel) 60%, transparent),
                0 0 15px -1px color-mix(in srgb, var(--yel) 60%, transparent);
}

.brow:hover .b-logo.is-best::before {
    animation-duration: 1.5s;
}

@media (prefers-reduced-motion: reduce) {
    .b-logo.is-best::before {
        animation: none;
        background: none;
    }

    .b-logo.is-best {
        box-shadow: 0 0 0 1.5px var(--yel),
                    0 0 12px -1px color-mix(in srgb, var(--yel) 55%, transparent);
    }
}

.cmp-chk {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--bd2);
    background: var(--bg2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    flex-shrink: 0;
    margin: 0 auto
}

.cmp-chk.on {
    background: var(--ac);
    border-color: var(--ac)
}

.cmp-chk::after {
    content: '';
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform .16s var(--spring);
    display: block;
    margin-top: -1px
}

.cmp-chk.on::after {
    transform: rotate(45deg) scale(1)
}

.tbl-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-top: 1px solid var(--bd);
    font-size: 11px;
    color: var(--t3)
}

.show-more {
    color: var(--ac);
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 12px;
    font-family: 'Manrope', sans-serif
}

.chart-sec {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 20px
}

.chart-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px
}

.chart-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700
}

.ptabs {
    display: flex;
    gap: 2px;
    background: var(--bg2);
    padding: 2px;
    border-radius: 7px;
    border: 1px solid var(--bd)
}

.ptab {
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--t3);
    font-family: 'JetBrains Mono', monospace;
    transition: all .2s
}

.ptab.active {
    background: var(--sf2);
    color: var(--ac)
}

.chart-wrap {
    position: relative;
    height: 200px
}

.conv-card {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 18px;
    position: relative;
    overflow: visible;
    box-shadow: var(--sh)
}

.conv-card {
    background:
        radial-gradient(150px 130px at calc(100% - 4px) -6px,
            color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%),
        var(--sf);
    transition: background .3s var(--ease);
}

.conv-card:hover {
    background:
        radial-gradient(160px 140px at calc(100% - 4px) -6px,
            color-mix(in srgb, var(--ac) 36%, transparent), transparent 70%),
        var(--sf);
}

.conv-ttl {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cpulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ac3);
    box-shadow: 0 0 7px var(--ac3);
    animation: pulse 2s infinite;
    flex-shrink: 0
}

.bsel-lbl {
    font-size: 9.5px;
    color: var(--t3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 5px;
    display: block
}

.bsel-box {
    background: var(--bg2);
    border: 1.5px solid var(--bd);
    border-radius: 8px;
    overflow: visible;
    transition: border-color .2s;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative
}

.bsel-box.open {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--glow)
}

.bsel-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px
}

.bsel-ico-fb {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: #fff;
    flex-shrink: 0
}

.bsel-nm {
    flex: 1;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

.bsel-rt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    white-space: nowrap;
    flex-shrink: 0
}

.bsel-arr {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--t3);
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform .2s;
    flex-shrink: 0
}

.bsel-box.open .bsel-arr {
    transform: rotate(180deg)
}

.bsel-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--mbg);
    border: 1.5px solid var(--bd2);
    border-radius: 10px;
    box-shadow: var(--shlg);

    z-index: var(--z-overlay);
    display: none;
    overflow: hidden;
    animation: dropIn .18s var(--ease)
}

.bsel-box.open .bsel-drop {
    display: block
}

.bsel-scroll {
    overflow-y: auto;
    max-height: 200px;
    padding: 4px
}

.bopt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s
}

.bopt:hover {
    background: var(--sf2)
}

.bopt.active {
    background: rgba(56, 189, 248, .09)
}

.bopt-ico-fb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: #fff;
    flex-shrink: 0
}

.bopt-nm {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

.bopt-rt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    color: var(--t3);
    white-space: nowrap;
    flex-shrink: 0
}

.conv-fld {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px
}

.conv-lbl {
    font-size: 10px;
    color: var(--t3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 4px
}

.conv-iw {
    display: flex;
    align-items: stretch;
    background: var(--bg2);
    border: 1.5px solid var(--bd);
    border-radius: 10px;
    transition: border-color .2s;
    overflow: hidden
}

.conv-iw:focus-within {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--glow)
}

.conv-iw input {
    flex: 1;
    background: none;
    border: none;
    color: var(--t1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    padding: 11px 12px;
    min-width: 0;
    width: 100%
}

.currency-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 1px;
  width: 0.7em;
  height: 0.7em;
  object-fit: contain;
}

[data-theme="dark"] .currency-icon {

  filter: invert(1);
}
[data-theme="light"] .currency-icon {
  filter: none;
}

.rc-nbrb-val .currency-icon,
.rc-val .currency-icon,
.rc-bs .currency-icon {
  width: 1em;
  height: 1em;
  margin-left: 1px;
  vertical-align: middle;
}

.rv .currency-icon {
  width: 0.8em;
  height: 0.8em;
  margin-left: 1px;
  vertical-align: middle;
}

.curr-box {
    border: none;
    border-left: 1.5px solid var(--bd2);
    min-width: 80px;
    background: var(--sf3);
    flex-shrink: 0;
    cursor: pointer;
    position: relative
}

.curr-head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 100%;
    min-height: 44px;
    user-select: none
}

.curr-flag {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.curr-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap
}

.curr-chev {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: var(--t3);
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform .2s;
    flex-shrink: 0
}

.curr-box.open .curr-chev {
    transform: rotate(180deg)
}

.curr-drop {
    position: fixed;
    min-width: 240px;
    background: var(--mbg);
    border: 1.5px solid var(--bd2);
    border-radius: 11px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .8);

    z-index: var(--z-dropdown-in-overlay);
    display: none;
    overflow: hidden;
    animation: dropIn .18s var(--ease)
}

.curr-drop.open {
    display: block
}

.curr-drop-inner {
    overflow-y: auto;
    max-height: 260px;
    padding: 4px
}

.curr-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s
}

.curr-opt:hover {
    background: var(--sf2)
}

.curr-opt.active {
    background: rgba(56, 189, 248, .1)
}

.curr-opt-flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center
}

.curr-opt-name {
    flex: 1;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0
}

.curr-opt.active .curr-opt-name {
    color: var(--t1)
}

.curr-opt-rate {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    flex-shrink: 0
}

.swap-row {
    display: flex;
    justify-content: center;
    margin: 5px 0
}

.swap-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--bd2);
    background: var(--sf2);
    color: var(--ac);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--spring)
}

.swap-btn:hover {
    background: var(--ac);
    color: #fff;
    transform: rotate(180deg)
}

.swap-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round
}

.conv-result {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border: 1px solid var(--bd2);
    border-radius: 10px;
    padding: 13px;
    margin-top: 10px
}

.conv-res-big {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--ac);
    margin-bottom: 3px;
    letter-spacing: -.5px
}

.conv-res-lbl {
    font-size: 10px;
    color: var(--t3)
}

.conv-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px
}

.cm {
    background: var(--bg3);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid var(--bd)
}

.cm-lbl {
    font-size: 9px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 700
}

.cm-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px
}

.cm-val.g {
    color: var(--ac3)
}

.cm-val.r {
    color: var(--red)
}

.cm-val.b {
    color: var(--ac2)
}

.qwrap {
    margin-top: 10px
}

.qlbl {
    font-size: 9.5px;
    color: var(--t3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 6px;
    display: block
}

.qbtns {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.qbtn {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--sf2);
    border: 1.5px solid var(--bd);
    color: var(--t2);
    cursor: pointer;
    transition: all .2s;
    font-family: 'Manrope', sans-serif;
    min-height: 44px
}

.qbtn:hover {
    border-color: var(--ac);
    color: var(--ac);
    background: rgba(56, 189, 248, .06)
}

.nbrb-info-card {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 14px;
    margin-top: 12px
}

.ni-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ac2);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px
}

.ni-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11.5px
}

.ni-curr {
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 5px
}

.ni-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--ac2)
}

.cmp-float {
    position: fixed;
    bottom: max(calc(var(--nav-h) + 16px), calc(var(--nav-h) + var(--safe-b) + 16px));
    left: 50%;
    transform: translateX(-50%) translateY(100px);

    z-index: var(--z-cmp-float);
    background: var(--sf);
    border: 1.5px solid var(--bd2);
    border-radius: 50px;
    padding: 9px 12px 9px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shlg);
    transition: transform .36s var(--spring), opacity .3s;
    opacity: 0;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.cmp-float.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all
}

.cmp-float-txt {
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    white-space: nowrap
}

.cmp-cnt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--ac);
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .2);
    border-radius: 20px;
    padding: 2px 9px
}

.cmp-chips {
    display: flex;
    gap: 4px;
    align-items: center
}

.cmp-chip {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--sf2);
    border: 1px solid var(--bd2);
    font-size: 11px;
    font-weight: 600;
    color: var(--t1)
}

.cmp-chip-logo {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    color: #fff;
    flex-shrink: 0
}

.cmp-chip-del {
    background: none;
    border: none;
    color: var(--t3);
    cursor: pointer;
    font-size: 10px;
    padding: 0 0 0 2px;
    transition: color .15s
}

.cmp-chip-del:hover {
    color: var(--red)
}

.cmp-float-acts {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 4px
}

.cmp-go {
    background: var(--ac);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all .2s;
    white-space: nowrap
}

.cmp-go:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px var(--glow)
}

.cmp-clear {
    background: none;
    border: 1px solid var(--bd2);
    color: var(--t3);
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    transition: all .2s
}

.cmp-clear:hover {
    border-color: var(--red);
    color: var(--red)
}

.rc-flag .fi,
.curr-opt-flag .fi,
.curr-flag .fi,
.ni-curr .fi {
    border-radius: 50%;
    background-size: cover !important;
    display: inline-block;
    transition: box-shadow .2s ease, transform .2s ease
}

.rc-flag {
    overflow: hidden;
    border-radius: 50%
}

.rc-flag .fi {
    width: 100%;
    height: 100%;
    display: block;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .25), 0 0 0 1.5px rgba(255, 255, 255, .15), 0 4px 12px rgba(0, 0, 0, .35)
}

.curr-opt-flag .fi,
.curr-flag .fi {
    width: 1em;
    height: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2), 0 0 0 1.2px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 0, 0, .25)
}

.ni-curr .fi {
    width: 1em;
    height: 1em;
    margin-right: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15), 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 4px rgba(0, 0, 0, .2)
}

[data-theme="light"] .rc-flag .fi {
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 1.5px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .1)
}

[data-theme="light"] .curr-opt-flag .fi,
[data-theme="light"] .curr-flag .fi {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 1.2px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .1)
}

.modal-ov {
    position: fixed;
    inset: 0;

    z-index: var(--z-overlay);
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.modal-ov.open {
    opacity: 1;
    visibility: visible
}

.modal-box {
    background: var(--mbg);
    border: 1.5px solid var(--bd2);
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    width: 100%;
    max-width: 960px;

    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(60px);
    transition: transform .34s var(--ease);
    overflow: hidden;

    padding-bottom: var(--safe-bottom);
}

.modal-ov.open .modal-box {
    transform: translateY(0)
}

@media (min-width: 860px) {
    .modal-ov {
        align-items: center
    }

    .modal-box {
        border-radius: 18px;
        border: 1.5px solid var(--bd2);
        max-height: 88vh;
        max-height: 88dvh;

    }
}

.modal-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    flex-shrink: 0
}

.handle-bar {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: var(--sf3)
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 18px 12px;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0
}

.modal-head h2 {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 800;
    flex: 1
}

.modal-cnt {
    font-size: 12px;
    color: var(--t3);
    font-weight: 600
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sf2);
    border: 1px solid var(--bd);
    color: var(--t2);
    font-size: 13px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s
}

.modal-close:hover {
    background: var(--red);
    color: #fff;
    transform: rotate(90deg)
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 12px 18px
}

.modal-ctrl {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 11px;
    align-items: center
}

.server-modal-box {
    max-width: 420px;
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    position: relative;
}

.server-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.server-modal-body {
    text-align: center;
    padding: 32px 24px 28px;
}

.server-modal-icon {
    font-size: 48px;
    color: var(--ac2);
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.server-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--t1);
}

.server-modal-text {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.5;
    margin-bottom: 24px;
}

.server-modal-btn {
    padding: 10px 24px;
    font-size: 14px;
}

.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px + var(--safe-b));
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    z-index: var(--z-toast);
    background: var(--sf2);
    border: 1px solid var(--bd2);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t1);
    box-shadow: var(--shlg);
    white-space: nowrap;
    opacity: 0;
    transition: all .3s var(--ease);
    pointer-events: none
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.toast.ok {
    border-color: rgba(16, 185, 129, .35);
    color: var(--ac3)
}

.toast.err {
    border-color: rgba(244, 63, 94, .35);
    color: var(--red)
}

footer {
    position: relative;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 22px 20px;
    padding-bottom: calc(22px + var(--safe-bottom));
    overflow: hidden;
}

.ft-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px
}

.ft-bot {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--t3);
    flex-wrap: wrap;
    gap: 6px
}

.fu {
    opacity: 1;
    transform: none
}

.fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .05)
}

.conv-header-switch {
    display: flex;
    align-items: center;
    gap: 8px
}

.conv-header-switch .type-toggle {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 2px
}

.conv-header-switch .type-btn {
    padding: 4px 10px;
    font-size: 11px;
    min-height: 30px;
    gap: 4px;
    font-weight: 600
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: var(--z-bottom-nav);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding-top: 8px;
    padding-bottom: max(8px, var(--safe-bottom));
    min-height: 64px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: -1;
}

@supports(padding:max(0px)) {
    .mobile-bottom-nav {
        padding-left: max(16px, var(--safe-left));
        padding-right: max(16px, var(--safe-right));
    }
}

@supports(backdrop-filter:blur(1px)) {
    .mobile-bottom-nav {
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
    }
}

.bottom-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-1 * var(--safe-bottom));
    height: var(--safe-bottom);
    background: inherit;
}

.bottom-nav-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 4px;
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 14px;
    color: var(--t3);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Manrope', sans-serif;
    transition: color .2s;
    min-width: 52px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bnav-item.active {
    color: var(--ac)
}

.bnav-item.active .bnav-icon-wrap {
    background: rgba(56, 189, 248, .12)
}

[data-theme="light"] .bnav-item.active .bnav-icon-wrap {
    background: rgba(8, 145, 178, .1)
}

.bnav-icon-wrap {
    width: 44px;
    height: 30px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .2s, transform .2s;
    position: relative;
}

.bnav-item:active .bnav-icon-wrap {
    transform: scale(.88)
}

.bnav-item.active .bnav-icon-wrap {
    animation: navItemPop .35s var(--spring)
}

.bnav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--ac);
    border-radius: 0 0 3px 3px;
}

.bnav-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 8px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    opacity: 0;
    transform: scale(0);
    transition: all .2s var(--spring);
}

.bnav-badge.show {
    opacity: 1;
    transform: scale(1)
}

.bnav-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    z-index: var(--z-overlay-content);
    background: var(--drawer-bg);
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--bd2);
    border-bottom: none;

    max-height: 88vh;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .38s var(--spring);

    padding-bottom: var(--safe-b);
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.drawer.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.drawer-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
    flex-shrink: 0;
    cursor: pointer
}

.drawer-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--sf3)
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0;
}

.drawer-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--t1)
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sf2);
    border: 1px solid var(--bd);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.drawer-close-btn:hover {
    background: var(--red);
    color: #fff
}

.drawer-body {
    overflow-y: auto;
    flex: 1;
    padding: 16px 16px
}

.drawer-section {
    margin-bottom: 20px
}

.drawer-sec-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.drawer-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.drawer-theme-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 8px
}

.drawer-th-tog {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1.5px solid var(--bd2);
    border-radius: 50px;
    padding: 3px;
    gap: 2px
}

.drawer-tt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--t3);
    cursor: pointer;
    transition: all .2s;
    background: none;
    border: none;
}

.drawer-tt.on {
    background: var(--ac);
    color: #fff;
    box-shadow: 0 2px 8px var(--glow)
}

.drawer-clock {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-clock-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--ac);
    letter-spacing: -1px;
}

.drawer-clock-lbl {
    font-size: 10px;
    color: var(--t3);
    margin-top: 2px
}

.drawer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.drawer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: var(--t1);
    transition: all .2s;
    cursor: pointer;
}

.drawer-nav-item:hover,
.drawer-nav-item:active {
    background: var(--sf2);
    border-color: var(--bd2)
}

.drawer-nav-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ac);
}

.drawer-nav-item-name {
    font-size: 13px;
    font-weight: 700
}

.drawer-nav-item-desc {
    font-size: 10px;
    color: var(--t3)
}

.drawer-nbrb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
}

.drawer-nbrb-card {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 10px 12px;
}

.drawer-nbrb-curr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--t2);
    margin-bottom: 4px;
}

.drawer-nbrb-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--t1)
}

.drawer-nbrb-sub {
    font-size: 9px;
    color: var(--t3);
    margin-top: 2px
}

.drawer-refresh-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: var(--ac);
    color: #fff;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    margin-top: 4px;
}

.drawer-refresh-btn:active {
    transform: scale(.97)
}

@media (max-width: 1100px) {
    .page-grid {
        grid-template-columns: 1fr
    }

    .side-col {
        position: static
    }
}

@media (max-width: 768px) {

    .ftabs {
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
    }

    body::after {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
        background: var(--nav-bg);
        z-index: 5999;
        pointer-events: none;
    }

    .mobile-topbar {
        display: flex
    }

    .bottom-nav {
        display: block
    }

    .wrap {
        padding: 0 12px calc(var(--nav-h) + var(--safe-b) + 20px)
    }

    .hero {
        padding: 14px 0 14px
    }

    .h1 {
        font-size: 24px
    }

    .hero-sub {
        font-size: 12.5px
    }

    .hs-val {
        font-size: 15px
    }

    .hs-lbl {
        font-size: 9px
    }

    .hero-stats {
        display: none;
    }

    .rate-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }

    .rc {
        padding: 10px 9px
    }

    .rc-nm {
        font-size: 12px
    }

    .rc-fl {
        font-size: 8.5px
    }

    .rc-nbrb-val {
        font-size: 13px
    }

    .rc-val {
        font-size: 16px
    }

    .rc-spark {
        height: 24px
    }

    .rc-flag {
        width: 24px;
        height: 24px;
        font-size: 12px
    }

    .rc-badge {
        font-size: 9px;
        padding: 2px 6px
    }

    .rc-bs {
        gap: 4px
    }

    .bs-v {
        font-size: 11px
    }

    .tbl-ctrl {
        flex-wrap: wrap;
        gap: 6px
    }

    .sbox {
        max-width: none;
        flex: 1 1 100%
    }

    .sort-sel {
        flex: 1
    }

    .cmp-float {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 10px 12px;
        bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
    }

    .cmp-float-acts {
        width: 100%;
        justify-content: flex-end
    }

    .side-col {
        display: none
    }

    .page-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .toast {
        bottom: calc(var(--nav-h) + var(--safe-b) + 12px)
    }

    .ticker-bar {
        font-size: 10px
    }

    .t-item {
        font-size: 10px;
        padding: 0 10px
    }

    .table-wrap table {
        min-width: 100%;
        width: 100%;
    }

    .table-wrap thead th:nth-child(5),
    .table-wrap tbody td:nth-child(5) {
        padding: 4px;
        text-align: center;
    }

    .table-wrap thead th,
    .table-wrap tbody td {
        padding: 6px 6px;
        font-size: 11px;
    }

    .table-wrap .b-nm {
        font-size: 11px;
    }

    .table-wrap .rv {
        font-size: 12px;
    }

    .table-wrap .b-info {
        gap: 5px;
    }

    .cmp-chk {
        width: 16px;
        height: 16px;
        border-radius: 4px;
    }

}

@media (max-width: 480px) {
    .rate-cards {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        margin-bottom: 14px;
    }

    .rc {
        flex: 0 0 auto;
        width: 200px;
        max-width: 68vw;
        scroll-snap-align: start;
    }

    .rc-spark {
        display: none;
    }

    .rc-val {
        font-size: 18px
    }

    .rc-nbrb-val {
        font-size: 14px
    }

    .rc-flag {
        width: 28px;
        height: 28px
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr)
    }

    .table-wrap thead th,
    .table-wrap tbody td {
        padding: 5px 4px;
    }

    .table-wrap .b-nm {
        font-size: 10.5px;
    }

    .table-wrap .rv {
        font-size: 11px;
    }

    .cmp-chk {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .rc {
        width: 200px;
    }

    .wrap {
        padding: 0 10px calc(var(--nav-h) + var(--safe-b) + 20px)
    }

    .mobile-topbar {
        padding: 0 12px
    }

    .mob-logo-text {
        font-size: 12px
    }

    .mob-time {
        font-size: 10px;
        padding: 2px 5px
    }

    .rate-cards {
        gap: 6px
    }

    .bnav-item {
        min-width: 44px
    }

    .bnav-label {
        font-size: 9px
    }

    .table-wrap .b-nm {
        font-size: 10px;
    }

    .table-wrap .rv {
        font-size: 10px;
    }

    .table-wrap thead th,
    .table-wrap tbody td {
        padding: 4px 2px;
    }

    .cmp-chk {
        width: 14px;
        height: 14px;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .modal-box table {
        min-width: 100%;
        width: 100%;
    }

    .modal-box table thead th,
    .modal-box table tbody td {
        padding: 7px 6px;
    }

    #mTbody .rv {
        font-size: 11.5px;
        letter-spacing: -.3px;
    }

    #mTbody td:nth-child(4),
    #mTbody td:nth-child(5),
    #mTbody th:nth-child(4),
    #mTbody th:nth-child(5) {
        display: none;
    }

    .modal-ctrl {
        flex-wrap: wrap;
    }
}

.mob-conv-sheet {
    display: none;
    position: fixed;
    inset: 0;

    z-index: var(--z-overlay);
    background: var(--mbg);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .3s var(--ease);

    padding-bottom: var(--safe-b);
}

.mob-conv-sheet.open {
    display: flex
}

.mob-sheet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bd);
    background: var(--hbg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.mob-sheet-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sf2);
    border: 1px solid var(--bd);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.mob-sheet-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    flex: 1
}

.mob-sheet-body {
    overflow-y: auto;
    flex: 1;
    padding: 16px;
    -webkit-overflow-scrolling: touch
}

.mob-chart-sheet {
    display: none;
    position: fixed;
    inset: 0;

    z-index: var(--z-overlay);
    background: var(--mbg);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .3s var(--ease);

    padding-bottom: var(--safe-b);
}

.mob-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--ac);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 12px var(--glow);
}

.mob-chart-sheet.open {
    display: flex
}

img,
svg,
canvas {
    max-width: 100%;
    display: block;
}

.leaflet-container img,
.leaflet-container svg,
.leaflet-container canvas {
    max-width: none;
}

@media (min-width: 769px) {

    .mob-conv-sheet,
    .mob-chart-sheet {
        display: none !important
    }

    .bottom-nav {
        display: none !important
    }

    .drawer-overlay {
        display: none !important
    }

    .mobile-topbar {
        display: none !important
    }
}

@media (max-width: 600px) {
    .cmp-float {
        padding: 8px 10px;
        border-radius: 16px;
        flex-wrap: wrap;
        gap: 6px;
        max-width: calc(100vw - 20px);
    }

    .cmp-chips {
        flex: 1 1 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cmp-chips::-webkit-scrollbar {
        display: none;
    }

    .cmp-chip {
        padding: 3px 6px;
        font-size: 10px;
        gap: 2px;
        flex-shrink: 0;
    }

    .cmp-chip-logo {
        width: 12px;
        height: 12px;
        font-size: 6px;
    }

    .cmp-chip span {
        font-size: 10px !important;
        margin-left: 1px;
    }

    .cmp-chip-del {
        padding: 0 0 0 1px;
        font-size: 9px;
    }

    .cmp-float-acts {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .cmp-go {
        padding: 5px 10px;
        font-size: 11px;
    }

    .cmp-clear {
        padding: 5px 8px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .cmp-float-txt {
        font-size: 10px;
    }

    .cmp-go {
        font-size: 10px;
        padding: 4px 8px;
    }

    .cmp-chip span {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {

    .drawer-overlay,
    .modal-ov,
    .mob-conv-sheet,
    .mob-chart-sheet {
        inset: 0;
    }

    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: linear-gradient(135deg, var(--sf2), var(--sf));
    color: var(--t1);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s var(--ease), transform .2s var(--spring);
}

.city-pill:hover {
    border-color: var(--ac);
    transform: translateY(-1px);
}

.city-pill > i:first-child {
    color: var(--ac);
    font-size: 12px;
}

.city-pill-chev {
    font-size: 9px;
    color: var(--t3);
    margin-left: 1px;
}

.city-ov {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 6, 14, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;

    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
}

[data-theme="light"] .city-ov {
    background: rgba(190, 225, 235, .72);
}

.city-ov.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: opacity .3s var(--ease), visibility 0s linear;
}

.city-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 34px 28px 28px;
    border-radius: 22px;
    border: 1px solid var(--bd2);
    background: var(--mbg);
    box-shadow: var(--shlg);
    text-align: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: min(92dvh, 900px);
    transform: translateY(18px) scale(.97);
    transition: transform .42s var(--spring);
}

.city-ov.open .city-box {
    transform: none;
}

.city-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 320px;
    height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow), transparent 68%);
    pointer-events: none;
}

.city-skip {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--t3);
    cursor: pointer;
    transition: color .2s, background .2s;
}

.city-skip:hover {
    color: var(--t1);
    background: var(--sf2);
}

.city-pin {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: var(--ac);
    box-shadow: 0 10px 30px var(--glow);
}

.city-ttl {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -.6px;
    color: var(--t1);
    margin: 0 0 7px;
}

.city-sub {
    font-size: 13px;
    line-height: 1.5;
    color: var(--t2);
    margin: 0 auto 22px;
    max-width: 320px;
}

.city-auto {
    position: relative;
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 13px;
    background: var(--ac);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s var(--spring), box-shadow .25s var(--ease);
}

.city-auto:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--glow);
}

.city-auto.busy {
    pointer-events: none;
    opacity: .75;
}

.ca-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.city-auto.busy .ca-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28), transparent 70%);
    animation: caSweep 1.1s linear infinite;
}

@keyframes caSweep {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.city-or {
    position: relative;
    margin: 20px 0 14px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--t3);
}

.city-or::before,
.city-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 92px);
    height: 1px;
    background: var(--bd);
}

.city-or::before { left: 0; }
.city-or::after  { right: 0; }

.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.city-chip {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    background: var(--sf);
    color: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}

@media (prefers-reduced-motion: no-preference) {
    .city-chip {
        animation: chipIn .34s var(--ease) backwards;
        animation-delay: calc(var(--i) * 22ms);
    }
}

.city-chip:hover {
    border-color: var(--ac);
    color: var(--t1);
    background: var(--sf2);
}

.city-chip.on {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
}

@keyframes chipIn {
    from { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .city-auto.busy .ca-ring::after { animation: none; }
}

.city-err {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--yel);
    min-height: 1em;
}

.b-geo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--sf2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    line-height: 1;
    color: var(--t3);
    white-space: nowrap;
    transition: border-color .18s var(--ease), color .18s var(--ease);
}

.b-geo .ic {
    font-size: 11px;
    opacity: .75;
}

.b-geo .bg-n {
    font-weight: 700;
    color: var(--t2);
}

.bg-sep {
    width: 1px;
    height: 9px;
    background: var(--bd2);
}

.bg-open {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: var(--ac3);
}

.bg-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ac3);
    box-shadow: 0 0 5px color-mix(in srgb, var(--ac3) 70%, transparent);
}

.brow:hover .b-geo {
    border-color: color-mix(in srgb, var(--ac) 35%, var(--bd));
    color: var(--t2);
}

.b-geo > i {
    color: var(--ac);
    font-size: 9px;
    flex-shrink: 0;
}

.b-geo .bg-d {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--t1);
    flex-shrink: 0;
}

.b-geo .bg-a,
.b-geo .bg-addr {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .85;
}

.b-geo .bg-addr {
    max-width: 220px;
}

.geo-st {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.geo-st::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.geo-st.open   { color: var(--ac3); }
.geo-st.soon   { color: var(--yel); }
.geo-st.closed { color: var(--red); }
.geo-st.unk    { color: var(--t3); }

.row-acts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.row-exp {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    border: 1px solid var(--bd);
    background: var(--sf2);
    color: var(--t2);
    font-size: 17px;
    cursor: pointer;
    transition: transform .28s var(--ease), color .2s, border-color .2s, background .2s;
}

.row-exp .ic {
    stroke-width: 2.1;
    vertical-align: 0;
}

.row-exp:hover:not(.off) {
    border-color: var(--ac);
    color: var(--ac);
}

.row-exp.on {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
    transform: rotate(180deg);
}

.row-exp.off {
    opacity: .3;
    cursor: default;
}

.brow {
    cursor: pointer;
}

.brow.exp-on {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--ac) 9%, var(--sf2)),
        var(--sf2)) !important;
    box-shadow: inset 3px 0 0 var(--ac);
}

.bexp > td {
    padding: 0 !important;
    border: none !important;
}

.bexp-grid {
    height: 0;
    overflow: hidden;
    background: var(--sf2);
    box-shadow: inset 3px 0 0 var(--ac);
    transition: height .32s var(--ease);
}

.bexp-clip {
    overflow: hidden;
}

.bexp-inner {
    padding: 2px 14px 14px;
}

@media (prefers-reduced-motion: reduce) {
    .bexp-grid,
    .row-exp { transition: none; }
}

.bexp-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 2px 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--bd);
    font-size: 11px;
}

.bx-count {
    font-weight: 700;
    color: var(--t1);
}

.bx-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ac3) 15%, transparent);
    color: var(--ac3);
    font-size: 10px;
    font-weight: 700;
}

.bx-open::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.bx-all {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--bd2);
    color: var(--ac);
    font-weight: 700;
    text-decoration: none;
    transition: all .18s var(--ease);
}

.bx-all:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
}

.bx-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bx-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 9px;
    border-radius: var(--r-sm);
    background: var(--sf);
    border: 1px solid transparent;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}

.bx-item:hover {
    border-color: color-mix(in srgb, var(--ac) 35%, transparent);
    background: var(--sf3);
}

@media (prefers-reduced-motion: no-preference) {
    .bx-item {
        animation: bxIn .3s var(--ease) backwards;
        animation-delay: calc(var(--i) * 35ms);
    }
}

@keyframes bxIn {
    from { opacity: 0; transform: translateY(-4px); }
}

.bx-rail {
    position: relative;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--t3);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--t3) 18%, transparent);
}

.bx-item.is-open .bx-rail {
    background: var(--ac3);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac3) 20%, transparent);
}

.bx-item.is-closed .bx-rail {
    background: var(--red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}

.bx-body {
    flex: 1;
    min-width: 0;
}

.bx-addr {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t1);
    line-height: 1.3;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bx-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.bx-dist {
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ac) 13%, transparent);
    color: var(--ac);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
}

.bx-meta .geo-st.unk {
    opacity: .65;
    font-weight: 600;
}

.bx-route {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--bd);
    background: var(--sf2);
    color: var(--t3);
    text-decoration: none;
    transition: all .18s var(--ease);
}

.bx-item:hover .bx-route {
    border-color: var(--ac);
    background: var(--ac);
    color: #fff;
}

.bx-more {
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border-radius: var(--r-sm);
    border: 1px dashed var(--bd2);
    background: transparent;
    color: var(--ac);
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}

.bx-more:hover {
    background: var(--sf);
    border-color: var(--ac);
}

.bexp-empty {
    padding: 18px 4px;
    text-align: center;
    font-size: 12px;
    color: var(--t3);
}

@media (max-width: 640px) {
    .table-wrap table {
        min-width: 0;
        table-layout: fixed;
    }

    .table-wrap thead th,
    .table-wrap tbody td {
        padding: 7px 4px;
    }

    .table-wrap thead th {
        font-size: 9px;
        letter-spacing: .1px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .table-wrap thead th:nth-child(4) {
        font-size: 0;
        text-align: center;
    }

    .table-wrap thead th:nth-child(4)::after {
        content: "";
        display: inline-block;
        width: 13px;
        height: 13px;
        background: currentColor;
        -webkit-mask: var(--ic-scale) center/contain no-repeat;
        mask: var(--ic-scale) center/contain no-repeat;
        vertical-align: -2px;
    }

    .table-wrap th:nth-child(2),
    .table-wrap td:nth-child(2),
    .table-wrap th:nth-child(3),
    .table-wrap td:nth-child(3) { width: 56px; max-width: 56px }

    .table-wrap th:nth-child(4),
    .table-wrap td:nth-child(4) { width: 88px; max-width: 88px }

    .table-wrap th:nth-child(5),
    .table-wrap td:nth-child(5) { width: 34px; max-width: 34px }

    .table-wrap thead th:nth-child(5) { font-size: 0; }

    .table-wrap tbody tr.brow > td:first-child {
        padding-left: 8px;
    }

    .b-info {
        gap: 6px;
    }

    .b-logo {
        padding: 1px;
        border-radius: 9px;
    }

    .b-logo.is-best::before {
        inset: -2.5px;
        border-radius: 11.5px;
        padding: 1.75px;
    }

    .b-logo img,
    .b-logo > div {
        width: 26px !important;
        height: 26px !important;
        border-radius: 7px !important;
        font-size: 8px !important;
    }

    .table-wrap .b-nm {
        font-size: 11.5px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
        border-bottom: none;
    }

    .b-nm::after {
        display: none;
    }

    .table-wrap .rv {
        font-size: 12px;
        letter-spacing: -.4px;
    }

    .table-wrap .rv .currency-icon,
    .deal-sum .currency-icon {
        display: none;
    }

    .deal-cell {
        gap: 0;
    }

    .deal-sum {
        font-size: 11.5px;
        letter-spacing: -.4px;
    }

    .deal-diff {
        font-size: 9px;
        line-height: 1.2;
    }

    .row-acts {
        gap: 4px;
    }

    .row-exp {
        width: 26px;
        height: 26px;
        font-size: 15px;
        border-radius: 8px;
    }

    .b-geo,
    .cmp-chk {
        display: none;
    }

    .bexp-inner {
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .table-wrap th:nth-child(2),
    .table-wrap td:nth-child(2),
    .table-wrap th:nth-child(3),
    .table-wrap td:nth-child(3) { width: 52px; max-width: 52px }

    .table-wrap th:nth-child(4),
    .table-wrap td:nth-child(4) { width: 78px; max-width: 78px }

    .table-wrap th:nth-child(5),
    .table-wrap td:nth-child(5) { width: 30px; max-width: 30px }

    .table-wrap thead th {
        font-size: 9px;
        letter-spacing: 0;
        padding: 6px 3px;
    }

    .table-wrap thead th .tha {
        width: 7px;
        margin-left: 1px;
    }

    .dd-full {
        display: none;
    }

    .dd-short {
        display: inline;
    }

    .table-wrap tbody td {
        padding: 7px 2px;
    }

    .table-wrap .b-nm { font-size: 11px; }
    .table-wrap .rv { font-size: 11.5px; }
    .deal-sum { font-size: 10.5px; }

    .b-logo img,
    .b-logo > div {
        width: 22px !important;
        height: 22px !important;
        border-radius: 6px !important;
    }
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--t3);
    font-size: 12px;
    text-align: center;
    padding: 12px;
}

.chart-empty i {
    font-size: 22px;
    opacity: .4;
}

.tbl-hint {
    border: none;
    background: none;
    padding: 0;
    color: var(--ac);
    font-family: 'Manrope', sans-serif;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tbl-hint:hover {
    color: var(--t1);
}

.open-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--bd2);
    background: var(--sf);
    color: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s var(--ease), color .2s, background .2s;
}

.open-pill[hidden] {
    display: none;
}

.open-pill i {
    font-size: 11px;
}

.open-pill:hover {
    border-color: var(--ac3);
    color: var(--t1);
}

.open-pill.on {
    background: var(--ac3);
    border-color: var(--ac3);
    color: #fff;
}

.rc {
    border-radius: var(--r-lg);
    box-shadow: var(--e1);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease),
        border-color .28s var(--ease);
}

.rc:hover {
    transform: translateY(-3px);
    box-shadow: var(--e3);
}

.rc.active-rc {
    box-shadow: var(--e2), var(--ring-ac);
}

.rc-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -.5px;
}

.rc-lbl,
.rc-nbrb-lbl {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--t3);
}

.rc-nbrb-val {
    color: var(--ac2);
}

.rc-bs {
    gap: 7px;
}

.bs-c {
    padding: 8px 10px;
    border-radius: var(--r-sm);
    background: var(--sf2);
    border: 1px solid transparent;
    transition: border-color .2s var(--ease);
}

.rc:hover .bs-c.buy {
    border-color: color-mix(in srgb, var(--ac3) 35%, transparent);
}

.rc:hover .bs-c.sell {
    border-color: color-mix(in srgb, var(--red) 35%, transparent);
}

.bs-l {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 1px;
}

.bs-v {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.table-wrap,
.chart-sec,
.conv-card,
.nbrb-info-card {
    border-radius: var(--r-lg);
    box-shadow: var(--e1);
}

.tbl-ctrl {
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bd);
}

.table-wrap tbody tr.brow {
    transition: background .18s var(--ease);
}

.table-wrap tbody tr.brow:hover {
    background: var(--sf2);
}

.rv {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
}

.rv.buy { color: var(--ac3); }
.rv.sell { color: var(--red); }

.spr-b {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--t2);
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--sf2);
}

.hero-stats .hs-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -.5px;
}

.hero-stats .hs-lbl {
    font-size: 9.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--t3);
}

.eyebrow {
    border-radius: 999px;
    box-shadow: var(--ring);
}

.sort-sel,
.sbox,
.city-pill,
.open-pill,
.type-btn {
    border-radius: var(--r-sm);
}

.sbox:focus-within {
    box-shadow: var(--ring-ac);
    border-color: var(--ac);
}

.ftab {
    border-radius: 8px;
    transition: color .18s var(--ease), background .18s var(--ease);
}

.modal-box,
.drawer,
.mob-conv-sheet {
    box-shadow: var(--e3);
}

.modal-box {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

@media (min-width: 769px) {
    .modal-box {
        border-radius: var(--r-lg);
    }
}

.city-grid {
    display: block;
    max-height: min(46vh, 380px);
    overflow-y: auto;
    text-align: left;
    padding-right: 4px;
}

.city-group + .city-group {
    margin-top: 14px;
}

.city-group-t {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--bd);
}

.city-group-l {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.city-chip-n {
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--t3) 18%, transparent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: var(--t3);
}

.city-chip.on .city-chip-n {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.city-grid::-webkit-scrollbar {
    width: 6px;
}

.city-grid::-webkit-scrollbar-thumb {
    background: var(--bd2);
    border-radius: 3px;
}

.bx-rate {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sf2);
    border: 1px solid var(--bd);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.bx-rate-c {
    font-size: 8.5px;
    color: var(--t3);
    letter-spacing: .3px;
}

.bx-rate-in { color: var(--ac3); }
.bx-rate-out { color: var(--red); }
.bx-rate-s { color: var(--t3); font-weight: 400; }

.deal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 11px 13px;
    margin-bottom: 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--bd);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--sf2) 60%, var(--sf)), var(--sf));
    box-shadow: var(--e1);
}

.deal-dir {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: var(--r-sm);
    background: var(--bg2);
    border: 1px solid var(--bd);
}

.deal-btn {
    padding: 6px 14px;
    min-height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.deal-btn.active {
    background: var(--ac);
    color: #fff;
}

.deal-amt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    min-height: 38px;
    border-radius: var(--r-sm);
    border: 1px solid var(--bd2);
    background: var(--sf);
}

.deal-amt:focus-within {
    border-color: var(--ac);
    box-shadow: var(--ring-ac);
}

#dealAmt {
    width: 78px;
    border: none;
    background: none;
    color: var(--t1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    -moz-appearance: textfield;
}

#dealAmt::-webkit-outer-spin-button,
#dealAmt::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deal-cur {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--t3);
    letter-spacing: .4px;
}

.deal-hint {
    flex: 1 1 100%;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--t3);
}

.deal-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.deal-sum {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
}

.deal-diff {
    font-size: 10px;
    font-weight: 600;
    color: var(--red);
    white-space: nowrap;
}

.deal-diff.best {
    color: var(--ac3);
    font-weight: 700;
}

@media (max-width: 768px) {
    .deal-bar {
        gap: 8px;
        padding: 10px;
    }

    .deal-dir,
    .deal-amt {
        flex: 1 1 auto;
    }

    .deal-btn {
        flex: 1;
    }

    #dealAmt {
        width: 100%;
        min-width: 60px;
    }
}

a.b-nm {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed color-mix(in srgb, var(--ac) 55%, transparent);
    transition: color .18s var(--ease), border-color .18s var(--ease);
}

a.b-nm:hover {
    color: var(--ac);
    border-bottom-style: solid;
    border-bottom-color: var(--ac);
}

.by-wrap {
    position: relative;
    margin: 4px 0 2px;
}

.by-map {
    display: block;
    width: 100%;
    height: auto;
    min-height: 190px;
    max-height: 34vh;
    overflow: hidden;
}

.by-reg {
    vector-effect: non-scaling-stroke;
    fill: color-mix(in srgb, var(--ac) 14%, var(--sf2));
    stroke: var(--mbg);
    stroke-width: 5;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill .18s var(--ease);
}

.by-reg.hot {
    fill: color-mix(in srgb, var(--ac) 32%, var(--sf2));
}

.by-reg.on {
    fill: color-mix(in srgb, var(--ac) 55%, var(--sf2));
}

.by-reg:focus-visible {
    outline: none;
    fill: color-mix(in srgb, var(--ac) 32%, var(--sf2));
    stroke: var(--ac);
}

.by-reg,
.by-ray {
    transition: fill .16s var(--ease), opacity .3s var(--ease);
}

.by-wrap.zoomed .by-reg:not(.on) {
    opacity: .3;
}

.by-ray {
    vector-effect: non-scaling-stroke;
    fill: color-mix(in srgb, var(--ac) 26%, var(--sf2));
    stroke: var(--mbg);
    stroke-width: 3;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill .16s var(--ease);
}

.by-ray-hit {
    fill: transparent;
    cursor: pointer;
}

.by-ray.dim {
    fill: color-mix(in srgb, var(--t3) 18%, var(--sf2));
    cursor: default;
}

.by-ray.hot {
    fill: color-mix(in srgb, var(--ac) 62%, var(--sf2));
}

.by-ray.dim.hot {
    fill: color-mix(in srgb, var(--t3) 26%, var(--sf2));
}

.by-ray:focus-visible {
    outline: none;
    stroke: var(--ac);
    stroke-width: 5;
}

.by-wrap.zoomed .by-reg {
    pointer-events: none;
}

.by-wrap.zoomed .by-city {
    display: none;
}

.by-lbl {
    fill: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 33px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    paint-order: stroke;
    stroke: var(--mbg);
    stroke-width: 5;
    stroke-linejoin: round;
}

.by-lbl-r {
    font-size: 19px;
    fill: var(--t1);
    stroke-width: 5;
}

.by-lbl-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 23px;
}

.by-hint {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: var(--t3);
    text-align: center;
}

.by-wrap.zoomed .by-lbl:not(.by-lbl-r) {
    opacity: 0;
}

.by-wrap.zoomed .by-map {
    max-height: 46dvh;
}

.by-city {
    cursor: pointer;
}

.by-city-hit {
    fill: transparent;
}

.by-city-dot {
    vector-effect: non-scaling-stroke;
    fill: var(--ac);
    stroke: var(--mbg);
    stroke-width: 5;
    transition: r .16s var(--ease);
}

.by-city.hot .by-city-dot {
    r: 25;
}

.by-city-tx {
    fill: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 34px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

.by-city.hot .by-city-tx {
    fill: var(--ac);
}

.by-city:focus-visible {
    outline: none;
}

.by-city:focus-visible .by-city-dot {
    stroke: var(--ac);
    r: 25;
}

.by-cred {
    margin: 6px 0 0;
    font-size: 9.5px;
    line-height: 1.4;
    color: var(--t3);
    text-align: center;
}

.by-cred a {
    color: var(--t3);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.by-cred a:hover {
    color: var(--ac);
}

.by-tip {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--sf);
    border: 1px solid var(--bd);
    box-shadow: var(--e2);
    white-space: nowrap;
    pointer-events: none;
}

.by-tip[hidden] {
    display: none;
}

.by-tip b {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--t1);
}

.by-tip span {
    font-size: 11px;
    color: var(--t3);
    font-variant-numeric: tabular-nums;
}

.by-pin {
    transition: opacity .3s var(--ease);
}

.by-pin-dot {
    fill: var(--ac);
    stroke: #fff;
    stroke-width: 3;
}

.by-pin-wave {
    fill: none;
    stroke: var(--ac);
    stroke-width: 3;
    opacity: 0;
}

.by-pin.drop .by-pin-dot {
    animation: by-drop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}

.by-pin.drop .by-pin-wave {
    animation: by-wave 1.4s ease-out .35s 2;
}

@keyframes by-drop {
    from { transform: translateY(-26px) scale(.3); opacity: 0 }
    to   { transform: translateY(0) scale(1); opacity: 1 }
}

@keyframes by-wave {
    from { r: 8; opacity: .75 }
    to   { r: 44; opacity: 0 }
}

.by-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--bd);
    background: var(--sf2);
    color: var(--t2);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.by-back:hover {
    color: var(--t1);
    border-color: var(--ac);
}

.by-back[hidden] {
    display: none;
}

.city-ov.leaving .city-box {
    animation: city-leave .48s var(--ease) both;
}

@keyframes city-leave {
    to { filter: blur(14px); opacity: 0; transform: scale(1.04) }
}

@media (prefers-reduced-motion: reduce) {
    .by-pin.drop .by-pin-dot,
    .by-pin.drop .by-pin-wave { animation: none }
    .by-pin-wave { opacity: 0 }
    .city-ov.leaving .city-box { animation: none; opacity: 0 }
}

@media (max-width: 560px) {
    .by-map { max-height: max(29dvh, 190px) }
    .by-tip b { font-size: 11.5px }
}

@media (max-height: 720px) {
    .by-map { max-height: max(24dvh, 190px) }
}

.curr-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 14px;
    font-size: 12.5px;
}

.curr-links-l {
    color: var(--t3);
    font-weight: 600;
}

.curr-links a {
    color: var(--t2);
    text-decoration: none;
    border-bottom: 1px dashed var(--bd2);
    padding-bottom: 1px;
}

.curr-links a:hover {
    color: var(--ac);
    border-color: var(--ac);
}

.by-home {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--bd2);
    background: color-mix(in srgb, var(--sf) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--t1);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    transition: border-color .18s var(--ease), color .18s var(--ease);
}

.by-home:hover {
    border-color: var(--ac);
    color: var(--ac);
}

.by-home[hidden] {
    display: none;
}

.by-wrap.zoomed .by-map {
    cursor: zoom-out;
}

.by-wrap.zoomed .by-reg,
.by-wrap.zoomed .by-ray,
.by-wrap.zoomed .by-city {
    cursor: pointer;
}
