:root {
    --ink: #1a1410;
    --paper: #f5f0e8;
    --warm: #c8a96e;
    --rust: #c4533a;
    --sage: #5c7a5f;
    --mist: #8fa8b0;
    --card-bg: white;
    --input-bg: white;
}

body.dark {
    --ink: #d8d0c0; /* softer, less glaring than #e8e0d0 */
    --paper: #1c1916; /* slightly lighter than #141210, easier on eyes */
    --warm: #a87e3e;
    --rust: #c45040;
    --sage: #5a8a5e;
    --mist: #6a8898;
    --card-bg: #252019; /* lifted from pure black */
    --input-bg: #2a2420;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.icon-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    color: inherit;
}

.icon-slot > .lucide {
    width: 100%;
    height: 100%;
    stroke-width: 1.9;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.icon-text--tight {
    gap: 4px;
}

.icon-xs {
    width: 12px;
    height: 12px;
}

.icon-sm {
    width: 14px;
    height: 14px;
}

.icon-md {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 20px;
    height: 20px;
}

.icon-btn-md {
    width: 18px;
    height: 18px;
}

.icon-nav {
    width: 22px;
    height: 22px;
}

.icon-empty {
    width: 56px;
    height: 56px;
}

[hidden] {
    display: none !important;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .35s, color .35s;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c8a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* dark mode overrides — global selectors & Leaflet overrides */
body.dark .card, body.dark .tl-card, body.dark .wish-item, body.dark .stat-card, body.dark .info-box, body.dark .search-bar, body.dark .wish-btn, body.dark .share-modal, body.dark .pop-inner, body.dark .deck-card {
    background: var(--card-bg) !important;
}

body.dark .modal {
    background: var(--card-bg);
}

body.dark .form-input, body.dark select.form-input {
    background: var(--input-bg) !important;
    color: var(--ink) !important;
}

body.dark .stats-bar {
    background: rgba(168, 126, 62, .06);
}

body.dark .stat {
    border-right-color: rgba(216, 208, 192, .07);
}

body.dark .bottom-nav, body.dark header, body.dark .tabs {
    background: var(--paper);
}

body.dark .detail-overlay, body.dark .detail-content {
    background: var(--paper);
}

body.dark .detail-hero-bg {
    background: linear-gradient(135deg, rgba(168, 126, 62, .1), rgba(90, 138, 94, .1));
}

/* Leaflet popup */
body.dark .leaflet-popup-content-wrapper {
    background: var(--card-bg) !important;
    border: 1.5px solid rgba(216, 208, 192, .18) !important;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .4) !important;
}

body.dark .pop-inner {
    background: var(--card-bg) !important;
}

body.dark .pop-city {
    color: var(--ink);
    font-weight: 700;
}

body.dark .pop-country {
    color: rgba(216, 208, 192, .45) !important;
}

body.dark .pop-date {
    color: var(--warm) !important;
}

body.dark .pop-rating {
    color: var(--warm) !important;
}

body.dark .pop-btn {
    background: rgba(216, 208, 192, .1);
    color: var(--ink);
    border-top: 1px solid rgba(216, 208, 192, .1);
}

/* map */
body.dark .map-legend {
    background: rgba(28, 25, 22, .95) !important;
    color: rgba(216, 208, 192, .5);
    border-color: rgba(216, 208, 192, .15);
}

body.dark .map-toolbar {
    border-bottom-color: rgba(216, 208, 192, .08);
}

body.dark .map-style-btn {
    background: var(--card-bg);
    color: rgba(216, 208, 192, .6);
    border-color: rgba(216, 208, 192, .18);
}

body.dark .map-style-btn.active {
    background: var(--ink);
    color: var(--paper);
}

/* search */
body.dark .search-bar {
    box-shadow: none;
    border-color: rgba(216, 208, 192, .18);
}

/* ── COMPREHENSIVE DARK MODE FIXES ── */
body.dark .action-menu-item {
    border-bottom-color: rgba(216, 208, 192, .08);
}

body.dark .action-menu-item:active {
    background: rgba(216, 208, 192, .06);
}

body.dark .action-menu-label span {
    color: rgba(216, 208, 192, .4);
}

body.dark .stats-bar {
    border-bottom-color: rgba(216, 208, 192, .1);
    background: rgba(168, 126, 62, .06);
}

body.dark .stat {
    border-right-color: rgba(216, 208, 192, .08);
}

body.dark .stat-label {
    color: rgba(216, 208, 192, .5);
}

body.dark .tabs {
    border-bottom-color: rgba(216, 208, 192, .1);
}

body.dark .tab {
    color: rgba(216, 208, 192, .4);
}

body.dark .chip {
    border-color: rgba(216, 208, 192, .2);
    color: rgba(216, 208, 192, .55);
}

body.dark .search-bar input::placeholder {
    color: rgba(216, 208, 192, .25);
}

body.dark .section-title {
    color: rgba(216, 208, 192, .4);
}

body.dark .section-title::after {
    background: rgba(216, 208, 192, .12);
}

body.dark .view-toggle-btn {
    border-color: rgba(216, 208, 192, .2);
}

body.dark .deck-counter {
    color: rgba(216, 208, 192, .3);
}

body.dark .deck-hint {
    background: rgba(42, 36, 28, .9);
    color: rgba(216, 208, 192, .75);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

body.dark .dc-media-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, .65) 100%);
}

