/* Meter owns its viewport; generic map header/main/select rules must not size it. */
#meterView{box-sizing:border-box;position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:10px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border:0;border-radius:0;overflow:hidden!important;background:#0b1728!important;color:#fff;font:14px Dubai,Arial,sans-serif;color-scheme:dark;direction:ltr;isolation:isolate;overscroll-behavior:none}
#meterView:not([open]){display:none!important}#meterView[open]{display:flex!important;flex-direction:column;gap:8px}
#meterView::backdrop{background:#081422}#meterView *{box-sizing:border-box}#meterView button,#meterView select{font:inherit}#meterView button{cursor:pointer;touch-action:manipulation}#meterView button:focus-visible,#meterView select:focus-visible{outline:2px solid #d5eaff;outline-offset:2px}
#meterView>.meter-top,#meterView>.meter-status,#meterView>.meter-toolbar,#meterView>.meter-switches,#meterView>.meter-selected-tags,#meterView>#meterGrid,#meterView>.meter-distance-control{position:relative;z-index:2}
#meterView>.meter-top{display:flex!important;flex:none;align-items:center;gap:7px;padding:0!important;height:42px!important;min-height:0!important;width:100%!important;max-width:none!important;border:0;background:transparent;overflow:visible!important;direction:ltr!important}
#meterView .meter-wordmark{margin-right:auto;min-width:0;font-size:21px;letter-spacing:1px;white-space:nowrap;font-weight:700}#meterView .meter-wordmark span{font-weight:400;color:#c5d5e6}
#meterView .meter-top button{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:7px 10px;border:1px solid #809bb4;border-radius:10px;color:#fff;background:#122c48e6}
#meterView .meter-top .meter-start{color:#15324d;background:#d0e6f7;font-weight:700}
#meterView .meter-status{flex:none;display:flex;justify-content:space-between;gap:8px;min-height:18px;padding:0;color:#d1dce8;font-size:11px;line-height:1.4;overflow:hidden}
#meterView .meter-live{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#meterView .meter-live:before{content:'•';color:#a9cee9;margin-right:5px}#meterView .meter-live[data-live=true]:before{color:#8beaaf}
#meterView .meter-toolbar{display:none;flex:none;flex-wrap:wrap;gap:6px;padding:0}#meterView.meter-expanded .meter-toolbar{display:flex}#meterView .meter-toolbar>span,#meterView #meterSharedType,#meterView #meterAdd,#meterView #meterDrone,#meterView .ai-top-home,#meterView .meter-type-icon,#meterView .meter-footnote{display:none!important}
#meterView .meter-toolbar select,#meterView .meter-toolbar button{width:auto!important;min-width:0;max-width:100%;border:1px solid #7795ae;background:#173755;color:#fff;border-radius:9px;padding:6px;font:inherit}
#meterView .meter-switches{display:flex;flex:none;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:0;min-width:0;max-width:100%;direction:ltr}
#meterView .meter-switches>div{display:flex;justify-content:center;flex-wrap:nowrap;gap:5px;max-width:100%;min-width:0}
#meterView .meter-switches button,#meterView #meterUnit{width:auto!important;min-width:0;max-width:100%;min-height:32px;border:1px solid #6e91ae;border-radius:18px;padding:6px 11px;background:#173552ed;color:#f5f8fc;line-height:1.3}
#meterView .meter-switches button[aria-pressed=true]{background:#d3e6f5;color:#122d47}
#meterView .meter-selected-tags{display:flex;flex:none;align-items:center;justify-content:center;gap:10px;padding:0;max-width:100%;pointer-events:none}
#meterView .meter-selected-tags strong{display:block;max-width:60%;padding:7px 24px;border:1px solid #e99aaa99;border-radius:12px;background:#872e43d9;color:#fff;font-size:22px;line-height:1.2;font-weight:700;text-align:center;overflow-wrap:anywhere}
#meterView .meter-selected-tags .meter-purpose-tag{max-width:45%;background:#153c68e6;border-color:#7b9fbd;font-size:18px;padding-inline:18px;color:#e1e8f0}
#meterView #meterGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;grid-auto-rows:auto;gap:12px;flex:1 1 0;min-width:0!important;min-height:0!important;height:auto!important;max-height:520px!important;width:100%!important;max-width:1600px;margin:auto!important;padding:0!important;align-content:stretch;direction:ltr;pointer-events:none}
#meterView .meter-card{container-type:inline-size;position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;min-height:0!important;height:100%!important;padding:16px!important;border:1px solid #6a8caca6;border-radius:18px;background:#153453ed!important;color:#fff;overflow:hidden;pointer-events:auto;touch-action:manipulation}
#meterView .meter-card-head{display:flex;align-items:start;justify-content:space-between;gap:6px;flex:none;min-width:0}
#meterView .meter-card-head>div{flex:1;min-width:0}#meterView .meter-card h2{margin:0;font-size:clamp(16px,7cqi,25px)!important;font-weight:600;line-height:1.2;color:#d1d9e3!important;overflow-wrap:anywhere}
#meterView .meter-card-head button{flex:none;width:28px;height:28px;padding:0;border:1px solid #7b99b280;border-radius:50%;background:#153451;color:#d5dfeb;font-size:16px}
#meterView .meter-description{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px;min-width:0}#meterView .meter-description:empty{display:none}#meterView .meter-description span{font-size:11px;color:#ced9e4;line-height:1.2}
#meterView .meter-instrument{position:relative;display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0!important;height:auto!important;width:100%;min-width:0;margin:0!important;background:none!important}
#meterView .meter-dial{position:absolute;inset:0;width:100%;height:100%;margin:auto;max-width:330px;overflow:hidden;pointer-events:none}
#meterView .meter-dial path{fill:none;stroke-width:8;stroke-linecap:round}#meterView .meter-arc{stroke:#526c88}#meterView .meter-fill{stroke:#c5def2;transition:stroke-dasharray .5s}#meterView .meter-needle{stroke:#edf7ff;stroke-width:2;transform-origin:120px 120px;transition:transform .5s}#meterView .meter-dial circle{fill:#d4ebfb}
#meterView .meter-value-wrap{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;max-height:100%;padding:0 3px!important;text-align:center}
#meterView .meter-value,#meterView .meter-value[data-length=long]{display:block;max-width:100%;min-width:0;font-size:var(--meter-value-size,clamp(42px,28cqi,132px))!important;line-height:1.05!important;letter-spacing:0!important;font-weight:800!important;color:#fff!important;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';white-space:nowrap;text-shadow:0 1px 2px #0005;cursor:default;user-select:none;-webkit-user-select:none}
#meterView .meter-unit{display:block;max-width:100%;font-size:clamp(12px,5cqi,18px)!important;color:#d8e2ed;line-height:1.25;white-space:normal;overflow-wrap:anywhere;margin-top:7px!important}
#meterView .meter-card[data-style=digital] .meter-dial{display:none!important}#meterView .meter-card[data-style=gauge] .meter-value-wrap{padding-top:25%!important}#meterView .meter-card[data-style=ring] .meter-value-wrap{width:65%}#meterView .meter-card[data-style=ring] .meter-needle,#meterView .meter-card[data-style=ring] .meter-dial circle{display:none}
#meterView .meter-card-foot{flex:none;min-height:16px;display:flex;justify-content:center;gap:5px;margin:0;padding:0!important;border:0;background:none;font-size:12px;color:#e8eff6;line-height:1.2}
#meterView .meter-card-foot>span:last-child{display:none!important}#meterView .meter-samples{display:block!important;font-size:10px;color:#d7e2ed}#meterView .meter-card-foot{flex-wrap:wrap}#meterView .meter-samples{flex-basis:100%;text-align:center}#meterView .meter-movement{font-weight:700;white-space:nowrap}#meterView .meter-movement:empty{display:none}
#meterView .meter-card[data-movement=up]{background:#115334ed!important;border-color:#82d4a5}#meterView .meter-card[data-movement=down]{background:#702a3bed!important;border-color:#eea3ae}
#meterView .meter-scene{position:absolute!important;inset:0;z-index:0!important;direction:ltr;isolation:isolate;background:#071422;overflow:hidden}
#meterView .meter-scene[hidden]{display:none!important}#meterView .meter-scene>video{position:absolute!important;inset:0!important;z-index:0!important;display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;pointer-events:none;transform:translateZ(0);-webkit-transform:translateZ(0)}
#meterView.meter-transparent{background:transparent!important}#meterView.meter-transparent::backdrop{background:transparent}
#meterView.meter-transparent .meter-top,#meterView.meter-transparent .meter-status{background:#10263dcc;border-radius:8px}
#meterView.meter-transparent .meter-card{background:rgba(8,35,68,.91)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}#meterView.meter-transparent .meter-card[data-movement=up]{background:rgba(9,71,42,.94)!important}#meterView.meter-transparent .meter-card[data-movement=down]{background:rgba(103,26,42,.94)!important}
#meterView .meter-distance-control{display:flex;flex:none;align-items:center;width:min(650px,100%);min-height:48px;max-width:100%;margin:0 auto;padding:5px 12px;border:1px solid #7296b3;border-radius:12px;background:#123452ed;color:#e4edf7;direction:ltr}
#meterView .meter-distance-control>div{flex:1;min-width:0}#meterView .meter-distance-control label{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.2}#meterView .meter-distance-control output{margin-left:auto;font-weight:700}#meterView #meterRadius{width:100%;height:18px;margin:3px 0 0;accent-color:#c8e6fa;cursor:pointer;touch-action:pan-x}#meterView .meter-distance-grid{display:flex;justify-content:space-between;font-size:9px;line-height:1;color:#d4e3f0}
#meterView .meter-focus-exit{display:none!important}#meterView .meter-remote-state{color:white}
#meterView .ar-remote-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0}
#meterView .ar-remote-tools{position:absolute;bottom:65px;left:10px;right:10px;max-width:650px;max-height:120px;overflow:auto;margin:auto;z-index:3;display:flex;gap:6px;flex-wrap:wrap;padding:8px;border-radius:10px;background:#122e49ee;color:#fff;font-size:12px}#meterView .ar-remote-tools a{color:#d5eaff}#meterView .ar-remote-heading{display:flex;align-items:center;gap:6px}#meterView .ar-remote-tools button{background:#153b5b;color:white;border:1px solid #8aabc3;border-radius:8px;padding:6px}#meterView .ar-panorama-ready .ar-remote-tools{display:none}
#meterView .ar-remote-actions{position:absolute;bottom:66px;left:10px;z-index:4;display:flex;gap:5px}#meterView .ar-remote-actions button{width:34px;height:34px;border:1px solid #9bb6cb;border-radius:10px;background:#14324ee8;color:#fff}#meterView .ar-remote-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}#meterView .ar-motion-hint{position:absolute;bottom:38px;max-width:240px;background:#142e47ee;color:#fff;padding:8px;border-radius:8px;font-size:12px}
#meterView.meter-immersive{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important}#meterView.meter-immersive .meter-status{display:none}
body.meter-open{overflow:hidden!important;overscroll-behavior:none}
#meterFilters,.meter-number-details,.meter-location-dialog{box-sizing:border-box;max-width:calc(100vw - 20px);width:600px;max-height:90dvh;overflow:auto;border:1px solid #829db2;border-radius:16px;padding:18px;background:#142c43;color:#fff;font:14px Dubai,Arial,sans-serif}
#meterFilters::backdrop,.meter-number-details::backdrop,.meter-location-dialog::backdrop{background:#071321ad}#meterFilters h2{font-size:20px;margin:0 0 12px}.meter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.meter-fields label{display:grid;gap:5px;min-width:0}.meter-fields input,.meter-fields select{box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:8px;border:1px solid #93abc0;border-radius:8px;background:#f6f9fc;color:#19354c;font:inherit}.meter-filter-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.meter-filter-actions button,.meter-location-dialog button,.meter-number-details button{padding:9px 15px;border:1px solid #a0bfd4;border-radius:9px;background:#d5e8f6;color:#18334b;font:inherit;cursor:pointer}.meter-filter-error{color:#ffc4ca}.meter-location-search{display:flex;gap:6px}.meter-location-search input{flex:1;min-width:0;padding:9px;border-radius:8px}.meter-location-results{display:grid;max-height:140px;overflow:auto}.meter-location-map{height:50dvh;min-height:200px;margin-top:10px}.meter-location-dialog button:disabled{opacity:.5}.meter-number-details{text-align:center}.meter-number-details p{font-size:32px;overflow-wrap:anywhere}
@media(max-width:999px){#meterView #meterGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;max-height:none!important;gap:8px}#meterView .meter-card{padding:12px!important;gap:5px}#meterView .meter-card h2{font-size:clamp(16px,7cqi,23px)!important}}
@media(max-width:650px){#meterView{padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}#meterView[open]{gap:5px}#meterView>.meter-top{height:36px!important;gap:5px}#meterView .meter-wordmark{font-size:16px;letter-spacing:0}#meterView .meter-top button{min-width:30px;min-height:32px;padding:5px 7px;font-size:11px}#meterView .meter-status{font-size:10px;min-height:14px}#meterView #meterPosition{display:none}#meterView .meter-switches{gap:4px}#meterView .meter-switches>div{gap:4px}#meterView #meterTypeTabs,#meterView #meterModeTabs{flex-basis:100%}#meterView .meter-switches button,#meterView #meterUnit{font-size:11px;min-height:28px;padding:5px 9px}#meterView .meter-selected-tags{gap:8px}#meterView .meter-selected-tags strong{font-size:19px;padding:6px 16px}#meterView .meter-selected-tags .meter-purpose-tag{font-size:16px;padding:7px 12px}#meterView .meter-card{padding:10px 8px!important;gap:3px}#meterView .meter-card h2{font-size:17px!important}#meterView .meter-card-head button{width:24px;height:24px;font-size:14px}#meterView .meter-description{display:none}#meterView .meter-unit{font-size:12px!important;margin-top:5px!important}#meterView .meter-card-foot{min-height:14px;font-size:11px}#meterView .meter-distance-control{padding:4px 9px;min-height:44px}#meterView .meter-distance-control label{font-size:11px}#meterView .meter-distance-grid{font-size:8px}}
@media(max-width:350px){#meterView .meter-wordmark{font-size:14px}#meterView .meter-top button{min-width:28px;padding:5px}#meterView .meter-card{padding:8px 6px!important}#meterView .meter-card h2{font-size:16px!important}#meterView .meter-unit{font-size:11px!important}}
@media(orientation:landscape) and (max-height:550px){#meterView[open]{gap:4px}#meterView .meter-status,#meterView .meter-wordmark{display:none}#meterView>.meter-top{position:absolute!important;top:6px;right:8px;left:auto;width:auto!important;height:32px!important}#meterView .meter-top button{min-width:28px;min-height:28px;padding:4px;font-size:11px}#meterView .meter-switches{justify-content:flex-start;padding-right:220px;min-height:32px}#meterView .meter-switches button,#meterView #meterUnit{font-size:10px;min-height:26px;padding:4px 7px}#meterView .meter-selected-tags strong{font-size:16px;padding:4px 15px}#meterView .meter-selected-tags .meter-purpose-tag{font-size:14px}#meterView #meterGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:6px}#meterView .meter-card{padding:8px!important;gap:3px}#meterView .meter-card h2{font-size:16px!important}#meterView .meter-description{display:none}#meterView .meter-card-head button{width:22px;height:22px;font-size:13px}#meterView .meter-unit{font-size:11px!important;margin-top:4px!important}#meterView .meter-card-foot{min-height:12px;font-size:10px}#meterView .meter-distance-control{min-height:38px;padding:3px 10px}#meterView .meter-distance-grid{display:none}}
@media(prefers-reduced-motion:reduce){#meterView *{transition:none!important}}
#meterView [hidden]{display:none!important}
#meterView #meterMetricTabs{flex-wrap:wrap}
#meterView #meterComparisonPeriod{width:auto!important;min-width:0;max-width:100%;min-height:32px;padding:6px 10px;border:1px solid #6e91ae;border-radius:18px;background:#173552ed;color:#f5f8fc}
#meterView[data-comparison=true] .meter-selected-tags{height:60px;min-height:60px}
#meterView[data-comparison=true] .meter-selected-tags strong{font-size:clamp(16px,2vw,22px)}
@media(max-width:650px){#meterView #meterMetricTabs{flex-basis:100%}#meterView #meterComparisonPeriod{font-size:11px;min-height:28px;padding:5px 8px}#meterView[data-comparison=true] .meter-selected-tags strong{font-size:17px;padding-inline:12px}}
@media(orientation:landscape) and (max-height:550px){#meterView[data-comparison=true] .meter-selected-tags{height:38px;min-height:38px}#meterView[data-comparison=true] .meter-selected-tags strong{font-size:15px}#meterView #meterComparisonPeriod{font-size:10px;min-height:26px;padding:4px 7px}}
@media(orientation:landscape) and (max-height:550px){#meterView .meter-switches{padding-right:250px}}
/* Keep the scene visible around shorter, high-contrast counters. */
#meterView #meterGrid{flex:0 1 auto;height:clamp(260px,40dvh,360px)!important;max-height:clamp(260px,40dvh,360px)!important}
#meterView.meter-transparent .meter-card{background:rgba(8,35,68,.86)!important}
#meterView.meter-transparent .meter-card[data-movement=up]{background:rgba(9,71,42,.91)!important}
#meterView.meter-transparent .meter-card[data-movement=down]{background:rgba(103,26,42,.91)!important}
#meterView #meterCurrency,#meterView #meterSourceBasis,#meterView #meterSourceType{width:auto!important;min-width:0;max-width:100%;min-height:32px;padding:6px 9px;border:1px solid #6e91ae;border-radius:18px;background:#173552ed;color:#f5f8fc}
#meterView[data-sources=true] .meter-card[data-market-source=mean] .meter-description{display:block;font-size:11px;line-height:1.2}
#meterView .meter-evidence{display:block;max-width:100%;font-size:11px;line-height:1.25;color:#dce7f0;margin-top:5px}
#meterView .meter-evidence:empty{display:none}
#meterView .meter-card[data-updating=true] .meter-card-head button{border-color:#9dd7f0}
#meterView.meter-immersive #meterGrid{flex:1 1 0!important;height:auto!important;max-height:680px!important;min-height:0!important}
#meterView .meter-description:empty{display:none!important}
#meterView[data-sources=true] .meter-card[data-market-source=mean] .meter-description:empty{display:none}
@media(max-width:650px){#meterView .meter-card{padding-block:8px!important}#meterView .meter-unit{margin-top:3px!important}#meterView #meterPosition{display:block;max-width:56%;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.meter-location-dialog>.ai-top-home{display:none!important}
.meter-location-dialog{overscroll-behavior:contain}
.meter-location-map,.meter-location-map .gm-style,.meter-location-map canvas{touch-action:none!important;overscroll-behavior:contain}
.meter-location-layers{display:flex;justify-content:center;gap:7px;margin:10px 0}
.meter-location-layers button[aria-pressed=true]{background:#d5e8f6;color:#18334b}
.meter-location-layers button[aria-pressed=false]{background:#1a3c5c;color:white}
@media(max-width:650px){#meterView #meterCurrency,#meterView #meterSourceBasis,#meterView #meterSourceType{font-size:11px;min-height:28px;padding:5px 7px}#meterView #meterSourcePurposes{flex-basis:100%}#meterView #meterGrid{max-height:clamp(260px,38dvh,340px)!important;height:clamp(260px,38dvh,340px)!important}}
@media(max-width:400px){#meterView .meter-wordmark{display:none}}
@media(orientation:landscape) and (max-height:550px){#meterView .meter-switches{padding-right:320px}#meterView #meterGrid{height:auto!important;max-height:40dvh!important;flex:1 1 0}}
@media(max-width:650px){#meterView #meterSourcePurposes{flex-basis:auto}#meterView #meterSourceType{width:110px!important}#meterView #meterSourceBasis{width:105px!important}#meterView #meterLocation{width:28px;min-width:28px;font-size:0;padding:4px}#meterView #meterLocation:before{content:'⌖';font-size:17px}}

#meterView .meter-pages{display:flex;flex:none;gap:2px;padding:2px;border:1px solid #8da5bc;border-radius:10px;background:#102b46e6}#meterView .meter-pages button{min-width:22px;min-height:28px;padding:3px 5px;border:0;background:transparent;border-radius:6px;font-size:12px}#meterView .meter-pages button[aria-current=page]{background:#d0e6f7;color:#102b46;font-weight:800}#meterView #meterCompare,#meterView #meterSourcesView{display:none!important}

@media(max-width:480px){#meterView .meter-wordmark span{display:none}#meterView .meter-pages button{min-width:18px;padding:3px 4px}}


/* Compact square counters on laptops and tablets; keep both phone layouts. */
@media (min-width:651px) and (min-height:551px),
       (min-width:1000px) and (pointer:fine){
  #meterView{overflow-y:auto!important}
  #meterView #meterGrid,
  #meterView.meter-immersive #meterGrid{
    flex:0 0 auto!important;
    height:auto!important;
    max-height:none!important;
    grid-template-rows:none!important;
    grid-auto-rows:max-content!important;
    align-items:start;
    align-content:start;
  }
  #meterView .meter-card{
    height:auto!important;
    aspect-ratio:1 / 1;
    padding-block:10px!important;
    gap:4px;
  }
}

/* The shared Meter 1/2/3 brand is also the route back to the main map. */
#meterView a.meter-wordmark{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;min-height:36px;touch-action:manipulation}
#meterView a.meter-wordmark:hover{color:#d5eaff}
#meterView a.meter-wordmark:focus-visible{outline:2px solid #d5eaff;outline-offset:3px;border-radius:5px}


/* AI HOME2 mobile + iPad: one readable meter UI, no floating control collision.
   The native 1 Property / 2 Compare / 3 Sources tab bar is the ONLY selector. */
@media (max-width:1024px){
 #meterView{
  overflow-y:auto!important;overflow-x:hidden!important;
  padding:calc(8px + env(safe-area-inset-top,0px)) max(9px,env(safe-area-inset-right))
          calc(12px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-left))!important;
  scroll-padding-top:8px;touch-action:pan-y;
 }
 #meterView[open]{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important}
 #meterView>.meter-top{
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
  grid-template-rows:42px 49px!important;
  width:100%!important;height:auto!important;min-height:99px!important;
  padding:0!important;gap:7px!important;align-items:center!important;
  overflow:visible!important;direction:ltr!important;
 }
 #meterView .meter-top .meter-wordmark{
  grid-column:1!important;grid-row:1!important;align-self:center!important;
  display:flex!important;margin:0!important;min-width:0!important;
  font-size:clamp(17px,3.4vw,24px)!important;white-space:nowrap!important;
  overflow:hidden;text-overflow:ellipsis;letter-spacing:0!important;
 }
 #meterView .meter-wordmark span{display:inline!important}
 #meterView .meter-top #meterStart{grid-column:2!important;grid-row:1!important}
 #meterView .meter-top #meterControls{grid-column:3!important;grid-row:1!important}
 #meterView .meter-top #meterClose{grid-column:4!important;grid-row:1!important}
 #meterView .meter-top #meterStart,
 #meterView .meter-top #meterControls,
 #meterView .meter-top #meterClose{
  width:auto!important;min-width:43px!important;min-height:42px!important;
  border-radius:11px!important;padding:6px 10px!important;
  font-size:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 }
 #meterView .meter-top .meter-pages{
  grid-column:1/-1!important;grid-row:2!important;
  align-self:stretch!important;justify-self:stretch!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;width:100%!important;min-width:0!important;
  padding:4px!important;border:1px solid #557b9b!important;
  border-radius:13px!important;background:#142f4b!important;
  direction:ltr!important;
 }
 #meterView .meter-pages button{
  box-sizing:border-box!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;gap:7px!important;
  width:100%!important;min-width:0!important;min-height:39px!important;
  padding:6px 8px!important;border:0!important;border-radius:9px!important;
  background:transparent!important;color:#dbeafa!important;
  font-weight:650!important;font-size:clamp(11px,1.8vw,15px)!important;
 }
 #meterView .meter-pages button b{font-size:16px;font-variant-numeric:tabular-nums;flex-shrink:0}
 #meterView .meter-pages button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #meterView .meter-pages button[aria-current=page]{
  background:#d6e9f7!important;color:#133e60!important;
  font-weight:800!important;box-shadow:0 1px 5px #061b3242!important;
 }
 #meterView .meter-status{width:100%!important;min-height:18px!important;margin:0!important;padding:0 3px!important;font-size:10px!important}
 #meterView .meter-toolbar{display:none!important;flex-wrap:wrap!important;gap:8px!important}
 #meterView.meter-expanded .meter-toolbar{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  margin:0!important;padding:10px!important;
  border:1px solid #466e8f!important;border-radius:12px!important;background:#12304e!important;
 }
 #meterView .meter-toolbar #meterScreenshot,#meterView .meter-toolbar #meterFull{
  min-height:38px!important;min-width:44px!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
 }
 #meterView .meter-switches{
  display:flex!important;flex:0 0 auto!important;
  flex-wrap:wrap!important;justify-content:center!important;
  gap:7px!important;max-width:100%!important;padding:0 2px!important;
  overflow:visible!important;
 }
 #meterView .meter-switches>div{
  max-width:100%!important;min-width:0!important;
  justify-content:flex-start!important;gap:6px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;
 }
 #meterView .meter-switches>div::-webkit-scrollbar{display:none}
 #meterView #meterTypeTabs,#meterView #meterModeTabs,#meterView #meterMetricTabs{
  flex:1 0 100%!important;justify-content:center!important;
  padding:1px 0!important;
 }
 #meterView .meter-switches button,
 #meterView .meter-switches select{
  flex-shrink:0!important;min-height:35px!important;
  padding:7px 10px!important;
  font-size:clamp(11px,1.7vw,13px)!important;
  border-radius:10px!important;white-space:nowrap!important;
 }
 #meterView .meter-selected-tags{
  min-height:35px!important;max-width:100%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;padding:0!important;
 }
 #meterView .meter-selected-tags strong,
 #meterView[data-comparison=true] .meter-selected-tags strong{
  font-size:clamp(14px,2.6vw,19px)!important;
  padding:6px 12px!important;max-width:60%!important;
  border-radius:10px!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
 #meterView #meterGrid,
 #meterView.meter-immersive #meterGrid{
  display:grid!important;flex:0 0 auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:none!important;grid-auto-rows:max-content!important;
  gap:9px!important;align-items:stretch!important;align-content:start!important;
  width:100%!important;height:auto!important;max-height:none!important;
  min-height:0!important;margin:0!important;padding:0!important;
  position:relative!important;pointer-events:auto!important;
 }
 #meterView .meter-card{
  height:clamp(165px,25dvh,240px)!important;min-height:165px!important;
  aspect-ratio:auto!important;box-sizing:border-box!important;
  padding:12px!important;gap:5px!important;overflow:hidden!important;
 }
 #meterView .meter-card h2{font-size:clamp(14px,4cqi,20px)!important}
 #meterView .meter-card .meter-value,
 #meterView .meter-card .meter-value[data-length=long]{
  font-size:clamp(28px,20cqi,82px)!important;
  line-height:1.08!important;
  max-width:100%!important;overflow:hidden;text-overflow:clip;
 }
 #meterView .meter-card .meter-unit{font-size:clamp(12px,3cqi,16px)!important;margin-top:4px!important}
 #meterView .meter-distance-control{
  flex:0 0 auto!important;width:100%!important;
  margin:4px auto 0!important;min-height:55px!important;
  padding:9px 12px!important;
 }
}
@media (max-width:520px){
 #meterView .meter-top .meter-wordmark{font-size:17px!important}
 #meterView .meter-top #meterStart{font-size:11px!important;padding-inline:7px!important}
 #meterView .meter-top #meterControls,#meterView .meter-top #meterClose{min-width:39px!important;width:39px!important;padding:5px!important}
 #meterView .meter-pages button{font-size:12px!important;gap:4px!important;padding:5px!important}
 #meterView .meter-pages button b{font-size:15px!important}
 #meterView .meter-card{height:clamp(152px,23dvh,185px)!important;min-height:152px!important;padding:9px!important}
 #meterView .meter-card-head button{width:25px!important;height:25px!important}
 #meterView .meter-switches{justify-content:center!important}
 #meterView .meter-selected-tags strong{padding:5px 8px!important}
}
@media(max-width:1024px) and (orientation:landscape) and (max-height:650px){
 #meterView #meterGrid,#meterView.meter-immersive #meterGrid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
 #meterView .meter-card{height:clamp(128px,32dvh,175px)!important;min-height:128px!important}
 #meterView .meter-selected-tags{min-height:29px!important}
}


