@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400..800&display=swap');
    :root {
      --ink: #0b2b29;
      --text-2: #3d4a48;
      --font: var(--kn-font-sans, Archivo, ui-sans-serif, system-ui, sans-serif);
      --deep: #0b2b29;
      --green: #0b5c55;
      --muted: #5c6968;
      --line: #e7eceb;
      --paper: #f6f9f9;
      --panel: #ffffff;
      --accent: #66cfc6;
      --accent-strong: #12857b;
      --danger: #d7452f;
      --white: #fff;
      --radius: 20px;
      --line-soft: rgba(11,92,85,.1);
      --line-teal: #bee6e0;
      --shadow-panel: 0 2px 4px rgba(8,16,15,.04), 0 8px 24px rgba(11,92,85,.08);
      --shadow-float: 0 2px 4px rgba(8,16,15,.04), 0 12px 32px rgba(11,92,85,.12);
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--font); font-variant-numeric: tabular-nums; }
    button, input, select { font: inherit; }
    button { color: inherit; }
    /* minmax(0,1fr): otherwise the implicit auto column grows to the content's min-content width. */
    .app { min-height: 0; }
    .workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr) 355px; min-height: 0; height: calc(100vh - var(--kn-nav-h, 67px)); padding: 18px 28px 24px; gap: 12px; }
    .sidebar, .insights { background: var(--panel); overflow: auto; border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: var(--shadow-panel); }
    .sidebar { padding: 24px 20px; }
    .panel-hide, .panel-show { display: none; }
    @media (min-width: 1121px) {
      .sidebar, .insights { position: relative; }
      .panel-hide { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 52px; background: #fff; color: var(--text-2); font-size: 16px; cursor: pointer; }
      .panel-hide:hover, .panel-show:hover { background: #e4f4f2; color: var(--green); }
      .panel-show { position: absolute; top: 50%; z-index: 801; display: none; place-items: center; width: 32px; height: 48px; transform: translateY(-50%); border: 1px solid rgba(8,16,15,.12); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; box-shadow: var(--shadow-float); }
      .panel-show.left { left: 0; border-left: 0; border-radius: 0 12px 12px 0; }
      .panel-show.right { right: 0; border-right: 0; border-radius: 12px 0 0 12px; }
      .app.left-hidden .sidebar, .app.right-hidden .insights { display: none; }
      .app.left-hidden .panel-show.left, .app.right-hidden .panel-show.right { display: grid; }
      .app.left-hidden .workspace { grid-template-columns: minmax(0, 1fr) 355px; }
      .app.right-hidden .workspace { grid-template-columns: 330px minmax(0, 1fr); }
      .app.left-hidden.right-hidden .workspace { grid-template-columns: minmax(0, 1fr); }
      .insight-top h2, .sidebar h1 { padding-right: 40px; }
    }
    .eyebrow { font-size: 13px; line-height: 1; text-transform: uppercase; letter-spacing: .16em; color: var(--green); font-weight: 600; }
    .updated { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }
    h1 { margin: 0 0 16px; font-family: var(--font); font-size: 28px; font-weight: 600; line-height: 1.08; letter-spacing: -.034em; color: var(--ink); }
    .search { position: relative; margin-bottom: 20px; }
    /* Phones replace this box with a fullscreen sheet; desktop keeps the inline field via display:contents. */
    .search-launch, .search-cancel { display: none; }
    .search-sheet:not(.is-overlay),
    .search-sheet:not(.is-overlay) .search-bar,
    .search-sheet:not(.is-overlay) .search-sheet-body { display: contents; }
    .search-field { position: relative; }
    .search-field > .ph { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--green); pointer-events: none; }
    .search input { width: 100%; height: 48px; border: 1.5px solid var(--accent); background: #fff; border-radius: 26px; padding: 0 46px 0 46px; outline: none; font-size: 15px; color: var(--ink); box-shadow: 0 2px 4px rgba(8,16,15,.04), 0 8px 20px rgba(11,92,85,.16); transition: border-color 180ms cubic-bezier(.22,.61,.36,1), box-shadow 180ms cubic-bezier(.22,.61,.36,1); }
    .search input::placeholder { color: var(--text-2); opacity: 1; }
    .search input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(102,207,198,.3), 0 2px 4px rgba(8,16,15,.04), 0 8px 20px rgba(11,92,85,.16); }
    .search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); min-width: 22px; text-align: center; border: 1px solid var(--line); background: var(--paper); padding: 2px 6px; border-radius: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
    .search.has-value kbd { display: none; }
    .search-clear { position: absolute; right: 10px; top: 24px; transform: translateY(-50%); width: 28px; height: 28px; display: none; place-items: center; border: 0; border-radius: 52px; background: var(--paper); color: var(--text-2); font-size: 14px; cursor: pointer; }
    .search.has-value .search-clear { display: grid; }
    .search-clear:hover { background: #e4f4f2; color: var(--green); }
    .search-clear:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    .search-sheet-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    html.suburb-search-open, html.suburb-search-open body { overflow: hidden; }
    /* Search results drop down under the box instead of filtering the ranked list further down. */
    .search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); }
    .search-results[hidden] { display: none; }
    .search-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
    .search-option:hover, .search-option.active { background: var(--paper); }
    .search-option-name { min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .search-option-name b { font-weight: 700; }
    .search-option-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }
    .search-empty { padding: 10px; color: var(--muted); font-size: 13px; }
    @media (prefers-reduced-motion: reduce) { .search input { transition: none; } }
    .control-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
    .segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: #f0faf9; border: 1px solid #dceeeb; margin-bottom: 20px; }
    .segmented button { border: 0; background: transparent; border-radius: 999px; padding: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
    .segmented button:hover:not(.active) { color: var(--ink); }
    .segmented button.active { background: var(--deep); color: white; box-shadow: 0 2px 8px rgba(11,43,41,.22); }
    .segmented button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    .rank-head { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
    .rank-head span { font-size: 12px; color: var(--muted); }
    .rank-sort-wrap { display: flex; align-items: center; gap: 6px; }
    .rank-sort { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 52px; background: #fff; color: var(--text-2); font-size: 15px; cursor: pointer; }
    .rank-sort:hover { background: #e4f4f2; color: var(--green); }
    .rank-sort:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    .rank-list { display: grid; gap: 4px; margin-top: 10px; }
    .rank-row { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; border: 1px solid transparent; text-align: left; background: transparent; padding: 8px 10px; border-radius: 12px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22,.61,.36,1), border-color 180ms cubic-bezier(.22,.61,.36,1); }
    .rank-row:hover { background: var(--paper); }
    .rank-row.active { background: var(--deep); border-color: var(--deep); }
    .rank-row.active .rank-name { color: #fff; }
    .rank-row.active .rank-name small { color: rgba(255,255,255,.72); }
    .rank-row:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    @media (prefers-reduced-motion: reduce) { .rank-row { transition: none; } }
    .rank-num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--green); background: #e4f4f2; }
    .rank-row.active .rank-num { background: var(--accent); color: #04241f; }
    .rank-name { min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rank-name small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; font-size: 12px; }
    .trend { font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 7px; }
    .trend.up { color: #0b5c55; background: #dcf4f1; }
    .trend.down { color: #a3301e; background: #fdeeeb; }
    .trend.neutral { color: #174e5d; background: #e1f0f3; }
    .trend.na { color: var(--muted); background: #eef2f1; font-weight: 600; white-space: nowrap; }
    .map-shell { position: relative; isolation: isolate; container-type: inline-size; overflow: hidden; background: #dfe8e7; min-height: 600px; border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: var(--shadow-panel); scroll-margin-top: var(--kn-nav-float-space, 80px); }
    .map-canvas { position: absolute; inset: 0; }
    #map { position: absolute; inset: 0; width: 100%; height: 100%; background: #dfe8e7; }
    #map .leaflet-tile-pane { filter: saturate(.58) contrast(.9) brightness(1.05); }
    #map .leaflet-control-attribution { margin: 0 12px 6px 0; padding: 0; border-radius: 0; background: transparent; color: var(--text-2); font: 11px var(--font); }
    #map .leaflet-control-attribution a { color: inherit; text-decoration: none; }
    #map .leaflet-control-attribution a:hover { text-decoration: underline; }
    .map-toolbar { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: flex-start; align-items: flex-start; z-index: 800; pointer-events: none; }
    .map-title { display: grid; grid-template-columns: auto auto; column-gap: 16px; align-items: center; padding: 12px 16px; border-radius: 20px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-float); backdrop-filter: blur(20px) saturate(160%); pointer-events: auto; }
    .map-title > strong, .map-title > span { grid-column: 1; white-space: nowrap; }
    .map-title strong { display: block; font: 600 15px var(--font); letter-spacing: -.01em; }
    .map-title > span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
    .legend { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; align-self: stretch; padding-left: 16px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; }
    .legend-scale { display: flex; align-items: center; gap: 8px; }
    .legend-bar { display: flex; width: 94px; height: 7px; border-radius: 8px; overflow: hidden; }
    .legend-bar i { flex: 1; }
    .legend-na { display: flex; align-items: center; gap: 5px; padding-left: 9px; border-left: 1px solid var(--line); }
    .legend-na i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(8,16,15,.35); }
    /* Narrow map: the legend drops under the title instead of overflowing the card. */
    @container (max-width: 640px) {
      .map-title { grid-template-columns: auto; }
      .legend { grid-column: 1; grid-row: auto; margin-top: 10px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    }
    /* In drawer mode the details pill shares the top row, so stack the legend earlier. */
    @media (max-width: 1120px) {
      @container (max-width: 860px) {
        .map-title { grid-template-columns: auto; }
        .legend { grid-column: 1; grid-row: auto; margin-top: 10px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
      }
      /* When the area name no longer fits beside the card, shorten the pill instead of dropping it to a new row. */
      @container (max-width: 600px) {
        .details-pill .pill-full { display: none; }
        .details-pill .pill-short { display: inline; }
      }
      /* Narrowest maps: tighten the legend so "Details" still fits beside the card. */
      @container (max-width: 470px) {
        .map-toolbar .legend-bar { width: 64px; }
      }
    }
    @media (min-width: 761px) and (max-width: 900px) { .workspace { grid-template-columns: 260px minmax(0, 1fr) !important; } }
    .suburb-label-icon { background: transparent; border: 0; pointer-events: none!important; }
    .suburb-label-icon span { display: inline-block; transform: translate(-50%,-50%); padding: 2px 5px; border-radius: 6px; background: rgba(255,255,255,.74); box-shadow: 0 1px 3px rgba(8,16,15,.12); color: var(--ink); font: 600 12px/1.15 var(--font); white-space: nowrap; text-shadow: 0 1px 0 #fff; transition: opacity .15s ease; }
    .leaflet-tooltip.sector-tooltip { padding: 8px 10px; border: 0; border-radius: 10px; background: rgba(11,43,41,.96); color: white; box-shadow: 0 8px 20px -6px rgba(0,0,0,.45); font: 600 12px var(--font); }
    .leaflet-tooltip-top.sector-tooltip:before { border-top-color: rgba(11,43,41,.94); }
    .zoom { position: absolute; left: 18px; bottom: 18px; display: grid; padding: 4px; gap: 2px; background: #fff; border: 1px solid rgba(255,255,255,.92); border-radius: 52px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow-float); z-index: 800; }
    .time-slider { position: absolute; left: 76px; right: 18px; bottom: 18px; max-width: 560px; z-index: 800; padding: 10px 14px 8px; border: 1px solid rgba(255,255,255,.92); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: var(--shadow-float); }
    .time-slider[hidden] { display: none; }
    .time-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
    .time-head strong { font-size: 13px; font-weight: 700; }
    .time-head span { color: var(--muted); font-size: 11px; white-space: nowrap; }
    #periodInput { display: block; width: 100%; margin: 6px 0 0; accent-color: var(--green); cursor: pointer; }
    .time-ticks { position: relative; height: 18px; margin-top: 2px; }
    .time-ticks i { position: absolute; top: 0; width: 1px; height: 4px; background: #b7c4c2; transform: translateX(-50%); }
    .time-ticks i.active { width: 3px; height: 6px; border-radius: 2px; background: var(--deep); }
    .time-ticks span { position: absolute; top: 6px; transform: translateX(-50%); color: #8a9694; font-size: 9px; white-space: nowrap; }
    .zoom button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 52px; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22,.61,.36,1), color 180ms cubic-bezier(.22,.61,.36,1); }
    .zoom button:hover { background: #e4f4f2; color: var(--green); }
    .zoom button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    @media (prefers-reduced-motion: reduce) { .zoom button, .drawer-close { transition: none; } .insights { transition: none !important; } }
    .insights { padding: 24px 20px; }
    .insight-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
    .searched { margin-top: 2px; color: var(--muted); font-size: 13px; }
    h2 { margin: 0 0 6px; font: 400 28px/1.1 var(--font); letter-spacing: -.026em; color: var(--ink); }
    .suburb-toggle { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-teal); border-radius: 52px; background: #fff; color: var(--ink); padding: 8px 14px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color 180ms cubic-bezier(.22,.61,.36,1); }
    .suburb-toggle:hover { border-color: var(--accent); }
    .suburb-toggle .ph { font-size: 16px; color: var(--green); }
    .suburb-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    .suburb-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
    .suburb-list[hidden] { display: none; }
    .suburb-list span { padding: 5px 10px; border-radius: 52px; background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
    .suburb-list b { font-weight: 700; color: var(--deep); }
    .suburb-list small { display: block; width: 100%; color: var(--muted); font-size: 12px; }
    .chart-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
    .chart-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 5px; }
    .chart-head strong { font: 600 15px var(--font); letter-spacing: -.01em; }
    @media (prefers-reduced-motion: reduce) { .suburb-toggle { transition: none; } }
    #trendChart { width: 100%; height: 170px; display: block; cursor: crosshair; }
    .chart-readout { fill: var(--ink); font-size: 13px; font-weight: 600; }
    .chart-cursor { stroke: #0b5c55; stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
    .chart-axis { fill: var(--muted); font-size: 12px; }
    .chart-grid { stroke: var(--line); stroke-width: 1; }
    .chart-line { fill: none; stroke: #0b5c55; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .chart-dot { fill: var(--accent); stroke: #171917; stroke-width: 2; }
    .panel-section { margin: 18px 0; }
    .panel-section h3 { margin: 0; font: 600 15px var(--font); letter-spacing: -.01em; }
    .panel-section h3 + .data-table { margin-top: 8px; }
    .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .data-table th { padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
    .data-table td { padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; }
    .data-table .num { text-align: right; white-space: nowrap; padding-left: 10px; }
    .data-table td.num { font-weight: 600; }
    .data-table td.na { color: var(--muted); font-weight: 400; }
    .tag-new { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #e4f4f2; color: var(--green); font-size: 11px; font-weight: 700; vertical-align: 1px; }
    .data-table small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
    .summary { margin: 18px 0; padding: 16px; border: 1px solid #bee6e0; border-radius: 20px; background: #e9f7f5; }
    .summary-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .summary .label { font-size: 12px; color: var(--green); margin-bottom: 6px; }
    .summary strong { display: block; font: 600 26px var(--font); letter-spacing: -.025em; }
    .summary-figures small { display: block; margin-top: 4px; color: var(--text-2); font-size: 12px; }
    .empty { padding: 14px; color: var(--muted); font-size: 13px; }
    /* Pinned to the top-right of the map; on very narrow maps it may overlap the card rather than wrap. */
    .details-pill { display: none; position: absolute; top: 0; right: 0; z-index: 1; max-width: 240px; white-space: nowrap; align-items: center; gap: 6px; padding: 10px 12px 10px 16px; border: 1px solid var(--deep); border-radius: 52px; background: var(--deep); box-shadow: 0 8px 20px -6px rgba(11,43,41,.45); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; pointer-events: auto; }
    .details-pill > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .details-pill .pill-short, .details-pill .pill-caret-down { display: none; }
    .details-pill .ph { flex: none; font-size: 16px; color: #fff; }
    .details-pill:hover { background: #12403d; }
    .details-pill:focus-visible, .drawer-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3); }
    .drawer-bar { display: none; }
    .drawer-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 52px; background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22,.61,.36,1); }
    .drawer-close:hover { background: #e4f4f2; color: var(--green); }
    @media (max-width: 1120px) {
      /* 761–1120px: two columns; area details become a drawer over the right of the map. */
      .workspace { grid-template-columns: 300px minmax(0, 1fr); position: relative; }
      .insights { position: absolute; top: 18px; bottom: 24px; right: 28px; width: 360px; max-width: calc(100% - 56px); z-index: 5; padding-top: 0; box-shadow: 0 2px 4px rgba(8,16,15,.06), 0 24px 56px -12px rgba(11,43,41,.28); transform: translateX(calc(100% + 40px)); visibility: hidden; transition: transform 240ms cubic-bezier(.22,.61,.36,1), visibility 0s linear 240ms; }
      .app.drawer-open .insights { transform: none; visibility: visible; transition: transform 240ms cubic-bezier(.22,.61,.36,1), visibility 0s; }
      .drawer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px 12px; padding: 16px 20px 12px; background: #fff; border-bottom: 1px solid var(--line); }
      .details-pill { display: inline-flex; top: 18px; right: 18px; z-index: 801; }
      .app.drawer-open .details-pill { display: none; }
    }
    @media (max-width: 760px) {
      .workspace { display: flex; flex-direction: column; height: auto; padding: 18px 12px 24px; gap: 12px; }
      .workspace > * { width: 100%; min-width: 0; }
      .sidebar { padding: 20px 16px 16px; border-radius: 24px; overflow: visible; position: relative; z-index: 2; }
      .map-shell { scroll-margin-top: 98px; display: flex; flex-direction: column; flex: none; height: auto; min-height: 0; padding: 12px 12px 8px; gap: 10px; background: #fff; }
      .map-canvas { position: relative; inset: auto; order: 2; flex: none; height: clamp(400px, calc(100svh - 440px), 520px); min-height: 400px; border-radius: 16px; overflow: hidden; }
      .rank-head, .rank-list { display: none; }
      /* The title sits outside the map so it doesn't cover the tiles. */
      .map-toolbar { position: static; top: auto; left: auto; right: auto; order: 1; display: block; padding: 0; pointer-events: auto; }
      .map-toolbar .map-title { position: static; max-width: none; width: 100%; z-index: auto; padding: 4px 4px 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
      /* Legend stays visible; "Not enough data" always takes its own line on phones. */
      /* Grid (not a wrapping flex row) so the card hugs its widest line instead of the unwrapped legend width. */
      .legend { display: grid; justify-items: start; row-gap: 6px; }
      .legend-na { padding-left: 0; border-left: 0; }
      .legend-bar { width: 64px; }
      /* Pinch to zoom on phones. */
      .zoom { display: none; }
      .time-slider { position: static; left: auto; right: auto; bottom: auto; order: 3; max-width: none; }
      .insights { position: relative; top: auto; right: auto; width: auto; height: auto; border: 1px solid var(--line-soft); border-radius: 24px; box-shadow: var(--shadow-panel); padding: 20px 16px 28px; scroll-margin-top: 98px; }
      .insights { bottom: auto; max-width: none; z-index: auto; transform: none; visibility: visible; transition: none; }
      .drawer-bar { display: none !important; }
      /* Details pill stays on the map; the title no longer shares that space. */
      .details-pill { display: inline-flex; top: 12px; bottom: auto; right: 12px; position: absolute; z-index: 801; }
      /* Phones use the short label: "Details". */
      .details-pill .pill-full { display: none; }
      .details-pill .pill-short { display: inline; }
      .details-pill .pill-caret { display: none; }
      .details-pill .pill-caret-down { display: inline; }
      h1 { font-size: 26px; }
      /* Same overlay as header search: fullscreen sheet, field + Cancel, results underneath. */
      .search-launch { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; margin: 0; padding: 0 14px 0 16px; border: 1.5px solid var(--accent); background: #fff; border-radius: 26px; box-shadow: 0 2px 4px rgba(8,16,15,.04), 0 8px 20px rgba(11,92,85,.16); color: var(--text-2); font-size: 15px; font-weight: 400; text-align: left; cursor: pointer; }
      .search-launch > .ph { flex: none; font-size: 20px; color: var(--green); }
      .search-launch span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .search-launch kbd { position: static; transform: none; flex: none; }
      .search-launch.has-value { color: var(--ink); }
      .search-launch.has-value kbd { display: none; }
      .search-launch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(102,207,198,.3), 0 2px 4px rgba(8,16,15,.04), 0 8px 20px rgba(11,92,85,.16); }
      .search-sheet:not(.is-overlay) { display: none; }
      .search-sheet.is-overlay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; box-sizing: border-box; background: var(--kn-surface, #fff); color: var(--kn-text, var(--ink)); font-family: var(--kn-font-sans, var(--font)); padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
      .search-sheet.is-overlay .search-bar { display: flex; align-items: center; gap: var(--kn-space-2, 8px); padding: var(--kn-space-2, 8px) var(--kn-space-3, 12px); }
      .search-sheet.is-overlay .search-field { position: static; flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--kn-space-2, 8px); box-sizing: border-box; background: var(--kn-surface-sunken, #f6f9f9); border-radius: var(--kn-radius-pill, 52px); padding: 10px 14px; }
      .search-sheet.is-overlay .search-field > .ph { position: static; left: auto; top: auto; transform: none; flex: none; font-size: var(--kn-text-h4, 20px); color: var(--kn-text-muted, var(--muted)); }
      .search-sheet.is-overlay .search-field input { flex: 1; width: auto; min-width: 0; height: auto; border: none; border-radius: 0; padding: 0; background: transparent; box-shadow: none; outline: none; font-size: var(--kn-text-body, 16px); font-weight: 400; letter-spacing: -0.006em; line-height: 1.4; color: var(--kn-text, var(--ink)); }
      .search-sheet.is-overlay .search-field input:focus,
      .search-sheet.is-overlay .search-field input:focus-visible { outline: none; border: none; box-shadow: none; }
      .search-sheet.is-overlay .search-field input::placeholder { color: var(--kn-text-muted, var(--muted)); }
      .search-sheet.is-overlay kbd { display: none; }
      .search-sheet.is-overlay .search-clear { position: static; top: auto; right: auto; transform: none; display: none; flex: none; width: 28px; height: 28px; border-radius: var(--kn-radius-pill, 52px); background: var(--kn-neutral-100, var(--paper)); color: var(--kn-text-muted, var(--text-2)); font-size: var(--kn-text-body-sm, 14px); }
      .search-sheet.is-overlay.has-value .search-clear { display: grid; }
      .search-sheet.is-overlay .search-cancel { display: block; flex: none; border: none; background: transparent; color: var(--kn-text, var(--ink)); font-family: var(--kn-font-sans, var(--font)); font-size: var(--kn-text-body, 16px); font-weight: var(--kn-weight-bold, 700); padding: var(--kn-space-2, 8px); cursor: pointer; border-radius: var(--kn-radius-md, 12px); }
      .search-sheet.is-overlay .search-sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0 var(--kn-space-4, 16px) var(--kn-space-6, 24px); }
      .search-sheet.is-overlay .search-results { position: static; top: auto; left: auto; right: auto; z-index: auto; flex: 1; min-height: 0; max-height: none; margin: 0; padding: var(--kn-space-2, 8px) 0 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
      .search-sheet.is-overlay .search-option { padding: 12px 10px; }
    }
  
    @media (min-width: 761px) {
      #knest-react-sitenav-mount ~ .app .workspace,
      .kn-sitenav--floating ~ .app .workspace { height: calc(100vh - var(--kn-nav-float-space, 80px)); }
    }