body.dark .dc-cal {
    background: rgba(42, 36, 28, .96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

body.dark .dc-cal-mo {
    color: rgba(216, 208, 192, .45);
}

body.dark .dc-country-name {
    color: rgba(216, 208, 192, .4);
}

body.dark .dc-note {
    color: rgba(216, 208, 192, .48);
}

body.dark .card-dot {
    background: rgba(216, 208, 192, .25);
}

body.dark .card-country {
    color: rgba(216, 208, 192, .45);
}

body.dark .card-note {
    color: rgba(216, 208, 192, .52);
}

body.dark .card-footer {
    border-top-color: rgba(216, 208, 192, .1);
}

body.dark .empty-desc {
    color: rgba(216, 208, 192, .4);
}

body.dark .map-style-btn {
    border-color: rgba(216, 208, 192, .2);
    color: rgba(216, 208, 192, .65);
}

body.dark .map-count {
    color: rgba(216, 208, 192, .5);
}

body.dark .pop-country {
    color: rgba(216, 208, 192, .45);
}

body.dark .sv-section-title {
    color: rgba(216, 208, 192, .35);
}

body.dark .sv-continent-lbl {
    color: rgba(216, 208, 192, .4);
}

body.dark .sv-continent-num {
    color: var(--ink);
}

body.dark .sv-year-lbl {
    color: rgba(216, 208, 192, .35);
}

body.dark .sv-rating-count {
    color: rgba(216, 208, 192, .4);
}

body.dark .sv-top-count {
    color: rgba(216, 208, 192, .4);
}

body.dark .sv-top-name {
    color: var(--ink);
}

body.dark .sv-rating-bar-wrap {
    background: rgba(216, 208, 192, .08);
}

body.dark .sv-year-tip {
    color: var(--ink);
}

body.dark .wish-tab {
    color: rgba(216, 208, 192, .4);
}

body.dark .wish-tabs {
    border-bottom-color: rgba(216, 208, 192, .1);
}

body.dark .wish-rec-hint {
    color: rgba(216, 208, 192, .45);
}

body.dark .wish-plan-form {
    border-color: rgba(216, 208, 192, .15);
    box-shadow: none;
}

body.dark .wish-plan-select, body.dark .wish-plan-input {
    border-color: rgba(216, 208, 192, .2);
    background: var(--input-bg);
    color: var(--ink);
}

body.dark .nvidia-key-hint {
    color: rgba(216, 208, 192, .35);
}

body.dark .ai-card {
    border-color: rgba(216, 208, 192, .15);
    box-shadow: none;
}

body.dark .ai-card-body {
    color: rgba(216, 208, 192, .6);
}

body.dark .ai-card-actions {
    border-top-color: rgba(216, 208, 192, .1);
}

body.dark .ai-card-btn {
    border-color: rgba(216, 208, 192, .25);
    color: var(--ink);
}

body.dark .ai-card-btn.primary {
    background: var(--rust);
    color: #fff;
    border-color: var(--rust);
}

body.dark .ai-plan-day {
    color: var(--rust);
    border-bottom-color: rgba(196, 83, 58, .2);
}

body.dark .ai-loading {
    color: rgba(216, 208, 192, .4);
}

body.dark .modal-overlay {
    background: rgba(0, 0, 0, .6);
}

body.dark .detail-subtitle {
    color: rgba(216, 208, 192, .4);
}

body.dark .detail-divider {
    border-top-color: rgba(216, 208, 192, .1);
}

body.dark .detail-note {
    color: rgba(216, 208, 192, .78);
}

body.dark .info-box-label {
    color: rgba(216, 208, 192, .4);
}

body.dark .share-card-meta {
    color: rgba(216, 208, 192, .4);
}

body.dark .share-card-note {
    color: rgba(216, 208, 192, .65);
}

body.dark .share-card-footer {
    border-top-color: rgba(216, 208, 192, .1);
}

body.dark .share-card-brand {
    color: rgba(216, 208, 192, .35);
}

body.dark .share-actions {
    border-top-color: rgba(216, 208, 192, .1);
}

body.dark .tl-card-meta {
    color: rgba(216, 208, 192, .45);
}

body.dark .tl-line {
    background: rgba(216, 208, 192, .1);
}

body.dark .year-count {
    color: rgba(216, 208, 192, .4);
}

body.dark .big-label {
    color: rgba(216, 208, 192, .45);
}

body.dark .form-label {
    color: rgba(216, 208, 192, .4);
}

body.dark .photo-upload-label {
    color: rgba(216, 208, 192, .35);
}

body.dark .modal-handle {
    background: rgba(216, 208, 192, .15);
}

body.dark .loading-text {
    color: rgba(216, 208, 192, .4);
}

body.dark .nav-label {
    color: inherit;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 0 var(--warm);
}

body.dark header {
    border-bottom-color: rgba(216, 208, 192, .15);
    box-shadow: 0 1px 0 rgba(168, 126, 62, .3);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.logo-sub {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ink);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    color: var(--ink);
    position: relative;
    flex-shrink: 0;
}

.btn-icon:active {
    background: var(--ink);
    color: var(--paper);
    transform: scale(.92);
}

.btn-icon--add {
    background: rgba(196, 83, 58, .9);
    color: #fff;
    border-color: rgba(196, 83, 58, .9);
    box-shadow: 0 6px 18px rgba(196, 83, 58, .22);
}

.btn-icon--add:active {
    background: rgba(170, 68, 45, .95);
    color: #fff;
    border-color: rgba(170, 68, 45, .95);
    box-shadow: 0 3px 10px rgba(196, 83, 58, .2);
}

body.dark .btn-icon--add {
    background: rgba(196, 83, 58, .82);
    border-color: rgba(212, 110, 83, .82);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

/* tooltip on hover (desktop) */
.btn-icon[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: .5px;
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 500;
    animation: fadeIn .15s ease;
}

.btn-icon[data-tip]:hover::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    right: 12px;
    border: 4px solid transparent;
    border-bottom-color: var(--ink);
    pointer-events: none;
    z-index: 500;
}

/* action menu */
.action-menu-wrap {
    position: relative;
}

.action-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--ink);
    z-index: 400;
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.97);
    transition: opacity .2s, transform .2s;
}

.action-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid rgba(26, 20, 16, .06);
}

.action-menu-item:last-child {
    border-bottom: none;
}

.action-menu-item:active {
    background: rgba(26, 20, 16, .06);
}

body.dark .action-menu-item:active {
    background: rgba(216, 208, 192, .06);
}

body.dark .action-menu-item {
    border-bottom-color: rgba(216, 208, 192, .06);
}

.action-menu-icon {
    width: 24px;
    height: 24px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-menu-label {
    flex: 1;
}

.action-menu-label b {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1px;
}

.action-menu-label span {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(26, 20, 16, .45);
    letter-spacing: .5px;
}

body.dark .action-menu-label span {
    color: rgba(216, 208, 192, .4);
}

.action-menu-item.danger .action-menu-label b {
    color: var(--rust);
}

.action-menu-item.danger .action-menu-icon {
    filter: hue-rotate(0deg);
}

/* ── ADAPTIVE COLOR TOKENS ──
   All rgba(26,20,16,x) ink shades → use --ink with opacity via CSS vars
   All rgba(245,240,232,x) paper shades → adapt in dark via overrides      */

/* stats bar borders */
.stats-bar {
    display: flex;
    border-bottom: 1.5px solid rgba(26, 20, 16, .15);
    background: rgba(200, 169, 110, .1);
    position: relative;
    z-index: 1;
}

body.dark .stats-bar {
    border-bottom-color: rgba(216, 208, 192, .1);
}

.stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(26, 20, 16, .1);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--rust);
    display: block;
    transition: all .4s;
}

.stat-label {
    font-size: 10px;
    color: rgba(26, 20, 16, .5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

body.dark .stat-label {
    color: rgba(216, 208, 192, .55);
}

/* TABS — desktop only */
.tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1.5px solid rgba(26, 20, 16, .15);
    background: var(--paper);
    position: relative;
    z-index: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 14px;
    border: none;
    background: none;
    color: rgba(26, 20, 16, .4);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all .2s;
}

.tab.active {
    color: var(--ink);
    border-bottom-color: var(--rust);
}

body.dark .tab {
    color: rgba(216, 208, 192, .5);
}

body.dark .tab.active {
    color: var(--ink);
}

body.dark .tabs {
    border-bottom-color: rgba(216, 208, 192, .1);
}

.view {
    position: relative;
    z-index: 1;
}

.hidden-file-input {
    display: none;
}

.view-bottom-spaced {
    padding: 0 0 110px;
}

.timeline-view {
    padding: 16px 16px 90px;
}

/* ── RESPONSIVE: unified liquid glass bottom nav for all screens ── */
@media (max-width: 767px) {
    .tabs {
        display: none;
    }

    .side-nav {
        display: none !important;
    }

    .app-body {
        display: block;
    }

    .main-content {
        display: block;
    }

    .view:not(#journalView) {
        padding-bottom: 110px;
    }

    #journalView {
        padding-bottom: 0;
    }

    .cards {
        padding-bottom: 120px;
    }

    .deck-section {
        padding-bottom: 110px;
    }
}