/* Reliable Full Screen on iOS/iPadOS: internal Meter Focus View, never native Fullscreen API.
   Exit remains reachable even when the advanced toolbar is collapsed. */
#meterView.meter-focus-mode{
 inset:0!important;
 width:100vw!important;max-width:none!important;
 height:100dvh!important;max-height:none!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
 background:#071626!important;
}
#meterView.meter-focus-mode>.meter-status,
#meterView.meter-focus-mode>.meter-toolbar,
#meterView.meter-focus-mode>.meter-switches,
#meterView.meter-focus-mode>.meter-selected-tags,
#meterView.meter-focus-mode>.meter-distance-control,
#meterView.meter-focus-mode>.meter-footnote{display:none!important}
#meterView.meter-focus-mode #meterGrid,
#meterView.meter-focus-mode.meter-immersive #meterGrid{
 display:grid!important;
 flex:1 0 auto!important;
 width:100%!important;
 height:auto!important;max-height:none!important;
 align-items:stretch!important;
 align-content:start!important;
 margin:0!important;
 padding:0!important;
}
#meterView.meter-focus-mode #meterFocusExit{
 display:flex!important;
 position:sticky!important;
 bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
 margin:12px 0 0 auto!important;
 padding:11px 18px!important;
 flex:0 0 auto!important;
 align-self:flex-end!important;
 width:auto!important;min-width:130px!important;min-height:44px!important;
 z-index:40!important;
 align-items:center!important;justify-content:center!important;gap:7px!important;
 background:#d4eafa!important;color:#153e5b!important;
 border:1px solid #6ea2c5!important;border-radius:12px!important;
 font:700 13px Dubai,Arial,sans-serif!important;
 box-shadow:0 2px 12px #06172a73!important;
 cursor:pointer!important;
 pointer-events:auto!important;
}
#meterView.meter-focus-mode #meterFocusExit:focus-visible{
 outline:3px solid #fff!important;outline-offset:3px!important;
}
@media(max-width:1024px){
 #meterView.meter-focus-mode .meter-card{
  height:clamp(190px,36dvh,420px)!important;
  min-height:190px!important;
 }
 #meterView.meter-focus-mode .meter-top{
  flex:0 0 auto!important;
 }
}
@media(max-width:520px){
 #meterView.meter-focus-mode .meter-card{
  height:clamp(190px,35dvh,260px)!important;
 }
 #meterView.meter-focus-mode #meterFocusExit{font-size:13px!important;}
}


