.official-country {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.country-flag {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .1);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-country > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.official-country strong {
    color: white;
    font-size: .9rem;
}

.official-country > div span {
    color: #b9c2cf;
    font-size: .72rem;
}

.direction-toggle.three-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.direction-toggle.three-options button {
    padding: 7px 5px;
    font-size: .76rem;
    line-height: 1.2;
}

.official-selector {
    margin-bottom: 15px;
}

.official-result {
    border-top: 4px solid var(--accent);
}

.inline-country {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.inline-country img {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(11, 29, 51, .12);
}

@media (max-width: 420px) {
    .direction-toggle.three-options {
        grid-template-columns: 1fr;
    }

    .direction-toggle.three-options button {
        min-height: 38px;
    }
}

.official-country a{color:#ffd21a;font-size:.72rem;text-decoration:underline;text-underline-offset:2px}
.official-unavailable{padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.06);line-height:1.5}
.reference-calculator{margin-top:20px;padding:18px;border-radius:16px;background:#f3f5f8;color:#0b1d33}
.reference-calculator-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reference-calculator-heading h3{margin:0;font-size:1.08rem}
.reference-calculator-heading>span{padding:5px 9px;border-radius:999px;background:#0b1d33;color:#fff;font-size:.72rem;font-weight:850}
.reference-direction{background:#fff}
.reference-result{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:14px;border-radius:12px;background:#0b1d33;color:#fff}
.reference-result strong{color:#ffd21a;font-size:1.25rem}
html[data-theme="dark"] .official-country a{color:#0b1d33}
html[data-theme="dark"] .official-unavailable{background:#fff;border-color:rgba(11,29,51,.14);color:#0b1d33}

.official-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.official-card-action {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #ffffff;
    font-size: .82rem;
    font-weight: 800;
}

.official-card-action span {
    color: #ffd21a;
    font-size: 1rem;
}

html[data-theme="dark"] .official-card-action {
    border-top-color: rgba(11, 29, 51, .14);
    color: #0b1d33;
}

html[data-theme="dark"] .official-card-action span {
    color: #0b1d33;
}

html[data-theme="dark"] .official-country {
    background: #0b1d33;
    border-color: rgba(243, 245, 248, .22);
    color: #f3f5f8;
}

html[data-theme="dark"] .official-country strong,
html[data-theme="dark"] .official-country a,
html[data-theme="dark"] .official-country > div span {
    color: #f3f5f8;
}

html[data-theme="dark"] .official-country .country-flag {
    background: rgba(243, 245, 248, .12);
    box-shadow: 0 0 0 1px rgba(243, 245, 248, .18);
}

.official-date {
    margin-top: 5px;
    color: #b9c2cf;
    font-size: .72rem;
    font-weight: 750;
}

html[data-theme="dark"] .official-card {
    background: #0b1d33;
    border-color: rgba(243, 245, 248, .22);
}

html[data-theme="dark"] .official-card .official-name {
    color: #ffffff;
}

html[data-theme="dark"] .official-card strong {
    color: #ffd21a;
}

html[data-theme="dark"] .official-card .official-conversion,
html[data-theme="dark"] .official-card .official-date,
html[data-theme="dark"] .official-card .official-card-action {
    color: #f3f5f8;
}

html[data-theme="dark"] .official-card .official-card-action {
    border-top-color: rgba(243, 245, 248, .22);
}

html[data-theme="dark"] .official-card .official-card-action span {
    color: #ffd21a;
}

.official-country-group + .official-country-group {
    margin-top: 12px;
}

.official-country-group .official-country {
    margin: 0 0 12px;
}

.official-country-group .official-grid {
    gap: 12px;
}

html:not([data-theme="dark"]) .official-country {
    background: #ffffff;
    border-color: rgba(11, 29, 51, .14);
    color: #0b1d33;
}

html:not([data-theme="dark"]) .official-country strong,
html:not([data-theme="dark"]) .official-country a,
html:not([data-theme="dark"]) .official-country > div span {
    color: #0b1d33;
}

html:not([data-theme="dark"]) .official-country .country-flag {
    background: #f3f5f8;
    box-shadow: 0 0 0 1px rgba(11, 29, 51, .12);
}

html:not([data-theme="dark"]) .official-card {
    background: #ffffff;
    border-color: rgba(11, 29, 51, .14);
}

html:not([data-theme="dark"]) .official-card .official-name,
html:not([data-theme="dark"]) .official-card strong,
html:not([data-theme="dark"]) .official-card .official-card-action {
    color: #0b1d33;
}

html:not([data-theme="dark"]) .official-card .official-conversion,
html:not([data-theme="dark"]) .official-card .official-date {
    color: #667388;
}

html:not([data-theme="dark"]) .official-card .official-card-action {
    border-top-color: rgba(11, 29, 51, .14);
}

html:not([data-theme="dark"]) .official-card .official-card-action span {
    color: #0b1d33;
}

html[data-theme="dark"] .official-section .official-card > strong {
    color: #ffd21a;
}

html[data-theme="dark"] .official-section .official-card .official-date,
html[data-theme="dark"] .official-section .official-country a {
    color: #ffd21a;
}

html[data-theme="dark"] .official-section .official-country .country-flag {
    box-shadow: 0 0 0 2px rgba(255, 210, 26, .52);
}