@media (min-width: 768px) {
    .tabs {
        display: none;
    }

    .side-nav {
        display: none !important;
    }

    .app-body {
        display: block;
    }

    .main-content {
        display: block;
    }

    /* desktop: wider + more see-through */
    .bottom-nav {
        max-width: 600px;
        background: rgba(245, 240, 232, .28);
        backdrop-filter: blur(40px) saturate(220%);
        -webkit-backdrop-filter: blur(40px) saturate(220%);
        border-color: rgba(255, 255, 255, .6);
        box-shadow: 0 16px 48px rgba(26, 20, 16, .08), 0 1px 0 rgba(255, 255, 255, .75) inset;
    }

    body.dark .bottom-nav {
        background: rgba(28, 24, 20, .3);
        border-color: rgba(255, 255, 255, .14);
        box-shadow: 0 16px 48px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .1) inset;
    }

    .view:not(#journalView) {
        padding-bottom: 110px;
    }

    #journalView {
        padding-bottom: 0;
    }

    .cards {
        padding-bottom: 120px;
    }

    .deck-section {
        padding-bottom: 110px;
    }

    .deck-wrap {
        height: calc(100vh - 210px);
    }

    #statsView, #wishView, #timelineView {
        padding-bottom: 110px;
    }
}

/* JOURNAL */
#journalView {
    padding: 0;
    padding-bottom: 0;
    overflow: hidden;
}

#journalView.journal-list-mode {
    overflow: visible;
}

.journal-top {
    padding: 16px 16px 0;
}

.search-area {
    display: block;
}

.search-icon-muted {
    opacity: .4;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 10px 14px;
    box-shadow: 3px 3px 0 rgba(26, 20, 16, .08);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(26, 20, 16, .3);
}

body.dark .search-bar input::placeholder {
    color: rgba(216, 208, 192, .25);
}

body.dark .chip:not(.active) {
    color: rgba(216, 208, 192, .5);
}

body.dark .section-title::after {
    background: rgba(216, 208, 192, .12);
}

body.dark .search-bar {
    box-shadow: none;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 12px;
}

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

.chip {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1.5px solid rgba(26, 20, 16, .2);
    border-radius: 20px;
    background: var(--card-bg);
    cursor: pointer;
    white-space: nowrap;
    color: rgba(26, 20, 16, .6);
    transition: all .15s;
}

.chip.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* card counter + view toggle */
.cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(26, 20, 16, .4);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex: 1;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(26, 20, 16, .12);
}

body.dark .section-title {
    color: rgba(216, 208, 192, .4);
}

body.dark .section-title::after {
    background: rgba(216, 208, 192, .12);
}

.view-toggle {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.view-toggle-btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid rgba(26, 20, 16, .2);
    border-radius: 2px;
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    color: var(--ink);
}

.view-toggle-btn.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.view-toggle-btn.attention:not(.active) {
    border-color: rgba(170, 84, 45, .55);
    box-shadow: 0 0 0 3px rgba(170, 84, 45, .12);
    animation: deckTogglePulse 1.7s ease-in-out infinite;
}

body.dark .view-toggle-btn {
    border-color: rgba(216, 208, 192, .2);
}

body.dark .view-toggle-btn.attention:not(.active) {
    border-color: rgba(220, 164, 112, .45);
    box-shadow: 0 0 0 3px rgba(220, 164, 112, .1);
}

@keyframes deckTogglePulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

.journal-guide {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 14px;
    padding: 12px 14px;
    border: 1.5px solid rgba(26, 20, 16, .14);
    background: rgba(245, 240, 232, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 3px 3px 0 rgba(26, 20, 16, .06);
}

.journal-guide-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 20, 16, .06);
    color: var(--rust);
    flex-shrink: 0;
}

.journal-guide-copy {
    min-width: 0;
    flex: 1;
}

.journal-guide-title {
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}

.journal-guide-desc {
    font-size: 12px;
    color: rgba(26, 20, 16, .52);
    line-height: 1.45;
    margin-top: 2px;
}

.journal-guide-btn {
    border: none;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
}

.journal-guide--swipe .journal-guide-icon {
    background: rgba(92, 122, 95, .12);
    color: var(--forest);
}

body.dark .journal-guide {
    border-color: rgba(216, 208, 192, .12);
    background: rgba(42, 36, 28, .82);
    box-shadow: none;
}

body.dark .journal-guide-icon {
    background: rgba(216, 208, 192, .08);
}

body.dark .journal-guide-title {
    color: var(--paper);
}

body.dark .journal-guide-desc {
    color: rgba(216, 208, 192, .55);
}

body.dark .journal-guide-btn {
    background: rgba(216, 208, 192, .12);
    color: var(--paper);
}

.image-loading-prompt {
    display: flex;
    gap: 12px;
    margin: 0 16px 14px;
    padding: 13px 14px;
    border: 1.5px solid rgba(26, 20, 16, .14);
    background: rgba(245, 240, 232, .84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 3px 3px 0 rgba(26, 20, 16, .06);
}

.image-loading-prompt-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(196, 83, 58, .1);
    color: var(--rust);
}

.image-loading-prompt-copy {
    min-width: 0;
    flex: 1;
}

.image-loading-prompt-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}

.image-loading-prompt-desc {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(26, 20, 16, .52);
}

.image-loading-prompt-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-loading-prompt-btn {
    border: 1.5px solid rgba(26, 20, 16, .16);
    background: transparent;
    color: var(--ink);
    padding: 8px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
}

.image-loading-prompt-btn.primary {
    border-color: rgba(196, 83, 58, .88);
    background: rgba(196, 83, 58, .9);
    color: #fff;
}

body.dark .image-loading-prompt {
    border-color: rgba(216, 208, 192, .12);
    background: rgba(42, 36, 28, .82);
    box-shadow: none;
}

body.dark .image-loading-prompt-icon {
    background: rgba(196, 83, 58, .14);
}

body.dark .image-loading-prompt-title {
    color: var(--paper);
}

body.dark .image-loading-prompt-desc {
    color: rgba(216, 208, 192, .55);
}

body.dark .image-loading-prompt-btn {
    border-color: rgba(216, 208, 192, .16);
    color: var(--paper);
}

body.dark .image-loading-prompt-btn.primary {
    border-color: rgba(212, 110, 83, .8);
    background: rgba(196, 83, 58, .82);
    color: #fff;
}

@media (max-width: 560px) {
    .journal-guide {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .journal-guide-btn {
        margin-left: 46px;
    }

    .image-loading-prompt {
        align-items: flex-start;
    }
}

/* SWIPE DECK */
.deck-shell {
    position: relative;
}

.deck-wrap {
    position: relative;
    width: 100%;
    height: calc(100vh - 268px);
    min-height: 450px;
    overflow: hidden;
    touch-action: pan-y;
}

.deck-counter {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(26, 20, 16, .3);
    text-align: center;
    padding: 4px 0 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

body.dark .deck-counter {
    color: rgba(216, 208, 192, .3);
}

/* card stack */
.deck-card {
    --deck-base-x: 0px;
    --deck-base-y: 0px;
    --deck-scale: 1;
    --deck-base-rotate: 0deg;
    --deck-drag-x: 0px;
    --deck-drag-rotate: 0deg;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    cursor: grab;
    will-change: transform;
    transition: transform .38s cubic-bezier(.34, 1.1, .64, 1), box-shadow .38s, opacity .3s;
    box-shadow: 0 12px 40px rgba(26, 20, 16, .16), 0 3px 10px rgba(26, 20, 16, .08);
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(var(--deck-base-x) + var(--deck-drag-x))) translateY(var(--deck-base-y)) scale(var(--deck-scale)) rotate(calc(var(--deck-base-rotate) + var(--deck-drag-rotate)));
}

body.dark .deck-card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 3px 10px rgba(0, 0, 0, .25);
}

.deck-card.dragging {
    transition: none;
    cursor: grabbing;
}

.deck-card.leaving-left {
    transform: translateX(-135%) rotate(-14deg) !important;
    opacity: 0;
}