/* 2026-11-11 Meter UI final compact pass: mic belongs to scene row, not title. */
#meterView .meter-switches > .ai2-immersive-mic.meter-voice-button{
 position:static!important;inset:auto!important;top:auto!important;
 right:auto!important;left:auto!important;bottom:auto!important;
 transform:none!important;float:none!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;order:3!important;
 z-index:3!important;min-width:39px!important;width:39px!important;
 min-height:35px!important;height:35px!important;
 margin:0!important;padding:6px!important;
 border-radius:10px!important;
 border:1px solid #5d92b4!important;
 background:#245476!important;color:#fff!important;
 box-shadow:none!important;
}
#meterView .meter-switches > .ai2-immersive-mic svg{
 width:20px!important;height:20px!important;
 stroke:currentColor!important;fill:none!important;
}
#meterView .meter-switches #meterTypeTabs{order:0!important}
#meterView .meter-switches #meterMetricTabs,
#meterView .meter-switches #meterSourcePurposes{order:1!important}
#meterView .meter-switches #meterModeTabs{order:2!important}
#meterView .meter-switches > :not(div):not(.meter-voice-button){order:4}
#meterView a.meter-wordmark,
#meterView .meter-top .meter-wordmark{
 width:max-content!important;max-width:100%!important;
 min-height:0!important;height:auto!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 outline:0!important;justify-self:start!important;
 text-align:left!important;text-decoration:none!important;direction:ltr!important;
 display:inline-flex!important;align-items:baseline!important;
 font-size:19px!important;line-height:1.2!important;
}
#meterView a.meter-wordmark:focus-visible{outline:2px solid #d5eaff!important;outline-offset:3px!important}
@media(max-width:1024px){
 #meterView>.meter-top{
  grid-template-columns:minmax(0,1fr) auto 39px 39px 39px!important;
  grid-template-rows:38px 35px!important;
  height:auto!important;min-height:79px!important;
  max-height:none!important;gap:5px!important;
 }
 #meterView .meter-top .meter-wordmark{
  grid-column:1!important;grid-row:1!important;
  font-size:clamp(15px,2.3vw,20px)!important;
 }
 #meterView .meter-top #meterStart{grid-column:2!important;grid-row:1!important}
 #meterView .meter-top #meterFull{grid-column:3!important;grid-row:1!important}
 #meterView .meter-top #meterControls{grid-column:4!important;grid-row:1!important}
 #meterView .meter-top #meterClose{grid-column:5!important;grid-row:1!important}
 #meterView .meter-top #meterFull,
 #meterView .meter-top #meterControls,
 #meterView .meter-top #meterClose{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:39px!important;min-width:39px!important;height:38px!important;min-height:38px!important;
  padding:5px!important;font-size:19px!important;
  border-radius:10px!important;
 }
 #meterView .meter-top #meterStart{
  width:auto!important;min-width:54px!important;
  height:38px!important;min-height:38px!important;padding:5px 8px!important;
 }
 #meterView .meter-top .meter-pages{
  grid-column:1/-1!important;grid-row:2!important;
  width:100%!important;min-height:35px!important;
  height:35px!important;max-height:35px!important;
  padding:3px!important;gap:4px!important;
  border-radius:10px!important;overflow:hidden!important;
 }
 #meterView .meter-pages button{
  min-height:27px!important;height:27px!important;max-height:27px!important;
  padding:3px 5px!important;gap:5px!important;
  border-radius:7px!important;font-size:11px!important;
  line-height:1!important;
 }
 #meterView .meter-pages button b{font-size:13px!important}
 #meterView .meter-status{min-height:15px!important}
 #meterView .meter-switches > .ai2-immersive-mic.meter-voice-button{
  height:34px!important;min-height:34px!important;width:38px!important;min-width:38px!important;
 }
 #meterView .meter-toolbar #meterScreenshot{display:inline-flex!important}
}
@media(max-width:390px){
 #meterView .meter-top .meter-wordmark{font-size:15px!important}
 #meterView .meter-top #meterStart{font-size:10px!important;min-width:53px!important;padding:5px!important}
 #meterView .meter-pages button{font-size:10px!important;gap:4px!important}
}
@media(max-width:1024px) and (orientation:landscape) and (max-height:650px){
 #meterView>.meter-top{
  position:relative!important;inset:auto!important;
  width:100%!important;height:auto!important;
 }
}


