:root {
    --muted: #647568;
    --surface: #ffffff;
    --surface-soft: #f0f4eb;
    --input: #fafcf7;
    --control-radius: 10px;
    --panel-radius: 18px;
    --content-width: 1664px;
    --map-water: #e5ede3;
    --map-land: #cbd9ca;
    --map-border: #f1f5ed;
    --map-grid: #9eb49f66;
    --map-selected: #a4d9ca;
    --map-favorite: #98b99f;
}
:root[data-theme='dark'] {
    --paper: #14271f;
    --surface: #1c3428;
    --surface-soft: #233f31;
    --input: #172d23;
    --ink: #edf4ee;
    --muted: #b1c3b5;
    --line: #3a5545;
    --green: #326e58;
    --map-water: #182f26;
    --map-land: #415d4e;
    --map-border: #789581;
    --map-grid: #66857455;
    --map-selected: #4caa99;
    --map-favorite: #628a6c;
    --selection-light: #2b5144;
    --selection-ink: #d7eee5;
    --selection-hover: #598b7c;
    --frame-edge: #4c7462;
    --frame-stroke: #85b6a1;
    --frame-active: #376d5a;
    --frame-active-stroke: #a0d6bf;
    --frame-glint: #bddccb;
    --frame-mat: #213c2e;
}
body {
    color: var(--ink);
    background: var(--paper);
}
button,
input,
select,
textarea {
    font-family: inherit;
}
.localized-label {
    display: inline-grid;
    min-width: 0;
    vertical-align: middle;
}
.localized-label > .localized-label-text,
.localized-label::before,
.localized-label::after {
    grid-area: 1 / 1;
    white-space: inherit;
}
.localized-label::before {
    content: attr(data-label-uk) / "";
}
.localized-label::after {
    content: attr(data-label-en) / "";
}
.localized-label::before,
.localized-label::after {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}
.community-main,
#account-content > main {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 32px clamp(20px, 3vw, 48px) 48px;
}
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 24px;
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 12px clamp(20px, 3vw, 48px);
    border-top: 1px solid var(--line);
}
.site-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: inherit;
    margin-inline-start: auto;
}
.site-footer .text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: start;
    white-space: normal;
}
.site-footer .text-button:hover,
.site-footer .text-button:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}
.community-main h1 {
    font-size: clamp(30px, 3.2vw, 40px);
    letter-spacing: -1.2px;
}
.profile-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}
#profile-link-message {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}
.community-card h2 {
    font-size: 18px;
    line-height: 1.5;
}
.header,
.site-header,
.community-header {
    height: auto;
    min-height: 88px;
    padding: 14px clamp(20px, 3vw, 48px);
    gap: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.site-header {
    display: flex;
    flex-wrap: wrap;
}
.site-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px clamp(12px, 1.5vw, 26px);
}
.site-nav .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    font-size: 12px;
    min-height: 44px;
    padding: 6px 3px;
    text-decoration: none;
}
.site-nav .nav-item #wish-count {
    position: static;
    font-size: 9px;
}
.site-language {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-language .text-button {
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 28px;
    padding: 3px 5px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.site-language .text-button[aria-pressed='true'] {
    background: var(--selection-light, #e2f1e7);
    border-color: var(--selection-line, #7ba88f);
    color: var(--selection-ink, #22513d);
}
#palette-inputs > section:not(:first-child) {
    margin-top: 20px;
}
#settings-dialog[data-statuses-only] > .dialog-header {
    margin-bottom: 12px;
}
#settings-dialog {
    width: min(780px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(88dvh, 900px);
    padding: 28px;
    overflow: hidden;
}
#settings-dialog[open] { display: flex; flex-direction: column; }
#settings-dialog > .dialog-header { flex: 0 0 auto; margin-bottom: 18px; }
#settings-dialog #palette-inputs {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 18px;
    margin: 0;
}
@media (max-width: 600px) {
    #settings-dialog { padding: 20px 16px; }
    #settings-dialog #palette-inputs { padding-right: 12px; }
}
#wishlist-section .wish-view-heading {
    margin-bottom: 16px;
}
.atlas-map-scale,
.atlas-map-controls {
    justify-content: flex-end;
}
@media (max-width: 1200px) {
    .site-header .site-nav {
        order: 1;
        flex-basis: 100%;
    }
}
@media (max-width: 620px) {
    .site-header {
        gap: 8px 12px;
        padding-inline: 12px;
    }
    .site-header .header-actions {
        gap: 6px;
    }
}
.community-header .brand {
    font-size: 28px;
    color: var(--ink);
    text-decoration: none;
}
.community-header nav {
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.community-header nav > a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    padding: 9px 0;
}
.community-header nav > a[aria-current] {
    color: var(--ink);
}
.header-actions {
    align-items: center;
}
.brand {
    flex-shrink: 0;
}
.brand-caption,
.nav-item {
    white-space: nowrap;
}
.search-wrap,
.wish-search {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--input);
}
.search-wrap input,
.wish-search input {
    min-height: 0;
}
:root[data-theme='dark'] .search-wrap input,
:root[data-theme='dark'] .wish-search input {
    background: transparent;
}
.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(330px, 1.45fr);
    background: var(--surface);
}
.stat:not(.collection-box-stat) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tools > .choice-control {
    width: 160px;
    margin-top: 0;
}
.theme-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--ink);
    display: grid;
    place-items: center;
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-toggle:hover {
    background: var(--surface);
    border-color: #72b4a3;
}
.button {
    min-height: 40px;
    border-radius: var(--control-radius);
    font-size: 12px;
}
.dialog {
    border-radius: var(--panel-radius);
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface);
}
.dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}
.dialog-header h2 {
    margin: 6px 0 10px;
    font-size: 25px;
    line-height: 1.4;
}
.dialog-header p {
    margin: 6px 0;
}
.field-label,
.wish-field {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.field-label input,
.field-label select,
.field-label textarea,
.wish-field input,
.wish-field select,
.wish-field textarea,
.community-main input:not([type='checkbox']):not([type='color']) {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--input);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.community-grid {
    gap: 22px;
}
.community-card,
.profile-editor,
.stat-tile,
.atlas-panel,
.details-panel {
    border-radius: var(--panel-radius);
}
#atlas-workspace > .details-panel.welcome {
    min-height: 0;
}
.community-card {
    overflow: hidden;
    background: var(--surface);
}
.community-card-body {
    position: relative;
    background: var(--surface);
    padding: 22px;
}
.community-photos {
    height: auto;
    aspect-ratio: 1.65;
    min-height: 180px;
}
.community-photos > a {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
.community-photos img {
    display: block;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
}
.honor-note-preview {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    height: 148px;
    overflow: hidden;
    min-height: 0;
    isolation: isolate;
}
.honor-note-preview img {
    display: block;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
}
.honor-note-body {
    position: relative;
    background: var(--surface);
    z-index: 1;
}
.wish-map-country {
    fill: var(--wish-fill, var(--map-land));
}
.wish-map-country:hover,
.wish-map-country:focus-visible {
    filter: brightness(0.95);
}
.continent-map-wrap {
    contain: layout paint;
}
.continent-map-wrap svg {
    overflow: hidden;
}
.country,
.continent-country {
    transition-property: fill, opacity, stroke;
}
.banknote-dialog {
    width: min(900px, calc(100vw - 64px));
    max-width: 900px;
    padding: 0;
    overflow: auto;
    max-height: 90dvh;
}
.banknote-dialog > .dialog-header {
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 24px 28px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.banknote-dialog > .dialog-header h2 {
    max-width: 680px;
    overflow-wrap: anywhere;
    font-size: 23px;
}
.banknote-dialog #profile-note-slot {
    padding: 24px 28px;
}
.banknote-dialog .form-heading {
    display: none;
}
.banknote-dialog .note-form {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
}
.intelligent-note-form .field-label {
    margin-bottom: 16px;
    font-size: 12px;
}
.intelligent-note-form .note-identity-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.intelligent-note-form .note-identity-fields > :first-child {
    grid-column: 1 / -1;
}
.intelligent-note-form .note-identity-fields > [data-category-fields] {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.intelligent-note-form #note-catalog-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.intelligent-note-form #note-catalog-fields > :nth-child(n + 3) {
    grid-column: 1 / -1;
}
.intelligent-note-form textarea {
    min-height: 110px;
    line-height: 1.7;
}
.intelligent-note-form input,
.intelligent-note-form textarea {
    font-size: 12px !important;
}
.intelligent-note-form .form-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(110px, 0.6fr);
    gap: 18px;
}
.banknote-dialog .form-actions {
    position: sticky;
    bottom: -24px;
    background: var(--surface);
    padding: 16px 0;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
    z-index: 2;
}
.note-entry-modes {
    border-radius: 10px;
    padding: 4px;
}
.note-entry-modes button {
    min-height: 38px;
}