.deck-card.leaving-right {
    transform: translateX(135%) rotate(14deg) !important;
    opacity: 0;
}

.deck-card.behind-1 {
    --deck-base-y: 16px;
    --deck-scale: .94;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(26, 20, 16, .1);
}

.deck-card.behind-2 {
    --deck-base-y: 30px;
    --deck-scale: .88;
    z-index: 0;
    box-shadow: 0 3px 10px rgba(26, 20, 16, .06);
}

.deck-card.front {
    z-index: 10;
}

/* swipe arrows */
.deck-hints {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity .25s;
}

.deck-wrap:hover ~ .deck-hints, .deck-hints:hover {
    opacity: 1;
    pointer-events: all;
}

@media (hover: none) {
    .deck-hints {
        opacity: 1;
        pointer-events: all;
    }
}

.deck-hint {
    width: 42px;
    height: 42px;
    background: rgba(245, 240, 232, .9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(26, 20, 16, .65);
    cursor: pointer;
    pointer-events: all;
    transition: all .15s;
    box-shadow: 0 2px 12px rgba(26, 20, 16, .18);
    -webkit-tap-highlight-color: transparent;
}

.deck-hint:active {
    transform: scale(.86);
    box-shadow: 0 1px 4px rgba(26, 20, 16, .12);
}

body.dark .deck-hint {
    background: rgba(42, 36, 28, .92);
    color: rgba(216, 208, 192, .75);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

/* media area */
.dc-media {
    position: relative;
    flex-shrink: 0;
    height: 50%;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(200, 169, 110, .18), rgba(92, 122, 95, .16));
}

.trip-visual-bg {
    position: absolute;
    inset: 0;
    background-image: var(--trip-visual-image);
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.deck-img {
    inset: -6%;
    background-position: center 42%;
    transform: scale(1.02);
    filter: saturate(1.02) contrast(.96);
}

.deck-emoji-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(200, 169, 110, .22) 0%, rgba(140, 180, 160, .18) 50%, rgba(92, 122, 95, .14) 100%);
}

.deck-emoji-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 35%, rgba(255, 255, 255, .15), transparent 60%);
}

.deck-emoji-bg span {
    position: relative;
    z-index: 1;
}

.deck-emoji-bg .icon-slot {
    width: 84px;
    height: 84px;
}

body.dark .deck-emoji-bg {
    background: linear-gradient(150deg, rgba(168, 126, 62, .15) 0%, rgba(90, 138, 94, .1) 100%);
}

.dc-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(26, 20, 16, .55) 100%);
    pointer-events: none;
    z-index: 1;
}

body.dark .dc-media-overlay {
    background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, .65) 100%);
}

/* cal badge top-left */
.dc-cal {
    position: absolute;
    top: 14px;
    left: 16px;
    background: rgba(245, 240, 232, .96);
    border-radius: 12px;
    padding: 6px 10px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(26, 20, 16, .15);
    z-index: 2;
}

body.dark .dc-cal {
    background: rgba(42, 36, 28, .96);
}

.dc-cal-day {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--rust);
    line-height: 1;
}

.dc-cal-mo {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: .5px;
    color: rgba(26, 20, 16, .5);
    margin-top: 2px;
}

body.dark .dc-cal-mo {
    color: rgba(216, 208, 192, .5);
}

/* continent pill bottom-left (on image) */
.dc-continent {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(26, 20, 16, .68);
    color: rgba(245, 240, 232, .95);
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

/* stars hero bottom-right */
.dc-stars-hero {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: var(--warm);
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    z-index: 2;
}

/* body */
.dc-body {
    padding: 16px 20px 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dc-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.dc-pin {
    font-size: 13px;
}

.dc-country-name {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(26, 20, 16, .45);
    letter-spacing: .5px;
    flex: 1;
}

body.dark .dc-country-name {
    color: rgba(216, 208, 192, .4);
}

.dc-days {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    background: var(--sage);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .5px;
}

.dc-city {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -.5px;
    margin-bottom: 8px;
}

.dc-note {
    font-size: 13px;
    color: rgba(26, 20, 16, .52);
    line-height: 1.7;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

body.dark .dc-note {
    color: rgba(216, 208, 192, .48);
}

.dc-note-empty {
    flex: 1;
}

.dc-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 16px;
    margin-top: auto;
}

.dc-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
    overflow: hidden;
}

.dc-tag {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    color: var(--sage);
    border: 1px solid rgba(92, 122, 95, .4);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: .3px;
}

body.dark .dc-tag {
    border-color: rgba(90, 138, 94, .3);
}

.dc-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: opacity .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.dc-btn:active {
    opacity: .8;
    transform: scale(.96);
}

body.dark .dc-btn {
    background: rgba(216, 208, 192, .15);
    color: var(--ink);
}

body.dark .dc-btn:active {
    background: rgba(216, 208, 192, .25);
}

/* swipe overlay */
.deck-swipe-left, .deck-swipe-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .12s;
    pointer-events: none;
    z-index: 12;
}

.deck-swipe-left {
    left: 0;
    background: linear-gradient(to right, rgba(196, 83, 58, .22), transparent);
}

.deck-swipe-right {
    right: 0;
    background: linear-gradient(to left, rgba(92, 122, 95, .22), transparent);
}

.deck-swipe-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.deck-swipe-left .deck-swipe-label {
    color: var(--rust);
}

.deck-swipe-right .deck-swipe-label {
    color: var(--sage);
}

.deck-card.hint-next .deck-swipe-left,
.deck-card.hint-prev .deck-swipe-right {
    opacity: 1;
}

/* LIST MODE (fallback) */
.cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
    padding-bottom: 90px;
}

.cards.hidden {
    display: none;
}

.deck-section {
    padding-bottom: 80px;
}

.deck-section.hidden {
    display: none;
}

/* CARD in list mode */
.card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    animation: slideUp .4s ease both;
    transition: transform .15s, box-shadow .15s;
}

.card:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

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

.card-img-area {
    width: 100%;
    position: relative;
    aspect-ratio: 8 / 5;
    min-height: 168px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(200, 169, 110, .15), rgba(92, 122, 95, .15));
}

.card-photo {
    inset: -7%;
    background-position: center 40%;
    transform: scale(1.04);
    filter: saturate(1.03) contrast(.96);
}

.card-img-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 20, 16, .08), rgba(26, 20, 16, .18) 52%, rgba(26, 20, 16, .3));
    pointer-events: none;
    z-index: 1;
}

.card-emoji-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26, 20, 16, .82);
    z-index: 0;
}

.card-emoji-bg .icon-slot {
    width: 52px;
    height: 52px;
}

.card-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    border: 2.5px solid var(--rust);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(245, 240, 232, .92);
    color: var(--rust);
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    transform: rotate(8deg);
    z-index: 2;
}

body.dark .card-stamp {
    background: rgba(20, 18, 14, .92);
}

.card-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    z-index: 2;
}

.card-body {
    padding: 12px 16px 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.card-date {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--warm);
    letter-spacing: 1px;
}

.card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(26, 20, 16, .25);
}

body.dark .card-dot {
    background: rgba(216, 208, 192, .25);
}

.card-country {
    font-size: 10px;
    color: rgba(26, 20, 16, .5);
}

body.dark .card-country {
    color: rgba(216, 208, 192, .45);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--ink);
}

.card-note {
    font-size: 13px;
    color: rgba(26, 20, 16, .6);
    line-height: 1.7;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .card-note {
    color: rgba(216, 208, 192, .55);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(26, 20, 16, .15);
}

body.dark .card-footer {
    border-top-color: rgba(216, 208, 192, .12);
}

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

.tag {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--sage);
    border: 1px solid var(--sage);
    padding: 2px 6px;
}