/* 2026-11-15: desktop/tablet Meter toolbar stability.
   One clean logo/control row and a separate full-width, clickable 1/2/3 row.
   Do not allow the legacy 58vw tab cap or landscape overrides to clip buttons. */
#meterView[open]{
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow-x:hidden!important;
  overscroll-behavior-x:none!important;
}
#meterView[open]>.meter-top{
  position:relative!important;inset:auto!important;
  display:grid!important;
  grid-template-columns:minmax(88px,1fr) minmax(54px,max-content) repeat(4,40px)!important;
  grid-template-rows:42px minmax(40px,auto)!important;
  column-gap:6px!important;row-gap:7px!important;
  align-items:center!important;justify-items:stretch!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:92px!important;max-height:none!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;direction:ltr!important;
  z-index:50!important;isolation:isolate!important;pointer-events:auto!important;
}
#meterView[open]>.meter-top .meter-wordmark{
  grid-column:1!important;grid-row:1!important;
  display:inline-flex!important;align-items:center!important;align-self:center!important;
  justify-self:start!important;width:max-content!important;max-width:100%!important;
  min-width:0!important;margin:0!important;padding:0!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  border-radius:0!important;background:transparent!important;
  font-size:clamp(17px,2vw,23px)!important;line-height:1!important;
  font-weight:800!important;text-align:left!important;white-space:nowrap!important;
  color:#f2f8ff!important;overflow:hidden!important;direction:ltr!important;
  z-index:4!important;pointer-events:auto!important;
}
#meterView[open]>.meter-top .meter-wordmark span{
  display:inline!important;font-weight:400!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
