
      :root {
        color-scheme: light;
        --ink: #182a3a;
        --muted: #62717b;
        --paper: #fbfaf6;
        --line: #e6e3d9;
        --accent: #dd795d;
        --ocean: #dbe8e8;
        --panel: rgba(251, 250, 246, .96);
      }
      * { box-sizing: border-box; }
      html, body { width: 100%; height: 100%; margin: 0; }
      body { color: var(--ink); background: var(--paper); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
      button, input, select { font: inherit; }
      button { cursor: pointer; }
      .app { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
      .topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 22px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 2; }
      .brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
      .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--ink); font: 22px Georgia, serif; }
      h1 { margin: 0; font: 600 18px/1.2 Georgia, serif; letter-spacing: .01em; }
      .subtitle { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
      .status { color: var(--muted); font-size: 12px; white-space: nowrap; }
      .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 22px; background: #f4f2eb; border-bottom: 1px solid var(--line); z-index: 2; }
      .control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
      .control select, .search { min-height: 36px; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid #d9d8d1; border-radius: 7px; }
      .control[hidden] { display: none; }
      .search { width: min(310px, 44vw); margin-left: auto; }
      .demo-button, .refresh { min-height: 36px; padding: 7px 11px; color: var(--ink); background: transparent; border: 1px solid #c9c7be; border-radius: 7px; }
      .refresh { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
      .demo-button[aria-pressed="true"] { color: #7a4b17; background: #fff0d8; border-color: #e4c58d; }
      .workspace { position: relative; min-height: 0; }
      #map { position: absolute; inset: 0; z-index: 0; background: var(--ocean); }
      .map-panel { position: absolute; top: 16px; left: 16px; z-index: 1; width: min(370px, calc(100% - 32px)); max-height: calc(100% - 32px); display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid rgba(24,42,58,.12); border-radius: 12px; box-shadow: 0 10px 35px rgba(24,42,58,.12); backdrop-filter: blur(12px); }
      .panel-head { padding: 16px 17px 12px; border-bottom: 1px solid var(--line); }
      .eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
      .panel-head h2 { margin: 4px 0 2px; font: 600 21px/1.2 Georgia, serif; }
      .panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
      .list-filters { margin-top: 5px !important; overflow-wrap: anywhere; }
      .selection-reset { margin-top: 8px; padding: 5px 9px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
      .selection-reset[hidden] { display: none; }
      .regional-summary { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 11px; }
      .regional-summary summary { cursor: pointer; color: var(--ink); }
      .regional-summary-list { max-height: 120px; overflow: auto; margin: 4px 0 0; padding: 0; list-style: none; }
      .regional-summary-list button { width: 100%; padding: 3px 0; border: 0; background: none; color: var(--ink); text-align: left; }
      .stats { display: flex; gap: 18px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
      .stat strong { display: block; font: 600 19px Georgia, serif; }
      .stat span { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
      .notice { padding: 9px 12px; margin: 11px 13px 0; color: #6b501e; background: #fff3d8; border: 1px solid #f0dfb2; border-radius: 7px; font-size: 11px; }
      .notice[hidden] { display: none; }
      .edition-list { min-height: 80px; overflow: auto; padding: 7px 10px 12px; }
      .edition { padding: 9px 7px; border-bottom: 1px solid #ebe8df; border-radius: 5px; }
      .edition[open] { background: #f0eee7; }
      .edition-summary { cursor: pointer; list-style: none; }
      .edition-summary::-webkit-details-marker { display: none; }
      .edition-summary::after { float: right; color: #78868d; content: "+"; font: 16px/1 Georgia, serif; }
      .edition[open] .edition-summary::after { content: "−"; }
      .edition-title { display: flex; justify-content: space-between; gap: 10px; font: 600 14px/1.35 Georgia, serif; }
      .edition-name { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
      .edition-swatch { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border: 1px solid rgba(24,42,58,.15); border-radius: 50%; }
      .edition-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
      .edition-detail { display: grid; grid-template-columns: 102px 1fr; gap: 7px; padding: 7px 3px 0; font-size: 11px; }
      .edition-detail strong { color: var(--muted); font-weight: 600; }
      .edition-detail span { overflow-wrap: anywhere; }
      .edition-cover { display: grid; justify-items: start; gap: 5px; margin: 8px 3px; font-size: 11px; }
      .edition-cover img { width: 140px; aspect-ratio: 2 / 3; object-fit: contain; object-position: left center; }
      .legend-note { padding: 8px 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; }
      .pill { display: inline-block; margin: 5px 4px 0 0; padding: 2px 6px; color: #596775; background: #e9edf0; border-radius: 20px; font-size: 9px; text-transform: uppercase; }
      .pill.owned { color: #315646; background: #e1efe5; }
      .pill.wishlist { color: #6d4816; background: #fbecd2; }
      .empty { padding: 18px 12px; color: var(--muted); font-size: 12px; }
      .map-caption { position: absolute; right: 112px; bottom: 12px; z-index: 1; max-width: min(490px, 58vw); padding: 6px 9px; color: #51636c; background: rgba(251,250,246,.88); border-radius: 5px; font-size: 10px; }
      .leaflet-control-zoom a { color: var(--ink) !important; }
      .area-count-label { color: #172a3a; text-align: center; font: 700 11px/24px ui-sans-serif, system-ui, sans-serif; text-shadow: 0 1px 3px #fff, 0 0 5px #fff; }
      .area-count-label span { display: inline-block; min-width: 22px; padding: 0 4px; background: rgba(255,255,255,.82); border: 1px solid rgba(24,42,58,.28); border-radius: 12px; }
      .country-total { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); color: var(--ink); font-size: 11px; }
      .country-total[hidden] { display: none; }
      .country-total strong { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0 5px; border-radius: 22px; background: #59396e; color: white; font-size: 13px; }
      .country-total span { max-width: 84px; text-align: left; }
      .leaflet-coverage-canvas { position: absolute; pointer-events: none; }
      .area-count-label { transition: opacity .12s ease; }
      .leaflet-control-zoom, .leaflet-control-attribution { border-radius: 6px !important; box-shadow: 0 2px 10px rgba(24,42,58,.12) !important; }
      .loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; background: var(--paper); color: var(--muted); }
      .loading[hidden] { display: none; }
      .error { max-width: 500px; padding: 22px; text-align: center; }
      .error h2 { font: 600 22px Georgia, serif; }
      @media (max-width: 760px) {
        html, body { height: auto; min-height: 100%; }
        body { overflow-x: hidden; }
        .app { height: auto; min-height: 100vh; min-height: 100dvh; grid-template-rows: auto auto 1fr; }
        .topbar { padding: 11px 14px; }
        .brand { gap: 9px; }
        .brand-mark { width: 36px; height: 36px; font-size: 20px; }
        h1 { font-size: 16px; }
        .toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 9px; padding: 9px 12px; }
        .control { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; font-size: 10px; }
        .control select { width: 100%; max-width: none; min-height: 40px; padding: 6px 8px; }
        .demo-button, .refresh { min-width: 0; min-height: 40px; padding: 6px 8px; font-size: 11px; }
        .search { grid-column: 1 / -1; order: initial; width: 100%; min-height: 40px; margin: 0; }
        .workspace { display: grid; grid-template-rows: minmax(390px, 52dvh) auto; overflow: visible; }
        #map { position: relative; grid-row: 1; min-height: 390px; touch-action: none; }
        .map-panel { position: relative; inset: auto; grid-row: 2; width: auto; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
        .panel-head { padding: 13px 15px 10px; }
        .stats { gap: 12px; padding: 10px 15px; }
        .stat strong { font-size: 18px; }
        .legend-note { padding: 8px 15px; }
        .edition-list { min-height: 0; max-height: none; overflow: visible; padding: 5px 10px 18px; }
        .map-caption { display: none; }
        .mobile-map-hint { position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 16px); padding: 6px 9px; color: #40545e; background: rgba(251,250,246,.92); border: 1px solid rgba(24,42,58,.12); border-radius: 7px; font-size: 10px; pointer-events: none; }
        .country-total:not([hidden]) + .mobile-map-hint { max-width: calc(100% - 160px); }
        .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; }
        .area-count-label { font-size: 10px; }
        .status { display: none; }
      }
    