.card-rating {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--warm);
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--ink);
}

.empty-desc {
    font-size: 13px;
    color: rgba(26, 20, 16, .4);
    line-height: 1.6;
}

body.dark .empty-desc {
    color: rgba(216, 208, 192, .4);
}

/* MAP */
#mapView {
    padding-bottom: 0;
    position: fixed;
    inset: 0;
    z-index: 50;
}

.map-view {
    padding-bottom: 0;
}

.map-toolbar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(245, 240, 232, .72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 20, 16, .12), 0 1px 0 rgba(255, 255, 255, .6) inset;
    display: none;
}

#mapView.visible .map-toolbar {
    display: flex;
}

body.dark .map-toolbar {
    background: rgba(28, 24, 20, .72);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

.map-toolbar-left {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    flex: 1;
}

.map-toolbar-left::-webkit-scrollbar {
    display: none;
}

.map-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#leafletMap {
    width: 100%;
    height: 100vh;
    display: block;
}

.map-style-btn {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid rgba(26, 20, 16, .18);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    color: rgba(26, 20, 16, .7);
    transition: all .15s;
    margin-right: 4px;
}

body.dark .map-style-btn {
    border-color: rgba(216, 208, 192, .2);
    color: rgba(216, 208, 192, .7);
}

.map-style-btn.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.route-toggle-btn {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid var(--rust);
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    color: var(--rust);
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

body.dark .route-toggle-btn {
    border-color: var(--rust);
    color: var(--rust);
}

.route-toggle-btn.off {
    opacity: .4;
}

.map-count {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(26, 20, 16, .55);
    display: inline-flex;
    align-items: center;
}

body.dark .map-count {
    color: rgba(216, 208, 192, .5);
}

.leaflet-container {
    font-family: 'Noto Serif SC', serif !important;
}

.custom-pin {
    background: none !important;
    border: none !important;
}

.pin-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(2px 3px 4px rgba(26, 20, 16, .35));
    transition: transform .2s;
}

.pin-wrap:hover {
    transform: translateY(-3px);
}

.pin-body {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
}

.pin-body.has-photo {
    background: none;
    overflow: hidden;
}

.pin-body.has-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(45deg) scale(1.5);
}

.pin-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(45deg) scale(1.5);
}

.pin-emoji {
    transform: rotate(45deg);
    display: block;
    line-height: 1;
}

.pin-emoji .icon-slot {
    width: 16px;
    height: 16px;
}

.pin-tail {
    width: 2px;
    height: 6px;
    background: var(--ink);
    margin-top: -1px;
}

.leaflet-popup-content-wrapper {
    background: var(--paper) !important;
    border: 1.5px solid var(--ink) !important;
    border-radius: 2px !important;
    box-shadow: 4px 4px 0 var(--ink) !important;
    padding: 0 !important;
}

.leaflet-popup-tip-container {
    display: none !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.pop-inner {
    padding: 14px 16px;
    min-width: 160px;
}

.pop-photo {
    width: 100%;
    height: 90px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 1px;
    display: block;
}

.pop-emoji {
    margin-bottom: 6px;
    color: var(--ink);
}

.pop-emoji .icon-slot {
    width: 26px;
    height: 26px;
}

.pop-city {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.pop-country {
    font-size: 11px;
    color: rgba(26, 20, 16, .5);
    margin-bottom: 6px;
}

.pop-date {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: 1px;
}

.pop-rating {
    font-size: 13px;
    color: var(--warm);
    margin-top: 3px;
}

.pop-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.pop-btn:active {
    opacity: .8;
}

.pop-cluster-title {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pop-cluster-list {
    font-size: 13px;
    line-height: 1.8;
}

.pop-cluster-more {
    font-size: 10px;
    color: rgba(26, 20, 16, .4);
    margin-top: 4px;
}

body.dark .pop-cluster-more {
    color: rgba(216, 208, 192, .38);
}

.pop-btn-spaced {
    margin-top: 10px;
}

/* cluster pins */
.cluster-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(2px 3px 4px rgba(26, 20, 16, .35));
}

.cluster-body {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.cluster-body-num {
    transform: rotate(45deg);
    display: block;
}

.route-arrow {
    background: none !important;
    border: none !important;
}

.route-arrow-glyph {
    color: var(--rust);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

/* detail button on deck card */

/* map legend dark */
body.dark .map-legend {
    color: rgba(216, 208, 192, .5) !important;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-pin {
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    background: var(--rust);
    transform: rotate(-45deg);
    border: 1px solid var(--ink);
    flex-shrink: 0;
}

/* STATS — compact panel layout */
#statsView {
    padding: 12px 12px 104px;
}

#statsContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-hero {
    padding: 14px;
    background: linear-gradient(145deg, rgba(196, 83, 58, .92) 0%, rgba(196, 83, 58, .74) 55%, rgba(143, 72, 52, .9) 100%);
    color: white;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.sv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .12), transparent 54%);
    pointer-events: none;
}

.sv-hero-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sv-hero-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.sv-hero-note {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.4;
}

.sv-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: relative;
    z-index: 1;
}

.sv-metric {
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sv-metric-num {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.sv-metric-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-top: 4px;
}

.sv-avg-rating {
    flex-shrink: 0;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    line-height: 1;
}

.sv-avg-rating span {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, .72);
    margin-left: 4px;
    vertical-align: middle;
}

.sv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.sv-section {
    padding: 12px;
    border: 1.5px solid rgba(26, 20, 16, .12);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 3px 3px 0 rgba(26, 20, 16, .06);
}

.sv-section-title {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(26, 20, 16, .38);
    margin-bottom: 10px;
}

body.dark .sv-section {
    border-color: rgba(216, 208, 192, .1);
    box-shadow: none;
}

body.dark .sv-section-title {
    color: rgba(216, 208, 192, .35);
}

.sv-continent-grid,
.sv-year-bars,
.sv-rating-list,
.sv-top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sv-continent-item,
.sv-year-col,
.sv-rating-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sv-continent-bar-wrap,
.sv-year-bar-wrap,
.sv-rating-bar-wrap {
    width: 100%;
}

.sv-continent-bar,
.sv-year-bar,
.sv-rating-bar {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(26, 20, 16, .08);
}

body.dark .sv-continent-bar,
body.dark .sv-year-bar,
body.dark .sv-rating-bar {
    background: rgba(216, 208, 192, .08);
}

.sv-continent-num,
.sv-meter-value,
.sv-rating-count {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink);
}

.sv-continent-lbl,
.sv-year-lbl,
.sv-meter-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: .7px;
    color: rgba(26, 20, 16, .44);
}

body.dark .sv-continent-lbl,
body.dark .sv-year-lbl,
body.dark .sv-meter-label {
    color: rgba(216, 208, 192, .4);
}

.sv-meter-meta,
.sv-rating-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sv-rating-stars {
    font-size: 10px;
    color: var(--warm);
    letter-spacing: 1px;
}

.sv-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sv-top-rank {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--rust);
    width: 12px;
    flex-shrink: 0;
}

.sv-top-name {
    flex: 1;
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-top-count {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    color: rgba(26, 20, 16, .4);
}

body.dark .sv-top-count {
    color: rgba(216, 208, 192, .4);
}

.sv-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sv-tag-chip {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--sage);
    border: 1px solid rgba(92, 122, 95, .24);
    padding: 4px 8px;
    border-radius: 999px;
    cursor: default;
    transition: background .15s;
}

