/* Declutter (owner, 2026-11-20): the styles of declutter.js, loaded last on every console page. Notes folded behind ⓘ,
   the answer's credits as one "Sources" line, warnings as chips; phones get a sticky request bar, the map before the
   results and a closed code inspector; desktop at <= 1280 px is a little tighter. */

/* ---- ⓘ buttons and folded notes ---- */
.dc-note:not(.dc-show){display:none!important}
.dc-info{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;width:26px;height:26px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#7d8873;cursor:pointer;vertical-align:middle;font:inherit}
.dc-info:after{content:"";position:absolute;inset:-9px}
.dc-info svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}
.dc-info:hover{color:var(--accent,#3156d7)}
.dc-info:focus-visible{outline:2px solid var(--accent,#3156d7);outline-offset:1px}
.dc-info[aria-expanded=true]{color:var(--accent,#3156d7);background:#eef2fd}
.dc-info[hidden]{display:none!important}
.dc-info-text{width:auto;height:24px;border-radius:4px;padding:0 6px 0 2px;font-size:12px;color:#7d8873}
.dc-info-text:after{inset:-10px 0}
.dc-info-text svg{width:13px;height:13px}
.poi-heading>.dc-info,.distance-option-head>.dc-info{margin-left:auto}
.mode-menu{grid-template-columns:auto minmax(0,1fr) auto}
.mode-menu>.dc-info{grid-column:3;grid-row:1}
.mode-menu>.dc-summary,.mode-menu>.dc-run,.mode-menu>.dc-edit{display:none}
.mode-summary.dc-show{margin-top:6px}
h1.dc-h1{display:inline-block}
h1.dc-h1+.dc-info{margin-left:6px;vertical-align:top;margin-top:2px}
.results-footnote{align-items:center}
.results-footnote>svg{display:none}
.results-footnote>.dc-info{order:-1}
.results-footnote:has(> .dc-info[hidden]){display:none}
.results-footnote>.dc-note.dc-show{flex:1 1 100%;font-size:12px}
.results-footnote:has(.dc-show){flex-wrap:wrap}
/* "Tigris native only": the disabled format menu says so in its tooltip */
#format-hint{display:none!important}

/* ---- the answer's data credits: one line ---- */
.results-credits.dc-credits{padding-top:4px;padding-bottom:4px}
.results-credits.dc-credits:not(.dc-open) .credit-line{display:none}
/* (the result card's section style, app.css: a chevron, then the title; owner 2026-11-25) */
.dc-credits-toggle{display:inline-flex;align-items:center;gap:7px;width:fit-content;max-width:100%;min-height:30px;padding:0 4px 0 0;border:0;background:none;color:var(--ink);font:600 11.5px/1.4 var(--sans,system-ui);letter-spacing:0;text-transform:none;text-align:left;cursor:pointer}
.dc-credits-toggle:before,.results-footnote>.dc-info-text:before{content:"";flex:none;width:5px;height:5px;margin:0 2px 0 1px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);opacity:.7;transition:transform .15s}
.dc-credits.dc-open .dc-credits-toggle:before,.results-footnote>.dc-info-text[aria-expanded=true]:before{transform:rotate(45deg) translate(-1px,-1px)}
.dc-credits-toggle:hover{color:var(--accent,#3156d7)}
.dc-credits-toggle em{font-style:normal;font-weight:450;color:var(--muted);font-size:11.5px}
.dc-credits-toggle i{display:none}
.results-footnote>.dc-info-text{gap:7px;width:auto;height:auto;min-height:30px;padding:0 4px 0 0;border-radius:4px;background:none;color:var(--ink);font:600 11.5px/1.4 var(--sans,system-ui)}
.results-footnote>.dc-info-text svg{display:none}
.results-footnote>.dc-info-text:hover,.results-footnote>.dc-info-text[aria-expanded=true]{color:var(--accent,#3156d7);background:none!important}
.dc-credits.dc-open .credit-line{display:block;font-size:12px}

/* ---- warnings returned with an answer: chips ---- */
.dc-chip{position:relative;display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 26px 4px 9px!important;border-radius:5px;cursor:pointer;line-height:1.5}
.dc-chip:after{content:"▾";position:absolute;right:8px;top:4px;font-size:11px;opacity:.7}
.dc-chip.dc-open{white-space:normal;overflow:visible}
.dc-chip.dc-open:after{content:"▴"}
.dc-chip:focus-visible{outline:2px solid var(--accent,#3156d7);outline-offset:1px}
.answer-warning.dc-chip{margin:8px 12px!important;background:#fff6dc;color:#6b4e00;font-size:12px}
.street-estimate-warning.dc-chip{background:#fff6dc}

/* ---- desktop at <= 1280 px: tighter ---- */
@media(max-width:1280px) and (min-width:621px){
  .app-header{height:58px;padding:0 18px;gap:14px}
  .request-panel{padding-left:16px!important;padding-right:16px!important}
  .request-panel>.results-panel{margin-left:-16px!important;margin-right:-16px!important}
  .panel-heading{margin-bottom:10px}
  .panel-heading h1{font-size:17px}
  #request-fields{margin-top:14px}
  .results-header{padding:10px 14px}
  .result-select{padding:11px 14px}
  .inspector-top{padding:0 14px}
}

/* ---- phones and small screens ---- */
@media(max-width:620px){
  html.dc{-webkit-text-size-adjust:100%}
  body{overflow-x:hidden}
  .app-header{height:50px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:8px}
  .brand{font-size:21px}
  .brand-symbol,.brand-symbol svg{width:22px}
  #map-gallery-link,#site-link{display:none!important}
  .header-actions{gap:4px}
  .header-actions>.text-button,.header-actions .samples-button,.header-actions .apikey-button,.header-actions .cost-chip{min-height:40px;padding-left:6px;padding-right:6px}
  .app-footer{padding:8px max(12px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));font-size:11px}

  /* the console: one column, request bar, map, results, code */
  .console-layout{display:flex!important;flex-direction:column;height:auto!important;min-height:0}
  .console-layout>.request-panel{display:contents}
  .console-layout>.workspace{display:contents}
  .request-panel>.panel-heading{display:none}
  .request-panel>.mode-menu{order:1;position:sticky;top:0;z-index:1200;padding:2px max(12px,env(safe-area-inset-right)) 2px max(12px,env(safe-area-inset-left));background:#fafaf7;border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto auto;column-gap:6px}
  .request-panel>.mode-menu .mode-menu-label{display:none}
  .request-panel>.mode-menu select,.request-panel>.mode-menu .mode-menu-icon,.request-panel>.mode-menu .mode-menu-caret{grid-column:1}
  .mode-menu>.dc-info{grid-column:2;width:44px;height:44px}
  .mode-menu>.dc-edit{display:inline-flex;grid-column:3;grid-row:1}
  .request-panel>.mode-summary{order:2;margin:0;padding:6px 12px 0;font-size:12px}
  .request-panel>.format-row{order:3;margin:0;padding:8px 12px 0}
  .request-panel>#request-form{order:4;padding:0 12px 10px;border-bottom:1px solid var(--line);background:var(--surface,#fbfbf8)}
  .request-panel>.request-bottom{order:5}
  .workspace>.workspace-toolbar{order:6;padding:0 12px;height:36px}
  .workspace>.geography-workspace{order:7}
  .request-panel>.results-panel{order:8;margin:0!important;min-height:0!important;max-height:none!important;border-top:1px solid var(--line)}
  .workspace>.inspector{order:9}
  .app-footer{order:10}
  #request-fields{margin-top:10px}

  .dc-edit,.dc-run,.dc-summary{align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line-dark);border-radius:6px;background:#fff;color:var(--ink);font:600 13px var(--sans,system-ui);cursor:pointer}
  .dc-edit{min-width:60px;padding:0 12px}
  .dc-edit[aria-expanded=true]{background:var(--accent,#3156d7);border-color:var(--accent,#3156d7);color:#fff}
  .dc-run{width:44px;padding:0}
  .dc-run svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  /* the query: a full-width line that reads like the search box it opens (ellipsis past the width); a block, not flex,
     so text-overflow applies to its text */
  .dc-summary{display:block;min-width:0;width:100%;padding:0 12px 0 34px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:450;line-height:42px;color:var(--ink);text-align:left;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.6' fill='none' stroke='%236b746c' stroke-width='1.6'/%3E%3Cpath d='m10.4 10.4 3.4 3.4' stroke='%236b746c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 11px 50%/16px 16px}
  .dc-summary[hidden]{display:none!important}

  /* collapsed: the bar alone above the map, two rows: the mode with Run and Edit, then the query across the whole width
     (owner 2026-11-21: one row squeezed the query to "307" at 306 px) */
  html.dc-collapsed .request-panel>.mode-menu{grid-template-columns:minmax(0,1fr) auto auto;row-gap:4px;padding-bottom:6px}
  html.dc-collapsed .mode-menu>.dc-info{display:none!important}
  html.dc-collapsed .mode-menu>.dc-summary{display:block;grid-column:1/-1;grid-row:2}
  html.dc-collapsed .mode-menu>.dc-run{display:inline-flex;grid-column:2;grid-row:1}
  html.dc-collapsed .mode-menu>.dc-edit{grid-column:3}
  html.dc-collapsed .request-panel>.mode-summary,html.dc-collapsed .request-panel>.format-row,html.dc-collapsed .request-panel>#request-form{display:none!important}

  /* the map: most of the screen once the panel is collapsed */
  .geography-workspace .map-wrap,#map{height:clamp(300px,46svh,520px)!important;min-height:300px!important}
  html.dc-collapsed .geography-workspace .map-wrap,html.dc-collapsed #map{height:clamp(320px,60svh,640px)!important}
  .geography-workspace.areas-enabled .map-wrap{height:clamp(300px,46svh,520px)!important}

  /* results: a compact list under the map that scrolls inside itself */
  .results-header{padding:8px 12px 6px}
  .results-header h2{font-size:13px}
  .results-header p,#results-subtitle{font-size:12px}
  .results-list{max-height:min(46svh,420px)!important}
  .result-select{padding:9px 12px;min-height:48px}
  .result-detail{padding:0 12px 8px 40px}
  .result-location,.selected-coordinate,.result-note,.street-estimate-warning{font-size:12px}
  .result-empty{padding:12px}
  .result-empty p{font-size:12px}
  .results-footnote{padding:2px 12px;font-size:12px}
  .results-credits{padding-left:12px!important;padding-right:12px!important}
  .poi-heading{margin-bottom:6px}

  /* the code inspector: its tab bar until a tab is tapped */
  .console-layout .inspector{height:auto!important;padding-bottom:env(safe-area-inset-bottom)}
  .console-layout .inspector:not(.dc-open)>.inspector-content{display:none!important}
  .console-layout .inspector.dc-open{height:calc(43px + var(--panes,1) * 240px)!important}
  .console-layout .inspector-top{min-width:0;max-width:100vw;overflow-x:auto;scrollbar-width:none;gap:10px;padding:0 12px}
  .console-layout .inspector-top::-webkit-scrollbar{display:none}
  .console-layout .inspector-tabs{gap:10px!important}
  .console-layout .inspector-top .response-metrics{flex-shrink:0}
  .dc-inspector-toggle{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:43px;padding:0 4px 0 0;border:0;background:none;color:var(--ink);font:600 12.5px var(--sans,system-ui);cursor:pointer}
  .dc-inspector-toggle i{font-style:normal;font-size:11px;color:var(--muted);transition:transform .15s}
  .inspector.dc-open .dc-inspector-toggle i{transform:rotate(180deg)}

  /* no sideways scroll anywhere */
  .console-layout,.request-panel,#request-form,.results-panel,.workspace,.inspector,.app-footer,.tool-page,.opt-page,main{max-width:100vw}
  .code-block,pre{max-width:100%;overflow-x:auto}
  .app-footer>div{min-width:0;flex-wrap:wrap}

  /* tool pages: the controls fold to their heading after a run */
  .dc-toolbar{display:flex;align-items:center;gap:8px}
  .dc-toolbar h1{min-width:0;margin:0!important}
  .dc-toolbar .dc-edit{margin-left:auto}
  .dc-toolbar .dc-edit{display:inline-flex}
  html.dc-collapsed .tool-controls>:not(.dc-toolbar):not(.tool-status),html.dc-collapsed .opt-panel>:not(.dc-toolbar):not(.form-error),html.dc-collapsed .property-search>:not(.dc-toolbar):not(.tool-status){display:none!important}
  .tool-page{padding:12px 12px calc(36px + env(safe-area-inset-bottom));gap:12px}
  .tool-page h1,.opt-panel h1{font-size:19px}
  .tool-map{height:clamp(280px,50svh,520px)}
  html.dc-collapsed .tool-map:not(.small),html.dc-collapsed #opt-map{height:clamp(320px,60svh,640px)!important}
  .opt-panel{padding:12px!important}
}
@media(min-width:621px){.dc-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.dc-toolbar>h1{flex:0 1 auto;min-width:0}.dc-toolbar>.dc-edit,.dc-inspector-toggle{display:none!important}}
@media(max-width:400px){
  .header-actions .cost-word{display:none}
  .brand{font-size:19px}
  .app-header{gap:6px;padding-left:10px;padding-right:10px}
  .header-actions{gap:2px;min-width:0}
  .header-actions>.text-button,.header-actions .samples-button,.header-actions .apikey-button,.header-actions .cost-chip{padding-left:4px;padding-right:4px}
}

/* ==== dark theme: generated by apps/dev-console/dark-theme.mjs from the rules above: do not edit by hand ==== */
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="dark"] .dc-info{color:#8e918b}
:root[data-theme="dark"] .dc-info:hover{color:var(--accent,#6983dc)}
:root[data-theme="dark"] .dc-info[aria-expanded=true]{color:var(--accent,#6983dc);background:#212123}
:root[data-theme="dark"] .dc-info-text{color:#8e918b}
:root[data-theme="dark"] .dc-credits-toggle:hover{color:var(--accent,#6983dc)}
:root[data-theme="dark"] .results-footnote>.dc-info-text:hover,:root[data-theme="dark"] .results-footnote>.dc-info-text[aria-expanded=true]{color:var(--accent,#6983dc)}
:root[data-theme="dark"] .answer-warning.dc-chip{background:#2b2a28;color:#a17807}
:root[data-theme="dark"] .street-estimate-warning.dc-chip{background:#2b2a28}
@media(max-width:620px){:root[data-theme="dark"] .request-panel>.mode-menu{background:#20201e}}
@media(max-width:620px){:root[data-theme="dark"] .request-panel>#request-form{background:var(--surface,#1f1f1d)}}
@media(max-width:620px){:root[data-theme="dark"] .dc-edit,:root[data-theme="dark"] .dc-run,:root[data-theme="dark"] .dc-summary{background:#1a1a1a}}
@media(max-width:620px){:root[data-theme="dark"] .dc-summary{background:#1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.6' fill='none' stroke='%236b746c' stroke-width='1.6'/%3E%3Cpath d='m10.4 10.4 3.4 3.4' stroke='%236b746c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 11px 50%/16px 16px}}
/* ==== end of the generated dark theme ==== */