#meterView[open]>.meter-top #meterStart{grid-column:2!important;grid-row:1!important;min-width:54px!important}
#meterView[open]>.meter-top #meterScreenshot{grid-column:3!important;grid-row:1!important}
#meterView[open]>.meter-top #meterFull{grid-column:4!important;grid-row:1!important}
#meterView[open]>.meter-top #meterControls{grid-column:5!important;grid-row:1!important}
#meterView[open]>.meter-top #meterClose{grid-column:6!important;grid-row:1!important}
#meterView[open]>.meter-top :is(#meterScreenshot,#meterFull,#meterControls,#meterClose){
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:6px!important;justify-self:center!important;
}
#meterView[open]>.meter-top #meterStart{
  height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:5px 8px!important;justify-self:center!important;
  font-size:clamp(10px,1.1vw,13px)!important;
}
#meterView[open]>.meter-top button,
#meterView[open]>.meter-top a.meter-wordmark{
  position:relative!important;z-index:4!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  touch-action:manipulation!important;cursor:pointer!important;
}
#meterView[open]>.meter-top .meter-pages{
  grid-column:1/-1!important;grid-row:2!important;
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:40px!important;height:auto!important;max-height:none!important;
  padding:4px!important;margin:0!important;gap:4px!important;
  overflow:visible!important;white-space:normal!important;
  border-radius:11px!important;box-sizing:border-box!important;
  direction:ltr!important;align-self:stretch!important;justify-self:stretch!important;
  z-index:5!important;pointer-events:auto!important;
}
#meterView[open]>.meter-top .meter-pages button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;flex-wrap:nowrap!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:5px 8px!important;box-sizing:border-box!important;
  white-space:nowrap!important;overflow:hidden!important;
  font-size:clamp(12px,1.3vw,15px)!important;line-height:1.15!important;
  cursor:pointer!important;pointer-events:auto!important;
}
#meterView[open]>.meter-top .meter-pages button b{
  font-size:inherit!important;flex-shrink:0!important;
}
#meterView[open]>.meter-top .meter-pages button span{
  display:inline!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
}
#meterView[open]>.meter-top :is(button,.meter-wordmark):focus-visible{
  outline:2px solid #d7edff!important;outline-offset:1px!important;
}
@media(max-width:600px){
 #meterView[open]>.meter-top{
   grid-template-columns:minmax(67px,1fr) 54px repeat(4,34px)!important;
   grid-template-rows:37px minmax(38px,auto)!important;
   gap:5px!important;min-height:80px!important;
 }
 #meterView[open]>.meter-top .meter-wordmark{font-size:clamp(14px,4vw,18px)!important}
 #meterView[open]>.meter-top :is(#meterScreenshot,#meterFull,#meterControls,#meterClose){
   width:34px!important;min-width:34px!important;max-width:34px!important;
   height:36px!important;min-height:36px!important;max-height:36px!important;
 }
 #meterView[open]>.meter-top #meterStart{
   min-width:52px!important;height:36px!important;min-height:36px!important;
   font-size:10px!important;padding-inline:4px!important;
 }
 #meterView[open]>.meter-top .meter-pages button{
   min-height:30px!important;height:30px!important;max-height:30px!important;
   gap:4px!important;padding:4px 5px!important;font-size:clamp(10px,2.7vw,12px)!important;
 }
}
@media(max-width:370px){
 #meterView[open]>.meter-top{
   grid-template-columns:minmax(57px,1fr) 49px repeat(4,31px)!important;
   gap:3px!important;
 }
 #meterView[open]>.meter-top .meter-wordmark{font-size:13px!important}
 #meterView[open]>.meter-top :is(#meterScreenshot,#meterFull,#meterControls,#meterClose){
   width:31px!important;min-width:31px!important;max-width:31px!important;
 }
 #meterView[open]>.meter-top #meterStart{min-width:49px!important}
}
/* Cards must remain screen-width fitted, including landscape browser zoom. */
#meterView[open] #meterGrid{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
#meterView[open] .meter-card{min-width:0!important;max-width:100%!important}