.sv-tag-chip sup {
    font-size: 7px;
    color: rgba(92, 122, 95, .5);
    margin-left: 2px;
}

body.dark .sv-tag-chip {
    border-color: rgba(90, 138, 94, .25);
}

.sv-empty-text {
    font-size: 12px;
    color: rgba(26, 20, 16, .45);
    line-height: 1.5;
}

body.dark .sv-empty-text {
    color: rgba(216, 208, 192, .45);
}

@media (min-width: 760px) {
    .sv-hero-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sv-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-section--full {
        grid-column: 1 / -1;
    }
}

.sv-continent-bar::-webkit-progress-bar,
.sv-year-bar::-webkit-progress-bar,
.sv-rating-bar::-webkit-progress-bar {
    background: rgba(26, 20, 16, .08);
    border-radius: 999px;
}

.sv-continent-bar::-moz-progress-bar,
.sv-year-bar::-moz-progress-bar,
.sv-rating-bar::-moz-progress-bar {
    background: var(--warm);
    border-radius: 999px;
}

.sv-continent-bar::-webkit-progress-value,
.sv-year-bar::-webkit-progress-value,
.sv-rating-bar::-webkit-progress-value {
    background: var(--warm);
    border-radius: 999px;
}

.sv-continent-bar--rust::-webkit-progress-value,
.sv-continent-bar--rust::-moz-progress-bar {
    background: var(--rust);
}

.sv-continent-bar--sage::-webkit-progress-value,
.sv-continent-bar--sage::-moz-progress-bar {
    background: var(--sage);
}

.sv-continent-bar--mist::-webkit-progress-value,
.sv-continent-bar--mist::-moz-progress-bar {
    background: var(--mist);
}

.sv-continent-bar--accent::-webkit-progress-value,
.sv-continent-bar--accent::-moz-progress-bar {
    background: #9b7ec8;
}

.sv-continent-bar--amber::-webkit-progress-value,
.sv-continent-bar--amber::-moz-progress-bar {
    background: #c4843a;
}

.sv-continent-bar--neutral::-webkit-progress-value,
.sv-continent-bar--neutral::-moz-progress-bar {
    background: rgba(26, 20, 16, .35);
}

.sv-rating-bar::-webkit-progress-value,
.sv-rating-bar::-moz-progress-bar {
    background: var(--warm);
}

/* keep old bar classes for any leftover use */
.bar-fill {
    height: 100%;
    width: 0;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.f-rust {
    background: var(--rust)
}

.f-warm {
    background: var(--warm)
}

.f-sage {
    background: var(--sage)
}

.f-mist {
    background: var(--mist)
}

/* FAB */
/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, .6);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 20px 20px 40px;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(26, 20, 16, .2);
    border-radius: 2px;
    margin: 0 auto 20px;
}

body.dark .modal-handle {
    background: rgba(216, 208, 192, .15);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ink);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(26, 20, 16, .5);
    display: block;
    margin-bottom: 6px;
}

body.dark .form-label {
    color: rgba(216, 208, 192, .4);
}

.form-input {
    width: 100%;
    border: 1.5px solid var(--ink);
    background: var(--card-bg);
    padding: 10px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: var(--ink);
    border-radius: 2px;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, .15);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emoji-opt {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(26, 20, 16, .2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--card-bg);
    transition: all .15s;
    appearance: none;
    color: var(--ink);
}

body.dark .emoji-opt {
    border-color: rgba(216, 208, 192, .15);
}

.emoji-opt.selected {
    border-color: var(--rust);
    background: rgba(196, 83, 58, .08);
    box-shadow: 2px 2px 0 var(--rust);
}

.rating-picker {
    display: flex;
    gap: 8px;
}

.star {
    font-size: 24px;
    cursor: pointer;
    opacity: .3;
    transition: opacity .15s, transform .15s;
    color: var(--warm);
}

.star.active {
    opacity: 1;
}

.star:active {
    transform: scale(1.3);
}

.photo-upload-area {
    width: 100%;
    height: 100px;
    border: 2px dashed rgba(26, 20, 16, .2);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

body.dark .photo-upload-area {
    border-color: rgba(216, 208, 192, .2);
}

.photo-upload-area:active {
    border-color: var(--warm);
}

.photo-upload-area img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(26, 20, 16, .4);
    letter-spacing: 1px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

body.dark .photo-upload-label {
    color: rgba(216, 208, 192, .35);
}

.photo-upload-icon {
    margin-bottom: 4px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: var(--rust);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.photo-upload-area.has-photo .photo-remove {
    display: flex;
}

.photo-upload-area.has-photo .photo-upload-label, .photo-upload-area.has-photo .photo-upload-icon {
    display: none;
}

.photo-input-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--warm);
    transition: opacity .2s, transform .1s;
}

.btn-submit:active {
    opacity: .85;
    transform: translate(1px, 1px);
}

/* DETAIL */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 250;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}

.detail-overlay.open {
    transform: translateX(0);
}

.detail-hero {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid var(--ink);
    overflow: hidden;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 169, 110, .2), rgba(92, 122, 95, .2));
}

.detail-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-photo + .detail-hero-emoji {
    display: none;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, .4), transparent);
}

.detail-hero-emoji {
    position: relative;
    z-index: 1;
    color: rgba(26, 20, 16, .82);
}

.detail-hero-emoji .icon-slot {
    width: 88px;
    height: 88px;
}

.detail-hero-actions {
    position: absolute;
    top: 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 2;
}

.detail-action-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--ink);
    background: rgba(245, 240, 232, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
    transition: all .15s;
}

body.dark .detail-action-btn {
    background: rgba(30, 26, 22, .9);
    border-color: rgba(216, 208, 192, .3);
}

.detail-action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

.detail-action-btn.danger {
    border-color: var(--rust);
    box-shadow: 2px 2px 0 var(--rust);
    color: var(--rust);
}

.detail-action-row {
    display: flex;
    gap: 8px;
}

.detail-content {
    padding: 24px 20px 60px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--ink);
}

.detail-subtitle {
    font-size: 13px;
    color: rgba(26, 20, 16, .5);
    font-style: italic;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

body.dark .detail-subtitle {
    color: rgba(216, 208, 192, .45);
}

.detail-divider {
    border: none;
    border-top: 1px dashed rgba(26, 20, 16, .2);
    margin: 20px 0;
}

body.dark .detail-divider {
    border-top-color: rgba(216, 208, 192, .12);
}

.detail-note {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(26, 20, 16, .8);
    font-weight: 300;
    white-space: pre-wrap;
}

body.dark .detail-note {
    color: rgba(216, 208, 192, .8);
}

.detail-info-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.info-box {
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 12px;
    box-shadow: 3px 3px 0 rgba(26, 20, 16, .1);
}

body.dark .info-box {
    box-shadow: none;
}

.info-box-label {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(26, 20, 16, .4);
    margin-bottom: 6px;
}

body.dark .info-box-label {
    color: rgba(216, 208, 192, .4);
}

.info-box-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

/* SHARE CARD */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 16, .7);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    padding: 20px;
}

.share-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.share-modal {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--ink);
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    transform: scale(.92);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.share-modal-overlay.open .share-modal {
    transform: scale(1);
}

.share-card-hero {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.share-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, .5), transparent);
}

.share-card-emoji {
    position: relative;
    z-index: 1;
    color: rgba(26, 20, 16, .82);
}

.share-card-hero.has-photo .share-card-emoji {
    display: none;
}

.share-card-emoji .icon-slot {
    width: 64px;
    height: 64px;
}

.share-card-body {
    padding: 16px 20px 20px;
}