:root[data-theme='dark']
    :is(
        .header,
        .community-header,
        .atlas-panel,
        .details-panel,
        .stat-tile,
        .community-card,
        .community-card-body,
        .profile-editor,
        .collection-sharing,
        .wish-summary,
        .wish-text-row,
        .wish-toolbar,
        .dialog,
        .note-form,
        .honor-panel,
        .honor-note-card,
        .honor-summary
    ) {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
:root[data-theme='dark']
    :is(
        .atlas-toolbar,
        .legend,
        .country-heading,
        .welcome-body,
        .list-header,
        .view-switch,
        .note-entry-modes,
        .wish-empty,
        .year-bound-notice,
        .continent-empty-details
    ) {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark']
    :is(input:not([type='color']):not([type='checkbox']), select, textarea) {
    background: var(--input);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark']
    :is(
        .field-label,
        .wish-field,
        .small,
        .muted,
        .section-label,
        .condition-hint,
        .catalog-year-hint,
        .country-notes,
        .subtitle,
        .profile-caption,
        .stat-top,
        .stat-bottom > span,
        .map-hint,
        .honor-muted,
        .honor-private-note,
        .honor-note-meta
    ) {
    color: var(--muted);
}
:root[data-theme='dark'] .eyebrow {
    color: #b1c8a6;
}
:root[data-theme='dark']
    :is(
        .status-choice,
        .button.secondary,
        .text-button,
        .country-row,
        .wish-available-country,
        .note-entry-modes button,
        .view-switch button,
        .icon-btn
    ) {
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark']
    :is(
        .status-choice,
        .button.secondary,
        .icon-btn:hover,
        .wish-available-country:hover
    ) {
    background: var(--surface-soft);
}
:root[data-theme='dark']
    :is(
        .view-switch button.selected,
        .note-entry-modes button.selected,
        .note-entry-modes button[aria-pressed='true'],
        .status-choice.chosen
    ) {
    background: #315c49;
    color: #ecf7ef;
}
:root[data-theme='dark'] :is(.map-view, .wish-map-stage) {
    background: #203b30;
}
:root[data-theme='dark']
    :is(
        .map-topline,
        .ocean-label,
        .map-bottom,
        .wish-map-caption,
        .wish-map-legend,
        .wish-map-sidebar p,
        .catalog-source
    ) {
    color: #bbccbd;
}
:root[data-theme='dark'] .wish-map-sidebar {
    background: var(--surface);
    border-color: var(--line);
}
:root[data-theme='dark']
    :is(
        .note-card,
        .empty-notes,
        .year-chip,
        .count-badge,
        .country-wish-button,
        .stat-pill
    ) {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark'] .nav-item.active {
    color: #bcebd7;
    border-color: #71c4a4;
}
:root[data-theme='dark']
    :is(.nav-item #nav-count, .nav-item #wish-count, .personal-tag) {
    background: #2e4c3a;
    color: #d2e6d7;
}
:root[data-theme='dark'] .honor-note-body {
    background: var(--surface);
}
:root[data-theme='dark'] .catalog-year-chips button {
    background: var(--surface-soft);
    color: var(--ink);
}
:root[data-theme='dark'] .banknote-dialog > .dialog-header,
:root[data-theme='dark'] .banknote-dialog .form-actions {
    background: var(--surface);
}

.choice-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    clip-path: inset(50%);
    pointer-events: none;
}
.choice-control {
    display: block;
    min-width: 0;
    width: 100%;
    position: relative;
    margin-top: 6px;
}
.choice-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--input);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    text-align: left;
}
.choice-trigger > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.choice-chevron {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    margin: -4px 3px 0;
    flex: 0 0 auto;
}
.choice-trigger:focus-visible,
.choice-trigger[aria-expanded='true'] {
    outline: 2px solid #53b8a9;
    outline-offset: 2px;
}
.choice-trigger:disabled {
    cursor: default;
    opacity: 0.55;
}
.choice-popup {
    position: fixed;
    z-index: 10000;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 12px 36px #152f2829;
    box-sizing: border-box;
    overflow: hidden;
}
.choice-popup[hidden] {
    display: none !important;
}
.choice-search {
    width: 100%;
    margin: 0 0 5px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--input);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.choice-search:focus-visible {
    outline: 2px solid #53b8a9;
    outline-offset: 0;
}
.choice-options {
    max-height: 260px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.choice-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 9px 10px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    text-align: left;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
}
.choice-option:hover,
.choice-option.is-active {
    background: var(--surface-soft);
}
.choice-option[aria-selected='true'] {
    color: #207a68;
    background: #e6f3eb;
    font-weight: 600;
}
:root[data-theme='dark'] .choice-option[aria-selected='true'] {
    background: #315c49;
    color: #c8f0de;
}
.choice-empty,
.choice-validation {
    font-size: 12px;
    line-height: 1.6;
    padding: 8px 10px;
    color: var(--muted);
}
.choice-validation {
    color: #ad4c42;
    padding: 5px 0;
}
.choice-trigger[aria-invalid='true'] {
    border-color: #b86255;
}

@media (max-width: 1100px) {
    .header {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    .header-actions {
        margin-left: auto;
    }
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .community-header {
        flex-wrap: wrap;
    }
}
@media (max-width: 1500px) {
    .header {
        flex-wrap: wrap;
        gap: 4px 24px;
    }
    .header .main-nav {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
        gap: 26px;
        min-height: 44px;
    }
    .header .nav-item {
        min-height: 44px;
        font-size: 12px;
        padding: 10px 0;
    }
    .header-actions {
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }
}
@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    .banknote-dialog {
        width: calc(100vw - 24px);
    }
    .banknote-dialog > .dialog-header,
    .banknote-dialog #profile-note-slot {
        padding: 18px;
    }
    .intelligent-note-form .note-identity-fields,
    .intelligent-note-form #note-catalog-fields {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .choice-popup,
    .theme-toggle {
        transition: none;
    }
}

