    .help-btn { border: 1px solid #ccc; background: #fff; color: #555; width: 28px; height: 28px;
      border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
    #helpOverlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.45);
      display: none; align-items: center; justify-content: center; padding: 16px; }
    #helpOverlay.open { display: flex; }
    #helpBox { background: #fff; border-radius: 14px; max-width: 460px; width: 100%;
      max-height: 85vh; overflow: auto; padding: 20px 22px; }
    #helpBox h2 { margin: 0 0 4px; font-size: 18px; }
    #helpBox .help-intro { color: #666; font-size: 13px; margin: 0 0 14px; }
    #helpBox .help-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #f0f0f0; }
    #helpBox .help-item .hi-ico { flex: none; font-size: 16px; width: 22px; text-align: center; }
    #helpBox .help-item .hi-body { font-size: 14px; line-height: 1.45; }
    #helpBox .help-item .hi-title { font-weight: 600; }
    #helpBox .help-item .hi-text { color: #555; }
    #helpClose { margin-top: 16px; width: 100%; height: 38px; border: 0; border-radius: 8px;
      background: #2b6cb0; color: #fff; font-size: 14px; cursor: pointer; }
    .attribution a { color: #999; }
    .attribution a:hover { color: #666; }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: system-ui, sans-serif; display: flex; height: 100vh; overflow: hidden; }
    #panel { width: 380px; display: flex; flex-direction: column; border-right: 1px solid #ddd; min-height: 0; }

    #header { display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px; border-bottom: 1px solid #eee; }
    #header .title { font-size: 16px; font-weight: 600; }
    .head-right { display: flex; align-items: center; gap: 10px; }
    .count-pill { font-size: 12px; color: #555; background: #f1f3f5; border-radius: 999px; padding: 2px 10px; }
    .lang-switch { display: flex; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; }
    .lang-switch button { border: 0; background: #fff; color: #555; font-size: 12px; font-weight: 600;
      padding: 4px 9px; cursor: pointer; }
    .lang-switch button.active { background: #2b6cb0; color: #fff; }

    #topbar { display: flex; gap: 6px; align-items: center; padding: 10px 14px 0; }
    #topbar input { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; }
    #filterBtn { position: relative; display: none; align-items: center; justify-content: center; width: 40px; height: 38px;
      border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; color: #444; }
    #filterBtn.filtered::after {
      content: ''; position: absolute; top: 4px; right: 4px;
      width: 8px; height: 8px; border-radius: 50%; background: #e03131;
    }

    #controls { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
    .section-label { font-size: 12px; color: #888; margin-bottom: 6px; }
    #countriesSection { border: 1px solid #ddd; border-radius: 8px; background: #f8f9fa; overflow: hidden; }
    .section-label.collapsible { cursor: pointer; display: flex; align-items: center; user-select: none; padding: 8px 12px; margin-bottom: 0; background: #f8f9fa; min-height: 40px; justify-content: space-between; transition: background 0.15s; }
    .section-label.collapsible:hover { background: #edf0f3; }
    .section-label.collapsible::after { content: '▸'; font-size: 18px; margin-left: auto; transition: transform 0.2s; display: inline-block; }
    .section-label.collapsible.open::after { transform: rotate(90deg); }
    #countries.collapsed { display: none; }
    #countries { padding: 0 12px 10px; }
    #countrySummary { font-size: 11px; color: #666; margin-left: 8px; font-weight: 400; background: #e9ecef; border-radius: 10px; padding: 1px 8px; }
    #controls input[type=text] { padding: 8px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; width: 100%; }
    .row { display: flex; gap: 8px; align-items: center; }
    .btn { height: 36px; border: 0; border-radius: 8px; background: #2b6cb0; color: #fff; cursor: pointer;
      font-size: 14px; padding: 0 14px; }
    .btn:hover { background: #24598f; }
    .btn-wide { width: 100%; height: 36px; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-size: 14px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .btn-row { display: flex; gap: 8px; }
    .btn-row .btn-wide { flex: 1; min-width: 0; }

    #filterTop { display: none; align-items: center; justify-content: space-between; }
    #filterTop .ft-title { font-size: 16px; font-weight: 600; }
    #filterClose { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #555; }

    .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top:10px }
    .chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1.5px solid #ccc;
      background: #fff; color: #555; cursor: pointer; user-select: none; }
    .chip.active { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }

    .diff-chips { display: flex; gap: 6px; flex-wrap: wrap; }
    .diff-chip { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; user-select: none;
      border: 1.5px solid transparent; opacity: .28; }
    .diff-chip.active { opacity: 1; }
    .q-chip { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 600; cursor: pointer; user-select: none;
      border: 1.5px solid #ccc; background: #fff; color: #888; opacity: .45; }
    .q-chip.active { opacity: 1; background: #495057; color: #fff; border-color: #495057; }

    .time-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
    .time-val { font-size: 13px; font-weight: 600; color: #333; }
    #hours { width: 100%; }

    #status { font-size: 12px; color: #666; min-height: 16px; }

    #sheet { flex: 1; display: flex; flex-direction: column; min-height: 0; }
    #sheetGrip, #sheetHead { display: none; }
    #list { flex: 1; overflow-y: auto; padding: 4px 0; }
    .item { padding: 9px 10px; margin: 3px 8px; border-radius: 8px; cursor: pointer;
      display: flex; align-items: center; gap: 10px; }
    .item:hover { background: #f1f5f9; }
    .item.closed { opacity: .5; }
    .badge { flex: none; width: 28px; height: 28px; border-radius: 7px; color: #fff; font-weight: 700;
      font-size: 12px; display: flex; align-items: center; justify-content: center; }
    .meta { flex: 1; min-width: 0; }
    .meta .name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .meta .sub { font-size: 12px; color: #888; }

    #map { flex: 1; }
    .popup-link { display: inline-block; margin-top: 6px; }

    @media (max-width: 760px), (max-height: 500px) {
      .leaflet-top.leaflet-left { margin-top: 52px; }
      .leaflet-top.leaflet-right { margin-top: 52px; }
      body { display: block; height: 100vh; }
      #panel { display: contents; }
      #map { position: fixed; inset: 0; z-index: 0; }
      #header { display: none; }

      #topbar { position: fixed; top: 8px; left: 8px; right: 8px; z-index: 1000; padding: 0; }
      #topbar input { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); border-color: #ddd; }
      #filterBtn { display: flex; box-shadow: 0 1px 6px rgba(0,0,0,.15); }

      #controls { position: fixed; inset: 0; z-index: 1100; background: #fff; overflow: auto;
        padding: 14px 16px 24px; transform: translateY(-110%);
        transition: transform .25s ease; }
      #controls.open { transform: none; }
      #filterTop { display: flex; }

      #sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: 85vh;
        background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -2px 14px rgba(0,0,0,.12);
        transition: transform .25s ease; display: flex; flex-direction: column; }
      #sheetGrip { display: flex; justify-content: center; padding: 8px 0 4px; cursor: grab; touch-action: none; }
      #sheetGrip .grip { width: 36px; height: 4px; border-radius: 2px; background: #ccc; }
      #sheetHead { display: flex; align-items: center; justify-content: space-between;
        padding: 0 14px 8px; cursor: grab; touch-action: none; }
      #sheetHead .sh-title { font-size: 14px; font-weight: 600; }
      #list { max-height: none; }
      .mapy-logo { position: fixed !important; top: calc(52px + env(safe-area-inset-top)); left: 44px; z-index: 1001; }
      .leaflet-control-attribution { position: fixed !important; bottom: calc(64px + env(safe-area-inset-bottom)); right: 0; z-index: 1001; }
    }
    @media (max-height: 500px) {
      #sheet { height: 92vh; }
    }
    #busy { position: fixed; inset: 0; z-index: 3000; background: rgba(255,255,255,.7);
      backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; }
    #busy.open { display: flex; }
    #busyBox { background: #fff; border-radius: 14px; padding: 22px 26px; box-shadow: 0 4px 20px rgba(0,0,0,.15);
      display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 80%; }
    #busySpinner { width: 38px; height: 38px; border: 4px solid #e2e8f0; border-top-color: #2b6cb0;
      border-radius: 50%; animation: spin .8s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    #busyText { font-size: 14px; color: #333; text-align: center; }
    .wx { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; font-size: 12px; color: #444; }
    .wx-now { display: flex; align-items: center; gap: 6px; font-size: 13px; }
    .wx-now .wx-t { font-weight: 600; }
    .wx-days { display: flex; gap: 12px; margin-top: 4px; color: #555; }
    .wx-day b { color: #333; }
    .wx-loading { color: #999; font-style: italic; }
    .leaflet-bottom { padding-bottom: env(safe-area-inset-bottom); }
    .leaflet-control-layers { border-radius: 10px; }
    .leaflet-control-layers-toggle { width: 38px; height: 38px; background-size: 22px 22px; }
    .leaflet-control-layers:not(.leaflet-control-layers-expanded) { opacity: .85; }
    .photo-grid { display: flex; gap: 4px; margin-top: 8px; }
    .photo-grid a { flex: 1; min-width: 0; }
    .photo-grid img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
    .photo-links { margin-top: 4px; display: flex; gap: 12px; font-size: 12px; }
    .photo-grid a { cursor: pointer; }
    #lightbox {
      display: none; position: fixed; inset: 0; z-index: 3000;
      background: rgba(0,0,0,.85);
      align-items: center; justify-content: center; flex-direction: column; gap: 10px;
    }
    #lightbox.open { display: flex; }
    #lightboxImg { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
    #lightboxClose {
      position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
      border: none; border-radius: 50%; background: rgba(255,255,255,.15);
      color: #fff; font-size: 24px; cursor: pointer;
    }
    #lightboxSrc { color: #bbb; font-size: 12px; }
    .hidden-hint { padding: 10px 12px; font-size: 12px; color: #888;
      display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .hidden-hint button { border: none; background: #4a6cf7; color: #fff;
      border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 12px; }
    .share-link { border: none; background: none; cursor: pointer; font-size: 14px; padding: 0 2px; vertical-align: middle; }
    .wn-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,.45);
      display: none; align-items: center; justify-content: center; padding: 16px; }
    .wn-overlay.open { display: flex; }
    .wn-box { background: #fff; border-radius: 14px; max-width: 360px; width: 100%;
      padding: 20px 22px; }
    .wn-box h2 { margin: 0 0 12px; font-size: 17px; }
    .wn-item { padding: 6px 0; font-size: 14px; color: #333; border-top: 1px solid #f0f0f0; }
    .wn-box button { margin-top: 14px; width: 100%; height: 36px; border: 0; border-radius: 8px;
      background: #2b6cb0; color: #fff; font-size: 14px; cursor: pointer; }
    .lb-nav {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 44px; height: 64px; border: none; cursor: pointer;
      background: rgba(255,255,255,.12); color: #fff; font-size: 34px;
      border-radius: 10px;
    }
    #lbPrev { left: 10px; }
    #lbNext { right: 10px; }
    .lb-nav:hover { background: rgba(255,255,255,.25); }
    #lightboxCount { color: #bbb; font-size: 12px; }
    .city-wrap { position: relative; }
    .city-dropdown {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      margin-top: 4px; background: #fff; border: 1px solid #ddd;
      border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15);
      z-index: 1100; max-height: 220px; overflow-y: auto;
    }
    .city-dropdown.open { display: block; }
    .city-dropdown .cd-head { padding: 8px 12px 4px; font-size: 11px; color: #888; }
    .city-dropdown .cd-item { padding: 9px 12px; cursor: pointer; font-size: 13px; }
    .city-dropdown .cd-item:hover { background: #f2f6ff; }
    .city-dropdown .cd-item b { display: block; }
    .city-dropdown .cd-item span { font-size: 11px; color: #888; }
    .fav-star { cursor: pointer; font-size: 18px; color: #ccc; flex: none; }
    #favChip.active { background: #f59f00; color: #fff; border-color: #f59f00; }
    .input-wrap { position: relative; flex: 1; display: flex; }
    .input-wrap input { width: 100%; padding-right: 30px; }
    .input-clear {
      position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
      width: 22px; height: 22px; border: none; border-radius: 50%;
      background: #d0d5db; color: #fff; font-size: 14px; line-height: 1;
      cursor: pointer; display: none; align-items: center; justify-content: center;
      padding: 0;
    }
    .input-clear:hover { background: #a8b0ba; }
    .input-wrap.has-value .input-clear { display: flex; }
    .update-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000;
      background: #2d3748; color: #fff; display: flex; align-items: center; justify-content: center;
      gap: 12px; padding: 10px 16px; border-radius: 12px 12px 0 0; font-size: 14px; }
    .update-banner button { border: 0; border-radius: 8px; padding: 6px 16px; font-size: 13px;
      font-weight: 600; cursor: pointer; background: #2b6cb0; color: #fff; }
    .update-banner button:hover { background: #24598f; }
    .update-banner .update-close { background: transparent; color: #a0aec0; font-size: 20px;
      padding: 2px 8px; line-height: 1; }
    .update-banner .update-close:hover { color: #fff; }
    .walk-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px;
      margin-top: 8px; cursor: pointer; }
    .sub .walk { color: #aaa; }
    #toast { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
      background: #2d3748; color: #fff; padding: 10px 20px; border-radius: 10px;
      font-size: 14px; z-index: 5000; text-align: center; cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,.3); max-width: 600px; }
    @media (max-width: 760px) {
      .update-banner { bottom: 0; z-index: 4000; }
      .lb-nav { width: 36px; font-size: 28px; }
      #toast { max-width: 90vw; bottom: 80px; }
    }
    .list-banners {
        position: sticky;
        top: 0;
        z-index: 3;
    }
    .search-active {
        padding: 8px 12px;
        font-size: 13px;
        color: #1a4971;
        background: #e8f2fc;
        border-bottom: 1px solid #c5d9ec;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .search-active-close {
        border: none;
        background: none;
        cursor: pointer;
        font-size: 18px;
        color: #6b9cc8;
        padding: 0 4px;
        line-height: 1;
        flex: none;
    }
    .search-active-close:hover { color: #1a4971; }
    .hidden-hint {
        padding: 8px 12px;
        font-size: 0.85em;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        background: #fff;
    }
    .hidden-hint button {
        margin-left: 6px;
    }
    /* --- Detail panel --- */
    #detail { display: none; flex: 1; overflow-y: auto; padding: 0 14px 16px; }
    #detail.open { display: block; }
    #detail.open ~ #list { display: none; }
    .detail-back { display: flex; width: calc(100% + 28px); align-items: center; gap: 4px;
      border: none; background: #fff; font-size: 14px; color: #2b6cb0; cursor: pointer;
      padding: 10px 14px 8px; font-weight: 500; position: sticky; top: 0; z-index: 2;
      margin: 0 -14px; box-shadow: 0 2px 4px rgba(0,0,0,.06); }
    .detail-back:hover { color: #1a4971; }
    .detail-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
    .detail-country { font-size: 13px; color: #888; margin-bottom: 8px; }
    .detail-row { font-size: 14px; padding: 3px 0; }
    .detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
    .detail-actions a, .detail-actions button { font-size: 13px; }
    .detail-actions .popup-link { margin-top: 0; }
    .detail-fav-star { cursor: pointer; font-size: 22px; color: #ccc; }
    .detail-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .detail-top-actions { display: flex; align-items: center; gap: 6px; }
    .detail-photo-grid { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
    .detail-photo-grid a { flex: 1 1 calc(50% - 3px); min-width: 0; max-width: calc(50% - 3px); }
    .detail-photo-grid img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; display: block; }

    @media (max-width: 760px), (max-height: 500px) {
      #detail { padding: 0 14px 24px; }
      .detail-photo-grid img { height: 80px; }
    }

    .geo-badge { background: none !important; border: none !important; }
    .geo-badge span {
        display: block; width: 18px; height: 18px; line-height: 18px; text-align: center;
        color: #fff; font-weight: 700; font-size: 11px; border-radius: 3px;
        border: 1px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
        pointer-events: none;
    }