.share-card-city {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.share-card-meta {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(26, 20, 16, .5);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

body.dark .share-card-meta {
    color: rgba(216, 208, 192, .45);
}

.share-card-note {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(26, 20, 16, .7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

body.dark .share-card-note {
    color: rgba(216, 208, 192, .7);
}

.share-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed rgba(26, 20, 16, .15);
}

body.dark .share-card-footer {
    border-top-color: rgba(216, 208, 192, .12);
}

.share-card-rating {
    font-size: 14px;
    color: var(--warm);
}

.share-card-brand {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-style: italic;
    color: rgba(26, 20, 16, .4);
}

body.dark .share-card-brand {
    color: rgba(216, 208, 192, .35);
}

.share-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(26, 20, 16, .1);
}

body.dark .share-actions {
    border-top-color: rgba(216, 208, 192, .1);
}

.share-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--ink);
    background: var(--card-bg);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all .15s;
    color: var(--ink);
}

.share-btn.primary {
    background: var(--ink);
    color: var(--paper);
}

.share-btn:active {
    opacity: .8;
}

/* TIMELINE */
#timelineView {
    padding: 16px 16px 90px;
}

.tl-year-block {
    margin-bottom: 32px;
}

.tl-year-label {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--rust);
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tl-year-label::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--rust), transparent);
}

.timeline-empty {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(26, 20, 16, .4);
    font-size: 16px;
}

body.dark .timeline-empty {
    color: rgba(216, 208, 192, .35);
}

.tl-item {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    animation: slideUp .4s ease both;
}

.tl-dot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rust);
    border: 2px solid var(--ink);
    flex-shrink: 0;
}

.tl-line {
    width: 2px;
    flex: 1;
    background: rgba(26, 20, 16, .12);
    margin-top: 4px;
}

body.dark .tl-line {
    background: rgba(216, 208, 192, .1);
}

.tl-card {
    flex: 1;
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--ink);
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.tl-card:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.tl-card-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.tl-card-emoji {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 169, 110, .15), rgba(92, 122, 95, .15));
}

.tl-card-emoji .icon-slot {
    width: 40px;
    height: 40px;
}

body.dark .tl-card-emoji {
    background: linear-gradient(135deg, rgba(184, 146, 74, .1), rgba(106, 154, 110, .1));
}

.tl-card-body {
    padding: 10px 12px 12px;
}

.tl-card-date {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tl-card-city {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ink);
}

.tl-card-meta {
    font-size: 11px;
    color: rgba(26, 20, 16, .5);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

body.dark .tl-card-meta {
    color: rgba(216, 208, 192, .45);
}

.tl-card-days {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    background: var(--sage);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

.tl-card-tags {
    color: var(--sage);
}

/* WISHLIST */
#wishView {
    padding: 0;
    padding-bottom: 110px;
}

.wish-tabs {
    display: flex;
    border-bottom: 1.5px solid rgba(26, 20, 16, .1);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 5;
}

body.dark .wish-tabs {
    border-bottom-color: rgba(216, 208, 192, .1);
}

.wish-tab {
    flex: 1;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 8px;
    border: none;
    background: none;
    color: rgba(26, 20, 16, .4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all .2s;
}

body.dark .wish-tab {
    color: rgba(216, 208, 192, .4);
}

.wish-tab.active {
    color: var(--ink);
    border-bottom-color: var(--rust);
}

.wish-add {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.wish-add input {
    flex: 1;
    border: 1.5px solid var(--ink);
    background: var(--card-bg);
    padding: 10px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: var(--ink);
    border-radius: 2px;
    outline: none;
}

.wish-add input::placeholder {
    color: rgba(26, 20, 16, .3);
}

body.dark .wish-add input::placeholder {
    color: rgba(216, 208, 192, .25);
}

.wish-add input:focus {
    border-color: var(--warm);
}

.wish-add-btn {
    padding: 0 16px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--warm);
}

.wish-add-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--warm);
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-item {
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--ink);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp .3s ease both;
}

.wish-emoji {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-emoji .icon-slot {
    width: 28px;
    height: 28px;
}

.wish-info {
    flex: 1;
    min-width: 0;
}

.wish-city {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}

.wish-country {
    font-size: 11px;
    color: rgba(26, 20, 16, .5);
}

body.dark .wish-country {
    color: rgba(216, 208, 192, .45);
}

.wish-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wish-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all .15s;
}

.wish-btn.done {
    border-color: var(--sage);
    color: var(--sage);
}

.wish-btn.done:active {
    background: var(--sage);
    color: white;
}

.wish-btn.del {
    border-color: var(--rust);
    color: var(--rust);
}

.wish-btn.del:active {
    background: var(--rust);
    color: white;
}

.wish-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(26, 20, 16, .4);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 16px;
}

body.dark .wish-empty {
    color: rgba(216, 208, 192, .35);
}

.wish-tab-panel-pad {
    padding: 16px;
}

/* recommend & plan */
.wish-rec-hint {
    font-size: 13px;
    color: rgba(26, 20, 16, .5);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

body.dark .wish-rec-hint {
    color: rgba(216, 208, 192, .45);
}

.wish-rec-btn {
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--warm);
    transition: opacity .2s, transform .1s;
    margin-bottom: 20px;
}

.wish-rec-btn:active {
    opacity: .85;
    transform: translate(1px, 1px);
}

.wish-rec-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.wish-plan-form {
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 3px 3px 0 var(--ink);
}

.wish-plan-row {
    margin-bottom: 12px;
}

.wish-plan-select, .wish-plan-input {
    width: 100%;
    border: 1.5px solid rgba(26, 20, 16, .2);
    background: var(--input-bg);
    padding: 10px 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: var(--ink);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

body.dark .wish-plan-select, body.dark .wish-plan-input {
    border-color: rgba(216, 208, 192, .2);
}

.wish-plan-select:focus, .wish-plan-input:focus {
    border-color: var(--warm);
}

/* AI result cards */
.ai-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--ink);
    padding: 16px;
    margin-bottom: 12px;
    animation: slideUp .3s ease both;
}

.ai-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.ai-card-sub {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ai-card-body {
    font-size: 13px;
    color: rgba(26, 20, 16, .65);
    line-height: 1.75;
}

.ai-card-body-error {
    color: var(--rust);
}

body.dark .ai-card-body {
    color: rgba(216, 208, 192, .6);
}

.ai-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(26, 20, 16, .1);
}

body.dark .ai-card-actions {
    border-top-color: rgba(216, 208, 192, .1);
}

.ai-card-btn {
    flex: 1;
    padding: 8px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all .15s;
}

.ai-card-btn.primary {
    background: var(--ink);
    color: var(--paper);
}

.ai-card-btn:active {
    opacity: .8;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: rgba(26, 20, 16, .4);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

body.dark .ai-loading {
    color: rgba(216, 208, 192, .4);
}

.ai-plan-section {
    margin-bottom: 16px;
}

.ai-plan-day {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--rust);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(196, 83, 58, .2);
}

.ai-plan-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
}

.ai-plan-note {
    color: rgba(26, 20, 16, .5);
    font-size: 12px;
}

.ai-plan-tips {
    margin-top: 12px;
    padding: 12px;
    background: rgba(200, 169, 110, .1);
    border-radius: 2px;
    font-size: 12px;
    color: rgba(26, 20, 16, .6);
    line-height: 1.7;
}

/* ── AI WISH FORMS (mobile-first) ── */
.wf-page {
    padding: 20px 16px 24px;
}