:root[data-theme]
    :is(
        .map-view,
        .wish-map-stage,
        .continent-map-wrap,
        .honor-stage .honor-map-panel
    ) {
    background-color: var(--map-water);
    background-image: radial-gradient(
        var(--map-grid) 0.55px,
        transparent 0.55px
    );
    background-size: 10px 10px;
    border-color: var(--line);
}
:root[data-theme] #public-world-map {
    background: var(--map-water);
}
:root[data-theme]
    :is(
        .country,
        .continent-country,
        .honor-country,
        .public-map-country,
        .wish-map-country
    ) {
    stroke: var(--map-border);
}
.graticule {
    stroke: var(--map-grid);
}
.continent-context {
    fill: var(--map-land);
    stroke: var(--map-border);
    opacity: 0.55;
}
:root[data-theme='dark']
    :is(
        .continent-list-search,
        .continent-map-help,
        .continent-empty-icon
    ) {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark'] #continent-dialog :is(#close-continent, #close-details) {
    background: transparent;
    color: var(--ink);
}
:root[data-theme='dark'] #continent-dialog :is(#close-continent, #close-details):hover {
    background: var(--surface-soft);
}
:root[data-theme='dark'] .continent-list-search input[type='search'] {
    background: transparent;
}
:root[data-theme='dark'] :is(.country.selected, .continent-country.selected) {
    stroke: var(--selection-line);
}
:root[data-theme='dark'] .add-note-btn {
    background: #2d4d3b;
    color: #d5e8d8;
    border-color: #537258;
}
:root[data-theme='dark'] .add-note-btn:hover {
    background: #385d46;
}
:root[data-theme='dark']
    :is(
        .map-topline,
        .ocean-label,
        .map-hint,
        .wish-map-caption,
        .wish-map-legend
    ) {
    color: #b0c4b3;
}
:root[data-theme='dark'] .honor-map-panel {
    filter: none;
}
:root[data-theme='dark'] :is(.honor-map-caption, .honor-map-caption span) {
    color: #bdd0bf;
}
:root[data-theme='dark']
    :is(
        .honor-map-controls,
        .honor-map-focus,
        .continent-camera,
        .continent-zoom-controls,
        .continent-selection-key,
        .wish-map-tooltip,
        .continent-dialog-header
    ) {
    background: #233e30f2;
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark']
    :is(
        .honor-map-controls button,
        .honor-map-controls > span,
        .honor-frame-fallback
    ) {
    color: var(--ink);
    fill: var(--ink);
}
:root[data-theme='dark']
    :is(
        .continent-card,
        .continent-card:nth-child(2),
        .continent-card:nth-child(4),
        .continent-card:nth-child(6)
    ) {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
:root[data-theme='dark'] .continent-card:hover {
    background: #274536;
    border-color: #709a7e;
    box-shadow: 0 10px 24px #061a1240;
}
:root[data-theme='dark']
    :is(.continent-card-title, .continent-progress-label > strong) {
    color: #e0eee2;
}
:root[data-theme='dark']
    :is(
        .continent-card-caption,
        .continent-progress-label > span,
        .continent-card-index,
        .completeness-heading > p,
        .completeness-footnote
    ) {
    color: #a8beab;
}
:root[data-theme='dark'] .continent-card-arrow {
    color: #c6dfc6;
    background: #33513e;
}
:root[data-theme='dark']
    :is(
        .continent-progress-track,
        .continent-dialog-progress .continent-progress-track
    ) {
    background: #35513e;
}
:root[data-theme='dark'] .continent-progress-track > span {
    background: #80b395;
}
:root[data-theme='dark']
    :is(
        .continent-dialog,
        .continent-country-list,
        .continent-country-item,
        .continent-country-toolbar,
        .continent-explorer
    ) {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark'] .continent-country-item:hover {
    background: #2b4938;
}
:root[data-theme='dark'] .continent-country-item.selected {
    background: var(--selection-light);
    color: var(--selection-ink);
}
:root[data-theme='dark']
    :is(
        .continent-country-label small,
        .continent-country-item small,
        .continent-camera-caption,
        #continent-zoom-value
    ) {
    color: #b2c5b3;
}
:root[data-theme='dark']
    :is(
        .wish-text-list,
        .wish-table-header,
        .wish-card,
        .wish-card.is-found,
        .wish-map-view
    ) {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
:root[data-theme='dark'] .wish-table-header {
    background: var(--surface-soft);
    color: #b9cdbb;
}
:root[data-theme='dark']
    :is(.wish-text-row + .wish-text-row, .wish-note, .wish-summary > div) {
    border-color: var(--line);
}
:root[data-theme='dark'] .wish-summary strong {
    color: #d2ead7;
}
:root[data-theme='dark']
    :is(
        .wish-summary span,
        .wish-row-main p,
        .wish-row-note,
        .wish-specs small
    ) {
    color: #abc1ac;
}
:root[data-theme='dark'] .wish-tag {
    background: #2f4c3b;
    color: #c0dbc6;
    border: 1px solid #4a6b53;
}
:root[data-theme='dark'] .wish-tag.priority {
    background: #514530;
    color: #e5d1a4;
    border-color: #77633e;
}
:root[data-theme='dark'] .wish-tag.found {
    background: #2e5142;
    color: #b8e1c9;
}
:root[data-theme='dark'] .wish-available-country.wanted {
    background: #2b4f40;
    color: #d8eee2;
    border-color: #4e7961;
}
:root[data-theme='dark'] .wish-available-country.wanted:hover {
    background: #365e4c;
}
:root[data-theme='dark']
    :is(.wish-available-country small, .wish-map-sidebar h3 > span) {
    color: #b9d5bf;
    background: #31513e;
}
:root[data-theme='dark'] .welcome-visual {
    background: radial-gradient(ellipse at center, #2e4b3a, #20392d);
}
:root[data-theme='dark']
    :is(.decor-orbit, .decor-orbit::before, .decor-orbit::after) {
    border-color: #63856566;
}
:root[data-theme='dark'] .ticket {
    background: #54785a;
    box-shadow: 0 10px 22px #071b1340;
}
:root[data-theme='dark'] .ticket-front {
    background: #8fa98a;
    border-color: #738c70;
    color: #183e2b;
}
:root[data-theme='dark'] .ticket-border {
    border-color: #416a4a80;
}
:root[data-theme='dark'] .welcome-visual::after {
    opacity: 0.35;
}
:root[data-theme='dark']
    :is(
        .search-results,
        .search-result:hover,
        .map-error,
        .help-steps > li::before,
        .catalog-source,
        .public-map-panel
    ) {
    background: var(--surface-soft);
    color: var(--ink);
    border-color: var(--line);
}

@media (max-width: 620px) {
    .community-main .profile-statistics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-main .profile-statistics .stat-tile { min-width: 0; }
}