.wf-hint {
    font-size: 13px;
    color: rgba(26, 20, 16, .5);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

body.dark .wf-hint {
    color: rgba(216, 208, 192, .45);
}

.wf-field {
    margin-bottom: 20px;
}

.wf-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(26, 20, 16, .5);
    margin-bottom: 8px;
    text-transform: uppercase;
}

body.dark .wf-label {
    color: rgba(216, 208, 192, .45);
}

.wf-input {
    width: 100%;
    border: 1.5px solid rgba(26, 20, 16, .15);
    background: var(--card-bg);
    padding: 14px 16px;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    color: var(--ink);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.wf-input:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, .12);
}

body.dark .wf-input {
    border-color: rgba(216, 208, 192, .15);
    background: rgba(255, 255, 255, .04);
}

body.dark .wf-input:focus {
    border-color: var(--warm);
}

.wf-input::placeholder {
    color: rgba(26, 20, 16, .28);
    font-size: 14px;
}

body.dark .wf-input::placeholder {
    color: rgba(216, 208, 192, .25);
}

.wf-input-lg {
    font-size: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    font-weight: 600;
}

.wf-days-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wf-day-chip {
    padding: 13px 0;
    flex: 1;
    background: var(--card-bg);
    border: 1.5px solid rgba(26, 20, 16, .15);
    border-radius: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: rgba(26, 20, 16, .6);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

body.dark .wf-day-chip {
    border-color: rgba(216, 208, 192, .15);
    color: rgba(216, 208, 192, .55);
}

.wf-day-chip.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.wf-day-chip:active {
    transform: scale(.94);
}

.wf-days-custom {
    flex: 1.2;
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 12px;
}

.wf-style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wf-style-chip {
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1.5px solid rgba(26, 20, 16, .12);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(26, 20, 16, .65);
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

body.dark .wf-style-chip {
    border-color: rgba(216, 208, 192, .12);
    color: rgba(216, 208, 192, .6);
}

.wf-style-chip.active {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

.wf-style-chip:active {
    transform: scale(.94);
}

.wf-hint-btn {
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--warm);
    letter-spacing: .5px;
    cursor: pointer;
    padding: 6px 0;
    display: block;
}

.wf-config-wrap {
    border: 1.5px solid rgba(26, 20, 16, .1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

body.dark .wf-config-wrap {
    border-color: rgba(216, 208, 192, .12);
}

.wf-config-toggle {
    width: 100%;
    padding: 14px 16px;
    background: rgba(26, 20, 16, .02);
    border: none;
    text-align: left;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(26, 20, 16, .45);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

body.dark .wf-config-toggle {
    background: rgba(216, 208, 192, .03);
    color: rgba(216, 208, 192, .4);
}

.wf-arrow {
    font-size: 11px;
    transition: transform .2s;
}

.wf-arrow.rotated {
    transform: rotate(180deg);
}

.wf-config-body {
    padding: 16px;
    border-top: 1px solid rgba(26, 20, 16, .08);
    display: none;
}

body.dark .wf-config-body {
    border-top-color: rgba(216, 208, 192, .08);
}

.wf-config-body.open {
    display: block;
}

.wf-key-wrap {
    position: relative;
}

.wf-key-wrap .wf-input {
    padding-right: 48px;
}

.wf-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: .4;
    transition: opacity .15s;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.wf-eye:active {
    opacity: .9;
}

.wf-eye.is-visible {
    opacity: .9;
}

.plan-dest-select-wrap {
    margin-top: 8px;
}

.wf-input-top-gap {
    margin-top: 8px;
}

.wf-hint-sm {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: rgba(26, 20, 16, .38);
    margin-top: 6px;
    letter-spacing: .3px;
    line-height: 1.5;
}

body.dark .wf-hint-sm {
    color: rgba(216, 208, 192, .35);
}

.wf-hint-sm a {
    color: var(--warm);
    text-decoration: none;
}

.wf-submit {
    width: 100%;
    padding: 16px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 14px;
    transition: opacity .2s, transform .1s;
    margin-bottom: 4px;
    -webkit-tap-highlight-color: transparent;
}

.wf-submit:active {
    opacity: .85;
    transform: scale(.98);
}

.wf-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

body.dark .wf-submit {
    background: rgba(216, 208, 192, .14);
    color: var(--ink);
}

/* field badges */
.field-badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: .5px;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
    font-weight: 700;
}

.field-badge.required {
    background: rgba(196, 83, 58, .12);
    color: var(--rust);
}

.field-badge.optional {
    background: rgba(26, 20, 16, .06);
    color: rgba(26, 20, 16, .38);
}

body.dark .field-badge.required {
    background: rgba(196, 83, 58, .2);
    color: var(--rust);
}

body.dark .field-badge.optional {
    background: rgba(216, 208, 192, .08);
    color: rgba(216, 208, 192, .38);
}

/* legacy */
.ai-config-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(26, 20, 16, .4);
    margin-bottom: 5px;
    text-transform: uppercase;
}

body.dark .ai-config-label {
    color: rgba(216, 208, 192, .4);
}

/* ai-plan note dark */
body.dark .ai-plan-note {
    color: rgba(216, 208, 192, .45) !important;
}

body.dark .ai-plan-item strong {
    color: var(--ink);
}

body.dark .ai-plan-tips {
    background: rgba(168, 126, 62, .1) !important;
    color: rgba(216, 208, 192, .6) !important;
}

/* BOTTOM NAV — liquid glass, all screens */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    background: rgba(245, 240, 232, .32);
    backdrop-filter: blur(36px) saturate(210%);
    -webkit-backdrop-filter: blur(36px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 32px;
    display: flex;
    z-index: 1100;
    box-shadow: 0 20px 60px rgba(26, 20, 16, .07),
    0 4px 12px rgba(26, 20, 16, .04),
    0 1px 0 rgba(255, 255, 255, .85) inset;
    padding: 6px 10px;
    gap: 0;
}

body.dark .bottom-nav {
    background: rgba(28, 24, 20, .32);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .09) inset;
}

/* side nav — desktop only (hidden by default, shown via media query) */
.side-nav {
    display: none;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px 8px;
    cursor: pointer;
    border: none;
    background: none;
    color: rgba(26, 20, 16, .4);
    gap: 3px;
    transition: all .2s;
    border-radius: 20px;
}

body.dark .nav-item {
    color: rgba(216, 208, 192, .4);
}

.nav-item.active {
    color: var(--rust);
    background: rgba(196, 83, 58, .1);
}

body.dark .nav-item.active {
    background: rgba(196, 83, 58, .15);
}

.nav-item:active {
    transform: scale(.92);
}

.nav-icon {
    line-height: 0;
}

.nav-label {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.map-loading.show {
    display: flex;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(196, 83, 58, .2);
    border-top-color: var(--rust);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(26, 20, 16, .5);
}

body.dark .loading-text {
    color: rgba(216, 208, 192, .4);
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 16, 12, .92);
    color: #f0ebe0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .18);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1500;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

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

/* HAPTIC pulse on add button */
@keyframes pulse {
    0% {
        box-shadow: 0 6px 18px rgba(196, 83, 58, .22), 0 0 0 0 rgba(196, 83, 58, .35);
    }
    70% {
        box-shadow: 0 6px 18px rgba(196, 83, 58, .22), 0 0 0 12px rgba(196, 83, 58, 0);
    }
    100% {
        box-shadow: 0 6px 18px rgba(196, 83, 58, .22), 0 0 0 0 rgba(196, 83, 58, 0);
    }
}

.btn-icon--add.pulse {
    animation: pulse .6s ease;
}
